phpBB Forum

It is currently Thu 24. May 2012, 06:53

All times are UTC + 1 hour

Forum rules


Hello dearest user and welcome to our EQDKP-Plus support forum.

Please read the following rules and terms before posting anything! Failure in doing so will result in being ignored or being banned. Posting in our boards means you have read, understood and accepted those rules.

English Board Rules – Click here



Post new topic Reply to topic  [ 4 posts ] 
Author Message
Offline
 Post subject: viarable for checking if the user is logged in
PostPosted: Sun 25. Sep 2011, 23:06 

Joined: Sun 22. Nov 2009, 00:03
Posts: 2
I have a modified version of the allvtar cataslysm template that I have altered a bit, and I am wondering if I can use a vairable to help me do something.

I noticed this template uses a style.php file to show the css for it.

So I wanted to show a notice to users who are not logged in. I would do it by adding a if/else statement for style.php and enclosing the css for the notice div I add elsewhere being shown if logged out and hidden with css if they are logged in.

some somthing like:
Code:
sudo code:

if $usergroupid != '0'
                         {  <some css for the notice div goes here>
                          }
else                    {   <some different css for hiding the div would go here>
                          }


I'm sure you get the idea.

So I just wondered what the vairable name is that I can use to do the if/else statement with, and if that vairable is available to be called from style.php.

Thanks.



Top
 Profile  
 
Offline
 Post subject: Re: viarable for checking if the user is logged in
PostPosted: Mon 26. Sep 2011, 06:55 
Core-Developer
User avatar

Joined: Wed 10. Dec 2008, 13:06
Posts: 9025
Location: Heilbronn, Germany
It is possible in the template files using the Template Engine.. Open templates/NAME/page_header.html and insert

Code:
<!--IF not S_LOGGED_IN-->
html here
<!-- ENDIF -->


I will check the variable and Report back later if the statement is Wirkung by that way...


Support my work:
Image Image
Donate your played PS3 games:
Alternative: Donate your played Playstation3 games (PAL, Region Code 2).



Top
 Profile  
 
Offline
 Post subject: Re: viarable for checking if the user is logged in
PostPosted: Mon 26. Sep 2011, 10:28 
Core-Developer
User avatar

Joined: Wed 10. Dec 2008, 13:06
Posts: 9025
Location: Heilbronn, Germany
corrected the code above, variable was "S_LOGGED_IN"...


Support my work:
Image Image
Donate your played PS3 games:
Alternative: Donate your played Playstation3 games (PAL, Region Code 2).



Top
 Profile  
 
Offline
 Post subject: Re: viarable for checking if the user is logged in
PostPosted: Fri 30. Sep 2011, 10:52 

Joined: Sun 22. Nov 2009, 00:03
Posts: 2
Thanks!

I'll try that out.



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

(C) The EQdkp-Plus Developer Team
EQdkp Plus Template by Ramon Kaes