vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Private Messages Enhancements - Reply to all button in private messages (https://vborg.vbsupport.ru/showthread.php?t=133753)

Xoligy 12-10-2006 10:00 PM

Reply to all button in private messages
 
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.

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

Quote:

Originally Posted by iran.gs (Post 1136983)
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:

Quote:

<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

Code:

<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

Quote:

Originally Posted by MThornback (Post 1249889)
May I suggest wrapping it in

Code:

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

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

<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

Quote:

Originally Posted by MThornback (Post 1249889)
May I suggest wrapping it in

Code:

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

Originally Posted by Canis Firebrand (Post 1401018)
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/attachmen...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

Quote:

Originally Posted by CycleChat (Post 1817687)
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:

Quote:

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


All times are GMT. The time now is 06:28 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.01468 seconds
  • Memory Usage 1,808KB
  • 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
  • (5)bbcode_code_printable
  • (7)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