Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: suprvibes on June 13, 2009, 08:37:33 AM

Title: Redirect after post
Post by: suprvibes on June 13, 2009, 08:37:33 AM
hi,

Is there a way to set my forum to automatically redirect users back to there post once they have posted instead of to the forum index, I know of the personal setting in users theme settings, the Return to topics after posting by default. setting, but i was wondering if I can make this default, so many users ask me this that I figured I would make it the default option but cant find it :S I'm using the default theme

Edit: BTW I'm using 1.1.9

TIA.
Title: Re: Redirect after post
Post by: suprvibes on June 13, 2009, 09:28:48 AM
never mind, I figured out you cant really do this but this little dirty hack to Post.php fixed my problem
at the top of the file I added
$_REQUEST['goback'] = true;
Title: Re: Redirect after post
Post by: JimM on June 14, 2009, 01:20:45 AM
Welcome to SMF

Admin > Themes and Layout > Reset Options

Reset default options for this theme is the first option which would do what you want.  The second option resets the options for all members which was again what you wanted.  Using the built in features are always better than adding to the code.

If this is solved please mark it solved by clicking the Mark Topic Solved link at the bottom left of the page.
Title: Re: Redirect after post
Post by: fallen_angel on July 10, 2009, 02:46:45 PM
Maybe I'm missing something here (entirely possible  :D), but in 1.1.9, like suprvibes, I can't see any option for redirecting to the topic rather than the board after posting (from what I've read, it seems it's possible in the 2.x RC, but not in 1.1.9).

Suprvibes' little hack of putting $_REQUEST['goback'] = true; just after the opening <?php works a treat for now though.
Title: Re: Redirect after post
Post by: JimM on July 11, 2009, 12:01:30 AM
Then you must have missed this statement if you go to Admin > Themes and Layout, then select The first option and make sure to check this statement.

Return to topics after posting by default.

This is right out of 1.1.9.
Title: Re: Redirect after post
Post by: fallen_angel on July 11, 2009, 04:40:53 AM
I stand corrected. Found it now (I missed the 'Reset Options' bit - duh!). Thanks Jim.
Title: Re: Redirect after post
Post by: JimM on July 11, 2009, 06:38:53 PM
You are quite welcome.  There are lots of settings and it is definitely easy to miss some.  :)
Title: Re: Redirect after post
Post by: fallen_angel on July 11, 2009, 08:21:32 PM
Especially when you've been sat at the keyboard for 16 hours and you're trying ditch one forum and hand over to a new team while at the same time start up another and train a novice mod team on the finer points of what buttons not to touch and such like. Out of the frying pan and into the fire!

I need coffee! ...or bed!  ;D

Definitely lots of settings! I love SMF, but all them hundreds of damn settings and permissions don't always make sense when you're seeing double and flying on caffeine...

Thanks again.
Title: Re: Redirect after post
Post by: Largo_npc on August 14, 2009, 10:50:53 AM
How's this done in 2.0 RC1.2?
I know this is 1.x Support, but thought it'd save making a new topic. *shrug*
Title: Re: Redirect after post
Post by: JimM on August 14, 2009, 11:43:17 PM
@Largo_npc - Pretty much the dame way.  Admin > Configuration > Themes and layout > Member Options.  This topic is also marked as solved and would not appear on our support topic tracking system either. :)