Reply Button In All Posts
By Joe N (http://www.simplemachines.org/community/index.php?action=profile;u=183191)
Originally By KahneFan (http://www.simplemachines.org/community/index.php?action=profile;u=130133) at http://ipostyoupost.com
For SMF 2.0 RC1 (-1) and SMF 1.1.9
___________________________________________________________________________________________________
Link To Mod (http://custom.simplemachines.org/mods/index.php?mod=1755) | Comment On This Mod (http://www.simplemachines.org/community/index.php?topic=303592.0) | Contact The Author (http://www.simplemachines.org/community/index.php?action=pm;sa=send;u=183191)
___________________________________________________________________________________________________
FeaturesAdds a reply button next to the quote button within EVERY post so that users don't have to scroll-scroll-scroll to reply.V1.1The button is now "smart". If quick reply is on, users will be directed to quick reply. If quick reply is off, they will be directed to the full reply page. If the user is a guest, they will be directed to the login/register page.ConfigurationThere are no configuration settings for this modificaton in the admin panel. Once install is complete this mod will be active.SupportFor support with this mod, feel free to visit the Support Topic (http://www.simplemachines.org/community/index.php?topic=303592.0) or http://thechill.icr38.net/smf
Very nice KahneFan. I was waiting for something like to come along :P
Nice!
Quote from: AlreeGator on April 08, 2009, 04:17:34 AM
Quote from: AlreeGator on April 08, 2009, 03:47:09 AM
Nice!
Spoke too soon! Doesn't work. :(
What is wrong? Is it failing a test on install or does it not work in general?
Quote from: JBlaze™ on April 08, 2009, 01:40:06 AM
Very nice KahneFan. I was waiting for something like to come along :P
Actually a couple days ago I was thinking the same thing. Would be nice to have a reply option on each post. Works great. Didn't even have to edit the file for my theme.
Useful mod KahneFan, thanks..
Doesnt this promote ambiguity?
You may think you are replying to a POST (as is possible on a true threaded system like IPB) but you are actually in fact, just replying to the thread as always?
Still. this is much needed overal. People always cry about low participation levels in their communities w/o realizing that there are often two many structural barriers to impulse actions (and replying to a post is often an impulse decision) so having reply button on each post is probably the best thing, and I feel should be the default and in the core. (Why scroll all the way to the top or bottom to reply to a post you just saw?)
As a matter of fact, actually, there should be a REPLY button on the board index as well, you click it, it takes you to the reply form (and you can look a the previous posts which are shown anyway and read them then) most threads can fit in a screen anway and for those that dont, a scrolling/scrollable sidebar that allows you to go back and read the whole lot would help. Especially for a fast moving, collaborative/brainstorming board, you dont want to force people into a laborious methodical plodding through in order to quickly post.
I would call this a VERY GOOD MOD. maybe even profound for its potential impact on member participation
(searches in vain for a thumbs up icon)
I hate how you can make mods and I can't :(
But anyway, well done ;D
Quote from: JBlaze™ on April 08, 2009, 04:58:55 AM
Quote from: AlreeGator on April 08, 2009, 04:17:34 AM
Quote from: AlreeGator on April 08, 2009, 03:47:09 AM
Nice!
Spoke too soon! Doesn't work. :(
What is wrong? Is it failing a test on install or does it not work in general?
I echo this question. If you've found an error, please let me/us know.
KahneFan, I posted a suggestion on IPYP ;)
I think it would be better if you (KahneFan) put "if can reply" condition..?!
Actually, I like that it takes guests to a login/register page. (Personally)
I think it may help to urge guests to register. This way they have the urge to post (now) and they can click the button, then they think "Well, I didn't want to register, but I really want to get my point across... OK, I'll register"
hehe, you have right ;)
Before I even download this mod, can anyone show me what it looks like via screen shots when it is working.
See attached...
Works really, well and is very useful, well done ;).
Quote from: phpMyTony on April 08, 2009, 11:07:59 AM
KahneFan, I posted a suggestion on IPYP ;)
What is this IPYP you speak off?
I'm thinking of having it grab the reply and if they are not registered, have a quick registration form appear underneath, (That way they dont have to leave the page) but that will take a bit more SMF/PHP skills than I have at the mo.
QuoteWhat is this IPYP you speak off?
I post You post, look at the KahneFan sig.. ;)
n1 i like this and no probs installing on multiple themes. The more reply buttons on a post the better! imo
Quote from: cflforum on April 08, 2009, 02:55:28 PM
What is this IPYP you speak off?
I'm thinking of having it grab the reply and if they are not registered, have a quick registration form appear underneath, (That way they dont have to leave the page) but that will take a bit more SMF/PHP skills than I have at the mo.
Ravac has it right, iPost is my site (banner in signature).
And, it's funny, the suggestion prior to yours was close. On iPost, Tony suggested I make it so that when the new reply button is clicked a reply box would pop up similar to the quick reply box. Both of these would be above my skill level at this time. And TBH, I like having the reply button go to the full reply page for members, and I like guests being taken to the login+register page. Maybe the person clicking is actually a member who forgot to log in. However, in regards to Tony's suggestion, it wouldn't be hard for me to make another, similar, mod which would act like the "Go Down" button which takes you to the bottom of the page, which is where the quick reply box is.
If you would prefer to direct your members to the quick reply box:
./Themes/default/Display.template.php
FIND:
// Simple Reply Button
echo '
<li><a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'], '">', $respond_button, '</a></li>';
REPLACE WITH:
if ($context['user']['is_logged'])
// Simple Reply Button
echo '
<li><a href="#quickreply">', $respond_button, '</a></li>';
Note2: I added a conditional statement to the second code since it would wreak havoc on a guest when they can't see the quick reply box.
WOOOWEE!
If you have the smooth scroll javascript installed, it makes a sthmooth sthweeet * scroll to the bottom of the page!
http://www.dezinerfolio.com/2007/08/08/df-javascript-smooth-scroll/
A nice bit of animation to make people happy to contribute :D
Quote from: KahneFan on April 08, 2009, 06:10:28 PM
If you would prefer to direct your members to the quick reply box:
./Themes/default/Display.template.php
FIND:
// Simple Reply Button
echo '
<li><a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'], '">', $respond_button, '</a>]</li>';
REPLACE WITH:
if ($context['user']['is_logged'])
// Simple Reply Button
echo '
<li><a href="#quickreply">', $respond_button, '</a></li>';
Note2: I added a conditional statement to the second code since it would wreak havoc on a guest when they can't see the quick reply box.
Don't take me as pretending to have any idea what I'm talking about beyond simply pointing out that the list tag is not in the original edit according to either my file or the parser O:)
That's for 2.0. I will have to take a look at 1.1.X for that mod to the mod :D
I have added a 2nd version which directs to quick reply for 1.1.x and 2.0.
To Do
Combine the two versions. If quick reply is on, direct to quick reply. If QR is off, direct to full reply page.
**If I can figure out how: give admins a switch in admin panel to choose which reply option they want to direct users to.
Can't believe this wasn't done by someone sooner! Thanks!
Quote from: KahneFan on April 12, 2009, 09:43:07 AM
That's for 2.0. I will have to take a look at 1.1.X for that mod to the mod :D
Ahhh, well, that explains everything :)
Quote from: Tiribulus on April 12, 2009, 01:58:52 PM
Quote from: KahneFan on April 12, 2009, 09:43:07 AM
That's for 2.0. I will have to take a look at 1.1.X for that mod to the mod :D
Ahhh, well, that explains everything :)
Just wanted to be sure you saw I made a second package which will achieve this for you.
I was going to try it both ways and see which I like best. Thanks for the quick work. I'm sure others will appreciate it as well.
V1.1
The button is now "smart". If quick reply is on, users will be directed to quick reply. If quick reply is off, they will be directed to the full reply page. If the user is a guest, they will be directed to the login/register page.
Its an useful mod KahneFan.
Thanks :D
Nice mod 8) . Works a treat thank you. ;)
Quote from: KahneFan on April 12, 2009, 10:55:01 PM
V1.1
The button is now "smart". If quick reply is on, users will be directed to quick reply. If quick reply is off, they will be directed to the full reply page. If the user is a guest, they will be directed to the login/register page.
That is such a cool thing to do :). ;). Great mod ;).
Many thanks for this mod. It installed fine on 1.1.8 and works great.
Cheers
Chas
Thanks :D
Hi KahneFan, further to my post above, the mod is great but we've hit a snag. The reply button remains is a topic is LOCKED and then is the members don't notice they click it only to get an error message.
Is there anyway to hide the button when a topic is locked?
Cheers
Chas.
I'll have to look into that.
thanks for this great mod i think smf need more of this ;D
...well. I looked, and I don't know how to change that :(
I'm open to suggestions.
Quote from: KahneFan on June 17, 2009, 12:08:13 AM
...well. I looked, and I don't know how to change that :(
I'm open to suggestions.
Thanks for looking into it. I suppose the code for the ordinary REPLY button that is provided by SMF, that changes when a topic is locked, would be of help? I'll look into it myself.
I looked at that, but it's built different than the buttons on the top of each message. Let me know if you see how it can be applied though, and I'll be happy to add it in.
Hey KahneFan
Very nice mod. One problem, one of my boards. I made it so the users couldn't reply. It still shows the reply button. It also shows it for guests as well and they can't post. :(
In regards to guests, if you see above, it's by design that guests can see the button. This is left so that it may push guests to register. As for locked boards, if you look a couple of posts up, I don't know how to change that.
However, per my "Want My Mod? (http://www.simplemachines.org/community/index.php?topic=319677.0)" thread, if anyone would like to take this over, just let me know. Please see the restrictions listed in the WMM thread as to what I ask in order to take a mod over.
Quote from: KahneFan on June 28, 2009, 04:34:17 PM
In regards to guests, if you see above, it's by design that guests can see the button. This is left so that it may push guests to register. As for locked boards, if you look a couple of posts up, I don't know how to change that.
However, per my "Want My Mod? (http://www.simplemachines.org/community/index.php?topic=319677.0)" thread, if anyone would like to take this over, just let me know. Please see the restrictions listed in the WMM thread as to what I ask in order to take a mod over.
I did a topic on your over post
I would like to take over the reply button
As per the request here (http://www.simplemachines.org/community/index.php?topic=321196.0).
// These are some cache image buttons we may want.
$respond_button = create_button('reply.gif', 146, 146, 'align="middle"');
// These are some cache image buttons we may want.
if (!$context['is_locked'])
echo
$respond_button = create_button('reply.gif', 146, 146, 'align="middle"');
-[n3rve]
Are you sure that will work? Usually the buttons are called inside other code, so if the code only calls $respond_button the conditional statement wont be called with it, unless I'm missing something.
Quote from: [n3rve] on July 01, 2009, 05:21:57 AM
As per the request here (http://www.simplemachines.org/community/index.php?topic=321196.0).
// These are some cache image buttons we may want.
$respond_button = create_button('reply.gif', 146, 146, 'align="middle"');
// These are some cache image buttons we may want.
if (!$context['is_locked'])
echo
$respond_button = create_button('reply.gif', 146, 146, 'align="middle"');
-[n3rve]
Thank you [n3rve]. Editing Display.template.php worked fine and removed the REPLY button on all locked topics in all themes as required. I have learned something new today. Thanks again.
Chas.
OK Whilst the fix to remove the REPLY (RESPOND) Button in a locked topic works fine, anyone viewing a locked topic now generates the following error in the log:
8: Undefined variable: respond_button
File: /home/......./......./user/htdocs/forum/Themes/default/Display.template.php (main sub template - eval?)
Line: 394
Any way to quell this error? (Apart from removing the fix)
Chas
For a member?
Forum URL please
Or screenshot?
Thanks
Quote from: Joe N on July 01, 2009, 10:11:46 AM
For a member?
Forum URL please
Or screenshot?
Thanks
For me?
Here's the complete error message.
Apply Filter: Only show the error messages of this member Hal9000 Today at 11:52:56 AM
Apply Filter: Only show the error messages of this IP address ***.***.***.*** Apply Filter: Only show the error messages of this session 17e275d32a8b8f217878876f649e4fef
Apply Filter: Only show the error messages of this URL http://www.fiftyplusforum.co.uk/forum/index.php?topic=1009.0
Apply Filter: Only show the errors with the same message
8: Undefined variable: respond_button
File: /home/..../..../user/htdocs/forum/Themes/default/Display.template.php (main sub template - eval?)
Line: 394
Forum is included in the error
How does this help?
What did you edit?
Quote from: Joe N on July 01, 2009, 10:43:29 AM
What did you edit?
As Per [Nerve]'s post http://www.simplemachines.org/community/index.php?topic=303592.msg2137888#msg2137888 I editied the display.template.php file. See above.
Chas.
PS See you registered to post. You'll have got the Joining e-mail automatically.
Have locked that post now so you can see the reply button has now gone.
You will have to ask [n3rve] that as he did that code
Sorry :(
Silly mistake, reverse the code changes you made and do this:
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '<a href="#quickreply">', $respond_button, '</a>';
else
echo '<a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'], '">', $respond_button, '</a>';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '<a href="#quickreply">', $respond_button, '</a>';
elseif ($context['can_reply'])
echo '<a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'], '">', $respond_button, '</a>';
-[n3rve]
Quote from: [n3rve] on July 01, 2009, 12:08:01 PM
Silly mistake, reverse the code changes you made and do this:
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '<a href="#quickreply">', $respond_button, '</a>';
else
echo '<a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'], '">', $respond_button, '</a>';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '<a href="#quickreply">', $respond_button, '</a>';
elseif ($context['can_reply'])
echo '<a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'], '">', $respond_button, '</a>';
-[n3rve]
Thanks again [n3rve], that fixed the issue and no errors in the list.
Cheers (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ffc04.deviantart.com%2Ffs15%2Ff%2F2007%2F054%2F3%2Fc%2F_cheers__by_Stream_Sun.gif&hash=7be5a48aabcc985903a5d620080712a6989f9c24)
Chas
Hi,
Is there anyway to force this to use the normal reply box no matter what the quick reply settings are?
Thanks,
Grinch843.
Quote from: Grinch843 on July 19, 2009, 02:42:34 PM
Hi,
Is there anyway to force this to use the normal reply box no matter what the quick reply settings are?
Thanks,
Grinch843.
Just disable the quick reply
...or....
(untested)
FIND:
// Simple Reply Button
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li><a href="#quickreply">', $respond_button, '</a></li>';
else
echo '
<li><a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'], '">', $respond_button, '</a></li>';
REPLACE WITH:
// Simple Reply Button
if ($context['can_reply'])
echo '
<li><a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'], '">', $respond_button, '</a></li>';
Quote from: Joe N on July 20, 2009, 01:51:51 PM
Just disable the quick reply
Yeah, that was my first thought, but I'am having issues with that at the moment(Discussing it over in the 2.x support forum). For some reason I can't force all new users to have the quick reply disabled. It's defaulting to the "Show, off by default" setting which then causes a problem when the reply button is hit, it just jumps to the bottom of the page where the quick reply bar is and nothing is there, the user has to hit the + to expand the box.
I'am gonna try KahneFan's suggestions for now and see if that works....
Thanks,
Grinch843.
*Update*
KahneFan, worked like a charm, thanks for the help.
Grinch843....
Quote from: Grinch843 on July 20, 2009, 09:25:35 PM
*Update*
KahneFan, worked like a charm, thanks for the help.
Grinch843....
Sorry I couldn't help.
I am not good with smf 2x
smf 2.0 rc2 and smf 1.1.11 now working with this mod!! :)
Quote from: Joe N on December 04, 2009, 10:33:36 AM
smf 2.0 rc2 and smf 1.1.11 now working with this mod!! :)
That's great to know, because, although it seems a simple mod, it's a must have for my forums.
Thanks! :)
RC2 - I'm getting this error:
2. Add Before ./Themes/default/Display.template.php Test failed
I am getting the same error, but pushed through with the install. Now nothing happens or no reply button can be seen. I think the installer is looking for this:
$reply_button = create_button('quote.gif', 'reply_quote', 'quote', 'align="middle"');
in the Display.Template.php but there is none like that there it cannot install the required code.
How do we fix this? I am also at RC2 Curve theme. This is a very good mod but does not work with the Curve theme.
Quote from: Mabangis on December 05, 2009, 05:54:06 AM
I am getting the same error, but pushed through with the install. Now nothing happens or no reply button can be seen. I think the installer is looking for this:
$reply_button = create_button('quote.gif', 'reply_quote', 'quote', 'align="middle"');
in the Display.Template.php but there is none like that there it cannot install the required code.
Same error, same problem. Hard for a mod to look for code that isn't there.
Same thing with me as well. There's only two edits for this mod. The first edit DOES work in RC2. The 2nd edit DOES NOT work in RC2. I tried searching with just partial code to find the eidt and still can't find anything.
I think this mod may have accidentally been checked to say it worked without anyone checking to make sure the code was still present.
This Mod works only with the core-theme!
Look at Line 192 > 198 in /theme/core/display.template.php
Who can make it compatible with the curve-theme?
I wich you a merry christmas...
I too am having a problem installing on Curve, theme.
Second manual edit does not work as I cannot find the specified code.
Really would like this to work in Curve.
not working on SMF rc 2
:(
Has anyone gotten it to work, yet on Curve?
Joe, are you still supporting this mod?
BTW, this is another one of those things that should be standard in SMF. Having the REPLY button more easily accessible really does increase replies. (which in turn keeps people more active) ;)
Quote from: C4G-TK on January 15, 2010, 07:50:41 PM
BTW, this is another one of those things that should be standard in SMF. Having the REPLY button more easily accessible really does increase replies. (which in turn keeps people more active) ;)
True, Vbulletin have this.
yesss....i agree.
I have just tried to install this on a new install of SMF 2.0 RC2
The error message I get is:
Quote1. Execute Modification ./Themes/default/Display.template.php Test failed
1. Add Before ./Themes/default/Display.template.php Test successful
2. Add Before ./Themes/default/Display.template.php Test failed
Packages installed are:
1. FantasticSmileys 1.0
2. Ad Managment 2.3.6.1
3. Reply Button in All Posts 1.1 [ Install Mod ] [ List Files ] [ Delete ]
4. EzPortal 0.3.4
5. Floating Bar Mod Language Pack 1.1.3
6. Karma Description Mod 2.6.3
7. Pretty URLs 1.0RC
Any ideas on what I need to do.
Thanks
Quote from: ABCDiamond on January 22, 2010, 06:41:18 AM
I have just tried to install this on a new install of SMF 2.0 RC2
The error message I get is:
Quote1. Execute Modification ./Themes/default/Display.template.php Test failed
1. Add Before ./Themes/default/Display.template.php Test successful
2. Add Before ./Themes/default/Display.template.php Test failed
Packages installed are:
1. FantasticSmileys 1.0
2. Ad Managment 2.3.6.1
3. Reply Button in All Posts 1.1 [ Install Mod ] [ List Files ] [ Delete ]
4. EzPortal 0.3.4
5. Floating Bar Mod Language Pack 1.1.3
6. Karma Description Mod 2.6.3
7. Pretty URLs 1.0RC
Any ideas on what I need to do.
Thanks
Install manually in the Display.template.php
Quote from: Dismal Shadow on January 22, 2010, 12:33:15 PM
Quote from: ABCDiamond on January 22, 2010, 06:41:18 AM
I have just tried to install this on a new install of SMF 2.0 RC2
The error message I get is:
Quote1. Execute Modification ./Themes/default/Display.template.php Test failed
1. Add Before ./Themes/default/Display.template.php Test successful
2. Add Before ./Themes/default/Display.template.php Test failed
Packages installed are:
1. FantasticSmileys 1.0
2. Ad Managment 2.3.6.1
3. Reply Button in All Posts 1.1 [ Install Mod ] [ List Files ] [ Delete ]
4. EzPortal 0.3.4
5. Floating Bar Mod Language Pack 1.1.3
6. Karma Description Mod 2.6.3
7. Pretty URLs 1.0RC
Any ideas on what I need to do.
Thanks
Install manually in the Display.template.php
How can you install it in Display.template when the code does not exist in RC2?
I'll check, but I even looked at a fresh file of RC2's Display.template and can't find that edit anywhere to make it work.
Quote from: C4G-TK on December 13, 2009, 02:54:53 AM
Same thing with me as well. There's only two edits for this mod. The first edit DOES work in RC2. The 2nd edit DOES NOT work in RC2. I tried searching with just partial code to find the eidt and still can't find anything.
I think this mod may have accidentally been checked to say it worked without anyone checking to make sure the code was still present.
Quote from: C4G-TK on January 22, 2010, 01:46:21 PM
Quote from: Dismal Shadow on January 22, 2010, 12:33:15 PM
Quote from: ABCDiamond on January 22, 2010, 06:41:18 AM
I have just tried to install this on a new install of SMF 2.0 RC2
The error message I get is:
Quote1. Execute Modification ./Themes/default/Display.template.php Test failed
1. Add Before ./Themes/default/Display.template.php Test successful
2. Add Before ./Themes/default/Display.template.php Test failed
Packages installed are:
1. FantasticSmileys 1.0
2. Ad Managment 2.3.6.1
3. Reply Button in All Posts 1.1 [ Install Mod ] [ List Files ] [ Delete ]
4. EzPortal 0.3.4
5. Floating Bar Mod Language Pack 1.1.3
6. Karma Description Mod 2.6.3
7. Pretty URLs 1.0RC
Any ideas on what I need to do.
Thanks
Install manually in the Display.template.php
How can you install it in Display.template when the code does not exist in RC2?
I'll check, but I even looked at a fresh file of RC2's Display.template and can't find that edit anywhere to make it work.
Quote from: C4G-TK on December 13, 2009, 02:54:53 AM
Same thing with me as well. There's only two edits for this mod. The first edit DOES work in RC2. The 2nd edit DOES NOT work in RC2. I tried searching with just partial code to find the eidt and still can't find anything.
I think this mod may have accidentally been checked to say it worked without anyone checking to make sure the code was still present.
Same exact deal happened to me! The 2nd edit DOES NOT work in RC2. Can we get help please ;D
Any new news on the Curve issue?
Waiting for an answer too...
How did this mod ever get approved to work with 2.0 RC2??
Mods are only approved once, then it's up to the mod author to list the compatibility.
Joe, if you are not able to support this mod, would you allow it to be taken over?
cant anyone remove that compatible with RC2 thing
as it is creating a lot of confusion throughout the members
So my request is that till it is really functional with RC2 plz remove the stamp that says its compatible with RC2 ;).
Quote from: xnathansxdadx on February 04, 2010, 07:37:10 AM
QuoteJoe, if you are not able to support this mod, would you allow it to be taken over?
Quote
Sorry I couldn't help.
I am not good with smf 2x
I think this clearly outlines that he cannot support it, does it not?
I was quite bluntly told yesterday that because it says so it must be true.
Which is why I've asked Joe to allow someone to take this mod over. I do not have the time to support this mod, which is why I offered it to be taken over. However, if those who have taken over my mods do not have time to support them, I ask that they allow them to be taken over by someone who might. I ask this so that my mods (and all mods) can continue to grow if the original authors can not continue.
i made the modifications myself n its working all fine on my forum .... i've RC2
if im allowed can i post codes for others here :)
Quote from: sid2varun on February 04, 2010, 09:03:13 AM
i made the modifications myself n its working all fine on my forum .... i've RC2
if im allowed can i post codes for others here :)
You are allowed as long as you don't upload the modified mod.
kk ...so here we go
/themes/default/Display.template.php
Find:
// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="quote_button"><a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';', $context['session_var'], '=', $context['session_id'], '" onclick="return oQuickReply.quote(', $message['id'], ', \'', $context['session_id'], '\', \'', $context['session_var'], '\', true);">', $txt['quote'], '</a></li>';
Add before:
// Simple Reply Button
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="reply_button"><a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'], '">', $txt['reply'], '</a></li>';
Find:
// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';
Add before:
// Simple Reply Button
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="reply_button"><a>', $txt['reply'], '</a></li>';
n see urself ;)
Note:The codes in <li> tags are different look carefully , as most users thinking i wrote same code twice here.They both are 2 different codes in the template file.
If mod author wants he can make mod package of this , i dont have problem :)
Thanks for sharing, default theme only I see...(At least it need to modify manually for each theme)
/me is beginning to think custom themes aren't worth it...
[off topic]
Quote from: Dismal Shadow on February 04, 2010, 10:06:49 AM
/me is beginning to think custom themes aren't worth it...
/me figured that out a while back as well.
As long as the custom theme ONLY changes colors and images, you're OK. If the theme changes the actual body layout, that's when you come into trouble.
[/off topic]
[on topic]
Thank you sid2varun for the update!
When will it be compatible with RC2?
Quote from: Kcmartz on February 04, 2010, 12:24:18 PM
When will it be compatible with RC2?
have u tried this
http://www.simplemachines.org/community/index.php?topic=303592.msg2487405#msg2487405
Quote from: sid2varun on February 04, 2010, 10:01:19 AM
kk ...so here we go
/themes/default/Display.template.php
Find:
// Can they reply? Have they turned on quick reply?
Add before:
// Simple Reply Button
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="reply_button"><a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'], '">', $txt['reply'], '</a></li>';
Find:
// Can they reply? Have they turned on quick reply?
Add before:
// Simple Reply Button
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="reply_button"><a>', $txt['reply'], '</a></li>';
n see urself ;)
If mod author wants he can make mod package of this , i dont have problem :)
I know it is 3am here, so maybe I'm just tired now, but you have two edits showing that look for the same code in both edits. Are you saying to add both of the codes BEFORE that same code? If so, why not just make one edit???
Also, when I parse the regular package, I have two edits showing in the parser. The first edit I can do which looks for the code that you search for in your edits. The second edit which talks about the create button is the one that does not exist.
I'm going to bed...
I know it is 3am here, so maybe I'm just tired now, but you have two edits showing that look for the same code in both edits. Are you saying to add both of the codes BEFORE that same code? If so, why not just make one edit???
Also, when I parse the regular package, I have two edits showing in the parser. The first edit I can do which looks for the code that you search for in your edits. The second edit which talks about the create button is the one that does not exist.
I'm going to bed...
[/quote]
edited .... see the post now ;)
http://www.simplemachines.org/community/index.php?topic=303592.msg2487405#msg2487405
LOL!!!!! Thanks for that! Now I don't feel too bad. I'm usually a night owl, so I figured I must have really been out of it!
Whew! I'm not getting old.... yet. (BTW, It's not noon and I'm just getting up!)
Testing it now! ;D
THANKS AGAIN... WORKING!
I'm using a color-modified Babylon theme. The mod installs fine, but doesn't actually produce a reply button. http://www.survivalnewsonline.com/snoboards
Quote from: sid2varun on February 04, 2010, 10:01:19 AM
kk ...so here we go
/themes/default/Display.template.php
Find:
// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="quote_button"><a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';', $context['session_var'], '=', $context['session_id'], '" onclick="return oQuickReply.quote(', $message['id'], ', \'', $context['session_id'], '\', \'', $context['session_var'], '\', true);">', $txt['quote'], '</a></li>';
Add before:
// Simple Reply Button
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="reply_button"><a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'], '">', $txt['reply'], '</a></li>';
Find:
// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';
Add before:
// Simple Reply Button
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="reply_button"><a>', $txt['reply'], '</a></li>';
n see urself ;)
If mod author wants he can make mod package of this , i dont have problem :)
I have the second line to search twice in the code... wich I need to change? both?
one nearly 776 line, and the other one at 431...
(it is normal to have that twice?)
btw, the first change I made it like this:
// Simple Reply Button
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="reply_button"><a href="#quickreply">', $txt['reply'], '</a></li>';
else
echo '
<li class="reply_button"><a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'], '">', $txt['reply'], '</a></li>';
so, it goes to bottom when the user have quick reply on...
any way to go down, and the cursor in the reply section?
how can be the "<li class="reply_button"><a href="#quickreply">', $txt['reply'], '</a></li>" section to make focus on the textarea?
I mean the cursor, so the user is ready to write... without having to clic in the textarea...
(I have tried a few javascript... but I really have no idea about JS......)
I am using this mod now in RC3 but it doesn't work. I did use it in 1.1.11 & loved it. work perfect as how I wanted it to work.
but after upgrading my forum I can't install it in the
admin section and had to add the code to display.template.php my self.
the reply icon shows now but when clicking on the reply
my page just moves to the bottom of the forum page.
is there something I can change in this coding to make it work with RC3
// Simple Reply Button
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li><a href="#quickreply">', $respond_button, '</a></li>';
else
echo '
<li><a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'], '">', $respond_button, '</a></li>';
// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li><a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], '" onclick="return oQuickReply.quote(', $message['id'], ');">', $reply_button, '</a></li>';
Please is anyone can help. thankyou
lolzz.. on my forum... there is a link for reply and it works fine but no icon.. other buttons have icons but reply buttons dsnt show any icon or text.. but link works fine..
i can notice the presence of link by hovering... m using rc3...
This mod does not work with 1.1.11 and Babylon theme. It installs correctly, but just does not work.
If you used the package manager, it only places the edits in Default's template. You must manually place this mod's edits in Babylon's Display.template.php. Just use the 1.1.11 pulldown on the mod's page and the parsing instructions will be found there.
:)
I tried installing it manually. The first part works. Cannot find the line listed on the second part. The line on the second part can only be found inside the default theme.
If you'll attach Babylon's Display.template.php, I'll take a look at it, Blade_Runner, and see if I can find a solution. If I can't, someone else who can will probably weigh in.
:)
I have attached it. Greatly appreciate your help. :)
I'm asking around, Blade_Runner, because it's beyond my scope. That last "add" string would have to be rewritten to work with your theme, I guess.
I'm believing that one of the code-savvy members here will be able to clinch it, though. :)
Blade_Runner, upload the attached file to Babylon's theme directory but, before you do, pull the unedited one from your server out onto your desktop. That way, if this goes awry, you can just re-upload your original. :)
I tried, it doesn't work.
The codes from the first part is missing. Even after adding it in, it still does not work.
The code for the first part is as follows:
----------------------------------
// Simple Reply Button
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '<a href="#quickreply">', $respond_button, '</a>';
else
echo '<a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'], '">', $respond_button, '</a>';
----------------------------------
Ah..... I just placed the edit in the file you'd sent me earlier and I thought the first part was in it. :o
I'll ask around about this, and hopefully, in the meantime, someone (who actually knows what he's doing) will see this and weigh in.
Well, Blade_Runner.... my method is known as "duct tape". *grin* But I installed the babylon Theme (it wasn't on my test board) and I got it to work.
Upload this attached file and see if anything blows up.
It works for me, but my forum is used to duct tape, so yours might be more particular. :D
(Save your original onto your desktop first, before sending this up, just in case you need to re-upload it.)
Let me know?
It's working. Thxs for your help. Greatly appreciate it.
Maybe you can post out what you did so that others can make their own modifications.
This is only a slight problem left. It does not work for guest. According to the description, it is suppose to show. It's not important and I don't need that function. Just want to let others who might want to install know about this.
My boards, both test and active, are very heavily guarded against allowing guests any access at all, so I'm guessing at this, but I imagine you'd just need to make sure that the "Guest" member group has permission to post replies to topics checked. Also, you may need to check "Boards" in your admin panel (modify) and make sure that the boards in question allow guests to access them.
The first edit in the mod is simple enough, so I won't bother with that one. The second edit (and this is just for the babylon Theme) is:
Find:
// Can they reply? Have they turned on quick reply?
and add before:
// How about replying at any point?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<a href="', $scripturl, '?action=post;reply=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '" onclick="doReply(', $message['id'], ', \'', $context['session_id'], '\'); return false;">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reply_sm.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]), '</a>';
// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<a href="', $scripturl, '?action=post;reply=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reply_sm.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]), '</a>';
I also added $respond_button to the global settings (in two places) to get rid of a forum error.
I'm glad it's functioning for you. :)
Duct tape for 2.0 RC3? :P
Quote from: Dismal Shadow on June 30, 2010, 10:48:58 PM
Duct tape for 2.0 RC3? :P
The time has come for me to cave in and install an RC3 test board, today. :D
Well, DS....... it's Duct Tape, for sure..... *grin*...... but I have it working for 2.0 RC3. Well, one disclaimer.... if it's supposed to work with "quick reply", then I don't have that working, but the mod never really addressed quick reply, as far as I can tell. If you have a reply button in every post, I suppose that eliminates the need for quick reply?
Nothing blew up and there are no errors. (I'm shocked!) Here's what I did:
In (Default) Display.template.php, find:
// Can they reply? Have they turned on quick reply?
Add before:
// Simple Reply Button
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="respond_button"><a href="', $scripturl, '?action=post;reply=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], '">', $txt['reply'], '</a></li>';
In (Default/css) index.css, find:
ul.quickbuttons li.reply_all_button
{
background: url(../images/theme/quickbuttons.png) no-repeat 0 -180px;
}
Add before:
ul.quickbuttons li.respond_button
{
background: url(../images/theme/quickbuttons.png) no-repeat 0 -180px;
}
(You might want to keep some "clean" copies from your server on standby, in case you smell smoke.)
:D
Originally I had it so that, if you had QR activated, clicking the reply button would send you to the QR box at the bottom of the page. If you do not have the QR activated, it would take you to a new page. And, if you were not registered, you would be taken to registration.
Quote from: KahneFan on July 01, 2010, 10:03:04 PM
Originally I had it so that, if you had QR activated, clicking the reply button would send you to the QR box at the bottom of the page. If you do not have the QR activated, it would take you to a new page. And, if you were not registered, you would be taken to registration.
I wish I were bright enough to accomplish more than the bare bones, KahneFan, but I'm woefully inept. :D
This might be regarded as a "simple" mod, but it's one of the most useful things I've ever put in a forum. My users absolutely love it. :)
Quote from: gbsothere on July 01, 2010, 10:11:09 PM
This might be regarded as a "simple" mod, but it's one of the most useful things I've ever put in a forum. My users absolutely love it. :)
Agreed. I never understood why it wasn't a default feature.
// Can they reply? Have they turned on quick reply?
This code y itself is listed three times in Display.template.php. Is this supposed to be added three times?
Quote from: C4G-TK on July 06, 2010, 01:17:50 AM
// Can they reply? Have they turned on quick reply?
This code y itself is listed three times in Display.template.php. Is this supposed to be added three times?
Unfortunately, my 1.1.11 Display.template.php is very heavily modded but I can tell you that it's placed before
// So... quick reply is off, but they *can* reply?
I have it in 2.0 RC1 as
// Simple Reply Button
if ($context['can_reply'])
echo '<a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'], ';m=', $message['id'], ';poster=', $message['member']['name'], '">', $respond_button, '</a>';
before that same line.
(I'm actually using this mod to make another "sort of mod" that I monkeyed around with work so..... duct tape.)
:D
I wish I had the success others did with a version other than default. I'm using Classic 1.1.11 and it says it's installed but the new "reply" button is simply not showing up. Any advice?
Quote from: alphacaveman on July 12, 2010, 08:36:59 PM
I wish I had the success others did with a version other than default. I'm using Classic 1.1.11 and it says it's installed but the new "reply" button is simply not showing up. Any advice?
Classic? If you installed it through the package manager, you're going to have to manually edit that theme's Display.template.php. Let me know if you hit a snag and I'll take a shot at it.
Quote from: gbsothere on July 01, 2010, 09:18:31 PM
Well, DS....... it's Duct Tape, for sure..... *grin*...... but I have it working for 2.0 RC3. Well, one disclaimer.... if it's supposed to work with "quick reply", then I don't have that working, but the mod never really addressed quick reply, as far as I can tell. If you have a reply button in every post, I suppose that eliminates the need for quick reply?
Nothing blew up and there are no errors. (I'm shocked!) Here's what I did:
In (Default) Display.template.php, find:
// Can they reply? Have they turned on quick reply?
Add before:
// Simple Reply Button
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="respond_button"><a href="', $scripturl, '?action=post;reply=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], '">', $txt['reply'], '</a></li>';
In (Default/css) index.css, find:
ul.quickbuttons li.reply_all_button
{
background: url(../images/theme/quickbuttons.png) no-repeat 0 -180px;
}
Add before:
ul.quickbuttons li.respond_button
{
background: url(../images/theme/quickbuttons.png) no-repeat 0 -180px;
}
(You might want to keep some "clean" copies from your server on standby, in case you smell smoke.)
:D
I am not sure why you say quick reply is working for you but it does work for me.
:o
Quote from: gbsothere on July 12, 2010, 08:46:36 PM
Quote from: alphacaveman on July 12, 2010, 08:36:59 PM
I wish I had the success others did with a version other than default. I'm using Classic 1.1.11 and it says it's installed but the new "reply" button is simply not showing up. Any advice?
There's not a list of what was changed with the mod. I looked at the modifications1 and modifications2 files that tell package manager what to do but they were referring to parts of display.template.php that I couldn't find in Classic. Is there a place listing the manual instructions?
Classic? If you installed it through the package manager, you're going to have to manually edit that theme's Display.template.php. Let me know if you hit a snag and I'll take a shot at it.
Update, I found the manual instructions at http://custom.simplemachines.org/mods/index.php?action=parse
BUT the second listing of "find" where it says, $reply_button is simply not there. Frustrating.
There is, alphacaveman.
Just go here:
http://custom.simplemachines.org/mods/index.php?mod=1755 (http://custom.simplemachines.org/mods/index.php?mod=1755)
and you'll see a pulldown just under "Manual Install Instructions for SMF"
They're pretty simple but if your Display.template.php doesn't have the "find" strings, I'll take a look at it.
Quote from: alphacaveman on July 12, 2010, 09:08:58 PM
Update, I found the manual instructions at http://custom.simplemachines.org/mods/index.php?action=parse
BUT the second listing of "find" where it says, $reply_button is simply not there. Frustrating.
Attach it and I'll take a look at it. :)
Thanks very much. Here it is.
Quote from: alphacaveman on July 12, 2010, 09:14:18 PM
Thanks very much. Here it is.
Let me just go get my "old man" reading glasses and I'll stare at it for a few minutes. *grin*
Quote from: gbsothere on July 12, 2010, 09:15:09 PM
Quote from: alphacaveman on July 12, 2010, 09:14:18 PM
Thanks very much. Here it is.
Let me just go get my "old man" reading glasses and I'll stare at it for a few minutes. *grin*
Sweet thanks.
Fingers crossed. If you smell smoke, run! :D
Thanks very much! That worked! What did you change in place of what the manual instructions said?
Quote from: alphacaveman on July 12, 2010, 09:46:00 PM
Thanks very much! That worked! What did you change in place of what the manual instructions said?
Well........ it's duct tape. *grin*
I knew the code referred to "quote.gif" so I found that and studied how that bit of code was written to produce that button. I also looked at "modify.gif" and, based on that, I added a separate block of code (using the reply_sm.gif). If you look for
// How about replying at any point?
that's where I started.
:)
Would you be willing to do one more for another forum of mine? ::)
Quote from: alphacaveman on July 12, 2010, 09:56:41 PM
Would you be willing to do one more for another forum of mine? ::)
This mod? Sure. If it's another mod, you'd better PM me, so we don't hijack this thread. :)
It's this mod. Just like what you just did. Thank you so much! It's attached.
Quote from: alphacaveman on July 12, 2010, 10:03:29 PM
It's this mod. Just like what you just did. Thank you so much! It's attached.
Classic theme for this one, as well?
Yes.
Try this.
Thank you so much! I really appreciate it!
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwhereitestmystuff.com%2Fimages%2Fthumb.gif&hash=fbe057efff6d88bc8293617d752cf12a98abaa09)
this mod should be upgraded to 2.0 RC3.
Quote from: Afro on September 26, 2010, 05:19:43 PM
this mod should be upgraded to 2.0 RC3.
I think I did on my previous RC3 test board, but I dumped the board to use the space for something else and those files are gone. I've not done it on my current RC3 board. I'll play with the codes and see if I can remember what I did (if no one else has sorted it by the time I'm done.)
Actually, Afro, in RC3, simply finding, in Display.template.php
// Can they reply? Have they turned on quick reply?
And adding before:
// How about replying at any point?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="reply_button"><a href="', $scripturl, '?action=post;reply=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], '" onclick="doReply(',
$message['id'], ');">', $txt['reply'], '</a></li>';
will put the reply button in every post and, at least on my test board, it works just fine.
The only thing is that I've never been quite sure how this is suppose to work with Quick Reply (because I've never fooled around with it) so someone else might want to either provide additional codes or explain to me how it's supposed to work in conjunction with Quick Reply, so that I can muck around with it, although, you can probably figure that out a lot faster than I can.
:)
Quote from: KahneFan on July 01, 2010, 10:03:04 PM
Originally I had it so that, if you had QR activated, clicking the reply button would send you to the QR box at the bottom of the page. If you do not have the QR activated, it would take you to a new page. And, if you were not registered, you would be taken to registration.
Quote from: gbsothere on September 27, 2010, 02:41:33 PM
Actually, Afro, in RC3, simply finding, in Display.template.php
// Can they reply? Have they turned on quick reply?
And adding before:
// How about replying at any point?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="reply_button"><a href="', $scripturl, '?action=post;reply=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], '" onclick="doReply(',
$message['id'], ');">', $txt['reply'], '</a></li>';
will put the reply button in every post and, at least on my test board, it works just fine.
The only thing is that I've never been quite sure how this is suppose to work with Quick Reply (because I've never fooled around with it) so someone else might want to either provide additional codes or explain to me how it's supposed to work in conjunction with Quick Reply, so that I can muck around with it, although, you can probably figure that out a lot faster than I can.
:)
Worked very well.. but still needs to be upgraded to 2.0 RC3//
People dont really like modifying files manually.
for those users that use quick reply:
if ($context['can_reply'] && !empty($options['display_quick_reply']) && $context['user']['is_logged'] )
echo '
<li class="quote_button"><a href="#quickreply">', $txt['reply'], '</a></li>';
@ 130860
Thanks for that! :)
@ KahneFan
This is still one of my favorite mods (and really should have always been a standard feature). ;)
Can someone update this to work with RC4? Thanks! 8)
Quote from: BoZilla on November 14, 2010, 09:42:09 PM
Can someone update this to work with RC4? Thanks! 8)
themes\default\Display.template.php
Find:
// Can they reply? Have they turned on quick reply?
Add before:
// Simple Reply Button
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="reply_button"><a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'], '">', $txt['reply'], '</a></li>';
Quote from: Joker™ on December 08, 2010, 04:45:24 AM
Quote from: BoZilla on November 14, 2010, 09:42:09 PM
Can someone update this to work with RC4? Thanks! 8)
themes\default\Display.template.php
Find:
// Can they reply? Have they turned on quick reply?
Add before:
// Simple Reply Button
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="reply_button"><a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'], '">', $txt['reply'], '</a></li>';
Before someone asks, this works in RC5, too! ;)
OK so a newbie here...
...and instead of just being lazy and asking for help, I actually tried adding code into my display.template.php and it did not work. It didn't break anything but I don't have a reply button on each post. :(
I looked for
// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '">', $reply_button, '</a>';
and added this before it...
// Simple Reply Button
if ($context['can_reply'])
echo '<a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'], ';m=', $message['id'], ';poster=', $message['member']['name'], '">', $respond_button, '</a>';
File attached
I am on SMF version 1.1.13 and this is the only change I made. I've got no clue about PHP but tried to follow this thread as much as I could. Any help would be appreciated.
Try these edit (Make backup of file before editing it)
Display.template.php
$reply_button = create_button('quote.gif', 145, 'smf240', 'align="middle"');
$quick_reply = create_button('reply.gif', 121, '146', 'align="middle"');
// Can they reply? Have they turned on quick reply?
// Simple Reply Button
if ($context['can_reply'])
echo '
<a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'], '">', $quick_reply, '</a>';
Holy crap! It works!!!
Thank you thank you thank you so much!! :-)
Quote from: ashishsharma on July 11, 2011, 07:45:53 PM
Holy crap! It works!!!
Thank you thank you thank you so much!! :-)
Your most welcome :).
Any word if this will be updated for 2.0 Gold without having to make the edits?
Robert
Have you tried this (http://www.simplemachines.org/community/index.php?topic=303592.msg2874779#msg2874779)?
Hi Joker,
I have tried the edits in this thread but still cannot get this to work (SMF 2). The installation failed on the second edit to the display.template.php on both the default and one of my other themes (Clear Sky) as the 'Find' code wasn't there, and I believe this is what creates the button. Could you (or someone) have a look at my default file and see if you can work out what needs to be done? If you could also list what needed to be changed I'm sure it will help others too.
Many thanks in advance.
P.S. Please ignore the first attachment; I since tried other edits to the index.css files and retried the other edits so the second attachment is what I currently have. Nothing broken (yet) but no reply button :(
--- wrong topic, sorry ---
Display.template.php (Make backup before editing it)
// Can they reply? Have they turned on quick reply?
if ($context['can_quote'] && !empty($options['display_quick_reply']))
echo '
<li class="quote_button"><a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';last_msg=', $context['topic_last_message'], '" onclick="return oQuickReply.quote(', $message['id'], ');">', $txt['quote'], '</a></li>';
// Simple Reply Button
if ($context['can_reply'])
echo '
<li class="reply_button"><a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'], '">', $txt['reply'], '</a></li>';
Actually the if loop was also checking whether the quick reply is enable or not, and if the quick reply wasn't enabled the reply button was not shown. I hope this helps out your issue.
Thanks Joker - that has done the trick!
I just wanted to state that I had a similar issue and Joker's advice fixed it. Thanks!
A quick question:
What if I want to remove the "Reply" button or link? I've edited the display.template.php, like Joker's above post (http://www.simplemachines.org/community/index.php?topic=303592.msg3153705#msg3153705) in this thread. Then I removed the "Simple Reply Button" code from display.template.php, but it didn't get rid of the "Reply" function on each post.
I haven't installed the mod; I just did the manual it. How do I get it back to the normal setting? Would I have to re-install the original display.template.php?
Thanks in advance.
I'm using 2.0.2 and the test failed for me (line 2). I installed it anyway and nothing happened so I uninstalled it.
I'd really like this mod. Any suggestions?
Quote from: kiryuu on March 30, 2012, 10:40:36 AM
A quick question:
What if I want to remove the "Reply" button or link? I've edited the display.template.php, like Joker's above post (http://www.simplemachines.org/community/index.php?topic=303592.msg3153705#msg3153705) in this thread. Then I removed the "Simple Reply Button" code from display.template.php, but it didn't get rid of the "Reply" function on each post.
I haven't installed the mod; I just did the manual it. How do I get it back to the normal setting? Would I have to re-install the original display.template.php?
Thanks in advance.
The code provided in above post is to get reply button in ever post. By re-installing the original Display.template.php you might face more issues as some of the mods might have made edits in the concerned file. Have you made a backup of the file before editing it?
Quote from: alphacaveman on July 16, 2012, 11:39:09 PM
I'm using 2.0.2 and the test failed for me (line 2). I installed it anyway and nothing happened so I uninstalled it.
I'd really like this mod. Any suggestions?
Please try the edit provided over here (http://www.simplemachines.org/community/index.php?topic=303592.msg3153705#msg3153705) (
Make backup of the file before editing it)
Thanks, it worked.
I'm a new user. Are there "how to" instructions or an update that will place a "REPLY" button on each post whether someone is logged in as a member or a guest, then if a guest clicks the "REPLY" button, the guest gets an invitation to register or login? I located the permission page to allow guests to reply but does not require registration. Thanks.
Donnie, that's not how it works in smf.
In smf, the system only shows bittons and links for actions that can be completed.
Thanks. A guest (first time visitor who doesn't know if it's possible to reply to a post) clicking a REPLY button that invites them to login or register can be completed by either logging in or registering which would a complete action. Is that correct?
No... since a guest can not post, they are not shown the reply button.
Just as guests are not shown boards or threads that they would have to log in in order to view
The requirement to create an account in order to post seems kinda obvious