View Full Version : PM button in postbit
peterska2
06-07-2006, 10:00 PM
This is the new and improved version of the PM button in postbit modification found here (https://vborg.vbsupport.ru/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
06-09-2006, 02:31 AM
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!
Terminatoronly
07-24-2006, 04:35 PM
installed thanks
yesfans
08-06-2006, 04:21 AM
This is not working for me on 3.6.0, should it,. can it??
yesfans
08-06-2006, 05:43 PM
anyone?
peterska2
08-06-2006, 08:34 PM
There is no reason why it wouldn't work.
When you say it isn't working, in what respect do you mean?
Brandon Sheley
08-06-2006, 11:25 PM
nice, now to find someone to make a matching icon for the style :)
yesfans
08-09-2006, 12:17 AM
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
08-10-2006, 03:49 PM
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
08-12-2006, 03:57 PM
I got it!
ctsolutions
08-18-2006, 11:19 PM
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
08-20-2006, 11:19 AM
Thanks for the 3.6 version! :)
davelacey
08-25-2006, 03:15 PM
Works like a charm.
Many thanks. :)
Gnappy
08-28-2006, 10:46 PM
thanks
Ascor
08-29-2006, 01:57 AM
Installed works fine, thank you :)
Acido
09-01-2006, 08:08 AM
Any chance to quote the post message into the PM?
Edit: Nevermind. I found this hack: https://vborg.vbsupport.ru/showthread.php?t=115315
Kihon Kata
09-04-2006, 06:38 PM
Installed. is good!
IAWBody
09-13-2006, 09:25 PM
Installed, Great install thanks!!!
Nice Hack, Thank you
* clicks install *
dnclub.org
10-26-2006, 01:51 AM
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&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
11-05-2006, 09:00 PM
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
11-07-2006, 05:28 AM
Installed ...work on 3.6.2 and 3.5.4 .
Thanks .
oberheimhaven
11-08-2006, 11:34 PM
Very nice hack thank you!!!
Installed 3.6.0 zero issues!!
Musiciansquarters.com
yoyoyoyo
12-09-2006, 03:23 AM
the code seems to have changed for 3.6.4
KURTZ
12-11-2006, 01:19 PM
3.6.4 works correctly :P
Installed.
Is there any way to add another button (E-mail this page) on thread's 1st post in postbit template?
Thanks.
ND4SPD
12-22-2006, 12:09 AM
Great tweak. Thanks!
peterska2
12-22-2006, 12:01 PM
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
12-23-2006, 01:15 PM
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
12-23-2006, 06:17 PM
Nice and simple, installed. :)
-Skip
cbiweb
12-24-2006, 02:28 AM
I'm wondering why this is needed when there's a link to PM the person in their username drop-down?
bplinson
01-01-2007, 06:19 PM
Very Nice
encryption
01-09-2007, 10:57 AM
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
01-09-2007, 01:05 PM
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
01-09-2007, 02:30 PM
Thanks for the update, I had only updated the postbit section, added it to posbit legacy and sure enough it pops right up
KURTZ
01-09-2007, 08:40 PM
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
01-09-2007, 10:22 PM
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
01-11-2007, 10:36 PM
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
01-12-2007, 11:32 AM
Works fine for me in 3.6.4.
grecostimpy
01-12-2007, 11:35 AM
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&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. :)
Fungsten
05-12-2007, 07:07 PM
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
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!
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&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
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:
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&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:
<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
09-02-2007, 06:04 AM
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
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
09-07-2007, 04:04 AM
Worked great for me! Thanks again Kerry-Anne.
momo2
09-08-2007, 02:04 PM
Thanks so much... very useful..
momo2
09-08-2007, 05:15 PM
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
09-08-2007, 08:02 PM
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:
https://vborg.vbsupport.ru/showthread.php?t=151163
pspmaster93
09-08-2007, 10:36 PM
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-09-2007, 03:24 PM
Thank you ;)
mishb68
09-18-2007, 07:51 AM
:up: Installed. Thankyou.
Atakan KOC
09-18-2007, 07:56 AM
Good work!
Coleccromos
12-14-2007, 03:57 PM
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
12-17-2007, 12:14 PM
Can we put this button in only the specified forums? OR how can we do this?
hyppa
01-09-2008, 08:43 AM
I added this:
<if condition="$post[userid] != $bbuserinfo[userid]"><if condition="$show['pmlink']"><a href="private.php?$session[sessionurl]do=newpm&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
01-19-2008, 11:33 PM
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&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
01-20-2008, 07:25 AM
Should this modification see it all the users of the forum? alone we see it the administrators
inder123
01-27-2008, 02:31 PM
Thanks For This :)
Tried And Worked
Thanks
gwerzal
01-31-2008, 02:36 PM
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
01-31-2008, 03:34 PM
I added this:
<if condition="$post[userid] != $bbuserinfo[userid]"><if condition="$show['pmlink']"><a href="private.php?$session[sessionurl]do=newpm&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
01-31-2008, 04:41 PM
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
01-31-2008, 04:44 PM
Or change it to:
target="_top"
sdavis2702
04-29-2008, 11:30 AM
Thanks! :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.