vForums Support > Programming & Coding :: Code Requests & Support :: > [F] PM Message

[F] PM Message - Posted By -Sinister- (that1dude) on 25th Mar 08 at 1:22am
I need a code that will say this for a member:

Quote:
You have 1 new message!
( Inbox | Outbox | Compose )


And this for guest:

Quote:
Please Login or Register


Im not used to vForum coding....yet {Tongue Out}

Thanks

Re: PM Message - Posted By Michael (wrighty) on 25th Mar 08 at 1:37am
Place the following where you want the message: (Global Header)
<div id='pm_message'></div>


Place this in your global footer:
<script>
/*PM Message*/

if(vf_username=='guest'){
    var m = 'Please <a href=/action/login>Login</a> or <a href=/action/register>Register</a>';
}else{
    var m = 'You have '+vf_new_pms+' new message!<br />(<a href=/action/pm/>Inbox</a>|<a href=/action/pm/view/outbox>Outbox</a>|<a href=/action/pm_send</a>)';
}

get('pm_message','id').innerHTML = m;
</script>