News:

Want to get involved in developing SMF, then why not lend a hand on our github!

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

Randy A.

You have to open up permissions for each membergroup.

Kindred

Hey Dragoon,

Yes, we have GD2 installed (bundled)

the mgal_data directory is 777
the dir_1 directory is 777 (don't know what that directory is...)
I just added a temp directory, chmod 777

Still the same effects...   and when I set up a new directory on the front end, no directory is ever created on the server....




-edit!- I found the problem....   When the system set this mod up, it did not create either the tmp or the albums directory. Manually adding those solved the upload issues.

One suggestion Dragoon:   in the readme, include a list of the directories that are supposed to be created (and are required)?

Сл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."

Bancherd

Quote-edit!- I found the problem....   When the system set this mod up, it did not create either the tmp or the albums directory. Manually adding those solved the upload issues.

Ahso.....I had exactly the same symtoms that you had, will try your suggestions and see how things work out.   Thanks. :D

Jakki

#143
Dragoon, I get this error...

Database Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's','1','Jakki','1221692489','','')' at line 4
File: /home/xxxxxx/public_html/XXXXXXX/Sources/Subs-MGallery.php
Line: 2002

and this one

Database Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's/Dir_1','5')' at line 4
File: /home/xxxxxx/public_html/XXXXXXXXX/Sources/MGallery.php
Line: 1160

I can't upload pics and I can't delete my albums...please help.


4b11l

Dragoon, any plans of making a watermark feature?

Bigguy


mcmoore

Quote from: Randy A. on September 17, 2008, 05:16:49 PM
You have to open up permissions for each membergroup.

Play nice ;-) while correct it was a somewhat unhelpful reply. However, it did make me realise why I have the same problem and I'll help the other new admins out there.

admin->members->permissions->general permissions
"modify" the group you wish to give gallery access to
In there is an "SMF Media Gallery" set of permissions.

Please you made me look for it, this opens up a whole new world of permission lockdown tyranny, my board members might just hate you for it :D

Dragooon

Quote from: Kindred on September 17, 2008, 05:22:01 PM
Hey Dragoon,

Yes, we have GD2 installed (bundled)

the mgal_data directory is 777
the dir_1 directory is 777 (don't know what that directory is...)
I just added a temp directory, chmod 777

Still the same effects...   and when I set up a new directory on the front end, no directory is ever created on the server....




-edit!- I found the problem....   When the system set this mod up, it did not create either the tmp or the albums directory. Manually adding those solved the upload issues.

One suggestion Dragoon:   in the readme, include a list of the directories that are supposed to be created (and are required)?


That should've automatically been created as they came. But nevertheless, glad you have it solved :).

Quote from: 4b11l on September 17, 2008, 08:53:17 PM
Dragoon, any plans of making a watermark feature?
Maybe later but not now.

Quote from: Jakki on September 17, 2008, 07:06:37 PM
Dragoon, I get this error...

Database Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's','1','Jakki','1221692489','','')' at line 4
File: /home/xxxxxx/public_html/XXXXXXX/Sources/Subs-MGallery.php
Line: 2002

and this one

Database Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's/Dir_1','5')' at line 4
File: /home/xxxxxx/public_html/XXXXXXXXX/Sources/MGallery.php
Line: 1160

I can't upload pics and I can't delete my albums...please help.


Does the fix here works?

Angelotus

Dragooon, thanks for this great mod! Are there any SSI function available for this mod, such as grabbing the recent files, comments etc for my frontpage?

Dragooon

It is possible, there are some functions in Subs-MGallery.php although they require initialising of gallery first
like
global $sourcedir, $galurl;
require_once($sourcedir . '/Subs-MGallery.php');
// Load gallery
loadMGal_Settings();
$items = getMediaItems(5);
foreach($items as $item)
echo '<div><a href="',$galurl,'sa=viewitem;id=',$item['id'],'">',$item['item_title'],'</a></div>';

This is just an example, see all the function at the end of Subs-MGallery.php

Angelotus


Angelotus

Dragooon, just a question (and a request), is it possible to combine the media gallery with the profile pictures function of the ultimate profile mod? So if I upload a pic into my profile picturealbum, it also is shown in the useralbum of your mod?
That would incredibly awesome if that will be possible!!!!

Dragooon

Well it is possible to modify the ultimate profile's function to automatically add the the file to the album.

Angelotus


Dragooon

Currently I don't know and because of my exams I won't be working on it either :).

Angelotus

What are you doing here then, go studie! ;) Good luck with your exams! :)

Angelotus

Maybe you can help me with this:

After uploading a pic in a useralbum this error occurs:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's_Album/Dir_1','5')' at line 4
File: /storage/mijndomein/users/073949/public/sites/kv.nessekrekers.nl/Sources/MGallery.php
Line: 1160

Dragooon


helpmehelpme

5.     Execute Modification     ./Sources/ManagePermissions.php     Test failed

before I install.. why is this so?

Dragooon

Looks like it is clashing with an already installed mod, try uninstall all your mods and install this one.

Advertisement: