Simple Machine Codes
March 28, 2024, 07:10:04 am
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  

Change "Online" and "Offline" Text

Pages: [1]   Go Down
  Print  
Author Topic: Change "Online" and "Offline" Text  (Read 1033 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: July 20, 2007, 05:55:49 pm »

Code:
<script>
function online_offline(online,offline){
//Created by Agent Moose (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>
Footers.

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:53:39 pm by Agent Moose » Report Spam   Logged

Share on Facebook Share on Twitter

LaundryLady
Geriatric Goddess
Global Moderator

Offline Offline

Gender: Female
Posts: 290


I'm watching, I have a sense of humor: Guess Who


View Profile
« Reply #1 on: July 20, 2007, 07:48:44 pm »

Thank You "Moosy"  it works real nice.
Report Spam   Logged

Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #2 on: July 21, 2007, 01:25:39 am »

Thanks, glad ya like it!
Report Spam   Logged

˘ω
Starter

Offline Offline

Gender: Male
Posts: 18



View Profile
« Reply #3 on: October 13, 2007, 08:50:10 pm »

so dude, where do u put the code?
Report Spam   Logged

Celebrus
Artificially Conscious
Administrator

Offline Offline

Gender: Male
Posts: 1,337


aka Omikron


View Profile WWW
« Reply #4 on: October 14, 2007, 12:45:13 am »

"footers"
Report Spam   Logged

˘ω
Starter

Offline Offline

Gender: Male
Posts: 18



View Profile
« Reply #5 on: December 01, 2007, 09:18:06 pm »

the code doesn't work, in fact none of ur codes are working on my forum.
Report Spam   Logged

Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #6 on: December 01, 2007, 10:43:31 pm »

What is your Forum URL?
Report Spam   Logged

˘ω
Starter

Offline Offline

Gender: Male
Posts: 18



View Profile
« Reply #7 on: December 02, 2007, 12:09:47 am »

its http://cwgaming.smfforfree3.com
Report Spam   Logged

Celebrus
Artificially Conscious
Administrator

Offline Offline

Gender: Male
Posts: 1,337


aka Omikron


View Profile WWW
« Reply #8 on: December 02, 2007, 04:39:16 am »

I figured out what the problem is.

Put this is your headers and try.

Code:
<script src="http://cwgaming.smfforfree3.com/jquery.js" type="text/javascript"></script>

That should do the trick.
Report Spam   Logged

Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #9 on: December 02, 2007, 07:13:52 am »

Thanks for helping him omikron Smiley
Report Spam   Logged

˘ω
Starter

Offline Offline

Gender: Male
Posts: 18



View Profile
« Reply #10 on: December 02, 2007, 12:09:32 pm »

thanks dude that thing kicks @ss
Report Spam   Logged

Agent Moose Jr.
Ultra Contagious
Global Moderator

Offline Offline

Gender: Male
Posts: 1,045



View Profile WWW
« Reply #11 on: December 29, 2007, 09:24:43 pm »

this code does not work for me
Report Spam   Logged

Newest:

Agent Moose Jr.
Ultra Contagious
Global Moderator

Offline Offline

Gender: Male
Posts: 1,045



View Profile WWW
« Reply #12 on: December 29, 2007, 09:27:00 pm »

how do i enable it so it shows ur online because i cant see when someone posts theres not online or offline thing
Report Spam   Logged

Newest:

clankfan1
Members

Offline Offline

Gender: Male
Posts: 27



View Profile
« Reply #13 on: December 30, 2007, 02:07:38 pm »

Code:
<script>
function online_offline(online,offline) {
$(function() {
//Created by Agent Moose (smcodes.smfforfree3.com)
if(location.href.match(/topic, || action=profile/)){
$("span.smalltext").each(function() {
if(this.innerHTML.match("Online || Offline")) {
this.innerHTML = this.innerHTML.replace("Online",online);
this.innerHTML = this.innerHTML.replace("Offline",offline);
};});};});}
online_offline("TEXT IF ONLINE","TEXT IF OFFLINE")
</script>
Footers.

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.

can you make it for IPB?
Report Spam   Logged



Code:
<a href='http://smcodes.smfforfree3.com/index.php' target='_blank'><img src='http://i1.tinypic.com/8ghqsf5.gif' alt='Simple Machine Codes'></a>
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