[RC] Reply To Specific Post - v1.0.2

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Red_5
Registered User
Posts: 65
Joined: Fri Nov 15, 2002 1:53 pm
Contact:

[RC] Reply To Specific Post - v1.0.2

Post by Red_5 » Thu May 15, 2003 4:36 pm

In Reply To v1.0.2

This mod is converts phpBB into something between a flat page forum and a threaded forum. The current download contains instructions written for phpBB version 2.0.4, however posts towards the end of this thread describe the minor changes in installation needed for versions 2.0.5 and 2.0.6.

Features:
  • Adds the ability to reply to specific posts in a discussion
  • Adds the ability to navigate to the original post a message is in reply to
  • Adds the name of the author of the post you are replying to
  • Existing posts in a forum are unaffected (only applies to new posts)
Please note that this mod is no longer supported by the author. If you wish to update this mod for phpBB 3.x, please feel free.

Download:
Last edited by Red_5 on Sun Jul 20, 2008 11:13 am, edited 17 times in total.

Red_5
Registered User
Posts: 65
Joined: Fri Nov 15, 2002 1:53 pm
Contact:

Post by Red_5 » Thu May 15, 2003 5:44 pm

This mod adds a new Reply button next to the Quote button, which allows you to reply to a specific post.

The functionality of the old Post Reply button remains unaffected.

Posts made by clicking on the new Reply button will be linked back to the original message, allowing reverse browsing of a discussion.

If anyone feels like beta testing this and ensuring it works, please feel free! :D

User avatar
Carpe Diem
Registered User
Posts: 580
Joined: Tue Dec 10, 2002 11:19 pm

Post by Carpe Diem » Fri May 16, 2003 10:47 am

Hi!
I have installed this mod and works great for me!

Only one question.. do you have any idea how I could change the colour of the text that says "Carpe Diem wrote"? And I guess the same goes for both the "Quote" and "Code" thing.. I would like to change the font colour of these words!

Much appreciated!
:D

Red_5
Registered User
Posts: 65
Joined: Fri Nov 15, 2002 1:53 pm
Contact:

Post by Red_5 » Fri May 16, 2003 1:26 pm

Carpe Diem wrote: Only one question.. do you have any idea how I could change the colour of the text that says "Carpe Diem wrote"?


I've just had a quick look and I think you need to proceed as follows:
###############
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#

templates/subSilver/bbcode.tpl

#
#-----[ FIND ]------------------------------------------
#

<td><span class="genmed"><b>{L_QUOTE}:</b></span></td>

#
#-----[ REPLACE WITH ]------------------------------------------
#
# Place HTML code here to format the username wrote: text

<td><span class="genmed"><font color="#0000ff">{L_QUOTE}:</font></span></td>

#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

User avatar
Carpe Diem
Registered User
Posts: 580
Joined: Tue Dec 10, 2002 11:19 pm

Post by Carpe Diem » Fri May 16, 2003 3:05 pm

Damn there it was, in bbcode.tpl!!!

Thx a lot, I searched the whole .css and .cfg files and also had a long look inside the php files but here it was!

Again, thx for the good work, this is a very useful mod IMHO, at least for me! I noticed some friends as well about this one!

:D

Red_5
Registered User
Posts: 65
Joined: Fri Nov 15, 2002 1:53 pm
Contact:

Post by Red_5 » Fri May 16, 2003 4:05 pm

No problem. Glad to help. ;-)

charboy
Registered User
Posts: 22
Joined: Fri May 16, 2003 5:04 pm

Possible Bug

Post by charboy » Sun May 18, 2003 4:01 pm

I may have found a bug in this. On my board if the new post is the first one on the new page the in reply to link doesn't appear.

For example I had the number of messages set to 10 per page, and when I replied to a thread with exactly 10 messages the 11th shows up without the link...

Can anybody confirm this possible bug? Thanks.

Red_5
Registered User
Posts: 65
Joined: Fri Nov 15, 2002 1:53 pm
Contact:

Post by Red_5 » Mon May 19, 2003 12:56 pm

Hi there Charboy,

You're right! :roll:

It occurs in this section of the mod:
(From the original mod, when altering viewtopic.php...)

#
#-----[ FIND ]------------------------------------------
#

$quote = '<a href="' . $temp_url . '">' . $lang['Reply_with_quote'] . '</a>';

#
#-----[ AFTER, ADD ]------------------------------------------
#

$temp_url = append_sid("posting.$phpEx?mode=reply_post&" . POST_POST_URL . "=" . $postrow[$i]['post_id']);
$reply_post_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_reply_post'] . '" alt="' . $lang['Reply_Post'] . '" title="' . $lang['Reply_Post'] . '" border="0" /></a>';

if ( $i == 0 || empty($postrow[$i]['in_reply_to']))
{
$Post_in_reply_to = '';
$Reply_post = '';
$View_post = '';
}
else
{
$Post_in_reply_to = $lang['In_reply_to'];
$Reply_post = 'this message';
$View_post = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $postrow[$i]['in_reply_to']) . '#' . $postrow[$i]['in_reply_to'] . '">' . $Reply_post . '</a>';
}


Simply remove the $i == 0 || part of the if statement and upload the altered file.

I've updated the zip. Thanks, and good catch! :D

charboy
Registered User
Posts: 22
Joined: Fri May 16, 2003 5:04 pm

Post by charboy » Tue May 20, 2003 10:59 am

Red_5 wrote: Hi there Charboy,
I've updated the zip. Thanks, and good catch! :D

Thanks for fixing it, seems to work now!

charboy
Registered User
Posts: 22
Joined: Fri May 16, 2003 5:04 pm

Post by charboy » Tue May 20, 2003 11:06 am

Thank you again for this awesome MOD, it's something everybody was asking for on my board. One suggestion: I think it would better if the "quote" button also gives the link back, and that the only difference between the "quote" and the "reply" button is whether the quoted text appears in the edit box. If one wants to reply without the link they can use the old "post reply", but if somebody is bothering to quote text then they are replying to a specific message so the link should be there, so the quote button as it is doesn't seem as useful as a button which replies without quoted text, the users on my board would like a way to respond without having to delete all the quoted text each time. How hard would that be?

Red_5
Registered User
Posts: 65
Joined: Fri Nov 15, 2002 1:53 pm
Contact:

Post by Red_5 » Fri May 23, 2003 10:43 am

charboy wrote: Thank you again for this awesome MOD, it's something everybody was asking for on my board. One suggestion: I think it would better if the "quote" button also gives the link back, and that the only difference between the "quote" and the "reply" button is whether the quoted text appears in the edit box. If one wants to reply without the link they can use the old "post reply", but if somebody is bothering to quote text then they are replying to a specific message so the link should be there, so the quote button as it is doesn't seem as useful as a button which replies without quoted text, the users on my board would like a way to respond without having to delete all the quoted text each time. How hard would that be?


Hello again Charboy,

I like those ideas of yours, and I'll see about implementing them for the next release. I'm kinda bogged down at the mo with other stuff, but I'll get 'round to it sometime soon.

Regards,

Red_5
Registered User
Posts: 65
Joined: Fri Nov 15, 2002 1:53 pm
Contact:

Post by Red_5 » Fri May 23, 2003 3:58 pm

To any developers out there...

One addition to this mod I'd like to see is the sending of a notification email to the original poster when one replies to their post. This would be distinct from the general notifications that phpBB already sends.

However, I've no idea where to start with this. Can anyone here point me in the right direction?

tonileung
Registered User
Posts: 43
Joined: Mon Mar 17, 2003 4:16 am
Location: HongKong

Post by tonileung » Thu May 29, 2003 1:15 pm

I wish it to display "In reply to User A" instead of "In reply to this message. How can I do that?

Many many thanks for this mod as I have expected it for a long time! 8)

charboy
Registered User
Posts: 22
Joined: Fri May 16, 2003 5:04 pm

Post by charboy » Sun Jun 01, 2003 8:59 pm

Red_5 wrote: Hello again Charboy,

I like those ideas of yours, and I'll see about implementing them for the next release. I'm kinda bogged down at the mo with other stuff, but I'll get 'round to it sometime soon.

Regards,

Thanks for your work already, it's a great addition.

Red_5
Registered User
Posts: 65
Joined: Fri Nov 15, 2002 1:53 pm
Contact:

Post by Red_5 » Wed Jun 04, 2003 4:32 pm

Hi tonileung

I'm working on your suggestion. ;-)

Post Reply

Return to “[2.0.x] MODs in Development”