Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 09-20-2011, 05:36 AM
sc123 sc123 is offline
 
Join Date: Jun 2011
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 09-23-2011, 02:07 AM
sc123 sc123 is offline
 
Join Date: Jun 2011
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anybody could help? i need it to remove badly...
Reply With Quote
  #3  
Old 09-23-2011, 01:34 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.)
Reply With Quote
  #4  
Old 09-23-2011, 02:36 PM
sc123 sc123 is offline
 
Join Date: Jun 2011
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there any way to redirect immediately to the forum home no matter where page they log in?...
Reply With Quote
  #5  
Old 09-23-2011, 03:15 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sc123 View Post
is there any way to redirect immediately to the forum home no matter where page they log in?...
The forum index (forumhome)?
Reply With Quote
  #6  
Old 09-23-2011, 03:19 PM
sc123 sc123 is offline
 
Join Date: Jun 2011
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes...can you give me the code? im really noob at it..
Reply With Quote
  #7  
Old 09-23-2011, 03:24 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 09-23-2011, 03:29 PM
sc123 sc123 is offline
 
Join Date: Jun 2011
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Благодарность от:
BirdOPrey5
  #9  
Old 11-19-2012, 05:21 PM
adonato adonato is offline
 
Join Date: Feb 2012
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #10  
Old 11-21-2012, 10:32 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:27 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.07900 seconds
  • Memory Usage 2,255KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete