Welcome, Guest. Please Login or Register.
May 17, 2025, 08:01:03 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Return to topic « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Return to topic  (Read 478 times)
Darryn.R
Noobie
*
Posts: 19


I'm just a simple fool...

WWW
Return to topic
« on: January 14, 2002, 06:18:15 PM »
Reply with quote

When a reply is posted to a topic, my users are sent back to the main forum page and not back to the topic itself.

How do I set my forum to return to the topic ?

Example:

Forum name - Main.
Topic - How do I ?

Returns to Forum main.

I want to return users to How do I ?

I'm sorry if I'm being a bit dim here, but I can't find the answer anywhere, and again, I'm going blind for looking...

Thanks guys.
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Return to topic
« Reply #1 on: January 14, 2002, 06:30:39 PM »
Reply with quote

It is designed this way in order to properly mark boards and topics as read.  it can be changed to the previous way but offhand I forget where we changed it...
Logged

Darryn.R
Noobie
*
Posts: 19


I'm just a simple fool...

WWW
Re:Return to topic
« Reply #2 on: January 14, 2002, 06:35:17 PM »
Reply with quote

Jeff, you are the man...

If (And I know you are a busy man) you can remember how I can change it back so that users can return to topic instead of to the main page, I will forever be your slave.

(Not in any pervy way you understand though)

I'll help with Beta testing, sing the praise of YaBBse all ove the web, and buy you a beer if you are ever in Holland...

Thanks..
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Return to topic
« Reply #3 on: January 14, 2002, 07:41:52 PM »
Reply with quote

Hmm that is a few beers I am owed out in Holland, maybe I should go and claim all of these ;)
Logged

Darryn.R
Noobie
*
Posts: 19


I'm just a simple fool...

WWW
Re:Return to topic
« Reply #4 on: January 14, 2002, 09:00:44 PM »
Reply with quote

If you claim them all at once it should be a good night out ;)

I've still not managed to mod it so I can return to topic, I'll keep trying, but any help you can offer to speed me on my way would be great..
Logged
Darryn.R
Noobie
*
Posts: 19


I'm just a simple fool...

WWW
Re:Return to topic
« Reply #5 on: January 15, 2002, 08:45:54 AM »
Reply with quote

I'm still looking for the mod to do this, anyone got any good PHP ideas on how to mod this ?
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Return to topic
« Reply #6 on: January 15, 2002, 01:42:36 PM »
Reply with quote

I haven't had a chance to look but the code will be in Post.php and most likely in Post2()
Logged

Darryn.R
Noobie
*
Posts: 19


I'm just a simple fool...

WWW
Re:Return to topic
« Reply #7 on: January 16, 2002, 10:30:34 AM »
Reply with quote

I still can't seem to get it to return to topic... Any idea who else I could ask Jeff ?

I wanted to send the forunm live in a week or so, but I really want to launch it with the return to thread option enabled..
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Return to topic
« Reply #8 on: January 16, 2002, 01:28:21 PM »
Reply with quote

Didn't look very hard did you? ;)

In Post.php in the Post2() function on or about line 685 you will find lines that look something like:

//   $yySetLocation = "$cgi;board=$board;action=display;threadid=$thread";
   $yySetLocation = "$cgi";
   redirectexit();

Comment out the:

// $yySetLocation = "$cgi";
And change the longer line to what I have above.  That will return you to your posts.
Logged

Darryn.R
Noobie
*
Posts: 19


I'm just a simple fool...

WWW
Re:Return to topic
« Reply #9 on: January 17, 2002, 10:50:38 AM »
Reply with quote

Jeff,

I changed it to this:

# Let's figure out what page number to show
   $start = (floor ($mreplies / $maxmessagedisplay))*$maxmessagedisplay;

//   $yySetLocation =
"$cgi;board=$board;action=display;threadid=$thread";
//   $yySetLocation = "$cgi";
   redirectexit();

But rather than returning to the thread, it returns me to the main index page  (The page you first go to when you enter the forum)

Have I made a mistake somewhere ?

http://www.themoononline.com/yabbse/
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Return to topic
« Reply #10 on: January 17, 2002, 12:26:09 PM »
Reply with quote

Send me your Post.php [email protected]

If you changed where I said, it should work no problem...
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Return to topic « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.285 seconds with 20 queries.