vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   PM symbol in postbit (https://vborg.vbsupport.ru/showthread.php?t=114908)

Ohiosweetheart 05-06-2006 11:48 AM

PM symbol in postbit
 
I'd love to see a private message symbol in the postbit, like there is for the vPager. In the bar next to the rep symbol, bad post symbol, etc.

Mark.B 05-06-2006 12:04 PM

That's quite easy to do.

For legacy postbits, in template postbit_legacy find:
Code:

$post[iplogged]
                 

Add after:
Code:

<if condition="$post[userid] != $bbuserinfo[userid]"><if condition="$show['pmlink']"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" target="_blank" rel="nofollow"><img src="$stylevar[imgdir_button]/pmimage.gif" alt="pmimage.gif" title="<phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase>" border="0" /></a></if></if>
Then take the image you want to use, call it pmimage.gif, and upload it to your /images/buttons folder for each style.

This will display a PM link that opens in a new window (remove target="_blank" to make it open in the same window). It also should only show the button to members, and should not show it in your own posts as you wouldn't normally PM yourself!

For standard postbits the same code can be used, and I imagine it could go in the same place, but I don't use standard postbits so I can't check. But instead of editing the template 'postbit_legacy', edit the template 'postbit'.

Ohiosweetheart 05-06-2006 12:10 PM

wonderful!!!! thank you Mark *kiss*

efil 06-08-2006 08:47 PM

Hi,
i did exactly as you explained , but it's not working.

efil.

LBSources 06-08-2006 08:50 PM

Quote:

Originally Posted by Ohiosweetheart
I'd love to see a private message symbol in the postbit, like there is for the vPager. In the bar next to the rep symbol, bad post symbol, etc.

https://vborg.vbsupport.ru/showthrea...m+from+postbit

Boofo 06-08-2006 09:57 PM

Quote:

Originally Posted by Ohiosweetheart
I'd love to see a private message symbol in the postbit, like there is for the vPager. In the bar next to the rep symbol, bad post symbol, etc.

Why not just use the Quote Post in PM hack I just redid?

peterska2 06-08-2006 11:13 PM

Quote:

Originally Posted by Boofo
Why not just use the Quote Post in PM hack I just redid?

Surely my PM button in postbit would work more along the lines of the request. :p

Boofo 06-08-2006 11:30 PM

Ok, whatever. ;)


All times are GMT. The time now is 09:20 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.01066 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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