VBunny_ohplease Posted October 18, 2010 Share Posted October 18, 2010 I am using SiteSkin 3.3 from http://scripts.indisguise.org. I have installed & configured the script into my website just fine. But I can't get the skins to work correctly inside of folders. http://domain.com - Skin works fine http://domain.com/folder -Got skins to work, but it wont change whenever I select a new skin from the root directory. Like it responds to its own seperate cookie? I've tried using absolute path, but that doesn't seem to fix the problem either. I even tried using the direct path where it says $cookie_name. Would anyone know how to make the 'skinning' work correctly for sub-folders? Here's a copy of the code from the program: <?php /****************************************************************************** Set this variable to the directory your skin directories will reside. The contents of this directory is also directories, and these contain the different files for your skins. ******************************************************************************/ $skins_dir = '/home/domain/domain.com/skins/'; /****************************************************************************** Set this variable to a cookie name of your choice, for visitors to not keep changing skins when they visit your site. ******************************************************************************/ $cookie_name = 'mysite_skin'; /****************************************************************************** If your site uses folders, you must set $skins_dir to an absolute path (i.e., /home/username/public_html/skins/) and set this variable to a web address such as 'http://yourdomain.com/skins/' (don't forget the quotes). Otherwise, ignore this variable. ******************************************************************************/ $web_skins_dir = 'http://domain.com/skins/'; /****************************************************************************** OPTIONAL If you would like a default skin to be chosen, first load your skins.php page or the page where you skin thumbnails can be shown, and take note of the number of the skin you wish to use as your default skin (it is the number after "?skin=" in the URL when you hover over a thumbnail). Remove the two slashes before the line below ("//") and change "x" to the number assigned to your skin. ******************************************************************************/ $default_skin = 1; /****************************************************************************** OPTIONAL If you want errors to be shown, set the variable below to true, with no quotes. Otherwise, make sure it is set to false (with no quotes). ******************************************************************************/ $debug = true; ?> Quote Link to comment https://forums.phpfreaks.com/topic/216117-help-with-siteskins/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.