Simple Machine Codes
March 28, 2024, 08:32:23 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Gallery Affiliates Code Index Staff List Calendar Members Login Register  

Always Online V3

Pages: [1]   Go Down
  Print  
Author Topic: Always Online V3  (Read 1827 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: April 09, 2008, 03:11:53 pm »

Footers
Code:
<script>
var n = 1;var Online = new Array();
Online[n++] = ["ID","USERNAME"];

var loc = window.location.href.split("/index.php")[0];
var username = $("td.titlebg2 span b").not($("td.titlebg2 span b:contains(News)")).html();
for(c=1;c<Online.length;c++) {
$("td b a").each(function(){
if(this.href.match("profile;u=" + Online[c][0]) && this.innerHTML == Online[c][1]){
$("span.smalltext").each(function() {
if(this.innerHTML.match("Offline")) {
this.innerHTML = this.innerHTML.replace("Offline","Online");
};});
$("div.smalltext a").each(function(){
if(this.title == "Personal Message (Offline)"){
this.title = this.title.replace("Offline","Online");
};});
$("div.smalltext a img").each(function(){
if(this.alt == "Offline"){
this.src = "http://www.smfboards.com/Themes2/default/images/useron.gif";
};});
};});
$("div.smalltext br:first").each(function(){
if(this.parentNode.innerHTML.match(/Users active in/i) && username){
$(this).after("<a href='" + loc + "/index.php?action=profile;u=" + Online[c][0] + "'>" + Online[c][1] + "</a>, ");
}else{
$(this).after("<a href='" + loc + "/index.php?action=profile;u=" + Online[c][0] + "'>" + Online[c][1] + "</a>, ");
};});
$("span.middletext").each(function() {
if(this.innerHTML.match(/Most Online Today: <b>[\d,]+<\/b>./i)) {
this.innerHTML = this.innerHTML.replace(/Most Online Today: <b>([\d,]+)<\/b>./i, "Most Online Today: <b>" + c + "</b>.");
}});
};
</script>
Here is V3 of Always Online!

This one does just like the other versions, but adds the usernames at the bottom on the Users Online list too!

ID = The Users ID that you want to seem like they are online
USERNAME = The Name of the user you want to seem like they are online.

Enjoy Smiley
Report Spam   Logged

Share on Facebook Share on Twitter

legend 1234
100 Club Member

Offline Offline

Gender: Male
Posts: 461


Legend 1234


View Profile WWW
« Reply #1 on: April 10, 2008, 01:55:23 am »

haha nice man

legend 1234 Smiley
Report Spam   Logged

GodGurl25
xXGodGurl25Xx
Members

Offline Offline

Gender: Female
Posts: 32



View Profile WWW
« Reply #2 on: May 04, 2008, 01:43:22 am »

Ahaha... this one is cool... ahaha... hehe  Smiley
Report Spam   Logged

Hope I'm welcum here guys.
from:
xXGodGurl25Xx
legend 1234
100 Club Member

Offline Offline

Gender: Male
Posts: 461


Legend 1234


View Profile WWW
« Reply #3 on: May 04, 2008, 03:13:55 am »

one thing

wats the point of seeing like ur always onlinr lol Smiley

legend 1234
Report Spam   Logged

Matt
Newcomers!

Offline Offline

Posts: 4


View Profile
« Reply #4 on: August 01, 2008, 11:07:59 pm »

Sorry to bump this topic but I can't seem to get the members to appear!
Have I got the code right?

Code:
<script>
var n = 1;var Online = new Array();
Online[n++] = ["1","Mr_Jz"];

var loc = window.location.href.split("/index.php")[0];
var username = $("td.titlebg2 span b").not($("td.titlebg2 span b:contains(News)")).html();
for(c=1;c<Online.length;c++) {
$("td b a").each(function(){
if(this.href.match("profile;u=" + Online[c][0]) && this.innerHTML == Online[c][1]){
$("span.smalltext").each(function() {
if(this.innerHTML.match("Offline")) {
this.innerHTML = this.innerHTML.replace("Offline","Online");
};});
$("div.smalltext a").each(function(){
if(this.title == "Personal Message (Offline)"){
this.title = this.title.replace("Offline","Online");
};});
$("div.smalltext a img").each(function(){
if(this.alt == "Offline"){
this.src = "http://www.smfboards.com/Themes2/default/images/useron.gif";
};});
};});
$("div.smalltext br:first").each(function(){
if(this.parentNode.innerHTML.match(/Users active in/i) && username){
$(this).after("<a href='" + loc + "/index.php?action=profile;u=" + Online[c][0] + "'>" + Online[c][1] + "</a>, ");
}else{
$(this).after("<a href='" + loc + "/index.php?action=profile;u=" + Online[c][0] + "'>" + Online[c][1] + "</a>, ");
};});
$("span.middletext").each(function() {
if(this.innerHTML.match(/Most Online Today: <b>[\d,]+<\/b>./i)) {
this.innerHTML = this.innerHTML.replace(/Most Online Today: <b>([\d,]+)<\/b>./i, "Most Online Today: <b>" + c + "</b>.");
}});
};
</script>
Report Spam   Logged
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 © 2016, Simple Machines
Privacy Policy