vForums Support Banner


Visit Base Classics - Gaming Chairs

 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: [F] PM Message - View Topic
Topic Rating: *****
Printable View
This topic was locked 31st Mar 08 at 11:54am by Michael
-Sinister-
New Member
*

[Avatar]

Posts: 30
Status: Offline
Gender: Male
Joined:  
Reputation: 0%  


pmyahooxfire
[F] PM Message (25th Mar 08 at 1:22am UTC)
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
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: PM Message (25th Mar 08 at 1:37am UTC)
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>
 Printable View

All times are GMT+0 :: The current time is 6:59am
Page generated in 0.0847 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums