News:

Wondering if this will always be free?  See why free is better.

Main Menu

Reply Button In Every Post

Started by Masterd, July 23, 2014, 07:29:02 PM

Previous topic - Next topic

leftezi

I suggest a feature that would be helpful for newbies:

I think that when someone click on the "Reply" button near a post, he wants to answer to this post.
This would be helpful if in the beginning from the new post would be mentioned the poster from the post.

Example: If George have a post and i click the button "Reply" in his post, my post start with a "@George".
I hope you understand me.

This could be more helpful if the "@George" was clickable (url) and leads to George's post.
But i think this would be very complicated for the mods author.

Masterd

Quote from: leftezi on November 07, 2016, 08:17:44 AM
I suggest a feature that would be helpful for newbies:

I think that when someone click on the "Reply" button near a post, he wants to answer to this post.
This would be helpful if in the beginning from the new post would be mentioned the poster from the post.

Example: If George have a post and i click the button "Reply" in his post, my post start with a "@George".
I hope you understand me.

This could be more helpful if the "@George" was clickable (url) and leads to George's post.
But i think this would be very complicated for the mods author.

That would make quoting somewhat redundant, wouldn't it? It's just as simple to click on the quote button.

dougiefresh

Quote from: leftezi on November 07, 2016, 08:17:44 AM
I suggest a feature that would be helpful for newbies:

I think that when someone click on the "Reply" button near a post, he wants to answer to this post.
This would be helpful if in the beginning from the new post would be mentioned the poster from the post.

Example: If George have a post and i click the button "Reply" in his post, my post start with a "@George".
I hope you understand me.

This could be more helpful if the "@George" was clickable (url) and leads to George's post.
But i think this would be very complicated for the mods author.
This code edit might work for you.  It alters the quote functionality to this.

In Sources/Post.php, look for this line:
Code (Find) Select
$form_message = '[quote author=' . $mname . ' link=topic=' . $topic . '.msg' . (int) $_REQUEST['quote'] . '#msg' . (int) $_REQUEST['quote'] . ' date=' . $mdate . ']' . "\n" . rtrim($form_message) . "\n" . '[/quote]';
and replace it with this:
Code (Replace) Select
$form_message = '[quote author=' . $mname . ' link=topic=' . $topic . '.msg' . (int) $_REQUEST['quote'] . '#msg' . (int) $_REQUEST['quote'] . ' date=' . $mdate . ']' . "\n" . rtrim($form_message) . "\n[/quote]\n@" . $mname . ': ';

leftezi

Thanks.
I wanted to give a try and have installed the mod in SMF 2.0.13 but i don't see any reply button.
Is somewhere a setting that i've missed or is it not compatible with 2.0.13 ?

Masterd

Quote from: leftezi on January 22, 2017, 04:22:30 PM
Thanks.
I wanted to give a try and have installed the mod in SMF 2.0.13 but i don't see any reply button.
Is somewhere a setting that i've missed or is it not compatible with 2.0.13 ?

If you're using a custom theme you need to make manual edits.

GL700Wing

Quote from: leftezi on January 22, 2017, 04:22:30 PMI wanted to give a try and have installed the mod in SMF 2.0.13 but i don't see any reply button.

Make the following change to ./Themes/default/Display.template.php:

Find:
<li class="reply_button_in_every_post">

Replace with:
<li class="reply_button">

(This also makes the change that was made to ./Themes/default/css/index.css redundant)
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Marina3


GL700Wing

Quote from: Marina3 on June 12, 2024, 06:38:04 AMFor SMF 2.1.4?
@Marina3 Try the following code edit in ./Sources/Display.php (make a backup copy of the file first).

Find:
    $output['quickbuttons'] = array(
Add After:
        'reply' => array(
            'label' => $txt['reply'],
            'href' => $scripturl.'?action=post;topic='.$context['current_topic'],'.'.$context['start'].';last_msg='.$context['topic_last_message'],
            'javascript' => 'onclick="return oQuickReply;"',
            'icon' => 'change_menu',
            'show' => $context['can_reply']
        ),


Should look like this (you may need to clear your browser cache if it doesn't load immediately) ...
You cannot view this attachment.
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Marina3

Everything works! Thank you very much!

FrizzleFried

Working here too... Thank you... a nice little add on.  I wonder if the users will even notice.  :D


@rjen

In case someone wants this in 2.1.4 without having to manually make the code edit, I created a very simple mod package containing the change that GL700Wing specified...
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

GL700Wing

#31
Quote from: @rjen on June 12, 2024, 03:01:14 PMIn case someone wants this in 2.1.4 without having to manually make the code edit, I created a very simple mod package containing the change that GL700Wing specified...
Had some spare time today so I've created a hooks-only mod for this feature - will post link when it's approved.
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

GL700Wing

Quote from: GL700Wing on June 12, 2024, 10:29:15 PM
Quote from: @rjen on June 12, 2024, 03:01:14 PMIn case someone wants this in 2.1.4 without having to manually make the code edit, I created a very simple mod package containing the change that GL700Wing specified...
Had some spare time today so I've created a hooks-only mod for this feature - will post link when it's approved.
Link to Reply Button In Every Message mod (only for SMF 2.1).
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Advertisement: