News:

Wondering if this will always be free?  See why free is better.

Main Menu

Redirect after post

Started by suprvibes, June 13, 2009, 08:37:33 AM

Previous topic - Next topic

suprvibes

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.

suprvibes

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;

JimM

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.
Jim "JimM" Moore
Former Support Specialist

fallen_angel

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.
MasterWeb & the IB Geek Girls: Outback behind the bikesheds - talking geek
ecanus.net: smileys and *stuff*
-- "You don't need eyes to see - you need vision" ~ Maxi Jazz --

JimM

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.
Jim "JimM" Moore
Former Support Specialist

fallen_angel

I stand corrected. Found it now (I missed the 'Reset Options' bit - duh!). Thanks Jim.
MasterWeb & the IB Geek Girls: Outback behind the bikesheds - talking geek
ecanus.net: smileys and *stuff*
-- "You don't need eyes to see - you need vision" ~ Maxi Jazz --

JimM

You are quite welcome.  There are lots of settings and it is definitely easy to miss some.  :)
Jim "JimM" Moore
Former Support Specialist

fallen_angel

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.
MasterWeb & the IB Geek Girls: Outback behind the bikesheds - talking geek
ecanus.net: smileys and *stuff*
-- "You don't need eyes to see - you need vision" ~ Maxi Jazz --

Largo_npc

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*

JimM

@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. :)
Jim "JimM" Moore
Former Support Specialist

Advertisement: