Dear FireBoard users,
In order to further develope the need of Joomla for a robust forum, FireBoard component has been moved to its own new home and new name. You can find more information regarding the Kunena, the successor of FireBoard, at kunena.com. The current forum here will stay for some time more for referencing needs. You can find the FireBoard files under joomlacode.org and other files
Upgrading to Kunena is highly recommended!

Kunena! - To Speak!

A revolution is coming... Kunena - Swahili for: To Speak! THE Next generation of native Joomla based Forum ultra component. Forget what you know about Joomla based forums...
Amazingly Simple Lean and Clean Easier Customization
Kunena is about to redefine the world of Joomla! with the most simplistic ultra component out there. For ultimate performance based on state of the art development techniques, Kunena! is about to bring you... With an integrated plugin system that will allow you to extend Kunena beyond your wildest imaginations...
TOPIC: Lightbox2 Integration
#14404
Lightbox2 Integration 10 Years, 4 Months ago  
With lots of photos posted on my site I needed a way to do simple slideshows.

Here is a simple way to integrate the common lighbox (or lightbox2 or slimbox) functionality with Fireboard. The following hack assumes that you have lightbox2 (or similar) already installed in your headers. Follow the lightbox2 installation guide to to that.

You need to edit the file: /com_fireboard/template/default/smile.class.php

And change
[code:1]
$fb_message_txt = preg_replace(\"/\\[img size=([0-9][0-9][0-9])\\](.*?)\\[\\/img\\]/si\", \"\", $fb_message_txt);
$fb_message_txt = preg_replace(\"/\\[img size=([0-9][0-9])\\](.*?)\\[\\/img\\]/si\", \"\", $fb_message_txt);
$fb_message_txt = preg_replace(\"/\\[img\\](.*?)\\[\\/img\\]/si\", \"\", $fb_message_txt);
[/code:1]

to
[code:1]
$fb_message_txt = preg_replace(\"/\\[img size=([0-9][0-9][0-9])\\](.*?)\\[\\/img\\]/si\", \"\", $fb_message_txt);
$fb_message_txt = preg_replace(\"/\\[img size=([0-9][0-9])\\](.*?)\\[\\/img\\]/si\", \"\", $fb_message_txt);
$fb_message_txt = preg_replace(\"/\\[img\\](.*?)\\[\\/img\\]/si\", \"\", $fb_message_txt);
[/code:1]

Works like a charm! Still need to find a way to get a proper title/caption to every photo.

Check it out in action:
[url]http://starvmax.com/index.php?option=com_fireboard&Itemid=27&func=view&id=569&catid=32[/url]

Click on any photo to start the lightbox
#14404
Lightbox2 Integration 10 Years, 4 Months ago  
With lots of photos posted on my site I needed a way to do simple slideshows.

Here is a simple way to integrate the common lighbox (or lightbox2 or slimbox) functionality with Fireboard. The following hack assumes that you have lightbox2 (or similar) already installed in your headers. Follow the lightbox2 installation guide to to that.

You need to edit the file: /com_fireboard/template/default/smile.class.php

And change
[code:1]
$fb_message_txt = preg_replace(\"/\\[img size=([0-9][0-9][0-9])\\](.*?)\\[\\/img\\]/si\", \"\", $fb_message_txt);
$fb_message_txt = preg_replace(\"/\\[img size=([0-9][0-9])\\](.*?)\\[\\/img\\]/si\", \"\", $fb_message_txt);
$fb_message_txt = preg_replace(\"/\\[img\\](.*?)\\[\\/img\\]/si\", \"\", $fb_message_txt);
[/code:1]

to
[code:1]
$fb_message_txt = preg_replace(\"/\\[img size=([0-9][0-9][0-9])\\](.*?)\\[\\/img\\]/si\", \"\", $fb_message_txt);
$fb_message_txt = preg_replace(\"/\\[img size=([0-9][0-9])\\](.*?)\\[\\/img\\]/si\", \"\", $fb_message_txt);
$fb_message_txt = preg_replace(\"/\\[img\\](.*?)\\[\\/img\\]/si\", \"\", $fb_message_txt);
[/code:1]

Works like a charm! Still need to find a way to get a proper title/caption to every photo.

Check it out in action:
[url]http://starvmax.com/index.php?option=com_fireboard&Itemid=27&func=view&id=569&catid=32[/url]

Click on any photo to start the lightbox
#14405
Re:Lightbox2 Integration 10 Years, 4 Months ago  
Well - turns out all the interesting code gets stripped out by the forum :(

Send me a PM if you want the code sniplet. I can\'t post the code as it contains HTML tags that are getting removed by the forum - as they should.
#14710
Re:Lightbox2 Integration 10 Years, 4 Months ago  
Could you attach the file with your post!

Thanks
#14727
Re:Lightbox2 Integration 10 Years, 4 Months ago  
Here we go. The modified section of the code is between

//
// fxstein
//

and

//
// /fxstein
//

Should be easy to spot. [file name=smile-081235e87040276fa141e0238c9f04b2.zip size=12056]http://www.bestofjoomla.com/components/com_fireboard/uploaded/files/smile-081235e87040276fa141e0238c9f04b2.zip[/file]
#14779
Re:Lightbox2 Integration 10 Years, 4 Months ago  
Many thanks to fxstein.

You modify is great one compared to other forum types.
But there is different in header.html file, the code look strange!

Could you give us one more chance with your modify in header of FB?

I\'ve found Lightbox at http://www.huddletogether.com/projects/lightbox2/ . I can use this one.

Thanks in advance!

P/S: I try to modyfy fireboard.php, It\'s OK, but your modify is better.
Look demo: http://luyenkim.net/home9/index.php?option=com_fireboard&func=view&id=90&catid=34#90
#14780
Re:Lightbox2 Integration 10 Years, 4 Months ago  
You are welcome! Looks like you got it to work. Yes its the lightbox2 link you fond. Just follow the instructions on how to enable lightbox2 and you are all set.
#14782
Re:Lightbox2 Integration 10 Years, 4 Months ago  
There\'s still problem. it seems not work in IE version 6.0.2900.2180.xxxx.
I also check your site:
http://starvmax.com/index.php?option=com_fireboard&Itemid=27&func=view&id=569&catid=32
Can not view in IE. :angry: . I mean the slideshow does not work.

Firefox is best for all application of Joomla.B)
#14790
Re:Lightbox2 Integration 10 Years, 4 Months ago  
hey guys,

just one note, better to use thickbox as fb is based on jquery.

cheers
#14820
Re:Lightbox2 Integration 10 Years, 4 Months ago  
[b]danialt wrote:[/b]
[quote]hey guys,

just one note, better to use thickbox as fb is based on jquery.

cheers[/quote]

It sounds good!
Could you give us a clue for this!

I also use thickbox (for RSS application) in Joomla, but there is conflict with other Joomla script. So I remove all.

I hope It work well in FB.

Thanks.
#14834
Re:Lightbox2 Integration 10 Years, 4 Months ago  
[b]danialt wrote:[/b]
[quote]hey guys,

just one note, better to use thickbox as fb is based on jquery.

cheers[/quote]

Have not tried thickbox. I used to run slimbox but as I went to ClexusPM it stopped working.
Lightbox2 has been working fine for me so far. What\'s the issue with jquery?

Anyway the same hack will basically work for almost all *box implementations with slight modifications...
Page: 123... 7