News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Reply Button In Every Post

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

Previous topic - Next topic

KahneFan

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.
#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

gbsothere

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.   :)
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

KahneFan

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.
#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

C4G-TK

// 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?

-img removed-

gbsothere

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
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

alphacaveman

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?

gbsothere

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.

My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

~DS~

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
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

alphacaveman

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.



alphacaveman

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.

gbsothere

There is, alphacaveman.

Just go here:

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.
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

gbsothere

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.   :)
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

alphacaveman

Thanks very much. Here it is.

gbsothere

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*
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

alphacaveman

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.

gbsothere

Fingers crossed.  If you smell smoke, run!   :D
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

alphacaveman

Thanks very much! That worked! What did you change in place of what the manual instructions said?

gbsothere

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. 

:)
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

alphacaveman

Would you be willing to do one more for another forum of mine?  ::)

gbsothere

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.   :)
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

Advertisement: