Quote:
Yesterday at 03:24 PM trackpads said this in Post #13
Is this considered hacking since I am not touching any of the VB3 files? I just want to do this on all the other pages of my site.
|
i dont think its considered hacking since all you are doing is requiring them logging in before accessing your non vbulletin pages, heres how i did it:
I did something similar to this with my vb2.5 and upgraded to vb3 and it still works fine...
http://board.accordtuner.com/external.php
I mean I dont know how correct it is per say but it seems to do the job and thats all that matters..
.
Code:
<?php
$logged = ($user = $HTTP_COOKIE_VARS["bbuserid"]);
if ($logged >= "1") {
?>
your page code goes here.
<?php
}
if ($logged < "1") {
echo "<div align=center>You must be a registered user of the forums.<br><br>";
echo "Please click <a href=http://www.accordtuner.com?#login><i><b>here</b></i></a> ";
echo "to login first...<br><br>Or click <a href=http://board.accordtuner.com/register.php?&action=signup><i>";
echo "<b>here</b></i></a> to register with our forums.</div>";
}
?>