News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Integrate Lightbox

Started by quake101, April 10, 2008, 11:03:44 PM

Previous topic - Next topic

quake101

Quote from: wjhdiz on June 01, 2008, 03:06:18 PM
Just tried to install the mod on SMF2 beta3.1, got the message:


Installations actions for "Integrate Lightbox":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


Will you update the version list?

Thank you very much.
Jimmy
* quake101 crawls out from under a rock

Woah, when did 3.1 get release? Yes, I will update the mod soon for 3.1 ;D

FragaCampos

Quote from: quake101 on June 02, 2008, 09:01:46 AM
Quote from: FragaCampos on June 01, 2008, 08:36:54 PM
Quote from: quake101 on June 01, 2008, 11:00:02 AM
Quote from: FragaCampos on June 01, 2008, 09:59:14 AM
I'm having some issues. For example, in this page it opens the images, including the link to IMDB (which wasn't supposed to open). And here, it opens none  ::)

First Page: It opens the links because of the img tags used. (by design)

Second Page: I believe the mod is not picking up the imageshack images (I'll look into this)

But the code in both pages is exactly the same... :( (i'm referring to posters and IMDB image)

Correct, but the images are not hosted from the same server. I may add a feature to the mod so users can add lightbox to any image by using bbcode. Ex: [lightbox][/lightbox] As the mod currently can not detect all images.

Ok, i thought it would be already implemented in the version ;)
I'll wait.

wjhdiz

Quote from: quake101 on June 02, 2008, 09:03:36 AM
* quake101 crawls out from under a rock

Woah, when did 3.1 get release? Yes, I will update the mod soon for 3.1 ;D

I hope that you will do the update soon.

Thanks.
Freedom of speech? It is freer if not speaking out.
Believing in God? Yes, talk with God every day through God creations.
Coding is poem and a way of keeping away from the troubled world.

xistense


smldmr

Hello, if i install the new version manually on my board, the lightbox is not functioning with every image on my site. For example tumbnails from photobucket have no rel="lightbox" tag. But many other images (not imageshack or photobucket) have rel tag. With version 1.5 is everything allright without the 8: Undefined index: host issue.

I replaced the old code from subs.php with the new code.

concorde7

patience & assistance on installing this please.

when i try to apply this mod i receive this error:    .\Themes\default/index.template.php

I have uploaded the lightbox files into my main dir. im not sure what exactly i need to do to get this to work even on just the core theme.

If you guys are the wrong ones to ask could you maybe point me in the right direction?

wjhdiz

The mod is still not working with SMF2.0 Beta3.1.

Quote from: wjhdiz on June 02, 2008, 01:05:29 PM
Quote from: quake101 on June 02, 2008, 09:03:36 AM
* quake101 crawls out from under a rock

Woah, when did 3.1 get release? Yes, I will update the mod soon for 3.1 ;D

I hope that you will do the update soon.

Thanks.

Freedom of speech? It is freer if not speaking out.
Believing in God? Yes, talk with God every day through God creations.
Coding is poem and a way of keeping away from the troubled world.

Coroner

Hello! I'm really having a time attempting to get this to work. I have installed similar lightbox mods on my phpbb2 and vBulletin boards but this one has me stumped.

I have made several attempts to manually edit the theme Helios Multi but no matter what, I keep getting the Template Parse Error. I have attached the index.template.php, display.template.php and a test file with the entire error message. The board is version 1.1.5 with just a few mods installed. Helios Multi is the default template.

Can someone please take a look and show me the correct edits so I can get this to work properly?

Thanks!

SgtMic

Quote from: concorde7 on June 08, 2008, 01:32:53 PM
patience & assistance on installing this please.

when i try to apply this mod i receive this error:    .\Themes\default/index.template.php

I have uploaded the lightbox files into my main dir. im not sure what exactly i need to do to get this to work even on just the core theme.

If you guys are the wrong ones to ask could you maybe point me in the right direction?

You should install mods using the Package Manager inside of SMF.
As with most mods, they only install to the core default theme.
In that file with the error, you will need to add in the code manually.
You may another mod installed that is conflicting with the auto installer.


How are we coming with the update for beta 3.1?
There is nothing more deadly than a US Marine and his rifle.
A close second is a US Marine and his K-BAR.
2/5 Fox Co.  (BlackHearts)
FAST Co. 5th Plt. (FIDO)

Coroner

Quote from: Coroner on June 10, 2008, 11:17:06 PM
Hello! I'm really having a time attempting to get this to work. I have installed similar lightbox mods on my phpbb2 and vBulletin boards but this one has me stumped.

I have made several attempts to manually edit the theme Helios Multi but no matter what, I keep getting the Template Parse Error. I have attached the index.template.php, display.template.php and a test file with the entire error message. The board is version 1.1.5 with just a few mods installed. Helios Multi is the default template.

Can someone please take a look and show me the correct edits so I can get this to work properly?

Thanks!

Could someone please take a look at this for me?

Eddy Matthews

Quote from: quake101 on May 06, 2008, 09:25:07 AM
For those who wish to enable lightbox with slide show.

Sources/Subs.php
Find:

$b[1] = str_replace($b[2], $b[2].'" rel="lightbox', $b[1]);


Replace:

$b[1] = str_replace($b[2], $b[2].'" rel="lightbox[smf]', $b[1]);


Themes/default/Display.template.php (remember to edit your theme if your not using the default theme)
Find:

<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" rel="lightbox"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><br />


Replace:

<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" rel="lightbox[smf]"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><br />


This should enable lightbox with slide show. Keep in mind after you edit these files you will be unable to uninstall the mod though the package manager unless you remove these edits before you try to uninstall. I personally would make backups. ;)

I hope to have this built into the next version and some extra admin options (enable/disable, slide show/no slide show). :)

These mods appear to be already done in v1.6, but the slideshow function still doesn't work for me.... Has anyone got this to work?

Also, is it possible to have the image displayed in a new window, rather than in the current window as it does by default?

Regards
Eddy

fangweile

Hello there,

I have installed manually this mod in my dilbermc theme and it seems like it doesn't work. It only convert my images to linked images and when I click it, i go to the image link location.

What is seem wrong? :rolleyes:

Ni©holąś™


fangweile

Hello there,

I made an edit to my index template.
I modified and replace the files to be added to this:
echo '<script type="text/javascript" src="', $settings['default_theme_url'], '/mootools1.11.js"></script>; <script type="text/javascript" src="', $settings['default_theme_url'], '/slimbox.js"></script>  <link rel="stylesheet" href="', $settings['default_theme_url'], '/slimbox.css" type="text/css" media="screen" />';

When I used the code above, the integrated lightbox is working perfectly, however I just want to ask what is the purpose of the code that I omitted:

if($context['current_action'] != 'stats' && $context['current_action'] != 'garage')


One more suggestion:

Is it possible to drag the picture and when you click it again, it will automatically close.

Any idea?  ???

wjhdiz

quake101,

Are you still there? When this update will be done for SMF2.0 Beta3.1?

Thanks.

Quote from: quake101 on June 02, 2008, 09:03:36 AM
Quote from: wjhdiz on June 01, 2008, 03:06:18 PM
Just tried to install the mod on SMF2 beta3.1, got the message:


Installations actions for "Integrate Lightbox":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


Will you update the version list?

Thank you very much.
Jimmy
* quake101 crawls out from under a rock

Woah, when did 3.1 get release? Yes, I will update the mod soon for 3.1 ;D
Freedom of speech? It is freer if not speaking out.
Believing in God? Yes, talk with God every day through God creations.
Coding is poem and a way of keeping away from the troubled world.

Eddy Matthews

Quote from: Eddy Matthews on June 24, 2008, 05:51:37 AM
Quote from: quake101 on May 06, 2008, 09:25:07 AM
For those who wish to enable lightbox with slide show.

Sources/Subs.php
Find:

$b[1] = str_replace($b[2], $b[2].'" rel="lightbox', $b[1]);


Replace:

$b[1] = str_replace($b[2], $b[2].'" rel="lightbox[smf]', $b[1]);


Themes/default/Display.template.php (remember to edit your theme if your not using the default theme)
Find:

<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" rel="lightbox"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><br />


Replace:

<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" rel="lightbox[smf]"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><br />


This should enable lightbox with slide show. Keep in mind after you edit these files you will be unable to uninstall the mod though the package manager unless you remove these edits before you try to uninstall. I personally would make backups. ;)

I hope to have this built into the next version and some extra admin options (enable/disable, slide show/no slide show). :)

These mods appear to be already done in v1.6, but the slideshow function still doesn't work for me.... Has anyone got this to work?

Also, is it possible to have the image displayed in a new window, rather than in the current window as it does by default?

Regards
Eddy

Bump! Can anyone help please?

Regards
Eddy

concorde7

I have installed teh version 1.6 but this mod does nothing in my default theme.

Am i supposed to install a previous version first?  i have made the edits manually but still nothing. is there something i am supposed to do to activate this?

fangweile

I think quake is really busy right now^_^
http://www.simplemachines.org/community/index.php?topic=233637.msg1557627#msg1557627

The slideshow doest work on me either.
I check my
Sources/Subs.php

the added code was already there.
I used the updated version 6 btw.

When I used this bbc code

[url=http://sitehere/index.php][img]http://sitehere.com/photos.jpg[/img][/url]

This image link wont open, a lightbox is open instead.

symon

I'm going to have to uninstall this as it's messing with the forum CSS.

It works fine (apart from linked images still go into lightbox mode) but if you turn off cookies the forum displays similar to having css disabled. Google previews and google site overlay don't work because of it.

Is uninstalling just a reversal of the install?

symon


Advertisement: