Luke
Code Helper
^.^
Posts: 6
Luke said 0 great things
|
Post by Luke on Jul 3, 2009 6:11:51 GMT -8
Browser Tested: IE and FF The one Ross posted here, doesn't work with v4.5 anymore. Here is a updated one that works. Description: This will add a message in the 'Last Post' column for guests in boards which they are not allowed to normally view. You can edit the red with your own message if you want. Main Footer: ( Or Global Footer to Affect Sub-Boards Too) <script type="text/javascript"> <!-- var cellHTML='Please <a href="?&action=login">Login</a> or <a href="?&action=register">Register</a> to view';
var td=document.getElementsByTagName('td'); for (m=0;m<td.length;m++) { if(!document.cookie.match(/\buser=/) && td[m].className=="windowbg2" && td[m].width=="24%" && !td[m].firstChild.innerHTML.match(/(by|in)/)) { td[m].innerHTML=cellHTML; } } //--> </script> PM me if you have problems.
|
|