MyBB Community Forums

Full Version: Check whether user is logged in, and if not, display menu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I would like to check using MyBB conditional plugin, whether a user has logged in. If not, then I would display a custom login screen, and ultimately replace the original login screen


Can someone also tell me where the login screen is called from? I.e which template actually carries this check, so that I can replace the code there with my own code
basically it is header_welcomeblock_guest template which has links to login & register

however the checking is not done with code in templates ; explore index.php file ..
global.php deals with the header based on logged in or not. as said above, header_welcomeblock_guest template (usually) has the quick login form. there are also login forms in portal_welcome_{something} and in one of the member_ templates for the full login page.