SMF Support > SMF 2.0.x Support

Hide login box in main window

(1/1)

SBL:
Hello,

I'm running SMF 2.0.2 with EZportal 0.6.6. My forum is completely closed so guests can only access initial page and help and stuff.
With EZportal I adjusted the landing page with a information page on where the forum is about.

However, on the landing page is also the login box. I would prefer however to just keep the loginbox in the header, not in the main page. I've sniffed arround in the index.php, because i suspect and except that i would be able to find it there and found these rows of code:


--- Code: --- // If guest access is off, a guest can only do one of the very few following actions.

elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'help', 'smstats', 'mailq', 'verificationcode', 'openidreturn'))))
{
require_once($sourcedir . '/Subs-Auth.php');
return 'KickGuest';
}
elseif (empty($_REQUEST['action']))
{

--- End code ---

I think I need to adjust something here to remove the login box.

I already tried to remove everything or to change the elseif to else if (1 == 2). This removes the box, but for some reason the FORUM menu link becomes available to guests and they see some forum info. So I guess that's not the way to go.

It must be something really simpel, but I have not found it on the forum yet. Does anyone know the answer or can point me in the right direction? Thanks!

I prefer not to name the website here, but in pm it's no problem.

SBL:
Anyone?

MovedGoalPosts:
Patience is a virtue.  Please don't bump within 24 hours remembering that most assistance is offered by volunteers.

You might want to look at your forum with something like Firebug add on to Firefox.  That will enable you to identify the elements that make up the page display.  In turn that could lead you to the index.css element which you might be able to simply turn off by adding the code "display: none;" to the relevant element.  It might be a bit trial and error though as the same element might be used for other logon styling.

SBL:
Sorry for bumping to soon ...

I've trief some stuff, but not solution untill now ... my problem would also be solves if the login box wouldn't get the focus on the page, because that's what's making it jump downwards. The cursor is immediately blinking in the USERNAME box. Anyone know a way to get this 'focus' out of the login box?

Chas Large:
I tried EZportal once and didn't like it so switched to SimplePortal instead. Anyway, if EZP works in a similar way, you should be able to add / remove blocks or parts of the portal page or show/ hide from different usergroups. So I would check the permissions that EZP offers for different sections.

Navigation

[0] Message Index

Go to full version