Post by Ross on Jan 31, 2007 16:20:09 GMT -8
Global Footer. Quite simply it allows the use of the majority of UBBC tags in the personal text field of your profile.
modified to not affect polls - Wormo 8/9/2010bug fix on regexp for sub tag - Wormo 12/24/2010
<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[i].getElementsByTagName('input').length==0) {
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|ub)?|pre|tt)\](.*)\[\/(\w+)\]/gi, '<$1>$3</$1>');
td.item(i).innerHTML = td.item(i).innerHTML.replace(/\[size=(.+?)\](.*)\[\/size\]/gi, '<font size="$1">$2</font>');
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>
modified to not affect polls - Wormo 8/9/2010bug fix on regexp for sub tag - Wormo 12/24/2010