Log in

View Full Version : Email & PM link in postbit


Andyrew
03-02-2009, 06:40 AM
Hi

I would like to put a text link in members postbit one that says Email me or email (username) and another that says PM me or PM (username), and they would work just the same as clicking the username normally for these options. Many of my users don't seem to know that you can click a user name for these options, so i would like two text links viewable in the postbits.
As i know nothing about coding can someone please tell me what i need to put in the postbit template, i am using horizontal postbit so would like it to be on the left under registered user, or in the middle would be even better if that's possible. :)

--------------- Added 1236038653 at 1236038653 ---------------

Anyone know how to do this or have i put this in the wrong section, maybe should be in coding section. :confused:

Andyrew
03-05-2009, 04:53 AM
Anyone know how. ??

cono1717
03-05-2009, 09:31 AM
To use the fuctions only if the user allows them to (i.e the email link will only show if the user has let people contact them via the email you will need to use IF conditionals.

<if condition="$show['pmlink']">
<a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a>
</if>
<if condition="$show['emaillink']">
<a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a>
</if>


That should do it though.

I have only tested with postbit legacy but should work with regular postbit as well.


Connor

Andyrew
03-05-2009, 02:36 PM
Thanks :up:

works perfect, i changed the phrase to just say PM me / Email me just to make it shorter. :)

cono1717
03-05-2009, 03:08 PM
No Problem, you can also add images there using the <img src="PATH TO IMAGE" /> tag.

Connor

dascrow
03-06-2009, 06:07 PM
Hi, I'm am looking to do the same thing but add the content of the message as well? I'm building a blog and I would like to get content from my forum. If someone feels the message is good and blog worthy I something that says "blog it", almost like the report a post. Any ideas for me?