vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Is there a way to... (https://vborg.vbsupport.ru/showthread.php?t=41800)

Massiel 08-01-2002 10:51 PM

Is there a way to...
 
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:
PHP Code:

} elseif ($visible) {
        
$goto="showthread.php?s=$session[sessionhash]&threadid=$threadid";
      } else {
        
$goto="forumdisplay.php?s=$session[sessionhash]&forumid=$forumid"

in newreply.php:
PHP Code:

 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...ction=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

Quote:

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..


All times are GMT. The time now is 01:21 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01149 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete