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

KahneFan

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

KahneFan

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

cflforum

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

Tiribulus

#23
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:)

KahneFan

That's for 2.0. I will have to take a look at 1.1.X for that mod to the mod :D
#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

KahneFan

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

PRaDiUS

Can't believe this wasn't done by someone sooner! Thanks!

          [ RGXbox.com ]

Tiribulus

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 :)

KahneFan

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

Tiribulus

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.

KahneFan

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

Sudhakar Arjunan

Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

KahneFan

#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

lurkalot

Nice mod  8) .   Works a treat thank you.   ;)

- Lawrence -

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 ;).

Chas Large

Many thanks for this mod. It installed fine on 1.1.8 and works great.
Cheers
Chas
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

KahneFan

#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

Chas Large

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.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

KahneFan

#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

Chas Large

My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Advertisement: