The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Right so I recently installed a mod to make my forum invite only, but I'd like to have the index as a login page and nothing else which takes them tp the forum, I tried a few mods but none of them remember if the user was logged in, meaning they had to log back in every time, deluxe login seemed the best bet because it had the code to check if they were still logged in but even that didn't work. Any suggestions?
|
#2
|
|||
|
|||
![]()
Seems like you could make your own index.php using this article as the base: https://vborg.vbsupport.ru/showthread.php?t=62164 or else modify your existing index.php with something like:
Code:
if ($vbulletin->userinfo['userid']) { // show 'logged in' page } else { // show register page } Or you could just redirect to another page, for example if your current index.php shows the member page, you could do this: Code:
if (!$vbulletin->userinfo['userid']) { $vbulletin->url = 'registerpage.php?' . $vbulletin->session->vars['sessionurl'] ; print_standard_redirect("Some message", false); } where "registerpage.php" is whatever page you want to send non-members to. (of course the register page would also have to allow login). |
#3
|
|||
|
|||
![]()
Ok thanks
![]() --------------- Added [DATE]1306674548[/DATE] at [TIME]1306674548[/TIME] --------------- I tried both of those methods, the first one i couldnt figure out how to make it redirect to a page and i dunno if its just because of where in the index.php i put the second one but it wouldnt make it point to the register page |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|