vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Custom Login Redirect (https://vborg.vbsupport.ru/showthread.php?t=77441)

altsounds 03-04-2005 06:06 AM

Custom Login Redirect
 
Hi guys,

I am sure this is simple but can't for the life of me figure out how to do it.

I would like for a user to be re-directed to their control panel instead of index.php when they successfully login.

Where and what do I change to customize this??

Thanks

Chris

sabret00the 03-04-2005 10:28 AM

heh gonna watch this thread as it's something i wanna do inthe future when i've made a few things but it should be in the login.php :)

Brad 03-04-2005 12:02 PM

In login.php find:

PHP Code:

    if ($url == 'login.php' OR $url == "$vboptions[forumhome].php" OR strpos($url'do=logout') !== false)
    {
        
$url "$vboptions[forumhome].php?$surl";
    } 

You need to modify $url, for usercp.php it would read as:

PHP Code:

    if ($url == 'login.php' OR $url == "$vboptions[forumhome].php" OR strpos($url'do=logout') !== false)
    {
        
$url "usercp.php?$surl";
    } 

I think that will do it, if it dos'nt let me know and I will take anthor look :)

altsounds 03-04-2005 09:45 PM

Nope that didn't work :(. Any other ideas??

Chris

Brad 03-05-2005 06:47 AM

Find:

PHP Code:

if (empty($_REQUEST['do']) AND empty($_REQUEST['a']))
{
    
exec_header_redirect("$vboptions[forumhome].php");


Change to:

PHP Code:

if (empty($_REQUEST['do']) AND empty($_REQUEST['a']))
{
    
exec_header_redirect("usercp.php");




That should do it. :)

Colin F 03-06-2005 03:48 PM

Moving to modification requests :)

altsounds 03-08-2005 04:53 PM

You rule!!! That worked a charm :D. Thanks so much for your help on this.


All times are GMT. The time now is 08:02 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.01891 seconds
  • Memory Usage 1,725KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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