• Welcome to Simple Machines Community Forum. Please login or sign up.

SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)

Started by SMGTeam, September 09, 2008, 03:14:05 PM

Previous topic - Next topic

Dragooon

OK I have fixed this in revision 71(Which'll be SMF Media gallery 1.0.1 later).
To fix this on your installation
Open MGallery.php
Find
$media = new mgal_media_handler;
$media->init($path);

$stats = $media->getStat();
$mime = $media->getMimeType();
$file_name = $filename;

$media->close();
// Send it
header('Pragma: ');
if (!$context['browser']['is_gecko'])
header('Content-Transfer-Encoding: binary');
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 525600 * 60) . ' GMT');
header('Accept-Ranges: bytes');
//header('Connection: close');
//header('Cache-Control: ');
if($file = fopen($path, 'rb')) {
header('Content-type:'.$mime);
header('Content-Length: '.$stats[7]);
header('Content-Disposition: inline; filename='.$file_name);
while(!feof($file))
echo fread($file, 8192);
fclose($file);
} else {
die('Something went wrong...');
}

(It'll  be at the end)
And replace it with
$media = new mgal_media_handler;
$media->init($path);
$mime = $media->getMimeType();
$file_name = $filename;
$media->close();
// Send it
header('Pragma: ');
if (!$context['browser']['is_gecko'])
header('Content-Transfer-Encoding: binary');
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 525600 * 60) . ' GMT');
header('Accept-Ranges: bytes');
//header('Connection: close');
//header('Cache-Control: ');
if($file = file_get_contents($path)) {
header('Content-Type: '.$mime);
header('Content-Disposition: inline; filename='.$file_name);
echo $file;
} else {
die('Something went wrong...');
}

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Garry1953

Dragooon

Will you be adding the ability to read IPTC info from the image?

P.S. Great Mod. ;)

kith

Just installed this on SMF 2 Beta 4
Also have the thumbnail issue but will try the fix above.

If I add an icon when I create an album all is fine.
If I go to change an icon after the album is created I get an error

The database value you're trying to insert does not exist: id_album

Any idea why?



4b11l

I have SMF Gallery (free version) at the moment. Can I install this one and run them side by side?

CG Icon

Is there a way for a members submissions to a gallery also appear in his / her profile ?

Idea for the future:
In profile, not only show thumbnails of a users gallery,, but also images from his / her fellow group members galleries as a "members Network" or as an extension to the Buddy List.

Dragooon

Quote from: Garry1953 on September 10, 2008, 06:30:06 PM
Dragooon

Will you be adding the ability to read IPTC info from the image?

P.S. Great Mod. ;)
I'll see. Thanks :)

Quote from: 4b11l on September 10, 2008, 10:19:36 PM
I have SMF Gallery (free version) at the moment. Can I install this one and run them side by side?
Yes you can, there shouldn't be any conflictions but the images of SMF Gallery lite won't work in this gallery(I'll soon be making a converter).

Quote from: CG Icon on September 10, 2008, 10:59:03 PM
Is there a way for a members submissions to a gallery also appear in his / her profile ?
I think I can make that as an addon.

Özgür

i'm trying added metacafe video but submit click. get this error
"The embed URL was either bad or was from a non-supported site"

any site and this error. google video does working.
So Long

Dragooon

What is the URL you were trying to add?

Sakae

September 11, 2008, 12:21:34 PM #30 Last Edit: September 11, 2008, 12:43:01 PM by softcore
Hi. Installed this awesome mod and got it working (see it here).

But I can't MOVE any album (re-organize as first, second etc). I click on "Move" and it gets bold, but I don't where to click then. How should I do it?

edit: NEVERMIND... I upload the images/ folder to my theme and got it working :)
http://www.tigrelog.com.br
l: simple p: machines

Dragooon

When you click move, There should be links appearing as images(Up, Down and child of) besides every other album.(Sort of like you move SMF's Boards).

Marcus Forsberg

Nice mod!

Right now I'm using SMF Gallery.
My users has posted a lot of pictures to the gallery.
If I install this mod, would it be possible to make the old pictures display in this gallery?
or will my users have to uplaod them agian? (hundreds of pictures)

Dragooon

Currently no but I'll soon be working on a converter which'll convert SMF Gallery to SMF Media gallery.

Marcus Forsberg

Okey :D
I'll ceep my eyes open


Dragooon

Reported in bugtracker, I'll look at it soon.

4b11l

September 11, 2008, 01:35:35 PM #37 Last Edit: September 11, 2008, 01:38:59 PM by 4b11l
Currently,

The width limit in settings is not working properly. I've set it to 900, but no avail. It seems to have shown the image full sizes.
In regards to that last sentence, it seems the lightbox isn't working correctly either. I am assuming you are suppose to see the thumbnail, and once you click, it will show the full size. It seems to be showing the images full size.

Additionally, I have this huge gray box/area above the galleries in the main page (mgallery). Is it suppose to be there?

Dragooon

The width limit is the maximum width a uploading image can have if it is detectable.
What browser do you use?
And when you click a thumbnail while viewing an album, it should lead you to the item.
Do you have a SS of the huge grey area?

4b11l

So, certain images aren't detectable then?
I am using Firefox.
On the thumbnail, is it suppose to be of the picture? Or just a little camera. Because that's all I have.
The SS, no, but you can view it here:
http://9glancers.com/index.php?action=mgallery

Advertisement: