Page 1 of 1
Can't resume original theme and change any theme options
Posted: 08 Feb 2010, 15:01
by theflame
Subject is simple but hard to decide for me. When I tried to use other themes from this site I could not change any global view option manually. How can I resume original options or delete installed themes? After reinstallation I receive the same

Any ideas? Thanks
Re: Can't resume original theme and change any theme options
Posted: 08 Feb 2010, 17:21
by theflame
In renderfront.php file I find function "renderCategoryCSS". But I can't understand where this function get variables $font_color, $background_color, $border_color and other. I searched for in database but didn't found yet. HELP ME, PLEASE
Re: Can't resume original theme and change any theme options
Posted: 08 Feb 2010, 18:08
by Jan
Hi, try to install default or default transparency theme.
Jan
Re: Can't resume original theme and change any theme options
Posted: 08 Feb 2010, 18:55
by theflame
Jan wrote:Hi, try to install default or default transparency theme.
Jan
Thank you, Jan. I did it. But after installing any theme the possibility to change decoration from global options disappeared. In other forums I saw request to have button for default parameters.
But!
I create own theme and it was partly decided. Maybe it is more elegantly but I would like to have possibility to change view from global options. Where does Phoca Gallery get this parameters from? May I change them from phpmyadmin or through some file?
Thank you
Re: Can't resume original theme and change any theme options
Posted: 08 Feb 2010, 20:30
by Jan
Hi, you can see the default settings in config.xml file in installation ZIP file or in:
administrator/components/com_phocagallery/ folder
All the parameters are managed by Joomla! framework, so in fact parameters are worked and saved in Joomla! not in Phoca Gallery.
Jan
Re: Can't resume original theme and change any theme options
Posted: 08 Feb 2010, 20:52
by theflame
Jan wrote:Hi, you can see the default settings in config.xml file in installation ZIP file or in:
administrator/components/com_phocagallery/ folder
All the parameters are managed by Joomla! framework, so in fact parameters are worked and saved in Joomla! not in Phoca Gallery.
Jan
In renderfront.php I find this function
Code: Select all
function renderCategoryCSS($font_color, $background_color, $border_color, $imageBgCSS,$imageBgCSSIE, $border_color_hover, $background_color_hover, $ol_fg_color, $ol_bg_color, $ol_tf_color, $ol_cf_color, $margin_box, $padding_box, $opacity = 0.8) {
$opacityPer = (float)$opacity * 100;
$tag = "<style type=\"text/css\">\n"
." #phocagallery .phocaname {color: $font_color ;}\n"
." .phocagallery-box-file {background: $background_color ; border:1px solid $border_color;margin: ".$margin_box."px;padding: ".$padding_box."px; }\n"
." .phocagallery-box-file-first { $imageBgCSS }\n"
." .phocagallery-box-file:hover, .phocagallery-box-file.hover {border:1px solid $border_color_hover ; background: $background_color_hover ;}\n"
As I see there are some variable for style. But I could not find where this function gets them.
About config.xml the fact is that I done reinstallation. Suppose it should be replaced. Becouse I removed all files and copied new. Maybe I don't understand?
Re: Can't resume original theme and change any theme options
Posted: 08 Feb 2010, 21:38
by theflame
Maybe I understood. After theme installation with some checkbox it applies separately for global config, for category and for categories. Therefore in menu item were separately options. I. e. when I changed parameters in menu options it started to work.
Suppose my experience will be usefull for somebody.
Sorry for spend your time
Re: Can't resume original theme and change any theme options
Posted: 09 Feb 2010, 10:26
by Jan
Ok