forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: Jimbo_Test on September 07, 2005, 11:19:41 pm

Title: Different menus for logged in and logged out
Post by: Jimbo_Test on September 07, 2005, 11:19:41 pm
Hi,

Does anybody know how I could show different menus depending on whether a user was logged in or out?

ie, in PHPBB, the code would be as follows:

<!-- BEGIN switch_user_logged_in -->
SHOW MEMBERS MENU HERE
<!-- END switch_user_logged_in -->

<!-- BEGIN switch_user_logged_out -->
SHOW NON-MEMBERS MENU HERE
<!-- END switch_user_logged_out -->

Any help would be greatly appreciated  ;D
Title: Re: Different menus for logged in and logged out
Post by: Joachim Müller on September 09, 2005, 08:08:37 am
edit themes/yourtheme/theme.php, find
Code: [Select]
<!-- BEGIN logout -->and add links that are suppossed to show only when users are logged in into a new line.
Title: Re: Different menus for logged in and logged out
Post by: Jimbo_Test on September 09, 2005, 04:32:46 pm
  :D Cheers Gaugau - Worked beautifully!