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!

trilOByte 02-23-2010 01:37 PM

No worries. :)

zeroality 03-10-2010 09:02 PM

Great mod. Thanks.

andreamarucci 03-11-2010 09:03 AM

Great thanks!

Sparrow-Sean 05-14-2010 01:57 AM

Did not work on 4.0.3!

Bounce 05-15-2010 04:17 PM

Quote:

Originally Posted by Sparrow-Sean (Post 2036699)
Did not work on 4.0.3!

Worked perfectly on my 4.0.3.

Thanks trilOByte :up:

Alec W 05-21-2010 08:02 PM

Thanks and for the To the Top. Our users really like these.

rizve69 05-28-2010 06:18 AM

hello mate,

thanks for this nice hack but i have one problem after adding my reply with quote button coming under others button.please check it.

http://i48.tinypic.com/2l95n3l.gif

thanks for this awesome code.looking forward to you as i am new in vb4.

trilOByte 05-28-2010 09:45 PM

One of two things, either you have a modified postbit template, or you have pasted the code into the wrong place - I think the latter.

Where I say "find in postbit" you need to find the whole block of code....

Quote:

<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>
<<<<---the new code goes here.
and paste the new bit, right after the "</vb:if>" on a new line.

You need to be very exact where you put the code. If you paste your postbit template here, I'll take a look at it.

Or.... you are using a fixed width postbit_legacy template that is too small for all the buttons and forces them to wrap onto a new line.

Fuhrmann 05-29-2010 09:16 PM

Nice one, already made this here. Thanks.

Hippy 06-03-2010 12:54 AM

what do I have to add so when you mouse over it will say send pm to the user
thanks

Hippy 06-03-2010 01:21 AM

1 Attachment(s)
Figured it out
Feel free to add to your mod
I added this in postbit and / postbit_legacy code
Code:

To {vb:raw post.username}
from this
Code:

<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} To {vb:raw post.username}" />PM</a>
                                        <span class="seperator">&nbsp;</span>

to this
Code:

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


gossone 06-04-2010 12:41 PM

Quote:

Originally Posted by Sparrow-Sean (Post 2036699)
Did not work on 4.0.3!


Worked perfectly on my 4.0.3.

Thanks trilOByte

Hippy 06-04-2010 10:17 PM

Does anyone know how This can be removed from private message

ndut 06-08-2010 02:16 AM

nice.. thank you

kabir 08-09-2010 04:19 AM

Not Work to Version 4.0.5

COL NIL SATIS 09-01-2010 05:54 PM

tagged

COL NIL SATIS 09-01-2010 07:26 PM

Mate i added the go to top button ..that looks great ..but when i tried to add this one it throws the go to top one below ...any ideas...????

im certain i did the temp edits spot on too ....great mods by the way

COL NIL SATIS 09-01-2010 07:29 PM

Quote:

Originally Posted by Hippy (Post 2047395)
Figured it out
Feel free to add to your mod
I added this in postbit and / postbit_legacy code
Code:

To {vb:raw post.username}
from this
Code:

<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} To {vb:raw post.username}" />PM</a>
                                        <span class="seperator">&nbsp;</span>

to this
Code:

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


does that add it in the right place bud?? :)

mine pushed th goto top button way out ...but will try your solution

Hippy 09-01-2010 08:25 PM

worked well for me ..
I killed this mod because it was messing up private message

mishb68 09-29-2010 01:54 AM

Couldn't make it work in 4.0.6

kingmotox 10-16-2010 07:42 AM

any updates for 4.0.7

markwein 10-16-2010 08:06 PM

Works great in my forum and I also have the "Top" button in my postbit_legacy as well...I'm running 4.0.7 at the moment and I just followed the instructions with no modifications.

OurCouponHome 10-18-2010 12:42 PM

I added it but the image isn't showing just "pm"

EconomicVoice 10-18-2010 07:02 PM

I had the problem of it just showing pm with no picture but saw that the codes were slightly different. I replaced the stated code on the css file with:

.postbitlegacy .postfoot .textcontrols a.pminpostbit, .postbit .postfoot .textcontrols a.pminpostbit, .eventbit .eventfoot .textcontrols a.editevent {
background: url({vb:stylevar imgdir_button}/pminpostbit_40b.png) no-repeat {vb:stylevar postbit_control_background} {vb:stylevar left} ;
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_border};
}
.postbitlegacy .postfoot .textcontrols a.pminpostbit:hover, .postbit .postfoot .textcontrols a.pminpostbit:hover, .eventbit .eventfoot .textcontrols a.editevent:hover {
background: url({vb:stylevar imgdir_button}/pminpostbit_40b-hover.png) no-repeat {vb:stylevar postbit_control_hover_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_hover_border};
}

Worked for me.

Xeyn 10-19-2010 04:10 PM

excellent..Installed on 4.0.7

Special Pages 05-24-2011 11:22 PM

This is great! Thanks sir!

phinphan 06-14-2011 03:03 AM

I installed the mod and get no results at all. No change to the display. Any suggestions.

nacaruncr 06-18-2011 01:46 AM

tagged + installed + 5 stars :D

working excellent in 4.1.3 :D thanks :D

LisaArnold 07-10-2011 06:49 AM

Sorry, I can't get it working with v4.1.4 :(

Will try again if it gets updated. :)

Merenguista 07-10-2011 10:42 AM

thanks


All times are GMT. The time now is 05:20 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.02026 seconds
  • Memory Usage 1,830KB
  • 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
  • (6)bbcode_code_printable
  • (4)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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