vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Email & PM link in postbit (https://vborg.vbsupport.ru/showthread.php?t=207074)

Andyrew 03-02-2009 06:40 AM

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. :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.

Code:

<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

1 Attachment(s)
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?


All times are GMT. The time now is 08:55 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00906 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete