Support > cpg1.5 themes (visuals)
change theme only for loged in users?
(1/1)
railgun:
hello i want to delte the complet normal header from copermine to get a custom menu bar
for this i need to delte at the template theme
--- Code: --- <div id="cpg_header_block_outer">
<div class="cpg_header_block_inner">
<div id="main_menu">
{SYS_MENU}
{SUB_MENU}
{ADMIN_MENU}
</div><!-- Begin IE7 support --><img src="images/spacer.gif" class="menuheight" alt="" /><!-- End IE7 support -->
<div class="clearer"></div>
{MESSAGE_BLOCK}
</div>
--- End code ---
but if i do this this change will be also happen for all loged in users, and then its triki to navigate though the options,
is there a way to display it like the admin_menu ? so that's only be visible if i loged in?
Αndré:
Copy the function pageheader from themes/sample/theme.php to your theme's theme.php file, if it doesn't already exist. Then, find
--- Code: --- '{SYS_MENU}' => theme_main_menu('sys_menu'),
'{SUB_MENU}' => theme_main_menu('sub_menu'),
--- End code ---
and replace with
--- Code: --- '{SYS_MENU}' => USER_ID ? theme_main_menu('sys_menu') : '',
'{SUB_MENU}' => USER_ID ? theme_main_menu('sub_menu') : '',
--- End code ---
railgun:
thanks again andree, and have a nice day :)
work perfectly
FrA1l3:
sorry for the late update, but I was looking for something like that and it works perfectly in version 1.6.03 ;) :)
Navigation
[0] Message Index
Go to full version