The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
When people log in, they are taken to my forums: http://www.example.com/forums/
I just realized that they might not ever see the home page that is at: http://www.example.com/ (which is my vBadvanced home page) How can I get login.php to always go to the vBadvanced home page instead of the forums? I looked in the code, and it looked like I could easily break it. I'm okay in PHP, but certainly not an expert. I also tried changing the 'forumhome' variable in the vB settings, but of course that broke all kind of stuff. Any help appreciated! |
#2
|
||||
|
||||
![]()
You need to set $vbulletin->url to your home page before the redirect is called. THis can be achieved using plugins.
|
#3
|
|||
|
|||
![]()
Thanks for responding! Can you elaborate just a little bit?
|
#4
|
||||
|
||||
![]()
Set $vbulletin->url to the URL. The hook should be login_redirect.
|
#5
|
|||
|
|||
![]()
Thank you very much! I had no idea it was that easy to make a plug-in.
|
#6
|
||||
|
||||
![]()
After following the instructions given here by the thread starter:
http://www.vbadvanced.com/forum/show...692#post126692 Quote:
I started experiencing this problem described in the Note: as well.. even when i left click it brings up the admincp login page but after i input my info it brings me right back to the mainpage?!? Then i have to click admincp again and it will then go to the admincp. This is getting really annoying, anyway to fix it? |
#7
|
|||
|
|||
![]() Quote:
E.g. PHP Code:
|
#8
|
|||
|
|||
![]()
I agree. It's definitely annoying, but really it's just a few extra clicks. Worth it in my mind to make sure your users see your vBa home page. Has anyone tried the recommended fix above? I'd be curious to know if it works.
|
#9
|
||||
|
||||
![]()
I'll give it a shot in a couple hours after my classes r done. Gotta run to my Networking Essentials class, I'll post back once I've tried it :up:
--------------- Added 17 Oct 2007 at 17:46 --------------- I just tried using this code: if($vbulletin->url != 'http://www.tbaec.ca'; $vbulletin->options['bburl'].'/admincp/index.php') { // $vbulletin->url = 'http://www.tbaec.ca'; } ...and yes, it worked! BUT... every time I loged into an account I get this ERROR at the top of the page: Parse error: parse error, unexpected ';' in /home/content/b/i/g/bigsac/html/includes/functions_login.php(312) : eval()'d code on line 1 So then I tried this code: if($vbulletin->url != $vbulletin->options['bburl'].'/admincp/index.php') { // $vbulletin->url = 'http://www.tbaec.ca'; } and IT WORKED PERFECT!!!... Enjoy! p.s. Thx Opserty for providing the original code ![]() trgreen, you should now update your thread over at vbadvanced.com(http://www.vbadvanced.com/forum/show...692#post126692) to reflect the new code and maybe put a note in the first post of this thread, as to avoid other people having a problem with their admincp... hope this code is as helpfull to you as it was me in solving that annoying issue. ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|