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

fangweile

THis mod is perfectly working in my dilber mc theme. Did you manual install the mod or via package manager?

CrazyHorse80

#121
Quote from: concorde7 on June 26, 2008, 07:27:19 PM
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?

The same for me: I did all the editings in my SMF 1.1.5 custom theme, copied javascripts and images into my custom theme directories, but nothing at all, lightbox never shows up... Ah, it doesn't work in my default theme also...
Can you please help me get this up and working?
Bye,
PS

jayc7176

Many Many Thanks for this great Modd!!!!  Please please do a fancy box Style .....
I cannot teach anybody anything, I can only make them think -  Socrates™ 469 BC

SMF- 1.1.5

Heartlander

I tried to install, with absolutely nothing happening.
Manuscript is my theme.
Did the manual edits to index.template.php for this theme.
Still nothing.

I really need an alternative to the way photos are appearing now.

Any help is greatly appreciated!
http://www.heartlandoutdoorsman.com/smf/index.php/topic,21456.msg65412.html#msg65412

CrazyHorse80

Quote from: CrazyHorse80 on July 12, 2008, 04:04:45 PM
Quote from: concorde7 on June 26, 2008, 07:27:19 PM
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?

The same for me: I did all the editings in my SMF 1.1.5 custom theme, copied javascripts and images into my custom theme directories, but nothing at all, lightbox never shows up... Ah, it doesn't work in my default theme also...
Can you please help me get this up and working?
Bye,
PS


Can someone help me with this, please?
Bye,
PS

wjhdiz

Hi,

If you know how to do manual installation, use this:

http://custom.simplemachines.org/mods/index.php?mod=1019

Otherwise, I will get "crazy" too.
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.

AlenNS

Is it possible to make this mod open picture on first click with max height and width which admin will set up ( for example 700 x 700 px ) and on the other click to open original sized picture?

And how about putting some watermark on pictures like forum logo or just a simple text in some corner of picture?

CrazyHorse80

Quote from: wjhdiz on July 31, 2008, 03:32:20 PM
Hi,

If you know how to do manual installation, use this:

http://custom.simplemachines.org/mods/index.php?mod=1019

Otherwise, I will get "crazy" too.

So, do I have to downgrade from v1.6 to v1.4?
I know how to do manual installations, so that shouldn't be a problem for me...
Bye,
PS

CrazyHorse80

#128
Ehm... I did it and nothing appens... LightBox never shows up.

Here is where mod puts its edits:
foreach ($message['attachment'] as $attachment)
{
if ($attachment['is_image'])
{
if ($attachment['thumbnail']['has_thumb'])
echo '
<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 />';
else
echo '
<img src="' . $attachment['href'] . ';image" alt="" width="' . $attachment['width'] . '" height="' . $attachment['height'] . '" border="0" /><br />';
}
echo '
<a href="' . $attachment['href'] . '"><img src="' . $settings['images_url'] . '/icons/clip.gif" align="middle" alt="*" border="0" />&nbsp;' . $attachment['name'] . '</a> (', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['real_width'] . 'x' . $attachment['real_height'] . ' - ' . $txt['attach_viewed'] : ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)<br />';
}

echo '
</div>';
}


Do I have to mod the else part also? (Note that the default theme is the same and it doesn't work either)

Bye,
PS

fangweile


CrazyHorse80

#130
So, someone told me to downgrade to v1.4, and now you suggest some modification for the v1.6? I'm just installing and uninstallig those mods all the time...
Anyway I'll give it the last try... Thanks,
PS

It still doesn't work... What the hell, why is it so difficult to make work 2 lines of code??? I've installed many mods, but I've neved had so many trouble getting them work.

Paracelsus

One question about this MOD:

Installed it and it works absolutely fine, BUT when I edit someone else's post to include an image with IMG tags, the Lightbox effect doesn't work on that particular image on that particular post. Is it a bug or just me having this problem?

saneone

Will it ever support 2.0 beta 3.1 public?

I wish it would, cause it's one of the most promising mods...

dreadk

I am using SMF 1.1.5.

Odd issue, in Firefox it works perfectly fine.

In IE I get a "Failure to open (domain here) operation aborted" and the page will never load

Not sure why

AlenNS

Quote from: AlenNS on August 01, 2008, 11:19:10 AM
Is it possible to make this mod open picture on first click with max height and width which admin will set up ( for example 700 x 700 px ) and on the other click to open original sized picture?

And how about putting some watermark on pictures like forum logo or just a simple text in some corner of picture?
Bump!

Quote from: saneone on August 04, 2008, 05:44:04 AM
Will it ever support 2.0 beta 3.1 public?

I wish it would, cause it's one of the most promising mods...
It already does.
I'm using it on my 2.0 Beta 3.1 and it works fine.


saneone

Quote from: AlenNS on August 05, 2008, 11:43:20 AMIt already does.
I'm using it on my 2.0 Beta 3.1 and it works fine.

:o
It doesn't even install on Beta 3.1p... There is a message, that says something about version incompability...

AlenNS

It is compatible with SMF 2.0 Beta 3 and if you add it manually it is compatible with SMF 2.0 Beta 3.1 public also.

Feyd

I installed 'Integrate Lightbox 1.6' on SMF 1.1.5
I only had to edit my theme's index.template.php (I copied the lightbox code from default theme).
Worked fine.

AlenNS

Quote from: AlenNS on August 01, 2008, 11:19:10 AM
Is it possible to make this mod open picture on first click with max height and width which admin will set up ( for example 700 x 700 px ) and on the other click to open original sized picture?

And how about putting some watermark on pictures like forum logo or just a simple text in some corner of picture?
Bump!

saneone

Quote from: AlenNS on August 06, 2008, 07:49:00 AM
It is compatible with SMF 2.0 Beta 3 and if you add it manually it is compatible with SMF 2.0 Beta 3.1 public also.

ok, i've installed it manually, but i don't see a lightbox after clicking on a scaled image...
it opens in the original size in the parent window (which is still better than "stock" SMF solution)...

Advertisement: