inherit
42438
0
Mar 16, 2006 20:56:27 GMT -8
Tammy™
1,961
May 2005
sexytammy
|
Post by Tammy™ on Jun 20, 2005 6:30:00 GMT -8
im currently using this code to modify the Moderators: display
<script type='text/javascript'> <!-- /* Modify Mod Display by Nick */
// What you want to replace Moderator and Moderators with var iPrefix = "<b>Moderators:</b>"
// What you want to Start the moderator display with var iStart = " "
// What you want to End the moderator display with var iEnd = " "
var iTD = document.getElementsByTagName('TD'); for(R=0;R<iTD.length;R++){ if(iTD[R].className=="windowbg2" && iTD[R].width=="66%" && iTD[R].innerHTML.match(/Moderators: none/i)){ iTD[R].innerHTML = iTD[R].innerHTML.replace(/<br\/>Moderators: none/i,''); } else if(iTD[R].className=="windowbg2" && iTD[R].width=="66%" && iTD[R].innerHTML.match(/Moderator:|Moderators:/i)){ iTD[R].innerHTML = iTD[R].innerHTML.replace(/<\/i>/i,iEnd); iTD[R].innerHTML = iTD[R].innerHTML.replace(/<i>/i,iStart); iTD[R].innerHTML = iTD[R].innerHTML.replace(/Moderator:|Moderators:/i,iPrefix); }} //--> </script>
The code goes into the main footer.
But i have just made a sub-board, and the mod display isnt working on the sub-board, obviously because the code is only in the main footer, and sub-board isnt on the main page. I have tried putting the code in the sub-boards footer and header, but it isnt working.....any idea's?
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jun 20, 2005 12:36:46 GMT -8
Code seems a little long for what I think it's ment to be doing. Does it just change the "Moderators:" text under the board description? If so, i'll create you a better one, just post a request in the request board
|
|