MyBB Community Forums

Full Version: Login & Logout
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am creating a forum in which i am make a menu for Login, Logout and Register . But when i am login the Login menu is appearing after Login and also Logout menu is also... Now i want when i am not Login then only Login and Register menu will display,, and when i am Login with username and Password.,, then Only Logout and Register menu will Display...
Question
Why do you want a button meny with Register to logged in user? They are already registred?
What sys are you using for the login/reg/logout buttons? jquery? Something else?
login, register, and log out links are arranged such that :

login & register links appear only to guests & users not logged in
log out link appears to logged in users only

MyBB uses templates system and top links are coded in Header Templates.

header_welcomeblock_guest template consists of information related to guests & not logged in users.
header_welcomeblock_member template contains information for logged in users.

login & register links are coded in header_welcomeblock_guest template
log out link is placed in header_welcomeblock_member template

if you have to use those links outside their respective templates then simple method is to use template conditionals plugin