[help theme] import lightbox2 in "default" theme

as title...
I need support,
how import the effect lightbox.js from theme "chili-light2" into the theme "defalut"?
I can't do it...
I would like to do this effect [lightbox] only in 'view original-size'
someone can help me, step by step?
thanks

p.s. ops, I was wrong the section for this post, If there is a mod. sorry!

Comments

  • Have you tried doing a file comparison between the chili-light2 and the default theme?
  • Faber Member
    yes I did it!
    I've take from page album.php [chili-light2] the js files and the part of code, this..

    <script src="<?php echo FULLWEBPATH . "/" . ZENFOLDER ?>/js/prototype.js" type="text/javascript"></script>
    <script src="<?php echo FULLWEBPATH . "/" . ZENFOLDER ?>/js/scriptaculous/scriptaculous.js?load=effects" type="text/javascript"></script>
    <script src="<?= $_zp_themeroot ?>/js/lightbox.js" type="text/javascript"></script>

    and the rel attribute for the A tag [link to view image]
    but, nothin'! it doesn't works.

    where I wrong?

    if is required I'll post a link to page that doesn't work [by link in zip file] so you can see the source code
  • I think you missed the part of the code that actually displays the image. Look carefully at your file differences. It helps if you have a software that will compare the two files and show you the differences.
  • Faber Member
    I've looked the page, but I don't know = (

    I think I have copied the right part of code, the link of file.css and file.js into <head></head> and into the <body> this in line59 of image.php from theme "default"

    <!-- The Image -->
    <?php if (!checkForPassword()) { ?>
    <div id="image">
    " rel="lightbox[<?=getAlbumTitle();?>]" title="<?=getImageTitle();?>"><?php printImageThumb(getImageTitle()); ?>
    </div>
    <?php if (getOption('Allow_ratings')) { printImageRating(); }?>

    but it doesn't work! = (
    sbillard, if you know something to fix that problem can you help me please?
Sign In or Register to comment.