ZenphotoCMS Forum
Add lightbox to zpArdoise theme - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: Add lightbox to zpArdoise theme (/thread-8077.html)

Pages: 1 2


Add lightbox to zpArdoise theme - leeloo047 - 08-01-2011

Hi,
I would like to add lightbox to the zpArdoise theme but I don't know where to put the line rel="lightbox" in the file image.php but maybe there is some other problemes in my syntax.
Did someone already try to add lightbox with success ?
Thx.




Add lightbox to zpArdoise theme - GrahameNZ - 09-01-2011

Have you seen this plugin Colorbox ?
http://www.zenphoto.org/2010/12/colorbox/




Add lightbox to zpArdoise theme - vincent3569 - 21-01-2011

Hello

FYI, zpArdoise 1.1 supports colorbox.




Add lightbox to zpArdoise theme - biopixel - 24-01-2011

Hi Vincent
I use zpArdoise 1.1 with zenphoto 1.4

  • if gallerific is used colorbox works fine
  • if gallerific is not used colorbox will not work either..

I like the look with bigger 150 pix thumbnails and would like colorbox to work in that mode as well.

Any suggestions on what to do?

Thanks for a very nice theme BTW :)




Add lightbox to zpArdoise theme - vincent3569 - 26-01-2011

hello,

sure, you can use colorbox without galleriffic.

you have 2 ways to do that :

1st, activate colorbox plugin and configure it to be used with album and images

  • you can configure slideshow to use colorbox rather than cycle
  • you can activate "use colorbox" option in option/theme to display full image with colorbox.



Add lightbox to zpArdoise theme - biopixel - 30-01-2011

Hi,
I have used the settings you provided above but still colorbox only works with gallerific.

-in colorbox plugin the "image" and "gallery" are checked and applied

-in theme/options the "use colorbox" is checked and applied

In slideshow the colorbox works fine, but changing the timeout value makes no difference in transition time.

Instead of the word "slideshow" I have the French "diaporama" any idea where to change that?

Thanks




Add lightbox to zpArdoise theme - acrylian - 31-01-2011

I can't reproduce any issue with the "speed" option of the slidesshow in Colorbox mode. Be sure to clear your browser cache and reload the page to see an effect.

Regarding the French word either that is accidentally hard coded in that theme or you have set your site to French.




Add lightbox to zpArdoise theme - biopixel - 06-02-2011

Cleared the cache and reloaded the page but still the slideshow is to fast. Timeout value is set to 6000 milliseconds.

Please have a look at www.biopixel.se

The french word diaporama is then hardcoded into the theme as I have english selected. Will look throu the code to change it. Any idea where it might be?

Since colorbox is not working in gallery I will make a clean install with latest version of zenphoto and zpArdoise and hope that will sort it out.




Add lightbox to zpArdoise theme - acrylian - 07-02-2011

You will have to set a higher value. No idea why the Colorbox behaves like that. That would be something to address by its developer then.

I can't help with the theme as I know nothing about it. I have changed the topic title so its developer might respond.




Add lightbox to zpArdoise theme - vincent3569 - 07-02-2011

hi,

to fix the translation issue of slideshow :

  • in album.php, line 18 :
    replace by

  • in image.php, line 24
    replace by

currently,, the speed of the slideshow of your site is fixed to 2000 (I have seen it by exploring the source's code of the pages).
to change it to 6000 (for exemple), change the value 'timeout' of the slideshow plugin.




Add lightbox to zpArdoise theme - kimmiddleton - 08-02-2011

thank you Vincent..that's what I thought as well..




Add lightbox to zpArdoise theme - biopixel - 09-02-2011

Hi and thanks for the help, unfortunatley problems remain.

Today I made a clean install with 1.4.0.2 and zpArdoise 1.2

Problems with colorbox only working with Gallerific is still there.
Slideshow same problem with timeout value, changes get lost

It is very strange as I have 6000 milliseconds set in plugin options. It seems that the changes get lost after I have applied them. I also checked the "page source" in my browser and there the value is 2000.

Regarding the Diaporama I found another problem.
In Theme file editor I could change the album.php but the image.php file is completely blank. If I download the image.php from server and check the file in text-editor the content is there.

I have tried in different browsers and the problems are the same.

Any advice please as this is very frustrating.
I thought a clean install would sort this up.
Thanks!




Add lightbox to zpArdoise theme - acrylian - 10-02-2011

I don't know anything about this theme but it is much more comfortable to edit files in a proper text editor (code hightlighting for exampe) via ftp.




Add lightbox to zpArdoise theme - markky99 - 10-02-2011

I was looking at zp-ardoise as an alternative to zp-gallerific, since there are some good improvements to the basic image handling.

For the colorbox issue, first of all I had to enable colorbox options for zp-ardoise in the colorbox plug-in options page, for album and image pages. But this was not an answer - using firebug I can see an error -
$("a.colorbox").colorbox is not a function, from the line - $("a.colorbox").colorbox((maxWidth:"98%" ...etc.

There could be a substitution error which I can't trace as yet.

For translations, line 10 of Search.php, "Recherche" can be replaced with "Search", and line 44 of footer.php can have the words "You can navigate the images with the help of the arrow keys of your keyboard" inserted in the echo statement.

This is with version 1.2 by the way

Hope this helps.




Add lightbox to zpArdoise theme - vincent3569 - 10-02-2011

@biopixel
do your modifications in the local files on your pc and after upload them to your server and, according to me, the not back-up of the timeout value of slideshow is not a problem of my theme.

@markky99
I am sorry, but would you be more explicit in your comments ?
I don't understand at all :-s

by the way, search button is correctly translated but the text in the bottom is not (I want do create a transalation ticket for that)




Add lightbox to zpArdoise theme - biopixel - 11-02-2011

So is there a way for me to edit the timeout value for slideshow outside the zenbox interface? what file to download and edit?

In plugin options - Colorbox is enabled for ZpArdoise,
image and album.

@vincent3569
could you please confirm that it's actually possible to use colorbox without Gallerific?
I see on your homepage that colorbox is not in use.




Add lightbox to zpArdoise theme - markky99 - 12-02-2011

Vincent,
To explain - when I have both colorbox and gallerific set for Ardoise, I got non-useful behaviour on the album page - clicking the larger image does not show the colorbox view, but merely switches to the next image. If I have firebug turned on for the Firefox browser, it reports the error message I reported earlier - "colorbox is not a function". If I clicked a thumbnail from "random images", I got the image view I would have expected from the album page.

I amended header.php to load the colorbox.js (from ZENFOLDER), which removed the firebug error message, but resulted in other non-helpful behaviour.

The only stable configuration I have found is to have both colorbox and gallerific set to off, and slideshow set to jquery. see www.marklcaton-images.co.uk/zenphoto.




Add lightbox to zpArdoise theme - vincent3569 - 12-02-2011

@biopixel
the only place to edit the timeout value for slideshow, is in option>plugin>slideshow : modify speed value.
of course, you should configure other colorbox options of the slideshow (Colorbox image type, Colorbox transition, Mode).
of course too, you should use and configure colorbox plugin (plugin used with image and album for zpArdoise theme).

with that, you will have a colorbox slideshow on album page and image page : it is my personnal configuration on my website...

in admin>options>theme if colorbox is checked, colorbox will used to displayed the full image.

with that, you know all about my theme and the colorbox and slideshow plugins.

last, if you want to modify the php files of my theme, do that in the local files on your pc and after upload them to your server.




Add lightbox to zpArdoise theme - vincent3569 - 12-02-2011

@markky99 :
colorbox plugin should be activated and configured (choose for album page of zpArdoise, for your need).

in admin>options>theme, check gallerific and colorbox options.

with that, colorbox will used to displayed the full image when you clik on the larger image (a clik on the thumbnail displayed next image).

this is the configuration on this pre-prod website : http://vincent.bourganel.free.fr/zenphoto_test2/index.php?album=neige




Add lightbox to zpArdoise theme - biopixel - 16-02-2011

@vincent3569
if you please read my third post above you will see that I had already applied your recomendations and that it will not solve the problem, thanks for taking you time.

It's a great theme and I would really like to have this working if possible.

Lets try again, hope I make sense..

What I want is for colorbox to open the image when I click on a thumbnail in album page, not using gallerific.

As it is now when clicking on thumbnail a new page opens in browser with the full zize image.
Only way to navigate back is with back button in browser.
When clicking on the fullzize image then colorbox works...

And colorbox IS checked and applied everywhere possible :)

Maybe it's not possible to open the thumbnails on the album page with colorbox?