Simple Machine Codes
March 28, 2024, 05:49:41 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  

SMCodes Stats V1

Pages: [1]   Go Down
  Print  
Author Topic: SMCodes Stats V1  (Read 544 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: June 09, 2007, 10:27:50 am »

Footers:
Code:
<script type="text/javascript">
function board_stats_vone(){
//Created by Agent Moose at smcodes.smfforfree3.com
var span = document.getElementsByTagName("span");
for(x=0;x<span.length;x++){
if(span[x].innerHTML.match(/[\d,]+ Posts in [\d,]+ Topics by [\d,]+ Members/i) && span[x].className == "middletext"){
span[x].innerHTML = span[x].innerHTML.replace(/([\d,]+) Posts in ([\d,]+) Topics by [\d,]+ Members. Latest Member: <b>\s?(<a.+?\/a>)<\/b>/i, "Posts: <b>$1</b><br />Topics: <b>$2</b><br />Newest Member: <b>$3</b>");
};};};
board_stats_vone();
</script>

Place in Headers or Footers

Ok, what this does is:
Posts: [number]
Topics: [number]
Newest Member: [member]
Latest Post: [last post]

That is the best I can explain...well, ok, here is a preview...
http://smcodes.smfforfree3.com/index.php
« Last Edit: May 02, 2008, 09:33:58 pm by Agent Moose » Report Spam   Logged

Share on Facebook Share on Twitter

deathwilldie
100 Club Member

Offline Offline

Posts: 214


View Profile WWW
« Reply #1 on: June 09, 2007, 05:09:28 pm »

Well it doesn't show how many members the forum has which I think is the most important thing.
Report Spam   Logged

Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #2 on: June 09, 2007, 06:31:43 pm »

It doesn't show that anyway...
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:22:45 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