News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Reply Button In Every Post

Started by Joe N, April 08, 2009, 01:39:28 AM

Previous topic - Next topic

rgecy

Any word if this will be updated for 2.0 Gold without having to make the edits?

Robert

Joker™

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

awolexpat

#162
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 :(

Smoerble


Joker™

Display.template.php (Make backup before editing it)

Code (Find:) Select
// 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>';



Code (Add Before:) Select
// 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.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

awolexpat

Thanks Joker - that has done the trick!

dapottster

I just wanted to state that I had a similar issue and Joker's advice fixed it. Thanks!

kiryuu

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.

alphacaveman

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?

Joker™

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 (Make backup of the file before editing it)
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

alphacaveman


donnie123

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.

Kindred

Donnie,  that's not how it works in smf.
In smf, the system only shows bittons and links for actions that can be completed.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

donnie123

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?

Kindred

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
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: