online icon help on phpbb3 (last support question)

Dj-Whitey

Resident
Joined
Jan 23, 2009
Messages
704
Reaction score
0
FP$
6
I got a online icon off you.
How do I change this on a phpbb3 forum.
prosilver based theme
Please help.
(phpbb3 site is useless)
 
If you take a look in the styles/style_name/imageset you should see the current image called icon_online.gif or something similar. Just upload it to that directory overwriting the old image and it will show on your site You might need to clear your cache though.
 
avi is a video format, not an image format.

If you replace the image with one of the same file type and name, unless you've got "recompile style components" switched to "Yes" in Load settings you will need to refresh the imageset cache.

Admin Panel -> Styles Tab -> Style Components (left hand menu) -> Imagesets -> your_style_name -> Refresh -> are you sure... -> yes.

Then refresh your browser / clear your browser cache. If you do all of that and it still doesn't work then either you're not following the instructions properly or you're not over writing the old image correctly.
 
That is because there is nothing in your code telling phpBB to show an image when a user is online.

Open: /your_style/template/viretopic_body.html

Find:
Code:
<!-- IF postrow.S_ONLINE --> online<!-- ENDIF -->

Replace with:
Code:
<!-- IF postrow.S_ONLINE --><img src="{T_IMAGESET_PATH}/en/icon_user_online.gif />&nbsp;<!-- ENDIF -->

Chance the image source to where your image is.
 
did that. hmm not working. I'll look into it tomorrow. I'll fix it. but if I get it working. I need to make it on top of the avatar... thats the meh part.
 
Sorry there was an error in the code I gave you.

use this one instead:
Code:
<!-- IF postrow.S_ONLINE --><img src="{T_IMAGESET_PATH}/en/icon_user_online.gif"  />&nbsp;<!-- ENDIF -->

Once you get the image showing up I will tell you how to move it above the avatar.
 
working...
now.
how to put it on top

also If I want a off line one. what do I do??
 
Find and delete:
Code:
<!-- IF postrow.S_ONLINE --><img src="{T_IMAGESET_PATH}/en/icon_user_online.gif"  />&nbsp;<!-- ENDIF -->

Use this code to show your images:
Code:
<!-- IF postrow.ONLINE_IMG && postrow.S_ONLINE --><img src="www.link-to-ONLINE-image.gif" /><!-- ELSE --><img src="www.link-to-OFFLINE-image.gif" /><!-- ENDIF -->


Find:
Code:
<!-- IF postrow.POSTER_AVATAR -->
					<!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a><!-- ELSE -->{postrow.POSTER_AVATAR}<!-- ENDIF --><br />
    <!-- IF postrow.S_ONLINE --><img src="{T_IMAGESET_PATH}/icon_user_online.gif/>&nbsp;<!-- ENDIF -->
				<!-- ENDIF -->

Cut it, and paste it below this:
Code:
<!-- IF postrow.RANK_TITLE or postrow.RANK_IMG --><dd>{postrow.RANK_TITLE}<!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}</dd><!-- ENDIF -->

		<dd>&nbsp;</dd>

Untested, but I've done it a few times and it has worked. Let me know how it goes.
 
fix and done
Except I needed to change the code around a bit. but all working now.
all I need is a offline image
 
How about?

icon_user_offline.gif


icon_user_online.gif
 
Back
Top Bottom