Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Online/Offline Icons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Online/Offline Icons

 Post Reply Post Reply
Author
Mikey View Drop Down
Senior Member
Senior Member

1979

Joined: 06 October 2003
Location: United Kingdom
Status: Offline
Points: 839
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mikey Quote  Post ReplyReply Direct Link To This Post Topic: Online/Offline Icons
    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


Edited by Mikey - 11 October 2006 at 9:19pm
Handyman man?
Back to Top
kkimber View Drop Down
Newbie
Newbie


Joined: 05 April 2006
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote kkimber Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2007 at 9:38am
v8.05 can't be run this code.
Back to Top
Mikey View Drop Down
Senior Member
Senior Member

1979

Joined: 06 October 2003
Location: United Kingdom
Status: Offline
Points: 839
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mikey Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2007 at 12:15pm
Really? I'll hae a look and update later today
Handyman man?
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post 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 - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
kkimber View Drop Down
Newbie
Newbie


Joined: 05 April 2006
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote kkimber Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2007 at 7:25am
my forum language is Turkish maybe this.
Back to Top
lalleytech View Drop Down
Newbie
Newbie
Avatar

Joined: 13 February 2007
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote lalleytech Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.