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

Elijah Bliss

Quote from: Nao 尚 on November 25, 2008, 03:52:10 AM
@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".

Excellent!

Thank you veru much, worked like a charm.

vulcan59

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.
QuoteI don't remember seeing that...

I'll find it and post a link here. In the meantime, I created a general album and upload images and and I had the following error log:

Quote
Apply Filter: Only show the errors with the same message
2: gzwrite(): supplied argument is not a valid stream resource
File: /mydomain/forum/Sources/Subs-Package.php
Line: 2101


Nao 尚

Quote from: Soms on November 25, 2008, 06:45:00 PM
I hope my earlier post did not get overlooked.

http://www.simplemachines.org/community/index.php?topic=260821.msg1815124#msg1815124
You probably installed the thing twice...?

@Spock> There's no link with SMG itself... It's a package function. We don't use these. I think.

@tk> I'll have a look when I install AEVAC 4.
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: Nao@Spock> There's no link with SMG itself... It's a package function. We don't use these. I think.

@tk> I'll have a look when I install AEVAC 4.

No worries, then.

Thanks once again and still looking for that file.

Rgds

Soms

Quote from: Nao 尚 on November 26, 2008, 02:16:21 AM
You probably installed the thing twice...?

I am not aware I did. But I found and deleted the duplicate string. Everything is fine now. Thanks for pointing the way.  :)

vulcan59

#1085
Hi Nao,

Apologies, it wasn't for SMF Media but SMF Gallery Lite and Pro Editons

Link Removed ( see below )

Regards.

Nao 尚

...

(Why are you posting a link to that? It has nothing to do with SMG. It can only add more confusion.)
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, 08:43:26 PM
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?
Well, this is a direct link... And AEVAC is for videos, not pictures. So AEVAC is expecting a link ending with ".flv"... Not ".jpg". (It also expects the subdomain to start with "s", not "i".)
So the process will always fail with AEVAC 4, and SMG won't want it either. If you want to host a picture on SMG, you *have* to upload it directly. That's the primary goal of the gallery itself...! Remote files are only an afterthought, if I may say.
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

@Soms - They are 2 delcaration of mgallery function in that file, remove one of them, This was answered a few days ago too.

@photobucket issue - I fixed it, they had updated there site's regex.

@tk2012 - Can you repost your issue?

ernest

i've noticed that in order to search the gallery we must insert the keyword, can it be done without inserting keyword? for example i want to search item based on member name.

Dragooon

No its not a must? It works without the KW as well.

ernest

Quote from: Dragooon on November 26, 2008, 08:44:08 AM
No its not a must? It works without the KW as well.
well when i tried to search without using the keyword and only using member name it got me this message.

Dragooon

That Search "keyword" is something to search for. It searches in titles. descriptions. You cannot leave it empty. You can select what to search in as well.

Dragooon

Yes, 1.5 does that. You are in the right place.

tk2012

Quote from: tk2012 on November 25, 2008, 05:10:11 PM
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.


These are the errors that I'm getting after the upgrade to b4.0 and the version of the mod 1.0.2

Nao 尚

Just released: SMF Media Gallery 1.5 RC 3.2

This release features all of the bugs fixed since RC 3.1. It is just there as a means to simplify the life of new users who would install RC 3.1 and notice it doesn't work right.

http://custom.simplemachines.org/mods/index.php?mod=1365

If no new bugs are found, RC 3.2 will be re-released in a few days as the Final 1.5 version. Would be 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.

ernest

Quote from: Dragooon on November 26, 2008, 09:03:46 AM
That Search "keyword" is something to search for. It searches in titles. descriptions. You cannot leave it empty. You can select what to search in as well.

so i must insert the titles or description of the image i`m looking for, can it be set for search based on member name so my members don`t have to look for other members uploaded picture by using view items in the member profile.

Dragooon

Well not currently. I never got time to work on a SGP converter. SGL converter may work but I have low hopes on that.

Nao 尚

I could do it, but I fear vbgamer45 would see this as an interference (because I also worked on SGP), so I'd rather not do it really. Unless I get written permission from vb :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.

vulcan59

I'd like to register my sincere thanks to Dragooon for this superb mod and especially Nao for guiding me through the installation and problems that I encountered during the process. :) Everything is working now and I've encountered no problems so far.

Now this new release I note does not have a manual install instructions yet for SMF 1.1.7. The version I had install was done manually and it shows up as SMF Media Gallery -1.5 RC 3.1 and therefore has no "uninstall" under the packages in admin. So if I do want this new release, I'll have to undo everything manually  :'( and then reinstall via the packages? 

Advertisement: