Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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
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>
Offline
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
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
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” />
Offline
Re: Lightview install in txp
Yes, I can share an URL:
http://www.ejro.de/dekanatsjugend/
try it: “Leopard click here”
Offline
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
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" />
Offline