Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
<script type="text/Javascript">
// Different New/No New Icons for Different Boards by Chris
// Do not redistribute without permission of the creator

// Scroll down to find edit portion
var aAH = document.links;
function iconChange(bid, onicon, officon){
if(location.href.match(/action=(view_board|home)/i) || !location.href.match(/action=/i)){
for(a=0;a<aAH.length;a++){
if(aAH[a].href.match(new RegExp("board_id="+bid+"($|&)", "gi")) && aAH[a].parentNode.nodeName == "B"){
var c = aAH[a].parentNode.parentNode.parentNode.cells[0];
c = c.getElementsByTagName("img")[0];
c.src = (c.alt.match(/No/)?officon:onicon);
break;
}
}
}
}


// EDIT HERE. Repeat the following line as necessary:
// SYNTAX: iconChange(BOARDID, "NEW ICON URL", "NO NEW ICON URL");
iconChange(1, "URL of new icon", "URL of old icon");
iconChange(3, "URL of new icon", "URL of old icon");
</script>


This module allows for you to have a different new and no new posts image for different boards.

It goes in your global footers.

Aaron

Aaron Avatar
WWWWWWWWWWWW

****
Senior Member

434


November 2005
If this hasn't already been suggested, you should update this for v5.

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Aaron Avatar
If this hasn't already been suggested, you should update this for v5.


a HyperBoards code? :P

Aaron

Aaron Avatar
WWWWWWWWWWWW

****
Senior Member

434


November 2005
I didn't realize there was already a PBv5 plugin for this on PBS... and I didn't realize this was a HyperBoards code, so I just checked that place out since it's been forever. Hasn't changed much lol.

newBookmarkLockedFalling