|
Post by Smangii on May 16, 2006 21:40:35 GMT -5
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.proboards78.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>
|
|
|
Post by IamThe0men on Feb 16, 2007 18:39:06 GMT -5
This looks like a useful code for me. I have one question though. Does this work if you already have a Info Center code already installed?
|
|
|
Post by The Man | Luke on May 27, 2007 14:44:03 GMT -5
Good post
|
|
|
Post by Foley on Jul 16, 2007 3:28:08 GMT -5
I think this code doesnt work with info center codes but wait i am not sure
|
|
Matt
Graphics Admin
Great admin or greatest admin?
Posts: 4,891
|
Post by Matt on Jul 16, 2007 8:52:17 GMT -5
I would assume it would work with a few minor modifications, but definitely not a completely new IC.
|
|