News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

If Else If Else

Started by lordtron, July 30, 2008, 12:56:17 AM

Previous topic - Next topic

lordtron

#20
Yeah, I got it sort of working before you attached that file. But Guest does not work thou.
Admin and Group9 work with no problems so far, but when I log out it says Logged User which is for when a member is logged in, it doesn't say Guest

VainSoftGames.com - New Design To Gaming

[SiNaN]

Gave you the fix, but you've missed. Fixed in the file.
Former SMF Core Developer | My Mods | SimplePortal

ccbtimewiz

if( !$context['user']['is_logged'] ) could work for checking a guest as well.

[SiNaN]

Quote from: [SiNaN] on July 30, 2008, 12:24:39 PM
Did you change the content?




Edit:

Sorry.

if($context['is_guest']) {

Should be

if($context['user']['is_guest']) {

I've just missed the ['user'] index CcbTimeWiz.
Former SMF Core Developer | My Mods | SimplePortal

ccbtimewiz

Oh LOL. So that's why. xD

lordtron

That was fixed in your attached file and it works now. Thanks, I am now using all my code in the function now, so far so good.

VainSoftGames.com - New Design To Gaming

[SiNaN]

Not at all, made the topic solved. ;)
Former SMF Core Developer | My Mods | SimplePortal

ccbtimewiz

Glad to see it working right, tron.  :)

lordtron

Yeah me to, I really needed this for a lot of different things.

VainSoftGames.com - New Design To Gaming

Advertisement: