The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Light Box Effect not work on phpBB2!

View previous topic View next topic Go down

Solved Light Box Effect not work on phpBB2!

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

Hello, just wanna say.

This does not work in phpBB2 when I try it. >> http://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

Sozinho
Forumember

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

http://appzxor.omgforum.net

Back to top Go down

Solved Re: Light Box Effect not work on phpBB2!

Post by Aconitin on 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..

Aconitin
Forumember

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

Back to top Go down

Solved Re: Light Box Effect not work on phpBB2!

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

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

Sozinho
Forumember

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

http://appzxor.omgforum.net

Back to top Go down

Solved Re: Light Box Effect not work on phpBB2!

Post by Nera. on 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

Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

Solved Re: Light Box Effect not work on phpBB2!

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

Yes

Sozinho
Forumember

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

http://appzxor.omgforum.net

Back to top Go down

Solved Re: Light Box Effect not work on phpBB2!

Post by nextlevelgaming on 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

nextlevelgaming
Forumember

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

http://www.easybbtutorials.forumotion.com

Back to top Go down

Solved Re: Light Box Effect not work on phpBB2!

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

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

Thanks anyways.

Sozinho
Forumember

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

http://appzxor.omgforum.net

Back to top Go down

Solved Re: Light Box Effect not work on phpBB2!

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

Topic Solved & Locked

Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum