PDA

View Full Version : Can I set a vBulletin CMS page as a default homepage upon log-in to vBulletin CMS?


MechCorps
12-21-2011, 05:31 PM
I was curious if there was a way to set a default home page for someone who is already or had just logged in to my instance of vBulletin 4.x CMS as opposed to an unauthenticated user's default home page.

For example:

"unauthenticated user" is taken to "(domain)/content.php".

If the user logs-in to the CMS (as opposed to the forums) they are taken to "(domain)/content.php/5-News" instead of "(domain)/content.php".

or...

If the user has told his browser to remember me, and they go to "(domain)", they would be directed to "(domain)/content.php/5-News"

I would guess that this would be based on the usergroups, but I did not find this under "vBulletin CMS" > "Permissions".

I tried searching for this capability, but the results were too much unrelated noise.

If there is another thread related to this topic, please provide a link or relevant search terminology.

kh99
12-21-2011, 06:57 PM
I think (if I understand you) you can do what you want by creating a plugin using hook location login_redirect and setting $vbulletin->url to what you want. For instance I was able to make it so that admins go to the CMS page by using this code:

if ($vbulletin->userinfo['usergroupid'] == 6)
$vbulletin->url = "content.php";


I know this isn't the programming section, but maybe this will help if you can't find an existing mod.