PDA

View Full Version : Private message link syntax?


trilOByte
02-12-2010, 07:25 AM
Hi guys, can anyone tell me what the correct syntax is for a PM link in the postbit to autofill the recipient?

I'm working on a button mod and I'm scratching my head with this one.

What I've got so far is...

<vb:if condition="$show['pmlink']">
<a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow">Private Message</a></vb:if>

...but it just takes me to private.php with no recipient details.


...also as an aside (and this is a big ask), does anyone know if a PM link syntax can be made to quote a forum message and autofill the subject line with the thread topic?

trilOByte
02-15-2010, 11:23 AM
Anyone offer some help on this?

I'm trying to figure the syntax for a "send PM" link in the postbit...

I've got...

<vb:if condition="$show['pmlink']"><a class='pmwithquote' href="private.php?{vb:raw session.sessionurl}do=newpm&amp;u={vb:raw memberinfo.userid}" rel="nofollow"><img src="{vb:stylevar imgdir_button}/trans_40b.png" alt="{vb:rawphrase send_pm}" />PM</a><span class="seperator">&nbsp;</span></vb:if>

...it launches the PM form, but doesnt load the userid from the post. What am I doing wrong?