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)

grecostimpy 01-12-2007 11:35 AM

Funboy, 3.6.4 is a slightly different.

Find this:

Code:

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

.....and insert the code directly beneath it.

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]" 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>

blind-eddie 01-15-2007 05:21 PM

What would I need to do to add page along side pm, for those of use with vbpager?

voter 01-16-2007 08:04 AM

I put it in postnit_legacy after <if condition="$show['reportlink']"> to show the button near user name

PoetJA-1975 01-21-2007 02:56 PM

Very nice! Thanx for the share!

Jacquii.

DasCool 02-03-2007 12:59 AM

Ok i Can't even make it work, what is going on? I edited the Post Bit since that is where i found the code

rusty123 02-17-2007 11:33 AM

For some reason i couldnt make it work in the postbit legacy template, but it worked fine in the postbit template. If one doesnt work for you try the other, there is a <!-- controls --> in both templates.

WAHMama 03-25-2007 07:41 PM

Thanks, worked great :)

princeedward 04-05-2007 03:37 PM

Great & thanks for this nice mod....work fine to my vB 3.6.5 ;)

eNtitY~ 05-01-2007 03:02 PM

Will this auto update for each template (the button) or is it generic?

ragnar21583 05-02-2007 08:09 AM

Worked like a charm! Had to do some searching, as there was more than one <!-- controls --> in the postbit legacy. :)


All times are GMT. The time now is 04:52 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.01054 seconds
  • Memory Usage 1,727KB
  • 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
  • (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