The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to make the CMS tab the default page after login?
Hey all,
So when a user logs in they are automatically brought to the forum page. I would like them to be brought to the Home/CMS page. Anyone know how to do this? I assume I have to edit a template I just dont know which one. Thanks in advance! |
#2
|
||||
|
||||
Check out the function do_login_redirect in functions_login.php and then notice you have a hook at login_redirect to do what you want with a plugin.
|
#3
|
|||
|
|||
Sorry, but I dont have much experience working with the functions in vBull. Could you give me a bit more detail to help me get through it?
Thanks! |
#4
|
|||
|
|||
Someone made a plugin that does what Lynne is talking about (and more). Haven't used it, so no comment...but you might check it out.
https://vborg.vbsupport.ru/showthread.php?t=235203 --------------- Added [DATE]1293226751[/DATE] at [TIME]1293226751[/TIME] --------------- Or if you want to only do what you asked: Go to Admin CP / Plugins & Products Add new Plugin Fill in the following Fields Product: vBulletin Hook Location: login_redirect Title: Login Redirect to homepage (or whatever you want to call it) Execution Order: 5 Plugin PHP Code: PHP Code:
Obviously just substitute the "http://www.yoursite.com/the-url" with the url you want it to redirect to. Save it. It should work now. |
#5
|
|||
|
|||
That worked perfect!
Thanks so much for the help! |
#6
|
|||
|
|||
You're welcome. Happy holidays
|
#7
|
|||
|
|||
Okay still have one slight problem.
Now, when I log-in to my admin cp or one of my mods logs in to the mod cp, it also brings them back to the homepage rather than forwarding to the proper cp. If we then go ahead and click on the admin or mod link at the bottom of the page again, after being forwarded to the homepage, it brings us to the appropriate page. Any way to use an if/then type statement to fix this? If not, I can deal with it. Its not that big of a deal and is worth it to have regular members redirected to the homepage. |
#8
|
|||
|
|||
This should work:
PHP Code:
It should not redirect for members of these groups: 5=Supermod 6=Admin 7=Mod Add or remove groups as appropriate. |
#9
|
|||
|
|||
Beautiful thanks so much!
|
#10
|
||||
|
||||
awsome thanks for tips
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|