Login button issue.

P®od

Up-and-Coming Sensation
Joined
Apr 22, 2009
Messages
398
Reaction score
0
FP$
6
So with my theme the Login button stays the login button when you login in and doesn't change to logout. Where is the code that defines the image of login/logout?
Thanks.
 
You could use an if statement

Code:
<!-- IF S_USER_LOGGED_IN -->

If your using phpBB
 
Sorry but i don't know where this would go. I did point out i cannot find where the code is for this action. Please be a little more specific thanks! =) Its a start but i need more help haha.
 
Go to overall_header.html and find this:

Code:
<a class="logout" href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="l"><span>{L_LOGIN_LOGOUT}</span></a>

and replace with this:

Code:
<a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="x"><img src="{T_THEME_PATH}/images/<!-- IF not S_USER_LOGGED_IN -->login<!-- ELSE -->disconnect<!-- ENDIF -->.png" alt="" /> </a>

Now go to styles/Pro_iphone/theme/images and upload the login and logout images and rename them as "login.png" and "logout.png" respectively.

This should fix the problem.
 
So i've done this and all i get is the missing image icon where the icon should appear.
 
Thats all i want. I WANT this problem fixed. I have no idea how to fix it. Hence why i asked here. So. Your idea didn't work. Sorry.
 
Once again it sounds like you are missing an image so make sure that the image is there. In your browser, see exactly what image it is trying to load and then put the image you want in that location.
 
I agree with fowler.

Follow the guide above, and make sure you have the logout and login IMAGES in the /images/ folder.
 
You might have the wrong format image. The code is trying to bring up a .png, if yours is .gif then it won't work. So be sure the code is the same as the image names.
 
I've got someone working on it at the moment. It appears that the code was only built to use one image that was a dual image for both login and logout but it was messy and not very appealing.
 
Back
Top Bottom