Options: theme_colors

zenphoto version 1.1.5 [1328]

Went to change the color of the Default theme I'm using. Changed the drop box to select the the theme for my album instead of the gallery. Scrolled down to theme_color and the list box was empty.

Just prior I made a copy of the color dark.css and named it brown.css (using FTP) so I could play with the CSS colouring. Are custom names not allowed?

Comments

  • acrylian Administrator, Developer
    Do you have the file themeoption.php in your theme's folder?
  • I have access to my CGI log but wouldn't know where it was if it was staring me in the face <GRIN>. Wil follow the FAQ. This is the first time I had the problem so as you could see, thought it related to my applying the build.

    Yes, `themeoption.php` is in each folder. I always overwrite Default theme with each build, to make sure I don't lose files somewhere. (I understand it doesn't change unless the theme itself changes, but at least it is "updated" with each build in case I do something to it :)
  • Went back to build 1322 (for the other problem). Modified functions.php to true. Still no options for Theme_colors.
  • There are other drop-down boxes in admin, for instance for the spam filters under the comments option tab. Does that have things in the drop-down? If so, then the theme colors problem is something unique. The list is made bye looking at all the css files in the theme's `../styles` folder. So you should also look to be sure there is such a folder for your theme and that it has `.css` files in it.
  • Will be installing build from March 22 and check the boxes. I've only used Default clones and each does have a css file, which I've modified according to my fancy. Be back...
  • I know:EnsellitisZEN is a disease of the theme-option option <LAUGH!!!> (this theme has no drop option)

    I reset my Gallery to Default. Left my Album at DefaultBoston (my concotion). The only difference between the two is a modified dark.css in DefaultBoston and I was about to create a brown.css to make a chocolate brown colour.

    DEFAULT: works with Theme_colors WITHOUT MODIFYING the functions.php file.
    DEFAULTBOSTON: works with Theme_colors WITHOUT MODIFYING the functions.php file. HOWEVER, I also trashed the CSS file I created "brown.css".

    So, does that mean I can only use dark or light CSS files (or whatever comes with the theme) I cannot have a self-created CSS file recognized?
  • No, you can use any css file you like so long as it is correctly named with .css as the suffix and resides in the styles folder. You can prove this for your self by copying one of the css files from another theme into default's styles folder. You will get the `color` in the list--Of course, selecting it may create a nightmare since it was not necessarily made compatible with the default theme.
  • The box shows but not the "cloned" CSS files. I am using dark.css (that I modified) after I duplicated & renamed the original to darkOriginal.css, same with the light.css files. These two "original" files do not show in the drop box. (Logged out/back in to check)

    Theme is DefaultBoston (cloned from Default).
  • version 1.1.5 [1335]

    Still not seeing all my CSS options in the Theme_colors drop down list. Using Default theme where I have several CSS files in addition to those that come with the Theme. My "active" CSS file is always renamed to dark.css so while I cannot see it as the chosen file, it's the one that's applied.
  • version 1.1.5 [1346] |

    Problem still exists. I cannot change the theme_color using my custom-named Default theme. I'm worried if I use the ZP Default, I'll overwrite on an update by accident!
  • version 1.1.5 [1382] |

    Okay, now things are getting interesting: My DefaultBoston theme_color option is "admin"!. None of the other CSS files appear.
  • Do the theme color selections work when you are using a distributed theme?

    Also, there have been changes to the themeoptions.php files necessary to support the album themes. Have you checked your themeoptions.php to see if it is codes the same way as the ones in the nightly builds?
  • I switched my CSS files to Default and don't see them. My DefaultBoston theme only has modified CSS files. The fiile is still called dark.css. I cloned it as well to darkBoston.css and lightRBC.css and they do not appear. NO IDEA what admin is!!!

    Wasn't aware that changes were made to that file. When I do my updates, I don't import over my DefaultBoston because the index.php is slightly changed (took out the RSS at bottom) as well. So too for the Enselitis that I use as my Gallery Theme. There I moved things around in the code for displaying the first page.

    I'll do a file compare....
  • The changes I found related to the Ratings. I overwrote my copy with the Apr 01 copy. Deleted cookies, cleared cache. Logged back in. (See a new tab :)

    Selected Options | Theme Options >>> ALL THERE!!! THANK YOU!!!

    Does that mean that the files within a Theme should be updated except for the folder "styles" (if modified)?
  • When I say "distributed theme" I really mean one that is as it came from the zenphoto release you are running. So, your clone just doesn't count. (If the problem is because the code needs to be updated, then the clone might also have the old code.)

    Whether any files need to be updated depends on what has got changed. The best approach is to do a file compare of the old version of the distributed theme you chose with the new version of the same theme. Any changes you see are likely to be needed in your modified theme.
  • The change that is suspect is in the following code:
    ` function handleOption($option, $currentValue) {

    if ($option == 'Theme_colors') {

    $theme = array_pop(explode('/', dirname(__FILE__)));

    $themeroot = SERVERPATH . "/themes/$theme/styles";

    echo 'n";

    generateListFromFiles($currentValue, $themeroot , '.css');

    echo "n";

    }

    }`

    This is where the theme colors are being fetched and displayed. If the path to the CSS files is not correct it will not display them.
  • All my CSS files are in the "styles" folder. I am playing with one that will use image background and am putting the images in the "images" folder within the Theme. I'm trying to keep all my themes based on Default for my albums so all the CSS files can stay in the folder. Only other one is the copy I made for the Gallery. Again, all via the CSS file within the Theme. Will apply the updates too.

    Am going to test renaming the Theme to Default and each of the Styles to whatever album they apply to. That way, if I like Album1 but what it slightly different for Album2, I'm not messing with the same CSS file.
Sign In or Register to comment.