• trcyshw

    (@traceyshaw)


    Hi,

    I’m using Rubin J. Kaplan’s WPPA plugin for my site and I’m wondering whether anyone has figured out a way to integrate it with a lightbox plugin?

    All suggestions appreciated.

Viewing 7 replies - 1 through 7 (of 7 total)
  • This is a great plugin, but would be even better if you could integrate lightbox. I would be happy for any help with this as well. After having searched the web, it seems like it’s a problem quite a few people are struggling with.

    OK I found out how to do this. I find it strange that no one has taken the time to post this solution somewhere as it was extremely easy to do, even for non PHP coder as me.
    OK first find the line in wppa.php that says
    $url = get_permalink() . wppa_sep() . 'album=' . $_GET['album'] . '&photo=' . $thumb['id'];
    Its about line no.: 990

    change that to:
    $url = get_bloginfo('wpurl') . '/wp-content/uploads/wppa/' . $thumb['id'] . '.' . $thumb['ext'];

    Then open wppa_theme.php and change this line:
    <a href="<?php wppa_photo_page_url(); ?>" class="img"><img src="<?php wppa_thumb_url(); ?>" alt="*" /></a>

    To:
    <a href="<?php wppa_photo_page_url(); ?>" rel="lightbox[<?php wppa_album_name(); ?>]" class="img"><img src="<?php wppa_thumb_url(); ?>" alt="*" /></a>

    That’s all you have to do and every thumbnail will open with lightbox. If you got that installed of course.

    Huge Thanks to Kasperbs for posting/sharing the fix. It is very easy and works great on my install!

    Thanks!

    –Tobias

    does anyone now if there’s a way to integrate it with the RTE from WordPress so i Can add my images to my posts? Many thanx

    Thank you so very much for sharing this fix!

    It works superb on my install, too and I have been looking for this for a long time ??

    Hi,
    I’ve just made the changes. It works fine on an existed album.
    Then I create a new album, and I got this error :
    Warning: Invalid argument supplied for foreach() in /volume1/web/bigoud/wp-content/plugins/wp-photo-album/theme/wppa_theme.php on line 27

    Any idea of what I did wrong ?
    Thanks, Eric

    this thread has brought an end to my frustration- using word press photo album and lightbox on wpmu is finally simple! thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WordPress Photo Album (WPPA) Modification Request’ is closed to new replies.