vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Can I set a vBulletin CMS page as a default homepage upon log-in to vBulletin CMS? (https://vborg.vbsupport.ru/showthread.php?t=275770)

MechCorps 12-21-2011 05:31 PM

Can I set a vBulletin CMS page as a default homepage upon log-in to vBulletin CMS?
 
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:

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.


All times are GMT. The time now is 07:11 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.00959 seconds
  • Memory Usage 1,708KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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