Greetings,
first of all thanks for this wonderful module and the hard work that went into it. Since I am no coder and hard to me to understand the documentation (altho it is well written) I'd like to request a few features that I need for my site.

1. Lightbox integration
I'd like to have a button that can integrate lightbox image links. If you head over to the lightbox documentation, you can see how it is done: http://drupal.org/node/144488
I guess it would suffice to add the "rel="lightbox" attribute to the image button in BUeditor. Is this possible?

2. image thumbnails
I wonder if it is possible to insert an image thumbnail that links to the original image by opening lightbox. Is it possible to add such a button? One that inserts the thumbnail via url request and then asks another url for the actual original sized image with the lightbox attribute already attached.

3. bbcode
I was able to add some ruementary bbcode buttons but it would be nice to have a popup asking for the url of an image or a textlink. Unfortunately I'm unable to do that either.

Any help would be greatly welcome :)

Thanks a lot in advance,
paddes

Comments

ufku’s picture

for the bbcode part, go to http://ufku.com/drupal/bueditor/contributions/bbcode
for the lightbox part, search bueditor and lightbox issue queues. there was an issue and a solution about it.

paddes’s picture

hello ufku,
thanks a lot for the bbcode buttons. Somehow I overlooked them before on your page. Really great support. *thumbs up*

Concerning bbcode and lightbox, I haven't looked for the solutions yet but I managed to get it done somehow. Here is what I've made:

1. in bbcode module add the following code into your "bbcode-filter.inc" file:

   // Lightbox
    '#\[lightbox=([\w:;&,~%+!=@\/\.\-\#\?]+)\]([\w:;&,~%+!=@\/\.\-\#\?]+)\[\/lightbox\]#si' => '<a href="\\1" rel="lightbox"><img src="\\2" /></a>',

2. in BUeditor, add the bbcode button as follows:

[lightbox=%TEXT%]thumbURL[/lightbox]

where %text% is the url of the original image and "thumbURL" the url of the thumbnail.

It may be a bit sloppy but it works like a charm :)

thanks again,
paddes

ufku’s picture

Status: Active » Closed (fixed)