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

4b11l

#4520
Quote from: Nao/Gilles on October 05, 2009, 02:53:03 PM
@4b> I don't use auto-approve. Back in RC1, Dragooon committed some changes with auto approval I believe. Maybe he broke it........ :P


So this is an unfixable bug with the auto approve system?

A new error seem to pop up.

8: Undefined variable: name
File: /public_html/Sources/MGallery-ModCP.php
Line: 215

Nao 尚

Line 208 in MGallery-ModCP.php, try to replace $item with $name and tell me if it works now.
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.

4b11l

Quote from: Nao/Gilles on October 06, 2009, 02:37:46 AM
Line 208 in MGallery-ModCP.php, try to replace $item with $name and tell me if it works now.

Hello Nao,

I have a blank on line 208. Searched for $item, but there was many entries. I have attached my php so you can view it.

Nao 尚

That would be line 415 for you.
Your FTP client is badly configured BTW... It mistakes Windows carriage returns (CR LF) as a Mac (CR) + Linux (LF) carriage return, hence a blank line every line. That's silly... Configure it to upload/download everything in binary and use Notepad2 to edit your php files.
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.

4b11l

Quote from: Nao/Gilles on October 06, 2009, 03:04:41 AM
That would be line 415 for you.
Your FTP client is badly configured BTW... It mistakes Windows carriage returns (CR LF) as a Mac (CR) + Linux (LF) carriage return, hence a blank line every line. That's silly... Configure it to upload/download everything in binary and use Notepad2 to edit your php files.

Unfortunately, that didn't do it. I have changed it back to $item just in case for the time being.

While doing that, this error now popped up.
8: Undefined variable: type
File: /public_html/Sources/MGallery-ModCP.php
Line: 809


Which for me is:
redirectexit($galurl . 'area=moderate;sa=submissions;filter=' . $type);




Thank you for letting me know about the php issue. I use Core FTP LE and can not find a setting for that. The closest I can find was encoding in ansi or unicode. Also, I use context v.98.3 because it highlights everything in color and is easy for me to understand.

Can you recommend another ftp client and does notepad2 highlight?

Nao 尚

Just replace $type with $_REQUEST['type']
I'm guessing no one ever tested this area of SMG... I don't use the mod cp myself (and I didn't write it :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.

4b11l

Odd, that seems to have fixed what I thought was "normal" in the admin part of SMG.

Before, when you delete; it would send you all the way back to the admin page making you go back into the album page. Now, it stays on the album page; which I thought it should've done in the first place but wasn't complaining since I thought it was normal.

Any insight on the ftp client and does notepad2 highlight the coding?

Nao 尚

I use an old version of CuteFTP but it's personal taste. FileZilla is supposedly great and has support for many more features.
Notepad2 has all of the modern many have come to expect, yes. It's based on the Scintilla engine, just like Notepad++.
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.

drroot

Can I set up SMG to let all files be uploaded to my other FTP server?

Though I notice a "FTP" tab within SMG, but I have no idea about how to set the login info of my external FTP server?


4b11l

Can anyone let me know if it's possible to add a custom html field onto the gallery template? Similar to how the yellow box shows up when you have unapproved albums. Except, for this one to be visible at all times for some simple html coding. i.e. ads.

Nao 尚

@drroot> no
@4b> no

Easy ones :D

Okay 4b, you can mod your files but you'll have to modify them again when upgrading.
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.

4b11l

Haha, alright. How about disabling upload of all other types of media other than image?

I want to disable all of the below; I can not find the setting for them in the admin; only for documents and I couldn't even disable itall.

QuoteAudio files: mp2, mp3, mpga, ram, ra, wax, wma, m4p, m4a, a-latm, ogg, rpm, mka, wav
Video files: 3gp, 3g2, avi, mpg, mpeg, mpe, wmv, mxu, m4u, movie, qt, mov, rv, flv, f4v, mp4, m4v, mkv
Documents: txt
Multimedia archives: zipm

neilbombd

Just installed this, seems great, but I have a bug.  I've uploaded files to the FTP then tried to import them to an album, but they don't show thumbnails, and only show the pic when I click through them:  http://cookd.php5.truth.posiweb.net/forums/index.php?action=mgallery

I installed SMFMediaGallery-2.0rc2.zip 

QuoteSMF Version: SMF 2.0 RC1.2   PHP Version: 5.2.9-0.dotdeb.1
PHP's Safe Mode is disabled, so it won't cause any trouble to SMG. Good thing.
The Apache mod_security module isn't installed, so it won't cause any trouble to SMG's Mass Upload feature. Good thing.
FFMPEG: NO
GD2:  bundled (2.0.34 compatible)
ImageMagick:  (IMagick: NO - MagickWand: NO)

LHW

Neilbombd, your gallery isn't viewable to Guests.


leighlife

1282c1282
<                                               LEFT JOIN {db_prefix}mgallery_media AS m ON (f.id_file = m.id_preview) OR (f.id_file = m.id_file)
---
>                                               LEFT JOIN {db_prefix}mgallery_media AS m ON (f.id_file = m.id_preview)
?

Nao 尚

If I understand correctly, uploading a forced thumbnail that is smaller than a regular preview will end up putting the file ID into m.id_file instead of m.id_preview, right?
I'm not even sure m.id_file is filled at all when m.id_preview isn't empty... (Does that mean I'm storing the full file in addition the the preview & thumb?)
Okay, if I can't even remember how I implemented it, it's a problem.... :P

Thanks for the fix, I'll trust you on this as always :)
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: 4b11l on October 07, 2009, 06:11:37 PM
Haha, alright. How about disabling upload of all other types of media other than image?
Yes you can. Permissions.

Quoteonly for documents and I couldn't even disable itall.
You mean you couldn't put in an empty string? Well that may be because you can disable documents by permissions... That is, if the string is empty, maybe it was emptied by mistake or a bug, so I might as well NOT empty the document list.
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.

4b11l

Quote from: Nao/Gilles on October 08, 2009, 02:09:02 AM
Quote from: 4b11l on October 07, 2009, 06:11:37 PM
Haha, alright. How about disabling upload of all other types of media other than image?
Yes you can. Permissions.


Where? I swore there was not an option for this in the permissions. I double checked now and no permissions for them.

drroot

It's a pity, since we usually use a dedicated ftp server for file storage, and the WWW server for the forum is only used for surfing and the disk space is limited.

Hope we could add such a feature soon to use external ftp server upload.


Quote from: Nao/Gilles on October 07, 2009, 05:45:23 PM
@drroot> no
@4b> no

Easy ones :D

Okay 4b, you can mod your files but you'll have to modify them again when upgrading.

Nao 尚

@4b>

index.php?action=admin;area=mgallery;sa=perms;do=edit;id=1;group=0

Didn't you ever set up your permission profile?

@drroot> you can embed external pictures with SMG + the Foxy! mod. Although it will only accept the HTTP protocol. Either you can access files through a mock HTTP protocol, then you're good, or I can try adding support for FTP but I'll need to test it (I think cURL & co. can download FTP files to make previews out of them so it should be okay but I can't say for sure.)

Edit-- apparently yes, it can.
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: