The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Email & PM link in postbit
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 [DATE]1236038653[/DATE] at [TIME]1236038653[/TIME] --------------- Anyone know how to do this or have i put this in the wrong section, maybe should be in coding section. |
#2
|
|||
|
|||
Anyone know how. ??
|
#3
|
|||
|
|||
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.
Code:
<if condition="$show['pmlink']"> <a href="private.php?$session[sessionurl]do=newpm&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&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a> </if> I have only tested with postbit legacy but should work with regular postbit as well. Connor |
#4
|
|||
|
|||
Thanks :up:
works perfect, i changed the phrase to just say PM me / Email me just to make it shorter. |
#5
|
|||
|
|||
No Problem, you can also add images there using the <img src="PATH TO IMAGE" /> tag.
Connor |
#6
|
|||
|
|||
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?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|