Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Masterd on July 23, 2014, 07:29:02 PM

Title: Reply Button In Every Post
Post by: Masterd on July 23, 2014, 07:29:02 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3424)

                
Reply Button In Every Post 1.0
                      
Author:
                   
Masterd

This mod will add a reply button to every post in a topic so there will be no need to scroll to the top or the bottom in order to post a new reply.

                                          
News in version 1.0

- Initial release



This modification is licensed under BSD License (http://www.opensource.org/licenses/bsd-license.php)

Copyright (c) 2014, Masterd
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Title: Re: Reply Button In Every Post
Post by: DSystem on July 23, 2014, 10:30:52 PM
I Liked.

There's always some novados who can't find the "REPLY" and end up clicking the "QUOTE"

As all the links have an icon. It would be nice to add to this also.
Title: Re: Reply Button In Every Post
Post by: Masterd on July 24, 2014, 03:11:42 AM
Quote from: DSystem on July 23, 2014, 10:30:52 PM
As all the links have an icon. It would be nice to add to this also.

If you take a good look you will see that there is an icon.
Title: Re: Reply Button In Every Post
Post by: Colin on July 24, 2014, 03:29:17 AM
Quote from: DSystem on July 23, 2014, 10:30:52 PM
I Liked.

There's always some novados who can't find the "REPLY" and end up clicking the "QUOTE"

Yeah that was me the first couple times. Not sure why I just couldn't manage to find it for a bit.
Title: Re: Reply Button In Every Post
Post by: joeyjojoshabadoo on October 14, 2014, 02:36:51 PM
Hi, getting this problem when installing with skyline theme. Any ideas? thanks
(img attached)
Title: Re: Reply Button In Every Post
Post by: Steve on October 14, 2014, 03:59:53 PM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Reply Button In Every Post
Post by: Ninja ZX-10RR on October 14, 2014, 07:46:22 PM
Quote from: DSystem on July 23, 2014, 10:30:52 PM
I Liked.

There's always some novados who can't find the "REPLY" and end up clicking the "QUOTE"

As all the links have an icon. It would be nice to add to this also.
I agree though, I can't see the icon, too.
Title: Re: Reply Button In Every Post
Post by: Burke ♞ Knight on October 14, 2014, 07:52:03 PM
If have custom theme, may want to check to see if the image actually got sent to the right place in the custom theme's images folder.
I've had plenty of times where SMF said it was copying the image to the custom theme, yet when look, it was not there.
Title: Re: Reply Button In Every Post
Post by: Ninja ZX-10RR on October 14, 2014, 07:58:43 PM
Bad bad boy you should know that I don't have a custom theme :P btw the image is not in the archive at all that's why I am just a little wtf xD
Title: Re: Reply Button In Every Post
Post by: Burke ♞ Knight on October 14, 2014, 08:00:27 PM
Clear forum cache, then do a hard refresh on browser.
And how would I know what theme you are using?
Never seen your site yet....LOL

EDIT: If one listed as your website here, that does NOT look like default theme. :P
Title: Re: Reply Button In Every Post
Post by: Ninja ZX-10RR on October 14, 2014, 08:03:43 PM
Did that too but didn't work XD I'll try again clearing the cache from cloudflare, and also from another browser...
Btw I said that many times, that's why you should know :P and... Yes I had some fun with the default .css ahahahahah the default theme made unrecognizable :D
Title: Re: Reply Button In Every Post
Post by: Ninja ZX-10RR on October 14, 2014, 08:07:21 PM
Nvm, I can curse at Cloudflare. :) fixed. Good I'm going to try to install some more things, and also edit the .css even more, I would like the design to be as modern as possible even if 2.0.x started to be a bit old.
Title: Re: Reply Button In Every Post
Post by: Rumpa on November 04, 2014, 02:26:01 AM
Hi I am getting error in Suspicion theme by ARG in index.css file test failed.
Title: Re: Reply Button In Every Post
Post by: Ninja ZX-10RR on November 04, 2014, 02:45:11 AM
You didn't attach the faulty file.
Title: Re: Reply Button In Every Post
Post by: Rumpa on November 04, 2014, 03:30:26 AM
Here is index.css and as below attachments
Title: Re: Reply Button In Every Post
Post by: Masterd on November 04, 2014, 03:03:13 PM
Attach the file to your post.
Title: Re: Reply Button In Every Post
Post by: Ninja ZX-10RR on November 04, 2014, 03:05:32 PM
Lol she did it dude it's right above the screenshot :P
Title: Re: Reply Button In Every Post
Post by: Rumpa on November 04, 2014, 03:18:18 PM
Quote from: Masterd on November 04, 2014, 03:03:13 PM
Attach the file to your post.
I attached that file in Reply #14
Title: Re: Reply Button In Every Post
Post by: Rumpa on November 08, 2014, 01:46:30 PM
what about my problem
Title: Re: Reply Button In Every Post
Post by: joeyjojoshabadoo on November 11, 2014, 05:38:18 PM
Quote from: joeyjojoshabadoo on October 14, 2014, 02:36:51 PM
Hi, getting this problem when installing with skyline theme. Any ideas? thanks
(img attached)

Hi, i hit install now as instructed above, then went to amend the css file, and the recommended part wasnt there

ul.quickbuttons li.reply_button

was nowhere to be seen

Which was supposed to then have this put in before it when i found it

/*Reply Button In Every Post by Masterd*/
ul.quickbuttons li.reply_button_in_every_post
{
   background: url(../images/buttons/reply.gif) no-repeat 0;
}


yet the function works now.

Any ideas what is going on there? The error was on the current theme which as I said, reply is now in every post.

Thanks for thoughts
Title: Re: Reply Button In Every Post
Post by: 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.
Title: Re: Reply Button In Every Post
Post by: Masterd on December 29, 2016, 09:31:50 AM
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.
Title: Re: Reply Button In Every Post
Post by: dougiefresh on December 29, 2016, 09:39:41 AM
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 . ': ';
Title: Re: Reply Button In Every Post
Post by: 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 ?
Title: Re: Reply Button In Every Post
Post by: Masterd on February 06, 2017, 01:24:50 PM
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.
Title: Re: Reply Button In Every Post
Post by: GL700Wing on February 18, 2017, 11:48:47 PM
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)