Different menus for logged in and logged out Different menus for logged in and logged out
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Different menus for logged in and logged out

Started by Jimbo_Test, September 07, 2005, 11:19:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jimbo_Test

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

Joachim Müller

edit themes/yourtheme/theme.php, find<!-- BEGIN logout -->and add links that are suppossed to show only when users are logged in into a new line.

Jimbo_Test