|
Post by Smangii on May 15, 2006 18:14:43 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 Sarah on May 16, 2006 16:39:41 GMT -5
how do you change the member of the month? or does it do it on it's own?
|
|
|
Post by Smangii on May 16, 2006 21:44:40 GMT -5
Where it says
var user = "admin"; // Member of the month username var name = "Administrator"; // Member display name
You just add the winner's username and display name there. Your username could be 'sarah' but your display name could be .::SaRaH!!!::. or something, ya know? That's all the editing you need for that, unless you want to change something else?
|
|
|
Post by 40ringz on Mar 28, 2007 14:17:46 GMT -5
Awww.... I'm in the screenie! ^-^ I was even the newest member!
|
|
|
Post by Andrew on Mar 29, 2007 6:55:45 GMT -5
Nice code
|
|
|
Post by Ifrit on Aug 6, 2007 11:29:40 GMT -5
-gasp- People stealing codes?! WHERE! Lemme at em! -growls- lol
|
|
|
Post by Andrew on Aug 7, 2007 6:24:37 GMT -5
Smangii posted ths Xymic o.O WHo are you on about?
|
|
|
Post by ~•XyMiC•~ on Aug 7, 2007 22:05:58 GMT -5
lol, neon kinda edited that code so I posted that comment, but seems like he deleted his post
|
|
|
Post by Ifrit on Aug 8, 2007 15:32:32 GMT -5
Oh okay, lol I was like WHAT THE DUCK MAN! Hahaa
|
|