7hp Posted September 10, 2011 Report Share Posted September 10, 2011 (edited) Помогите с одной вещью, для "Персональной страницы пользователя" я хотел сделать отдельный шаблон, совсем другой, не как index.php(main.tpl) и в index.php стандартную загрузку шаблона, поменял на:if ($_GET['subaction'] == 'userinfo') { $tpl->load_template ( 'userinfo.tpl' ); } ELSE { $tpl->load_template ( 'main.tpl' ); }Если убрать код{content} в "Персональной странице пользователя" то модули не работают, а если его оставить, то грузит шаблон index.php(main.tpl), помогите пожалуйста подключить модули к "Персональной странице пользователя", с отдельным шаблоном. Буду очень признателен =) Edited September 10, 2011 by 7hp Quote Link to comment Share on other sites More sharing options...
0 rus Posted September 12, 2011 Report Share Posted September 12, 2011 указывайте какую cms вы имеете ввиду, телепатов нет. Quote Link to comment Share on other sites More sharing options...
0 LunatiK Posted September 12, 2011 Report Share Posted September 12, 2011 указывайте какую cms вы имеете ввиду, телепатов нет.DLE Quote Link to comment Share on other sites More sharing options...
0 rus Posted September 12, 2011 Report Share Posted September 12, 2011 указывайте какую cms вы имеете ввиду, телепатов нет.DLEЭто догадка? Quote Link to comment Share on other sites More sharing options...
0 LunatiK Posted September 12, 2011 Report Share Posted September 12, 2011 указывайте какую cms вы имеете ввиду, телепатов нет.DLEЭто догадка?Нет, это утверждение Вот тут это уже обсуждалось. Ну в смысле там начало темы. Quote Link to comment Share on other sites More sharing options...
0 7hp Posted September 12, 2011 Author Report Share Posted September 12, 2011 DLE... Помогите пожалуйста... Quote Link to comment Share on other sites More sharing options...
Question
7hp
Помогите с одной вещью, для "Персональной страницы пользователя" я хотел сделать отдельный шаблон, совсем другой, не как
и в
стандартную загрузку шаблона, поменял на:
if ($_GET['subaction'] == 'userinfo') { $tpl->load_template ( 'userinfo.tpl' ); } ELSE { $tpl->load_template ( 'main.tpl' ); }Если убрать код
{content}в "Персональной странице пользователя" то модули не работают, а если его оставить, то грузит шаблон
, помогите пожалуйста подключить модули к "Персональной странице пользователя", с отдельным шаблоном. Буду очень признателен =)
Edited by 7hpLink to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.