![]() |
if else conditionals
I have a custom page and I want only members to view it and direct guests the login/register page/popup.
Something like: PHP Code:
|
you could make this in the php file:
exec_header_redirect("login.php"); |
I put that code directly under <?php and got this error:
Quote:
|
in templates php isn't allowed
you could make it in the php file PHP Code:
|
Use print_no_permission();
It will display a nice display message with login form as well. :) |
lol
ok thats easier:D in your php file after including global.php make this: if (!$vbulletin->userinfo['userid']) print_no_permission(); that should be enought |
got it - thank you very much for your help.
Now when guests view those pages I modified to show the No permissions login page, it still says that they are viewing that page and not the "No permissions" page in "Who's Online". |
Quote:
|
They are getting it for the default vb pages, but not the ones I created.
|
what't the whole code?
|
All times are GMT. The time now is 02:14 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|