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

Shades.

Quote from: Nao 尚 on August 02, 2009, 05:48:16 PM
@bozilla> first entry is the "clear thumbnail names" stuff. It's in the updated language files. If you're using a UTF file, don't forget to update it with the MGallery.english.php file instead. Second entry -- I don't know, it shouldn't be empty. Does anyone else have this problem?

Those were only 2 of the fields I found missing out of about 6 or 7. I tried a manual install after uninstalling everything except for the database and still getting same fields missing. So I went ahead and reinstalled the previous version, which works perfect, until I can get a fix for this. I don't know what else to do at this point. :-\

Oh, and I'm not using any UTF files either! ;)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

tfs

Is anyone else not seeing thumbnails when they do a search in 2.0b2?
A good tree cannot bring forth evil fruit, neither can an evil tree bring forth good fruit.

Özgür

So Long

tfs

A good tree cannot bring forth evil fruit, neither can an evil tree bring forth good fruit.

Nao 尚

@sangwee> you're better off not touching any of these. If you want to narrow the scope of query searches, you should instead edit the $user_info['query_see_album'] variable in Subs-MGallery.php or Subs-MGallery-Vital.php (can't remember which). Supposing your "categories" are a list of albums, of course. Then everything on your gallery will behave according to that.

@warlock> ask your host... this is different for every host.

@petee> gallery+rate access for guests, or an account by pm... + your url of course. For starters.

@bozilla> I'm telling you... Your language files aren't up to date. Just make sure you upload them to the correct directory.

@tfs+rock> bug indeed. Thanks. I've fixed that in rev 990 (thankfully you and Daydreamer are both beta testers so you can create a package for it), it's a tentative "beta 2a". The bug also happened in the Unseen area. I not only fixed the bug, I also updated the Unseen & Search areas to show clear URLs when enabled. BTW, do you use the "clear" feature? I'm interested in knowing.
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 尚

Simplemachines.org is buggy :(
I uploaded SMG 2.0 Beta 3 and it ended up being the only file available! I don't know why. I was uploading the file, then I cancelled the upload because I forgot to tick the "alert users" box, I reloaded the page, restarted filling the details, ticked the alert box, unticked the Beta 2 box (because it's security sensitive so I'd rather take it away), added the Beta 3 file, uploaded... And there it is, only the Beta 3 file was there.

Anyway... I'll reupload the other things in time.

Version 2.0 beta 3                                 August 3, 2009
-----------------------------------------------------------------
! Clean filenames were always on, even when disabled (minor security issue)
! Fallback on failed clean filenames was broken and wouldn't send a correct URL
+ Added support for clean filenames on Search and Unseen areas


PLEASE update your Beta 2 to Beta 3 if you already installed Beta 2. It is a very minor security issue, and I'm not even sure it can be exploited or even reproduced, but I take security very seriously. Plus, it fixes some oversights.
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.

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Dragooon

Quote from: Kindred on August 03, 2009, 07:28:15 AM
first post is updated
Oh crap...I was about to..then you came..but I was..then you came...you..came...but I....oh forget it, thanks.

Kindred

lol...   Hi Dragoon...   I wasn't sure if you were back from vacation.   Nao couldn't update it last time (beta2) and with a security release, I thought I should update it as soon as possible.   Didn't mean to step on any toes.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Dragooon

Quote from: Kindred on August 03, 2009, 07:32:22 AM
lol...   Hi Dragoon...   I wasn't sure if you were back from vacation.   Nao couldn't update it last time (beta2) and with a security release, I thought I should update it as soon as possible.   Didn't mean to step on any toes.
Lol I was just kidding, thanks for helping out :).

sangwe11

Quote from: Nao 尚 on August 03, 2009, 04:24:30 AM
@sangwee> you're better off not touching any of these. If you want to narrow the scope of query searches, you should instead edit the $user_info['query_see_album'] variable in Subs-MGallery.php or Subs-MGallery-Vital.php (can't remember which). Supposing your "categories" are a list of albums, of course. Then everything on your gallery will behave according to that.

