Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Aug 21st, 2017, 4:24pm


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: Quick Info Center  (Read 3257 times)
Garet
Conforums Elite
Senior Member


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 2073
xx Quick Info Center
« Thread started on: Aug 19th, 2006, 03:07am »

Name: Quick Info Center [cb]

Submitted by: Zando

Description: Customize your info center.
Click here for Preview
Cross Browser: IE, FF & Opera

Location: Main Footers

Code:

<script type="text/javascript">
<!--

/*Quick Info Center, By Zando*/
if(location.href.match(/com\/?((index\.cgi)?\??(action=(logout|home))?(#.+)?)?$/)){
var tdz=document.getElementsByTagName("td")
var zCategories="0";
for(z=0;z<tdz.length;z++){
if(tdz[z].className.match(/catbg/) && !tdz[z].innerHTML.match(/Forum Statistics|Users Online|markallboardsread/)){
zCategories++;
}
}
var zBoards="0";
for(z=0;z<tdz.length;z++){
if(tdz[z].width=="66%" && tdz[z].className.match(/windowbg2/) && tdz[z].align=="left"){
zBoards++;
}
}
for(z=0;z<tdz.length;z++){
if(tdz[z].vAlign=="top" && tdz[z].align=="left" && tdz[z].width=="60%"){
var bld=tdz[z].getElementsByTagName("b")
var bod=tdz[z+1].getElementsByTagName("b")
var zTopics=bld[0].innerHTML;var zPosts=bld[1].innerHTML;
var zUpdate=bld[2].innerHTML;zMembers=bod[0].innerHTML;
if(tdz[z+1].innerHTML.match("Newest Member: (.+)(\<B"+"R>Y|\<b"+"r>Y)")){
var zNew=RegExp.$1
}
if(tdz[z+4].innerHTML.match(/(\d+) Guest/)){
var zGuestNo=RegExp.$1
}
if(tdz[z+4].innerHTML.match(/, (\d+) Member/)){
var zMemberNo=RegExp.$1
}
if(tdz[z+4].innerHTML.match(/(\d+) (Guest|Guests), (\d+) (Members|Member)(.+)(\<\/A>|\<\/a>)/)){
var zOnline=RegExp.$5
}else{
var zOnline="No Members Online.";
}
tdz[z+4].parentNode.style.display="none";
tdz[z+2].parentNode.style.display="none";
tdz[z+1].style.display="none";
tdz[z].width="100%";tdz[z-1].width="100%";
tdz[z].innerHTML='<table width="100%" class="bordercolor" cellspacing="0" cellpadding="0" border="0"><tr><td><table cellpadding="4" cellspacing="1" border="0" width="100%"><tr><td class="windowbg2" align="center" colspan="2"><font size="1">Total Topics (<b>'+zTopics+'</b>) - Total Posts (<b>'+zPosts+'</b>) - Total Categories (<b>'+zCategories+'</b>) - Total Boards (<b>'+zBoards+'</b>)</font></td></tr><tr><td align="center" class="windowbg2" colspan="2"><font size="1">Guests Online (<b>'+zGuestNo+'</b>) - Members Online (<b>'+zMemberNo+'</b>)</font></td></tr><tr><td width="50%" class="windowbg2" valign="top"><font size="1">'+zOnline+'</font></td><td class="windowbg2" width="50%"><font size="1">We currently have a total of <a href="/index.cgi?action=mlall"><b>'+zMembers+'</b></a> members.<b'+'r>Welcome <b>'+zNew+'</b> as our newest member.<b'+'r>Last Updated Topic Was (<a href="/index.cgi?action=recenter"><b>View Recent Posts</b></a>):<b'+'r><b>'+zUpdate+'</font></td></tr></table></td></tr></table>';
}
}
}

//-->
</script>
« Last Edit: Aug 19th, 2006, 03:21am by Dave » User IP Logged

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