Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« on: July 20, 2007, 05:55:49 pm » |
|
<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
|
|
|
|
|
LaundryLady
Geriatric Goddess
Global Moderator
Offline
Gender:
Posts: 290
I'm watching, I have a sense of humor: Guess Who
|
|
« Reply #1 on: July 20, 2007, 07:48:44 pm » |
|
Thank You "Moosy" it works real nice.
|
|
|
|
|
Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« Reply #2 on: July 21, 2007, 01:25:39 am » |
|
Thanks, glad ya like it!
|
|
|
|
˘ω
Starter
Offline
Gender:
Posts: 18
|
|
« Reply #3 on: October 13, 2007, 08:50:10 pm » |
|
so dude, where do u put the code?
|
|
|
|
Celebrus
Artificially Conscious
Administrator
Offline
Gender:
Posts: 1,337
aka Omikron
|
|
« Reply #4 on: October 14, 2007, 12:45:13 am » |
|
"footers"
|
|
|
|
˘ω
Starter
Offline
Gender:
Posts: 18
|
|
« 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.
|
|
|
|
Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« Reply #6 on: December 01, 2007, 10:43:31 pm » |
|
What is your Forum URL?
|
|
|
|
˘ω
Starter
Offline
Gender:
Posts: 18
|
|
« Reply #7 on: December 02, 2007, 12:09:47 am » |
|
its http://cwgaming.smfforfree3.com
|
|
|
|
Celebrus
Artificially Conscious
Administrator
Offline
Gender:
Posts: 1,337
aka Omikron
|
|
« Reply #8 on: December 02, 2007, 04:39:16 am » |
|
I figured out what the problem is. Put this is your headers and try. <script src="http://cwgaming.smfforfree3.com/jquery.js" type="text/javascript"></script>
That should do the trick.
|
|
|
|
Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« Reply #9 on: December 02, 2007, 07:13:52 am » |
|
Thanks for helping him omikron
|
|
|
|
˘ω
Starter
Offline
Gender:
Posts: 18
|
|
« Reply #10 on: December 02, 2007, 12:09:32 pm » |
|
thanks dude that thing kicks @ss
|
|
|
|
Agent Moose Jr.
Ultra Contagious
Global Moderator
Offline
Gender:
Posts: 1,045
|
|
« Reply #11 on: December 29, 2007, 09:24:43 pm » |
|
this code does not work for me
|
Newest:
|
|
|
Agent Moose Jr.
Ultra Contagious
Global Moderator
Offline
Gender:
Posts: 1,045
|
|
« 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
|
Newest:
|
|
|
clankfan1
Members
Offline
Gender:
Posts: 27
|
|
« Reply #13 on: December 30, 2007, 02:07:38 pm » |
|
<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?
|
<a href='http://smcodes.smfforfree3.com/index.php' target='_blank'><img src='http://i1.tinypic.com/8ghqsf5.gif' alt='Simple Machine Codes'></a>
|
|
|
|
|