View Full Version : Is there a way to...
Massiel
08-01-2002, 10:51 PM
have the option of whether after posting, it takes you to the active topics page instead of back to the post itself? I am thinking this would save bandwidth. I'd be cool if users could choose where it takes them, either back to the post or to the active topics page (my active topics page is using the getdaily and putting all posts from a day in one page).
Any ideas? Has this been done?
Logician
08-02-2002, 07:39 AM
If you edit $goto parts, you can redirect your user whereever you like:
in newthread.php:
} elseif ($visible) {
$goto="showthread.php?s=$session[sessionhash]&threadid=$threadid";
} else {
$goto="forumdisplay.php?s=$session[sessionhash]&forumid=$forumid";
in newreply.php:
if ($prevpost[visible]) {
$goto="showthread.php?s=$session[sessionhash]&postid=$postid#post$postid";
} else {
$goto="forumdisplay.php?s=$session[sessionhash]&forumid=$forumid";
}
Massiel
08-02-2002, 10:23 AM
What do I change it for though? Since what I am using is this:
http://www.dietsupporters.com/forums/search.php?action=getdaily
I found this to be the best way to have an active topics page...
Thanks for your help Logician!
Massiel
08-03-2002, 04:01 AM
bump
EchoHype.com
08-03-2002, 07:34 AM
**bump** for ya
Massiel
08-03-2002, 08:38 AM
Why thank you EchoHype! LOL
I really don't know how to do it, so would appreciate someone's guidance.
Logician
08-04-2002, 03:38 PM
search.php?s=$session[sessionhash]&action=getnew
should work..
Massiel
08-06-2002, 08:37 AM
Thank you so much Logician! I haven't tried it cos my server has been down all day long! Will try it asap! :D
Massiel
08-07-2002, 03:07 AM
Do I replace this:
} elseif ($visible) {
$goto="showthread.php?s=$session[sessionhash]&threadid=$threadid";
} else {
$goto="forumdisplay.php?s=$session[sessionhash]&forumid=$forumid";
with this:
search.php?s=$session[sessionhash]&action=getnew
or do I leave the others? or one of the others? I am confused LOL
Massiel
08-07-2002, 05:06 AM
Please help me figure this out!
Massiel
08-07-2002, 11:07 PM
I tried this, uploaded and after posting all I got was a blank page, so uploaded the back up again, I might have done it wrong though, Logician can you tell me what code to change please?
Weasel
08-08-2002, 09:25 AM
Replace
} elseif ($visible) {
$goto="showthread.php?s=$session[sessionhash]&threadid=$threadid";
} else {
$goto="forumdisplay.php?s=$session[sessionhash]&forumid=$forumid";
with
} elseif ($visible) {
$goto="search.php?s=$session[sessionhash]&action=getnew";
} else {
$goto="search.php?s=$session[sessionhash]&action=getnew";
Massiel
08-09-2002, 12:30 PM
I tried that but it did not work.... I got a db error, I should have saved it, hmmmm...
Massiel
08-13-2002, 01:08 AM
Anyone else has any suggestions?
Logician
08-21-2002, 07:21 AM
Originally posted by Massiel
I tried that but it did not work.... I got a db error, I should have saved it, hmmmm...
I cant see a reason that it will give you a db error, maybe you should try to (carefully) reapply..
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.