vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - Private Message button in postbit footer (https://vborg.vbsupport.ru/showthread.php?t=236167)

trilOByte 02-16-2010 10:00 PM

Private Message button in postbit footer
 
1 Attachment(s)
This simple mod does what is says on the tin, it adds a PM button in the postbit footer using the vBulletin 4.0.2 css convention for mouseover buttons.

Note: This mod is NOT compatible with vBulletin 4.0.1 or earlier.

https://vborg.vbsupport.ru/external/2010/02/39.jpg

It could be argued that this is a little superfluous as there is a PM link in the dropdown under the members name, but that link requires a "click>>>scroll>>>click" to get to where you want to be. If your members use the PM system a lot, then they may appreciate a "one click" option.

There are...
1x addition to the postbit.css template
1x addition to the posbit (or postbit_legacy) template
2x images to upload

INSTRUCTIONS:
1x addition to he posbit.css template
Go to..
Styles & Templates>Stlye Manager>your skin>edit templates>CSS templates>postbit.css
----------------------------------------------------------------------
Find (search for "editpost"):
HTML Code:

.postbitlegacy .postfoot .textcontrols a.editpost, .postbit .postfoot .textcontrols a.editpost, .eventbit .eventfoot .textcontrols a.editevent  {
        background: url({vb:stylevar imgdir_button}/edit_40b.png) no-repeat transparent {vb:stylevar left} ;
        padding-{vb:stylevar left}: 20px;
}
.postbitlegacy .postfoot .textcontrols a.editpost:hover, .postbit .postfoot .textcontrols a.editpost:hover, .eventbit .eventfoot .textcontrols a.editevent:hover  {
        background: url({vb:stylevar imgdir_button}/edit_40b-hover.png) no-repeat transparent {vb:stylevar left};
        padding-{vb:stylevar left}: 20px;
}

Under that, put:
HTML Code:

.postbitlegacy .postfoot .textcontrols a.pminpostbit, .postbit .postfoot .textcontrols a.pminpostbit  {
        background: url({vb:stylevar imgdir_button}/pminpostbit_40b.png) no-repeat transparent {vb:stylevar left};
        padding-{vb:stylevar left}: 20px;
}
.postbitlegacy .postfoot .textcontrols a.pminpostbit:hover, .postbit .postfoot .textcontrols a.pminpostbit:hover  {
        background: url({vb:stylevar imgdir_button}/pminpostbit_40b-hover.png) no-repeat transparent {vb:stylevar left};
        padding-{vb:stylevar left}: 20px;
}

----------------------------------------------------------------------
Click "save".

1x addition to the posbit (or postbit_legacy) template:
Go to..
Styles & Templates>Stlye Manager>your skin>edit templates>postbit templates>postbit
----------------------------------------------------------------------
Find (search for "editpost"):
HTML Code:

<vb:if condition="$post['editlink']">                                       
                                        <a class="editpost" href="{vb:raw post.editlink}" name="vB::QuickEdit::{vb:raw post.postid}"><img src="{vb:raw vboptions.cleargifurl}" id="editimg_{vb:raw post.postid}" alt="{vb:rawphrase edit_delete_message}" /> {vb:rawphrase edit_post}</a>
                                        <span class="seperator">&nbsp;</span>
</vb:if>

Under that, put:
HTML Code:

<!-- ////////start PM button in postbit////// -->
<vb:if condition="$show['pmlink']"><a class='pminpostbit' href="private.php?{vb:raw session.sessionurl}do=newpm&amp;u={vb:raw post.userid}" rel="nofollow"><img src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase send_pm}" />PM</a><span class="seperator">&nbsp;</span></vb:if>
<!-- ////////end PM button in postbit////// -->

----------------------------------------------------------------------
Click "save".

2x images to upload:
FTP into your forum/images/buttons dir and upload these two attached images:
----------------------------------------------------------------------
pminpostbit_40b.png
pminpostbit_40b-hover.png
----------------------------------------------------------------------

That's it.

trilOByte 02-17-2010 09:10 PM

Reserved.

RobbieZ 02-17-2010 10:04 PM

Nice, This is to PM the PO their post as a quote ?

Jabong82 02-17-2010 10:04 PM

Excellent mod works perfectly with 4.0.2. Thanks again!

trilOByte 02-17-2010 10:10 PM

Quote:

Originally Posted by RobbieZ (Post 1985076)
Nice, This is to PM the PO their post as a quote ?

No, unfortunately not, that is a much more complex mod and I dont think it can be done with just a simple template edit (I'd be happy to be corrected if someone knows different??). This is a regular old PM button to the poster, it's just a convenience thing really.

Sancipa 02-19-2010 03:01 AM

thanks i love this one

Front Range 4x4 02-22-2010 07:28 PM

Thanks for this as well as the To the Top button, these are very nice touches my members really appreciate. I've double-checked everything and can't figure out why the image isn't showing for the PM. Any tips on where to look? The other works fine. Thanks!

trilOByte 02-22-2010 11:22 PM

What version of vBulletin are you using?

Front Range 4x4 02-23-2010 01:51 AM

4.0.2

Front Range 4x4 02-23-2010 12:08 PM

My apologies trilOByte, it works perfectly fine. Instead of double checking I need to triple check - operator error. :o

Installed - 5 stars!


All times are GMT. The time now is 02:54 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.01118 seconds
  • Memory Usage 1,749KB
  • 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
  • (4)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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