can't get it to work

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

can't get it to work

annelies B.C. Veeze
tried everything but as soon as i change "lightbox" in "shadowbox" the picture opens in a normal browser screen. Made the changes in the index.php and the htmlTools.class.php en de flypage
the shadowbox folder is in the root
Reply | Threaded
Open this post in threaded view
|

Re: can't get it to work

HenzeBerkheij
Do you have an example ergens online perhaps?
Reply | Threaded
Open this post in threaded view
|

Re: can't get it to work

annelies B.C. Veeze
www.coolspetito.nl

changed it to lightbox now
but know the clients can't save the large product picture
with shadowbox they can
Reply | Threaded
Open this post in threaded view
|

Re: can't get it to work

HenzeBerkheij
change it back to shadowbox, otherwise i can´t see what you are doing wrong!

try to follow the usage page and look at examples to get familiar with shadowbox.
Reply | Threaded
Open this post in threaded view
|

Re: can't get it to work

annelies B.C. Veeze
its set to shadowbox now
Reply | Threaded
Open this post in threaded view
|

Re: can't get it to work

HenzeBerkheij
i can´t find it anywhere, but you must init Shadowbox:

Shadowbox.init();

put this, between script tags somewhere after the shadowbox.js include...
Reply | Threaded
Open this post in threaded view
|

Re: can't get it to work

annelies B.C. Veeze
is in the index.php file of the template

<?php
        if (@$option=='com_virtuemart' ) { ?>
<link rel="stylesheet" type="text/css" href=shadowbox.css">
<script type="text/javascript" src="shadowbox.js"></script><script type="text/javascript"> Shadowbox.init({ language: 'en', players: ['img'] }); </script><?php }  ?>
Reply | Threaded
Open this post in threaded view
|

Re: can't get it to work

annelies B.C. Veeze
solved the problem
looked at the source of a happy user and found the solution
made the href absolute

changed the code to
<?php
        if (@$option=='com_virtuemart' ) { ?>
<link rel="stylesheet" type="text/css" href="http://www.coolspetito.nl/shadowbox/shadowbox.css">
<script type="text/javascript" src="http://www.coolspetito.nl/shadowbox/shadowbox.js"></script><script type="text/javascript"> Shadowbox.init({ players: ['img'] }); </script><?php }  ?>

et voila
:)