How integrate lightbox in CMS?

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
SCM
Forum Members
Forum Members
Posts: 74
Joined: Fri Mar 13, 2009 1:01 pm

How integrate lightbox in CMS?

Post by SCM »

i would like to use lightbox (http://www.huddletogether.com/projects/lightbox/) in one of my pages managed with the cms.

but i don't know how to integrate this. can anybody help pls???
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: How integrate lightbox in CMS?

Post by tyman00 »

Check out the Downloads Forge for a module named Lightbox. It will simplify your job :)
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
SCM
Forum Members
Forum Members
Posts: 74
Joined: Fri Mar 13, 2009 1:01 pm

Re: How integrate lightbox in CMS?

Post by SCM »

ok now it was sucessfull

but what are the further steps?? the help file isn't really useful :(
Last edited by SCM on Fri Mar 13, 2009 2:29 pm, edited 1 time in total.
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: How integrate lightbox in CMS?

Post by tyman00 »

I've run into issues with the XML for CGExtensions before too. Try downloading the ZIP package and FTPing it to the /modules folder. Then go into the Modules page and install it.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
SCM
Forum Members
Forum Members
Posts: 74
Joined: Fri Mar 13, 2009 1:01 pm

Re: How integrate lightbox in CMS?

Post by SCM »

ah yes thanks, now it works

but then i have a second question:

how can i delete the linkt in lightbox2:
click here to download the picutre

and why is the prev and previous image missing in my lightbox? in which directory do i have to store these files??
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: How integrate lightbox in CMS?

Post by tyman00 »

I believe you will have to modify the template/javascript in the /modules/lightbox directory.

As far as the prev/next links. They should show up when you hover over the image. If they do not you have not properly setup your {Lightbox} call... be sure to read the help on that.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
SCM
Forum Members
Forum Members
Posts: 74
Joined: Fri Mar 13, 2009 1:01 pm

Re: How integrate lightbox in CMS?

Post by SCM »

hmm yes i did that

but i dont know why this is needed

{LightBox image='imagefile.gif'} - Repeat as many times as necessary to create image popups
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: How integrate lightbox in CMS?

Post by tyman00 »

You didn't read it all of the help then...

"(optional) name="" - Specify a name for the rel link. This can be used to group images together and to allow paging back and forth between them"

Here is what you need: {Lightbox image="John.jpg" name="family"}{Lightbox image="Jane.jpg" name="family}
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
SCM
Forum Members
Forum Members
Posts: 74
Joined: Fri Mar 13, 2009 1:01 pm

Re: How integrate lightbox in CMS?

Post by SCM »

hmm I used rel=lightbox[album1]

for example. that works too, but ok thx, i will try name
SCM
Forum Members
Forum Members
Posts: 74
Joined: Fri Mar 13, 2009 1:01 pm

Re: How integrate lightbox in CMS?

Post by SCM »

ok now i used the following code:

{LightBox image='/uploads/images/gallery/Rehbock.jpg' name="Rehbock"}

{LightBox image='/uploads/images/gallery/Rehbock2.jpg' name="Rehbock"}

and in the header of the page i put:

{LightBox action='css'} {LightBox action='js'}

but nevertheless the next/prev aren't there :(
mel
Forum Members
Forum Members
Posts: 147
Joined: Mon Dec 11, 2006 11:53 pm

Re: How integrate lightbox in CMS?

Post by mel »

Hi,
Still have same problem. But I noticed that my log are full of request like :
Required but not found URLs (HTTP code 404) : /fr/contact/modules/LightBox/js/lightbox.js
It's definetly a problem with url, but I dont know why.
I use mod_rewrite. {LightBox action='css'} {LightBox action='js'} are located in of in my template.
Sorry for SCM if it's not the same issue,
Thanks
Mel
Version 1.6-MLE
User avatar
fatlizard
Forum Members
Forum Members
Posts: 71
Joined: Thu Jun 18, 2009 1:24 pm

Re: How integrate lightbox in CMS?

Post by fatlizard »

Raboo
New Member
New Member
Posts: 6
Joined: Tue Aug 04, 2009 5:40 pm

Re: How integrate lightbox in CMS?

Post by Raboo »

Regarding the "prev" and "next" images not showing.

Edit the Lightbox/css/lightbox.css

Code: Select all

#prevLink:hover, #prevLink:visited:hover { background: url(modules/LightBox/images/prevlabel.gif) left 15% no-repeat; }
#nextLink:hover, #nextLink:visited:hover { background: url(modules/LightBox/images/nextlabel.gif) right 15% no-repeat; }
Should be

Code: Select all

#prevLink:hover, #prevLink:visited:hover { background: url(/modules/LightBox/images/prevlabel.gif) left 15% no-repeat; }
#nextLink:hover, #nextLink:visited:hover { background: url(/modules/LightBox/images/nextlabel.gif) right 15% no-repeat; }
Please note the "/" after the "url("
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: How integrate lightbox in CMS?

Post by Dr.CSS »

That only has to be there if you don't have the base href in the head...
SCM
Forum Members
Forum Members
Posts: 74
Joined: Fri Mar 13, 2009 1:01 pm

Re: How integrate lightbox in CMS?

Post by SCM »

the / in front of the url doesn't work for my page. it only works if i use the absolute link (http://www.....)
but why??
Post Reply

Return to “The Lounge”