Can't resume original theme and change any theme options

Phoca Gallery - image gallery extension
theflame
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 18 Jan 2010, 09:38

Can't resume original theme and change any theme options

Post 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 :idea: Any ideas? Thanks
theflame
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 18 Jan 2010, 09:38

Re: Can't resume original theme and change any theme options

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can't resume original theme and change any theme options

Post by Jan »

Hi, try to install default or default transparency theme.

Jan
If you find Phoca extensions useful, please support the project
theflame
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 18 Jan 2010, 09:38

Re: Can't resume original theme and change any theme options

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can't resume original theme and change any theme options

Post 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
If you find Phoca extensions useful, please support the project
theflame
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 18 Jan 2010, 09:38

Re: Can't resume original theme and change any theme options

Post 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?
theflame
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 18 Jan 2010, 09:38

Re: Can't resume original theme and change any theme options

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can't resume original theme and change any theme options

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply