Light Box Effect not work on phpBB2! Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
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 Mon Nov 05, 2012 11:03 am

    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 Sun Nov 25, 2012 6: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 Mon Nov 05, 2012 12: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 Sat Nov 10, 2012 4: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. Sat Nov 10, 2012 12: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 Tue Nov 20, 2012 2: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 Tue Nov 20, 2012 5: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 Sun Nov 25, 2012 6: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 Sun Nov 25, 2012 7:47 am

    Topic Solved & Locked