View Full Version : Members area?
lukemax
05-08-2007, 05:15 PM
--------------------------------------------------------------------------------
I have a form which allows users to fill out and upload pictures. Trouble is I only want users who are logged in to be able to have access to this form and issue a warning telling them that they must be logged in to access that page.
How can I do this?
Thank you!
tinkerbell
05-08-2007, 10:31 PM
Hello lukemax,
Have you tried:
Admincp -
Forums and Moderators -
forum permissions -
go to the forum concerned -
[Edit] Unregistered / Not Logged In -
forum viewing permissions -
set to no or to what access you want them to have.
Tinks
HMBeaty
05-08-2007, 10:35 PM
@ tinkerbell, that won't exactly work if its a custom php and template page. To do this, in your php file find:
require_once('./global.php');
// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################
// ################################################## #####################
Under that add:
// Check Perms
if ($show['guest'])
{
print_no_permission();
}
tinkerbell
05-08-2007, 11:11 PM
Hi Redlinemotorsports
Thank you and my apologises I assumed 'form' was a typo for forum.
Tinks
lukemax
05-09-2007, 05:23 PM
oh, thanks tink and red... but the form will be seperated from vbulletin. But should I paste, this into the php page?
require_once('./global.php');
//and this
// Check Perms
if ($show['guest'])
{
print_no_permission();
}
Thanks all!
HMBeaty
05-09-2007, 05:24 PM
What do you mean the form will be separated from vBulletin?
lukemax
05-09-2007, 05:38 PM
oh well I use vbulletin for several fourms, then I have a link to another page with a form on it (not a forum) and thats the page I want to limit access to. Is that ok?
Or should I do it another way?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.