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

Ch4ng3r

Quote from: Nao/Gilles on October 18, 2009, 08:05:24 AM
Of course you can disable it just for the gallery... With a bit of code here and there.

Also, again and again: Wysiwyg works just fine on my own gallery. I tried switching in and out of Wysiwyg, I added smileys and external IMGs, and everything went as expected. It's on YOUR server.

Your gallery on http://media.noisen.com/ ?

I don`t think so...  :)

http://media.noisen.com/item/1512/#com131  :-*  :D

Ch4ng3r

you must post like this... (attachment) , you must see smileys in reply box!!  :)

oistarbwoy

Quote from: Tiribulus on October 17, 2009, 06:04:48 PM
Quote from: Nao/Gilles on October 17, 2009, 12:21:14 PM
Eheh.
And I'm particularly happy myself with the new "visual" changes I made to RC3.

linux doesnt like mass uploads in general... at boths ends.

just ask anyone who ever tried to upload photos to myspace using ubuntu...

Eheh? And you asked me about bucko ::)

Very nice Bud. Had a little time to mess around with it and it looks great. The only issue I'm having is with the mass upload function in Firefox on the Linux machine the forum's running on, but it works everywhere else so must be a flash issue specific to this box. Actually I wonder if it's because it's looking at a local directory for files. The button is "whited" out and when I click it and browse no files are visible in the dialog. No matter, I don't really need it to work on this computer anyway, but worth mentioning I suppose.

Thanks for the hard work you guys put in.

Nao 尚

Changer, that's a strange one really...
- First of all I saw your comment and thought, "okay, this must be something on HIS machine that is injecting something strange."
- Then I posted a reply with a smiley, and it didn't work either... But the results weren't the same! (I had a "beginning" of an image tag...)
- Then I posted another reply, edited it several times with several smileys, and this time I got no error. (Still in Wysiwyg mode, of course.)

I have absolutely no idea what's causing this.

Contents of the database:

You
yes , i`m noob... <IMG style="PADDING-BOTTOM: 0px; PADDING-LEFT: 3px; PADDING-RIGHT: 3px; PADDING-TOP: 0px" id=smiley_10729_unsure.gif title=unsure onresizestart="return false;" alt="" align=bottom src="http://noisen.com/Smileys/cyna/unsure.gif">

Me 1
I'm telling you it works... And I'm in Wysiwyg mode!<IMG src="http://noisen.com/Smileys/cyna/geek.png" id="smiley_97218_geek.png" onresizestart="return false;" align="bottom" alt="" title="intello" style="padding: 0 3px 0 3px;">

Me 2
:intello: Another try :gnehe:
Looks like it's not doing it for ALL smileys...  :unsure: :intello: :intello:
Why did it NOT work on my previous post, even though I changed nothing??
-> I'm telling you it works... And I'm in Wysiwyg mode! :intello:


I'm currently at a loss... Any ideas around here?
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.

Annabel

I really like the look of SMF Media Gallery, but it doesn't exactly do what I want it to. I'd like to use it as a kind of showcase for animals. Custom fields is the feature I've been looking for, but I want them to be where the album description is now (replace it), instead of on the gallery items. How do I do that?
And also, is there a way to force people to post the pictures to a general album when uploading them to a useralbum?

Keep up the good work! :)

Ch4ng3r

#4645
@Nao

Finally you find it... I almost thought that i`m crazy  :D

Each browser leaves a different reply when you post it with WYSIWYG... strange... I will start searching for problem  ;)

Another thing , my xampp blocks when I post smiley with WYSIWYG...  :-\

Nao 尚

Changer, I think I got it... :)
It was hard to figure it out. I noticed that whenever I edited my comments to add new smileys in wysiwyg mode, they always worked. I only failed when first posting them. So I compared both routines and noticed that the editing mode adds some further sanitizing to the string. I applied it to the post form, and it worked. I can't say it WILL work for you, but let's try it...

rev 1122
! Fixed broken smileys when posting comments in Wysiwyg mode (editing them was fine, though.) (MGallery.php)

Search for this line in MGallery.php:

$comment = $mgalFunc['htmlspecialchars'](smg_utf2entities($_POST['comment'], false, 0));

BEFORE it, add this code block:

// WYSIWYG?
if (!empty($_REQUEST['comment_mode']) && isset($_POST['comment']))
{
require_once($sourcedir . '/Subs-Editor.php');
$_POST['comment'] = un_htmlspecialchars(html_to_bbc($_POST['comment']));
}


This will be in RC 3.1. Coming soonish.

PS: the reason why I couldn't reproduce the bug earlier was that I always used Comment Editing to post my smileys. I didn't remember they weren't handled by the same process. I didn't want to bother my users with new comments they really didn't want to read.
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: Annabel on October 18, 2009, 02:44:32 PM
I really like the look of SMF Media Gallery, but it doesn't exactly do what I want it to. I'd like to use it as a kind of showcase for animals. Custom fields is the feature I've been looking for, but I want them to be where the album description is now (replace it), instead of on the gallery items. How do I do that?
By editing the template...

QuoteAnd also, is there a way to force people to post the pictures to a general album when uploading them to a useralbum?
You mean you want to disable user albums? You can do that through the permission system. :)
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.

Ch4ng3r

@ Nao

I do what you said... and it shows me error now...

Fatal error: require_once() [function.require]: Failed opening required '/Subs-Editor.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/croekipa/public_html/Sources/MGallery.php on line 1067

I will wait for RC 3.1.  :)

SMGTeam

I guess that's because you didn't global the $sourcedir variable.
Anyway.......

Version 2.0 RC3+                                 October 18, 2009
-----------------------------------------------------------------
! Fixed incompatibility with the WYSIWYG Quick Reply mod
! Fixed broken smileys when posting comments in Wysiwyg mode (editing them was fine, though.)
! Unseen area wasn't retrieving all of the data needed to make on-the-fly previews
! Audio/video items can't be previewed within a lightbox, so don't do it
! Externally embedded images (via the Foxy! add-on) weren't being previewed correctly
* num_items and overall_total album entries are now both used, allowing to show more detailed
  numbers of items in album lists, like "5 items, and 6 in sub-albums"
* SMG will now show at most 20 sub-albums in children list (when showing one album per column),
  10 when showing 2, 7 when showing 3, etc.
! Fixed number of sub-album items in General albums
! Renamed "Children" to "Sub-albums" where needed
! Fixed a few minor issues in maintenance area


Off to bed now... And if you have a bug to report, please don't do it for the next 12 hours... Let me sleep :P

Ch4ng3r

my global $source variable is ok... ill update gallery now... be awake!!! :D

Ch4ng3r

#4651
it works fine now...  thank you very much! :) :) :)

after RC2 bug , this is awesome!!  :D :D


vortodox

Wow... this was impresing. Way to go man.
I jsut want to say this is one of best ever mods for SMF.
Thanks for all efort!
www.bg-anime.com [nofollow]

Nao 尚

Last minute crap... I was in bed and couldn't help thinking of my wysiwyg fix's implications (crap crap crap).
I've reuploaded a RC3+ silent update right now. To all 5 users who downloaded it: please install this one (just update the Subs-MGallery.php file).
I think the [smg] tag was broken because if you switch back and forth between wysiwyg and non-wysiwyg when posting a smg tag in a message, it will parse the tag instead of leaving it as is. Not good!
Please tell me if the new fix is good for both wysiwyg quick reply & regular wysiwyg/non-wysiwyg non-quick Reply.
Argh, I hate repackaging that thing.
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.

Annabel

Quote from: Nao/Gilles on October 18, 2009, 03:38:16 PM
Quote from: Annabel on October 18, 2009, 02:44:32 PM
I really like the look of SMF Media Gallery, but it doesn't exactly do what I want it to. I'd like to use it as a kind of showcase for animals. Custom fields is the feature I've been looking for, but I want them to be where the album description is now (replace it), instead of on the gallery items. How do I do that?
By editing the template...
Okay, I found out that I had to move a bit of code from MGallery.php to MGallery-Sub.php, to get it to display the custom field textboxes, but when you create a new album and fill out the fields, it doesn't save it. How do I fix that? ::) And is it possible to rearrange the custom fields? I have quite a few, and I want them in a specific order.

Quote
QuoteAnd also, is there a way to force people to post the pictures to a general album when uploading them to a useralbum?
You mean you want to disable user albums? You can do that through the permission system. :)
No, I still want the useralbums. I just want a dropdown or something to choose a generel album to upload the picture to (forcing all pictures to be in a general album), while uploading it to a useralbum.

Thank you so much for your time! :)

Nao 尚

Quote from: Annabel on October 18, 2009, 06:58:45 PM
Okay, I found out that I had to move a bit of code from MGallery.php to MGallery-Sub.php, to get it to display the custom field textboxes,
What? I'm talking about the MGallery.template.php file...

Quotebut when you create a new album and fill out the fields, it doesn't save it. How do I fix that? ::) And is it possible to rearrange the custom fields? I have quite a few, and I want them in a specific order.
Uh... Not for now. (Probably not ever, actually. I'm not much interested in custom fields and since I'm the only programmer around, adding an "order" field to the fields table is not a priority for me.)

QuoteNo, I still want the useralbums. I just want a dropdown or something to choose a generel album to upload the picture to (forcing all pictures to be in a general album), while uploading it to a useralbum.
So, what's the *point* of user albums then?
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 尚

Uploaded a SILENT UPDATE to RC3+ to fix an "undefined index" (i.e. not a critical bug) that happens when viewing the Unseen area and it has new items that are either Audio files or Documents. I didn't have any of these while testing, so basically this was bound to happen.
If you already downloaded RC3+ yesterday, you can simply download the package and update the MGallery-Sub.php file with the new one ;)
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.

leighlife

[re user albums appearance]
Quote from: Dramber on October 17, 2009, 01:22:43 PM
I found the albums at the bottom of the page:
I have the same thing in a 1.1.10 site.  Removing a couple of end td elements fixes it, I don't know what they might achieve for other SMF versions but they just smash the layout for me:
996c996
<               ', $txt['mgallery_pages'], ': ', $context['mgallery_page_index'], '</td>
---
>               ', $txt['mgallery_pages'], ': ', $context['mgallery_page_index'], '
1014c1014
<               ', $txt['mgallery_pages'], ': ', $context['mgallery_page_index'], '</td>
---
>               ', $txt['mgallery_pages'], ': ', $context['mgallery_page_index'], '

Nao 尚

Hmm, apparently I managed to break validation for user album lists...
I guess it was to be expected -- if you have a look at my new album list code, it's so complicated... (And it was really the only way I could implement all the changes.)
I'll have a look later. Time for lunch.
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.

Annabel

Quote from: Nao/Gilles on October 19, 2009, 03:10:38 AM
Quote from: Annabel on October 18, 2009, 06:58:45 PM
Okay, I found out that I had to move a bit of code from MGallery.php to MGallery-Sub.php, to get it to display the custom field textboxes,
What? I'm talking about the MGallery.template.php file...
Oh.. But.. I can't figure out what to edit in the template. I know what to edit to move the text itself, but not to move the textboxes. I can only find one form in the template, and that edits all forms. I want to move them from index.php?action=mgallery;sa=post;album=# to index.php?action=mgallery;area=mya;sa=add
Could you point me in the right direction? O:)
Thank you so much for your help! :)

Advertisement: