|
Post by Smangii Posting Profile on Nov 29, 2010 18:00:25 GMT -6
For those sites who have both forum and member of the month, you can display it in your info center with urls to forums and member profiles. Preview: ClickCrossBrowser: Yes Locaition: Main Footer <script type="text/javascript"> // SIGFX Info Center Editing - Add Forum + Member of the Month // Coded by Smangii of SIGFX // http://smangii.proboards.com // Repostable, but with this header intact
var TD = document.getElementsByTagName("TD"); // Do not edit this var user = "admin"; // Member of the month username var name = "Administrator"; // Member display name var month = "December"; // This current month var url = "FORUM URL"; // Forum of the month URL var forum = "FORUM NAME"; // Name of the Forum
// DO NOT EDIT BELOW for(t=0;t<TD.length;t++){if(TD[t].innerHTML.match(/Total Topics:/i) && TD[t].width=="60%"){ TD[t].innerHTML +='<br />' TD[t].innerHTML +='----------------------------------------------------------------' TD[t].innerHTML +='<br />' TD[t].innerHTML += month+' Member of the Month: <a href="/index.cgi?action=viewprofile&user='+user+'">'+name+'</a>' TD[t].innerHTML +='<br />' TD[t].innerHTML += month+' Forum of the Month: <a href="'+url+'">'+forum+'</a>'}} </script>
|
|