Print Page | Close Window

Online/Offline Icons

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=21565
Printed Date: 28 March 2026 at 3:11pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Online/Offline Icons
Posted By: Mikey
Subject: Online/Offline Icons
Date Posted: 11 October 2006 at 8:38pm
A nice simple mod to replace the text 'online' and 'offline' with a corresponding icon.

like so...



Back up all files first!

Find the code in 'forum_posts.asp'...


                'Display if the user is online
                If blnIsUserOnline Then Response.Write(vbCrLf & "   <br />" & strTxtOnlineStatus & ": " & strTxtOnLine2) Else Response.Write(vbCrLf & "      <br />" & strTxtOnlineStatus & ": " & strTxtOffLine)


and replace with...



                'Display if the user is online
                If blnIsUserOnline Then Response.Write(vbCrLf & "   <br />" & strTxtOnlineStatus & ": <img src=""forum_images/" & strTxtOnLine2 & ".gif"" alt=""" & strTxtOnLine2 & """ />") Else Response.Write(vbCrLf & "   <br />" & strTxtOnlineStatus & ": <img src=""forum_images/" & strTxtOffline & ".gif"" alt=""" & strTxtOffline & """ />")


Save and replace old file.

This mod simply inserts the text offline or online in the src of a <img> tag.
For this to function properly the main language file should have 'strTxtOnLine2' set as 'Online' and 'strTxtOffline' set as 'Offline'.

2 icons must be created and dropped into the 'forum_images' folder.
one called 'online.gif' and the other called 'offline.gif'

Also included are 'ALT' tags for usability issues.

Currently this mod only affects the online/offline status in 'forum_posts.asp' i shall add further instructions for other files as and when i have more time Clap

I encourage you to make your own icons but if you wanna use mine then right click and save the following icons.

<---- Offline   <---- Online


-------------
Handyman man?



Replies:
Posted By: kkimber
Date Posted: 19 January 2007 at 9:38am
v8.05 can't be run this code.


Posted By: Mikey
Date Posted: 19 January 2007 at 12:15pm
Really? I'll hae a look and update later today

-------------
Handyman man?


Posted By: Scotty32
Date Posted: 19 January 2007 at 12:56pm
it *should* work if you add the code your self.

but might i suggest adding the whole image tag to the Language File?
it might be alot easier to mod. eg

strTxtOffline = "<img src=""forum_images/Offline.gif"" alt=""Offline"" />"



-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: kkimber
Date Posted: 20 January 2007 at 7:25am
my forum language is Turkish maybe this.


Posted By: lalleytech
Date Posted: 06 March 2007 at 4:29pm
If you add:

align=""absmiddle""

 to the <img src= ... /> code, it makes the images line up a little better Wink

Thanks for the mod. Subtle but handy improvement to the online / offline status.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net