Is it really necessary to set the background color from svManager? Background colors usually don't change that often.
If you still want to do it then you'll need to understand how svManager does it for a regular gallery where the index file is inside the gallery folder. Then you'll need to modify this for your external index file.
The standard index file that comes with svManager is a php file. If you look at the code, you'll see a block of php in the head section that sets a few variables and prints out the title:
/* Leave this block of php code intact if customizing this page */
$preferences = file_get_contents('preferences.txt');
$preferences = unserialize($preferences);
$title = htmlspecialchars($preferences['htmlTitle'], ENT_QUOTES, 'UTF-8');
$backgroundColor = substr($preferences['backgroundColor'], 2, strlen($preferences['backgroundColor']) - 2);
Further down is a line that prints out the background color:
params.bgcolor = "<?php echo $backgroundColor; ?>";
To get this working in your setup, your index file will need to have a .php suffix, you'll need to include these blocks of php code and you'll need to edit the path to the preferences.txt file where the svManager stores the background color. So it would be something like:
$preferences = file_get_contents('svmanager/breakfast/preferences.txt');
This needs to be a relative path, i.e. do not start with a slash and do not start with http://
SimpleViewer Support Team.