zenphoto forums » General Zenphoto Discussion

Re-install a 3rd party theme: zpFocus_ v1.4.2.2

(12 posts)
  • Started 1 year ago by reneesanguinetti
  • Latest reply from sbillard
  1. reneesanguinetti

    Contributor
    Joined: Nov '09
    Posts: 158

    Hello,
    Zenphoto version 1.4.2.3 [9889] (Official Build)
    I have been using theme: zpFocus_ v1.4.2.2 with many modifications.
    Now I want to use the original, so I switched to a standard theme temporarily. I deleted theme: zpFocus_ v1.4.2.2 from my themes folder. Then re-uploaded the original package (several times).
    The unmodified files are there, but when I activate it, my site still shows up with the modifications. I cleared my browser cache and even re-run set-up. Is there something stored in the database that "remembers" the changes to a theme? Thank-you for your time!

    Posted 1 year ago #
  2. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,341

    Browser cache can be quite peristent. Try reloading several times.

    Also the static html cache could be the reason, although I mean to remember that you don't use it.

    Don't forget to read the Forum rules and usage resources
    Posted 1 year ago #
  3. Zenphoto support team
    kagutsuchi

    Assistant developer
    Joined: Aug '09
    Posts: 510

    Just a quick note: you can force the browser to completely refresh the page if you hold Shift when you click refresh.

    Posted 1 year ago #
  4. reneesanguinetti

    Contributor
    Joined: Nov '09
    Posts: 158

    Thank-you for the replies. I have refreshed over and over...
    The left sidebar is set up to display a random image. When I view page source the "list" of images is there, but nothing displays. All other original features work, except this. I have double checked all the theme options.
    When I modified the theme before I removed this feature.
    I also use an original version of zpFocus_ v1.4.2.2 with another install of Zenphoto version 1.4.2.3 with the same theme options and it works just fine. ?

    Posted 1 year ago #
  5. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,766

    Certainy there are theme options that would be remembered in the database. If those effect the appearance in the ways you observe then that would be the problem

    You can manually delete those options. All should be identified by the theme name in the "theme" column. Of course if the theme stores its options "in the raw" that might not be the case. Then you would have to search for each individual option by name.

    Don't forget to read the Forum rules and usage resources
    Posted 1 year ago #
  6. Zenphoto translation team
    Michel Gagnon

    Translator
    Joined: Apr '10
    Posts: 147

    If nothing seems to work easily, modify slightly the original theme.

    – Before uploading, modify the file theme_description.php and give it a new name by modifying the first line:
    $theme_description['name'] = 'zpFocusOriginal'
    – Upload the folder using a new name (ex.: zpFocusOriginal).

    Of course, I tend to recommend the opposite: to copy and rename a theme that you want to modify, so it has it's own non-standard name.

    Posted 1 year ago #
  7. reneesanguinetti

    Contributor
    Joined: Nov '09
    Posts: 158

    Hello,
    I found the theme column in phpMyAdmin and the options are identified by the theme name. So to clear the database I should just delete all the associated entries? Thank-you for your time!

    Posted 1 year ago #
  8. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,766

    Just delete the associated entries.

    That table contains ALL of the options you have set for Zenphoto, so clearing them all will cause you problems.

    Don't forget to read the Forum rules and usage resources
    Posted 1 year ago #
  9. reneesanguinetti

    Contributor
    Joined: Nov '09
    Posts: 158

    Hello,
    I guess I'm missing something.
    I deleted zpFocus_ v1.4.2.2 from my themes folder.
    Then I deleted all entries associated with all versions of zpFocus in zp_options from my database. (Double checked).
    Cleared my browser cache (Chrome).
    Re-run setup and uploaded zpFocus_ v1.4.2.2.
    It still would not display the random image in the left sidebar even though I set the options.
    So, I repeated the process and used Michel Gagnon's suggestion with the same results.
    The only other thing I can think of is that my original size images are only 200px and I do cache the full size image. The css to display the random images is {width:300px;height:300px;position:relative;display:none;}, but I'm not sure if that has anything to do with this at all.
    Thank-you.

    Posted 1 year ago #
  10. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,341

    Since we don't know the theme we can only suggest to try a standard one and add the random images function there to see if that works. If that does it is a theme issue most likely.

    Don't forget to read the Forum rules and usage resources
    Posted 1 year ago #
  11. reneesanguinetti

    Contributor
    Joined: Nov '09
    Posts: 158

    Hello,
    I made a test site using Zenphoto version 1.4.2.3 [9980] (Official Build) and zpFocus_ v1.4.2.2 and still had the same issues. So I deleted that database and created a new one using a different table prefix and for some reason it works now on the test site.
    If I re-run setup for my "real" site and change the table prefix will I loose my data?

    Also, I would like the random images to be drawn from a single album. This is the current code:
    <?php
    if (($zpfocus_showrandom) == 'single') { $sscount=1; } else { $sscount=5; }
    if ((in_context(ZP_ALBUM)) || (in_context(ZP_IMAGE))) { $sstype = 'album'; $ssalbum = $_zp_current_album->getFolder(); $sstitle = gettext('Random Album Image'); } else { $sstype = 'all'; $sstitle = gettext('Random Gallery Image'); }
    ?>
    What should I change to select images from a single album?
    Thank-you. I appreciate your time!

    Posted 1 year ago #
  12. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,766

    Yes. Changing the prefix is almost the same as using a new one.

    Don't forget to read the Forum rules and usage resources
    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.