Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Jun 26th, 2017, 03:47am


Board Hacks
Important News
Please read the notes posted with any codes carefully, as they will usually tell you where they need to go.
Welcome to the Conforums Hacks Board!

All codes here have been tested but we accept no responsibility if these codes do not work on your board, or have an adverse effect when used in combination with other codes.

This board is read only. Any queries or requests for codes should be made on the Coding Forum

Helpful sites
Google
Dynamic Drive

The Staff
Roger
Dave
GIzzy



« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Statistics & Moderator Column <- Code Inside  (Read 4461 times)
Luke Dyson
Member


member is offline

Avatar

Want a free shoutbox? Check my sig!

YIM YIM AIM
Homepage PM

Gender: Male
Posts: 103
xx Statistics & Moderator Column <- Code Inside
« Thread started on: Dec 27th, 2003, 10:31am »

This removes Topics and Posts and adds Statistics(Topics and Posts) and Moderators :)

If you'd like to see a preview of this code's effects click here

Edit by Garet - Code belongs in main footer

Code:
<script type="text/javascript">
/* Conforums Hack By Luke Dyson
http://lukezweb.conforums.com/
This cannot be re-posted */
if (location.href.indexOf("/index.cgi") != -1){
var td = document.getElementsByTagName('TD')
for(a=0; a<td.length; a++) {
if(td[a].innerHTML.match("by")) {
if(td[a].width=="24%"){
var TDS = td[a].innerHTML.split("<B"+"R>")
td[a].innerHTML="<center>"+TDS[1]+"</center>"
}}}}
if (location.href.indexOf("/index.cgi") != -1){
var td=document.getElementsByTagName("td")
for(t=0;t<td.length;t++) {
if(td[t].innerHTML.match("Topics")) {
if(td[t].width=="1%") {
td[t].innerHTML="<font class=text1 size=2><b>Statistics:</b></font>";
}}}
var td=document.getElementsByTagName("td")
for(q=0;q<td.length;q++) {
if(td[q].innerHTML.match("Posts")) {
if(td[q].width=="1%") {
td[q].innerHTML="<font class=text1 size=2><b>Moderators:</b></font>";
}}}
var td = document.getElementsByTagName('TD')
for(p=0; p<td.length; p++) {
if(td[p].innerHTML.match("by")) {
if(td[p].width=="24%"){
var line = td[p-3].innerHTML.split(":")
var mods = line[1];
var posts = td[p-1].innerHTML;
td[p-1].innerHTML=""+mods+"";
var topics = td[p-2].innerHTML;
td[p-2].innerHTML = "Posts: "+posts+"<br />Topics: "+topics+"";
}}}
var iMods = document.getElementsByTagName("i");
for(i=0;i<iMods.length;i++){
if(iMods[i].innerHTML.indexOf(/Moderators:/i) || iMods[i].innerHTML.indexOf(/Moderator:/i)){
iMods[i].innerHTML=""
}}}
</script> 
 


« Last Edit: Jul 6th, 2006, 12:13pm by Garet » User IP Logged

Simple Shout
*Free Remotely Hosted Shoutboxes!
*Unlimited Shouts
*100% Customizable
* Validating HTML 4.01 and CSS 2
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls