Необходимые исходные условия :
Mosets Tree version > 1.58
Sobi2 Version > RC 2.8.2
MySQL/Apache/PHP
Компоненты Mosets Tree и SOBI2 должны быть установлены одновременно на Вашем сайте
Поля, которые будут импортированы в SOBI :
1) Название
2) Сайт (поле 8 в таблице jos_sobi2_fields_data)
3) Описание (поле 13 в таблице jos_sobi2_fields_data)
Если Вам нужно импортировать данные из других полей, просто добавьте соответствующие строки в скрипт
-------------------------------
Внимание ! скрипт не является стабильным решением. Используйте его на свой страх и риск !truncate table jos_sobi2_cats_relations;
truncate table jos_sobi2_fields_data;
truncate table jos_sobi2_item;
truncate table jos_sobi2_cat_items_relations;
truncate table jos_sobi2_categories;
insert into jos_sobi2_cats_relations (select cat_id, cat_parent from jos_mt_cats);
insert into jos_sobi2_fields_data (fieldid, itemid, data_txt) (select 13, link_id, link_desc from jos_mt_links);
insert into jos_sobi2_fields_data (fieldid, itemid, data_txt) (select 8, link_id, website from jos_mt_links);
insert into jos_sobi2_item (itemid, title, hits, publish_up, owner, last_update) (select link_id, link_name, link_hits, link_created, user_id, link_modified from jos_mt_links);
insert into jos_sobi2_cat_items_relations (catid, itemid) (select cat_id, link_id from jos_mt_cl);
insert into jos_sobi2_categories (catid, name, description) (select cat_id, cat_name, cat_desc from jos_mt_cats);
update jos_sobi2_categories set published = '1' where catid > '0';
update jos_sobi2_item set published = '1' where itemid > '0';
update jos_sobi2_item set approved = '1' where itemid > '0';
update jos_sobi2_item set publish_down = '0000-00-00 00:00:00' where itemid > '0';
update jos_sobi2_cats_relations set parentid = '1' where parentid= '0';