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

Nao 尚

@Mister Spock> Go to MGallery-Admin.php, line 459, replace the globals line with:

global $mgalFunc, $context, $mgalSettings, $user_info, $scripturl;


Quote from: Elijah Bliss on November 24, 2008, 11:01:53 PM
Has anyone had any problems with the [smg] tags? They are completely non functional on my site.
Follow my guidelines for fixing the MGallery.template.php from last page...
http://www.simplemachines.org/community/index.php?topic=260821.msg1811880#msg1811880

This is the help file I wrote for the smg tag. Some of the options (none & normal) won't work in the current RC 3.1 (these are for the final version). If you can wait for the next release, that help file will be correctly formatted (I was forced to just copy & paste the raw text for this post.)
PS: if anyone finds a grammar error in the following text, please report it!

[smg] tag ~ the basics
A quick example:
[smg id=123 type=preview align=center width=400 caption="Hello, world!"]

This will show a center-aligned mid-size (preview) picture, resized to 400 pixels wide, with a caption below it. All parameters are optional, except for the item ID.

Possible values:
- type=normal, box, link, preview, full
- align=none, left, center, right
- width=123 (in pixels)
- caption="Caption text" or caption=SingleWordText

id
All items are identified by a specific number which you can see in its URL. Just use it here. This is the only parameter that is NOT optional.

type
normal (default) - show the thumbnail. Click on it to show a preview.
box - show the thumbnail box, with full details, as in the SMG pages. Clicking on the thumbnail will lead you to the item page.
link - just like the default, except that the caption is clickable and leads you to the item page. If no caption is set, a default link will be shown instead.
preview - show the preview picture (halfway between thumbnail and full picture.)
full - show the full picture. Make sure you set the width parameter!

align
none (default) - normal alignment. Will not allow thumbnails to its right or left.
left - left-align the thumbnail. Use several left-aligned smg tags to show thumbnails next to each other.
center - center-align the thumbnail. Will not allow thumbnails to its right or left, except if showing them in this order: [smg align=left][smg align=right][smg align=center]
right - same as left, but right-aligned. You got it.

width
Any number higher than zero will do. This parameter is only needed if you want to force a specific width.
Set the tag type according to the desired size. For instance, if your thumbnails have a default width of 120, and previews are 500 pixels wide, use [smg type=preview] if you're forcing a width of 300 to 500 pixels, otherwise the resulting thumbnail will be very blurry.

caption
Show a caption below the thumbnail (if type is set to link, the caption will be clickable and lead you to the item page.)
Any string will do. If it contains spaces or brackets, be sure to enclose it between "double quotes".
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.

vulcan59

#1061
Line 459 shows

      WHERE id_album = {int:album}',

Is that the line I need to replace?

I did that and when I now try to upload a picture, I get a

QuoteThere was a error in uploading, please try again or contact the administrator.
error?


And when I tried to create an album i got the following

Quote2: rmdir(/home/on/arrowcat.co.nz/forum/mgal_data/albums/ArrowCat_NZ) [<a href='function.rmdir'>function.rmdir</a>]: No such file or directory
File: /home/on/arrowcat.co.nz/forum/Sources/Subs-MGallery.php
Line: 546

Nao 尚

Quote from: vulcan59 on November 25, 2008, 04:15:36 AM
Line 459 shows
I meant 469.

QuoteAnd when I tried to create an album i got the following

Quote2: rmdir(/home/on/arrowcat.co.nz/forum/mgal_data/albums/ArrowCat_NZ) [<a href='function.rmdir'>function.rmdir</a>]: No such file or directory
File: /home/on/arrowcat.co.nz/forum/Sources/Subs-MGallery.php
Line: 546
Line 541:

if ($create_sub_dir)

To
if ($new_dir && $create_sub_dir)

Will just suppress the error, though... Not fix your directory problems. 0777 or not?
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.

vulcan59

#1063
okay replaced 469 and tried creating a new album and same message.

The mgal_data folder is 755. I changed it 777 and tried creating an album and no errors this time but when I tried upload an image i got this in error log

Quote2: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for /home/on/arrowcat.co.nz/forum/mgal_data/tmp/Hauser_Miller.jpg
File: /home/on/arrowcat.co.nz/forum/Sources/Subs-MGallery.php
Line: 1834


What else can I do?


Nao 尚

Quote from: vulcan59 on November 25, 2008, 05:04:25 AM
What else can I do?
Uninstall the whole stuff and reinstall -- automatic install, that is!!
If it doesn't work, ask your host to stop breaking everyone's nuts with their overprotective default folder settings.
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.

vulcan59

Well, I just CHMOD all the folders in the mgal_data to 777 and waalaa

everything is working now :) with no errors in the error log.

Great and thanks for all the help. 8)

Nao 尚

Didn't we already tell you to do that in the first place....?
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: BYUFanatic on November 24, 2008, 05:38:35 PM
It's me again! Grades are now done, so I have a little bit more breathing room (temporarily). Unfortunately the latest 1.5 RC 3.1 still won't mass-upload for me (but at least it doesn't crash for me now).
The mass uploader is pretty solid now...
Your problem is a common problem when using url rewriting. Flash security. Either don't use the forum.xxxxxx.com URL, or add a crossdomain.xml file to your server root. (Google is your friend for this.)

QuoteIn addition, I still cannot upload a file that is 127meg in size (I have my limits set at 300meg on my server and on SMG). The error I get is:

"There was a error in uploading, please try again or contact the administrator."
One of the reasons it could have failed:
- source file not found
- destination folder not found
- unknown error

The most probable candidate here is "source file not found"... Which means it's a server problem -- the upload fails after a while, whatever maximum size you set to upload. I'm guessing this is due to limited memory available, or something. I suppose you have enough room on your hard drive?
Did you try uploading with any other php script? If they fail too, then you know why...

QuoteAfter the Thanksgiving holiday (which begins later this week) I will be giving my students assignments to do with the videos, so I'm hoping to have everything running smoothly by then...

And, just as a reminder - I LIKE this mod. *smile*
I know ;) And I like helping when I 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.

Dragooon

You really can't upload a 127 meg file via HTTP. It'll fail as apache times out. And I am not too sure how to solve this.

Soms

Quote
Fatal error: Cannot redeclare mgallery() (previously declared in /mnt/web4/21/50/51458650/htdocs/Sources/Profile.php:4228) in /mnt/web4/21/50/51458650/htdocs/Sources/Profile.php on line 4247

I get this error when I try to check a user's profile. How do I remedy this?

vulcan59

Quote from: Nao 尚 on November 25, 2008, 06:26:44 AM
Didn't we already tell you to do that in the first place....?

Thanks Nao. The instructions on the manual install doesn't really say that. Also I have a problem with the server. Apparently there are running it in safe mode since it's a shared server which has been giving me weird errors. Example I can't use the package ftp to install a mod!!

But thanks anyway and regards.

Nao 尚

Quote from: vulcan59 on November 25, 2008, 02:48:16 PM
Thanks Nao. The instructions on the manual install doesn't really say that. Also I have a problem with the server. Apparently there are running it in safe mode since it's a shared server which has been giving me weird errors. Example I can't use the package ftp to install a mod!!
If video site thumbnails are created correctly, then I'm glad I added some extra code (using the Curl library) to handle that :) (Before RC 3.1, Safe mode wouldn't work at all...)
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.

vulcan59

Okay thanks and one final request. I was trying to look for a SMF Gallery Manual, ie what the various settings, do and mean. The manual explains what the various settings are and what they do.

I found it here once but I just can't seem to locate it again. Right now, when I upload an image, it comes up with a 3 lines giving some urls, which I don't see in other galleries.

Could you direct me to the manual?

tk2012

SMF 2.0 b4.0
Default Theme (w/ color changes)

I remember posting that I was still getting these errors a few months back like around page 10 or 11.  I recently upgraded to b4.0 and uploaded via package manager with most recent download of this mod.

I received two critical errors today which I will attach.




Also, I had some people try to use a link from Photobucket and that is one site that says this mod is compatible.  But, they are getting an error.  Is this becaue I have the Auto Embed Video mod installed which you guys are talking about?




posted pictures

Nao 尚

Quote from: vulcan59 on November 25, 2008, 04:23:14 PM
I found it here once
Oh, my... It's on this very page!

Quotebut I just can't seem to locate it again. Right now, when I upload an image, it comes up with a 3 lines giving some urls, which I don't see in other galleries.

Could you direct me to the manual?
As I said: I wrote it yesterday, and posted it today to make it clearer to everyone how to use the smg tag. Dragooon doesn't want to release another RC before the final version, so I'm afraid you'll have to wait for another week before the manual is integrated into the mod.
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: tk2012 on November 25, 2008, 05:10:11 PM
I remember posting that I was still getting these errors a few months back like around page 10 or 11.  I recently upgraded to b4.0 and uploaded via package manager with most recent download of this mod.

I received two critical errors today which I will attach.
Dragooon?

QuoteAlso, I had some people try to use a link from Photobucket and that is one site that says this mod is compatible.  But, they are getting an error.
Example URL to try out?

QuoteIs this becaue I have the Auto Embed Video mod installed which you guys are talking about?
Well, curiously, I'm now the de facto (and a bit unwilling) developer for AEVA(C), so I'll make sure to fix the regexp if anything was changed in the photobucket side... You'll have to wait for me to get up to speed though. I'm not yet familiar with all features in the mod.
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.

vulcan59

Quote from: vulcan59 on November 25, 2008, 04:23:14 PM
I found it here once
Quote from: NaoOh, my... It's on this very page!

My apologies. I meant when you log in as admin, under configuration, gallery - There is some explanation there but there are quite a few I am not very sure about. I saw a plain text file with an explanation of the configuration settings as well as some explanation of the permission settings specifically on the gallery somewhere here in the forum. I'll look for it again and post a link here. Quite useful for a newbie, or so I think.


Nao 尚

Quote from: vulcan59 on November 25, 2008, 06:15:12 PM
My apologies. I meant when you log in as admin, under configuration, gallery - There is some explanation there but there are quite a few I am not very sure about.
The descriptions, in italics with gray text? They're pretty much everywhere...

QuoteI saw a plain text file with an explanation of the configuration settings as well as some explanation of the permission settings specifically on the gallery somewhere here in the forum.
I don't remember seeing 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.


tk2012

Quote from: Nao 尚 on November 25, 2008, 05:40:25 PM
QuoteAlso, I had some people try to use a link from Photobucket and that is one site that says this mod is compatible.  But, they are getting an error.
Example URL to try out?

I don't use PhotoBucket myself, but I do understand there are like 4 different links you can use to link your images once uploaded.  This is the link that the member used which always works in AEVAC, so they used the same one.  Is that the problem?

http://i122.photobucket.com/albums/o247/Starseeker13/Picture.jpg

Advertisement: