I was attempting to display images in non-gallery pages with colorbox.
I did find the two lines needed make it work if someone wants to put it in their theme or in a page:
Not checked but it seams a similar thing could be possible ... see the last entry here
yeah, but I don't know what to do with that lol
you meant the following code right?
I'm sure there is some way to turn colorbox on for images easier. I guess that's what I'm asking. But I don't know php thus that code doesn't really say a lot to me :D
OH. . . I see. It has to be the first php called in the template. I tried it but had it after the gethead. . .duh! Never said I was an expert lol
So, for anyone else looking at this.
Simply put the above addcolorbox code before you call the header with <?php gpOutput::GetHead(); ?>
Then add: name="gallery" rel="gallery_gallery"
after the href="" link for the image.
tada your image will open in colorbox even when it's not in a gallery page.
Thanks a lot for the help cybermax, much appreciated. Guess we'll have to add some of these little tips to the documentation wiki for gpEasy.
you can also find a guide on that here in the documentation forum (with only 3 posts)
Just for info....
yep, that would have saved me some time. I think some of these things, like cybermax suggested in another post, need to be put into the documentation wiki. . . maybe a little more clearly for those of use that don't know much :)