Post by 3x3 on May 23, 2008 18:42:48 GMT -8
Forum URL: foxvssquirrel.proboards77.com/
Example URL: foxvssquirrel.proboards77.com/index.cgi?action=viewprofile&user=admin
Description: I wanted to use a color tag for just one word, but it made pretty much the rest of the personal text that color. And then suddenly it stops.
Experienced By: Not sure
Code URL: support.proboards.com/index.cgi?board=codedatabase&action=display&n=1&thread=70696
Code:
Web Browser: Mozilla Firefox
Additional Information: I have Firefox, I'm not sure if this happens on IE, but it's just weird.
Example URL: foxvssquirrel.proboards77.com/index.cgi?action=viewprofile&user=admin
Description: I wanted to use a color tag for just one word, but it made pretty much the rest of the personal text that color. And then suddenly it stops.
Experienced By: Not sure
Code URL: support.proboards.com/index.cgi?board=codedatabase&action=display&n=1&thread=70696
Code:
<script type="text/javascript">
<!--
/* UBBC in Personal Text - Ross - Open Source */
if(location.href.match(/action=(display|gotopost|(pm)?(calendar)?view|(user)?recent|search2)/)) {
var td = document.getElementsByTagName('td');
for(i=0; i<td.length; i++) {
if(td.item(i).width == '20%' && td.item(i).vAlign == 'top') {
td.item(i).innerHTML = td.item(i).innerHTML.replace(/\[(br|hr)\]/gi, '<$1 />');
td.item(i).innerHTML = td.item(i).innerHTML.replace(/\[(b|i|u|s(up|sub)?|pre|tt)\](.*)\[\/(\w+)\]/gi, '<$1>$3</$1>');
td.item(i).innerHTML = td.item(i).innerHTML.replace(/\[color=(.+?)\](.*)\[\/color\]/gi, '<font color="$1">$2</font>');
td.item(i).innerHTML = td.item(i).innerHTML.replace(/\[(right|left|center)\](.+?)\[\/(right|left|center)\]/gi, '<p align="$1">$2</p>');
td.item(i).innerHTML = td.item(i).innerHTML.replace(/\[(url|ftp)=((ht|f)tps?:\/\/\w+)\](.+?)\[\/(url|ftp)\]/gi, '<a href="$2">$4</a>');
td.item(i).innerHTML = td.item(i).innerHTML.replace(/\[email\](.+?)\[\/email\]/gi, '<a href="mailto:$1">$1</a>');
td.item(i).innerHTML = td.item(i).innerHTML.replace(/\[img\](https?:\/\/.+?\.(gif|jpe?g|png))\[\/img\]/gi, '<img src="$1" />');
td.item(i).innerHTML = td.item(i).innerHTML.replace(/\[move\](.+?)\[\/move\]/gi, '<marquee>$1</marquee>');
}
}
}
//-->
</script>
Web Browser: Mozilla Firefox
Additional Information: I have Firefox, I'm not sure if this happens on IE, but it's just weird.