Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Aug 19th, 2017, 08:08am


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: Remove Moderators List from Board Index  (Read 2929 times)
Roger
Conforums Administrator


member is offline

Avatar

"Pure intentions, its about the journey, not particularly the end result."


Homepage PM

Gender: Male
Posts: 12606
xx Remove Moderators List from Board Index
« Thread started on: Dec 8th, 2003, 10:18pm »

Code submitted by Ben Woodruff

<SCRIPT LANGUAGE="JavaScript">
// Don't list moderators hack
// Writen by Ben Woodruff
// http://hurritech.com

if(window.location.href.indexOf("index.cgi?") == -1 || window.location.href.indexOf("index.cgi?action=login2") !=-1 || window.location.href.indexOf("index.cgi?action=logout") !=-1){
getMod=document.getElementsByTagName("I")
for(m=0;m<getMod.length;m++){
if(getMod[m].innerHTML.indexOf("Moderator: ")!=-1 || getMod[m].innerHTML.indexOf("Moderators: ")!=-1){
getMod[m].innerHTML=""
}}}
</script>

This goes in the footers board index (main page) only. It will still work if you put it in all your footers, but it is just better if it only goes in the main ones.
« Last Edit: Aug 16th, 2006, 12:26pm by Garet » User IP Logged

Roger Sutton
User Image
Garet
Conforums Elite
Senior Member


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 2073
xx Re: Remove Moderators List from Board Index
« Reply #1 on: Jul 6th, 2006, 8:11pm »

Quote:
<script>
if(document.getElementsByTagName('td')[2].innerHTML.match(/Hey,/i)){
var TD = document.getElementsByTagName("TD")
for(i=0;i<TD.length;i++){
if(TD[i].className=="windowbg2" && TD[i].align=="left" && TD[i].width=="66%" && TD[i].innerHTML.match(/Moderators: none/i)){
TD[i].innerHTML+=" "
}}}
var i = document.getElementsByTagName('i');
for (m=0;m<i.length;m++) {
if (i[m].innerHTML.match(/Moderators: none/) && i[m].parentNode.size=="1")
i[m].style.display='none';
}
</script>


Main Footer

This code acts a little more differently then the above code it will remove the moderators:none only after all the moderators have been removed from a board via the admin section.
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