I simply recreated the function to output exactly the same (well, i tidyied it up a little) and then added in my catagory limit code. After a little tweak, I got it working. I don't think its the most efficient way, but its the only way I could do it.

For each id in the list of catagories that its allowed to show, it scans through all of the recent item's list, and if they are in that catagory, it show them, and if not, it doesnt.

I don't think scanning though every recent item, for every catagory is very efficiant, but at the time I couldn't see another way.

Nao 尚

As I'm telling you, adding something at the end of {query_see_album} should work just fine. I suppose your "categories" are stored in the albums table. Which means it's perfectly suited.

$user_info['mgallery_query_see_album'] .= ' AND a.category = ' . (int) $current_category;

Something like that...
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.

LHW

#4072
Quote from: Nao 尚 on August 03, 2009, 04:24:30 AM
@warlock> ask your host... this is different for every host.

Thanks.  I'll run it by them.  :)

EDIT:  Oh, I'm also getting 500 Internal Server Errors when I use a "Direct Link" to view an image.  However, when I right-click on it to view, it shows up fine...but with a different address.  This was on v2b2, and v2b3 as well.

This is a path that gives errors: http://www.essentialknights.com/tcf/MGalleryItem.php?id=60

This is what the View Image shows: http://www.essentialknights.com/tcf/index.php?action=mgallery;sa=media;id=60

Is this something I messed up on my end??


Nao 尚

Error 500 => check your file permissions by FTP. Make sure it's 0644 or 0755 for MGalleryItem.php!
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.

tfs

Quote from: Nao 尚 on August 03, 2009, 04:24:30 AMBTW, do you use the "clear" feature? I'm interested in knowing.

I switched to it, as I noted in a post on smf-media.com, when I was trying to determine why I wasn't seeing thumbnails on searches.

I was a little nervous making the switch with >4k entries in the gallery, as I think it has to mod all of those entries, does it not?  The process took about a full minute.

My only lingering issue is the hundreds of pages of Recent Items.
A good tree cannot bring forth evil fruit, neither can an evil tree bring forth good fruit.

sangwe11

Quote from: Nao 尚 on August 03, 2009, 08:33:42 AM
As I'm telling you, adding something at the end of {query_see_album} should work just fine. I suppose your "categories" are stored in the albums table. Which means it's perfectly suited.

$user_info['mgallery_query_see_album'] .= ' AND a.category = ' . (int) $current_category;

Something like that...

I cant see this working, as its not per user that the albums are shown or not, its per subdomain .

Example: we have albums 1,2,3 and 4

on gallery1.mysite.com it would show albums 2, 3 and 4

on gallery2.mysite.com it would show albums 1,2 and 4

LHW

Quote from: Nao 尚 on August 03, 2009, 12:03:03 PM
Error 500 => check your file permissions by FTP. Make sure it's 0644 or 0755 for MGalleryItem.php!

That was it.  I was able to verify that a fresh install left it at 644, however, once I removed v2b2 and installed v2b3, the permissions were set at 666.  Once I changed it back to 644, it worked fine.


Nao 尚

Quote from: sangwe11 on August 03, 2009, 06:18:46 PM
I cant see this working, as its not per user that the albums are shown or not, its per subdomain .

Example: we have albums 1,2,3 and 4

on gallery1.mysite.com it would show albums 2, 3 and 4

on gallery2.mysite.com it would show albums 1,2 and 4
You can add an INNER JOIN at the end of the variable, too, if it depends on another table.
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.

digger

I have an error when i trying to migrate from Coppermine with mgconverter_cpg.

Duplicate entry '1009' for key 'PRIMARY'
Файл: /.../Sources/Subs-MGallery-Vital.php
Line: 231

Nao 尚

Your original CPG is probably corrupted or something... Or you're not using the right versions.
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.

Advertisement: