vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   redirection (https://vborg.vbsupport.ru/showthread.php?t=34555)

Lionel 01-28-2002 04:45 AM

I would like to change the general redirection from index.php into my main index home when someone signs in. Where can I go to do so?

thanks.

FWC 01-28-2002 05:03 AM

I just tried the following on my test board and it worked. In the ## start login ## section of member.php find:
PHP Code:

    //header("Location: $url");

    
$url str_replace("\""""$url);
    eval(
"standardredirect(\"".gettemplate("redirect_login")."\",\"$url\");"); 

Change the last $url to the url of your home page and it should take you there. There is another redirect right below that. I think that may be for non-cookie users. You might need to change that, too.

Lionel 01-28-2002 05:35 AM

it works for me. Except it is the other way around. For cookie users it must be this index location below the last $url to change
index.php?s=$session[dbsessionhash]

FWC 01-28-2002 05:43 AM

Quote:

Originally posted by Lionel
it works for me. Except it is the other way around. For cookie users it must be this index location below the last $url to change
index.php?s=$session[dbsessionhash]

I wasn't sure. I changed the bottom one and it didn't work. I changed both and it did. Maybe I wasn't cookied right. I just set up all the server stuff on this computer yesterday and installed the test board. :)

Lionel 01-28-2002 05:44 AM

do you know if that will affect the cookie situation since it is not carrying the "?s=$session[dbsessionhash]" ?

in other words, will the next time that a user comes in, he will have no problems with new posts etc...


All times are GMT. The time now is 08:39 AM.

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.01016 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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