Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-03-06 17:41:34

Matl
Member
From: Brannenburg, Germany
Registered: 2007-06-18
Posts: 13
Website

Lightview install in txp

Is there anybody who knows, how to install lightview in Textpattern. I’ve tried it many times, but I didn’t have success.

Offline

#2 2008-03-06 18:28:31

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Lightview install in txp

And the winner of the most vague question is…What do you mean by “I didn’t have success?” JavaScript errors? What are you trying to do?

Offline

#3 2008-03-06 19:50:04

sirNemanjapro
Member
From: Čačak, Serbia
Registered: 2007-12-08
Posts: 59
Website

Re: Lightview install in txp

Maybe his not putting the files in the right place?


“… they were enterprising voyages…” – Mr. Spock ( from Spock vs. Q )

Offline

#4 2008-03-06 20:51:33

Matl
Member
From: Brannenburg, Germany
Registered: 2007-06-18
Posts: 13
Website

Re: Lightview install in txp

OK I did this:
I copied the skripts
builder.js
controls.js
dragdrop.js
effects.js
lightview.js
prototype.js
scriptaculous.js
slider.js
sound.js
unittest.js
in a Folder on the root-level: js
I copied the lightview.css in a Folder on the root level: css
I copied the images in a Folder on the root level: images

I wrote in the header of my site:

<link rel=“stylesheet” type=“text/css” href=“css/lightview.css” />
<script type=‘text/javascript’ src=‘js/prototype.js’></script>
<script type=‘text/javascript’ src=‘js/scriptaculous.js?load=effects’></script>
<script type=‘text/javascript’ src=‘js/lightview.js’></script>

I wrote in the site content:
<a href=‘image.jpg’ class=‘lightview’>My image</a>

And nothing happened. What is wrong?

Offline

#5 2008-03-06 20:59:40

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Lightview install in txp

If you are not on home page (so, on a section), probably the path to JS files (currently, relative) won’t work.
Try absolute paths:

<script type='text/javascript' src='/js/prototype.js'></script>
<script type='text/javascript' src='/js/scriptaculous.js?load=effects'></script>
<script type='text/javascript' src='/js/lightview.js'></script>

La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#6 2008-03-06 21:15:08

Matl
Member
From: Brannenburg, Germany
Registered: 2007-06-18
Posts: 13
Website

Re: Lightview install in txp

the site with the image looks like this:
<a href=‘DSC_4591.jpg’ class=‘lightview’>My image</a>

the head of my site looks like this:
<!— Skripte für Diashow —>
<link rel=“stylesheet” type=“text/css” href=“css/lightview.css” />
<script type=‘text/javascript’ src=’/js/prototype.js’></script>
<script type=‘text/javascript’ src=’/js/scriptaculous.js?load=effects’></script>
<script type=‘text/javascript’ src=’/js/lightview.js’></script>

But it doesn’t work.

Offline

#7 2008-03-06 21:36:13

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Lightview install in txp

Maybe absolute paths to the image and style sheet as well?

Offline

#8 2008-03-06 21:52:53

Matl
Member
From: Brannenburg, Germany
Registered: 2007-06-18
Posts: 13
Website

Re: Lightview install in txp

No. I’m sorry. This is not the solution. If I click on the foto’s name, the foto appears in the same window as the site. But no animation, no lightview.

Last edited by Matl (2008-03-06 21:53:24)

Offline

#9 2008-03-06 21:58:17

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Lightview install in txp

Can you share an URL to see what’s going on?

As Els said, you have to reference everything with absolute paths:

<link rel=“stylesheet” type=“text/css” href=“css/lightview.css” />
should be
<link rel=“stylesheet” type=“text/css” href=“/css/lightview.css” />


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#10 2008-03-06 22:07:48

Matl
Member
From: Brannenburg, Germany
Registered: 2007-06-18
Posts: 13
Website

Re: Lightview install in txp

Yes, I can share an URL:

http://www.ejro.de/dekanatsjugend/

try it: “Leopard click here”

Offline

#11 2008-03-06 22:20:51

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Lightview install in txp

Your path is incorrect – you uploaded to /dekanatsjugend/js, not /js. Your script paths should be http://www.ejro.de/dekanatsjugend/js/prototype.js (or move @/js to the actual root).

Last edited by jm (2008-03-06 22:21:23)

Offline

#12 2008-03-06 22:26:37

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Lightview install in txp

Ok, your js files are here:

<script type='text/javascript' src='/dekanatsjugend/js/prototype.js'></script>
<script type='text/javascript' src='/dekanatsjugend/js/scriptaculous.js?load=effects'></script>
<script type='text/javascript' src='/dekanatsjugend/js/lightview.js'></script>

and css file is here:

<link rel="stylesheet" type="text/css" href="/dekanatsjugend/css/lightview.css" />

La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB