Page Index Toggle Pages: 1
Topic Tools
Normal Topic Can I auto return to board after submitting a post (Read 1,316 times)
Njones
Junior Member
**
Offline



Posts: 51
Can I auto return to board after submitting a post
May 6th, 2012 at 10:01am
Post Tools
Hi guys,.. I've done a search but can't find an answer to this one:

My forum is here: http://acsforums.com/cgi-bin/yabb2/YaBB.pl

Its working fine, but there is one thing that annoys me - after I post a message, I'm returned to the same thread. I don't need to be at that thread, i've just read it & replied!

Is there any way that I can get the forum to re-direct users back to the parent board rather than the topic after submitting a post?

Thanks in advance for your help.  Smiley
  
Back to top
 
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Can I auto return to board after submitting a post
Reply #1 - May 6th, 2012 at 7:42pm
Post Tools
Hi Njones,

There is a mod to do this, but it's for 2.4 and I haven't tested it with 2.5 yet:

http://www.boardmod.org/yabb2/YaBB.pl?num=1251332778

I've just noticed that there's a bit of an issue incrementing the thread views in the mod anyhow, so you'll probably be best off making the below edit yourself.

In Sources/Post.pl find:

Code (Perl)
Select All
    if ($currentboard eq $annboard) {
        $yySetLocation = qq~$scripturl?virboard=$FORM{'virboard'};num=$thread/$start#$mreplies~;
    } else {
        $yySetLocation = qq~$scripturl?num=$thread/$start#$mreplies~;
    } 


And replace with:

Code (Perl)
Select All
    $yySetLocation = qq~$scripturl?board=$currentboard~;
    &dumplog($thread, $date);
    if (!$INFO{'num'}) { &MessageTotals("incview", $thread); } 

« Last Edit: May 7th, 2012 at 12:04am by Derek Barnstorm »  
Back to top
 
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,723
Location: Los Angeles

YaBB 2.4
Great mod!
Reply #2 - May 6th, 2012 at 8:43pm
Post Tools
Great mod!  Smiley

Once again, I just have to install BoardMod and learn how to use it.  Roll Eyes
  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Can I auto return to board after submitting a post
Reply #3 - May 7th, 2012 at 12:05am
Post Tools
I've modified my last post to change the code a little - there was already code there to increment the views...
  
Back to top
 
IP Logged
 
Njones
Junior Member
**
Offline



Posts: 51
Re: Can I auto return to board after submitting a post
Reply #4 - May 7th, 2012 at 7:33pm
Post Tools
Thanks Derek, just installed & it seems to be working perfectly.  Grin Grin
  
Back to top
 
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Can I auto return to board after submitting a post
Reply #5 - May 7th, 2012 at 7:42pm
Post Tools
Great. You're very welcome. Wink Smiley

I should have the Return To mod updated for 2.5 with the thread views increment fix very soon. I'll post up the link as soon as it's done...
  
Back to top
 
IP Logged
 
Njones
Junior Member
**
Offline



Posts: 51
Re: Can I auto return to board after submitting a post
Reply #6 - May 7th, 2012 at 9:33pm
Post Tools
1 issue a forum user noticed:

The return to board works
The return to index works

the stay on current thread option doesn't,...  Cry Cry

Any idea how to fix it?
  
Back to top
 
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Can I auto return to board after submitting a post
Reply #7 - May 7th, 2012 at 9:58pm
Post Tools
Hi again,

What do you mean by "doesn't" - what actually happens?

I've updated it for YaBB 2.5 now anyhow if you want to give this one a go - all options are working fine for me:

http://www.boardmod.org/yabb2/YaBB.pl?num=1336427724
  
Back to top
 
IP Logged
 
Njones
Junior Member
**
Offline



Posts: 51
Re: Can I auto return to board after submitting a post
Reply #8 - May 8th, 2012 at 7:40pm
Post Tools
Just installed the 2.5 version,.. working perfect. Thank you!
  
Back to top
 
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Can I auto return to board after submitting a post
Reply #9 - May 8th, 2012 at 8:21pm
Post Tools
Great! Smiley

Thanks for letting me know.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools