News:

Join the Facebook Fan Page.

Main Menu

jQLightbox

Started by slinouille, January 29, 2009, 01:15:28 AM

Previous topic - Next topic

General_Naga

How would I go about removing the quick edit option? - It messes up Lightbox for me.

slinouille

Quote from: General_Naga on April 21, 2009, 04:50:31 PM
How would I go about removing the quick edit option? - It messes up Lightbox for me.
I think it is in your Profil, in "Look and Layout" ... there should be an option for enabling it or not.
You say that it generates errors on jqlightbox ... I'll check that ;)

SliN
Visit VAG-Technique.fr
Take a look to my mods

General_Naga

Its not a major problem - just after editing a post using quick edit you have to refresh the page to get lightbox to work again.

General_Naga

I'm getting a major problem with some Internet Explorer users when using this mod. Is there a fix?

baijianpeng

Quote from: slinouille on April 20, 2009, 10:10:28 AM
No it's not working with hostlinked images ... one day ;)

Today I tested v0.5.1 of this Mod on my SMF2 v2.0 RC1.2 and it still can't work with hotlinked images.

Will you improve this Mod and add this feature?

Thanks.
JoomlaGate: The way to the World of Joomla!

http://www.joomlagate.com

alblove

Without hotlinked images feature, the mod is useless because all users posts images hosted on external sites.

Pentaxian

Slinouille hasn't been active since June 25, 2009! Don't hold your breath.

Bika

I don't know if many people are still using this mod or not but i've managed to make a small modification to it whilst making it compatible with 1.1.x as well as its 2.0.

Simply added the ability to the mod to Lightbox all images on your forum without them having to be attachments while keeping the attachment working with the Lightbox.

The same translations as before are included.
English/French/Portuguese/Swedish.

Install/Uninstall Via Admin Panel.
Attached both versions.

Note: I didn't personally test the SMF 2 version but it should work.

Right now i am working on editing the CSS of it to make it look a bit better( i liked the mootools lightbox more ).

Sakae

Well.

Doesn't works with hotlinked images?
http://www.tigrelog.com.br
l: simple p: machines

art.4

#49
I've manged to do some test and i have a working lightbox with images hotlinked from the same domain. It request a url code to work eg.

[url=http://domain.com/img1][img]http://domain.com/img1[/img][/url]

will work, but

[img]http://domain.com/img1[/img]

won't

There's a problem with url's that go to pages, but working on it.


modification:

Find

array(
'tag' => 'url',
'type' => 'unparsed_equals',
'before' => '<a href="$1" class="bbc_link new_win" target="_blank" >',
'after' => '</a>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$data = \'http://\' . $data;


replace with

array(
'tag' => 'url',
'type' => 'unparsed_equals',
'before' => '<a href="$1" class="bbc_link new_win" target="_blank" rel="lightbox[gallery]" alt="" >',
'after' => '</a>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$data = \'http://\' . $data;



Bugo

Changing of the errors in the latest version of this modification.

package-info.xml, find:
<remove-dir name="prettyPhoto" destination="$imagesdir" />
Replace with:
<remove-dir name="$imagesdir/prettyPhoto" />

install.xml,find:
if ( isset($modSettings['jqlightbox_theme']) && !empty($modSettings['jqlightbox_theme']) ){
if ( $modSettings['jqlightbox_theme'] == 0 ) $jqlightbox_theme = 'light_rounded';
else if ( $modSettings['jqlightbox_theme'] == 1 ) $jqlightbox_theme = 'dark_rounded';
else if ( $modSettings['jqlightbox_theme'] == 2 ) $jqlightbox_theme = 'dark_square';
} else $jqlightbox_theme = 'light_rounded';

Replace with:
if ( isset($modSettings['jqlightbox_theme']) && !empty($modSettings['jqlightbox_theme']) ){
if ( $modSettings['jqlightbox_theme'] == 0 ) $jqlightbox_theme = 'light_rounded';
else if ( $modSettings['jqlightbox_theme'] == 1 ) $jqlightbox_theme = 'dark_rounded';
else if ( $modSettings['jqlightbox_theme'] == 2 ) $jqlightbox_theme = 'dark_square';
else $jqlightbox_theme = 'light_square';
} else $jqlightbox_theme = 'light_rounded';


Find:
array($txt['jqlightbox_light_rounded'],$txt['jqlightbox_dark_rounded'],$txt['jqlightbox_dark_square'])
Replace with:
array($txt['jqlightbox_light_rounded'],$txt['jqlightbox_dark_rounded'],$txt['jqlightbox_dark_square'],$txt['jqlightbox_light_square'])

parvaz

I've tried this pretty mod on my forum months ago. But since it didn't work with the externally hosted images i abandoned it.
Today i saw an update of the mod on the mod site.
Does the new release of the mod ( jQLightbox.0.6.zip ) now support that feature?


madvex

#52
I'm running SMF 2.0.5 and wanted this puppy.

Unfortunately, it required manual update to the theme Display template, which is easy enough and detailed in the mod page itself.  But, be aware, you may need to update Display.template.php manually for your theme.  As I said, I'm running SMF 2.0.5 and Blu 2.0 (based on Curve) theme.

The next issue I found was with the jquery prettyphoto image libraries, which the package installer did not install properly.  Deleting the folders the installer created and uploading them manually via FTP fixed that. The main folder is "/Themes/default/images/prettyPhoto/  - just replace this folder and its contents via FTP and you should be good.

Once this was in place, I found the prettyphoto CSS was buggy and the gallery display in the lighbox was a mess, not picking up thumbnails correctly and basically not usable.  I tracked that issue down to a few lines in the CSS and commented them out. I actually re-wrote the entire CSS file because it was just horribly formatted and unreadable - let alone editable.  This file is located in "/Themes/default/css" - simply replace it with the one I have attached.

Since this mod is a really nice addition to any board where attachments are in play and it does not seem to be updated any longer, I thought I'd give back to the community by providing this post and the updated CSS file I created (attached).

Enjoy.

Advertisement: