Runboard.com
You're welcome.
Welcome: You have reached Pastor Rick's Design Elements message board... Enjoy your stay and please tell others about this board...

Runboard Social       Sign up (learn about it) ● Sign in (lost password?)


 
Pastor Rick Profile
Live feed
Blog
Friends
Miscellaneous info

Head Administrator
Global user (premium)

Registered: 07-2005
Location: Texas
Posts: 541
Karma: 11 (+12/-1)
Reply ● Quote
Tweek the 'Who's Online' data


Credit goes to BillyWizz1 for the idea and to Lesigner Girl who created the code while I was tied up doing other things emoticon
Custom Language Set:

whosonline: <span class="whoisonline">Registered members:

whosonline_recap: </span><br /><span class="whosonlinerecap">Who is online, last 15 minutes: %1 visible, %2 invisible, %3 guests</span>

CSS:
.forumlistwhosonline {
        display: block; position: relative; border: 1px solid #000;
}
.forumlistwhosonlinetd br { display: none; }
.whosonlinerecap {
display: block; position: absolute; left: 0; top: 0;
}
.whoisonline {
display: block; margin-top: [sign in to see URL];
}

Notes:

You will need to hard-code in the number of minutes, since that actually belongs in the whosonline box.

For some reason the absolute positioning wouldn't work without the border, so just choose a border color that matches your background if you don't want it to show.


Result without styling:

Registered members: member, member, member, member
Who is online, last # minutes: # visible, # invisible, # guests

Result WITH styling:

Who is online, last # minutes: # visible, # invisible, # guests
Registered members: member, member, member, member


I make this distinction with and without styling, because if any blind people are visiting with their aural screen readers, they will hear the "Registered members" line first.

This will also work in multiple browsers, regardless of how many people are showing in the who's online. emoticon

---

RSFRDAdvertise Boards On TRDREITB
5/25/2009, 7:25 pm Link to this post Send Email to Pastor Rick   Send PM to Pastor Rick Blog
 


Add a reply





You are not logged in (login)