The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
5 posters

    Light Box Effect not work on phpBB2!

    Sozinho
    Sozinho
    Forumember


    Male Posts : 172
    Reputation : 4
    Language : English
    Location : Philippines

    Solved Light Box Effect not work on phpBB2!

    Post by Sozinho November 5th 2012, 12:03 pm

    Hello, just wanna say.

    This does not work in phpBB2 when I try it. >> https://help.forumotion.com/t115826-add-a-lightbox-effect-to-the-images-of-the-forum


    Help anybody? I like that one on my forum.


    Last edited by Sozinho on November 25th 2012, 7:50 am; edited 1 time in total
    Aconitin
    Aconitin
    Forumember


    Male Posts : 246
    Reputation : 7
    Language : Indonesian
    Location : Indonesia

    Solved Re: Light Box Effect not work on phpBB2!

    Post by Aconitin November 5th 2012, 1:38 pm

    I have PhpBB2 forum and it works perfectly.. Wink
    Maybe you can provide your forum URL so we can check it..
    Sozinho
    Sozinho
    Forumember


    Male Posts : 172
    Reputation : 4
    Language : English
    Location : Philippines

    Solved Re: Light Box Effect not work on phpBB2!

    Post by Sozinho November 10th 2012, 5:29 am

    I don't have. It's my friend.
    Nera.
    Nera.
    Energetic


    Female Posts : 7078
    Reputation : 2017
    Language : English
    Location : -

    Solved Re: Light Box Effect not work on phpBB2!

    Post by Nera. November 10th 2012, 1:57 pm

    This does not work in phpBB2 when I try it.

    The lightbox works fine on a BB2 forum:: http://tikitiki.forumcroatian.com/t1-your-first-subject#2

    If you need help with it you need to post that forums URL where the lightbox doesn't work and make one topic with an image in it accesable to guests so we can take a look.

    LP
    Sozinho
    Sozinho
    Forumember


    Male Posts : 172
    Reputation : 4
    Language : English
    Location : Philippines

    Solved Re: Light Box Effect not work on phpBB2!

    Post by Sozinho November 20th 2012, 3:11 am

    Yes
    nextlevelgaming
    nextlevelgaming
    Forumember


    Male Posts : 989
    Reputation : 38
    Language : English|CSS|HTML5|javascript|
    Location : New York

    Solved Re: Light Box Effect not work on phpBB2!

    Post by nextlevelgaming November 20th 2012, 6:01 am

    Neras code is different calling attr.

    I had to fix mine cuz it was making all images lightbox and i only wanted posted images in post

    Code:
    $(function() {
          $('.postbody div img, .postbody .content img, .entry-content img, .post-entry div img').each(function () {
              $(this).not('.user img').not('img[src*="/smiles/"]').wrap('<a href="' + $(this).attr('src') + '" class="fa_fancybox"></a>');
          });     
          $(".fa_fancybox").fancybox();
        });

    PHPBB2 is

    Code:
    $(function() {
          $('table .post tbody img').each(function () {
              $(this).not('span.postdetails img').not('td.post-options img').not('img[src*="/smiles/"]').wrap('<a href="' + $(this).attr('src') + '" class="fa_fancybox"></a>');
          });     
          $(".fa_fancybox").fancybox();
        });

    Tested and works in phpbb2
    Sozinho
    Sozinho
    Forumember


    Male Posts : 172
    Reputation : 4
    Language : English
    Location : Philippines

    Solved Re: Light Box Effect not work on phpBB2!

    Post by Sozinho November 25th 2012, 7:48 am

    Just Lock this now. I feel not needing it now.

    Thanks anyways.
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    Solved Re: Light Box Effect not work on phpBB2!

    Post by Sanket November 25th 2012, 8:47 am

    Topic Solved & Locked

      Current date/time is September 24th 2024, 9:26 am