Post by Skidjit on Mar 24, 2013 19:14:53 GMT -8
give this a shot
<script type="text/javascript">
<!--
// UBBC in thread titles v1.0
// by Wormopolis - www.wormocodes.com
// do not repost (except on WC and PBS) - keep header intact
// v1.0 image support only
var forceHeight=43;
var forceWidth=225;
var imgTagArray=[
['[sstone]', 'http://i53.tinypic.com/2w6cw81.jpg'],
['[burn]', 'http://i54.tinypic.com/28qqefs.gif'],
['[nzquiz]','http://i54.tinypic.com/10rr91i.gif'],
['[dw]','http://i54.tinypic.com/2nbvkw9.png'],
['[OWLNEWT]','http://i53.tinypic.com/126e2k2.jpg'],
['[hunt]','http://i54.tinypic.com/b499qu.jpg']
]; //add in more tags in this array. first element is tag, second is image URL. no comma after last entry
if (pb_action!='headersfooters2') {
// scan page links to a thread title with defined tags
for (tag=0; tag<imgTagArray.length; tag++) {
if (document.body.innerHTML.match(imgTagArray[tag][0])) {
for (lnks=document.getElementsByTagName('a'), blah=0; blah<lnks.length; blah++) {
if (lnks[blah].href.match(/thread=/) && lnks[blah].innerHTML.match(imgTagArray[tag][0])) {
lnks[blah].innerHTML=lnks[blah].innerHTML.replace(imgTagArray[tag][0], '<img height="'+forceHeight+'px" width="'+forceWidth+'px" src="'+imgTagArray[tag][1]+'" border=0>');lnks[blah].href=lnks[blah].href.replace(/action=display/,'action=gotonewpost');
}
}
for (tds=document.getElementsByTagName('td'), cl=0; cl<tds.length; cl++) {
if ((tds[cl].width.match(/(55|80)%/) || tds[cl].className.match(/welcomebg/)) && tds[cl].innerHTML.match(imgTagArray[tag][0])) {
tds[cl].innerHTML=tds[cl].innerHTML.replace(imgTagArray[tag][0], '<img height="'+forceHeight+'px" width="'+forceWidth+'px" src="'+imgTagArray[tag][1]+'">');
}
}
}
}
}
// -->
</script>
=========================
Hello there Wormo! I am just hoping this will catch your eye. I've just began to do the trial BetaZone test site and was wondering if there is a way for this code to work there as well. The members and I at my original Proboard site are still very much enjoying the use of this code. We'd like to take it with us to BetaZone as well if we can.