PDA

View Full Version : PM button in postbit


peterska2
08 Jun 2006, 03:16
This is the new and improved version of the PM button in postbit modification found here (http://www.vbulletin.org/forum/showthread.php?t=100822).

What does it do?
Adds the PM button to the postbit of each user next to the edit button.
It does not show in your own postbit, as you don't really want to send yourself a PM - do you? :p

So what's new and improved about it?
It no longer shows in the private messages or to guests.

How to install
Download the text file and perform the enclosed template edit.

For those who want to know what it looks like, a screen shot is attached.

friendly
09 Jun 2006, 03:31
installed! seems to work, but 3.6 was just installed and i'll verify when a new user is added. It looks good in the preview. :)

Thanks!

thc
10 Jun 2006, 18:05
thanks !

Terminatoronly
24 Jul 2006, 17:35
installed thanks

yesfans
06 Aug 2006, 05:21
This is not working for me on 3.6.0, should it,. can it??

yesfans
06 Aug 2006, 18:43
anyone?

peterska2
06 Aug 2006, 21:34
There is no reason why it wouldn't work.

When you say it isn't working, in what respect do you mean?

Brandon Sheley
07 Aug 2006, 00:25
nice, now to find someone to make a matching icon for the style :)

yesfans
09 Aug 2006, 01:17
I have it coded into POSTBIT as you state for 3.6 but it does nothing, shows nothing. I was able to get it to work in 3.6rc1 but not this new 3.6. I do not see the code you say to look for in the postbit legacy.

peterska2
10 Aug 2006, 16:49
It doesn't show in your own posts, so you need to look at someone elses posts to see it.

Also if you cannot find the entire code to find, just search for<!-- controls -->

yesfans
12 Aug 2006, 16:57
I got it!

ctsolutions
19 Aug 2006, 00:19
with the first line code:

<if condition="$post[userid] != $bbuserinfo[userid] AND THIS_SCRIPT!='private'">

didnt run by me, on vbulletin 3.6.

without the first line runs, like a charm.

thanks,
mike

Snake
20 Aug 2006, 12:19
Thanks for the 3.6 version! :)

davelacey
25 Aug 2006, 16:15
Works like a charm.
Many thanks. :)

Gnappy
28 Aug 2006, 23:46
thanks

Ascor
29 Aug 2006, 02:57
Installed works fine, thank you :)

Acido
01 Sep 2006, 09:08
Any chance to quote the post message into the PM?

Edit: Nevermind. I found this hack: http://www.vbulletin.org/forum/showthread.php?t=115315

Kihon Kata
04 Sep 2006, 19:38
Installed. is good!

IAWBody
13 Sep 2006, 22:25
Installed, Great install thanks!!!

EMBX
23 Oct 2006, 07:28
Nice Hack, Thank you

* clicks install *

dnclub.org
26 Oct 2006, 02:51
doesn't work for me on 3.6.2 :surprised:

can somebody help ?

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

Thanks
Dave

McMendo
05 Nov 2006, 22:00
Also if you cannot find the entire code to find, just search for
<!-- controls -->*click* installed. Thank you.

But now I'm left to wonder what this line of code that I don't have in my postbit_legacy or postbit templates is. I'm missing bits and pieces since I upgraded from 3.5.4 to 3.6.
<if condition="$post[userid] != $bbuserinfo[userid] AND THIS_SCRIPT!='private'">

phovanxua
07 Nov 2006, 06:28
Installed ...work on 3.6.2 and 3.5.4 .

Thanks .

oberheimhaven
09 Nov 2006, 00:34
Very nice hack thank you!!!
Installed 3.6.0 zero issues!!
Musiciansquarters.com

yoyoyoyo
09 Dec 2006, 04:23
the code seems to have changed for 3.6.4

KURTZ
11 Dec 2006, 14:19
3.6.4 works correctly :P

Veer
12 Dec 2006, 16:37
Installed.

Is there any way to add another button (E-mail this page) on thread's 1st post in postbit template?

Thanks.

ND4SPD
22 Dec 2006, 01:09
Great tweak. Thanks!

peterska2
22 Dec 2006, 13:01
Installed.

