View Full Version : Private Messages Enhancements - Reply to all button in private messages
Xoligy
12-10-2006, 10:00 PM
As requested on, this plug-in allows users to reply to all users via PM, much like many modern email clients. To install simply download and install the XML file and then make the following modifications to your postbit/postbit_legacy templatebits:
Find:<if condition="$post['replylink']"> <a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a> </if> Add below (or above):<if condition="$post['replylink'] && THIS_SCRIPT == 'private'"> <a href="$post[replylink]&r=all" rel="nofollow"><img src="$stylevar[imgdir_button]/reply_all.gif" alt="$vbphrase[reply_to_all]" border="0" /></a> </if>You then need to create a button and name it "reply_all.gif". Place it in your skin's button folder. For the default skin, place it in images/buttons, for other skins please refer to its documentation.
You're free to do what you like with this code, although credit is appreciated, it's not required.
Brought to you by eXaltic - vBulletin skins (http://www.exaltic.com).
EDIT: Thanks to EricR for the button :)
cygy2k
12-11-2006, 09:34 PM
I did this as instructed but now in threads it displays the reply all button as well. Can you please provide a template correction for this?
LBmtb
12-11-2006, 10:42 PM
I'll be all over this once that template issue is fixed. Maybe put it in a PM specific template? Postbit and postbit legacy are used all over the forum.
Xoligy
12-12-2006, 08:53 AM
Sorry, my mistake, I'll update the instructions in a minute. It just involves a simple conditional.
EDIT: Updated, thanks :) Basically add " && THIS_SCRIPT == 'private'" inside the conditional.
peterska2
12-12-2006, 10:45 AM
Please attach the file to your first post.
Thank you.
iran.gs
12-12-2006, 11:13 AM
i don't get it ?
Xoligy
12-12-2006, 12:28 PM
i don't get it ?
This adds a "reply to all" button to PMs, meaning you can reply to the original sender and all the people it was sent to. Very handy for group conversations or mass sending PMs.
EricR
12-13-2006, 12:52 PM
Thanks Xoligy! Quick question, does this grab the BCC recipients as well or just the primary recipients? I'm hoping it does not grab the BCC's. I'll try it out today :)
Edit: It appears to handle BCC correctly :) I've attached my reply_all.gif image.
Xoligy
12-13-2006, 01:23 PM
Nope, just the CCs. I did consider making it an option, but it would require more template modification and I wanted to keep it to a minimum.
LBmtb
12-16-2006, 11:53 PM
Works well, thanks!
EricR
12-19-2006, 10:22 PM
In my case only certain usergroups can send PM's to more than one recipient so it makes sense to show the button for only these groups. If you'd like to do this as well, expand on the provided conditional as follows:
<if condition="$post['replylink'] && THIS_SCRIPT == 'private' && is_member_of($bbuserinfo, XX,YY,ZZ)">
<a href="$post[replylink]&r=all" rel="nofollow"><img src="$stylevar[imgdir_button]/reply_all.gif" alt="$vbphrase[reply_to_all]" border="0" /></a>
</if>
Where XX, YY, ZZ, etc. are the usergroup id's that CAN see the "Reply To All" button.
Xoligy
12-20-2006, 10:24 AM
Good idea :)
buro9
01-03-2007, 08:37 AM
Beautifully Simple.
Thanks, this is long overdue.
Dexter_kcd
01-23-2007, 11:30 PM
Nice, thanks for this. :)
Dexter...
scan-pa
01-24-2007, 03:50 AM
Great Mod. thank you.
Xoligy
01-29-2007, 03:41 PM
Thanks for the kind words :D
Chris Blount
01-30-2007, 07:18 PM
Does this work with 3.6.0?
EDIT: Just tried it out. Seems to work OK under 3.6.0.
Thanks! Very handy feature.
Muellmann
04-09-2007, 10:04 PM
Great work, that's exactely what I searched. :up:
Quarterbore
05-01-2007, 05:57 PM
Thank You!
pipedreams
05-03-2007, 07:28 PM
much thanks, am surprised it not officially part of vb..
kontrabass
05-17-2007, 01:45 PM
Thanks for the excellent hack. My mods were demanding this as they communicate amongst themselves via multi-recipient PM a lot. Very glad that I found this :)
MThornback
05-18-2007, 01:23 AM
May I suggest wrapping it in
<if condition="$show['recipients']">
so that it only shows up when there are more than 1 recipient :)
great mod! Installed :)
Tralala
08-14-2007, 02:46 PM
May I suggest wrapping it in
<if condition="$show['recipients']">
so that it only shows up when there are more than 1 recipient :)
great mod! Installed :)
I tried this but it didn't work for me. Wrapping the code inside <if condition="$show['recipients']"> made the "reply all" button go away completely, even for PM's that had multiple recipients.
This is the code I tried:
<if condition="$show['recipients']">
<if condition="$post['replylink'] && THIS_SCRIPT == 'private'"> <a href="$post[replylink]&r=all" rel="nofollow"><img src="$stylevar[imgdir_button]/reply_all.gif" alt="$vbphrase[reply_to_all]" border="0" /></a> </if>
</if>
I am using vBulletin 3.6.5.
Is there something else I can try?
jeremyalyea
11-14-2007, 01:10 AM
May I suggest wrapping it in
<if condition="$show['recipients']">
so that it only shows up when there are more than 1 recipient :)
great mod! Installed :)
This did not work for me either. The reply to all button disappears for all emails.
Great MOD. Marked installed! Thank you.
Why isn't this standard?
Canis Firebrand
12-14-2007, 03:19 PM
I would love a way to have it only show up if there are multiple recipients. Right now, as others stated, it shows up for every message regardless as to whether the PM has 1 or more recipients.
Offstage
01-07-2008, 03:15 PM
Ain't compatible anymore with 3.6.8 ?
now if I upload the XML file , invalid file I get as error.
scan-pa
01-07-2008, 04:54 PM
Works in my vB 3.6.8p2 just fine.
El Orans
01-27-2008, 05:21 PM
* Clicks Install *
Eq4bits
07-14-2008, 12:49 AM
works fine with 3.7.2
ATVTorture
10-10-2008, 12:08 PM
This would be great. Any body have an idea as to how to make an IF statement to check the number of recipients?
Thanks!
I would love a way to have it only show up if there are multiple recipients. Right now, as others stated, it shows up for every message regardless as to whether the PM has 1 or more recipients.
rnixon
11-14-2008, 07:34 AM
Just what we needed, many thanks!
MDeLuca
12-22-2008, 05:10 AM
Excellent Mod...!!!
This has frustrated me forever.
Easy install...
Here is a button I made for the purpose... https://vborg.vbsupport.ru/attachment.php?attachmentid=90977&stc=1&d=1229929756
Works in 3.7.4 so far...
THANK YOU...!!!
(clicked installed and 5 stars...)
mrcake
01-23-2009, 05:57 AM
This doesn't appear to be working with 3.8....
rolloffhill
01-25-2009, 02:26 AM
Works for me in 3.8
todd222222
02-04-2009, 06:52 PM
The button is showing up but when I select it I get this on the next page:
Warning: array_search() [function.array-search]: Wrong datatype for second argument in [path]/private.php(1333) : eval()'d code on line 4
Warning: implode() [function.implode]: Invalid arguments passed in [path]/private.php(1333) : eval()'d code on line 6
I'm running 3.7.3
Thanks
curriertech
03-30-2009, 07:06 PM
Working great in 3.8.1 PL1.
Andy Rickard
04-25-2009, 07:53 PM
Friggin awesome!
CycleChat
05-26-2009, 07:37 PM
Thanks, just what my members were looking for. :D
Cheers,
Shaun
curriertech
05-26-2009, 07:45 PM
Any reason this can't simply replace the built-in Reply button?
It works with both single and multiple recipients, and would save having two separate buttons.
Thanks, BTW, just what my members were looking for. :D
Cheers,
Shaun
But what if you want to reply to the sender and not all? I like having both. :)
jjj0923
07-08-2009, 12:37 PM
I've found a quirk in the code. If you click the "reply to all" button and YOU were the only recipient the code throws an error and you get a blank screen:
[08-Jul-2009 09:06:40] PHP Fatal error: Cannot unset string offsets in /usr/local/websites/www.mywebsite.com/mysite/forums/private.php(1274) : eval()'d code on line 4
anyone want to take a crack at fixing this?
Works fine in my 3.8.2
QUESTION: I want to change PM's "quick reply" to be "reply to all" rather then just "reply"
Spent an hour digging back and forth in source - no luck.
Would, someone, please advise me, where to dig?
buro9
12-29-2009, 05:41 PM
Does this still work in VB4? It's a pretty simple and nice touch.
brott
12-30-2009, 05:40 PM
I was able to get this to work in vb4 .. I just used the following code in my postbit template:
<vb:if condition="$post['replylink'] && THIS_SCRIPT == 'private'">
<a id="qrwqa_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}&r=all" rel="nofollow" ><img id="quoteimga_{vb:raw post.postid}" src="{vb:stylevar imgdir_button}/trans_40b.png" alt="{vb:rawphrase reply_with_quote}" /> Reply to All</a>
<span class="seperator"> </span>
</vb:if>
Otherwise, I think the installation instructions should work OK. Heck, it might even work as suggested in the installation instructions. I just utilized the 'reply' code in vb4 with a slight modification for 'all'
alfaowner
01-13-2010, 01:21 PM
Guys,
To get this to work on 3.8.4 PL2 or any 3.8 actually! Use this in the template, this will fix the array issues you are having.
<if condition="$post['replylink'] && THIS_SCRIPT == 'private'"> <a href="$post[replylink]&r=all" rel="nofollow"><img src="$stylevar[imgdir_button]/reply_all.gif" alt="$vbphrase[reply_to_all]" border="0" /></a> </if>
All we did was change the 'replylink' to replylink :)
ex0thermic
01-20-2010, 06:43 PM
<i>edit: durrrr</i>
Pvtiste
03-20-2010, 02:48 PM
Need for vb4 please :)
ex0thermic
03-29-2010, 05:55 PM
Seconded. My forum users are bugging me nonstop about this. I'm surprised it's not built into vb4 or that there's not even a hack for it.
Pvtiste
03-29-2010, 06:03 PM
Seconded. My forum users are bugging me nonstop about this. I'm surprised it's not built into vb4 or that there's not even a hack for it.
+1
my members go to facebook for that :(
ex0thermic
03-29-2010, 07:40 PM
Okay, here's how I got it to work in vB 4.0.2 (for idiots like myself that couldn't figure it out before). This is essentially just a dumbed-down reiteration of brott's post.
1) download and install the .xml product in the OP
2) upload the "reply all" button from the OP (or one of your choice) into your images/buttons folder. Make sure it is named "reply_all.gif"
3) Go into your postbit_legacy template and find the following
<vb:if condition="$post['replylink']">
<a id="qrwq_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}" rel="nofollow"><img id="quoteimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase reply_with_quote}" /> {vb:rawphrase reply_with_quote}</a>
<span class="seperator"> </span>
</vb:if>
And UNDER IT, add this
<vb:if condition="$post['replylink'] && THIS_SCRIPT == 'private'">
<a id="qrwqa_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}&r=all" rel="nofollow" ><img id="quoteimga_{vb:raw post.postid}" src="{vb:stylevar imgdir_button}/reply_all.gif" alt="{vb:rawphrase reply_with_quote}" /> Reply to All</a>
<span class="seperator"> </span>
</vb:if>
Do this and you should be good to go.
Pvtiste
03-29-2010, 09:37 PM
Thanks !
Just a dumb question, where can I get the button files? :)
ex0thermic
03-30-2010, 12:58 AM
The button is in the OP...
cbehan
06-06-2010, 03:30 AM
Okay, here's how I got it to work in vB 4.0.2 (for idiots like myself that couldn't figure it out before). This is essentially just a dumbed-down reiteration of brott's post.
1) download and install the .xml product in the OP
2) upload the "reply all" button from the OP (or one of your choice) into your images/buttons folder. Make sure it is named "reply_all.gif"
3) Go into your postbit_legacy template and find the following
<vb:if condition="$post['replylink']">
<a id="qrwq_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}" rel="nofollow"><img id="quoteimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase reply_with_quote}" /> {vb:rawphrase reply_with_quote}</a>
<span class="seperator"> </span>
</vb:if>
And UNDER IT, add this
<vb:if condition="$post['replylink'] && THIS_SCRIPT == 'private'">
<a id="qrwqa_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}&r=all" rel="nofollow" ><img id="quoteimga_{vb:raw post.postid}" src="{vb:stylevar imgdir_button}/reply_all.gif" alt="{vb:rawphrase reply_with_quote}" /> Reply to All</a>
<span class="seperator"> </span>
</vb:if>
Do this and you should be good to go.
This works great. I had to put it in my postbit template and not postbit_legacy, but once I figured that out, everything is working like a charm!
Thanks!
Eq4bits
06-29-2010, 12:58 PM
Okay, here's how I got it to work in vB 4.0.2 (for idiots like myself that couldn't figure it out before). This is essentially just a dumbed-down reiteration of brott's post.
1) download and install the .xml product in the OP
2) upload the "reply all" button from the OP (or one of your choice) into your images/buttons folder. Make sure it is named "reply_all.gif"
3) Go into your postbit_legacy template and find the following
<vb:if condition="$post['replylink']">
<a id="qrwq_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}" rel="nofollow"><img id="quoteimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase reply_with_quote}" /> {vb:rawphrase reply_with_quote}</a>
<span class="seperator"> </span>
</vb:if>And UNDER IT, add this
<vb:if condition="$post['replylink'] && THIS_SCRIPT == 'private'">
<a id="qrwqa_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}&r=all" rel="nofollow" ><img id="quoteimga_{vb:raw post.postid}" src="{vb:stylevar imgdir_button}/reply_all.gif" alt="{vb:rawphrase reply_with_quote}" /> Reply to All</a>
<span class="seperator"> </span>
</vb:if>Do this and you should be good to go.
Running vB4
I did this and it puts the reply_all button *on top* of the 'multi-quote'
I am running 4.04
There is no need to upload the button
I uploaded the xml file from the first post.
Then...
I found this part in postbit_legacy
<vb:if condition="$post['replylink']">
<a id="qrwq_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}" rel="nofollow"><img id="quoteimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase reply_with_quote}" /> {vb:rawphrase reply_with_quote}</a>
<span class="seperator"> </span>
</vb:if>
And added this BEFORE
<vb:if condition="$post['replylink'] && THIS_SCRIPT == 'private'">
<a id="qrwqa_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}
&r=all" rel="nofollow" ><img id="quoteimga_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase reply_with_quote}" /> Reply to All</a>
<span class="seperator"> </span>
</vb:if>
Hope this helps!
ImmortalForums
07-14-2010, 01:18 AM
Vb4 now has its own check for private so u no longer need to define the script.
This is all you need.
<vb:if condition="$post['forwardlink']"><a id="qrwq_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}&r=all" rel="nofollow">{vb:rawphrase reply_to_all}</a><span class="seperator"> </span></vb:if>
Find
<a id="qrwq_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}" rel="nofollow"><img id="quoteimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase reply_with_quote}" /> <vb:if condition="$post['forwardlink']">{vb:rawphrase reply_to_private_message}<vb:else />{vb:rawphrase reply_with_quote}</vb:if></a>
Replace with:
<vb:if condition="$post['forwardlink']"><a id="qrwq_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}&r=all" rel="nofollow">{vb:rawphrase reply_to_all}</a><span class="seperator"> </span></vb:if><a id="qrwq_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}" rel="nofollow"><img id="quoteimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase reply_with_quote}" /> <vb:if condition="$post['forwardlink']">{vb:rawphrase reply_to_private_message}<vb:else />{vb:rawphrase reply_with_quote}</vb:if></a>
gopherhockey
07-25-2010, 09:47 PM
Seems to work with 4.0.5... however... if I click reply all on a PM that was sent to only one person, it presents a really messed up view of the reply - the options below the message box get pulled up almost into the message and the subject gets overwritten with the message "separate multipe users names with semi-colon.
Hopefully someone can verify and/or provide a fix?
It appears just fine if I reply all to multiple users, or just simply reply to one.
(edit: this appears to only happen if the PM has a link in it)
vgevolution
04-11-2011, 01:55 PM
Working just fine in 4.1.2, with the attached template edit, using Andreas' Template Modification Manager (https://vborg.vbsupport.ru/showthread.php?t=152931) mod. My edit doesn't replace the original reply link, and simply adds the "Reply to all" link before it.
The only improvement this hack could use is to not show the "Reply to all" link when there's only one recipient.
furnival
09-26-2011, 09:35 AM
It's absurd that this is not a standard feature of VB
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.