Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: Douglas on April 14, 2004, 11:31:16 PM

Title: Reply to all in PM's
Post by: Douglas on April 14, 2004, 11:31:16 PM
With the advancement of the PM features, and the easy ability to send the same PM to multiple people, I would like to see the ability to reply to all.

If someone's suggested this previously, my apologies.  I could definitely use it (ask the Project Managers, I just sent them a PM tonight, and had to search for each name individually in order to do so).
Title: Re: Reply to all in PM's
Post by: Homie on April 14, 2004, 11:39:57 PM
That would be good
Title: Re: Reply to all in PM's
Post by: Anguz on April 15, 2004, 02:40:41 AM
I don't understand how the "reply to all" works, I'm sorry if this is supposed to be common knowledge (^^;)
Title: Re: Reply to all in PM's
Post by: Ben_S on April 15, 2004, 02:49:18 AM
Once would assume the same way as in an email thats sent to multiple recipients, when you hit reply to all, it replies to the sender and all the other people in the too field. Currently theres only an option to reply to sender.
Title: Re: Reply to all in PM's
Post by: Anguz on April 15, 2004, 03:33:27 AM
ah ok... thanks for the explanation... I have never used that option in emails :P
Title: Re: Reply to all in PM's
Post by: Oldiesmann on April 15, 2004, 11:12:35 AM
Reply To All is definitely handy. Another handy feature might be to be able to defiine "PM Lists", similar to a mailing list where you can group names under a common heading, and then just send it to that "list" and have it sent to everyone that you put on that list...
Title: Re: Reply to all in PM's
Post by: [Unknown] on April 15, 2004, 12:09:47 PM
Already planned.

-[Unknown]
Title: Re: Reply to all in PM's
Post by: Jack.R.Abbitâ„¢ on June 22, 2004, 02:26:05 PM
Just now I was trying to reply to sender and other recipients... and I thought, "A reply all feature would be handy"  I did a little search and found its already been asked for.  how about that.  :)
Title: Re: Reply to all in PM's
Post by: rhizome on May 15, 2005, 02:31:52 PM
Just wondering if this feature of "reply to all" is still being planned to be implemented

thanks
Title: Re: Reply to all in PM's
Post by: rhizome on May 22, 2005, 09:12:33 AM
Is this feature already in 1.1?
May tempt me to sign up for charter membership  ;)
Title: Re: Reply to all in PM's
Post by: dschwab9 on May 22, 2005, 03:05:38 PM
It is not in 1.1
Title: Re: Reply to all in PM's
Post by: Ben_S on May 22, 2005, 05:00:35 PM
I beleive the feature exists, there just isn't a link in the template currently.
Title: Re: Reply to all in PM's
Post by: rhizome on May 23, 2005, 12:28:35 PM
Quote from: dschwab9 on May 22, 2005, 03:05:38 PM
It is not in 1.1
That's a real shame  :'(
It would be a really useful feature as it mimics regular email


Quote from: Ben_S on May 22, 2005, 05:00:35 PM
I beleive the feature exists, there just isn't a link in the template currently.
I guess some kind soul couldn't write a hack/script?
I'm finding myself saying "I really need this feature"  :D
Title: Re: Reply to all in PM's
Post by: rhizome on June 29, 2005, 05:59:43 AM
Sorry, bumping this

Any chance it will go in for the final 1.1?
Title: Re: Reply to all in PM's
Post by: DaveHanson on July 13, 2005, 01:41:05 PM
bump
Title: Re: Reply to all in PM's
Post by: jdougher on August 01, 2005, 08:59:28 AM
I need this, too.
Title: Re: Reply to all in PM's
Post by: Kraig K. on September 27, 2005, 02:50:18 PM
Here here I say for this feature.

I also like the idea of a "mailing list".

I wonder how hard it would be to code a mod for this.
Title: Re: Reply to all in PM's
Post by: Zenigata on September 27, 2005, 03:22:37 PM
Quote from: rhizome on May 23, 2005, 12:28:35 PM

I guess some kind soul couldn't write a hack/script?
I'm finding myself saying "I really need this feature"  :D

Yes, a mod would be nice.
Title: Re: Reply to all in PM's
Post by: DanielZKlein on September 27, 2005, 11:29:21 PM
Bit disappointed not to see more than a "might happen, sounds nice"; aren't there developers around reading these boards? I mean, this sounds like a must-have feature, and it's been requested quite a while ago.

(this was a verbose bump)
Title: Re: Reply to all in PM's
Post by: Kraig K. on September 28, 2005, 05:26:35 PM
I just started looking through the code for 1.0.5 and in InstantMessage.php there is a section about replying to all.  Now I'm not familiar with php so it may be a struggle for me to mod it but wanted to point it out for someone more familiar.

So maybe it's close to being implemented.
Title: Re: Reply to all in PM's
Post by: Kraig K. on September 28, 2005, 05:29:22 PM
OK, I just found out that it works.  When you click on the reply button, u= someuserID, but if u=all then guess what.  8)

Now just to figure out how to get the reply to all button on the template...
Title: Re: Reply to all in PM's
Post by: dschwab9 on September 28, 2005, 06:56:48 PM
If you find this:

<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';u=', $message['member']['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/im_reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]), '</a> ', $context['menu_separator'];

and add something like this after it:

<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';u=all'">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/im_reply_all.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]), '</a> ', $context['menu_separator'];

That should do what you want.   You'd need an image called im_reply_all.gif
Title: Re: Reply to all in PM's
Post by: Anguz on September 28, 2005, 07:10:24 PM
I'm moving this to Tips & Tricks.
Title: Re: Reply to all in PM's
Post by: Zenigata on September 28, 2005, 07:20:06 PM
Quote from: Kraig K. on September 28, 2005, 05:29:22 PM
OK, I just found out that it works.  When you click on the reply button, u= someuserID, but if u=all then guess what.  8)

Now just to figure out how to get the reply to all button on the template...

What we need to change in code? Please show us. :)

Thanks
Title: Re: Reply to all in PM's
Post by: 1MileCrash on September 28, 2005, 08:04:09 PM
nothing. It already works. You just need to add the reply to all button in the template, as a link, which is stated in dschwab9's post.
Title: Re: Reply to all in PM's
Post by: Zenigata on September 28, 2005, 08:10:00 PM
That's great!

Does it works with 1.0.5 and 1.1Rc1?

Title: Re: Reply to all in PM's
Post by: Kraig K. on September 29, 2005, 09:43:30 AM
Quote from: Zenigata on September 28, 2005, 08:10:00 PM
That's great!

Does it works with 1.0.5 and 1.1Rc1?

I tried it with 1.0.5  I haven't modified the code yet to add the reply all button but the code to make it work is already there.

Thanks for the code dschwab9, I was getting there but didn't have time to finish it up yesterday.
Title: Re: Reply to all in PM's
Post by: Kraig K. on September 30, 2005, 09:25:14 AM
It seems there was a typo in dschwab9's code, so here's what you need to do.  In InstantMessage.template.php

find:
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], ';pmsg=', $message['id'], ';quote;u=', $context['folder'] == 'outbox' ? '' : $message['member']['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/quote.gif" alt="' . $txt[145] . '" border="0" />' : $txt[145]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], ';pmsg=', $message['id'], ';reply;u=', $message['member']['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/im_reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]), '</a> ', $context['menu_separator'];

and replace with:
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], ';pmsg=', $message['id'], ';quote;u=', $context['folder'] == 'outbox' ? '' : $message['member']['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/quote.gif" alt="' . $txt[145] . '" border="0" />' : $txt[145]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], ';pmsg=', $message['id'], ';reply;u=', $message['member']['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/im_reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]), '</a> ', $context['menu_separator'],'
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], ';pmsg=', $message['id'], ';u=all">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/im_reply_all.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]), '</a> ', $context['menu_separator'];


Make sure to have an image named im_reply_all.gif in your theme's images folder.

It works sweet!!
Title: Re: Reply to all in PM's
Post by: Kraig K. on September 30, 2005, 01:33:21 PM
I just changed it a bit.  I figured since you have multiple recipients, quoting the message by default might be good.  So if you want that, change the third line to this:

<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], ';pmsg=', $message['id'], ';quote;u=all">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/im_reply_all.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]), '</a> ', $context['menu_separator'];
Title: Re: Reply to all in PM's
Post by: Kraig K. on September 30, 2005, 02:21:02 PM
I edited my code changes because I was getting hundreds of forums errors, they were transparent to the user though.

So if you used the code before the edits, you probably should change it, just check your error log.  ;)
Title: Re: Reply to all in PM's
Post by: kriskd on June 04, 2006, 11:40:35 AM
Quote from: Kraig K. on September 30, 2005, 09:25:14 AM
It seems there was a typo in dschwab9's code, so here's what you need to do.  In InstantMessage.template.php

find:
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], ';pmsg=', $message['id'], ';quote;u=', $context['folder'] == 'outbox' ? '' : $message['member']['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/quote.gif" alt="' . $txt[145] . '" border="0" />' : $txt[145]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], ';pmsg=', $message['id'], ';reply;u=', $message['member']['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/im_reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]), '</a> ', $context['menu_separator'];

and replace with:
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], ';pmsg=', $message['id'], ';quote;u=', $context['folder'] == 'outbox' ? '' : $message['member']['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/quote.gif" alt="' . $txt[145] . '" border="0" />' : $txt[145]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], ';pmsg=', $message['id'], ';reply;u=', $message['member']['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/im_reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]), '</a> ', $context['menu_separator'],'
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], ';pmsg=', $message['id'], ';u=all">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/im_reply_all.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]), '</a> ', $context['menu_separator'];


Make sure to have an image named im_reply_all.gif in your theme's images folder.

It works sweet!!
Quote from: Kraig K. on September 30, 2005, 01:33:21 PM
I just changed it a bit.  I figured since you have multiple recipients, quoting the message by default might be good.  So if you want that, change the third line to this:

<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], ';pmsg=', $message['id'], ';quote;u=all">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/im_reply_all.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]), '</a> ', $context['menu_separator'];

Is this still valid for SMF 1.1 RC2?  I couldn't find an InstantMessage.template.php, but I assume I should be editing PersonalMessage.template.php.  And then I could find the exact two lines that need to be searched and replaced.

Please let me know... my members are asking for this!
Title: Re: Reply to all in PM's
Post by: kriskd on July 07, 2006, 05:35:59 AM
Bump.  :)
Title: Re: Reply to all in PM's
Post by: jpark on August 21, 2006, 07:58:37 PM
i would also like to know how to fix this for RC2
Title: Re: Reply to all in PM's
Post by: jacortina on August 21, 2006, 09:07:26 PM
It's already there in RC2 (at least in my installation of it).

The file is now PersonalMessage.template.php. And at around line 457:


if ($message['number_recipients'] > 1 && (!empty($settings['use_buttons']) || !$settings['use_image_buttons']))
echo '
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote;u=all">', $reply_all_button, '</a>', $context['menu_separator'];


Title: Re: Reply to all in PM's
Post by: kriskd on October 08, 2006, 11:18:15 AM
Based on the info from jacortina, I made the changes, but don't see any changes on my board.  Just to verify, PersonalMessage.template.php is part of the default template, but I want this to appear in a version of the classic template.  Is there anything I need to change in the classic template?
Title: Re: Reply to all in PM's
Post by: jacortina on October 08, 2006, 11:36:20 AM
I pointed out that the template already HAD a reply to all built in for version 1.1RC2:



(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg125.imageshack.us%2Fimg125%2F2966%2Fscreenshot001oz9.jpg&hash=bc2a035a6fdb6be01b74d704deb5a464cb7eabe9)



The 'reply to all' button and text should appear only for messages with # of recipients greater than one. I don't believe the Classic theme has it's own PersonalMessage.template.php, so it should use the one from the 'default' directory (which has the code I noted already in it).
Title: Re: Reply to all in PM's
Post by: kriskd on October 08, 2006, 11:42:43 AM
I'm running a 1.1RC2 message board and a 1.1RC3 message board and not seeing it on either for PMs that were sent to more than one user.  However, I'm not using the default theme either.  Do I need to edit any files in my classic theme?
Title: Re: Reply to all in PM's
Post by: jacortina on October 08, 2006, 11:53:51 AM
If there's a PersonalMessage.template.php in the folder for your theme, look in there. Otherwise, look in the default folder. Look for this:

// Were than more than one recipient you can reply to? (Only in the "button style", or text)
if ($message['number_recipients'] > 1 && (!empty($settings['use_buttons']) || !$settings['use_image_buttons']))
echo '
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote;u=all">', $reply_all_button, '</a>', $context['menu_separator'];
echo '
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote;u=', $context['folder'] == 'outbox' ? '' : $message['member']['id'], '">', $quote_button, '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';u=', $message['member']['id'], '">', $reply_button, '</a> ', $context['menu_separator'];


The 'if' statement is for the reply-to-all. The next two lines output the 'Quote' and 'Reply' (and I assume those show up just fine.

If all that's in place, then I'd say it has to do with the settings that are being checked there (for links being set to button/text style).
Title: Re: Reply to all in PM's
Post by: kriskd on October 08, 2006, 01:32:12 PM
PersonalMessage.template.php is only in the default folder and this is how mine looks:


// Were than more than one recipient you can reply to? (Only in the "button style", or text)
if ($message['number_recipients'] > 1 && (!empty($settings['use_buttons']) || !$settings['use_image_buttons']))
echo '
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], ';pmsg=', $message['id'], ';quote;u=', $context['folder'] == 'outbox' ? '' : $message['member']['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/quote.gif" alt="' . $txt[145] . '" border="0" />' : $txt[145]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], ';pmsg=', $message['id'], ';reply;u=', $message['member']['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/im_reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]), '</a> ', $context['menu_separator'],'
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], ';pmsg=', $message['id'], ';u=all">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/im_reply_all.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]), '</a> ', $context['menu_separator'];
echo '
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote;u=', $context['folder'] == 'outbox' ? '' : $message['member']['id'], '">', $quote_button, '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';u=', $message['member']['id'], '">', $reply_button, '</a> ', $context['menu_separator'];
}


And I have im_reply_all.gif in images/english in both the default theme and my classic theme and still nothing is showing up. 

This really isn't the most urgent issue in the world to me or anything, I'm more interested in what I could be doing wrong!  ;D
Title: Re: Reply to all in PM's
Post by: jacortina on October 08, 2006, 01:46:57 PM
If your Quote and Reply buttons only show up once, then you're not 'passing' the test in the 'if' statement.

First, find these llines (in PersonalMessage.template.php):
$quote_button = create_button('quote.gif', 145, 'smf240', 'align="middle"');
$reply_button = create_button('im_reply.gif', 146, 146, 'align="middle"');


And make sure there's a line in that area like:
$reply_all_button = create_button('im_reply_all.gif', 'Reply to All', 'Reply to All', 'align="middle"');


Then, change these lines:
if ($message['number_recipients'] > 1 && (!empty($settings['use_buttons']) || !$settings['use_image_buttons']))
echo '
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], ';pmsg=', $message['id'], ';quote;u=', $context['folder'] == 'outbox' ? '' : $message['member']['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/quote.gif" alt="' . $txt[145] . '" border="0" />' : $txt[145]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], ';pmsg=', $message['id'], ';reply;u=', $message['member']['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/im_reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]), '</a> ', $context['menu_separator'],'
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], ';pmsg=', $message['id'], ';u=all">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/im_reply_all.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]), '</a> ', $context['menu_separator'];
echo '


To:

