vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   vBulletin 3 Login redirection page help (https://vborg.vbsupport.ru/showthread.php?t=270601)

sc123 09-20-2011 05:36 AM

vBulletin 3 Login redirection page help
 
I need help how to remove the login redirection page that shows after you login..
Help me please. thanks!

sc123 09-23-2011 02:07 AM

anybody could help? i need it to remove badly...

BirdOPrey5 09-23-2011 01:34 PM

If you edit the login.php file you can comment out the line:

PHP Code:

do_login_redirect(); 

but then after logging in you will just get a blank white screen. (You will be logged in but no page will be up.)

sc123 09-23-2011 02:36 PM

is there any way to redirect immediately to the forum home no matter where page they log in?...

BirdOPrey5 09-23-2011 03:15 PM

Quote:

Originally Posted by sc123 (Post 2249283)
is there any way to redirect immediately to the forum home no matter where page they log in?...

The forum index (forumhome)?

sc123 09-23-2011 03:19 PM

yes...can you give me the code? im really noob at it..

BirdOPrey5 09-23-2011 03:24 PM

if you edit the login.php file...

find the line:

PHP Code:

    do_login_redirect(); 

replace it with:

PHP Code:

    //do_login_redirect();
         
$vbulletin->url "index.php?$session[sessionurl]";
         eval(
print_standard_redirect('Redirect.')); 

That will immediately send everyone to your forum index as soon as they sign in...

HOWEVER that will make your life annoying as an administrator. When you sign into the admincp you will also be sent to the forum index. You will have to reload/refresh the page after logging into the admin cp to return to the admin cp.

I'm not really sure why you need to do this but one option would be a conditional that lets administrators login as normal but everyone else go right to the forum index.

That code would be:

PHP Code:

   if ($vbulletin->userinfo['usergroupid'] == 6)
   {
    
do_login_redirect();
   }
   else
   {
         
$vbulletin->url "index.php?$session[sessionurl]";
         eval(
print_standard_redirect('Redirect.'));
   } 

I don't know what other complications this might cause.

sc123 09-23-2011 03:29 PM

OK I'll try this.
My vbulletin forum is integrated with my coldfusion website.. it looks redundant if the login redirection will appear again, whereas they were already logged in on my main site..

Thanks for the BIG help. Ill update this thread if it works. (Well Im sure it will...)

EDIT:

It worked! Thanks very much!

adonato 11-19-2012 05:21 PM

Do any one how to make the time when a user login in the forum? for me it's very time and I need to make less time redirection can be that possible?

BirdOPrey5 11-21-2012 10:32 AM

I assume you were asking for VB4 and already have your answer-

https://vborg.vbsupport.ru/showthread.php?p=2383089

But "STANDARD_REDIRECT" template would be the same place to look in VB3.


All times are GMT. The time now is 07:37 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.01088 seconds
  • Memory Usage 1,736KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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