![]() |
PHP page for guests...
Hi I tried to make a PHP landing page using the global.php so its links to the database but it always requires people to login before showing it how can I make it visible even if the rest of the site is locked out for guests :) thanks
|
You can use a conditional but I'm not exactly sure what you are trying to do.
|
sounds like he has a vb page which he wants to display to guests, even though VB is not viewable to guests (forces a login to view)
|
Quote:
|
Post your page code. You probably have some code in there that requires the user to login.
|
it happens when i include the global.php file if I dont it works but it does not grab the theme info..
Im trying to use the Standard error template and add an intro video inside where the error message is as a welcome page but it requires a login when I include the global.php which I have to when displaying the theme / templates. |
You probably need to add the below conditional to your page template
Code:
<vb:if condition="$bbuserinfo['userid'] == 0"> Code:
if ($bbuserinfo['userid'] == 0) |
Quote:
Code:
<?php |
Since you don't have any custom php code in there (you are just displaying a template), I would try adding the conditional to your template
|
Do you allow Unregistered Users to view the regular start page of your site?
|
All times are GMT. The time now is 04:57 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:
|