News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

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

Quote from: dimdom on October 23, 2008, 09:46:41 AM
QuoteNice, you use JW player hu! :).
Me too - any ideas?

Yes...

your mod should be able to install JWplayer in a folder in root directory...

...and use the BBC code function to...

...upload the video in a specified folder and...

... correspond each uploaded video to the player...
We are already thinking of incorporating a flash player, but we dropped the idea of JW player atleast.

Quote from: kiakanpa on October 23, 2008, 09:45:05 AM
QuoteTry this
Unpack the whole package, open db_mgallery.php and remove the code from line 383-396

Just to be a pain - i dont suppose you could paste me line 383 could you? i am at work and only have notepad (no line numbers). If not i'll try it at home - cheers for the quick responce.
It is $request = db_query("
SHOW TABLES
FROM $db_name"
,__FILE__,__LINE__);
$tables = array();
while ($row = mysql_fetch_row($request))
if(substr($db_prefix,0,strlen($db_name) + 3) != '`'.$db_name.'`' . '.')
$tables[] = $row[0];
else
$tables[] = '`'.$db_name . '`.'.$row[0];

mysql_free_result($request);

Phyella

Hello there, i'm helping someone out with their site and I've just installed SMF etc etc, I've dl'd the latest version of your gallery and attempted to install it, passes all the tests but fails during install with the following:

Database Error
Table 'smf.smf_mgallery_settings' doesn't exist
File: G:\Programs\Apache Software Foundation\Apache2.2\htdocs\smf\Packages\temp\db_mgallery.php
Line: 320 

I'm using Apache 2.2.10 , PHP 5.2.6 and MySQL 5.0.67 (community edition) and WinXP (its just a test system)

Thanks in advance
Chris

Dragooon

It seems like the db table creation failed, does the mysql user has the ability to create tables.

Phyella

Yup, it does, just double checked there.
Can't figure it out...
Its created the smf_mgallery_log_media & smf_mgallery_log_ratings tables

Phyella


Claudius

Thanks a million Dragoon, removing the code from lines 383-396 solved my MYSQL problem and I was able to (finally) install SMF Media Gallery.  :) :) :)


Dragooon


kiakanpa

Quote
Quote from: kiakanpa on October 23, 2008, 09:45:05 AM
QuoteTry this
Unpack the whole package, open db_mgallery.php and remove the code from line 383-396

Just to be a pain - i dont suppose you could paste me line 383 could you? i am at work and only have notepad (no line numbers). If not i'll try it at home - cheers for the quick responce.
It is $request = db_query("
SHOW TABLES
FROM $db_name"
,__FILE__,__LINE__);
$tables = array();
while ($row = mysql_fetch_row($request))
if(substr($db_prefix,0,strlen($db_name) + 3) != '`'.$db_name.'`' . '.')
$tables[] = $row[0];
else
$tables[] = '`'.$db_name . '`.'.$row[0];

mysql_free_result($request);


Worked perfectly - thanks a lot - fantastic.

Dragooon


genieuk

Can i choose for members not to be able to upload video and audio?

I just want them to upload pictures only and have size restrictions on pictures?

I am using SMF gallery and will move to this if i can allow just picture upload only including limiting file size of pictures and picture size.

I will have to read through the pages to make sure converting is worth doing, i worry pictures etc may get lost when converting or my forum get messed up.

Seems a great mod by the way  :D

Mathew

Nao 尚

Quote from: genieuk on October 24, 2008, 06:51:52 PM
Can i choose for members not to be able to upload video and audio?
I don't think you can (for now).

QuoteI just want them to upload pictures only and have size restrictions on pictures?
You can set restrictions. You can also force the script to refuse any pictures bigger/heavier/larger than the maximum size (instead of having it attempt to resize it to the max).
Set a low filesize limit (512 to 768 KB is okay...) and people will be less likely to attempt uploading videos or MP3s...

QuoteI am using SMF gallery and will move to this if i can allow just picture upload only including limiting file size of pictures and picture size.
You can tweak the script manually to reduce the number of possible extensions... (This is something I should be adding to our to-do-list...)

BTW, I don't know about Dragooon, but our goal is not to have everyone move to SMG. We will happily live together will all other gallery scripts. Our only goal is to have a gallery script that will fit exactly our needs. And we have a lot of needs... Especially me... I'm quite a diva when it comes to number of features :D Just have a look at everything I added (I've only been there for a month). And Dragooon did a lot of excellent work too.
We'll probably need to rest for a few days though, before we start working seriously on the mod again. I've been completely exhausted by very long workdays. Actually my gallery is not even available yet on my website...! (It's a private gallery there.)

QuoteI will have to read through the pages to make sure converting is worth doing, i worry pictures etc may get lost when converting or my forum get messed up.
I know that the Coppermine converter doesn't lose anything (we both worked on it -- I had a 400-picture gallery I needed to import). SGL, I don't know. I'm sure it's the same quality level.

QuoteSeems a great mod by the way  :D
Well I'm quite happy with the work we've done indeed. And it's not over yet :)
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Dragooon

Quote from: genieuk on October 24, 2008, 06:51:52 PM
Can i choose for members not to be able to upload video and audio?

I just want them to upload pictures only and have size restrictions on pictures?

I am using SMF gallery and will move to this if i can allow just picture upload only including limiting file size of pictures and picture size.

I will have to read through the pages to make sure converting is worth doing, i worry pictures etc may get lost when converting or my forum get messed up.

Seems a great mod by the way  :D

Mathew
There's a permission for each of the above, audio, video and pictures, so yes.

The converter, well its not currently updated for SMG 1.5, but it converts everything for SGL 1.9/2.0. I am looking to update and improve it today or tomorrow.

Dragooon

I have also uploaded a coppermine converter!

jdvarner

i uninstalled and loaded the beta and ended up with a crashed site and error:

Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' in /home/content/j/d/w/jdworld/html/Sources/Subs-MGallery.php on line 3654

Dragooon

@jdvarner, for now find
function getTags($taglist)
{
preg_match_all('/[^,]*\"(.*?)\"\s*?|\s*([^,]+)\s*/', str_replace('"', '"', $taglist), $tags);
foreach ($tags[0] as $k => &$t)
$t = trim($t, '" ');
return $tags[0];
}

Replace it with
function getTags($taglist)
{
return $taglist;
}

jdvarner

nah, i went back and reloaded backup to the older version. trying not to manipulate files. it screws with all the other mods and packages.

thanks.

Dragooon

What other mod packages it screws? The only confliction I know in beta 1 is for AEVAC mod. And that issue is only with PHP 4.x, It is fine with PHP 5.x

Sudhakar Arjunan

Congrates for version 1.5 beta.

Hope converters are used mostly.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Dragooon

Thank you :). The SGL converter will need an update, I'll do it later today.

Advertisement: