Advertise Here

Author Topic: [Code] Change "Online" and "Offline" Text  (Read 1867 times)

0 Members and 1 Guest are viewing this topic.

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
[Code] Change "Online" and "Offline" Text
« on: July 20, 2007, 05:56:57 pm »
Footers
Code: [Select]
<script>
function online_offline(online,offline){
//Created by Agent Moose at smcodes.smfforfree3.com
if(location.href.match(/topic,/) || location.href.match(/action=profile/)){
var Span = document.getElementsByTagName("span");
for(x=0;x<Span.length;x++){
if(Span[x].innerHTML.match("Online || Offline")){
Span[x].innerHTML = Span[x].innerHTML.replace("Online",online);
Span[x].innerHTML = Span[x].innerHTML.replace("Offline",offline);
};};};};
online_offline("TEXT IF ONLINE","TEXT IF OFFLINE");
</script>

The name of the topic says it all.  When your viewing the topic, and on the left, it showes if the user is online, or offline, that is the text it changes.
« Last Edit: May 02, 2008, 08:54:05 pm by Agent Moose »
Check out Revolution X's Brand new Code Index!

Offline LaundryLady

  • Helpers
  • *
  • Posts: 3253
  • Internet Challenged
    • View Profile

  • Total Badges: 26
    Badges: (View All)
    Seventh year Anniversary Sixth year Anniversary Search Poll Voter Level 5
Re: Change "Online" and "Offline" Text
« Reply #1 on: July 20, 2007, 07:42:55 pm »
Forum Url: http://the laundryroom.smfforfree2.com
Now that is really something else.  Works good too.

Thanks Moose


And I Play:  Mafia-Mandemz

Offline Knightcastle

  • SMF For Free Member
  • *
  • Posts: 75
    • View Profile
    • Fuedal Zone

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Change "Online" and "Offline" Text
« Reply #2 on: July 23, 2007, 08:26:15 am »
Thanks it works good!

Offline doggiedoo86

  • SMF For Free Member
  • *
  • Posts: 69
    • View Profile
    • Grand Gaming

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Change "Online" and "Offline" Text
« Reply #3 on: July 27, 2007, 05:10:31 pm »
Thanks

 

Related Topics

  Subject / Started by Replies Last post
15 Replies
5845 Views
Last post July 21, 2007, 03:11:07 pm
by simply sibyl
9 Replies
1935 Views
Last post October 29, 2007, 09:18:19 pm
by LaundryLady
2 Replies
870 Views
Last post November 14, 2007, 08:31:34 pm
by Nick_LRG
0 Replies
820 Views
Last post May 15, 2008, 06:47:08 pm
by Lucas A33
3 Replies
1504 Views
Last post September 01, 2009, 12:32:55 am
by Jish