// if ($message['number_recipients'] > 1 && (!empty($settings['use_buttons']) || !$settings['use_image_buttons']))
if ($message['number_recipients'] > 1)
echo '
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote;u=all">', $reply_all_button, '</a>', $context['menu_separator'];
echo '
Title: Re: Reply to all in PM's
Post by: kriskd on October 08, 2006, 03:00:44 PM
Thanks!  That worked great on my RC2 forum!  Will have to attempt it on my RC3 forum.
Title: Re: Reply to all in PM's
Post by: kriskd on October 15, 2006, 12:06:13 PM
Ugh... I'm not getting this to work on my RC3 forum because I can't find the exact text to replace.  How much has PersonalMessage.template.php changed in this version?  I ask because I can not even find $txt[145] or $txt[146] when I search through the template file.
Title: Re: Reply to all in PM's
Post by: jacortina on October 15, 2006, 12:12:16 PM
No, you won't find those exact strings. Look at the message above. They are referred to only by the number in the lines which create the buttons.

Search for:

$quote_button = create_button('quote.gif', 145, 'smf240', 'align="middle"');
$reply_button = create_button('im_reply.gif', 146, 146, 'align="middle"');
Title: Re: Reply to all in PM's
Post by: kriskd on October 15, 2006, 12:34:52 PM
Thanks for your patience with my jacortina....

Upon further investigation, I do have the following in place as noted in Reply #37.


// Were than more than one recipient you can reply to? (Only in the "button style", or text)
if ($message['number_recipients'] > 1 && (!empty($settings['use_buttons']) || !$settings['use_image_buttons']))
echo '
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote;u=all">', $reply_all_button, '</a>', $context['menu_separator'];
echo '
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote;u=', $context['folder'] == 'outbox' ? '' : $message['member']['id'], '">', $quote_button, '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';u=', $message['member']['id'], '">', $reply_button, '</a> ', $context['menu_separator'];


You indicated that if that is in place, it should work and maybe I don't have a button placed correctly?  But, I do have my button image (im_reply_all.gif) in the images/english folder of my template.

I also have these lines:


$quote_button = create_button('quote.gif', 145, 'smf240', 'align="middle"');
$reply_button = create_button('im_reply.gif', 146, 146, 'align="middle"');
$reply_all_button = create_button('im_reply_all.gif', 'reply_to_all', 'reply_to_all', 'align="middle"');
$forward_button = create_button('quote.gif', 145, 145, 'align="middle"');
$delete_button = create_button('delete.gif', 154, 31, 'align="middle"');


Any other thoughts?
Title: Re: Reply to all in PM's
Post by: jacortina on October 15, 2006, 12:39:08 PM
Right. And it was something in your settings (or combination of settings) which was making it avoid that 'if':

if ($message['number_recipients'] > 1 && (!empty($settings['use_buttons']) || !$settings['use_image_buttons']))


We worked around that by ignoring the settings and ONLY checking for multiple recipients:
// if ($message['number_recipients'] > 1 && (!empty($settings['use_buttons']) || !$settings['use_image_buttons']))
if ($message['number_recipients'] > 1)

Title: Re: Reply to all in PM's
Post by: kriskd on October 15, 2006, 12:45:30 PM
Thanks again, jacortina, it works like a dream!  Maybe one of these days I'll figure out how to pull this all together myself without having to be hand held through every step!
Title: Re: Reply to all in PM's
Post by: Janet on November 22, 2006, 04:46:42 AM
I'm sorry for sounding ignorant but I've been struggling with the tips posted above for like an hour and I still can't find the PersonalMessage.template.php. I use 1.1 RC3 and the Babylon theme. You say I have to look in the "default" folder but (shame, shame) I don't know where to find that! I know how the templates work and how to edit them (I changed the layout of the forum myself YAY!) but this is new to me. I would really REALLY love this function on my board -- would someone be kind enough to help me please?  :-[

Title: Re: Reply to all in PM's
Post by: jacortina on November 22, 2006, 08:51:38 AM
It should be in <forum>/Themes/default/

Unless you have one in <forum>/Themes/Babylon/
Title: Re: Reply to all in PM's
Post by: Janet on November 23, 2006, 04:26:34 PM
I feel oh so stupid but I can't access the default template. Could someone make me a screenshot please so I know where to look? I can't find it and if I can't stand anything it's when I can't solve a problem. Please? I'm fairly new to this but I really want to learn  :-[