September 04, 2010, 09:07:05 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Revolution X, where Coding meets Graphics.
 
  Home Help Search Arcade Affiliates Staff List Calendar Members Login Register  

Move Users Online to User Area


Pages: [1]   Go Down
  Print  
Author Topic: Move Users Online to User Area  (Read 164 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
« on: March 24, 2009, 02:46:11 pm »

Footers:
Quote
<script type="text/javascript">
var TheText = "There are {Guests} Guests and {Users} Users Online";

var a = document.getElementsByTagName("a");
for(i=0;i<a.length;i++){
//Created by Agent Moose (revolutionx.smfforfree3.com)
if(a[i].href.match(/index.php\?action=who/i) && a[i].innerHTML.match(/(.*) guest,(.*) user/i)){
var Guests = RegExp.$1;
var Users = RegExp.$2;
if(TheText.match("{Guests} || {Users}")){
TheText = TheText.replace("{Guests}",Guests);
TheText = TheText.replace("{Users}",Users);
};
$("tr#upshrinkHeader td table tbody tr td.windowbg2").append(TheText);
};
};
</script>

Original Request: http://revolutionx.smfforfree3.com/index.php/topic,435.0.html

You may edit the red text.

As you can see, you can place {Guests} to show how many guests are on, and {Users} to show how many Users are on.

Enjoy Smiley
« Last Edit: March 24, 2009, 02:49:06 pm by Agent Moose » Share Report Spam   Logged


Mojobojo82
MVP
MVP
Offline Offline

Gender: Male
Posts: 838


View Profile
« Reply #1 on: June 17, 2009, 05:55:07 am »

Nice Code Moose!
Report Spam   Logged







Your Ad Here
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2006-2009, Simple Machines LLC
Hostgator Hosting