FM home page system

Go down

Solved FM home page system

Post by APE on October 23rd 2015, 1:47 am

Hi @Ange Tuteur Hello I am Using your Cool Homepage system like on FM
What i was thinking i would like it so when your Logged in you have this one

But when your Logged out you see this one but i want the tab on it like the one we have when logged in
Tab to say Viewing As a Guest


Please can you help me with that Wink

Forum Address:
HERE!!!

APE




avatar
APE
Administrator
Administrator

Male Posts : 12303
Reputation : 1276
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: FM home page system

Post by Ange Tuteur on October 23rd 2015, 11:11 am

Hi @Ape,

So a tab displays for guests, try adding the following script to the homepage message :
Code:
<script type="text/javascript">
if (!_userdata.session_logged_in) document.write('<div id="userName"><span>Viewing as </span>Guest</div>');
</script>

I think you might also need some CSS to contain the tab :
Code:
.panel.introduction {
  position:relative;
}
avatar
Ange Tuteur
Forumaster

Male Posts : 13201
Reputation : 2917
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: FM home page system

Post by APE on October 23rd 2015, 1:52 pm

Worked like a Charm Thank you
Topic solved and archived



avatar
APE
Administrator
Administrator

Male Posts : 12303
Reputation : 1276
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum