Jump to content

Recommended Posts

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;
?>

Link to comment
https://forums.phpfreaks.com/topic/216117-help-with-siteskins/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.