vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   members page after login (instead of forum index) (https://vborg.vbsupport.ru/showthread.php?t=79880)

mfacer 04-13-2005 06:31 PM

members page after login (instead of forum index)
 
hey...

I've searched the forums for this answer.... but couldnt find anything - so please excuse me if it's been asked before!!

I'd like our members to see a "members page" after they login. At the moment the default is after login, it goes to the forum index.... can it go to a custom page??

if so, where do I change the code to do it?

thanks for any help :)

mfacer 04-15-2005 01:09 PM

is there a part where it has a redirect after successful login I could change or something?

Bolas 04-15-2005 02:21 PM

try doing some experiment with $url variable in login.php
or..
try searching for template names that appears in login.php.
Then search for html o javascript redirect in these templates.

optradin 06-07-2005 02:49 AM

right after the start login part in login.php:

add this code

Code:

$url = "<the URL you want to redirect to>";
it has to go BEFORE the globalize function at the start of the "start login" part. .. I think

Adrian Schneider 06-07-2005 03:20 AM

That would get annoying... people usually login to access something they are currently denied access to, and logging in brings them back to that page. I'd do something like
PHP Code:

if ($url == "index.php")
{
    
// This code is made up, I have how it is setup in login.php
    
$url memberpagethinger.php;




All times are GMT. The time now is 01:46 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.01278 seconds
  • Memory Usage 1,716KB
  • 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_code_printable
  • (1)bbcode_php_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