Log in

View Full Version : Allow guests to view


SilverDragonTears
12-08-2012, 07:03 PM
What changes do I need to make to allow guests to view pages but not adopt?

Hall of Famer
12-08-2012, 07:08 PM
Which version of the script are you talking about? Mys v1.3.1?

SilverDragonTears
12-08-2012, 07:11 PM
Yes it is :)

Hall of Famer
12-08-2012, 07:16 PM
Well for whatever pages you wish to be members only, enclose the code in this format:


if($isloggedin == "yes"){
// Code for members
}
else{
$article_title = $accden;
$article_content = $reqlogin;
}


Otherwise, you will have to remove the if-condition ($isloggedin = "yes") so that guests can view the page. One good example is levelup.php, which does not have restriction for members. Just go to whatever php files/pages you want your guests to view, remove the if/else statement to check user login. This may take a while though, considering the script disallows guests to view most content.

SilverDragonTears
12-08-2012, 07:26 PM
So if I allow them to view the adopt and pound page they won't be able to adopt still right?

Hall of Famer
12-08-2012, 07:30 PM
This I am not quite sure, you have to give a try and see if this happens. The script was designed to block guests from viewing pages, not certain what occurs if you remove the restriction.

SilverDragonTears
12-08-2012, 07:34 PM
works perfect. They can see them but when they click one it says they must be registered.

Hall of Famer
12-08-2012, 07:41 PM
Alright, thats good to know. Glad it works out just fine for ya.