Customizing SMF > Mod Requests

Information Bar

<< < (3/4) > >>

Arantor:
Let's just say I've been better, thanks, how about you?

Fog:
Whats been going on over on Shawns Sites?  I haven't been over there in awhile.


--- Quote from: Arantor on May 21, 2012, 10:49:55 PM ---Let's just say I've been better, thanks, how about you?

--- End quote ---

I hear you otherwise, didn't know you posted here.

Fog

Texan78:
Ok here is what I got which works, but I need it to work when user is logged out not logged in...


--- Code: ---// Information bar for guest or user not logged in.
if ($context['user']['is_logged'])
{
          echo ' <p class="windowbg description">WELCOME</p>';
}
--- End code ---

So I need to change "is_logged" to logged out but I don't know what the function should be for logged out users. It works not if a user is logged in and doesn't show when they are logged out. I just need to switch it now.

Texan78:
Ok I figured it out, is_logged needs to be changed to is_guest and it will only show when they are not logged in or registered.

Now just need to figure out how to add the text so I can put it in a language file.

EDIT: all is sorted and working exactly as I am needing. Thank you Fog for your suggestions.

Fog:
Glad to hear Texan78, I'm going to try setting an info bar now with permissions.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version