Show menu only when NOT logged in - Joomla! Forum - community, help and support


hi! have installed joomla 1.5 , i'm loving it!!! need cannot done standard installation, think.

i want users able register , login on site, that's no problem. but... have menu 2 options: "log in"-link , "register"-link. want menu shown when user not logged in. when user logs in, sees "registered" menu there, option log out. , don't want show registered user option login or register. so... need access level of "not registered" (which not same public!).

however, need bit, not necessary me have things jaclplus (for joomla 1.0) , things that... simple hack enough.

i know php, know put in index.php file, don't know put there. :)
i thinking along lines of this:
change:

code: select all

 <div id="navi"><?php mosloadmodules ( 'user3', -1); ?></div>

into:

code: select all

 <div id="navi"><?php mosloadmodules ( 'user3', -1); if (user_is_not_logged_in) { mosloadmodules ('user9', -1);} ?></div>

where:
user3 = standard menu
user9 = special menu shown not logged in people.
user_is_not_logged_in = part need change don't know what... have tried things user->id < 0, didn't work...

also, i'm not sure if brackets , stuff placed properly, perhaps check too?

i found this thread in 1.0.x forums. help?

i'm looking same functionality. can please provide update on works? i don't know php :(

edit: found this thread may provide guidance.





Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???