|
Post by CFP wolf on Sept 27, 2009 3:14:47 GMT -5
This is a special code that allows you to put a tag like [#username] in a post, which will automatically change to a user's name when they read it. That is, you'd type the code into the post, and whenever someone reads it, the code automatically changes to their display name Global Footer <script type="text/javascript"> <!-- /* Code for user's display name in posts or PMs by california, socal.proboards26.com */ var usercode="\\[#username\\]"; var td=document.getElementsByTagName("td"); var re = new RegExp(usercode,"g"); if(!location.href.match(/headersfooters/) && !document.postForm && !document.ammForm){ if(document.title.match(re)){ document.title=document.title.replace(re, pb_displayname); } for(i=0;i<td.length;i++){ if(td .innerHTML.match(re)){ td.innerHTML = td.innerHTML.replace(re, pb_displayname); } } } // --> </script>
Put this in your Global Footer
|
|