October 14, 2024, 08:17:05 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Revolution X, where Coding meets Graphics.
 
  Home Help Search Arcade Affiliates Staff List Calendar Members Login Register  

Change "NUMBER comment" Text

Pages: [1]   Go Down
  Print  
Author Topic: Change "NUMBER comment" Text  (Read 480 times)
Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
Badges: (View All)
« on: June 19, 2009, 10:46:13 am »

Footers:
Code:
<script type="text/javascript">
function EZchange(Topic,Comm){
var a = document.links;
//Created by Agent Moose (revolutionx.smfforfree3.com)
for(x=0;x<a.length;x++){
if(a[x].href.match("topic," + Topic + ".0") && a[x].innerHTML.match(/([\d,]+) comment/i)){
var Cmnts = Math.floor(parseInt(RegExp.$1) + parseInt(Comm));
a[x].innerHTML = Cmnts + " comments";
};};};
EZchange("TOPIC NUMBER","COMMENTS");
</script>
Original Request: http://revolutionx.smfforfree3.com/index.php/topic,736.0.html

This code changes how much comments it says a topic has if it is on the ezportal.

TOPIC NUMBER = The ID/Number of the topic:
Quote
COMMENTS = The number the comments will change to.  If you have one comment, and you change it to say 20, the number will be 21 Smiley

To change more comment numbers, add more of these lines:
Code:
EZchange("TOPIC NUMBER","COMMENTS");

Enjoy Smiley
Report Spam   Logged


Share on Facebook Share on Twitter

Mojobojo82
MVP
MVP
Offline Offline

Gender: Male
Posts: 838


View Profile
Badges: (View All)
« Reply #1 on: June 19, 2009, 11:28:32 am »

Thanks for the code!
So quick
Report Spam   Logged






Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
Badges: (View All)
« Reply #2 on: June 19, 2009, 11:29:43 am »

Glad you like it Smiley

I had(still have) alot of time Tongue
Report Spam   Logged


Mojobojo82
MVP
MVP
Offline Offline

Gender: Male
Posts: 838


View Profile
Badges: (View All)
« Reply #3 on: June 19, 2009, 11:33:11 am »

Lol Moose, you're like an Agent  Wink Grin
Report Spam   Logged






Andrew
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 539



View Profile WWW
Badges: (View All)
« Reply #4 on: June 19, 2009, 01:31:37 pm »

Of course hes an Agent. His new name should be Agent Kangaroo because hes so fast LOL Cheesy
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