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

Nao 尚

Okay, I did it... (on my own :P)
I wrote a function to emulate mkdir() in Safe Mode.
It works. The only thing that's left is to enable the user to set the FTP account information.
I'd like your opinion on this, too -- should this be in a file similar to Settings.php? (That would be nice -- I wouldn't have to write text for the admin area, and descriptions in both English and French :P)
Or in the database? Remember that the FTP account data is stored forever -- it's not something you provide once in a while: FTP while be used every time a new album (or folder) is created. So it needs to be secure. I can't think of a way to hack one's way into retrieving the FTP data, but still, I don't want to take it lightly.
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.

TeaTephi

Quote from: Dragooon on December 16, 2008, 01:37:16 AM
Your server limits your upload to 2M(upload_max_filesize), so you cannot upload files more than that.

You were right, it was godaddy.  By default a file called php.ini reads like this:

memory_limit = 50M
post_max_size = 8M
file_uploads = On
upload_max_filesize = 192M

I changed it to this:

memory_limit = 100M
post_max_size = 100M
file_uploads = On
upload_max_filesize = 192M

That is ALL that is in that file!  If anyone has godaddy they can add a php file to their ROOT directory with these four lines and then you can upload whatever you want.

Hope this helps!
SMF 2.0.2 | TinyPortal 1.107 Veterans day theme Opera 11.50
Mods:Profile Comments.....AEVA Media 2.10.....Activity in profile.....join-reason....Bookmarks 2.3.....SA Chat    Beta 4-1 Rev43....Tapatalk SMF 2.0 RC4/RC5/Final Plugin    3.0.1.....SMFPacks Likes Lite Mod

Thank you guys for all your support and development that you do.  I love my forum, and am so thankful to have a place to ask my questions.  I do love SMF 2.0 it's smoother and all my members love it!

fiveflat

Anyway to support watermarking images that get uploaded?

ethankcvds

Database Error: Can't create/write to file '/dev/shm/#sql_7591_0.MYI' (Errcode: 2)


SELECT
m.id_media, m.id_member, m.title, m.views, m.time_added, m.type, m.num_comments, m.voters, m.weighted AS rating, m.embed_url,
IFNULL(lm.time, IFNULL(lm_all.time, 0)) < m.log_last_access_time AS is_new, IFNULL(mem.real_name, m.member_name) AS member_name,
f.id_file, f.width, f.height, f.filename, f.directory, m.approved, m.description, a.id_album, a.name
FROM smf_mgallery_media AS m
INNER JOIN smf_mgallery_albums AS a ON (a.id_album = m.album_id)
LEFT JOIN smf_mgallery_files AS f ON (f.id_file = m.id_thumb)
LEFT JOIN smf_mgallery_log_media AS lm ON (lm.id_media = m.id_media AND lm.id_member = 1)
LEFT JOIN smf_mgallery_log_media AS lm_all ON (lm_all.id_media = 0 AND lm_all.id_member = 1)
LEFT JOIN smf_members AS mem ON (mem.id_member = m.id_member)
WHERE 1=1
ORDER BY RAND()
LIMIT 6

I just started to get this error on December 16th. It's saying there's a problem with Subs-MGallery.php  Just tell me what needs fixed.
No Pm's for support please!

Dragooon

Quote from: ethankcvds on December 16, 2008, 11:26:51 PM
Database Error: Can't create/write to file '/dev/shm/#sql_7591_0.MYI' (Errcode: 2)


SELECT
m.id_media, m.id_member, m.title, m.views, m.time_added, m.type, m.num_comments, m.voters, m.weighted AS rating, m.embed_url,
IFNULL(lm.time, IFNULL(lm_all.time, 0)) < m.log_last_access_time AS is_new, IFNULL(mem.real_name, m.member_name) AS member_name,
f.id_file, f.width, f.height, f.filename, f.directory, m.approved, m.description, a.id_album, a.name
FROM smf_mgallery_media AS m
INNER JOIN smf_mgallery_albums AS a ON (a.id_album = m.album_id)
LEFT JOIN smf_mgallery_files AS f ON (f.id_file = m.id_thumb)
LEFT JOIN smf_mgallery_log_media AS lm ON (lm.id_media = m.id_media AND lm.id_member = 1)
LEFT JOIN smf_mgallery_log_media AS lm_all ON (lm_all.id_media = 0 AND lm_all.id_member = 1)
LEFT JOIN smf_members AS mem ON (mem.id_member = m.id_member)
WHERE 1=1
ORDER BY RAND()
LIMIT 6

I just started to get this error on December 16th. It's saying there's a problem with Subs-MGallery.php  Just tell me what needs fixed.
Thats more of a problem on your MySQL installation. Ask your host.

Nao 尚

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.

Nao 尚

Quote from: vulcan59 on November 26, 2008, 04:31:08 PM
Quote from: NaoAbsolutely. (I see no reason for installing manually in the first place, anyway...?)

Well you'll remember that my server was running in safe.mode and thus I couldn't install via packages but manually. So I'll have to wait for the manual instructions to come out rather than do a manual uninstall and mess things up!!!!

Thanks Nao.
Just a quick note about this older message...

Having myself had the pleasure opportunity of working with a safe mode server yesterday, I can only say that: installing packages automatically with safe mode IS definitely possible...

- For packages that do not copy folders: nothing to do.
- For packages that copy folders (such as SMG): SMF will ask you for some FTP account details. Just enter them. It will copy the folders via FTP and it'll work just fine.
I'm using this solution for SMG when it comes to creating subfolders for new albums. According to my tests, it's working flawlessly. :)

Oh, please everyone! When you update a mod, PLEASE, please uninstall the previous version before! It's quite funny but it gets on your nerves in the end, whenever you get to see that a previously installed mod is copied ten times and slows down your board as a result...
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.

ethankcvds

Quote from: Dragooon on December 17, 2008, 03:53:07 AM
Quote from: ethankcvds on December 16, 2008, 11:26:51 PM
Database Error: Can't create/write to file '/dev/shm/#sql_7591_0.MYI' (Errcode: 2)


SELECT
m.id_media, m.id_member, m.title, m.views, m.time_added, m.type, m.num_comments, m.voters, m.weighted AS rating, m.embed_url,
IFNULL(lm.time, IFNULL(lm_all.time, 0)) < m.log_last_access_time AS is_new, IFNULL(mem.real_name, m.member_name) AS member_name,
f.id_file, f.width, f.height, f.filename, f.directory, m.approved, m.description, a.id_album, a.name
FROM smf_mgallery_media AS m
INNER JOIN smf_mgallery_albums AS a ON (a.id_album = m.album_id)
LEFT JOIN smf_mgallery_files AS f ON (f.id_file = m.id_thumb)
LEFT JOIN smf_mgallery_log_media AS lm ON (lm.id_media = m.id_media AND lm.id_member = 1)
LEFT JOIN smf_mgallery_log_media AS lm_all ON (lm_all.id_media = 0 AND lm_all.id_member = 1)
LEFT JOIN smf_members AS mem ON (mem.id_member = m.id_member)
WHERE 1=1
ORDER BY RAND()
LIMIT 6

I just started to get this error on December 16th. It's saying there's a problem with Subs-MGallery.php  Just tell me what needs fixed.
Thats more of a problem on your MySQL installation. Ask your host.

The host fixed the MySQL problem without blaming SMF.
No Pm's for support please!

alex30

#1388
Hi all!

Guest deleted all pictures from our gallery, IS IT HACK?

What should I do in this case. 1.1.7 ? I backed up my sql, is it possible to restore all pictures?

Thanks in advance


QuoteBy :
Time : Today at 04:46:27 pm
On : Brooke & Tom
Action type : Deleted item
   By :
Time : Today at 04:33:03 pm
On : Tasha & Matt & Buddy
Action type : Deleted item
   By :
Time : October 13, 2008, 05:59:47 pm
On : Old School
Action type : Deleted item

vulcan59

Quote from: NaoJust a quick note about this older message...

Having myself had the pleasure opportunity of working with a safe mode server yesterday, I can only say that: installing packages automatically with safe mode IS definitely possible...

- For packages that do not copy folders: nothing to do.
- For packages that copy folders (such as SMG): SMF will ask you for some FTP account details. Just enter them. It will copy the folders via FTP and it'll work just fine.
I'm using this solution for SMG when it comes to creating subfolders for new albums. According to my tests, it's working flawlessly. :)

Oh, please everyone! When you update a mod, PLEASE, please uninstall the previous version before! It's quite funny but it gets on your nerves in the end, whenever you get to see that a previously installed mod is copied ten times and slows down your board as a result...

Thanks Nao for the update. I still have not uninstall the previous installation. I had it installed on a friends website and he has yet to get back to me about upgrading to the newer version. I still haven't had a chance to check out the crossdomain.xml as well. I had problems trying to mass upload files previously and I am anxious to see if the crossdomain.xml solves the problem.

As soon as I am given the go-ahead to upgrade, I'll do so and post any problems that I encounter. In the meantime, I have been keenly following all the discussions here.

Regards.

alex30

Guys really need help here.

Quote from: alex30 on December 17, 2008, 07:39:23 PM
Hi all!

Guest deleted all pictures from our gallery, IS IT HACK?

What should I do in this case. 1.1.7 ? I backed up my sql, is it possible to restore all pictures?

Thanks in advance


QuoteBy :
Time : Today at 04:46:27 pm
On : Brooke & Tom
Action type : Deleted item
   By :
Time : Today at 04:33:03 pm
On : Tasha & Matt & Buddy
Action type : Deleted item
   By :
Time : October 13, 2008, 05:59:47 pm
On : Old School
Action type : Deleted item

mforum

Are you sure you didn`t gave moderation permission to guests ?
Check this out, just in case .....

holeski

I'm stuck and can't upload any photos or restore other members albums, Any clue as to how I may be able to do this?

Quote from: holeski on December 14, 2008, 04:09:04 PM
I have the gallery installed and working. Looks good.

Does anyone know if there a way to give the Admin access to all the albums including others user albums? I had to save all our forums old photos and now need to set up our members albums. The Admin need to be able to add user albums for other members and photos to those albums. What we had hoped to do is have a general album that any paying member could add their user album to. This giving one album to look in for all club members albums.

Also the icons for albums are being intermediately generated and when I go back to add one they never show up.

Dragooon

Quote from: alex30 on December 17, 2008, 07:39:23 PM
Hi all!

Guest deleted all pictures from our gallery, IS IT HACK?

What should I do in this case. 1.1.7 ? I backed up my sql, is it possible to restore all pictures?

Thanks in advance


QuoteBy :
Time : Today at 04:46:27 pm
On : Brooke & Tom
Action type : Deleted item
   By :
Time : Today at 04:33:03 pm
On : Tasha & Matt & Buddy
Action type : Deleted item
   By :
Time : October 13, 2008, 05:59:47 pm
On : Old School
Action type : Deleted item

What permissions do guest have?
Also I recommend to upgrade to 1.5 as it has more features and better security.

Dragooon


Nao 尚

You forgot to post the changelog, both here and in page 1 ;)

Version 1.5.1                                   December 18, 2008
-----------------------------------------------------------------
+ Added index.php files to album folders to protect their contents
! JW Player would show only one video per page when using [smg] tags
! Item descriptions and comments were limited to 255 bytes, which was
! Fixed redirect link being shown for embedded videos
! Last edit link wasn't pointing to gallery profile
! [smg] tags will no longer parse when BBC is disabled
! Highslide animation duration shouldn't allow negative numbers
! Highslide wasn't working well on IE6 due to a missing semi-colon
! Replaced area with sa for SMF 2 beta 4 in SMG profile links
! Fixed DB error when searching items by user name
! Fixed a new (last?) unapproved items count bug
! Fixed search failing when specifying an album
! Album total items wasn't reset if no items were found during recount
! Make sure max folder size is at least 5 times the max file size
* Applied new regex from Aeva 5.0.21 to avoid potential [smg] crashes
* News dates in admin credits are now translated to your locale
* Thumbnail box borders look better when they're gone
* Replaced SMG admin menu icon to match the SMF2 style
! A couple more bug fixes (not that much, this time!)
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


Nao 尚

Well, I always try to insert a couple of stupid jokes in otherwise boring changelogs, so I like mentioning them :P
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.

Baloch

Quote from: Nao 尚 on December 18, 2008, 04:46:42 AM
You forgot to post the changelog, both here and in page 1 ;)

Version 1.5.1                                   December 18, 2008
-----------------------------------------------------------------
+ Added index.php files to album folders to protect their contents
! JW Player would show only one video per page when using [smg] tags
! Item descriptions and comments were limited to 255 bytes, which was
! Fixed redirect link being shown for embedded videos
! Last edit link wasn't pointing to gallery profile
! [smg] tags will no longer parse when BBC is disabled
! Highslide animation duration shouldn't allow negative numbers
! Highslide wasn't working well on IE6 due to a missing semi-colon
! Replaced area with sa for SMF 2 beta 4 in SMG profile links
! Fixed DB error when searching items by user name
! Fixed a new (last?) unapproved items count bug
! Fixed search failing when specifying an album
! Album total items wasn't reset if no items were found during recount
! Make sure max folder size is at least 5 times the max file size
* Applied new regex from Aeva 5.0.21 to avoid potential [smg] crashes
* News dates in admin credits are now translated to your locale
* Thumbnail box borders look better when they're gone
* Replaced SMG admin menu icon to match the SMF2 style
! A couple more bug fixes (not that much, this time!)

After installing this updated mode I am unable to read COMMENTS on any picture.

LinK187

Seeing as I had to manually install this mod originally (1.5). Do I till need to uninstall 1.5 to install 1.5.1? Would be proper annoying if I had to manual uninstall :P

Advertisement: