bbPress Plugin Browser »

bb-Lightbox2 (0.25)

Download

Version: 0.25

Last Updated: 2008-10-26

Compatible up to: trunk

Author Homepage »

Plugin Homepage »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(5)

Your Rating

Author: A1ex


  1. I think that after converting from phpbb in posts at your forum there are links to nonexistent images (icon_lol.gif, icon_e_smile.gif, ...).

    Though certainly the plugin should consider such case.

    Posted: 3 years ago #
  2. gregclimbs

    Member

    Thanks for the quick reply...

    - doh - they existed - in the old forum, but not in the bbpress. I copied the old smilies (easier than replacing all the links!) and viola! it works!...

    Now, it does create thumbs, but on click lightbox is not functioning - it links to full size image:

    you can see for yourself in the dev invironment:

    http://wattagetraining.com/bbpress/topic.php?id=3

    Thanks.

    g

    Posted: 3 years ago #
  3. Insert to header.php file of your theme the line <?php bb_head(); ?> before line </head>.

    Posted: 3 years ago #
  4. gregclimbs

    Member

    thanks again - right now I am using themepress to integrate the bb theme with wp theme.

    the themepress header.php has that php call in it. the wp does not. if I stick the bb call in the wp theme header, it breaks the site.

    maybe I could just add the lightbox js load in the wp header?

    g

    Posted: 3 years ago #
  5. how to exclude emoticons?

    Posted: 3 years ago #
  6. Greg, I noticed that you still don't have it working, but as it turned out A1ex named his plugin directory as my-plugins instead of the default bb-plugins. This is what you need to do in order to fix it and have it working. I just got it working on my site flawlessly. With a few line changes, you can get your forum working like mine with the images. demo: http://pinktofupony.com/forum

    open bb-lightbox2.php and mod the following

    $lightbox_2_theme_path = (dirname(__FILE__)."/Themes");
    $lightbox_style = (bb_get_option('uri')."my-plugins/bb-lightbox2/Themes/".$lightbox_2_theme."/");
    $lightbox_path = bb_get_option('uri')."my-plugins/bb-lightbox2/bb-lightbox2/";

    to reflect

    $lightbox_2_theme_path = (dirname(__FILE__)."/Themes");
    $lightbox_style = (bb_get_option('uri')."bb-plugins/bb-lightbox2/Themes/".$lightbox_2_theme."/");
    $lightbox_path = bb_get_option('uri')."bb-plugins/bb-lightbox2/bb-lightbox2/";

    That's it!

    Posted: 3 years ago #
  7. doesn't work well with bb-emoticons

    Posted: 3 years ago #
  8. I'm having problems with the thumbnails.

    http://gamersroute.com/forum/topic.php?id=4

    Looks like thumbnails are decreasing in size.
    What's happening here?

    Thanks for any input.

    Posted: 3 years ago #
  9. _asg_

    Member

    Hi A1ex and thank you so much for your plugin.

    Would it be possible to recode it so that it doesn't touch images that are below the set thumbnail size, i.e. thumbs size set to 100x100, then smilies stay as they are (no lighbox pop-up and no thumb). This would solve the problem with smilies and small images.

    Thank you for your effort and time

    Posted: 2 years ago #
  10. Would it be possible to recode it so that it doesn't touch images that are below the set thumbnail size, i.e. thumbs size set to 100x100, then smilies stay as they are (no lighbox pop-up and no thumb).

    That will be very nice!

    Posted: 2 years ago #
  11. I have a weird problem
    when there's a lot of images in a post, they keep getting smaller and smaller

    http://www.4colorrebellion.com/bbpress/topic.php?id=2#post-3

    Posted: 2 years ago #
  12. I think i've solved the problem. Find that codes between line 106-113 in "bb-lightbox2.php" file;

    else
      {
    	$ratio = $image_width/$image_height;
    	if ($tumb_width/$tumb_height > $ratio) {
    		$tumb_width = $tumb_height*$ratio;
    	} else {
    		$tumb_height = $tumb_width/$ratio;
    	}

    and replace with this;

    else
      {
    	$ratio = $image_width/$image_height;
    	if ('1'> $ratio) {
    		$tumb_height = $tumb_width/$ratio;
    	}else {
    		if ('1'< $ratio){
    		$tumb_height = $tumb_width/$ratio;
    		}else{
    			$tumb_height = $tumb_width;
    		}
    	}

    That's it! ;)

    Of course before trying, delete all files in tumbs folder.

    Posted: 2 years ago #

RSS feed for this topic

Add a Comment

You must log in to post.