Is there any way to add another button (E-mail this page) on thread's 1st post in postbit template?

Thanks.
I'll see about that next time I'm in the style manager.

smoknz28
23 Dec 2006, 14:15
the code seems to have changed for 3.6.4

Yea it did to:

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


Regardless...there's only one <!-- controls --> piece in that particular template.

Added the code in the instructions under it.

Working with no issues. ;)

Thanks for sharing this code with us. :up:

SkippySkippy
23 Dec 2006, 19:17
Nice and simple, installed. :)

-Skip

cbiweb
24 Dec 2006, 03:28
I'm wondering why this is needed when there's a link to PM the person in their username drop-down?

bplinson
01 Jan 2007, 19:19
Very Nice

encryption
09 Jan 2007, 11:57
It didnt work for me either. 3.6.4

Installed it in the postbit template and it doesnt appear in the post

I even deleted <if condition="$post[userid] != $bbuserinfo[userid] AND THIS_SCRIPT!='private'"></if> and still no go

peterska2
09 Jan 2007, 14:05
I've only just upgraded to 3.6.4 last night, so any problems are going to be revisited over the coming days/weeks and updates issued where required.

In saying that though, there isn't any reason why this wouldn't work that I am aware of.

encryption
09 Jan 2007, 15:30
Thanks for the update, I had only updated the postbit section, added it to posbit legacy and sure enough it pops right up

KURTZ
09 Jan 2007, 21:40
K-Anne what are the code changes in your latest update?

i've installed this mod w/out any issues ... so what i do now?

peterska2
09 Jan 2007, 23:22
K-Anne what are the code changes in your latest update?

i've installed this mod w/out any issues ... so what i do now?


Absolutely nothing. ;)

If there is to be an update it unknown yet, and if there is then I have no idea what it will be.

(Can you guess I haven't even thought about it yet?)

Funboy
11 Jan 2007, 23:36
Hi Kerry-Anne,

I like the look of this hack however I seem to has missed the point I think re the template edit?

Version 1.0.2

Changes in v 1.0.2

Does not show PM button in private messages
Does not show PM button to guests


TEMPLATES TO EDIT = 1

Template postbit (or postbit legacy)

FIND

<div align="$stylevar[right]">

I have version 3.6.4 and the only place I can find <div align="$stylevar[right]"> is in postbit_quickedit which can not be right surely?

I have done a full search in templates as I could not find the code in postbit when looking direct.

Any light you could shine why I am not seeing this in the postbit or postbit legacy would be wonderful.

Regards
Funboy


Update and the word TYPICAL come to mind!!!!

Just made this post then found what I was looking for!

For anyone else trying to add this look for this <div style="margin-top: 10px" align="$stylevar[right]"><!-- controls --> if you have any form of styling running on your forum as the style="margin-top: 10px" cought me right out on this one.

O'well all sorted at last so I can now say thank for a nice hack and worked first time once I found the above problem. One for my book that one!!!

Thanks again,

Regards
Funboy

grecostimpy
12 Jan 2007, 12:32
Works fine for me in 3.6.4.

grecostimpy
12 Jan 2007, 12:35
Funboy, 3.6.4 is a slightly different.

Find this:

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

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

<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
15 Jan 2007, 18:21
What would I need to do to add page along side pm, for those of use with vbpager?

voter
16 Jan 2007, 09:04
I put it in postnit_legacy after <if condition="$show['reportlink']"> to show the button near user name

PoetJA-1975
21 Jan 2007, 15:56
Very nice! Thanx for the share!

Jacquii.

DasCool
03 Feb 2007, 01:59
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
17 Feb 2007, 12:33
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
25 Mar 2007, 20:41
Thanks, worked great :)

princeedward
05 Apr 2007, 16:37
Great & thanks for this nice mod....work fine to my vB 3.6.5 ;)

eNtitY~
01 May 2007, 16:02
Will this auto update for each template (the button) or is it generic?

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

Fungsten
12 May 2007, 20:07
Do I add the new code below this? Thanks!

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

BadgerDog
17 May 2007, 18:55
Very nice Kerry-Anne.... :up:

Installed on v3.6.7 ..

Thank you... :)

Regards,
Badger

TuRKMeN
22 May 2007, 19:13
installed thanks!

Nutz
30 May 2007, 12:15
Thanks for the hack, this is what I'm using;
<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>

<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
20 Jun 2007, 11:53
Installed, neato.

SoftDux
20 Jun 2007, 19:13
Great addon, thanx :)

Outbackmark
23 Jun 2007, 06:59
Works well, thanks!

CrashPush
04 Jul 2007, 22:38
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:
target="_blank" rel="nofollow"


The new code should look like this:
<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
05 Aug 2007, 04:27
**Installed**

And working well on 3.6.7 :)

Fungsten
06 Aug 2007, 21:10
In the Postbit Template, v. 3.6.8, I could find only:

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

And not the:


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


as you mentioned in the instructions.

On Edit:

Also in the PB Legacy I found:

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


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

SliceofLife
02 Sep 2007, 07:04
Hi. I'm running 3.6.8 and I couldn't find the code required for replacement. So I couldn't install it. Sorry :o

Chy
03 Sep 2007, 22:00
I'm running 3.6.8 and just added the code under:

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


...and works fine! Thanks been looking for this for awhile!

Ohiosweetheart
07 Sep 2007, 05:04
Worked great for me! Thanks again Kerry-Anne.

momo2
08 Sep 2007, 15:04
Thanks so much... very useful..

momo2
08 Sep 2007, 18:15
I was wondering, once pm is click on that post, the link to that post will be posted also ? for that pm sent ? well that is the reason of sending pm from that post !!!

Fungsten
08 Sep 2007, 21:02
I was wondering, once pm is click on that post, the link to that post will be posted also ? for that pm sent ? well that is the reason of sending pm from that post !!!

This hack is to just PM the user. The Mod you are looking for to quote the post is here:

http://www.vbulletin.org/forum/showthread.php?t=151163

pspmaster93
08 Sep 2007, 23:36
INSTALLED

i couldnt find what you said to search for because i have a custom style called ARIA from vbstyles but i just added it under <td class="postbit_br" align="$stylevar[right]"> instead and it worked great.. (if you cant find what it says try looking for that)

Minha
09 Sep 2007, 16:24
Thank you ;)

mishb68
18 Sep 2007, 08:51
:up: Installed. Thankyou.

Atakan KOC
18 Sep 2007, 08:56
Good work!

Coleccromos
14 Dec 2007, 16:57
Today speaking with an user of the forum tells me that she cannot see the button to send the private one from those post of the forum

As it is possible this if it is a modification of a you Template yourself :confused::confused:

akvaryumforum
17 Dec 2007, 13:14
Can we put this button in only the specified forums? OR how can we do this?

hyppa
09 Jan 2008, 09:43
I added this:

<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]/sendpm.gif" alt="sendpm.gif" title="<phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase>" border="0" /></a></if></if>

after controls, and that did it.

Thank you!

joeycano
20 Jan 2008, 00:33
I added the above suggested language in postbit after "<!-- controls -->": (as illustrated below):


<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]/sendpm.gif" alt="sendpm.gif" title="<phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase>" border="0" /></a></if></if>

:up:

Coleccromos
20 Jan 2008, 08:25
Should this modification see it all the users of the forum? alone we see it the administrators

inder123
27 Jan 2008, 15:31
Thanks For This :)

Tried And Worked

Thanks

gwerzal
31 Jan 2008, 15:36
Hi

I got this working but it opens the private message box in a new screen.

Any idea how to make it open in the same window.

Boofo
31 Jan 2008, 16:34
I added this:

<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]/sendpm.gif" alt="sendpm.gif" title="<phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase>" border="0" /></a></if></if>

after controls, and that did it.

Thank you!

What do this do different from the text file in the first post? I'm just curious is all. ;)

PoetJA-1975
31 Jan 2008, 17:41
Hi

I got this working but it opens the private message box in a new screen.

Any idea how to make it open in the same window.

Find in the text edit...
target="_blank"

Simply erase that bit of code and it opens in the same window ;)

HTH,

Jacquii.

Boofo
31 Jan 2008, 17:44
Or change it to:

target="_top"

sdavis2702
29 Apr 2008, 12:30
Thanks! :)