Used to overlay images on the current page. Lightbox JS v2.2 by Lokesh Dhakar. This plugin is based on "Lightbox 2" plugin for WordPress. Example: http://www.sablinov.ru/forums/topic/1
bbPress Plugin Browser »
bb-Lightbox2 (0.25)
Average Rating





Your Rating
Author: A1ex
-
Does this not work with Allow Images or bbCode? All [img] links become broken when using this plugin.
Posted: 1 year ago # -
From my side this plugin works with Allow Images, and it hadn't be tested yet with bbCode.
Posted: 1 year ago # -
In order for this to work, a couple changes need to be made to the plugin's .php file.
Find the following two lines:
$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/";
Change the "my-plugins" directory to match your system (probably bb-plugins).
You now need to create a directory off your system root called "/tumbs". Make sure it is writeable.
If your thumbnails are not showing up, find this line of code:
$tumbs_url = $_GET[SERVER_URI].'/tumbs/';
And replace it with a hard link to the location of your "tumbs" directory.
ie:
$tumbs_url = 'http://www.mysite.com/tumbs/';
That should do it! Works well with AllowImages.
Posted: 1 year ago # -
When I use this code:
[img]http://img142.imageshack.us/img142/7050/yugoad2la5.jpg[/img]It changes it to this:
[imghttp://img142.imageshack.us/im.....5.jpg[/imgPosted: 1 year ago # -
If your thumbnails are not showing up, find this line of code:
$tumbs_url = $_GET[SERVER_URI].'/tumbs/';---------------------
This line of code isn't in the plugin I just downloaded. However, this is:
if(!$tumbs_path) { $tumbs_path = BBPATH.'tumbs/'; } if(!$tumbs_url) { $tumbs_url = bb_get_option('uri').'tumbs/';Posted: 1 year ago # -
Citizenkeith: It seems the plugin has been updated, so the second bit of code I referenced no longer exists.
Is the plug-in working for you now? I haven't updated to this new version, but the method for finding the URL for your BBPress install is better now (so adding a hard link to your /tumbs dir shouldn't be necessary).
Anyway, try using HTML rather than BBcode. Looks like it's truncating the BBcode. Probably not parsing the brackets correctly.
Also A1ex -- nice work. Would be great to add something to the BBPress admin interface so you can specify the thumbnail size without having to edit the .php file.
Posted: 1 year ago # -
Thanks for your interest to the plugin. I will necessarily add support bbCode.
Posted: 1 year ago # -
Support bbCode is added :)
Posted: 1 year ago # -
Thanks!
Posted: 1 year ago # -
Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in /usr/export/www/vhosts/funnetwork/hosting/ksth/my-plugins/bb-lightbox2/bb-lightbox2.php on line 66
Warning: getimagesize(http://test.com/ghjghjghj.JPG) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in /usr/export/www/vhosts/funnetwork/hosting/ksth/my-plugins/bb-lightbox2/bb-lightbox2.php on line 66
Posted: 1 year ago # -
...URL file-access is disabled in the server configuration...
You must configure allow_url_fopen=on / allow_url_include=on in your php.ini to make that work.
Posted: 1 year ago # -
damn, its a freehost...
Posted: 1 year ago # -
Hi
i'm very happy with this plug but i've got one problem.
When it creates the tumbs, there is a black background ! How can i make it transparent ?
ThanksPosted: 1 year ago # -
Hi. I like the plugin a lot. But I have another problem. I am running a board where the users post a lot of images - and a lot of them is wallpaper-size (800-1200px wide). This causes the board to look terrible.
At first I thought that Lightbox was perfect to prevent this. I have changed the thumb-width to 500 in bb-lightbox2.php
$tumb_width = 100;
$tumb_height = 100;This makes huge images fit into the board - so far so good.
Now my problem is the images that is below 500px wide. Cause now they are being scaled up.
I am using the plugin BB-smilies and 500px pixelated smilies looks pretty lame.Is there some way to only resize images that is wider than 500 px?
Posted: 1 year ago # -
OK. I'll tried solve this problem.
Posted: 1 year ago # -
Done :)
Posted: 1 year ago # -
I have tried this and if the thumbs works, it breaks the rest of the forum images. if deactivated, the rest of the forum images work, but then no thumbs... :/
g
Posted: 1 year ago # -
The sense of your problem is not completely clearly for me. Can you give me the link to your forums or explain it more particularly.
Posted: 1 year ago # -
Thanks Alex... right now I have bbpress populated with an old db from phpbb3...
Without lightbox2 activated:
http://wattagetraining.com/screenshots/0f82fcb78b329252b069ecb31a3b4b96.png
with acativated:
http://wattagetraining.com/screenshots/58ae93b73d3e745100c7ca7bb65d6544.png
FWIW, when activated, instead of lightbox running, the full size jpg loads instead of the javascript.
Thanks for the troubleshooting help!
g
Posted: 1 year ago #
Add a Comment »
You must log in to post.