Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Allow guests to view (http://www.mysidiaadoptables.com/forum/showthread.php?t=3900)

SilverDragonTears 12-08-2012 07:03 PM

Allow guests to view
 
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:

PHP Code:

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.


All times are GMT -5. The time now is 06:44 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.