Simple Machine Codes
March 28, 2024, 03:18:38 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 V2

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

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: December 01, 2007, 03:34:55 pm »

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

var loc = window.location.href.split("/index.php")[0];
for(c=0;c<Online.length;c++) {
//Created by Agent Moose (smcodes.smfforfree3.com)
$("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"
};});};});};
</script>

ID = The Users ID.
USER = The Users Name.

Enjoy Smiley
Report Spam   Logged

Share on Facebook Share on Twitter

Stewie343
Hello.
100 Club Member

Offline Offline

Gender: Male
Posts: 287



View Profile
« Reply #1 on: December 01, 2007, 03:58:42 pm »

What exactly does this do?
« Last Edit: December 01, 2007, 03:58:56 pm by Stewie343 » Report Spam   Logged

Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #2 on: December 01, 2007, 05:06:17 pm »

When your viewing a topic, with the names that you choosen to stay online, it will change the text "Offline" in the Mini-Profile and it will make the image the Offline image text to it.
Report Spam   Logged

Agent Moose Jr.
Ultra Contagious
Global Moderator

Offline Offline

Gender: Male
Posts: 1,045



View Profile WWW
« Reply #3 on: January 04, 2008, 01:10:43 pm »

nice job
Report Spam   Logged

Newest:

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