vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   PM button in postbit (https://vborg.vbsupport.ru/showthread.php?t=117971)

Fungsten 05-12-2007 07:07 PM

Do I add the new code below this? Thanks!

Quote:

<td class="alt1" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
</if>
<!-- controls -->

BadgerDog 05-17-2007 05:55 PM

Very nice Kerry-Anne.... :up:

Installed on v3.6.7 ..

Thank you... :)

Regards,
Badger

TuRKMeN 05-22-2007 06:13 PM

installed thanks!

Nutz 05-30-2007 11:15 AM

Thanks for the hack, this is what I'm using;
HTML Code:

<if condition="$post[userid] != $bbuserinfo[userid]">
<if condition="$show['pmlink']">
<if condition="!$post['forwardlink']">
<a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" target="_blank" rel="nofollow"><img src="$stylevar[imgdir_button]/sendpm.gif" alt="sendpm.gif" title="<phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase>" border="0" /></a>
</if>
</if>
</if>

HTML Code:

<if condition="!$post['forwardlink']">
adding that extra <if> stops the PM button from showing up when reading PM's as you already have forward and reply, figure you don't need 'PM' as well :)

Thanks,
Mat

thenewuser 06-20-2007 10:53 AM

Installed, neato.

SoftDux 06-20-2007 06:13 PM

Great addon, thanx :)

Outbackmark 06-23-2007 05:59 AM

Works well, thanks!

CrashPush 07-04-2007 09:38 PM

Works great! If anyone wants the send PM button to not open in a new window, remove a short line of code.

Remove this line of code:
Code:

target="_blank" rel="nofollow"

The new code should look like this:
Code:

<if condition="$post[userid] != $bbuserinfo[userid] AND THIS_SCRIPT!='private'"><if condition="$show['pmlink'] AND $show[member]"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]"><img src="$stylevar[imgdir_button]/sendpm.gif" alt="sendpm.gif" title="<phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase>" border="0" /></a></if></if>
Marked installed.

yaoren 08-05-2007 03:27 AM

**Installed**

And working well on 3.6.7 :)

Fungsten 08-06-2007 08:10 PM

In the Postbit Template, v. 3.6.8, I could find only:

Quote:

<div style="margin-top: 10px" align="$stylevar[right]">
<!-- controls -->
And not the:

Quote:

<div align="$stylevar[right]">
<!-- controls -->
as you mentioned in the instructions.

On Edit:

Also in the PB Legacy I found:

Quote:

<td class="alt1" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
</if>
<!-- controls -->
And not the:

Quote:


<div align="$stylevar[right]">
<!-- controls -->



All times are GMT. The time now is 07:31 PM.

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.01117 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete