Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Guest Last Post Column Message (12th Apr 08 at 12:19pm UTC) | | This code will allow you to choose a message to display in the last post column when the user views as a guest and they don't have access to the board. The default is: "Please login or register". Change the part in red
<script> /*Guest last post column message Created By Wrighty Don't: Rip, Repost or Claim!*/
var message = "Please <a href='/action/login'>Login</a> or <a href='/action/register'>Register</a>";
var d = get('td','tag');
if(vf_username=='guest'){ for(i=0;i<d.length;i++){ if(/lastpost/i.test(d[i].className) && d[i].firstChild && d[i].firstChild.innerHTML == ''){ d[i].firstChild.innerHTML = message; } } } </script>
Global Footer | |
|