vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   How to add message button (https://vborg.vbsupport.ru/showthread.php?t=89072)

Jolten 05-02-2004 09:10 PM

How to add message button
 
Hi,

I'd like to add a sendpm button to my postbits templates that loads the PM with the to field set to the user who's post the button was clicked from.

Anyone know how to got about doing this?

Thanks.

Beermonster 05-03-2004 11:08 AM

If you are using VB3 then it's already there, just click on the persons user name and a drop down will apear :)

Tony G 05-03-2004 11:44 AM

Do you mean you want an actual button, like the quote button on this postbit, but one for PM? So, moved from the dropdown to the actual postbit?

Jolten 05-03-2004 01:55 PM

Yes an actual button. Many users do not realize there is a drop down menu with the username and no amount of pointing to them to the FAQ or explaining is ever enough. A button would solve a constant user issue for me.

Brad 05-03-2004 06:11 PM

Stick this anywhere in the postbit template

HTML Code:

<a href="private.php?do=newpm&userid=$post[userid]"><img src="/path/to/image.gif" alt="" border="0" /></a>

Jolten 05-03-2004 06:20 PM

Thanks Brad. That worked perfectly.


All times are GMT. The time now is 08:13 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.00981 seconds
  • Memory Usage 1,712KB
  • 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_html_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