Только ответы и решения, никаких вопросов.
Kopusha |
|
---|---|
To find where you are try Extention?
Module?
Zone?
Added 17 seconds later: Or use {PHP|dump} $env['ext']; // содержит название текущего расширения $env['location']; // условное название раздела сайта // примеры... // для админки $env['location'] = 'administration'; $env['ext'] = 'admin'; // для плагинов $env['location'] = 'plugins'; //для любых расширений $env['ext'] = 'имя_расширения'; //страница логина $env['location'] = 'users'; $env['ext'] = 'users'; // для главной страницы $env['location'] = 'home'; $env['ext'] = 'index'; Added 2 minutes later: Sometimes we need redirect user entered a page immediately
Added 1 minute later: Link to users profile pageBy user ID
By user name (bad habit)
Added 49 seconds later: Modify any tag in TPL on the fly
Added 26 seconds later: If can admin some area For example all pages
Only that category in pages or folio
If can write in that category
Added 45 seconds later: If user is owner If user is in his own profile details
If this comment is yours
Added 2 minutes later: If plugin config TPL + PHP <!-- IF {PHP.cfg.plugin.placemarks.enable_radius} -→ if ($cfg['plugin']['placemarks']['enable_radius']) Существует ли функция? if (function_exists("uk_com")) { uk_com("notify", "com"); } |