Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SMGTeam on September 09, 2008, 03:14:05 PM

Title: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: SMGTeam on September 09, 2008, 03:14:05 PM
Link to mod page (http://custom.simplemachines.org/mods/?mod=1365)
Link to latest Alpha version (Aeva Media) (http://custom.simplemachines.org/mods/?mod=977)

SMF Media Gallery (SMG) v2.0.5

For SMF 1.1.10 and SMF 2.0 RC1.2 - © SMF-Media.com (http://smf-media.com)


SMF Media Gallery is a free and full-featured gallery mod for SMF, we hope you'll enjoy it!
User side demo (http://smf-media.com/community/index.php?action=mgallery)


Main Features (New v2.0 features are marked in red)


License agreement
If you wish to use this software, you will be bound by the SMG license agreement. Please make sure to read file license_smg.txt, at the root of this package. It can also be viewed online at http://smf-media.com/smg/license.php (http://smf-media.com/smg/license.php).


Credits


How to upgrade
Uninstall older version
Install the new version
And you are done! There will be no data loss.


Support and updates for the mod can be found at http://smf-media.com or http://simplemachines.org



Add-ons




Converters

Three converters are available for making your evaluation of SMG easier. You can run SMG along with another gallery, they will not conflict with each other.

Requirements

How to convert
Download the desired file (mgconverter_*.php), and upload it to your forum's root where the SSI.php and index.php files are located.
Run it from your browser.
Follow the steps on screen, it should do the conversion by itself.

Note: this will wipe out preexisting SMF Media Gallery items, if there are any. However, your Coppermine or SMF Gallery will remain unaffected before and after the conversion.

mgconverter_cpg.php - Coppermine to SMF Media Gallery converter

What it converts

Note: this is only tested with CPG 1.4.x

mgconverter_sgl.php - SMF Gallery Lite to SMF Media Gallery converter
mgconverter_sgp.php - SMF Gallery Pro to SMF Media Gallery converter

What it converts

Note: it is certified for use with SMF Gallery Lite 1.9 and the equivalent SMF Gallery Pro version, and theoretically should also convert later versions as well.
Title: Re: SMF Media Gallery
Post by: niko on September 09, 2008, 03:34:58 PM
Nice mod. :)
Title: Re: SMF Media Gallery
Post by: [unplugged] on September 09, 2008, 07:40:11 PM
Everything seems to have installed fine. However, when I try to create a new album, i get the following error:

The database value you're trying to insert does not exist: width

Thanks in advance for your help.

EDIT: It seems I only get this error when trying to assign an icon to the album.
Title: Re: SMF Media Gallery
Post by: Bancherd on September 09, 2008, 10:29:05 PM
Great!   :D Is there a way to convert data from an existing SMF Gallery(Lite) database?
Title: Re: SMF Media Gallery
Post by: karlbenson on September 09, 2008, 10:30:32 PM
Bancherd, I don't think he has a way at the minute to convert any existing database data.
Title: Re: SMF Media Gallery
Post by: tk2012 on September 09, 2008, 11:39:33 PM
BRILLIANT! WORTHWHILE!

Thank You.  Thank You.  Thank You. 


This mod should be incorporated into the standard forum structure.  AWESOME!

Title: Re: SMF Media Gallery
Post by: Bancherd on September 09, 2008, 11:44:49 PM
Looks very nice, excellent interface!

I am testing it with SMF2beta4public with the following mods:
PortaMx 0.92.0
The Rules 1.04
More Spiders 1.2
Email Validator 1.0
Auto Embedded Video 3.1.2

Found this error in the error-log when trying to see the stats.

Bancherd

PS.  The directory in which uploaded files are kept is NOT accessible by the public except through the program.
Title: Re: SMF Media Gallery
Post by: Nathaniel on September 09, 2008, 11:50:53 PM
Its good to see this mod approved. Its a good mod. :D

(I should really do some more testing of it. ;) )
Title: Re: SMF Media Gallery
Post by: Soms on September 10, 2008, 04:34:38 AM
I will install this in a moment!
Title: Re: SMF Media Gallery
Post by: Dragooon on September 10, 2008, 05:27:02 AM
I cannot believe it is approved :P

Quote from: SunKing on September 09, 2008, 07:40:11 PM
The database value you're trying to insert does not exist: width
I think I fixed that issue long time back, can you see anything in error log?

@Bancherd I think I fixed that issue as well, I'll see.

Also I am thinking of making converters but ATM it is not possible.

Thank you guys for your comments :)

And you can also get support/updates for this mod at http://smf-media.com

Title: Re: SMF Media Gallery
Post by: Sudhakar Arjunan on September 10, 2008, 07:45:54 AM
Congrates on this cool and worthfull mod.

Hey Dragooon, Thanks for this Excellent mod.

Will try install now in 1.1.6.

Before that, i already have gallery made by vbgamer45 .

So far have 10 + Categories and 4000 + images.

Could i able to convert all the images to the gallery here.
Title: Re: SMF Media Gallery
Post by: damnitmike on September 10, 2008, 07:47:14 AM
From all of us who rely on the knowledgeable community here at SMF for some great mods, our compliments! Very Nice!

I noticed when I installed it, I have 2 buttons now with Galllery on them.

I think it would be a good idea to remind us how to change the button label, to maybe MGallery or Media Gallery....

With 2 great Gallerys, it would give us the possibilities and possibly some more options to figure out some new ways to use both systems at the same time......

Again...my compliments!



Title: Re: SMF Media Gallery
Post by: Manu.G on September 10, 2008, 08:36:56 AM
Hi,

I want to test this Gallery, but when I try to install it in our test forum I get this error message:

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-smf' at line 2
Datei: /is/htdocs/.../.../.../Packages/temp/db_mgallery.php
Zeile: 365

What does it mean?
Title: Re: SMF Media Gallery
Post by: Dragooon on September 10, 2008, 08:58:12 AM
What SMF Version do you use Manu0372?

Quote from: asudhakar on September 10, 2008, 07:45:54 AM
Congrates on this cool and worthfull mod.

Hey Dragooon, Thanks for this Excellent mod.

Will try install now in 1.1.6.

Before that, i already have gallery made by vbgamer45 .

So far have 10 + Categories and 4000 + images.

Could i able to convert all the images to the gallery here.
Currently no, I might work on a converter and thanks for the compliment.
Title: Re: SMF Media Gallery
Post by: Sudhakar Arjunan on September 10, 2008, 09:25:38 AM
Quote from: Dragooon on September 10, 2008, 08:58:12 AM
Currently no, I might work on a converter and thanks for the compliment.

Thank you Dragooon, Will wait till the mod matures and imports my gallery mod to mgallery mod.

Saw the Demo Page and its so great to have mgallery in my forum too.
Title: Re: SMF Media Gallery
Post by: SA™ on September 10, 2008, 12:01:06 PM
very nice thank you i have a problem tho

i added some pic to it but when veiwing gallery home im not seeing the thumbnails where it says Recent Items

also click on the catagry and its the same no thumbnails what wrong with it ?
Title: Re: SMF Media Gallery
Post by: Dragooon on September 10, 2008, 12:21:21 PM
Version of SMF?
Anything in error log?
Does the actual item displays?
Do you have GD on your server?
Title: Re: SMF Media Gallery
Post by: SA™ on September 10, 2008, 12:32:11 PM
version 1.1.6

errors

Guest   Today at 05:29:23 pm 
66.249.72.17     5d35b91edffa681e5a61d0a18e989f6e 
http://sleepy-arcade.ath.cx/dev/portal.php?topic=22.msg1286 
8: Undefined index: mgal_total_comments
File: C:\xampp\htdocs\dev\Sources\Load.php
Line: 1177

   Guest   Today at 05:29:23 pm 
66.249.72.17     5d35b91edffa681e5a61d0a18e989f6e 
http://sleepy-arcade.ath.cx/dev/portal.php?topic=22.msg1286 
8: Undefined index: mgal_total_items
File: C:\xampp\htdocs\dev\Sources\Load.php
Line: 1176

   Guest   Today at 05:29:23 pm 
66.249.72.17     5d35b91edffa681e5a61d0a18e989f6e 
http://sleepy-arcade.ath.cx/dev/portal.php?topic=22.msg1286 
8: Undefined index: mgal_total_comments
File: C:\xampp\htdocs\dev\Sources\Load.php
Line: 1177

   Guest   Today at 05:29:23 pm 
66.249.72.17     5d35b91edffa681e5a61d0a18e989f6e 
http://sleepy-arcade.ath.cx/dev/portal.php?topic=22.msg1286 
8: Undefined index: mgal_total_items
File: C:\xampp\htdocs\dev\Sources\Load.php
Line: 1176

item displays


gd dont know what that is i rum myown server dont think i have is it easy to install?
Title: Re: SMF Media Gallery
Post by: SA™ on September 10, 2008, 12:38:26 PM
ok just tryed in ff and it all works good its gotta be an ie problem
Title: Re: SMF Media Gallery
Post by: Dragooon on September 10, 2008, 12:52:59 PM
Hm seems to be an IE problem as well.
I'll see if I can figure this one out.
Title: Re: SMF Media Gallery
Post by: Dragooon on September 10, 2008, 01:43:16 PM
OK I have fixed this in revision 71(Which'll be SMF Media gallery 1.0.1 later).
To fix this on your installation
Open MGallery.php
Find
$media = new mgal_media_handler;
$media->init($path);

$stats = $media->getStat();
$mime = $media->getMimeType();
$file_name = $filename;

$media->close();
// Send it
header('Pragma: ');
if (!$context['browser']['is_gecko'])
header('Content-Transfer-Encoding: binary');
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 525600 * 60) . ' GMT');
header('Accept-Ranges: bytes');
//header('Connection: close');
//header('Cache-Control: ');
if($file = fopen($path, 'rb')) {
header('Content-type:'.$mime);
header('Content-Length: '.$stats[7]);
header('Content-Disposition: inline; filename='.$file_name);
while(!feof($file))
echo fread($file, 8192);
fclose($file);
} else {
die('Something went wrong...');
}

(It'll  be at the end)
And replace it with
$media = new mgal_media_handler;
$media->init($path);
$mime = $media->getMimeType();
$file_name = $filename;
$media->close();
// Send it
header('Pragma: ');
if (!$context['browser']['is_gecko'])
header('Content-Transfer-Encoding: binary');
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 525600 * 60) . ' GMT');
header('Accept-Ranges: bytes');
//header('Connection: close');
//header('Cache-Control: ');
if($file = file_get_contents($path)) {
header('Content-Type: '.$mime);
header('Content-Disposition: inline; filename='.$file_name);
echo $file;
} else {
die('Something went wrong...');
}
Title: Re: SMF Media Gallery
Post by: SA™ on September 10, 2008, 04:18:50 PM
thanks works greate
Title: Re: SMF Media Gallery
Post by: Garry1953 on September 10, 2008, 06:30:06 PM
Dragooon

Will you be adding the ability to read IPTC info from the image?

P.S. Great Mod. ;)
Title: Re: SMF Media Gallery
Post by: kith on September 10, 2008, 08:04:13 PM
Just installed this on SMF 2 Beta 4
Also have the thumbnail issue but will try the fix above.

If I add an icon when I create an album all is fine.
If I go to change an icon after the album is created I get an error

The database value you're trying to insert does not exist: id_album

Any idea why?

Title: Re: SMF Media Gallery
Post by: Nibogo on September 10, 2008, 08:36:46 PM
Really nice , great job!!!
Title: Re: SMF Media Gallery
Post by: 4b11l on September 10, 2008, 10:19:36 PM
I have SMF Gallery (free version) at the moment. Can I install this one and run them side by side?
Title: Re: SMF Media Gallery
Post by: CG Icon on September 10, 2008, 10:59:03 PM
Is there a way for a members submissions to a gallery also appear in his / her profile ?

Idea for the future:
In profile, not only show thumbnails of a users gallery,, but also images from his / her fellow group members galleries as a "members Network" or as an extension to the Buddy List.
Title: Re: SMF Media Gallery
Post by: Dragooon on September 11, 2008, 05:19:39 AM
Quote from: Garry1953 on September 10, 2008, 06:30:06 PM
Dragooon

Will you be adding the ability to read IPTC info from the image?

P.S. Great Mod. ;)
I'll see. Thanks :)

Quote from: 4b11l on September 10, 2008, 10:19:36 PM
I have SMF Gallery (free version) at the moment. Can I install this one and run them side by side?
Yes you can, there shouldn't be any conflictions but the images of SMF Gallery lite won't work in this gallery(I'll soon be making a converter).

Quote from: CG Icon on September 10, 2008, 10:59:03 PM
Is there a way for a members submissions to a gallery also appear in his / her profile ?
I think I can make that as an addon.
Title: Re: SMF Media Gallery
Post by: Özgür on September 11, 2008, 11:27:06 AM
i'm trying added metacafe video but submit click. get this error
"The embed URL was either bad or was from a non-supported site"

any site and this error. google video does working.
Title: Re: SMF Media Gallery
Post by: Dragooon on September 11, 2008, 11:46:13 AM
What is the URL you were trying to add?
Title: Re: SMF Media Gallery
Post by: Sakae on September 11, 2008, 12:21:34 PM
Hi. Installed this awesome mod and got it working (see it here (http://www.tigrelog.com.br/index.php?action=mgallery)).

But I can't MOVE any album (re-organize as first, second etc). I click on "Move" and it gets bold, but I don't where to click then. How should I do it?

edit: NEVERMIND... I upload the images/ folder to my theme and got it working :)
Title: Re: SMF Media Gallery
Post by: Dragooon on September 11, 2008, 12:31:36 PM
When you click move, There should be links appearing as images(Up, Down and child of) besides every other album.(Sort of like you move SMF's Boards).
Title: Re: SMF Media Gallery
Post by: Marcus Forsberg on September 11, 2008, 01:07:55 PM
Nice mod!

Right now I'm using SMF Gallery.
My users has posted a lot of pictures to the gallery.
If I install this mod, would it be possible to make the old pictures display in this gallery?
or will my users have to uplaod them agian? (hundreds of pictures)
Title: Re: SMF Media Gallery
Post by: Dragooon on September 11, 2008, 01:13:51 PM
Currently no but I'll soon be working on a converter which'll convert SMF Gallery to SMF Media gallery.
Title: Re: SMF Media Gallery
Post by: Marcus Forsberg on September 11, 2008, 01:14:46 PM
Okey :D
I'll ceep my eyes open
Title: Re: SMF Media Gallery
Post by: Özgür on September 11, 2008, 01:27:09 PM
Quote from: Dragooon on September 11, 2008, 11:46:13 AM
What is the URL you were trying to add?

etc: http://www.metacafe.com/watch/yt-jRYDetbwegs/metallica_enter_sandman/

http://www.dailymotion.com/video/x5tavz_grip-the-moment_shortfilms
Title: Re: SMF Media Gallery
Post by: Dragooon on September 11, 2008, 01:32:10 PM
Reported in bugtracker, I'll look at it soon.
Title: Re: SMF Media Gallery
Post by: 4b11l on September 11, 2008, 01:35:35 PM
Currently,

The width limit in settings is not working properly. I've set it to 900, but no avail. It seems to have shown the image full sizes.
In regards to that last sentence, it seems the lightbox isn't working correctly either. I am assuming you are suppose to see the thumbnail, and once you click, it will show the full size. It seems to be showing the images full size.

Additionally, I have this huge gray box/area above the galleries in the main page (mgallery). Is it suppose to be there?
Title: Re: SMF Media Gallery
Post by: Dragooon on September 11, 2008, 01:43:02 PM
The width limit is the maximum width a uploading image can have if it is detectable.
What browser do you use?
And when you click a thumbnail while viewing an album, it should lead you to the item.
Do you have a SS of the huge grey area?
Title: Re: SMF Media Gallery
Post by: 4b11l on September 11, 2008, 01:56:44 PM
So, certain images aren't detectable then?
I am using Firefox.
On the thumbnail, is it suppose to be of the picture? Or just a little camera. Because that's all I have.
The SS, no, but you can view it here:
http://9glancers.com/index.php?action=mgallery
Title: Re: SMF Media Gallery
Post by: Marsh on September 11, 2008, 02:04:39 PM
Great mod thank you very much.

Though even though i have the permissions i cant figure out how to comment? im also the admin

www.freemmorpgmaker.com/smf
Title: Re: SMF Media Gallery
Post by: Dragooon on September 11, 2008, 02:13:14 PM
Quote from: 4b11l on September 11, 2008, 01:56:44 PM
So, certain images aren't detectable then?
I am using Firefox.
On the thumbnail, is it suppose to be of the picture? Or just a little camera. Because that's all I have.
The SS, no, but you can view it here:
http://9glancers.com/index.php?action=mgallery
Go to Admin > Gallery > About
There see if "Yes" is front of any one of the fol. - GD2/Imagick/MagickWand
Also make sure that you've uploaded the mgallery folder and images/mgallery folder into your theme(Found in the archive in /Themes/default as they contain some important functions including lightbox.

Quote from: Marsh on September 11, 2008, 02:04:39 PM
Great mod thank you very much.

Though even though i have the permissions i cant figure out how to comment? im also the admin

www.freemmorpgmaker.com/smf
There would be a image with a link to comment in the "Item's info." block while viewing an item.
Title: Re: SMF Media Gallery
Post by: 4b11l on September 11, 2008, 02:40:01 PM
No is next to all 3 of those.
The folders are in the right place.
Title: Re: SMF Media Gallery
Post by: Marsh on September 11, 2008, 03:04:55 PM
Thanks, the images didnt copy to my new theme so i just copied them over myself and its working great.

Great mod thanks :)
Title: Re: SMF Media Gallery
Post by: Garry1953 on September 11, 2008, 09:28:30 PM
Dragooon
Is it possible to increase the Text characters from 25 in the
"Item's Title:"
To perhaps 50?

I find the default title a little to short for my art forum.
Title: Re: SMF Media Gallery
Post by: Dragooon on September 11, 2008, 09:32:54 PM
Quote from: 4b11l on September 11, 2008, 02:40:01 PM
No is next to all 3 of those.
The folders are in the right place.
Then the image sizes won't be detectable making the size limit and proper resizes almost useless.
You can ask your host to install GD2(It is pretty common module installed on almost every host).

And does the grey box also appears in default theme?

Quote from: Garry1953 on September 11, 2008, 09:28:30 PM
Dragooon
Is it possible to increase the Text characters from 25 in the
"Item's Title:"
To perhaps 50?

I find the default title a little to short for my art forum.
I'll increase it too 100 in 1.0.1 :).
Title: Re: SMF Media Gallery
Post by: Garry1953 on September 11, 2008, 09:49:09 PM
Fantastic
Looking forward to next release.
Title: Re: SMF Media Gallery
Post by: Dragooon on September 11, 2008, 09:51:48 PM
It'll probably be in a day or two.

Thank you :)
Title: Re: SMF Media Gallery
Post by: djrem on September 11, 2008, 10:14:25 PM
im getting 406 errors when ever i try and click an album


LOOKS LIKE:
QuoteNot Acceptable

An appropriate representation of the requested resource /forum/index.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Installed here:
http://voguefm.co.uk/forum/index.php?action=mgallery


Installed with no errors so dont understand what could be wrong.

Cheers for any help people :)
Title: Re: SMF Media Gallery
Post by: ib2loud on September 11, 2008, 10:35:27 PM
Thank you for the mod, I am trying it out right now. I've had good success with the gallery lite program but i was wanting to do videos. I was wondering if there's a feature or future update that will do image watermarking?

thanks again!
Title: Re: SMF Media Gallery
Post by: Dragooon on September 12, 2008, 04:41:09 AM
Quote from: ib2loud on September 11, 2008, 10:35:27 PM
Thank you for the mod, I am trying it out right now. I've had good success with the gallery lite program but i was wanting to do videos. I was wondering if there's a feature or future update that will do image watermarking?

thanks again!
Currently watermarking feature is not available.

Quote from: djrem on September 11, 2008, 10:14:25 PM
im getting 406 errors when ever i try and click an album


LOOKS LIKE:
QuoteNot Acceptable

An appropriate representation of the requested resource /forum/index.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Installed here:
http://voguefm.co.uk/forum/index.php?action=mgallery


Installed with no errors so dont understand what could be wrong.

Cheers for any help people :)
Anything in forum error log?
Anything in server error log?
Have you tried asking your host?
Title: Re: SMF Media Gallery
Post by: djrem on September 12, 2008, 09:45:23 AM
Server Error Logs:
[Fri Sep 12 09:43:56 2008] [error] [client 89.241.230.124] File does not exist: /home/voguefm/public_html/406.shtml, referer: http://voguefm.co.uk/forum/index.php?action=mgallery


There are no Errors relating to MGallery on my SMF Error log though :S
Title: Re: SMF Media Gallery
Post by: Dragooon on September 12, 2008, 09:48:37 AM
Hm that doesn't help. I think it is a host issue has on 3 different servers I tried this and couldn't get that to happen.
Title: Re: SMF Media Gallery
Post by: mella on September 12, 2008, 11:32:33 AM
I am currently running smf 1.6 with the red darkness theme and I have been trying to use the lite gallery, I have been unable to get that to work and installed smf media gallery, instead. When I apply the mod it says it was successful but I cannot find a link to it anywhere, no buttons in admin, no sign that it was installed at all? any ideas?
Title: Re: SMF Media Gallery
Post by: Dragooon on September 12, 2008, 01:09:34 PM
Does the same happens in default theme?
Title: Re: SMF Media Gallery
Post by: mella on September 12, 2008, 03:02:06 PM
Yes, I changed to the default theme, it's no different. I can find nothing anywhere that shows the mod has been installed at all, though it says it has been.
Title: Re: SMF Media Gallery
Post by: ib2loud on September 12, 2008, 03:05:16 PM
after some testing i am very impressed. it works great on my theme so far. I am having a little difficulty with the video part. does it play .flv files? One other thing is it possible to upload a screenshot of the video to show as a thumbnail?

sorry for all the requests, especially on a free item but this is showing so much potential i am excited about it.
Title: Re: SMF Media Gallery
Post by: Marcus Forsberg on September 12, 2008, 03:26:24 PM
When trying to approve comments, albums and items, and deleting reported itemes, this shows up:

QuoteFatal error:  Function name must be a string in /home/simmarcu/public_html/Sources/MGallery-Admin.php on line 884
Title: Re: SMF Media Gallery
Post by: Dragooon on September 12, 2008, 09:47:23 PM
@Nascar,this has been fixed for 1.0.1

Currently its not possible to add custom thumbs, i'll see to it later.
Title: Re: SMF Media Gallery
Post by: 4b11l on September 13, 2008, 12:48:28 AM
Quote from: Dragooon on September 11, 2008, 09:32:54 PM
Quote from: 4b11l on September 11, 2008, 02:40:01 PM
No is next to all 3 of those.
The folders are in the right place.
Then the image sizes won't be detectable making the size limit and proper resizes almost useless.
You can ask your host to install GD2(It is pretty common module installed on almost every host).

And does the grey box also appears in default theme?

The gray box doesn't seem to appear in the default theme. Any ideas why?
Title: Re: SMF Media Gallery
Post by: tk2012 on September 13, 2008, 01:15:03 AM
I got the same error that Sunking got on page 1.

Then, I looked in my error log and found 1 Critical Error. 

I'm using v2.0 b3.1
default theme

the error info is below:

http://www.motorstorm-rpms.org/community/index.php?action=mgallery;sa=useralbums;do=add

The database value you're trying to insert does not exist: width

Function: mgal_db_insert

File: /var/www/html/community/Sources/Subs-MGallery.php  (line 136)


Here is the code:
116:  }
117:
118: function mgal_db_insert($table, $columns, $data, $file, $line, $ignore = false) {
119: // Funtion used for inserting some data to some table
120: global $context, $db_prefix, $mgalFunc, $smcFunc;
121: if(empty($table) || empty($columns) || empty($data))
122: return false;
123: $insert = $ignore ? 'INSERT IGNORE' : 'INSERT';
124: if($context['is_smf2']) {
125: $columns_2 = array();
126: // OK Convert them to a proper SMF 2.0 compatible format
127: $count = count($columns);
128: foreach($columns as $k => $v)
129: $columns_2[$v] = is_int($data[$k]) ? 'int' : 'string';
130: $data_2 = array();
131: // Convert the data now
132: foreach($data as $v) {
133: $data_2[] = $v;
134: }   
135:
==>136: return $smcFunc['db_insert']($ignore ? 'IGNORE' : '', $table, $columns_2, $data_2, null);
137: }
138: // OK this seems to be SMF 1.1, well, do it this way then
139: $table = str_replace('{db_prefix}', $db_prefix, $table);
140:
141: $query_data = array_combine($columns, $data);
142: $insert_columns = array();
143: $insert_data = array();
144: // Just so that we get the things at the right place
145: foreach($query_data as $c => $d) {
146: $insert_columns[] = $c;
147: $insert_data[] = "'$d'";
148: }
149: // Insert it!
150: $mgalFunc['db_query'](
151: "".$insert." INTO ".$table."
152: (".implode(',',$insert_columns).")
153: VALUES
154: (".implode(',',$insert_data).")", array(),$file, $line, true);
155:
156: }

Title: Re: SMF Media Gallery
Post by: ianus on September 13, 2008, 01:56:31 AM
Greetings!

This seems to be a very nice mod and I would like to test (and use) it.
But before installation ... some questions.

Prologue:
I have two mods running, the Integrate Lightbox (http://custom.simplemachines.org/mods/index.php?mod=1158) and YouTube BBCode (http://custom.simplemachines.org/mods/index.php?mod=936).
In this combination the YouTube mod isn't working under some circumstances.
(Description: Re: YouTube BBCode v2.3 (http://www.simplemachines.org/community/index.php?topic=197280.msg1680258#msg1680258) (see alsoRe: Integrate Lightbox (http://www.simplemachines.org/community/index.php?topic=233637.msg1647134#msg1647134)))

Your mod seems to offer both features, include videos and resize images with lightbox.

So, the questions.
- Have somebody notice problems with integration of videos in the gallery while using the lightbox feature for gallery images?
- Is it possible to show images hosted with .imageshack.us inside the gallery (like videos hosted on youtube)?
- Is it necessary to have all three mod installed or
-- will the lightbox feature work also for images which are included inside a post?
--  is it possible to use the "include video" feature inside a post?

The first question is crucial and hopefully somebody have some knowledge and can give an answer.
Thanks in advance.
ianus
Title: Re: SMF Media Gallery
Post by: Dragooon on September 13, 2008, 04:51:12 AM
Quote from: tk2012 on September 13, 2008, 01:15:03 AM
I got the same error that Sunking got on page 1.

Then, I looked in my error log and found 1 Critical Error. 

I'm using v2.0 b3.1
default theme

the error info is below:

http://www.motorstorm-rpms.org/community/index.php?action=mgallery;sa=useralbums;do=add

The database value you're trying to insert does not exist: width

Function: mgal_db_insert

File: /var/www/html/community/Sources/Subs-MGallery.php  (line 136)


Here is the code:
116:  }
117:
118: function mgal_db_insert($table, $columns, $data, $file, $line, $ignore = false) {
119: // Funtion used for inserting some data to some table
120: global $context, $db_prefix, $mgalFunc, $smcFunc;
121: if(empty($table) || empty($columns) || empty($data))
122: return false;
123: $insert = $ignore ? 'INSERT IGNORE' : 'INSERT';
124: if($context['is_smf2']) {
125: $columns_2 = array();
126: // OK Convert them to a proper SMF 2.0 compatible format
127: $count = count($columns);
128: foreach($columns as $k => $v)
129: $columns_2[$v] = is_int($data[$k]) ? 'int' : 'string';
130: $data_2 = array();
131: // Convert the data now
132: foreach($data as $v) {
133: $data_2[] = $v;
134: }  
135:
==>136: return $smcFunc['db_insert']($ignore ? 'IGNORE' : '', $table, $columns_2, $data_2, null);
137: }
138: // OK this seems to be SMF 1.1, well, do it this way then
139: $table = str_replace('{db_prefix}', $db_prefix, $table);
140:
141: $query_data = array_combine($columns, $data);
142: $insert_columns = array();
143: $insert_data = array();
144: // Just so that we get the things at the right place
145: foreach($query_data as $c => $d) {
146: $insert_columns[] = $c;
147: $insert_data[] = "'$d'";
148: }
149: // Insert it!
150: $mgalFunc['db_query'](
151: "".$insert." INTO ".$table."
152: (".implode(',',$insert_columns).")
153: VALUES
154: (".implode(',',$insert_data).")", array(),$file, $line, true);
155:
156: }


I'll see to that issue

Quote from: ianus on September 13, 2008, 01:56:31 AM
Greetings!

This seems to be a very nice mod and I would like to test (and use) it.
But before installation ... some questions.

Prologue:
I have two mods running, the Integrate Lightbox (http://custom.simplemachines.org/mods/index.php?mod=1158) and YouTube BBCode (http://custom.simplemachines.org/mods/index.php?mod=936).
In this combination the YouTube mod isn't working under some circumstances.
(Description: Re: YouTube BBCode v2.3 (http://www.simplemachines.org/community/index.php?topic=197280.msg1680258#msg1680258) (see alsoRe: Integrate Lightbox (http://www.simplemachines.org/community/index.php?topic=233637.msg1647134#msg1647134)))

Your mod seems to offer both features, include videos and resize images with lightbox.

So, the questions.
- Have somebody notice problems with integration of videos in the gallery while using the lightbox feature for gallery images?
- Is it possible to show images hosted with .imageshack.us inside the gallery (like videos hosted on youtube)?
- Is it necessary to have all three mod installed or
-- will the lightbox feature work also for images which are included inside a post?
--  is it possible to use the "include video" feature inside a post?

The first question is crucial and hopefully somebody have some knowledge and can give an answer.
Thanks in advance.
ianus

1) I haven't so far :)
2) Currently no, might be later but not now
3) Gallery is a standalone, it has no dependencies.
4) No, It is only for the gallery and not for posts
5) Not as of now.
Title: Re: SMF Media Gallery
Post by: kith on September 13, 2008, 06:32:06 AM
Quote from: kith on September 10, 2008, 08:04:13 PM
Just installed this on SMF 2 Beta 4
Also have the thumbnail issue but will try the fix above.

If I add an icon when I create an album all is fine.
If I go to change an icon after the album is created I get an error

The database value you're trying to insert does not exist: id_album

Any idea why?



Any ideas guys?
Have uninstalled for now but would love to use this.
Title: Re: SMF Media Gallery
Post by: Mouthrax on September 13, 2008, 08:59:57 AM
Hi,

Love the mod thank you :)

Could you please please look at a button to copy an image code as BBcode [img][/img] like you have in photobucket for instance?

It would really make my day as I have a forum that sees a lot of the images being put into the gallery posted into the forum.

Thanks
Dean
Title: Re: SMF Media Gallery
Post by: Dragooon on September 13, 2008, 11:35:25 AM
Quote from: kith on September 13, 2008, 06:32:06 AM
Quote from: kith on September 10, 2008, 08:04:13 PM
Just installed this on SMF 2 Beta 4
Also have the thumbnail issue but will try the fix above.

If I add an icon when I create an album all is fine.
If I go to change an icon after the album is created I get an error

The database value you're trying to insert does not exist: id_album

Any idea why?



Any ideas guys?
Have uninstalled for now but would love to use this.
I'll see to it.

Quote from: Mouthrax on September 13, 2008, 08:59:57 AM
Hi,

Love the mod thank you :)

Could you please please look at a button to copy an image code as BBcode [img][/img] like you have in photobucket for instance?

It would really make my day as I have a forum that sees a lot of the images being put into the gallery posted into the forum.

Thanks
Dean
Nice suggestion, I'll add it later.
Title: Re: SMF Media Gallery
Post by: qubbah on September 13, 2008, 12:01:51 PM
Quote from: Dragooon on September 10, 2008, 01:43:16 PM
OK I have fixed this in revision 71(Which'll be SMF Media gallery 1.0.1 later).
To fix this on your installation
Open MGallery.php
Find
$media = new mgal_media_handler;
$media->init($path);

$stats = $media->getStat();
$mime = $media->getMimeType();
$file_name = $filename;

$media->close();
// Send it
header('Pragma: ');
if (!$context['browser']['is_gecko'])
header('Content-Transfer-Encoding: binary');
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 525600 * 60) . ' GMT');
header('Accept-Ranges: bytes');
//header('Connection: close');
//header('Cache-Control: ');
if($file = fopen($path, 'rb')) {
header('Content-type:'.$mime);
header('Content-Length: '.$stats[7]);
header('Content-Disposition: inline; filename='.$file_name);
while(!feof($file))
echo fread($file, 8192);
fclose($file);
} else {
die('Something went wrong...');
}

(It'll  be at the end)
And replace it with
$media = new mgal_media_handler;
$media->init($path);
$mime = $media->getMimeType();
$file_name = $filename;
$media->close();
// Send it
header('Pragma: ');
if (!$context['browser']['is_gecko'])
header('Content-Transfer-Encoding: binary');
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 525600 * 60) . ' GMT');
header('Accept-Ranges: bytes');
//header('Connection: close');
//header('Cache-Control: ');
if($file = file_get_contents($path)) {
header('Content-Type: '.$mime);
header('Content-Disposition: inline; filename='.$file_name);
echo $file;
} else {
die('Something went wrong...');
}


is this change for both in theme and sources folder?
Title: Re: SMF Media Gallery
Post by: Dragooon on September 13, 2008, 12:03:56 PM
There is only one MGallery.php in Sources folder :).
Title: Re: SMF Media Gallery
Post by: qubbah on September 13, 2008, 12:06:06 PM
hehe... sorry, miss looking.. there only one file named MGallery.
Title: Re: SMF Media Gallery
Post by: 4fit? on September 13, 2008, 03:00:54 PM
Nice mod.  Any chance of adding in an automatic resize of images that are dimensionally too large?

Also, whenever, I upload an mp3 file, the page seems to process for a couple minutes and then gives the message below.  Any ideas?  I've got the max size set to 15000kb and the file is not even 1/3rd of that.

"There was a error in uploading, please try again or contact the administrator"
Title: Re: SMF Media Gallery
Post by: 4b11l on September 13, 2008, 03:20:43 PM

Quote from: Dragooon on September 11, 2008, 09:32:54 PM
Quote from: 4b11l on September 11, 2008, 02:40:01 PM
No is next to all 3 of those.
The folders are in the right place.
Then the image sizes won't be detectable making the size limit and proper resizes almost useless.
You can ask your host to install GD2(It is pretty common module installed on almost every host).

And does the grey box also appears in default theme?

The gray box doesn't seem to appear in the default theme. Any ideas why?
Title: Re: SMF Media Gallery
Post by: djrem on September 13, 2008, 03:45:15 PM
Quote from: 4fit? on September 13, 2008, 03:00:54 PM
Nice mod.  Any chance of adding in an automatic resize of images that are dimensionally too large?

Also, whenever, I upload an mp3 file, the page seems to process for a couple minutes and then gives the message below.  Any ideas?  I've got the max size set to 15000kb and the file is not even 1/3rd of that.

"There was a error in uploading, please try again or contact the administrator"

CHMODed the upload folder to 777 ?
Title: Re: SMF Media Gallery
Post by: 4fit? on September 13, 2008, 03:53:11 PM
Just realized something else.  Apostrophes in the album titles cause an SQL error to be generated.  If they are manually escaped it shows as 3 forward slashes (ex: Members\\\'s Rides).  It is also doing the 3 forward slash thing when a manually-escaped apostrophe is used in the description field.  This is probably happening in the media title/description areas as well, but I haven't tested that.
Title: Re: SMF Media Gallery
Post by: 4fit? on September 13, 2008, 04:01:34 PM
Quote from: djrem on September 13, 2008, 03:45:15 PM
CHMODed the upload folder to 777 ?
Made no difference.  Same error received.  However, it lets me upload images into a CHMOD 755 folder just fine.
Title: Re: SMF Media Gallery
Post by: 4fit? on September 13, 2008, 04:10:31 PM
As a enhancement, would it be possible to add support for embedding videos from StreetFire.net (http://streetfire.net/)?
Title: Re: SMF Media Gallery
Post by: Bugpac ™ on September 13, 2008, 05:19:09 PM
I have installed in default theme on 1.1.6, it doesnt seem to be working, there is no gallery in the menu...But it did create a spce between 2 other buttons...
Title: Re: SMF Media Gallery
Post by: Dragooon on September 13, 2008, 09:56:24 PM
Quote from: 4fit? on September 13, 2008, 03:00:54 PM
Nice mod.  Any chance of adding in an automatic resize of images that are dimensionally too large?

Also, whenever, I upload an mp3 file, the page seems to process for a couple minutes and then gives the message below.  Any ideas?  I've got the max size set to 15000kb and the file is not even 1/3rd of that.

"There was a error in uploading, please try again or contact the administrator"
Make sure that the upload_max_filesize of php settings is also that large. Since if it is not above 15 Megs, It won't work. It really doesn't have any issues with gallery. About the resize image, I'll see thanks :).

Quote from: Bugpac ™ on September 13, 2008, 05:19:09 PM
I have installed in default theme on 1.1.6, it doesnt seem to be working, there is no gallery in the menu...But it did create a spce between 2 other buttons...
Make sure you use "English" as your language or copy strings from Modifications.english.php to Modifications.<your lang>.php

Quote from: 4fit? on September 13, 2008, 04:10:31 PM
As a enhancement, would it be possible to add support for embedding videos from StreetFire.net (http://streetfire.net/)?
I'll see.

Quote from: 4fit? on September 13, 2008, 03:53:11 PM
Just realized something else.  Apostrophes in the album titles cause an SQL error to be generated.  If they are manually escaped it shows as 3 forward slashes (ex: Members\\\'s Rides).  It is also doing the 3 forward slash thing when a manually-escaped apostrophe is used in the description field.  This is probably happening in the media title/description areas as well, but I haven't tested that.
I'll see.

Quote from: 4b11l on September 13, 2008, 03:20:43 PM

Quote from: Dragooon on September 11, 2008, 09:32:54 PM
Quote from: 4b11l on September 11, 2008, 02:40:01 PM
No is next to all 3 of those.
The folders are in the right place.
Then the image sizes won't be detectable making the size limit and proper resizes almost useless.
You can ask your host to install GD2(It is pretty common module installed on almost every host).

And does the grey box also appears in default theme?

The gray box doesn't seem to appear in the default theme. Any ideas why?
Not really, I think you should ask the theme author.
Title: Re: SMF Media Gallery
Post by: Dragooon on September 13, 2008, 09:58:08 PM
Quote from: kith on September 13, 2008, 06:32:06 AM
Quote from: kith on September 10, 2008, 08:04:13 PM
Just installed this on SMF 2 Beta 4
Also have the thumbnail issue but will try the fix above.

If I add an icon when I create an album all is fine.
If I go to change an icon after the album is created I get an error

The database value you're trying to insert does not exist: id_album

Any idea why?



Any ideas guys?
Have uninstalled for now but would love to use this.
I have fixed that issue and several others as well in 1.0.1. I am planning on releasing it later today.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 14, 2008, 04:38:05 AM
Uploaded 1.0.1
This fixed all the issues reported so far.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Marcus Forsberg on September 14, 2008, 06:28:57 AM
Hi again!

I don't want to stress you, but when will that converter from SMF Gallery be finnished?
My users really want this new gallery as soon as possible :)
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 14, 2008, 06:55:55 AM
I cannot say.
I have started work on it but it is nowhere near finish yet plus, my exams are on my head.

So you'll be requiring to wait for a while.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Anthems on September 14, 2008, 07:38:52 AM
The images that you put in the gallery have to be hosted in your forum server, or it accepts links from other servers like imageshack (for example)?
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Bugpac ™ on September 14, 2008, 07:57:56 AM
Seems to have worked for me that time... ;D
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Bugpac ™ on September 14, 2008, 08:09:36 AM
Can it show random thumbnails on the index?
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 14, 2008, 08:16:17 AM
Quote from: Anthems on September 14, 2008, 07:38:52 AM
The images that you put in the gallery have to be hosted in your forum server, or it accepts links from other servers like imageshack (for example)?
Currently imageshack is not supported.

Quote from: Bugpac ™ on September 14, 2008, 08:09:36 AM
Can it show random thumbnails on the index?
Go to Admin > Gallery > Settings, and set "Random item limit" to more than 0.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Bugpac ™ on September 14, 2008, 08:55:27 AM
did that but it just shows it randomly in the gallery, Id like to see it in my index page...I may have to fooled with it enuff yet...
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 14, 2008, 09:51:06 AM
Ah, that'd require some custom code blocks.
I may make some later.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: cmedic on September 14, 2008, 10:21:03 AM
Hey Great Mod!! but now I am getting the following error when trying to upload a pic
I am running v1.1.6 in the default theme.

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/Dir_1','1')' at line 4
File: /under14seconds/forum/Sources/MGallery.php
Line: 1160

I un-installed and re-installed but it still gives the error

thanks in advance

cmedic
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Bugpac ™ on September 14, 2008, 11:06:23 AM
Quote from: Dragooon on September 14, 2008, 09:51:06 AM
Ah, that'd require some custom code blocks.
I may make some later.

Id just like to have a small thumbnail section at the bottom, or down one side showcasing 5 or so pictures, at the same time i would like to have all the members able to see the thumbs, but only specific membergroups able to view the gallery...
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 14, 2008, 11:08:05 AM
Quote from: cmedic on September 14, 2008, 10:21:03 AM
Hey Great Mod!! but now I am getting the following error when trying to upload a pic
I am running v1.1.6 in the default theme.

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/Dir_1','1')' at line 4
File: /under14seconds/forum/Sources/MGallery.php
Line: 1160

I un-installed and re-installed but it still gives the error

thanks in advance

cmedic
Open Settings.php and add
$db_show_debug = true;
Anywhere after <?php and before ?>
And then post the error.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: cmedic on September 14, 2008, 11:31:20 AM
Quote from: Dragooon on September 14, 2008, 11:08:05 AM
Quote from: cmedic on September 14, 2008, 10:21:03 AM
Hey Great Mod!! but now I am getting the following error when trying to upload a pic
I am running v1.1.6 in the default theme.

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/Dir_1','1')' at line 4
File: /under14seconds/forum/Sources/MGallery.php
Line: 1160

I un-installed and re-installed but it still gives the error

thanks in advance

cmedic
Open Settings.php and add
$db_show_debug = true;
Anywhere after <?php and before ?>
And then post the error.

Ok here is the latest after editing the settings .php

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/Dir_1','1')' at line 4
File: /under14seconds/forum/Sources/MGallery.php
Line: 1160

INSERT INTO smf_mgallery_files
(filesize,filename,width,height,directory,id_album)
VALUES
('266045','1967 Camaro SS fsvd_2=KRM.jpg','1280','960','albums/Camaro's_1/Dir_1','1')
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 14, 2008, 12:02:27 PM
Open Subs-MGallery.php
Find
return $path_to_dir;
Replace it with
return addslashes($path_to_dir);
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: cmedic on September 14, 2008, 12:15:22 PM
Quote from: Dragooon on September 14, 2008, 12:02:27 PM
Open Subs-MGallery.php
Find
return $path_to_dir;
Replace it with
return addslashes($path_to_dir);

almost there!

now I am getting Upload directory is not writable . I check the dir and they are set at 775
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 14, 2008, 01:09:44 PM
Try making it 777.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Özgür on September 14, 2008, 01:31:27 PM
Dragooon my error still continue. (dailymotion and other site..)
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 14, 2008, 01:32:55 PM
OK I'll see. Thanks for the report :).
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: tk2012 on September 14, 2008, 11:18:05 PM
I went ahead and re-installed the new version... I'm still getting a critical error   :-[


v2.0 b3.1
default theme

http://www.motorstorm-rpms.org/community/index.php?action=mgallery;sa=useralbums;do=edit;id=1
The database value you're trying to insert does not exist: width
Function: mgal_db_insert
File: /var/www/html/community/Sources/Subs-MGallery.php
Line: 136


116:  }
117:
118: function mgal_db_insert($table, $columns, $data, $file, $line, $ignore = false) {
119: // Funtion used for inserting some data to some table
120: global $context, $db_prefix, $mgalFunc, $smcFunc;
121: if(empty($table) || empty($columns) || empty($data))
122: return false;
123: $insert = $ignore ? 'INSERT IGNORE' : 'INSERT';
124: if($context['is_smf2']) {
125: $columns_2 = array();
126: // OK Convert them to a proper SMF 2.0 compatible format
127: $count = count($columns);
128: foreach($columns as $k => $v)
129: $columns_2[$v] = is_int($data[$k]) ? 'int' : 'string';
130: $data_2 = array();
131: // Convert the data now
132: foreach($data as $v) {
133: $data_2[] = $v;
134: }   
135:
==>136: return $smcFunc['db_insert']($ignore ? 'IGNORE' : '', $table, $columns_2, $data_2, null);
137: }
138: // OK this seems to be SMF 1.1, well, do it this way then
139: $table = str_replace('{db_prefix}', $db_prefix, $table);
140:
141: $query_data = array_combine($columns, $data);
142: $insert_columns = array();
143: $insert_data = array();
144: // Just so that we get the things at the right place
145: foreach($query_data as $c => $d) {
146: $insert_columns[] = $c;
147: $insert_data[] = "'$d'";
148: }
149: // Insert it!
150: $mgalFunc['db_query'](
151: "".$insert." INTO ".$table."
152: (".implode(',',$insert_columns).")
153: VALUES
154: (".implode(',',$insert_data).")", array(),$file, $line, true);
155:
156: }
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: christinedlrp on September 15, 2008, 01:38:22 AM
I get the same error about not being able to upload...I tried to change permissions to 777 but it didn't let me change permissions.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: tuko on September 15, 2008, 03:18:31 AM
Thanks Dragoon for the great mod.

Just installed it on SMF 2 Beta 4 without any issues, works a charm.  ;)

One request or idea though, when a viewer is in a users album, can there be next and previous buttons for viewing of the images in that album. 

The users of our forum will loose interest very fast if they have to go in and out of an album to see the images within.


Cheers,
Todd.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Bancherd on September 15, 2008, 04:25:21 AM
Quote from: christinedlrp on September 15, 2008, 01:38:22 AM
I get the same error about not being able to upload...I tried to change permissions to 777 but it didn't let me change permissions.

Ditto
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: B.SkiLLs on September 15, 2008, 05:52:20 AM
What up all, GREAT freakin Mod. I ditched my old gallery for thios one but i have a problem here.

same as below
Re: SMF Media Gallery (http://www.simplemachines.org/community/index.php?topic=260821.msg1706120#msg1706120)

using custom theme and i can not find a link or button to get to the gallery at all.

I fiond and know the URL to get to it, but how do i add a button on my top tabs for the gallery. My other theme on my other forum has a gallerry button already so it works fine. But this theme does not. How can i add it.

im using 1.1.6 - english



Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: tuko on September 15, 2008, 06:27:51 AM
Quote from: B.SkiLLs on September 15, 2008, 05:52:20 AM
What up all, GREAT freakin Mod. I ditched my old gallery for thios one but i have a problem here.

same as below
Re: SMF Media Gallery (http://www.simplemachines.org/community/index.php?topic=260821.msg1706120#msg1706120)

using custom theme and i can not find a link or button to get to the gallery at all.

I fiond and know the URL to get to it, but how do i add a button on my top tabs for the gallery. My other theme on my other forum has a gallerry button already so it works fine. But this theme does not. How can i add it.

im using 1.1.6 - english





Your using a custom theme like I am so you have to add the button yourself to the image folder. Make sure that you name the button correctly "mgallery".


Todd.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: B.SkiLLs on September 15, 2008, 06:39:01 AM
Quote from: tuko on September 15, 2008, 06:27:51 AM
Quote from: B.SkiLLs on September 15, 2008, 05:52:20 AM
What up all, GREAT freakin Mod. I ditched my old gallery for thios one but i have a problem here.

same as below
Re: SMF Media Gallery (http://www.simplemachines.org/community/index.php?topic=260821.msg1706120#msg1706120)

using custom theme and i can not find a link or button to get to the gallery at all.

I fiond and know the URL to get to it, but how do i add a button on my top tabs for the gallery. My other theme on my other forum has a gallerry button already so it works fine. But this theme does not. How can i add it.

im using 1.1.6 - english





Your using a custom theme like I am so you have to add the button yourself to the image folder. Make sure that you name the button correctly "mgallery".


Todd.

i dont understand what you mean. I am talking about the top tab. Not just the little camera image. I mean a link to it in the top link tabs.

can you please explain a little better.

ps
i did move that little cam image into the themes image folder and still nothing though.



Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: B.SkiLLs on September 15, 2008, 06:56:49 AM
Plus move the whole folders as said in other post and still nothing.

On the default theme the top tab link / button shows, but not on my theme it doesnt.

Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: B.SkiLLs on September 15, 2008, 07:48:09 AM
I have all the small images showing but need to top link tab. Or theres no way to find the gallery for my members besides the URL itself.

Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: B.SkiLLs on September 15, 2008, 08:10:55 AM
I got it now, thxs guys anyways :)

Love it so far. GREAT MOD (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg246.imageshack.us%2Fimg246%2F8399%2Fthumbsup4kk.gif&hash=5b761a88607b2c6af837bc9e0b3458ad9f6a9cb5)
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 15, 2008, 12:57:33 PM
Quote from: Bancherd on September 15, 2008, 04:25:21 AM
Quote from: christinedlrp on September 15, 2008, 01:38:22 AM
I get the same error about not being able to upload...I tried to change permissions to 777 but it didn't let me change permissions.

Ditto
Make sure the whole directory and every directory within is 777(not just the top one). Also just curious, do you got a apostrophie ( ' ) in Album's name?

Quote from: B.SkiLLs on September 15, 2008, 08:10:55 AM
I got it now, thxs guys anyways :)

Love it so far. GREAT MOD (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg246.imageshack.us%2Fimg246%2F8399%2Fthumbsup4kk.gif&hash=5b761a88607b2c6af837bc9e0b3458ad9f6a9cb5)
Glad you liked it :).

Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: christinedlrp on September 15, 2008, 01:10:13 PM
I don't have any apostrophes in the album name...As far as making every subdirectory 777, that's where I run into problems....It won't let me change the cmod permissions.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 15, 2008, 02:14:10 PM
Hm Looks like an ownership issue to me, try asking your host.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: tk2012 on September 15, 2008, 04:21:41 PM
Quote from: tk2012 on September 14, 2008, 11:18:05 PM
I went ahead and re-installed the new version... I'm still getting a critical error   :-[


v2.0 b3.1
default theme

http://www.motorstorm-rpms.org/community/index.php?action=mgallery;sa=useralbums;do=edit;id=1
The database value you're trying to insert does not exist: width
Function: mgal_db_insert
File: /var/www/html/community/Sources/Subs-MGallery.php
Line: 136


116:  }
117:
118: function mgal_db_insert($table, $columns, $data, $file, $line, $ignore = false) {
119: // Funtion used for inserting some data to some table
120: global $context, $db_prefix, $mgalFunc, $smcFunc;
121: if(empty($table) || empty($columns) || empty($data))
122: return false;
123: $insert = $ignore ? 'INSERT IGNORE' : 'INSERT';
124: if($context['is_smf2']) {
125: $columns_2 = array();
126: // OK Convert them to a proper SMF 2.0 compatible format
127: $count = count($columns);
128: foreach($columns as $k => $v)
129: $columns_2[$v] = is_int($data[$k]) ? 'int' : 'string';
130: $data_2 = array();
131: // Convert the data now
132: foreach($data as $v) {
133: $data_2[] = $v;
134: }   
135:
==>136: return $smcFunc['db_insert']($ignore ? 'IGNORE' : '', $table, $columns_2, $data_2, null);
137: }
138: // OK this seems to be SMF 1.1, well, do it this way then
139: $table = str_replace('{db_prefix}', $db_prefix, $table);
140:
141: $query_data = array_combine($columns, $data);
142: $insert_columns = array();
143: $insert_data = array();
144: // Just so that we get the things at the right place
145: foreach($query_data as $c => $d) {
146: $insert_columns[] = $c;
147: $insert_data[] = "'$d'";
148: }
149: // Insert it!
150: $mgalFunc['db_query'](
151: "".$insert." INTO ".$table."
152: (".implode(',',$insert_columns).")
153: VALUES
154: (".implode(',',$insert_data).")", array(),$file, $line, true);
155:
156: }


Also, have these errors that showed up, too.

Attached the info this time...
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: DaisyP on September 15, 2008, 10:05:32 PM
I just installed this  mod in a forum running 1.1.6, and two things:

I can't delete any images that have been uploaded - EDIT: I figured out how to do this

I can't see any images that have been uploaded - there's the outline that is the correct size, and a red x in the upper left hand corner where the image should be, but no image...
EDIT: Please help!  The images don't show up in either Firefox or IE.

I have manually changed all the things that needed changing in my custom theme...

:-(

Daisy
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Kindred on September 15, 2008, 10:56:55 PM
Hey Dragoon!   nice mod.

I'm going to be trying this out on a rather large forum...  (40konline.com) running smf 2.0 
We'll see how it does.

Also... any capability for or plans to add bulk-upload? How about server-side file additions (i.e. I have a diretory full of image files, I want to dump it into the gallery)
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Bigguy on September 16, 2008, 12:26:21 AM
Very nice mod. Only one error I am getting when trying to add an icon to a personal album:

http://www.smfhelper.info/forum/index.php?action=mgallery;sa=useralbums;do=edit;id=2
Apply Filter: Only show the errors with the same message
The database value you're trying to insert does not exist: width
Function: mgal_db_insert
Apply Filter: Only show the errors from this file
File: /home/*****/*****/******/forum/Sources/Subs-MGallery.php
Line: 136
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 16, 2008, 05:04:15 AM
Quote from: Kindred on September 15, 2008, 10:56:55 PM
Hey Dragoon!   nice mod.

I'm going to be trying this out on a rather large forum...  (40konline.com) running smf 2.0 
We'll see how it does.

Also... any capability for or plans to add bulk-upload? How about server-side file additions (i.e. I have a diretory full of image files, I want to dump it into the gallery)
Thank you for trying it out, I have been thinking about those things. I may add 'em later.

@Bigguy and tk2012, to fix that open MGallery-Sub.php
Find
list($width, $height) = $icon_file->getSize();;
Under the function MGal_useralbums_edit
and add after
if(!isset($width))
$width = 0;
if(!isset($height))
$height = 0;


Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: N3RVE on September 16, 2008, 06:28:42 AM
Welldone Dragooon :)

-[n3rve]
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: tk2012 on September 16, 2008, 08:07:31 AM
That seems to work for the "width" problem.  Thank you!  Is that going to correct the other error I was getting?
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 16, 2008, 08:48:47 AM
Quote from: [n3rve] on September 16, 2008, 06:28:42 AM
Welldone Dragooon :)

-[n3rve]
Thank you :)

Quote from: tk2012 on September 16, 2008, 08:07:31 AM
That seems to work for the "width" problem.  Thank you!  Is that going to correct the other error I was getting?
It seems someone is trying to access the "unseen" area even if they don't have the permission to do so. It has nothing to do with an internal error to the gallery.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Bigguy on September 16, 2008, 08:57:19 AM
After inserting that code and now trying to upload an icon to a personal user album I get this error:

The database value you're trying to insert does not exist: id_album
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 16, 2008, 09:00:40 AM
I *know* I fixed that issue, I just know it.
Bigguy, anything in error log? Are you using 1.0 or 1.0.1?(See Gallery's about page to know).
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Bigguy on September 16, 2008, 09:05:40 AM
Gallery 1.0.1 is what I have and this is the error in the logs now under critical:

http://www.smfhelper.info/forum/index.php?action=mgallery;sa=useralbums;do=edit;id=2
Apply Filter: Only show the errors with the same message
The database value you're trying to insert does not exist: id_album
Function: mgal_db_insert
Apply Filter: Only show the errors from this file
File: /home/*****/*****/smfhelper/forum/Sources/Subs-MGallery.php
Line: 136
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 16, 2008, 09:07:33 AM
Ahh
Find
array($filename, $size, $width, $height, $dir2, $id), in MGallery-Sub.php
And replace it with
array($filename, $size, $width, $height, $dir2, $id_album),

Sorry for the issues :).
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: helpmehelpme on September 16, 2008, 09:09:38 AM
can somebody help me I install but I do not know how to put it on the tab for the gallery
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Bigguy on September 16, 2008, 09:11:09 AM
Ok; thats got it...workin good now. Thank you sir. :)
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 16, 2008, 09:12:05 AM
Quote from: helpmehelpme on September 16, 2008, 09:09:38 AM
can somebody help me I install but I do not know how to put it on the tab for the gallery
Make sure you modify your theme to add the gallery tab :)

Quote from: Bigguy on September 16, 2008, 09:11:09 AM
Ok; thats got it...workin good now. Thank you sir. :)
Your welcome, and glad you got it workin'
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 16, 2008, 09:48:06 AM
@Kindred about mass-import script from a folder, it is possible to create one standalone version, which'll be not *so* clean*. Although that'll be after my exams.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Bancherd on September 16, 2008, 09:59:25 AM
Great!    :D Are these fixes in 1.0.1? 

Also, could that fact that I was using a directory that is outside of public_html cause problems?  ??? (I also use this approach for smf's attachment folder).
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 16, 2008, 10:27:18 AM
Quote from: Bancherd on September 16, 2008, 09:59:25 AM
Great!    :D Are these fixes in 1.0.1? 
The fixes I posted today are not.

Quote from: Bancherd on September 16, 2008, 09:59:25 AM
Also, could that fact that I was using a directory that is outside of public_html cause problems?  ??? (I also use this approach for smf's attachment folder).
Thats actually an safer aproach :).
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Kindred on September 16, 2008, 08:49:00 PM
hmmm....  trying to add a new object in a primary gallery

(first gallery, first item)

displayed on the screen

The database value you're trying to insert does not exist: width

SITE.com/index.php?action=mgallery;sa=add;album=1

in the logs there are 3 errors...

2: rename(/home/SITE/public_html/mgal_data//Dir_1/6_eyes_gif2841ddc314623e46edaaf243b6173ca0_extgif_thumb,/home/SITE/public_html/mgal_data/tmp/tmp_thumb_6_extjpeg) [<a href='function.rename'>function.rename</a>]: No such file or directory
File: /home/SITE/public_html/Sources/Subs-MGallery.php
Line: 1507



2: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for /home/SITE/public_html/mgal_data/tmp/tmp_thumb_6_extjpeg
File: /home/SITE/public_html/Sources/Subs-MGallery.php
Line: 1768 
 


The database value you're trying to insert does not exist: width
Function: mgal_db_insert
File: /home/SITE/public_html/Sources/Subs-MGallery.php
Line: 136 

Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Bigguy on September 16, 2008, 09:29:30 PM
Kindred; try this fix if you haven't already:

http://www.simplemachines.org/community/index.php?topic=260821.msg1710292#msg1710292

Then read a few more posts cause I had another error when I used that fix that needed to be fixed as well.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Kindred on September 17, 2008, 12:27:19 AM
yup... I already applied both of the fixes from this thread. :(
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Bigguy on September 17, 2008, 12:30:03 AM
Oh; I thought that would've helped. It worked for me great. I'm sure you'll get it soon. ;)
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Kindred on September 17, 2008, 12:32:38 AM
hmmm... part of it might be a permissions issue. Although the dir_1 directory is 777....

Also, I will note that creating a user directory "Kindred's Sketchbook" does not actually end up creating a new directory on the server. Is that because of the single quote/apostrophe?
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Bigguy on September 17, 2008, 12:36:36 AM
I just checked mine and it creates directories on my server fine. Installation was fine and other than those two errors it all works great. What's this dir_1 directory. I don't have that anywhere. ???
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Özgür on September 17, 2008, 04:34:30 AM
how make i recent 10 gallery items list on boardindex ?
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 17, 2008, 04:49:47 AM
Quote from: ЯocKayseri on September 17, 2008, 04:34:30 AM
how make i recent 10 gallery items list on boardindex ?
That'll require some custom code modifications.

Quote from: Kindred on September 17, 2008, 12:32:38 AM
hmmm... part of it might be a permissions issue. Although the dir_1 directory is 777....

Also, I will note that creating a user directory "Kindred's Sketchbook" does not actually end up creating a new directory on the server. Is that because of the single quote/apostrophe?
Does it work without an apostrophe?
And do you have GD2/IMagick or MagickWand installed?(See Gallery -> Admin -> About to know).

EDIT : I tested with an apostrophe on the album's name and it creates the directory and adds the item.
EDIT 2 : Looks like the directory's existance seems an problem, make sure the /mgal_data/tmp directory exists and is 777 and the album's directory(See the DB entry of that album to know it) exists with an directory.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Randy A. on September 17, 2008, 06:25:45 AM
Very nice MOD.  Thank you!!

I would like to request some way to upload more than one picture at a time.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 17, 2008, 06:27:57 AM
I'll see for that
Thanks for your compliment :).
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: protonxl on September 17, 2008, 11:35:38 AM
my error :
Quote
Not Acceptable

An appropriate representation of the requested resource /index.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

installed:
Quote6.     SMF Gallery Lite      1.8.3       [ Uninstall ]  [ List Files ]  [ Delete ]
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 17, 2008, 11:36:41 AM
This is not SMF Gallery lite, this is a different gallery. Please use that mod's support thread for its support.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: dkinser on September 17, 2008, 05:12:35 PM
Installed the mod, everything went fine, no errors.  Admins can see the button for Gallery, nobody else can.

Any suggestions on why?   Using WoW-DK theme, I've got that modified and it works, but for admin only.

Any help is greatly appreciated.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Randy A. on September 17, 2008, 05:16:49 PM
You have to open up permissions for each membergroup.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: 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)?

Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Bancherd on September 17, 2008, 06:39:09 PM
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
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: 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.

Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: 4b11l on September 17, 2008, 08:53:17 PM
Dragoon, any plans of making a watermark feature?
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Bigguy on September 17, 2008, 09:51:24 PM
That would be a nice feature.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: mcmoore on September 18, 2008, 02:36:24 AM
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
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 18, 2008, 04:55:41 AM
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 (http://www.simplemachines.org/community/index.php?topic=260821.msg1707390#msg1707390) works?
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Angelotus on September 18, 2008, 05:05:29 AM
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?
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 18, 2008, 05:36:50 AM
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
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Angelotus on September 18, 2008, 05:41:02 AM
Thanks Dragooon!
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Angelotus on September 18, 2008, 06:16:23 AM
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!!!!
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 18, 2008, 06:43:32 AM
Well it is possible to modify the ultimate profile's function to automatically add the the file to the album.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Angelotus on September 18, 2008, 07:34:54 AM
How can I do that?
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 18, 2008, 07:43:06 AM
Currently I don't know and because of my exams I won't be working on it either :).
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Angelotus on September 18, 2008, 08:09:04 AM
What are you doing here then, go studie! ;) Good luck with your exams! :)
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Angelotus on September 18, 2008, 08:41:37 AM
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
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 18, 2008, 08:45:53 AM
Does the fix here (http://www.simplemachines.org/community/index.php?topic=260821.msg1707390#msg1707390) works?
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: helpmehelpme on September 18, 2008, 09:02:23 AM
5.     Execute Modification     ./Sources/ManagePermissions.php     Test failed

before I install.. why is this so?
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 18, 2008, 09:08:18 AM
Looks like it is clashing with an already installed mod, try uninstall all your mods and install this one.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Kindred on September 18, 2008, 12:24:49 PM
or make the modifications to that file manually.
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: tk2012 on September 18, 2008, 06:04:56 PM
still getting errors with the emphasis on the plural part of errors...

I have (40) errors in my log for the Line 136 error posted below and (1) error for the Line 2487.  Both of these are in the Sub-MGallery.php file.

The info is posted below in the attachments..

v2.0 b3.1
default theme



(The bottom error may have been taken care of because that was prior to the last fix.  The one above is the oldest version of the most current error which I've received 40 of and are AFTER the fix other than that one.)
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Kindred on September 19, 2008, 07:59:10 AM
Question on permissions:

User albums...  one of my staff noticed that he could modify (add, delete, change) my user album.   I thought this might be an error, but then I realized that he had the moderate gallery function checked...

Can normal users (i.e. moderate gallery not checked) modify another user's album?
What is the difference between moderate and manage/administrate?

When does approval come into it? I see the "approve..." permission(s), but don't see anywhere in the gallery to require approvals...

As a possible future permission, I suggest two moderate permissions: one for general public albums (i.e. albums set up through the back-end) and  one for user albums. I can see points where I would only want certain members of the staff to be able to muck around with other user's albums.

QuoteSMF Media Gallery A X D
Access gallery   
Moderate gallery   
Manage/Administrate gallery   
Access unseen area   
Search in gallery   
Download an item   
Add user album   
Auto approve user albums   
Add videos   
Add audios   
Add images   
Rate items   
Edit own comment   
Report comment   
Edit own item   
Comment in items   
Report item   
Auto approve comment   
Auto approve item   
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: Dragooon on September 19, 2008, 09:11:44 AM
Moderation should not give them access to managing user album's, only gallery administrators have that rights. Since moderators cannot access anything of the admin panel, and some other's user album can be only modified there.
Moderate permissions gives them permission to modify any item or comment or add item in any album and see all the albums regardless of the membergroups.
Manage permission gives them the permission of moderate as well as gives them full blown access to Admin panel.

And approval can be set for comments/albums and items and it works like Post approval, its administration is under "Submissions" area.
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: Dragooon on September 19, 2008, 09:53:05 AM
Version 1.0.2 released
This includes some permission fixed and a security fix.
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: Bancherd on September 19, 2008, 10:51:49 AM
Quote from: Dragooon on September 19, 2008, 09:53:05 AM
Version 1.0.2 released
This includes some permission fixed and a security fix.
Alright!  Installed on SMF2beta4public, but had to manually created a directory "/tmp" in order to avoid an error after uploading an image.

So far, so good.  No errors/warnings yet.  I have this mod installed along with the following mods(in alphabetical order):
* Apache Error Handler  1.0
* Auto Embedded Video 3.1.2
* EmailValidator 1.0
* More Spiders 1.2
* PortaMx v0.93.0
* Thank-O-Matic 2.0beta4
* The Rules 1.06

Thanks for the mod. :)
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: Dragooon on September 19, 2008, 10:53:48 AM
I need to figure why its not exctracting that directory.
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: Marsh on September 19, 2008, 01:38:12 PM
How could i add other filetypes such as .psd. Thanks :)
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: Marcus Forsberg on September 19, 2008, 04:45:23 PM
Hi!

Would it be possible to totally disable "User Albums"?
I mean, totally. As if they were never there.
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: Garry1953 on September 19, 2008, 04:58:29 PM
Dragooon
When creating an account the "Icon" allows full size images to be displayed on the Gallery Albums list, it doesn't seem to resize them.
This is noticeable when a New User uploads a large image to their account.

Also would it be possible to have a Generic Icon next to the "View User Albums" in the main Gallery view?

I'm looking forward to you finishing your exams and writing the Gallery migration script.

SMF v1.16
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: Kindred on September 19, 2008, 05:42:19 PM
does the new version include a "update" script or do I have to uninstall the old version and re-install? (please no....)
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: Garry1953 on September 19, 2008, 08:11:17 PM
Kindred
I just upgraded. (No Problems encountered)
Uninstall Old and Re-Install New.
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: Kindred on September 19, 2008, 08:54:47 PM
meh....   I instaled this mod first, and then added 3 more... so unfortunately, it won't be clean and I will have to go in and manually remove code. :(

I want mod authors who release either a changelog or an update-only  package....   :P
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: Dragooon on September 20, 2008, 05:01:45 AM
Meh I'll later :P. But I released it in a hurry after discovering that security flaw.
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: Tanks on September 20, 2008, 05:58:54 AM
never really got it to work - it did not extract the folders needed so i created them myself and even after this the upload funktion would not work. So i uninstalled it again !

Great work but i guess this gallery was not ment for me !
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: Dragooon on September 20, 2008, 06:06:13 AM
Is there anything in error log?
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: PRaDiUS on September 20, 2008, 02:30:36 PM
can you add support for embeded videos from gametrailers.com ??
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: Stef001 on September 20, 2008, 04:03:52 PM
First, great mod.

Is it possible to make for all the members there own user album.

Thanks ,

Stef.
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: Kindred on September 20, 2008, 08:57:17 PM
once you give them permission, each member can create user albums
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: Kindred on September 20, 2008, 08:58:35 PM
Quote from: pradius on September 20, 2008, 02:30:36 PM
can you add support for embeded videos from gametrailers.com ??


ummm....  why?   This is a gallery function. You don't embed videos from others sites in your site's gallery
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: christinedlrp on September 21, 2008, 01:16:11 AM
I installed the latest version of this mod and everything was going great...I got several pictures uploaded and then got the same blasted message saying upload directory is not writable.  Why does it let me upload a small amount of pictures and then decide that the directory isn't writable.   This is so frustrating!  Which directory/directories is the upload directory for the albums?  ???
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: Dragooon on September 21, 2008, 03:22:43 AM
Make sure /mgal_data and all the sub-directories are 777.

Quote from: Kindred on September 20, 2008, 08:58:35 PM
Quote from: pradius on September 20, 2008, 02:30:36 PM
can you add support for embeded videos from gametrailers.com ??


ummm....  why?   This is a gallery function. You don't embed videos from others sites in your site's gallery
Well to an extent it supports YouTube, GoogleVideo etc...So I may add it although I use the code from Karl's Auto Embed Video/Audio clips mod.
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: Stef001 on September 21, 2008, 03:42:56 AM
Quote from: Kindred on September 20, 2008, 08:57:17 PM
once you give them permission, each member can create user albums

Thanks,

i was forget that.

Stef.
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: Stef001 on September 21, 2008, 04:34:15 AM
Quote from: Garry1953 on September 19, 2008, 04:58:29 PM
Dragooon
When creating an account the "Icon" allows full size images to be displayed on the Gallery Albums list, it doesn't seem to resize them.
This is noticeable when a New User uploads a large image to their account.


Have you solved this problem.
I have the same.

Stef.
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: Dragooon on September 21, 2008, 04:38:23 AM
Thats not a problem, its sort of intentional.
The uploader is supposed to upload resized images.
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: christinedlrp on September 21, 2008, 05:41:24 AM
I tried to make the Dir_1 subdirectory 777 but I get message that the operation is not permitted.  Uploading works for about 10 pics and then I get the message about the upload directory not being writable.  How do I get back the ability to upload pics if the server won't let me chmod the mgal_data subdirectories to 777?
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: Dragooon on September 21, 2008, 05:45:14 AM
Whats the full path till Dir_1 and whats the album's name?
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: christinedlrp on September 21, 2008, 06:09:21 AM
Hmmm...for some reason I'm able to upload pics again....I hope my luck continues....
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: wandawill on September 21, 2008, 09:19:34 AM
I'm thinking about installing smf mediagallery  1.0.2. My forum is smf 1.1.6. I uploaded the package and the photo shows the test. Since some are blank I wanted to see it will work before I try to install it. Thanks for your help.

http://yourthang.info/gallery.jpg
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: Dragooon on September 21, 2008, 09:28:54 AM
Thats how it should be.
Good luck with it :).
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: wandawill on September 21, 2008, 10:46:26 AM
thanks a lot !
Title: Re: SMF Media Gallery - 1.0.2 released!
Post by: Dragooon on September 21, 2008, 01:13:30 PM
A beta version of SMF Gallery lite to SMF Media gallery converter has been uploaded.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: PRaDiUS on September 21, 2008, 04:22:48 PM
Quote from: Dragooon on September 21, 2008, 03:22:43 AM
Make sure /mgal_data and all the sub-directories are 777.

Quote from: Kindred on September 20, 2008, 08:58:35 PM
Quote from: pradius on September 20, 2008, 02:30:36 PM
can you add support for embeded videos from gametrailers.com ??


ummm....  why?   This is a gallery function. You don't embed videos from others sites in your site's gallery
Well to an extent it supports YouTube, GoogleVideo etc...So I may add it although I use the code from Karl's Auto Embed Video/Audio clips mod.

Karl's mod does currently support gametrailers. I have it installed.

http://rgxbox.com/forum/index.php?action=mgallery (http://rgxbox.com/forum/index.php?action=mgallery)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on September 22, 2008, 03:08:40 AM
Yes but I removed it from the gallery, I'll add all the sites later.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Sakae on September 22, 2008, 08:38:38 AM
Hi. Got stuck converting SMF Gallery 1.9 using mgconverter.php.

First, I couldn't reach the file on my server, so I temporarily renamed .htaccess to .htaccess-backup. It shall work.

After that, I run the converter, but didn't pass thru "recount statistics".

QuoteThe database value you're trying to insert does not exist: value
/home/***/public_html/mgconverter.php
688

Nothing but a "Back" link. No chances to "Finish"?

ps.: Actually, SMF Media Gallery is working great on my server right now. Just didn't "finished" the converter. Is there a problem?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Marcus Forsberg on September 22, 2008, 08:51:28 AM
I tried the converter.

Everything went fine untill I came to Recount statistics.
I have this error:

The database value you're trying to insert does not exist: value
/home/simmarcu/public_html/mgconverter.php
688
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on September 22, 2008, 11:01:26 AM
@Nascar and @softcore, try running the recount function from Admin > Gallery Maintenance, it should be all fine.

EDIT : Otherwise, it shouldn't something of a concern, the Gallery would be running fine as it is.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Marcus Forsberg on September 22, 2008, 11:21:00 AM
Quote from: Dragooon on September 22, 2008, 11:01:26 AM
@Nascar and @softcore, try running the recount function from Admin > Gallery Maintenance, it should be all fine.

EDIT : Otherwise, it shouldn't something of a concern, the Gallery would be running fine as it is.

I tried that before I wrote the post reporting about my problem , and it didn't work.

Yes, it works fine, but the statistics are wrong.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on September 22, 2008, 11:22:11 AM
What statistics are wrong?
Since it is the last recount, everything should be fine.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Marcus Forsberg on September 22, 2008, 11:25:53 AM
It says there's 0 comments, but I know that I have over 500
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: MSLOGOS on September 22, 2008, 11:26:22 AM
HI! Well, Ive installed the Gallery, and works good, but in IE6, it shows a blank page. It doesnt happens with Firefox, ie7, or chrome. And most of my users are using ie6.

Any ideas about how to fix this?

Thanks in advance!!
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on September 22, 2008, 11:31:57 AM
Quote from: Nascar on September 22, 2008, 11:25:53 AM
It says there's 0 comments, but I know that I have over 500
OK Hm, try running the converter again
And this time open mgconverter.php
Find
'value' => $total_reported_items
Replace it with
'value' => (int) $total_reported_items
Find
'value' => $total_reported_comments
Replace it with
'value' => (int) $total_reported_comments

Quote from: MSLOGOS on September 22, 2008, 11:26:22 AM
HI! Well, Ive installed the Gallery, and works good, but in IE6, it shows a blank page. It doesnt happens with Firefox, ie7, or chrome. And most of my users are using ie6.

Any ideas about how to fix this?

Thanks in advance!!
Does it happens to other people as well? Anything in error log?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: MSLOGOS on September 22, 2008, 12:12:23 PM
Yes, other admins are having the error and some users. It only happens with ie6.
I guess they will have to switch to firefox...

There's nothing in my error log.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Marcus Forsberg on September 22, 2008, 01:19:01 PM
i tried that.

When I came to Convert comments, it says:

"The conversion has been halted, currently completed 566 of 574. The converter will automatically resume in 2 seconds "

And then it stays there. The page si just reloaded over and over again.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on September 22, 2008, 02:02:37 PM
Hm.
Try deleting the gallery, including tables, re-installing it and running the converter again.

I have tried this converter with over 4.8k items and 20k comments and it converted fine.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Andrijachi on September 22, 2008, 04:19:40 PM
Hi!
I have problems with special characters (čćžđšŽĆČĐŠ) in comments - not showing . I am using croatian-utf8.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: MSLOGOS on September 22, 2008, 06:57:55 PM
I solve my problem :) There was an extra line in my MGallery.spanish.php.

Sorry!! It was my fault!


Thank you for your time.


:)

Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: PRaDiUS on September 22, 2008, 09:30:23 PM
Quote from: Dragooon on September 22, 2008, 03:08:40 AM
Yes but I removed it from the gallery, I'll add all the sites later.

Sweet man. Would is also be possible to add an option for users to make their albums open? and by that I mean a member could make their album open for users to add media aswell?

I say this because I am using this mod on a video game forum and say I create an album for Gears of War 2... If another user wants to post media on Gears of War 2 also then as it stands now they would have to create their own Gears album when it would just be better if said user could post their Gears2 media in the existing album that I created. Get what I'm saying?

http://rgxbox.com/forum/index.php (http://rgxbox.com/forum/index.php)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on September 22, 2008, 09:47:00 PM
Quote from: pradius on September 22, 2008, 09:30:23 PM
Quote from: Dragooon on September 22, 2008, 03:08:40 AM
Yes but I removed it from the gallery, I'll add all the sites later.

Sweet man. Would is also be possible to add an option for users to make their albums open? and by that I mean a member could make their album open for users to add media aswell?

I say this because I am using this mod on a video game forum and say I create an album for Gears of War 2... If another user wants to post media on Gears of War 2 also then as it stands now they would have to create their own Gears album when it would just be better if said user could post their Gears2 media in the existing album that I created. Get what I'm saying?

http://rgxbox.com/forum/index.php (http://rgxbox.com/forum/index.php)
That would be general albums which can be managed in Admin > Albums. User albums are designed to be private :).
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: PRaDiUS on September 22, 2008, 10:43:31 PM
Right but how do regular members create general albums? Don't you have to be admin to do that?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on September 22, 2008, 10:52:44 PM
Yes you have to be admin to do that, regular users cannot create general albums.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: PRaDiUS on September 22, 2008, 10:56:23 PM
If you made it so that regular members could post general albums or give members the option to make their created albums "not private" that would be too sweet.  O:)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: PRaDiUS on September 23, 2008, 04:54:51 PM
Quote from: pradius on September 22, 2008, 10:56:23 PM
If you made it so that regular members could post general albums or give members the option to make their created albums "not private" that would be too sweet.  O:)

also, one of my moderators keeps getting errors when trying to admin coming from this mod.
it doesn't seem to be effecting him or the forum in any noticeable way, i just hate to keep seeing this error in my log.
lol, it bothers me for some reason. Here's what it's showing...

Quote
ThaKilla540xUCM       Yesterday at 09:42:15 PM

IP address 69.244.224.87      

http://rgxbox.com/forum/index.php?action=admin;area=managearcade;sa=editcats

8: Undefined index: title
File: /hermes/bosweb/web125/b1258/sl.rgxbox/public_html/forum/Themes/default/languages/MGallery.english.php (eval?)
Line: 21

-------------------------------------------------------------------------------------
   
ThaKilla540xUCM    Yesterday at 09:31:13 PM

69.244.224.87      

http://rgxbox.com/forum/index.php?action=admin;area=managearcade

8: Undefined index: title
File: /hermes/bosweb/web125/b1258/sl.rgxbox/public_html/forum/Themes/default/languages/MGallery.english.php (eval?)
Line: 21

any idea what might be creating this problem or how to solve it?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: pulkit on September 23, 2008, 06:49:07 PM
Hi,

I'm looking for a SMF integrated Gallery with the following features along with all standard features of SMF Gallery Lite (From SMF Hacks):

1. Allow users to upload to their own albums
2. Allow batch uploading (either 10 at a time or by accepting a zip file containing 10 images)
3. Provide thumbnailing function
4. Provide BBcode for linking them directly to their posts.

It's either all these functions or any solution which can allow users to easily upload pics and get BBcode without using external image hosts. I'm looking for this because I'm sick and tired of image hosts deleting my member's pics after some time and making some old threads useless without the images (they are often difficult to get again).

I really like the way Pictiger.com accepts zip files and turns them into vertical, horizontal or individual BBcodes of thumbnails of images now hosted on their site ... I need something like that but with hosting on my site ...

Can someone plz help me ?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on September 23, 2008, 09:41:37 PM
@pulkit, try this.gallery, I am sure it'll help you.

@Paradui those errors are from arcade not gallery
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: PRaDiUS on September 23, 2008, 09:45:12 PM
isn't MGallery.english.php your file?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Godsongz on September 23, 2008, 10:38:16 PM
This is the best gallery I've ever seen for SMF.  Fantastic work!!

I've got 2 issues (that I know of so far..) and 1 request...

1.  Same as Nascar, the "The conversion has been halted, currently completed..." error in the Convert Comments phase of mgconverter.php.

2.  Also same as Nascar, the # of comments isn't tabulating.  It says I have 0 and there are over 700.  This issue is probably happening -because- of issue #1.

Request.  The midsize representation of an image, not the thumbnail or the fullsize windowed version, but the one that is shown along with Item Info, Poster Info, and Extra Info...   that midsize image is always sized to 500 pixels wide.  Can that be made adjustable in Admin settings?  I want to make it smaller as I am running TP left and right blocks also, and with the image at 500 pixels it is getting shifted down and centered below the Info blocks on the left.

Edit:  I figured out where to make the edit in Mgallery.php, but it would still be great if that were an editable setting in the admin panel.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on September 24, 2008, 03:21:02 AM
Quote from: PRaDiUS on September 23, 2008, 09:45:12 PM
isn't MGallery.english.php your file?
Yes but it is in EVAL form, I believe it is occuring because of arcade because of the URL
But try running REPLACE INTO smf_settings(variable, value) VALUES ('disableTempEval', 1)
Replace smf_ with your db prefix and then tell the error.

Quote from: Godsongz on September 23, 2008, 10:38:16 PM
This is the best gallery I've ever seen for SMF.  Fantastic work!!

I've got 2 issues (that I know of so far..) and 1 request...

1.  Same as Nascar, the "The conversion has been halted, currently completed..." error in the Convert Comments phase of mgconverter.php.

2.  Also same as Nascar, the # of comments isn't tabulating.  It says I have 0 and there are over 700.  This issue is probably happening -because- of issue #1.

Request.  The midsize representation of an image, not the thumbnail or the fullsize windowed version, but the one that is shown along with Item Info, Poster Info, and Extra Info...   that midsize image is always sized to 500 pixels wide.  Can that be made adjustable in Admin settings?  I want to make it smaller as I am running TP left and right blocks also, and with the image at 500 pixels it is getting shifted down and centered below the Info blocks on the left.

Edit:  I figured out where to make the edit in Mgallery.php, but it would still be great if that were an editable setting in the admin panel.
Can you send me admin and FTP info? I'll try to see if I can reproduce it.

Thank you :).

Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Godsongz on September 24, 2008, 04:00:25 PM
Quote from: Dragooon on September 24, 2008, 03:21:02 AMCan you send me admin and FTP info? I'll try to see if I can reproduce it.

Didn't I already?  In a PM on your website?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: pulkit on September 24, 2008, 04:25:10 PM
I got TP 1.0.5 installed ... It gives me the URL for Gallery like http://revlimit.co.in/SMF_Forum/index.php/action,mgallery.html ...

The problem is that only I get the button ... No other guys, even mGallery moderators get this button ... I got this button after I edited the theme's index.template.php to change "action=gallery" to action=mgallery" ...

I need urgent help with this ... Gallery is a VERY important part of my forum ...

PS : It seems to be working fine on my test install ... Attaching file for test install and production install with this ... The problem is, that even after I copied the file from test install to production install, I was getting "no buttons" for regular users ...
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: pulkit on September 24, 2008, 04:50:48 PM
Fixed ... There was an error in the Permissions ... I had disallowed regular members from viewing the "SMF Gallery" ... I didn't realize that would stop them from viewing Mgallery because it has the same URL in TP 1.0.5 ...

The regular members were not able to see existing albums till I checked the option "Moderate Gallery" in permissions ... Don't get me wrong here, I don't want regular members to become Moderators for the Gallery, but I just couldn't get them to see anything otherwise ...

Should I leave this option checked ? Would it let them delete other user's stuff ? I tried to login as a regular user but couldn't find the option to do it ... Is it fine to leave this checked ?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Özgür on September 24, 2008, 11:33:48 PM
This code ; recent 5 items on added page. (only SMF 2.0 Beta 4)
this is code make [Sinan] only this message (http://www.simplemachines.org/community/index.php?topic=261283.msg1718940#msg1718940), but i'm changing some code.

And some change demo ; http://www.rockayseri.net/rk/ (http://www.rockayseri.net/rk/) (under top adverts)

sorry my english =)

Open BoardIndex.template.php and add
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr>
<td width="100%" colspan="5" class="catbg" height="24"><center>Gallery Recent Items</center></td>
</tr><tr>';
global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;

require_once($sourcedir . '/Subs-MGallery.php');
loadMGal_Settings();

if(loadlanguage('MGallery') == false)
loadLanguage('MGallery', 'english');
$items = getMediaItems(5);


foreach($items as $item)
echo '
<td class="windowbg',$item['is_new']  ? '2' : '' , '">
<div class="smalltext" style="text-align: center; border: 1px #111 solid; padding: 5px;">
<a href="',$galurl,'sa=viewitem;id=',$item['id'],'" title="', $item['item_title'] ,'">',shorten_subject($item['item_title'], 15),'</a><br />
<a href="',$galurl,'sa=viewitem;id=',$item['id'],'">
<img onmouseout="this.className='imgfade'" onmouseover="this.className='imgfull'" class="imgfade"  src="',$galurl,'sa=getmedia;id=',$item['id_thumb'],'" alt="', $item['item_title'] ,'" /></a><br />
',$txt['mgallery_views'],' : ',$item['views'],'<br />
',$txt['mgallery_posted_by'],' : <a href="',$scripturl,'?action=profile;u=',$item['member_id'],'">',$item['member_name'],'</a><br />
',$txt['mgallery_in_album'],' : <a href="',$galurl,'sa=viewalbum;id=',$item['id_album'],'">',shorten_subject($item['album_name'], 15),'</a>
</div>
</td>';

echo '
</tr>
</table>';


and open yourthemes style.css add

.imgfade {
    -moz-opacity:0.3;
    filter:alpha(opacity=30);
   }
.imgfull {
  -moz-opacity:1;
   filter:alpha(opacity=100);
}


Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on September 25, 2008, 01:01:42 AM
That code will work for both SMF 1.1 and SMF 2.0.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on September 25, 2008, 08:28:34 AM
Hi... I thought I should start following this thread so I'll be posting at least one message in it (so it gets caught in my notification list).

I'm the new co-developer for SMG. Not sure if this will be on a long-term basis, but I'll be doing my best to bring what I can think of for now.
I was also a co-developer on SMF Gallery Pro (upgraded it to SMF2), actually I still consider myself a co-dev on it and I'm on good terms with the author but I must admit it feels nice to be able to share your own work with everyone, so as long as SMF Gallery Pro remains a "private" package, I will focus my work on SMG.
Hopefully we can release a new version featuring my work as soon as I get enough goodies in to warrant one!
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: qubbah on September 25, 2008, 12:07:16 PM
Quote from: ЯocKayseri on September 24, 2008, 11:33:48 PM
This code ; recent 5 items on added page. (only SMF 2.0 Beta 4)
this is code make [Sinan] only this message (http://www.simplemachines.org/community/index.php?topic=261283.msg1718940#msg1718940), but i'm changing some code.

And some change demo ; http://www.rockayseri.net/rk/ (http://www.rockayseri.net/rk/) (under top adverts)

sorry my english =)

Open BoardIndex.template.php and add
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr>
<td width="100%" colspan="5" class="catbg" height="24"><center>Gallery Recent Items</center></td>
</tr><tr>';
global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;

require_once($sourcedir . '/Subs-MGallery.php');
loadMGal_Settings();

if(loadlanguage('MGallery') == false)
loadLanguage('MGallery', 'english');
$items = getMediaItems(5);


foreach($items as $item)
echo '
<td class="windowbg',$item['is_new']  ? '2' : '' , '">
<div class="smalltext" style="text-align: center; border: 1px #111 solid; padding: 5px;">
<a href="',$galurl,'sa=viewitem;id=',$item['id'],'" title="', $item['item_title'] ,'">',shorten_subject($item['item_title'], 15),'</a><br />
<a href="',$galurl,'sa=viewitem;id=',$item['id'],'">
<img onmouseout="this.className='imgfade'" onmouseover="this.className='imgfull'" class="imgfade"  src="',$galurl,'sa=getmedia;id=',$item['id_thumb'],'" alt="', $item['item_title'] ,'" /></a><br />
',$txt['mgallery_views'],' : ',$item['views'],'<br />
',$txt['mgallery_posted_by'],' : <a href="',$scripturl,'?action=profile;u=',$item['member_id'],'">',$item['member_name'],'</a><br />
',$txt['mgallery_in_album'],' : <a href="',$galurl,'sa=viewalbum;id=',$item['id_album'],'">',shorten_subject($item['album_name'], 15),'</a>
</div>
</td>';

echo '
</tr>
</table>';


and open yourthemes style.css add

.imgfade {
    -moz-opacity:0.3;
    filter:alpha(opacity=30);
   }
.imgfull {
  -moz-opacity:1;
   filter:alpha(opacity=100);
}




how can i put it in the block in TP?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Özgür on September 25, 2008, 12:11:49 PM
Quote from: qubbah on September 25, 2008, 12:07:16 PM
how can i put it in the block in TP?

  global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;

   require_once($sourcedir . '/Subs-MGallery.php');
   loadMGal_Settings();

   if(loadlanguage('MGallery') == false)
      loadLanguage('MGallery', 'english');

   $request = db_query("
      SELECT m.id_media, m.id_member, IFNULL(mem.realName, m.member_name) AS member_name,  m.id_thumb, m.title, m.description, m.views, m.rating, m.voters,
      a.id_album, a.name, IFNULL(lm.time, 0) <  m.log_last_access_time AS is_new, m.time_added, m.type
      FROM {$db_prefix}mgallery_media AS m
         INNER JOIN {$db_prefix}mgallery_albums AS a ON (a.id_album = m.album_id)
         LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.id_member)
         LEFT JOIN {$db_prefix}mgallery_log_media AS lm ON (lm.id_member = $ID_MEMBER AND lm.id_media = m.id_media)
      WHERE $user_info[mgallery_query_see_album]
      AND m.approved = 1
      ORDER BY RAND()
      LIMIT 1", __FILE__, __LINE__);
   while ($row = mysql_fetch_assoc($request)) {
      $item = array(
         'id' => $row['id_media'],
         'id_album' => $row['id_album'],
         'album_name' => $row['name'],
         'item_title' => $row['title'],
         'member_name' => $row['member_name'],
         'member_id' => $row['id_member'],
         'rating' => $row['voters'] != 0 ? ($row['rating']/$row['voters']) : 0,
         'voters' => $row['voters'],
         'id_thumb' => $row['type'] == 'embed' ? 2 : $row['id_thumb'],
         'desc' => $row['description'],
         'time_added' => $row['time_added'],
         'is_new' => !empty($row['is_new']) && !$user_info['is_guest'],
         'views' => $row['views']
      );
   }
   mysql_free_result($request);

   echo '
<div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">
   <a href="',$galurl,'sa=viewitem;id=',$item['id'],'">',$item['item_title'],'</a><br />
   <a href="',$galurl,'sa=viewitem;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=getmedia;id=',$item['id_thumb'],'" alt="" /></a><br />
   ',$txt['mgallery_views'],' : ',$item['views'],'<br />
   ',$txt['mgallery_posted_by'],' : <a href="',$scripturl,'?action=profile;u=',$item['member_id'],'">',$item['member_name'],'</a><br />
   ',$txt['mgallery_in_album'],' : <a href="',$galurl,'sa=viewalbum;id=',$item['id_album'],'">',$item['album_name'],'</a>
   ',$item['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
</div>';


Its simple portal block (http://simpleportal.net/index.php?topic=336.msg2282#msg2282). But you try :p

Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: qubbah on September 25, 2008, 12:29:42 PM
very nice... also with Simple Block..

But the problem i have not resolve yet is..

my gallery not show default thumbnail for video and also for image... like from getmedia;id=2

how can i resolve it...
Title: Re: SMF Media Gallery - 1.0.1 released!
Post by: quiz_modder on September 25, 2008, 06:56:58 PM
Quote from: Kindred on September 15, 2008, 10:56:55 PM
Also... any capability for or plans to add bulk-upload? How about server-side file additions (i.e. I have a diretory full of image files, I want to dump it into the gallery)

Ditto. I would desperately need this kind of functionality before using it on my forum as I would not want to manually import hundreds of images I have.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Özgür on September 25, 2008, 08:26:51 PM
Quote from: qubbah on September 25, 2008, 12:29:42 PM
very nice... also with Simple Block..

But the problem i have not resolve yet is..

my gallery not show default thumbnail for video and also for image... like from getmedia;id=2

how can i resolve it...

find mgal_data folder in forum folder. mgal_data/generic_images/film.png default video thumbnail.


<img alt="" src="',$galurl,'sa=getmedia;id=',$item['id_thumb'],'" alt="" />

This code find default thumbnail, if your change this

',$galurl,'sa=getmedia;id=',$item['id_thumb'],' code with

http://www.youtsite.com/forumfolder/mgal_data/mgal_data/generic_images/film.png (http://www.youtsite.com/forumfolder/mgal_data/mgal_data/generic_images/film.png) this

but other thumbnails other vids, images, etc.. only this image.

sorry my english x 99 =)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: 4b11l on September 26, 2008, 12:06:03 AM
I used the conversion. They have all been converted to "general" categories. Is it possible to move it to User Albums?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on September 26, 2008, 12:13:19 AM
I just installed this mod into 1.1.6, custom theme, and when I went into "Permissions" to set up the Gallery, the text was missing (see pic).

I checked through the mod manually, and everything appears to be in order. I also made sure that the text (language) was also included in the custom theme language folder as well, as I've run into that before.

In addition, I'm also unable to see the "Gallery" text on the Board Index "tabs".
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on September 26, 2008, 12:15:37 AM
Forgot to mention:

I also see the extra "space" between the tab text, but no "Gallery" (see pic).
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: kyyote on September 26, 2008, 02:59:48 AM
I checked all 12 pages and couldn't find this so I hope I am not being repetitious.

I am getting the error message in my error log.

Unable to load the 'MGallery.english-utf8' language file.

but I only have  the 'MGallery.english.php' language file.

Fixed.  Now if I could only get the 'Gallery' to be a tab with the rest of the tabs, instead of being a link titled "gallery' just above the 'Home' tab.  Plus, if I could rename it 'Media Gallery' to distinguish it from the 'Gallery' already installed, it would be really cool. ;)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on September 26, 2008, 03:16:58 AM
Quote from: kyyote on September 26, 2008, 02:59:48 AM
I checked all 12 pages and couldn't find this so I hope I am not being repetitious.

I am getting the error message in my error log.

Unable to load the 'MGallery.english-utf8' language file.

but I only have  the 'MGallery.english.php' language file.

Fixed.  Now if I could only get the 'Gallery' to be a tab with the rest of the tabs, instead of being a link titled "gallery' just above the 'Home' tab.  Plus, if I could rename it 'Media Gallery' to distinguish it from the 'Gallery' already installed, it would be really cool. ;)
Rename MGallery.english.php to MGallery.english-utf8.php

Quote from: Krysia on September 26, 2008, 12:13:19 AM
I just installed this mod into 1.1.6, custom theme, and when I went into "Permissions" to set up the Gallery, the text was missing (see pic).

I checked through the mod manually, and everything appears to be in order. I also made sure that the text (language) was also included in the custom theme language folder as well, as I've run into that before.

In addition, I'm also unable to see the "Gallery" text on the Board Index "tabs".

Make sure your language is english.

Quote from: 4b11l on September 26, 2008, 12:06:03 AM
I used the conversion. They have all been converted to "general" categories. Is it possible to move it to User Albums?
There are no user galleries in SMF Gallery lite, are there?

Quote from: m4tthall on September 25, 2008, 06:56:58 PM
Quote from: Kindred on September 15, 2008, 10:56:55 PM
Also... any capability for or plans to add bulk-upload? How about server-side file additions (i.e. I have a diretory full of image files, I want to dump it into the gallery)

Ditto. I would desperately need this kind of functionality before using it on my forum as I would not want to manually import hundreds of images I have.
Maybe in future.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on September 26, 2008, 09:05:03 AM
QuoteMake sure your language is english.
My language is English. It's the only one used on my board.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Godsongz on September 26, 2008, 09:09:27 AM
Quote from: kyyote on September 26, 2008, 02:59:48 AMPlus, if I could rename it 'Media Gallery' to distinguish it from the 'Gallery' already installed, it would be really cool. ;)

In Modifications.english.php change:
$txt['mgallery_gallery'] = 'Gallery';
to:
$txt['mgallery_gallery'] = 'Media Gallery';
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on September 26, 2008, 09:16:25 AM
Quote from: Krysia on September 26, 2008, 09:05:03 AM
QuoteMake sure your language is english.
My language is English. It's the only one used on my board.
Is it English UTF-8 or English?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Marcus Forsberg on September 26, 2008, 10:08:31 AM
I deleted the entire Mgallery and then reinstalled it as you said, but theconverter still stops at Convert comments
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on September 26, 2008, 10:14:10 AM
PM me your server and admin info.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Marcus Forsberg on September 26, 2008, 10:16:11 AM
My site is in swedish, so you cannot navigate :(
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on September 26, 2008, 10:17:15 AM
I don't need to navigate your site, all I need is to deal with mgconverter.php
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: kyyote on September 26, 2008, 11:24:03 AM
Quote from: Dragooon on September 26, 2008, 03:16:58 AM
Quote from: kyyote on September 26, 2008, 02:59:48 AM
I checked all 12 pages and couldn't find this so I hope I am not being repetitious.

I am getting the error message in my error log.

Unable to load the 'MGallery.english-utf8' language file.

but I only have  the 'MGallery.english.php' language file.

Fixed.  Now if I could only get the 'Gallery' to be a tab with the rest of the tabs, instead of being a link titled "gallery' just above the 'Home' tab.  Plus, if I could rename it 'Media Gallery' to distinguish it from the 'Gallery' already installed, it would be really cool. ;)
Rename MGallery.english.php to MGallery.english-utf8.php

Quote from: Krysia on September 26, 2008, 12:13:19 AM
I just installed this mod into 1.1.6, custom theme, and when I went into "Permissions" to set up the Gallery, the text was missing (see pic).

I checked through the mod manually, and everything appears to be in order. I also made sure that the text (language) was also included in the custom theme language folder as well, as I've run into that before.

In addition, I'm also unable to see the "Gallery" text on the Board Index "tabs".

Make sure your language is english.

Quote from: 4b11l on September 26, 2008, 12:06:03 AM
I used the conversion. They have all been converted to "general" categories. Is it possible to move it to User Albums?
There are no user galleries in SMF Gallery lite, are there?

Quote from: m4tthall on September 25, 2008, 06:56:58 PM
Quote from: Kindred on September 15, 2008, 10:56:55 PM
Also... any capability for or plans to add bulk-upload? How about server-side file additions (i.e. I have a diretory full of image files, I want to dump it into the gallery)

Ditto. I would desperately need this kind of functionality before using it on my forum as I would not want to manually import hundreds of images I have.
Maybe in future.
Quote from: Godsongz on September 26, 2008, 09:09:27 AM
Quote from: kyyote on September 26, 2008, 02:59:48 AMPlus, if I could rename it 'Media Gallery' to distinguish it from the 'Gallery' already installed, it would be really cool. ;)

In Modifications.english.php change:
$txt['mgallery_gallery'] = 'Gallery';
to:
$txt['mgallery_gallery'] = 'Media Gallery';


I did those, but I am getting some new error messages;
8: Undefined index: mgallery_gallery
File: /home/kyyotesd/public_html/Mine/Sources/MGallery-Admin.php
Line: 2469
Line 2469;
      $_admin_areas['config']['areas']['mgallery'] = '<a href="'.$scripturl.'?action=admin;area=mgallery;sesc='.$context['session_id'].'">'.$txt['mgallery_gallery'].'</a>';

Also
8: Undefined index: smfgallery_admin
File: /home/kyyotesd/public_html/Mine/Sources/Subs.php
Line: 2824

Line 2824;
'gallery_settings' => '<a href="' . $scripturl . '?action=gallery;sa=adminset;sesc=' . $sc . '">' . $txt['smfgallery_admin'] . '</a>',

And finally, I know this isn't yours but if you can see what to fix I would really appreciate it.
8: Undefined index: downloads_admin
File: /home/kyyotesd/public_html/Mine/Sources/Subs.php
Line: 2822

Line2822;
'downloads_settings' => '<a href="' . $scripturl . '?action=downloads;sa=adminset;sesc=' . $sc . '">' . $txt['downloads_admin'] . '</a>',
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on September 26, 2008, 11:25:54 AM
Only the first one is related to this gallery,
Are you sure you didn't renamed $txt['mgallery_gallery']? Just its strings, not the variable itself?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: kyyote on September 26, 2008, 12:00:01 PM
I did this;

In Modifications.english.php change:

Code: [Select]
$txt['mgallery_gallery'] = 'Gallery';to:

Code: [Select]
$txt['mgallery_gallery'] = 'Media Gallery';

This is from the Modifications.english-utf8.php  . This is the Modifications.english.php that was renamed to add the utf8;

// SMF Media Gallery extra strings
$txt['mgallery_gallery'] = 'Media Gallery';

and the Media is what I added.

Also, I just noticed that in the Admin panel I am missing items

Main
Administration Center
Support and Credits
News and newsletters
Packages

Configuration
Features and Options
Server Settings
--------------
--------------
Current Theme
Themes and Layout
--------------

Forum
Boards
Posts and Topics
Calendar
Search
Smileys and Message

Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on September 26, 2008, 12:02:56 PM
It should be fixed now?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: kyyote on September 26, 2008, 01:34:48 PM
It is like the post above.  Also, I am missing the downloads tab, now.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: kyyote on September 26, 2008, 01:50:04 PM
I went back to the Modifications.english-utf8.php and changed

Code: [Select]
$txt['mgallery_gallery'] = 'Gallery';to:

Code: [Select]
$txt['mgallery_gallery'] = 'Media Gallery';

this back to

Code: [Select]
$txt['mgallery_gallery'] = 'Gallery';to:

Code: [Select]
$txt['mgallery_gallery'] = 'Gallery';

I had run the converter but the Gallery(Lite) tab was still there and the Gallery(Lite) was still working.  Now the Lite tab is no loger there, which is fine with me as everything is now inthe Media Gallery.  But my Downloads tab is gone, and there are links missing in my admin panel.  see below

Main
Administration Center
Support and Credits
News and newsletters
Packages

Configuration
Features and Options
Server Settings
***********
***********
Current Theme
Themes and Layout
***********




Here are the error messages, now;

8: Undefined index: mgallery_gallery
File: /home/kyyotesd/public_html/Mine/Sources/MGallery-Admin.php
Line: 2469

8: Undefined index: smfgallery_admin
File: /home/kyyotesd/public_html/Mine/Sources/Subs.php
Line: 2824

8: Undefined index: downloads_admin
File: /home/kyyotesd/public_html/Mine/Sources/Subs.php
Line: 2822

I know the last one is a downloads, not a Media Gallery error, but I think it is connected to the missing Downloads tab and Downloads Admin link in the Admin panel.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on September 26, 2008, 03:20:21 PM
Quote from: Dragooon on September 26, 2008, 09:16:25 AM
Quote from: Krysia on September 26, 2008, 09:05:03 AM
QuoteMake sure your language is english.
My language is English. It's the only one used on my board.
Is it English UTF-8 or English?
I don't even have the UTF-8 installed, as far as I know, because it had caused conflicts previously. It's simply English.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Sakae on September 26, 2008, 05:19:12 PM
Quote from: ЯocKayseri on September 25, 2008, 12:11:49 PM
Its simple portal block (http://simpleportal.net/index.php?topic=336.msg2282#msg2282). But you try :p

Worked great. But I added some different style, if ppl wants like my forum (see attachment), try this:

HOW TO ADD A TINYPORTAL (TP) BLOCK OF SMF MEDIA GALLERY SHOWING RANDOM PICTURES

1) Create a PHPBOX block, on block creator.
2) Add this code:

global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;

   require_once($sourcedir . '/Subs-MGallery.php');
   loadMGal_Settings();

   if(loadlanguage('MGallery') == false)
      loadLanguage('MGallery', 'english');

   $request = db_query("
      SELECT m.id_media, m.id_member, IFNULL(mem.realName, m.member_name) AS member_name,  m.id_thumb, m.title, m.description, m.views, m.rating, m.voters,
      a.id_album, a.name, IFNULL(lm.time, 0) <  m.log_last_access_time AS is_new, m.time_added, m.type
      FROM {$db_prefix}mgallery_media AS m
         INNER JOIN {$db_prefix}mgallery_albums AS a ON (a.id_album = m.album_id)
         LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.id_member)
         LEFT JOIN {$db_prefix}mgallery_log_media AS lm ON (lm.id_member = $ID_MEMBER AND lm.id_media = m.id_media)
      WHERE $user_info[mgallery_query_see_album]
      AND m.approved = 1
      ORDER BY RAND()
      LIMIT 1", __FILE__, __LINE__);
   while ($row = mysql_fetch_assoc($request)) {
      $item = array(
         'id' => $row['id_media'],
         'id_album' => $row['id_album'],
         'album_name' => $row['name'],
         'item_title' => $row['title'],
         'member_name' => $row['member_name'],
         'member_id' => $row['id_member'],
         'rating' => $row['voters'] != 0 ? ($row['rating']/$row['voters']) : 0,
         'voters' => $row['voters'],
         'id_thumb' => $row['type'] == 'embed' ? 2 : $row['id_thumb'],
         'desc' => $row['description'],
         'time_added' => $row['time_added'],
         'is_new' => !empty($row['is_new']) && !$user_info['is_guest'],
         'views' => $row['views']
      );
   }
   mysql_free_result($request);

   echo '
<div class="smalltext" style="text-align: center; line-height: 1.4em; padding: 5px;">
   <a href="',$galurl,'sa=viewitem;id=',$item['id'],'">',$item['item_title'],'</a><br /><br />
   <a href="',$galurl,'sa=viewitem;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=getmedia;id=',$item['id_thumb'],'" alt="" /></a><br /><br />
   ',$txt['mgallery_posted_by'],': <a href="',$scripturl,'?action=profile;u=',$item['member_id'],'">',$item['member_name'],'</a><br />
   ',$txt['mgallery_in_album'],': <a href="',$galurl,'sa=viewalbum;id=',$item['id_album'],'">',$item['album_name'],'</a>
   ',$item['is_new'] ? '<br />' : '','
</div>';


3) Save and don't forget to activate it. If not showing, search for "show on all pages" checkbox, and stuff like this.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Özgür on September 27, 2008, 11:42:01 PM
hi! i look my errorlog and see that error

http://www.rockayseri.net/rk/index.php?pretty;action=who 
Wrong value type sent to the database. Array of integers expected.
Function: mgal_getFetchData
Dosya: /var/www/vhosts/rockayseri.net/httpdocs/rk/Sources/Subs-MGallery.php
Satır: 2550 



And 2550.

2548:                'approved' => 1,
2549:                'album' => $fetch,
==>2550:             ),__FILE__,__LINE__);
2551:          while($row = $mgalFunc['db_fetch_assoc']($request))


im using smf 2 beta 4.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on September 28, 2008, 12:35:52 AM
Hm I'll see to that issue. Looks like someone's trying to get in a album using string as ID.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Sudhakar Arjunan on September 28, 2008, 12:56:29 AM
Hi Dragoon, is that import is prepared. From VBGamer Gallery to MGallery
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on September 28, 2008, 01:06:25 AM
Yes, it is mgconverter.php, It basically works. :).
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Sudhakar Arjunan on September 28, 2008, 01:36:31 AM
While installing i got this error

Fatal error: Call to undefined function db_extend() in /home/itacumen/public_html/forum/Packages/temp/db_mgallery.php on line 80

In a white screen and could not complete the installtion
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on September 28, 2008, 01:38:26 AM
Whats your SMF version?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Sudhakar Arjunan on September 28, 2008, 01:43:31 AM
Its been upgraded and now am using 1.1.6.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on September 28, 2008, 02:12:51 AM
Thats funny it shouldn't be calling that function if it is SMF 1.1.x.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Sudhakar Arjunan on September 28, 2008, 02:19:13 AM
What i have to do.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on September 28, 2008, 02:47:53 AM
Can you PM me Admin and FTP details? I'd like to have a look.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Orange789 on September 29, 2008, 01:46:21 PM
If I try to install this, it seems to do the checks ok, but when I hit the Install Now button I get this 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 '-forum' at line 2
File: /var/www/html/Packages/temp/db_mgallery.php
Line: 386


Line386 of that file is:

,__FILE__,__LINE__);
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Kindred on September 29, 2008, 01:53:01 PM
what's the whole SQL query?

Also, what version of php and mySQL are you using?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Orange789 on September 29, 2008, 02:16:53 PM
else
{
// SMF 1.1 installer
// First list all the tables
$request = db_query("
SHOW TABLES
FROM $db_name"
,__FILE__,__LINE__);  [color=red]THIS IS SHOWING AS LINE 386[/color]
$tables = array();
while ($row = mysql_fetch_row($request))
if(substr($db_prefix,0,strlen($db_name) + 3) != '`'.$db_name.'`' . '.')
$tables[] = $row[0];
else
$tables[] = '`'.$db_name . '`.'.$row[0];

mysql_free_result($request);
// Create the tables

// The mgallery_media table
db_query("
CREATE TABLE IF NOT EXISTS {$galprefix}media (
id_media INT AUTO_INCREMENT PRIMARY KEY NOT NULL,
id_member INT NOT NULL,
member_name VARCHAR(25) NOT NULL DEFAULT '',
last_edited INT NOT NULL DEFAULT 0,
last_edited_by INT NOT NULL DEFAULT 0,
last_edited_name text NOT NULL DEFAULT '',
id_file INT NOT NULL DEFAULT 0,
id_thumb INT NOT NULL DEFAULT 0,
type VARCHAR(10) NOT NULL DEFAULT '',
album_id INT NOT NULL DEFAULT 0,
rating text NOT NULL DEFAULT '',
voters text NOT NULL DEFAULT '',
title VARCHAR(100) NOT NULL DEFAULT '-no title-',
description text NOT NULL DEFAULT '',
approved TINYINT(1) NOT NULL DEFAULT 0,
time_added INT NOT NULL DEFAULT 0,
views INT NOT NULL DEFAULT 0,
last_viewed INT NOT NULL DEFAULT 0,
keywords text NOT NULL DEFAULT '',
embed_url text NOT NULL DEFAULT '',
id_last_comment INT NOT NULL DEFAULT 0,
log_last_access_time INT NOT NUlL DEFAULT 0,
num_comments INT NOT NULL DEFAULT 0
)",__FILE__,__LINE__);

$created_tables[] = $galprefix . 'media';



PHP Version 4.3.9
MySQl version : 4.1.20
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: shadowshost on September 29, 2008, 06:01:40 PM
Maybe I am missing something but Albums are not showing up on the home page of the Gallery.

A screen shot is attached with what I am talking about.

Any help with this? I have searched this thread for a solution but couldn't find one or just missed it.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: nodent on September 29, 2008, 07:00:59 PM
This mod is Outstanding

How do I allow guests to view pictures without logging in?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: shadowshost on September 29, 2008, 07:10:28 PM
Quote from: shadowshost on September 29, 2008, 06:01:40 PM
Maybe I am missing something but Albums are not showing up on the home page of the Gallery.

Nevermind, got this figured out. It has to be a general album to show on the gallery home page.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on September 29, 2008, 10:24:35 PM
My problem is still baffling me. I went through the files manually, and everything appears to be in order. I'd installed from the package manager sans difficulty. I checked the language files, etc, and I can't see what must be causing the problem. The text is still completely blank. I've tried including the language files into each (custom) theme as well as the default, and still the screenshots I posted previously (page 13?) apply.

As I said earlier, English is the only language available; I don't use the other English UTF-8 (or whatever it's called).

I'm bummed that this has me stuck. :(
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on September 29, 2008, 11:36:57 PM
Whats your language in Admin > Server settings?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on September 30, 2008, 03:56:28 AM
Quote from: nodent on September 29, 2008, 07:00:59 PM
This mod is Outstanding

How do I allow guests to view pictures without logging in?
Go to Membergroup Permissions, edit Guest permissions and make sure to click whatever permission you want for them in the SMF Media Gallery area.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Sudhakar Arjunan on September 30, 2008, 12:08:17 PM
Quote from: Dragooon on September 28, 2008, 02:47:53 AM
Can you PM me Admin and FTP details? I'd like to have a look.

Dragooon I have PM the details to you.

Thanks in Advance.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Sudhakar Arjunan on September 30, 2008, 01:42:13 PM
Hi Dragoon, after installtion.

I have noticed more than 250 + pages of error.

8: Undefined index: mgal_total_comments
File: /home/itacumen/public_html/forum/Sources/Load.php
Line: 1259

8: Undefined index: mgal_total_items
File: /home/itacumen/public_html/forum/Sources/Load.php
Line: 1258


Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: nodent on September 30, 2008, 01:54:09 PM
Thank you Nao 尚   
Quote from: Nao 尚 on September 30, 2008, 03:56:28 AM
Quote from: nodent on September 29, 2008, 07:00:59 PM
This mod is Outstanding

How do I allow guests to view pictures without logging in?
Go to Membergroup Permissions, edit Guest permissions and make sure to click whatever permission you want for them in the SMF Media Gallery area.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Godsongz on September 30, 2008, 02:24:58 PM
Quote from: asudhakar on September 30, 2008, 01:42:13 PM
Hi Dragoon, after installtion.

I have noticed more than 250 + pages of error.

8: Undefined index: mgal_total_comments
File: /home/itacumen/public_html/forum/Sources/Load.php
Line: 1259

8: Undefined index: mgal_total_items
File: /home/itacumen/public_html/forum/Sources/Load.php
Line: 1258

I got the same stuff, except I didn't check my log right away.  I run a relatively small forum and I had 4600+ pages of those same errors over and over again after just a couple of days.  As much as I loved MGallery I have removed it from my forum for the time being.  I'll revisit this mod after SMF2 is out of beta and its time for major revisions to my sites anyway.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: quiz_modder on September 30, 2008, 05:00:28 PM
Quote from: Godsongz on September 30, 2008, 02:24:58 PM
Quote from: asudhakar on September 30, 2008, 01:42:13 PM
Hi Dragoon, after installtion.

I have noticed more than 250 + pages of error.

8: Undefined index: mgal_total_comments
File: /home/itacumen/public_html/forum/Sources/Load.php
Line: 1259

8: Undefined index: mgal_total_items
File: /home/itacumen/public_html/forum/Sources/Load.php
Line: 1258

I got the same stuff, except I didn't check my log right away.  I run a relatively small forum and I had 4600+ pages of those same errors over and over again after just a couple of days.  As much as I loved MGallery I have removed it from my forum for the time being.  I'll revisit this mod after SMF2 is out of beta and its time for major revisions to my sites anyway.

Ditto, got pages and pages of these errors. I am loving MGallery so far, but the errors and lack of multiple file import is going to make it impossible for me to stick with.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on September 30, 2008, 05:40:57 PM
Quote from: m4tthall on September 30, 2008, 05:00:28 PM
Ditto, got pages and pages of these errors.
This error is due to the fact that "mem.mgallery_total_comments" and "mem.mgallery_total_items" weren't correctly inserted into your Load.php file. I remember I had the same problem when I first installed.
Just find these in your Load.php file. Remove them from where they are. Now search for: if ($set == 'normal') and after "$select_columns =", there's a line with field names... Just add these two field names at the end. Don't forget to respect comma separation.

My own entry looks like this:

IFNULL(lo.log_time, 0) AS is_online, IFNULL(a.id_attach, 0) AS id_attach, a.filename, a.attachment_type, mem.mgal_total_items, mem.mgal_total_comments,

Do exactly the same about 18 lines below (in the "profile" code block). Your error should go away.

QuoteI am loving MGallery so far, but the errors and lack of multiple file import is going to make it impossible for me to stick with.
Multiple file import is planned. It's a young mod and it's free, so bear with it. Up until last week it only had one developer. Now it's got two, but don't expect development to become twice faster.
v1.1 is on its way, though. It won't have multiple file upload but it's still one of my priorities.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: quiz_modder on September 30, 2008, 06:22:38 PM
Quote
Multiple file import is planned. It's a young mod and it's free, so bear with it. Up until last week it only had one developer. Now it's got two, but don't expect development to become twice faster.
v1.1 is on its way, though. It won't have multiple file upload but it's still one of my priorities.

Totally understand, but for anyone that is thinking of moving an existing gallery it will only be feasible with this feature. I hope you can manage to add it soon. Thanks for your hard work.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: shadowshost on September 30, 2008, 07:21:37 PM
Question on some errors.

When I click on "Find Errors" under "Maintenance" I get the following:

The following errors have been discovered while finding errors


How do I go about fixing this? I have version 1.1.6.

Thanks in advance for the help.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Sudhakar Arjunan on October 01, 2008, 01:14:42 AM
Hi Dragooon,

Check this out in just 1 hour - Forum Error Log.

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 »

Kindly help me.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 01, 2008, 03:41:45 AM
Quote from: m4tthall on September 30, 2008, 06:22:38 PM
Quote
Multiple file import is planned. It's a young mod and it's free, so bear with it. Up until last week it only had one developer. Now it's got two, but don't expect development to become twice faster.
v1.1 is on its way, though. It won't have multiple file upload but it's still one of my priorities.

Totally understand, but for anyone that is thinking of moving an existing gallery it will only be feasible with this feature. I hope you can manage to add it soon. Thanks for your hard work.
There's a conversion module for SMF Gallery Lite. What gallery are you trying to import from?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: quiz_modder on October 01, 2008, 05:09:52 PM
Quote from: Nao 尚 on October 01, 2008, 03:41:45 AM
Quote from: m4tthall on September 30, 2008, 06:22:38 PM
Quote
Multiple file import is planned. It's a young mod and it's free, so bear with it. Up until last week it only had one developer. Now it's got two, but don't expect development to become twice faster.
v1.1 is on its way, though. It won't have multiple file upload but it's still one of my priorities.

Totally understand, but for anyone that is thinking of moving an existing gallery it will only be feasible with this feature. I hope you can manage to add it soon. Thanks for your hard work.
There's a conversion module for SMF Gallery Lite. What gallery are you trying to import from?

I am moving my board from IPB. I have hundreds of images in a gallery in there. It would take forever to put all these in manually again. I was hoping to just point this gallery mod at a folder and bulk import.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 01, 2008, 05:53:00 PM
Again -- what gallery software are you using?
Wouldn't it be best if the conversion script could also import comments and descriptions?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: quiz_modder on October 01, 2008, 06:37:37 PM
Quote from: Nao 尚 on October 01, 2008, 05:53:00 PM
Again -- what gallery software are you using?
Wouldn't it be best if the conversion script could also import comments and descriptions?

IP.Gallery  2.2.0

Yes, it would be nice to have comments and descriptions, but my main focus is to import them all quickly
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on October 01, 2008, 09:42:33 PM
Quote from: Dragooon on September 29, 2008, 11:36:57 PM
Whats your language in Admin > Server settings?
English.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Sudhakar Arjunan on October 02, 2008, 01:39:31 AM
I have to uninstall it , since i had a dozens of errors every second.

Hope to have a stable version soon.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 02, 2008, 01:44:30 AM
It is stable as it is, I have so far had no one report any sort of error logging.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 02, 2008, 03:15:52 AM
Quote from: m4tthall on October 01, 2008, 06:37:37 PM
Quote from: Nao 尚 on October 01, 2008, 05:53:00 PM
Again -- what gallery software are you using?
Wouldn't it be best if the conversion script could also import comments and descriptions?

IP.Gallery  2.2.0

Yes, it would be nice to have comments and descriptions, but my main focus is to import them all quickly
You'll have to ask Dragooon for that one. If it's popular, then he may do it.
I know I'm interested in making a converter for Coppermine because I'd been using it before SMG. If you can find a IPGallery -> Coppermine converter, then it might be even easier for everyone.

Dragooon> Remember my post above, about how to fix the errors? I told you, I had the error myself! There's definitely an issue, at least with SMF2 Beta 4. ;)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 02, 2008, 03:34:43 AM
m4thall, can you PM me a blank database dump of IPG?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 02, 2008, 04:16:54 AM
Announcing SMF Media Gallery 1.1! (http://smf-media.com/community/index.php?topic=91.0)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 02, 2008, 05:24:45 AM
Well you should add that it is not released yet, only announced ;)

I'll use the opportunity to launch a quick request.
I'm looking (we're looking?) for a native English-speaking SMG user who would be willing to proofread the current English version and send back a fixed version. Unfortunately, with Dragooon being Indian and me being French, it doesn't exactly help to make sure the English version is devoid of grammatical mistakes. I'm currently trying to proofread it, but I figured it would be much, much easier if someone more competent could do it instead. I'd love to be able to include a correct English language file in the 1.1 release.

Would be much appreciated! Please PM me if you'd like to offer your help.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Sudhakar Arjunan on October 02, 2008, 06:35:46 AM
Quote from: Dragooon on October 02, 2008, 01:44:30 AM
It is stable as it is, I have so far had no one report any sort of error logging.

Hi Dragooon yes it is stable, When you have logged in and installed in my fourm.

I got somewhere around 5000 pages of errors in one hour.
http://www.simplemachines.org/community/index.php?topic=260821.msg1730829#msg1730829

So after confirming with you , i have uninstalled the mod.
Even My Dedicated Server was down for the hole day after i got multiples of error.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 02, 2008, 08:33:52 AM
Quote from: asudhakar on October 02, 2008, 06:35:46 AM
I got somewhere around 5000 pages of errors in one hour.
http://www.simplemachines.org/community/index.php?topic=260821.msg1730829#msg1730829

So after confirming with you , i have uninstalled the mod.
Even My Dedicated Server was down for the hole day after i got multiples of error.
If you could tell us *what* the error pages said, it would be somehow, errr, helpful...

I already shared a possible fix for error logs last page.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Kindred on October 02, 2008, 01:07:22 PM
Nao,

Actually the code was already listed as you indicated on my install.... and while I don't get as many errors as the others report, I do get undefined index errors...

Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 02, 2008, 01:55:29 PM
Which ones, Kindred?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Kindred on October 02, 2008, 03:25:37 PM

http://SITE/community/index.php?board=108.0 
8: Undefined index: mgallery_gallery
File: /SITE/community/Sources/Subs.php
Line: 3930 


Interestingly enough, this is an error from a user who does not even have access to the gallery in permissions.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 02, 2008, 04:38:53 PM
Make sure your file /Themes/default/languages/Modifications.english.php was correctly updated with the mgallery_* entries.
$txt['mgallery_gallery'] is always loaded because it's what the menu would show if the user had the authorization to see it. Still, it has to be loaded for the menu in the first place, even if you're never going to see it. No security errors.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Kindred on October 02, 2008, 05:46:28 PM
those strings are loaded (first thing I checked)...  and I don't get that error with every user... it's very odd...

(I get similar errors with a few other v2.0 mods...   UserCP and rules. Again, not for every user, just for some.)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Me313 on October 02, 2008, 06:04:30 PM
hello thank you for this great mod

i tried to upload icon for my albums in there however the icon doesnt appear when i viewed the album..what i'm missing in here?

thanks in advance for the help

(^^,)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: quiz_modder on October 02, 2008, 07:32:53 PM
Quote from: Dragooon on October 02, 2008, 03:34:43 AM
m4thall, can you PM me a blank database dump of IPG?

Attached is the data dictionary
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 03, 2008, 02:01:31 AM
Quote from: Kindred on October 02, 2008, 05:46:28 PM
those strings are loaded (first thing I checked)...  and I don't get that error with every user... it's very odd...

(I get similar errors with a few other v2.0 mods...   UserCP and rules. Again, not for every user, just for some.)
Just to be on the safe side... Edit line 3931 in file Sources\Subs.php, and replace $txt['mgallery_gallery'] with @$txt['mgallery_gallery'] --> this should find your warning error once and for all. (That little @ is a real helper in this case!)

Generally speaking, when you just want to get rid of non-showstopping errors without waiting for a patch, just add a @ before the instruction that seems to cause the issue. (For instance, you may turn a $result = call_my_function() into a $result = @call_my_function() to eliminate potential errors generated by such a line.)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: johny000 on October 03, 2008, 05:46:33 AM
hello can you help me & tell me what is going on?

itry to install this mod i'm geting this Error
Quote// SMF Media Gallery extra strings $txt['mgallery_gallery'] = 'Gallery'; $txt['permissiongroup_mgallery'] = 'SMF Media Gallery'; $txt['permissiongroup_simple_mgallery'] = 'SMF Media Gallery'; $txt['permissionname_mgallery_access'] = 'Access gallery'; $txt['permissionname_mgallery_moderate'] = 'Moderate gallery'; $txt['permissionname_mgallery_manage'] = 'Manage/Administrate gallery'; $txt['permissionname_mgallery_access_unseen'] = 'Access unseen area'; $txt['permissionname_mgallery_search'] = 'Search in gallery'; $txt['permissionname_mgallery_download_item'] = 'Download an item'; $txt['permissionname_mgallery_add_user_album'] = 'Add user album'; $txt['permissionname_mgallery_auto_approve_albums'] = 'Auto approve user albums'; $txt['permissionname_mgallery_add_videos'] = 'Add videos'; $txt['permissionname_mgallery_add_audios'] = 'Add audios'; $txt['permissionname_mgallery_add_images'] = 'Add images'; $txt['permissionname_mgallery_rate_items'] = 'Rate items'; $txt['permissionname_mgallery_edit_own_com'] = 'Edit own comment'; $txt['permissionname_mgallery_report_com'] = 'Report comment'; $txt['permissionname_mgallery_edit_own_item'] = 'Edit own item'; $txt['permissionname_mgallery_comment'] = 'Comment in items'; $txt['permissionname_mgallery_report_item'] = 'Report item'; $txt['permissionname_mgallery_auto_approve_com'] = 'Auto approve comment'; $txt['permissionname_mgallery_auto_approve_item'] = 'Auto approve item'; // End SMF Media gallery strings
what should i do?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Kindred on October 03, 2008, 07:51:54 AM
looks like the strings got added to your language file after the closing ?>   open modifications.english.php and move the ?> to the very end of the file.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 03, 2008, 03:14:31 PM
Or, make sure you have a Modifications.english-utf8.php file in your Languages folder.
If you don't, just make a copy of your current Modifications.english.php file under that name.

I don't think it will fix any issues (because that part is supposedly skippable), but it doesn't hurt to try.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Sudhakar Arjunan on October 03, 2008, 04:08:46 PM
Quote from: Nao 尚 on October 02, 2008, 08:33:52 AM
Quote from: asudhakar on October 02, 2008, 06:35:46 AM
I got somewhere around 5000 pages of errors in one hour.
http://www.simplemachines.org/community/index.php?topic=260821.msg1730829#msg1730829

So after confirming with you , i have uninstalled the mod.
Even My Dedicated Server was down for the hole day after i got multiples of error.
If you could tell us *what* the error pages said, it would be somehow, errr, helpful...

I already shared a possible fix for error logs last page.

You are right , but does not work.
which i have already reported to Dragooon also.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 03, 2008, 06:43:42 PM
So... Error messages, please?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Sudhakar Arjunan on October 03, 2008, 10:46:25 PM
Quote from: Nao 尚 on October 03, 2008, 06:43:42 PM
So... Error messages, please?

Error Message here, http://www.simplemachines.org/community/index.php?topic=260821.msg1730072#msg1730072
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: johny000 on October 04, 2008, 06:37:19 AM
thank you Kindred  yes is was ?> i fix it thank you

one more thing  let say i open album call it funny & i post 6 video onthe funny album

i want  add button Prev next  just like the pic here i made in photoshop or something like this

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg390.imageshack.us%2Fimg390%2F8069%2F94108337kf3.jpg&hash=b9f1e1a64d2f1d765e4647f338743046f63e5e34)

so if i have over 40 funny video in the funny albums user don't have to go back everytime al they have to do  just click next


& there is  any way i can open Categories & open in the Categories albums?


Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 04, 2008, 09:42:41 AM
Quote from: asudhakar on October 03, 2008, 10:46:25 PM
Quote from: Nao 尚 on October 03, 2008, 06:43:42 PM
So... Error messages, please?

Error Message here, http://www.simplemachines.org/community/index.php?topic=260821.msg1730072#msg1730072
If you just want the error messages to disappear (it won't hurt anything anyway), open up Load.up, search for

'total_items' => $profile['mgal_total_items'],
'total_comments' => $profile['mgal_total_comments'],


And replace with

'total_items' => @$profile['mgal_total_items'],
'total_comments' => @$profile['mgal_total_comments'],


This should be enough :)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Muldoon on October 04, 2008, 12:32:47 PM
Since I can't start a thread in here, I was wondering what the big differences are between SMF Media Gallery and SMF Gallery? Is one better than the other? Are there benefits to running both on your site? 

Thank you,
Muldoon
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 04, 2008, 01:19:41 PM
Quote from: Muldoon on October 04, 2008, 12:32:47 PM
Since I can't start a thread in here, I was wondering what the big differences are between SMF Media Gallery and SMF Gallery? Is one better than the other? Are there benefits to running both on your site?
It depends on what you're looking for.
In terms of "how many features does it have", I'd say that for now, SMF Gallery Pro > SMF Media Gallery > SMF Gallery Lite.
Of course, SMF Gallery Pro being available for testing to you only if you pay $50 first, SMF Media Gallery is currently better positioned here.

Both software target the same use, so no, it's no use to have them both on your website -- it'll only be discouraging.
I'd say look at the feature list of SGPro. If it has something you really, really want and SMF Media Gallery doesn't have it, then consider the $50 payment. Or ask wait until SMG implements it. If it plans to, at least ;)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Muldoon on October 04, 2008, 02:08:54 PM
Thanks for the comments Nao, I really appreciate it.
Muldoon
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Kindred on October 04, 2008, 03:24:33 PM
BTW: IF you are running smf 2.0 and getting lots of "undefined index..." errors, then here's what to do:

go into gallery setup
check ON every box
SAVE
then check OFF the features that you don't want.

It seems that, under 2.0 at least, when you install a new mod with options, those option is not actually SET until you manually set it and then "unset" it.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 04, 2008, 06:56:54 PM
There's a "$newsettings" array in the database creation script that sets default options. If you ever find an option that isn't set, maybe it was forgotten... Feel free to tell us then :)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: RCC_SaMiaM on October 04, 2008, 07:50:52 PM
Getting this error when uploading an image

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_Test_Album/Dir_1','1')' at line 4
File: /var/www/html/Sources/MGallery.php
Line: 1162

Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Kindred on October 04, 2008, 08:40:59 PM
nao...   I did mention the specific setting/index that was causing errors.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: nekozawaplusme on October 04, 2008, 10:57:38 PM
Thanks for making this gallery<3

But real quick question, I might be missing it but if anyone could explain. Is there anyway to delete or edit an item after it's been uploaded?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Garry1953 on October 04, 2008, 11:12:07 PM
Just above the.
Poster information
You will see a bunch of Icons.. One of them will do it for you.

Don't forget to enable the permissions from admin.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on October 04, 2008, 11:53:30 PM
Will I need to uninstall it and then try again or something in order for this mod to show its text?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 05, 2008, 04:36:52 AM
Quote from: Kindred on October 04, 2008, 08:40:59 PM
nao...   I did mention the specific setting/index that was causing errors.
I'm afraid I missed it?

Garry> I've rewritten a large part of the viewitem template. In version 1.1, the whole display page will be much easier to navigate, and closer in appearance to pretty much the "de facto Gallery-type display page", as in Coppermine, Gallery2, etc. This should help ;) I myself had to ask Dragooon why I wasn't able to comment on display pages. The icon was too small for my taste, and not at the logical place ;)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Garry1953 on October 05, 2008, 05:55:32 AM
Nao 尚
This Gallery is moving in a very nice direction.
Thanks to Dragooon and Yourself

Your time and effort spent on this project, is greatly appreciated.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: RCC_SaMiaM on October 05, 2008, 11:05:41 AM
I know why I was getting that error above, single quotes aren't being escaped, I had a single quote in the album name.  Are single quotes escaped on image uploads?

Also is there an easy way to set perissions for the gallery, kind of a pain to set permissions by 1 ability at a time.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 05, 2008, 05:44:39 PM
You're welcome Garry.

Quote from: RCC_SaMiaM on October 05, 2008, 11:05:41 AM
I know why I was getting that error above, single quotes aren't being escaped, I had a single quote in the album name.  Are single quotes escaped on image uploads?
I'm afraid I don't have this problem... Tested on album names and picture uploads.

QuoteAlso is there an easy way to set perissions for the gallery, kind of a pain to set permissions by 1 ability at a time.
This is basically one of the problems inherent to the permission system in SMF: when you have lots of membergroups, you're in for a funny couple of hours modifying each membergroup's permissions individually...
You can use the simplified permissions to go through the process a bit faster though, I believe... I'm not a specialist on the permissions area (I'm still quite new to the whole SMG development thing... I only add minor features and clean up the code to "learn what is what" and try not to break existing code!)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Kimmen on October 05, 2008, 06:35:30 PM
I have installed this mod, but i can't use embed code from Youtube. Meaby i did something wrong. Can i get help from somebody that is really god with this please?


Greetings
Kim
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: RCC_SaMiaM on October 05, 2008, 06:44:34 PM
Quote from: Nao 尚 on October 05, 2008, 05:44:39 PM
I'm afraid I don't have this problem... Tested on album names and picture uploads.

I just now made an album called "Sam's Test" and when I went to add an image the same exact thing happened.  So it indeed does happen.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 06, 2008, 12:21:05 AM
Whats your SMF version? And is magic_quotes on?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Kimmen on October 06, 2008, 03:18:48 AM
Sorry, i can see i gave you to few infos on my details here. I use SMF 1.1.5 & have installed following mods so far:

1.     TinyPortal     0.983     
2.    Recent posts user preference    3.02    
3.    MCLegendII.2    3.0    
4.    Member Color Link    3.0.5    
5.    Custom BBCode    2.00    
6.    VisualWarning    1.42    
7.    SMF Gallery Lite    1.8.2    
8.    SMF Media Gallery    1.0.2


My problems is that i cant use embed codes from Youtube, which was the reason i wanted this gallery, to use those embed codes. it seems that i cant upload music either. Im not good with coding and fixing this, so i need help. Would really appreciate it if someone can help me. 
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 06, 2008, 04:18:35 AM
Is there anything in error log? Can you tell me the link to the YouTube video you're trying to embed? What's the extension of Music file you are trying to upload?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Kimmen on October 06, 2008, 08:18:00 AM
This is the only error showing up:

   
Apply Filter: Only show the error messages of this member Sgt Kimmen    Today at 14:10:20
Apply Filter: Only show the error messages of this IP address 85.200.233.144      Apply Filter: Only show the error messages of this session 9e39d403bdd4c0ec96a398e4db4e98e7
Apply Filter: Only show the error messages of this URL http://www.mtsclan.com/index.php?action=forum
Apply Filter: Only show the errors with the same message
8: Use of undefined constant Gallery - assumed 'Gallery'
File: /customers/mtsclan.com/mtsclan.com/httpd.www/Themes/red_blazetp/BoardIndex.template.php (main_above sub template - eval?)
Line: 608


When i go maintenance i get no error when i search for it. Here is the embed code for youtube:

<object width="425" height="349"><param name="movie" value="http://www.youtube.com/v/bvlRQ90c9Bk&hl=en&fs=1&rel=0&color1=0x5d1719&color2=0xcd311b&border=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/bvlRQ90c9Bk&hl=en&fs=1&rel=0&color1=0x5d1719&color2=0xcd311b&border=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="349"></embed></object>

Not sure what u mean with extension? but i think it is a mp3 file. Do you need adminlogin on my site? Site URL: www.mtsclan.com

Send PM if you want a admin account. This gallery is btw hidden for members at this time.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 06, 2008, 10:07:40 AM
You don't need to use the full embed code, just the link in your browser to embed it. It creates the code itself.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: RCC_SaMiaM on October 06, 2008, 10:18:41 AM
Quote from: Dragooon on October 06, 2008, 12:21:05 AM
Whats your SMF version? And is magic_quotes on?

1.1.6 and magic_quotes_gpc is on.

I also noticed that items have been removed on my test gallery.  3 users have setup accounts, 1 added an image and the other a youtube video embed within 10 minutes of each other.  This morning both were removed within 10 minutes of each other, and the moderation log shows blank on who did it.  Is there an auto removed function?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 06, 2008, 10:31:11 AM
Can you paste here or PM me the entries of mgallery_variables table? You can browse them via phpmyadmin
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on October 06, 2008, 08:51:28 PM
Perhaps my problem doesn't seem as important as others' with this mod, but I can't help but think there's an easy fix for it if someone would point me in the right direction.

I've already stated quite a few times that I use only English, and that's also what my forum is set for ---- I don't believe I even have the other "English UTF-8" (or whatever it's called) installed because of similar issues with other mods back in the day.

Everything installed okay by appearance ---- I checked through the files manually and didn't see anything that came immediately to mind as being incorrect.

From previous:
QuoteI just installed this mod into 1.1.6, custom theme, and when I went into "Permissions" to set up the Gallery, the text was missing (see pic).

I checked through the mod manually, and everything appears to be in order. I also made sure that the text (language) was also included in the custom theme language folder as well, as I've run into that before.

In addition, I'm also unable to see the "Gallery" text on the Board Index "tabs".

&

QuoteForgot to mention:

I also see the extra "space" between the tab text, but no "Gallery" (see pic).

I would really love to be able to use this mod on my forum ---- it looks like a fabulous mod, when it's working...

Thank you.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 06, 2008, 11:50:38 PM
Does your theme have a custom modifications.english.php in languages folder? If so copy the strings from default theme's Modifications.english.php to your theme's.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on October 07, 2008, 07:54:21 AM
Quote from: Dragooon on October 06, 2008, 11:50:38 PM
Does your theme have a custom modifications.english.php in languages folder? If so copy the strings from default theme's Modifications.english.php to your theme's.
Thank you. That did it this time. How weird because I'd tried that initially when I installed. It didn't work, so I removed it. Now it did. Computers. Bah. LOL.

:)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: select_id on October 07, 2008, 11:29:18 AM
This mod ise very usefull, thank you.
But there is a bug (for  MGallery version 1.0.2)
In Sources\MGallery-Sub.php
$context['mgallery_done_text'] = $txt['mgallery_user_albums_added'];

should be
$context['mgallery_done_txt'] = $txt['mgallery_user_albums_added'];
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 07, 2008, 11:51:11 AM
Thank you, I've fixed it.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: ryozo on October 08, 2008, 04:03:32 PM
Gud'day!

First, thanks for this mod.
I installed it perfectly with smf1.1.6.
No errors encountered whatsoever.

Until i found out that some members are uploading pictures as icon, its as large as the forum itself.  >:(

How can i solve this issue???

Thanks and more power
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Ferkel on October 08, 2008, 05:07:28 PM
Hello!
Please, answer me, is there is possibility to create navigation buttons, like "previous image" & "next image"?
Thank you!
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 08, 2008, 05:28:49 PM
Quote from: Ferkel on October 08, 2008, 05:07:28 PM
Hello!
Please, answer me, is there is possibility to create navigation buttons, like "previous image" & "next image"?
Thank you!
In my to-do-list. Something similar to Coppermine. Not in my personal priorities, though. Maybe in Dragooon's ;)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: jdvarner on October 08, 2008, 09:36:42 PM
This mod is on my site. Seems to work. But one problem. Embedding from you tube works. but when i upload a .wmv from my desktop it just plays the sound. No video. Does that will all the extensions i tried. .wmv, mpg, and so on.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: ryozo on October 08, 2008, 11:45:06 PM
Quote from: ryozo on October 08, 2008, 04:03:32 PM
Gud'day!

First, thanks for this mod.
I installed it perfectly with smf1.1.6.
No errors encountered whatsoever.

Until i found out that some members are uploading pictures as icon, its as large as the forum itself.  >:(

How can i solve this issue???

Thanks and more power

ok no solution for this one.
so user album will be no use since they wont usually follow your instructions.  :(

how about the layout, do we have any hack to show picture/items at the top while the item info and uploader info will be below it  instead of left side?
Just like what the DEMO shows.
Im using the default theme.

Thanks
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 09, 2008, 01:28:22 AM
This in my to-do list for 1.1
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: ghosttr on October 09, 2008, 08:12:47 PM
Im having an issue with vides, i have uploaded several vidoes i have made in wmm (windows movie maker) to find out that they dont play, and when i tried to download them i get this

Firefox can't find the file at http://forums.muppet-factory.com/index.php?action=mgallery;sa=dlitem;id=11.


any ideas
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: jdvarner on October 09, 2008, 08:30:50 PM
i get the same with wmv, mpg, mpeg. if it aint from youtube or similar site it aint working for me. just has sound. no video.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Neons on October 10, 2008, 06:28:10 PM
Quote from: RCC_SaMiaM on October 04, 2008, 07:50:52 PM
Getting this error when uploading an image

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_Test_Album/Dir_1','1')' at line 4
File: /var/www/html/Sources/MGallery.php
Line: 1162
Getting this exact same error aswell :/
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 10, 2008, 07:03:23 PM
Quote from: Nao 尚 on October 08, 2008, 05:28:49 PM
Quote from: Ferkel on October 08, 2008, 05:07:28 PM
Hello!
Please, answer me, is there is possibility to create navigation buttons, like "previous image" & "next image"?
Thank you!
In my to-do-list. Something similar to Coppermine. Not in my personal priorities, though. Maybe in Dragooon's ;)
BTW, FYI, he implemented it today and I played a bit with the template and tweaked it. Looks and plays nice. FTW! (WTF?)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: jdvarner on October 10, 2008, 08:06:56 PM
Quote from: jdvarner on October 09, 2008, 08:30:50 PM
i get the same with wmv, mpg, mpeg. if it aint from youtube or similar site it aint working for me. just has sound. no video.

am i the only one having this issue?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 11, 2008, 12:13:27 AM
I will be looking over those video issues.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Powerbob on October 12, 2008, 08:06:14 AM
Well I feel a little embarrassed, no problems whatsoever, mod installed great. Uploaded req dirs and files to the other themes and it works great. Kudos to Dragoon for creating this mod, and of course not forgetting Nao who is adding his wealth of knowledge ;D

I have this installed on my test site, but before I can add it to my live site I need some extras please;

1. Bulk import/conversion of albums from Coppermine
2. Ability to import at least 10 pics at a time

This is the best free gallery I have seen so far, much easier than coppermine which has to be re-bridged all the time when new versions arrive etc etc.

Many thanks

Bob
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 12, 2008, 08:10:59 AM
A conversion script has been made, but it is designed for 1.1 and will be available once 1.1 is out.
Mass/Multi-Upload is also a default feature of 1.1(You can have a look at it at SMF-Media.com which is running 1.1).
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Powerbob on October 12, 2008, 08:36:14 AM
Just checked, looks good 8)

so here's hoping 1.1 comes asap  :D :D
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 12, 2008, 08:44:08 AM
Well, it'll be out once it is fit to be :).
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Powerbob on October 12, 2008, 08:58:26 AM
8) 8) 8)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Powerbob on October 12, 2008, 10:05:20 AM
Just one question, how can you insert a pic  from the gallery in a post on the forum?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 12, 2008, 02:13:31 PM
Quote from: Powerbob on October 12, 2008, 08:06:14 AM
Well I feel a little embarrassed, no problems whatsoever, mod installed great. Uploaded req dirs and files to the other themes and it works great. Kudos to Dragoon for creating this mod, and of course not forgetting Nao who is adding his wealth of knowledge ;D
Yeah, I enjoy how we manage to work together. We're generally working on separate sections of the mod (for instance, he implemented the mass upload tool while I was redoing the templates), and we can help each other via MSN when we're stuck on something. :)
He did the first 90% of the work on the Coppermine converter, and I used it to convert my CP gallery and fix the bugs so that it works flawlessly. (It always helps to have someone who can test it with real life installs!)

Quote1. Bulk import/conversion of albums from Coppermine
2. Ability to import at least 10 pics at a time
You're in for a treat when v1.1 gets released eheh :)
I think we're both targetting a release for around next week. We were rooting for a release on this weekend but the Coppermine thing took longer than expected, and my to-do-list is still quite long.

At this point though, there are so many additions that I'm contemplating renaming the version to v1.52... Those who played Kyodai Mahjongg will know what I mean  :P

QuoteThis is the best free gallery I have seen so far, much easier than coppermine which has to be re-bridged all the time when new versions arrive etc etc.
Yeah! Plus, Coppermine had a lousy support for templates! I had to redo my Coppermine template every time I made a change to my SMF templates... And it was HTML-only! The agony!
And I never got the comment feature to interface correctly with my SMF membergroups! The apocalypse!
Long live SMG!
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on October 12, 2008, 03:44:05 PM
I didn't have any problems uploading images (so far, knocks wood), but when I tried to upload a video, I got this:

QuoteGallery
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_Vids/Dir_1','3')' at line 4
File: /var/www/html/kr/krysiasweb.net/JTLFF/Sources/MGallery.php
Line: 1162

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.6, while your database is at version 1.1.5. The above error might possibly go away if you execute the latest version of upgrade.php.

I'm confused ---- when I updated from SMF 1.1.5, I did use the "latest version" of upgrade.php. Do I need to download just that file from the SMF Download area and wade through it manually to see which file might still say "1.1.5"?

As for the other... MySQL server version is: 5.0.32, the PHP version is 2.11.9.1.  ??? ??? ???
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: BYUFanatic on October 12, 2008, 10:35:14 PM
Seems like a nice mod.

Haven't got the chance to play much with it yet.  Will likely wait until the batch upload feature is available first. I take TONS of pictures and videos and I HATE uploading tons of files one at a time. My forum is one that I use for my students at a local high school. So if this works well, they'll definitely get a kick out of it.

I will personally get a kick out of it if it offers thumbnails of videos. My students do a LOT of video projects and being able to see at a glance (the thumbnail) who is in the video would be EXTREMELY useful.

I do have one problem:

I cannot get "gallery" to show up on the top menu bar. It does not show up in any of the themes except the default SMF theme. I can type the URL directly into the address bar and it loads and the admin side works fine as well. But just don't see it on the menu. Can you help me out with adding that to the top menu? The theme I am using is Apollo BB but it doesn't show up in the other default installed themes either (only the SMF theme).

Thanks!

Rob
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: BYUFanatic on October 12, 2008, 11:55:56 PM
And another thing...

Is there a way to edit pictures after they're posted? Perhaps I'd want to change the item's info, or the keywords, etc. but I don't see a way to do so. Same thing with adding comments. I don't see how I can comment on a photo.

Rob
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Kindred on October 13, 2008, 12:24:24 AM
BYU, on 1.1.x, mods are installed only into the default theme. You have to manually add mods into other, custom, themes.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: BYUFanatic on October 13, 2008, 01:17:48 AM
Quote from: Kindred on October 13, 2008, 12:24:24 AM
BYU, on 1.1.x, mods are installed only into the default theme. You have to manually add mods into other, custom, themes.

Yep. I figured I'd have to modify the theme - that's why I'm asking for help. *smile*

Rob
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Powerbob on October 13, 2008, 03:07:10 AM
Quote from: Powerbob on October 12, 2008, 10:05:20 AM
Just one question, how can you insert a pic from the gallery in a post on the forum?

Bump 8)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Jojie on October 13, 2008, 03:52:06 AM
Quote from: Powerbob on October 13, 2008, 03:07:10 AM
Quote from: Powerbob on October 12, 2008, 10:05:20 AM
Just one question, how can you insert a pic from the gallery in a post on the forum?

Bump 8)

Normally you would right click on the image grab the address of that and paste it into the forum.. 
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Powerbob on October 13, 2008, 03:58:13 AM
Yes I know ::) but that does not work with smf media gallery! Hence my question!
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 13, 2008, 05:02:47 AM
Quote from: Powerbob on October 13, 2008, 03:07:10 AM
Quote from: Powerbob on October 12, 2008, 10:05:20 AM
Just one question, how can you insert a pic from the gallery in a post on the forum?

Bump 8)
I answered that to you on the other forum.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Powerbob on October 13, 2008, 05:37:53 AM
Ok then I am a dummy. I don't understand how to do it, sorry. How am I supposed to use the file "mgalleryGetObject.php"?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: select_id on October 13, 2008, 07:30:39 AM
If any user type this link its own browser, it can delete any item on gallery.
www.mywebsite.com/index.php?action=mgallery;sa=delete;type=item;id=xxx
xxx=item number.

to prevent this attack find this code in MGallery.php

// Delete it
deleteItems($item_data['id_media']);


add before


if($user_info['id'] == 0)
   fatal_lang_error('mgallery_delete_denied');
if ($item_data['id_member'] != $user_info['id'])
   fatal_lang_error('mgallery_delete_denied');


and find this

if($_GET['type'] == 'item') {
// Load the item
$request = $mgalFunc['db_query']("
SELECT m.id_media

add after
, m.id_member
But i haven't tested enough the code.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 13, 2008, 09:21:07 AM
Thats not entirely true, it do checks for attempts, although id_member is not loaded preventing it from detecting it properly.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: select_id on October 13, 2008, 10:19:51 AM
Quote from: Dragooon on October 13, 2008, 09:21:07 AM
Thats not entirely true, it do checks for attempts, although id_member is not loaded preventing it from detecting it properly.
When i try it as guest, i can delete any item.
And i add these codes, i cant delete items.
I dont speak english very well.
So if i write wrong things, sorry :)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: ormuz on October 13, 2008, 12:16:58 PM
$txt['mgallery_contest_albums'] = 'Contests';

What is this string for? I don't see any "contest options in admin section...
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: BYUFanatic on October 13, 2008, 12:31:42 PM
Quote from: BYUFanatic on October 13, 2008, 01:17:48 AM
Quote from: Kindred on October 13, 2008, 12:24:24 AM
BYU, on 1.1.x, mods are installed only into the default theme. You have to manually add mods into other, custom, themes.

Yep. I figured I'd have to modify the theme - that's why I'm asking for help. *smile*

Rob

BUMP.

Rob
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: don broeren on October 13, 2008, 12:48:19 PM
When I go to apply this mod, I get the following:

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    db_mgallery.php    
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/Subs.php    Test successful
4.    Execute Modification    ./Sources/Load.php    Test successful
5.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
6.    Execute Modification    ./Themes/default/index.template.php    Test failed
7.    Execute Modification    ./Sources/Who.php    Test successful
8.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
10.    Extract Tree    ./Sources    
11.    Extract Tree    ./Themes    
12.    Extract Tree    ./mgal_data

I don't understand what it's referring to and am not sure how to proceed. I am a newbie to all of this, any help would be appreciated. Thanks!
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 13, 2008, 01:00:40 PM
Quote from: ormuz on October 13, 2008, 12:16:58 PM
$txt['mgallery_contest_albums'] = 'Contests';

What is this string for? I don't see any "contest options in admin section...
It is something I added by mistake, there are no contests.

Quote from: BYUFanatic on October 13, 2008, 12:31:42 PM
Quote from: BYUFanatic on October 13, 2008, 01:17:48 AM
Quote from: Kindred on October 13, 2008, 12:24:24 AM
BYU, on 1.1.x, mods are installed only into the default theme. You have to manually add mods into other, custom, themes.

Yep. I figured I'd have to modify the theme - that's why I'm asking for help. *smile*

Rob

BUMP.

Rob
Attach your index.template.php here.

Quote from: don broeren on October 13, 2008, 12:48:19 PM
When I go to apply this mod, I get the following:

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    db_mgallery.php    
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/Subs.php    Test successful
4.    Execute Modification    ./Sources/Load.php    Test successful
5.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
6.    Execute Modification    ./Themes/default/index.template.php    Test failed
7.    Execute Modification    ./Sources/Who.php    Test successful
8.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
10.    Extract Tree    ./Sources    
11.    Extract Tree    ./Themes    
12.    Extract Tree    ./mgal_data

I don't understand what it's referring to and am not sure how to proceed. I am a newbie to all of this, any help would be appreciated. Thanks!
Please have a look at Package Manager (http://docs.simplemachines.org/index.php?board=49.0;sort=subject)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 13, 2008, 01:14:52 PM
Quote from: Dragooon on October 13, 2008, 01:00:40 PM
It is something I added by mistake, there are no contests.
I didn't remember that one... You should have told me, there are many language strings to purge then :P
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: ormuz on October 13, 2008, 01:16:59 PM
Quote from: Dragooon on October 13, 2008, 01:00:40 PM
Quote from: ormuz on October 13, 2008, 12:16:58 PM
$txt['mgallery_contest_albums'] = 'Contests';

What is this string for? I don't see any "contest options in admin section...
It is something I added by mistake, there are no contests.


Should I believe?! ;)  I use your gallery to make contests, but I think I never see this feature in any cms/forum gallery ...
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 13, 2008, 01:27:17 PM
There is no official contest feature, yes I planned one but it is not going to be there for some time.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on October 13, 2008, 10:43:31 PM
Quote from: Krysia on October 12, 2008, 03:44:05 PM
I didn't have any problems uploading images (so far, knocks wood), but when I tried to upload a video, I got this:

QuoteGallery
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_Vids/Dir_1','3')' at line 4
File: /var/www/html/kr/krysiasweb.net/JTLFF/Sources/MGallery.php
Line: 1162

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.6, while your database is at version 1.1.5. The above error might possibly go away if you execute the latest version of upgrade.php.

I'm confused ---- when I updated from SMF 1.1.5, I did use the "latest version" of upgrade.php. Do I need to download just that file from the SMF Download area and wade through it manually to see which file might still say "1.1.5"?

As for the other... MySQL server version is: 5.0.32, the PHP version is 2.11.9.1.  ??? ??? ???

For those of you who may be getting the same error as I did (and having your question lost in the mass of pages), I found what appears to be a solution here: http://smf-media.com/community/index.php?topic=55.0 (http://smf-media.com/community/index.php?topic=55.0).

I'm off to try Dragoon's solution mentioned in that thread (because the other "solution" mentioned by a member is simply unacceptable and impossible at this point for the board I'm trying to add the Gallery for (a fresh install).

If it works, I'll let you know. :)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on October 13, 2008, 11:02:44 PM
QuoteDatabase 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_Vids/Dir_1','3')' at line 4
File: /var/www/html/kr/krysiasweb.net/JTLFF/Sources/MGallery.php
Line: 1162

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.6, while your database is at version 1.1.5. The above error might possibly go away if you execute the latest version of upgrade.php.
Shoot. I should have known it couldn't be that easy. It happens whenever I try to upload a video.

Line 1162 in the MGallery.php file in question is:
Quote__FILE__,__LINE__

I don't get it.
This kind of error is beyond my skill. Help?  ???  :(
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Powerbob on October 14, 2008, 07:53:08 AM
hmmm sounds like a server prob to me. It installed easily on my test site, and I can upload videos
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 14, 2008, 08:27:28 AM
Try the solution here (http://smf-media.com/community/index.php?topic=101.0)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: RCC_SaMiaM on October 14, 2008, 10:57:03 AM
So why was the attached php file for being able to link images in posts removed?  I assume it is being integrated in the new release, any idea on when that might happen?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 14, 2008, 11:14:00 AM
Actually it was my fault, I've re-attached it.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Sudhakar Arjunan on October 14, 2008, 02:11:26 PM
On my clean and new 2.0.4, i have installed .
And the install went fine and when i notice the mgallery page.

Its shows as ,

Gallery
Database Error
Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation 'ifnull'
File: /home/itacumen/public_html/discuss/Sources/Subs-MGallery.php
Line: 2599

And my database error log is also filled with the same error.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: nodent on October 14, 2008, 07:36:52 PM
VERY nice mod.
Thank you for your hard work.

The mod is installed and appears to be working great.

One glitch.....

MY pictures are self deleting!!!!!!  >:(

I look at the moderator log and I get
QuoteBy :
Time : Today at 04:46:27 pm
On : Brooke & Tom
Action type : Deleted item
   By :
Time : Today at 04:33:03 pm
On : Tasha & Matt & Buddy
Action type : Deleted item
   By :
Time : October 13, 2008, 05:59:47 pm
On : Old School
Action type : Deleted item
   By :
Time : October 03, 2008, 03:42:58 pm
On : Brook & Tom
Action type : Deleted item
   By :
Time : October 03, 2008, 03:42:42 pm
On : Tasha, Matt and Buddy
Action type : Deleted item
   By :
Time : October 03, 2008, 03:42:21 pm
On : Shane
Action type : Deleted item
   By :
Time : October 03, 2008, 03:42:10 pm
On : Independance Day at Fox4
Action type : Deleted item
   By :
Time : October 03, 2008, 03:41:59 pm
On : Brendan
Action type : Deleted item

any ideas?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on October 14, 2008, 11:07:05 PM
Quote from: Dragooon on October 14, 2008, 08:27:28 AM
Try the solution here (http://smf-media.com/community/index.php?topic=101.0)
Okay, that enabled me to upload it, but for some bizarre reason, it uploaded it twice or something ---- when it plays, no video appears, only sound, and the sound itself overlaps.

In addition, text no longer recognizes apostrophes (example's) -- it inserts a \ instead (example\'s).

ETA: Okay, it shows the video only if you definitely include the pixels of said video. However, the overlap still exists --- it loaded it twice.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on October 14, 2008, 11:26:06 PM
I took a screencap in the hopes it helps clarify...
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: select_id on October 15, 2008, 07:18:56 PM
I think there is another bug. If i wrong, i'm sorry.
Please check it.
If you edit your picture and reupload it, and if you get "The database value you're trying to insert does not exist: width" error then you should patch these codes.

In MGallery.php, in MGal_edit_item function;

Find
// Initialize the class
$file = new mgal_media_handler;

Add after
$file->force_mime = $file->getMimeFromExt($_FILES['file']['name']);


find
// Process this thumb
$file = new mgal_media_handler;

add after
$file->force_mime = $file->getMimeFromExt($filename);


after few lines, find

$thumb = $file->createThumbnail($mgalSettings['data_dir_path'].'/tmp/tmp_thumb_'.$item_data['id_media'].'_extjpeg', $mgalSettings['max_thumb_width'], $mgalSettings['max_thumb_height']);


replace with

$thumb = $file->createThumbnail($mgalSettings['data_dir_path'].'/tmp/tmp_thumb_'.$item_data['id_thumb'].'_extjpeg', $mgalSettings['max_thumb_width'], $mgalSettings['max_thumb_height']);


and find
array('thumb' => $item_data['id_thumb'], 'size' => $thumb->getSize(), 'f-name' => 'thumb_'.$filename.'.jpg',
'width' => $thumb_width, 'height' => $thumb_height, 'directory' => $_dir2),
__FILE__,__LINE__);


replace with
array('thumb' => $item_data['id_thumb'], 'size' => $thumb->getFileSize(), 'f-name' => 'thumb_'.$filename.'.jpg',
'width' => $thumb_width, 'height' => $thumb_height, 'directory' => $_dir2),
__FILE__,__LINE__);


Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: select_id on October 15, 2008, 07:22:25 PM
Quote from: nodent on October 14, 2008, 07:36:52 PM
VERY nice mod.
Thank you for your hard work.

The mod is installed and appears to be working great.

One glitch.....

MY pictures are self deleting!!!!!!  >:(

I look at the moderator log and I get
QuoteBy :
Time : Today at 04:46:27 pm
On : Brooke & Tom
Action type : Deleted item
   By :
Time : Today at 04:33:03 pm
On : Tasha & Matt & Buddy
Action type : Deleted item
   By :
Time : October 13, 2008, 05:59:47 pm
On : Old School
Action type : Deleted item
   By :
Time : October 03, 2008, 03:42:58 pm
On : Brook & Tom
Action type : Deleted item
   By :
Time : October 03, 2008, 03:42:42 pm
On : Tasha, Matt and Buddy
Action type : Deleted item
   By :
Time : October 03, 2008, 03:42:21 pm
On : Shane
Action type : Deleted item
   By :
Time : October 03, 2008, 03:42:10 pm
On : Independance Day at Fox4
Action type : Deleted item
   By :
Time : October 03, 2008, 03:41:59 pm
On : Brendan
Action type : Deleted item

any ideas?

You should look that

Quote from: select_id on October 13, 2008, 07:30:39 AM
If any user type this link its own browser, it can delete any item on gallery.
www.mywebsite.com/index.php?action=mgallery;sa=delete;type=item;id=xxx
xxx=item number.

to prevent this attack find this code in MGallery.php

// Delete it
deleteItems($item_data['id_media']);


add before


if($user_info['id'] == 0)
   fatal_lang_error('mgallery_delete_denied');
if ($item_data['id_member'] != $user_info['id'])
   fatal_lang_error('mgallery_delete_denied');


and find this

if($_GET['type'] == 'item') {
// Load the item
$request = $mgalFunc['db_query']("
SELECT m.id_media

add after
, m.id_member
But i haven't tested enough the code.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: genieuk on October 15, 2008, 07:25:42 PM
I must say i really am tempted to convert from SMF gallery lite but i am concerned about the bandwidth with videos etc.

I am in a no win situation.

Mathew
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: nodent on October 15, 2008, 08:41:42 PM
Thank you select_id

I'll give it a try
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: crustybum on October 16, 2008, 09:21:36 AM
Like a previous post, i am also trying to install this mod on a default theme but get the following errors (i cant see the answer in package manager)

Installing this package will perform the following actions:  Type Action Description
1. Execute Code db_mgallery.php 
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/Subs.php Test successful
4. Execute Modification ./Sources/Load.php Test successful
5. Execute Modification ./Sources/ManagePermissions.php Test successful
6. Execute Modification ./Themes/default/index.template.php Test failed
7. Execute Modification ./Sources/Who.php Test successful
8. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
9. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
10. Extract Tree ./Sources 
11. Extract Tree ./Themes 
12. Extract Tree ./mgal_data 

Chris
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Kindred on October 16, 2008, 07:01:00 PM
and like the previous responses...   you have a mod which has changes the index.template.php beyond what this mod is looking for.   Any failure files will have to have the mod manually applied in those files.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on October 16, 2008, 11:11:38 PM
Quote from: Krysia on October 14, 2008, 11:07:05 PM
Quote from: Dragooon on October 14, 2008, 08:27:28 AM
Try the solution here (http://smf-media.com/community/index.php?topic=101.0)
Okay, that enabled me to upload it, but for some bizarre reason, it uploaded it twice or something ---- when it plays, no video appears, only sound, and the sound itself overlaps.

In addition, text no longer recognizes apostrophes (example's) -- it inserts a \ instead (example\'s).

ETA: Okay, it shows the video only if you definitely include the pixels of said video. However, the overlap still exists --- it loaded it twice.

Quote from: Krysia on October 14, 2008, 11:26:06 PM
I took a screencap in the hopes it helps clarify...

Anyone have any ideas that could help me?
Thank you...
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 17, 2008, 02:33:12 AM
Quote from: Krysia on October 16, 2008, 11:11:38 PM
Anyone have any ideas that could help me?
Thank you...
I could help you but I'm not sure what you want :P
Plus, I made so many changes to the templates and stuff like that -- maybe your problems are fixed in the upcoming v1.1. (Which has so many changes that I really think it should be called 1.5 or even 2.0 :P)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: select_id on October 17, 2008, 06:12:19 AM
Quote from: Krysia on October 16, 2008, 11:11:38 PM
Anyone have any ideas that could help me?
Thank you...
Try this.

find in MGallery.php
$title = $mgalFunc['htmlspecialchars']($_POST['title'], ENT_QUOTES);

replace with
$title = $mgalFunc['htmlspecialchars'](stripslashes($_POST['title']), ENT_QUOTES);


find
$desc = $mgalFunc['htmlspecialchars']($_POST['desc'], ENT_QUOTES);

replace with
$desc = $mgalFunc['htmlspecialchars'](stripslashes($_POST['desc']), ENT_QUOTES);


find
$kw = $mgalFunc['htmlspecialchars']($_POST['keywords'], ENT_QUOTES);

replace with
$kw = $mgalFunc['htmlspecialchars'](stripslashes($_POST['keywords']), ENT_QUOTES);


you can find those codes in two functions, replace both them.
after that patch, you should edit your item again.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: crustybum on October 17, 2008, 06:25:50 AM
Quote from: Kindred on October 16, 2008, 07:01:00 PM
and like the previous responses...   you have a mod which has changes the index.template.php beyond what this mod is looking for.   Any failure files will have to have the mod manually applied in those files.

ok so i have tried to istall it via the package parser, but still get the same errors..
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: select_id on October 17, 2008, 06:57:36 AM
Quote from: Dragooon on October 14, 2008, 08:27:28 AM
Try the solution here (http://smf-media.com/community/index.php?topic=101.0)
Hi dragooon,
i think i found another solution.
In Subs-MGallery.php, in getEncryptedFilename function, find this
$enc_name = $id . '_' . strtr($clean_name, '.', '_') . md5($clean_name).'_ext'.$ext;
add before
$clean_name = str_replace("'","",$clean_name);

What do you think about this code?
-----------------------------
This patch is not necessary. Please ignore it :)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: NO CARRIER on October 17, 2008, 08:24:19 AM
Hi, I have a problem.
The install passed fine. I created some galleries. Now, when I'm try to access the admin panel of the gallery, I get an error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 35 bytes) in /home/aquar1um/public_html/forum/Sources/Subs.php on line 2522

Subs.php contains

   // Replace away!
   // !!! There must be a way to speed this up.
   $message = preg_replace($smileyfromcache, $smileytocache, $message);


and no error was logged into the forum error log.

How to debug the problem?

Thanks in advance.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Kindred on October 17, 2008, 08:28:09 AM
Quote from: crustybum on October 17, 2008, 06:25:50 AM
Quote from: Kindred on October 16, 2008, 07:01:00 PM
and like the previous responses...   you have a mod which has changes the index.template.php beyond what this mod is looking for.   Any failure files will have to have the mod manually applied in those files.

ok so i have tried to istall it via the package parser, but still get the same errors..

Any failure files will have to have the mod *MANUALLY* applied in those files.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: crustybum on October 17, 2008, 08:57:12 AM
Sorry, i am a bit slow, can anyone show me?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: NO CARRIER on October 17, 2008, 09:02:50 AM
Quote from: NO CARRIER on October 17, 2008, 08:24:19 AM
Hi, I have a problem.
The install passed fine. I created some galleries. Now, when I'm try to access the admin panel of the gallery, I get an error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 35 bytes) in /home/aquar1um/public_html/forum/Sources/Subs.php on line 2522

Subs.php contains

   // Replace away!
   // !!! There must be a way to speed this up.
   $message = preg_replace($smileyfromcache, $smileytocache, $message);


and no error was logged into the forum error log.

How to debug the problem?

Thanks in advance.

Hm. I was enabled permission for ungrouped members to manage the album. I removed it and now again can access the admin page.


P.S. Yes, if I enable again the permission, the gallery admin dissapears.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: qubbah on October 17, 2008, 01:28:54 PM
how can i make a general tabs like  Home Admin Unseen Search Stats User albums   align to left?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Sudhakar Arjunan on October 17, 2008, 01:31:29 PM
I have tried using mgallery mconverter.php.

On the third step, it told me this error.

otice: Undefined index: sp-forum in /home/itacumen/public_html/discuss/Sources/Subs.php on line 3876

Warning: filesize() [function.filesize]: stat failed for /home/itacumen/public_html/discuss/gallery//thumb_1164_17_01_08_6_17_34.png in /home/itacumen/public_html/discuss/Sources/Subs-MGallery.php on line 1768
An Error Has Occurred!
The database value you're trying to insert does not exist: width
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 17, 2008, 01:43:52 PM
NO CARRIER> I don't know where your bug comes from...
Try to add this line before line 2522:
@ini_set('memory_limit', '64M');

gubbah> This is not possible (or at least it won't be in the upcoming version) because now it's using a table layout, in order to avoid broken text. Tabs on the left? What for?

All> I'm pleased to announce that there will be so many new features in the upcoming SMG, that Dragooon has agreed with me that "v1.1" is just not good enough to reflect that ;)

So, the next version will be v1.5, and I'm sure you will all agree that it is deserved :)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: videoman57 on October 17, 2008, 02:36:23 PM
I imagine if we keep requesting more features, you two will never get the update released...so we will leave you alone in the request area....and just patiently await your next release...1.5...surely it will be a wondrous piece of gallery software...yahooooo
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Sudhakar Arjunan on October 17, 2008, 03:38:26 PM
Quote from: asudhakar on October 17, 2008, 01:31:29 PM
I have tried using mgallery mconverter.php.

On the third step, it told me this error.

Notice: Undefined index: sp-forum in /home/itacumen/public_html/discuss/Sources/Subs.php on line 3876

Warning: filesize() [function.filesize]: stat failed for /home/itacumen/public_html/discuss/gallery//thumb_1164_17_01_08_6_17_34.png in /home/itacumen/public_html/discuss/Sources/Subs-MGallery.php on line 1768
An Error Has Occurred!
The database value you're trying to insert does not exist: width


After this images in my gallery is not showing up.

Any help to get back my gallery working good.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 17, 2008, 06:53:30 PM
The error is either due to the fact that png files don't hold width/height information (although I think that's not true), or that you added an unneeded "/" in the SGL gallery URL.
That's the extent of what I can say though.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on October 17, 2008, 08:01:19 PM
Quote from: Nao 尚 on October 17, 2008, 02:33:12 AM
Quote from: Krysia on October 16, 2008, 11:11:38 PM
Anyone have any ideas that could help me?
Thank you...
I could help you but I'm not sure what you want :P
Plus, I made so many changes to the templates and stuff like that -- maybe your problems are fixed in the upcoming v1.1. (Which has so many changes that I really think it should be called 1.5 or even 2.0 :P)

I was referring to both this post: http://www.simplemachines.org/community/index.php?topic=260821.msg1752791#msg1752791

and this post: http://www.simplemachines.org/community/index.php?topic=260821.msg1752774#msg1752774

After trying the fix Dragoon suggested. It enabled the uploading of the video, but the video duplicates itself and overlaps. Weird.

I'll try select_id's first "fix" idea. Thank you. :)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on October 17, 2008, 08:22:32 PM
Quote from: select_id on October 17, 2008, 06:12:19 AM
Quote from: Krysia on October 16, 2008, 11:11:38 PM
Anyone have any ideas that could help me?
Thank you...
Try this.

find in MGallery.php
$title = $mgalFunc['htmlspecialchars']($_POST['title'], ENT_QUOTES);

replace with
$title = $mgalFunc['htmlspecialchars'](stripslashes($_POST['title']), ENT_QUOTES);


find
$desc = $mgalFunc['htmlspecialchars']($_POST['desc'], ENT_QUOTES);

replace with
$desc = $mgalFunc['htmlspecialchars'](stripslashes($_POST['desc']), ENT_QUOTES);


find
$kw = $mgalFunc['htmlspecialchars']($_POST['keywords'], ENT_QUOTES);

replace with
$kw = $mgalFunc['htmlspecialchars'](stripslashes($_POST['keywords']), ENT_QUOTES);


you can find those codes in two functions, replace both them.
after that patch, you should edit your item again.

That worked for removing the slashes, Thank you, select_id. :D (Except for the album names ---- there are still backward slashes there.)

Unfortunately, the "doubling" is still in effect... Oh, and in addition, before I even tried the fix, the album "icons" for the members were missing. They were there yesterday. Gone today. I'll re-read this post to see if this has occurred before to anyone...
Eh, I re-edited the albums and re-uploaded the album "icons", and now they're there again.

*sigh*
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: NO CARRIER on October 18, 2008, 02:53:51 AM
Quote from: Nao 尚 on October 17, 2008, 01:43:52 PM
NO CARRIER> I don't know where your bug comes from...
Try to add this line before line 2522:
@ini_set('memory_limit', '64M');

It worked. Thanks.

P.S. Nao, I'll translate the gallery in a few days to bulgarian, do you want the translation?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Sudhakar Arjunan on October 18, 2008, 03:29:03 AM
Quote from: Nao 尚 on October 17, 2008, 06:53:30 PM
The error is either due to the fact that png files don't hold width/height information (although I think that's not true), or that you added an unneeded "/" in the SGL gallery URL.
That's the extent of what I can say though.

What what i could do now,

Using my ftp could i transfer it.

because of this error, my gallery is not showing up any pictures. Any fix for it.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: qubbah on October 18, 2008, 03:32:35 AM
After upload a video/youtube them film.png icon is not show... how can i resolve this?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 18, 2008, 04:09:33 AM
Quote from: NO CARRIER on October 18, 2008, 02:53:51 AM
P.S. Nao, I'll translate the gallery in a few days to bulgarian, do you want the translation?
I recommend that you wait until the release of v1.5... It has added and removed many, many strings. You don't want to waste time translating a soon-to-be outdated version.

And I don't think we have a policy with translations. The package is already very large right now (it's standing at 200KB+!), I'm not sure Dragooon will want to include every possible language file. I think it's best to keep them apart if they're not updated by the authors (i.e. Dragooon and I). So, for now--English and French only.

On the other hand, I'm still looking for an English native speaker to look through my beta English files and fix any incorrect English! I've done my best to retool everything I could, but I am no more an "English native" than 'Gooon is.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 18, 2008, 05:15:46 AM
I got different plans for translations. atleast.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Sudhakar Arjunan on October 18, 2008, 05:24:31 AM
Hi Dragooon Have a look at this post and help me

what i could do now,

Using my ftp could i transfer it.

because of this error, my gallery is not showing up any pictures. Any fix for it.

http://www.simplemachines.org/community/index.php?topic=260821.msg1756395#msg1756395
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: dimdom on October 18, 2008, 06:52:13 AM
[flash=400,330]http://www.mysite.com/Videos/flvplayer.swf?file=movie.flv&image=http://www.mysite.com/Videos/image.jpg&logo=http://www.mysite.com/Videos/logo.png[/flash]

I use the above BBC code  (custom made  :) )to display videos in flv format (uploaded in my server) for posting them in my forums.

Is it possible to use something similar to that in order to display flvs in media gallery since it doesnt display them at all?

Or is there a way to point media gallery to flvplayer.swf in order to show/play them?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Kindred on October 18, 2008, 07:40:39 AM
Nao,

Send them to me...   I'll confirm the language (I'm an english teacher, among other things)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: locau on October 18, 2008, 09:03:45 AM
when i try to install this mod i get an error:

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-catchers-net' at line 2
File: /storage/www/Packages/temp/db_mgallery.php
Line: 386

How can i fix this ?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 18, 2008, 09:59:22 AM
Quote from: Kindred on October 18, 2008, 07:40:39 AM
Nao,

Send them to me...   I'll confirm the language (I'm an english teacher, among other things)
Would you mind joining the language team? Currently it really doesn't exist but I can make it so that you will have the ability to get the latest Language files from the latest SVN build.

Quote from: locau on October 18, 2008, 09:03:45 AM
when i try to install this mod i get an error:

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-catchers-net' at line 2
File: /storage/www/Packages/temp/db_mgallery.php
Line: 386

How can i fix this ?
Whats your SMF, PHP and MySQL version.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: locau on October 18, 2008, 10:43:33 AM

Quote from: locau on October 18, 2008, 09:03:45 AM
when i try to install this mod i get an error:

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-catchers-net' at line 2
File: /storage/www/Packages/temp/db_mgallery.php
Line: 386

How can i fix this ?
Whats your SMF, PHP and MySQL version.
[/quote]

Powered by SMF 1.1.6
PHP Version 5.2.6
MYSQl Server version: 5.0.67

Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: ccbtimewiz on October 18, 2008, 01:00:48 PM
Nice job with the mod, Dragooon. :)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 18, 2008, 01:04:57 PM
Thanks, and don't forget Nao :)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Sudhakar Arjunan on October 18, 2008, 01:14:23 PM
While using mgconverer form smf 2.0.4 with smf gallery 2.

Warning: filesize() [function.filesize]: stat failed for /home/itacumen/public_html/discuss/gallery//thumb_1164_17_01_08_6_17_34.png in /home/itacumen/public_html/discuss/Sources/Subs-MGallery.php on line 1768
An Error Has Occurred!
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 18, 2008, 01:15:22 PM
Is this SMF Gallery pro or lite?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Sudhakar Arjunan on October 18, 2008, 01:21:47 PM
Free version of SMF ( Smf Lite )which has around 5535 photos and four categories in it.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: dimdom on October 18, 2008, 01:34:52 PM
Quote from: dimdom on October 18, 2008, 06:52:13 AM
[flash=400,330]http://www.mysite.com/Videos/flvplayer.swf?file=movie.flv&image=http://www.mysite.com/Videos/image.jpg&logo=http://www.mysite.com/Videos/logo.png[/flash]

I use the above BBC code  (custom made  :) )to display videos in flv format (uploaded in my server) for posting them in my forums.

Is it possible to use something similar to that in order to display flvs in media gallery since it doesnt display them at all?

Or is there a way to point media gallery to flvplayer.swf in order to show/play them?


I cant find a way to fix it.

As an alternative, I post my videos with BBC code in the information panel...
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on October 18, 2008, 01:54:35 PM
Quote from: Nao 尚 on October 18, 2008, 04:09:33 AM
On the other hand, I'm still looking for an English native speaker to look through my beta English files and fix any incorrect English! I've done my best to retool everything I could, but I am no more an "English native" than 'Gooon is.
I'm a native English speaker ---- I'd be happy to volunteer to look through the files. :)
(I also happen to be a publisher and editor.)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on October 18, 2008, 01:58:31 PM
But does anyone have any idea what could be causing the doubling (overlapping) of the video when posting a vid?

The back-slashes have been fixed (for now) within the post text (although not the album names), but my bigger concern is the doubling of the video.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 18, 2008, 02:52:14 PM
Krysia and Kindred, thanks for your offer!
I'll be sure to make sure you have the latest files before we go public.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: ke4obt on October 18, 2008, 03:38:54 PM
I was trying to install version 1.0.2, but the install fails on sources/managepermissions.php. I looked on the download page at the manual install and it came back with "this mod hasn't been approved" - so there was no manual install instructions.
All the other tests for install pass, except that one file. If I post my copy of that file, can someone fix it for me? Or let me know what modifications need to be done for it?
Also, on the English translation, my wife is a "walking dictionary", so if you want her to look over it for you, she said she would be more than happy to help. It would be an extra set of eyes for you.

Thanks in advance,
Flip


=====edit=====
disregard the first part of the post, it was obviously another mod I had installed. Installed Media Gallery on a fresh install of smf with no problems. Then just downloaded the managepermissions.php and copied and pasted the code - easier than I let myself think it would be. Amazing what happens when the wife comes in and looks at what I'm messing up. He He.
Thanks again,
Flip
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: BYUFanatic on October 18, 2008, 03:51:38 PM
Dragooon -

Here are my index.template.php files (default and apolloBB) - broken up into two posts because of size limits:

DEFAULT

<?php
// Version: 1.1.5; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
{
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
$options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']);
}

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
<body>'
;

echo '
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">'
;

if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">'
$context['forum_name'], '</span>';
else
echo '
<img src="'
$settings['header_logo_url'], '" style="margin: 4px;" alt="'$context['forum_name'], '" />';

echo '
</td>
<td align="right" class="catbg">
<img src="'
$settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>
</tr>
</table>'
;


// display user name
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>'
;

if($context['user']['is_logged'])
echo '
<td class="titlebg2" height="32">
<span style="font-size: 130%;"> '
$txt['hello_member_ndt'], ' <b>'$context['user']['name'] , '</b></span>
</td>'
;

// display the time
echo '
<td class="titlebg2" height="32" align="right">
<span class="smalltext">' 
$context['current_time'], '</span>';

// this is the upshrink button for the user info section
echo '
<a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="'
$settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
</td>
</tr>
<tr id="upshrinkHeader"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
<td valign="top" colspan="2">
<table width="100%" class="bordercolor" cellpadding="8" cellspacing="1" border="0" style="margin-top: 1px;">
<tr>'
;

if (!empty($context['user']['avatar']))
echo '
<td class="windowbg" valign="middle">'
$context['user']['avatar']['image'], '</td>';

echo '
<td colspan="2" width="100%" valign="top" class="windowbg2"><span class="middletext">'
;

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a> <br />
<a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';

}
// Otherwise they're a guest - send them a lovely greeting...
else
echo $txt['welcome_guest'];

// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged'])
{
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>'
$txt[616], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
'
$txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo ' </span>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select>
<input type="submit" value="'
$txt[34], '" /><br />
<span class="middletext">'
$txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;
}

echo '
</td>
</tr>
</table>
</td>
</tr>
</table>'
;

echo '
<table id="upshrinkHeader2"'
, empty($options['collapse_header']) ? '' ' style="display: none;"'' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>'
;

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<td width="90%" class="titlebg2">
<span class="smalltext"><b>'
$txt[102], '</b>: '$context['random_news_line'], '</span>
</td>'
;
echo '
<td class="titlebg2" align="right" nowrap="nowrap" valign="top">
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<a href="'
$scripturl'?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input type="text" name="search" value="" style="width: 190px;" />&nbsp;
<input type="submit" name="submit" value="'
$txt[182], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />'
;

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form>
</td>
</tr>
</table>
</div>'
;


// Show the menu here, according to the menu sub template.
template_menu();


// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">'
;
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

echo '
</div>'
;

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'right' 'left''">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="'
$settings['images_url'], '/powered-mysql.gif" alt="'$txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="'
$settings['images_url'], '/powered-php.gif" alt="'$txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
'
theme_copyright(), '
</td>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'left' 'right''">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="'
$settings['images_url'], '/valid-xhtml10.gif" alt="'$txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="'
$settings['images_url'], '/valid-css.gif" alt="'$txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
</div>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;>&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';

if ($context['current_action']=='mgallery')
$current_action 'mgallery';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_' 
$first '">&nbsp;</td>';

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'home' 'active_back' 'back' '">
<a href="'
$scripturl'">' $txt[103] , '</a>
</td>' 
$current_action == 'home' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'help' 'active_back' 'back' '">
<a href="'
$scripturl'?action=help">' $txt[119] , '</a>
</td>' 
$current_action == 'help' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'search' 'active_back' 'back' '">
<a href="'
$scripturl'?action=search">' $txt[182] , '</a>
</td>' 
$current_action == 'search' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'admin' 'active_back' 'back' '">
<a href="'
$scripturl'?action=admin">' $txt[2] , '</a>
</td>' 
$current_action == 'admin' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'profile' 'active_back' 'back' '">
<a href="'
$scripturl'?action=profile">' $txt[79] , '</a>
</td>' 
$current_action == 'profile' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'pm' 'active_back' 'back' '">
<a href="'
$scripturl'?action=pm">' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</a>
</td>' 
$current_action == 'pm' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'calendar' 'active_back' 'back' '">
<a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a>
</td>' 
$current_action == 'calendar' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// The [gallery]!
if (allowedTo('mgallery_access'))
echo ($current_action == 'mgallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'mgallery' 'active_back' 'back' '">
<a href="'
$scripturl'?action=mgallery">' $txt['mgallery_gallery'] , '</a>
</td>' 
$current_action == 'mgallery' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'mlist' 'active_back' 'back' '">
<a href="'
$scripturl'?action=mlist">' $txt[331] , '</a>
</td>' 
$current_action == 'mlist' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'login' 'active_back' 'back' '">
<a href="'
$scripturl'?action=login">' $txt[34] , '</a>
</td>' 
$current_action == 'login' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'register' 'active_back' 'back' '">
<a href="'
$scripturl'?action=register">' $txt[97] , '</a>
</td>' 
$current_action == 'register' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'logout' 'active_back' 'back' '">
<a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a>
</td>' 
$current_action == 'logout' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The end of tab section.
echo '
<td class="maintab_' 
$last '">&nbsp;</td>
</tr>
</table>'
;

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>




continued next post....
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: BYUFanatic on October 18, 2008, 03:52:06 PM


APOLLOBB

<?php
// Version: 1.1.4; index

/* blablah! This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;

// Color changer
if(!$context['user']['is_guest'] && isset($_POST['options']['theme_color']))
{
include_once($GLOBALS['sourcedir'] . '/Profile.php');
makeThemeChanges($context['user']['id'], $settings['theme_id']);
$options['theme_color'] = $_POST['options']['theme_color'];
}
elseif ($context['user']['is_guest'])
{
if (isset($_POST['options']['theme_color']))
{
  $_SESSION['theme_color'] = $_POST['options']['theme_color'];
  $options['theme_color'] = $_SESSION['theme_color'];
}
elseif (isset($_SESSION['theme_color']))
  $options['theme_color'] = $_SESSION['theme_color'];
}
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// Any color set by user?
if (isset($options['theme_color']))
$settings['theme_main_color'] = $options['theme_color'];

// If not set, or if not allowed to set
if(!isset($options['theme_color']) || (isset($settings['allow_color_change']) && $settings['allow_color_change'] == 'no'))
{
// Defaults.
$options['theme_color'] = isset($settings['theme_main_color']) ? $settings['theme_main_color'] : 'blue';
$settings['theme_main_color'] = $options['theme_color'];
}

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style_' $settings['theme_main_color'] , '.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />
<!--[if IE]>
<style type="text/css">
/* IE hack to emulate the :hover & :focus pseudo-classes
Add the selectors below that required the extra attributes */
.hoverbox { behavior: url("'
$settings['theme_url'], '/pseudo-hover.htc"); }
</style>
<![endif]-->'
;

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';
function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';
echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");
document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";
current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';
function shrinkHeaderIC(mode) {'
;
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';
echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");
document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";
current_header_ic = mode;
}
// ]]></script>
</head>
<body onload="PreloadFlag = true;">'
;
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo '
<table cellspacing="0" cellpadding="0" align="center" style="border:0 none;width:' 
, (isset($settings['page_div_width']) && !empty($settings['page_div_width'])) ? $settings['page_div_width'] : '100%' ,  '">
<tr>
<td class="border_left"></td>
<td class="content">
<div class="topbar">
<table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
<tr>
<td id="header_logo" width="1">'
;
// Show the logo.  It'll be either the default image, or one you set in the Theme Settings.  The stock logo is logo.gif in the images directory for each color.
if (empty($settings['header_logo_url']))
echo '
<a href="'
$scripturl'" class="topimg"><img src="'$settings['images_url'] . '/'$settings['theme_main_color'], '/logo.gif" style="margin: 0px;border: 0 none;height: 89px" ',  (empty($settings['show_name_near_logo'])) ? 'alt="'.$context['forum_name'].'"' 'alt=""' ,' title="'$context['forum_name'], '" /></a>';
else echo '
<a href="'
$scripturl'" title="'$context['forum_name'], '" class="topimg"><img src="'$settings['header_logo_url'], '" style="border: 0 none;vertical-align:middle;margin: 0px;" ',  (empty($settings['show_name_near_logo'])) ? 'alt="'.$context['forum_name'].'"' 'alt=""' ,' /></a>';
echo '
</td>'
;

// Show the name near the logo, if it's wanted.
if (!empty($settings['show_name_near_logo']))
echo '
<td>
<span class="toptitle">'
$context['forum_name'], '</span>
</td>'
;

// If set, show the search box or login box in the header.
if(empty($settings['boxes_in_header'])) {
// Are they logged in?  Show the search box.
if ($context['user']['is_logged']) {
echo '
<td id="header_right">
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '"><br />
<input class="login_bg" type="text" name="search" value="" /><br />
<input class="login_bg_submit" type="submit" name="submit" value="'
$txt[182], '" />
<input type="hidden" name="advanced" value="0" />'
;
// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';
// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form>
</td>'
;
// Otherwise they're a guest:  show a login box...
} else {
echo '
<td id="header_right">
<script type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>
<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''><br />
<input class="login_bg" type="text" name="user" alt="'
,$txt[35],'" title="',$txt[35],'" /><br />
<input class="login_bg" type="password" name="passwrd" maxlength="32" alt="'
$txt[36], '" title="'$txt[36], '" /><br />
<input type="hidden" name="cookielength" value="-1" />
<input type="submit" class="login_bg_submit" name="login" value="'
$txt[34], '" />
<input type="hidden" name="hash_passwrd" value="" />
</form>
</td>'
;
}
}

echo '
</tr>
</table>
</div>'
;

// Here we got another bar!  This one serves up random news lines, the current time, and those neat little bar peanuts!
echo '
<div style="width: 100%; padding-top: 4px;" id="bg_header_bar">
<table border="0" cellspacing="0" cellpadding="0" style="width: 100%;">
<tr style="vertical-align:middle">'
;

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '

<td class="smalltext" style="vertical-align:middle;padding-left:10px; padding-top:0px; padding-bottom:0px;">
<strong>'
$txt[102], '</strong>: '$context['random_news_line'], '
</td>'
;
echo '
<td class="smalltext" style="vertical-align:middle;text-align:right;padding-right:10px; padding-top:0px; padding-bottom:0px;font-weight:bold">
$context['current_time'], '
</td>
</tr>
</table>
</div>'


// Show that lovable template menu.
template_menu();

// Start the contect section.
echo '
<div class="content">'
;

// Below the menu ads go here, oh boy!
if (function_exists("show_indexAds")) {
$ads show_indexAds();
if(!empty($ads)) {
echo '
<div class="memberbardiv" align="center">'
;
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</div>';
}
unset($ads);
}

// PM box, from Apollo.
if ($context['user']['is_logged'] && $context['allow_pm'] && $context['user']['unread_messages']>=1)
echo '
<div id="pm_new" align="center"><a class="hoverbox" href="'
$scripturl'?action=pm">'$txt[660], ' '$context['user']['unread_messages'], ' '$context['user']['unread_messages'] == $txt[471] : $txt[153], '.  '$txt[661], ' '$txt[662], ' '$txt[663], '</a></div>';

// We start with the member bar.  Guests only have a thin bar with the guest greeting and color chooser.
// In the settings, you can also set whether guests/users see a login box/search box here, like in Dilber MC.
// Members have the greeting, color changer, avatar, PM links, new post links, and some warnings.
echo '
<div class="memberbardiv">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="20"></td>
<td class="memberbar">'
;

if($context['user']['is_logged'])
echo '
'
$txt['hello_member_ndt'], ' <strong>'$context['user']['name'] , '</strong>';
else
echo $txt['welcome_guest'];

echo '
</td>
<td class="middletext" align="right" valign="top" style="padding-right:10px; padding-left:10px;">
<a style="float:right" href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="'
$settings['images_url'], '/', empty($options['collapse_header']) ? 'collapse.gif' 'expand.gif''" alt="*" title="'$txt['upshrink_description'], '" style="vertical-align:top" /></a>
</td>
</tr>

<tr id="upshrinkHeader"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
<td valign="middle" width="1" style="padding-right:10px; padding-left:10px;">'
;

// Complicated stuff!  If you're logged in and have an avatar, show it.  If you're
// logged in and don't have one, show a "No Avatar" avatar based on your color and
// language.  Otherwise, show a "Guest" avatar based on your color and language.
if($context['user']['is_logged'])
echo '
'
,  !empty($context['user']['avatar']) ? $context['user']['avatar']['image'] : '<img src="'$settings['images_url']. '/'$context['user']['language']. '/'$settings['theme_main_color']. '/no_avatar.gif" width="80" height="80" alt="" />';
else echo '
<img src="'
$settings['images_url'], '/'$context['user']['language'], '/'$settings['theme_main_color'], '/guest_avatar.gif" width="80" height="80" alt="" />';
echo '
</td>
<td class="memberbar">'
;
// If you're logged in, show PM info and links to new posts.
if($context['user']['is_logged'])
echo '
<br />
<span class="middletext">'
$context['allow_pm'] ? '<strong>' $txt[152] . ' <a href="' $scripturl '?action=pm">' $context['user']['messages'] . ' ' . ($context['user']['messages'] != $txt[153] : $txt[471]) . '</a>' $txt['newmessages4'] . ' ' $context['user']['unread_messages'] . ' ' . ($context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1']).'</strong>' '<br/>''.<br/><br/>
&raquo; <a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a> <br />
&raquo; <a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />
</span>'
;
echo '
</td>
<td class="middletext" style="text-align:right;vertical-align:top;padding-right:10px; padding-left:10px;">
<br />'
;
// Are they logged in?
if ($context['user']['is_logged']) {
// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in'])) {
echo '
'
$txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}

// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<strong>'
$txt[616], '</strong><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

// If searching is allowed, and you can't show the boxes in the header, put it here.
if(!empty($settings['boxes_in_header']) && ($context['allow_search'])) {
echo '
<br />
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '">
<a href="'
$scripturl'?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" alt="" /></a>
<input type="text" name="search" value="" />
<input type="submit" name="submit" value="'
$txt[182], '" style="vertical-align:top" />
<input type="hidden" name="advanced" value="0" />'
;
// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';
// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';
echo '
</form>'
;
}
}
// If they're guests, and you can't put the boxes in the header, put them here.
elseif (!empty($settings['boxes_in_header'])) {
echo '
<script type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>
<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" /><br />
<select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select>
<input type="submit" value="'
$txt[34], '" /><br />
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;
}
echo '
</td>
</tr>
<tr id="upshrinkHeader2"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
<td colspan="3" valign="middle" style="padding: 0 10px">'
;

// color selection box
if(isset($settings['allow_color_change']) && $settings['allow_color_change'] == 'box')
echo '
  <div style="float:right">
<form action="'
$scripturl'" method="post" class="smalltext">
<select name="options[theme_color]">
<option value="black"'  
,$settings['theme_main_color'] == 'black' ' selected="selected"''''>',$txt['apollobb_color_black'],'</option>
<option value="blue"'  
,$settings['theme_main_color'] == 'blue' ' selected="selected"''''>',$txt['apollobb_color_blue'],'</option>
<option value="green"' 
,$settings['theme_main_color'] == 'green' ' selected="selected"''''>',$txt['apollobb_color_green'],'</option>
<option value="purple"'
,$settings['theme_main_color'] == 'purple' ' selected="selected"''''>',$txt['apollobb_color_purple'],'</option>
<option value="red"'
,$settings['theme_main_color'] == 'red' ' selected="selected"''''>',$txt['apollobb_color_red'],'</option>
</select>
<input type="submit" name="submit" value="Change" style="width: 11ex;" />
</form>
</div>'
;
if(isset($settings['allow_color_change']) && $settings['allow_color_change'] == 'bars')
echo '
  <div style="float:right;padding-top:5px">
<form action="'
$scripturl'" method="post" class="smalltext">
<input style="border:solid 2px #6C7F93;background:#6C7F93;color:#6C7F93;width:20px;height:20px;font-size:1px" type="submit" value="black" name="options[theme_color]"/>
<input style="border:solid 2px #6699CC;background:#6699CC;color:#6699CC;width:20px;height:20px;font-size:1px" type="submit" value="blue" name="options[theme_color]"/>
<input style="border:solid 2px #4DB45D;background:#4DB45D;color:#4DB45D;width:20px;height:20px;font-size:1px" type="submit" value="green" name="options[theme_color]"/>
<input style="border:solid 2px #A185D6;background:#A185D6;color:#A185D6;width:20px;height:20px;font-size:1px" type="submit" value="purple" name="options[theme_color]"/>
<input style="border:solid 2px #E15050;background:#E15050;color:#E15050;width:20px;height:20px;font-size:1px" type="submit" value="red" name="options[theme_color]"/>
</form>
</div>'
;
echo '
</td>
</tr>
</table>
</div>'
;

//Welcome Ads
if (function_exists("show_welcomeAds")) {
$ads show_welcomeAds();
if(!empty($ads)) {
echo '<div class="memberbardiv" align="center">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</div>';
}
unset($ads);
}

// Extra stuff here.
if(!empty($settings['custom_global_html']))
echo '
<div align="center" style="width: 90%; margin-left: auto; margin-right: auto; margin-top:10px; border: 0px solid;" class="middletext">
'
$settings['custom_global_html'], '
</div>'
;

//Below the menu ads
if (function_exists("show_towerleftAds") && function_exists("show_towerrightAds")) {

//Tower left Ads
$ads show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">'$ads['type']==$ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';
unset($ads);

//Tower Right Ads
$ads show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}

// Congrats, we're done!  Let's go the content!
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

// What?!  Done already?  Fine, let's get to the footer.

//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
$ads show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">'$ads['type']==$ads['content'] : eval($ads['content']) ,'</td></tr></table>'

unset($ads);
//Close table for towerleft ads
$ads show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);

//Show ads on the bottom of the page
$ads show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" class="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>';

// Now we close out the content, and move on to the footers.
echo '
</div>
<div id="footer">
<span class="smalltext">
Theme by <a href="http://www.hvmdesign.com" title="Theme by High Velocity Media Web Design">HVMDesign</a> 
and <a href="http://www.dizzytechnology.com">Dizzy Technology</a>'
;

// Show custom copyright?
if ($settings['custom_copyright']!="")
echo '<br />
'
,$settings['custom_copyright'];

// Show the load time?
if ($context['show_load_time'])
echo '<br />
'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'];

echo '
<br />
</span>
</div><br />
<div id="bg_footer">

<div id="footer_left" class="smalltext">'
,theme_copyright(),'</div>
<div id="footer_right" class="smalltext">
<a href="http://validator.w3.org/check/referer" title="'
,$txt['valid_xhtml'],'">'$txt['apollobb_footer_xhtml'],'</a> | 
<a href="http://jigsaw.w3.org/css-validator/check/referer" title="'
$txt['valid_css'], '">',$txt['apollobb_footer_css'],'</a> | 
<a href="http://www.php.net/" title="'
$txt['powered_by_php'], '">',$txt['apollobb_footer_php'],'</a> | 
<a href="http://www.mysql.com/" title="'
$txt['powered_by_mysql'], '">',$txt['apollobb_footer_sql'],'</a>
</div>
</div>
</td>
<td class="border_right"></td>
</tr>
</table>'
;

// Don't even worry about this stuff.  Things do screw up without it, at least I think.
// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
</body>
</html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"...

// Has a nice, cool style from Apollo.
function theme_linktree()
{
global $context$settings$options$txt;

echo '
<table width="100%" cellspacing="1" cellpadding="0" border="0" align="center" class="nav" style="width:100%;margin:2px 0">
<tr>
<td class="nav" style="padding-left:4px" align="left">'
;
// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

$navcond '';

// If we're at the last link, make the link discolored.
if ($link_num == count($context['linktree']) -1)
$navcond 'nav-current';

// Show the link, including a URL if it should have one.
echo '<strong>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav '.$navcond.'">' $tree['name'] . '</a>' $tree['name'], '</strong>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;&raquo;&nbsp;';
}

echo '
</td>
</tr>
</table><br />'
;
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
 if (
$context['current_action']=='mgallery'$current_action 'mgallery'
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Open up our <div>.
echo'
<div id="bg_nav_links">'
;
// Show the [home] button.
echo '
<a href="'
$scripturl'" ' $current_action == 'home' 'class="nav_important"' '' '>' $txt[103] , '</a>&nbsp;|';
// Show the [help] button.
echo '
<a href="'
$scripturl'?action=help" ' $current_action == 'help' 'class="nav_important"' '' '>' $txt[119] , '</a>&nbsp;|';
// How about the [search] button?
if ($context['allow_search'])
echo '
<a href="'
$scripturl'?action=search" ' $current_action == 'search' 'class="nav_important"' '' '>' $txt[182] , '</a>&nbsp;|';
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<a href="'
$scripturl'?action=admin" ' $current_action == 'admin' 'class="nav_important"' '' '>' $txt[2] , '</a>&nbsp;|';
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '
<a href="'
$scripturl'?action=profile" ' $current_action == 'profile' 'class="nav_important"' '' '>' $txt[79] , '</a>&nbsp;|';
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '
<a href="'
$scripturl'?action=pm" ' $current_action == 'pm' 'class="nav_important"' '' '>' $txt['pm_short'] , ' ('$context['user']['unread_messages'] . ')' '</a>&nbsp;|';
// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="'
$scripturl'?action=calendar" ' $current_action == 'calendar' 'class="nav_important"' '' '>' $txt['calendar24'] , '</a>&nbsp;|';
// The [gallery]! if (allowedTo('mgallery_access')) echo ($current_action == 'mgallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , ' <td valign="top" class="maintab_' , $current_action == 'mgallery' ? 'active_back' : 'back' , '"> <a href="', $scripturl, '?action=mgallery">' , $txt['mgallery_gallery'] , '</a> </td>' , $current_action == 'mgallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';  
// the [member] list button
if ($context['allow_memberlist'])
echo '
<a href="'
$scripturl'?action=mlist" ' $current_action == 'mlist' 'class="nav_important"' '' '>' $txt[331] , '</a>&nbsp;|';

// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '
<a href="'
$scripturl'?action=login" ' $current_action == 'login' 'class="nav_important"' '' '>' $txt[34] , '</a>&nbsp;|';
// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '
<a href="'
$scripturl'?action=register" ' $current_action == 'register' 'class="nav_important"' '' '>' $txt[97] , '</a>';
// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '
<a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '" ' $current_action == 'logout' 'class="nav_important"' '' '>' $txt[108] , '</a>';
// Dummy place holder, to end things
echo'
</div>'
;

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'main''strip_first''">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'main''strip">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'main''strip_last' '">&nbsp;</td>';
}

?>



Thanks for your help!

Rob
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on October 19, 2008, 05:56:21 PM
New error when trying to edit a video, and I'm still trying to get some help for the duplication problem.  :-[

QuoteAn Error Has Occurred!
The database value you're trying to insert does not exist: width
/var/www/html/kr/krysiasweb.net/JTLFF/Sources/MGallery.php
1499

Why is the pixel height/width even necessary when posting a video?

ETA: That error also occurred with an original upload of a vid as opposed to an edit.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on October 19, 2008, 06:22:52 PM
Okay, my site partner was able to upload a vid of her own (a .WMV file) and it didn't duplicate.

So that tells me that part of the problem is that .MOV files have a bug attached with regards to being uploaded without repeating itself.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: locau on October 19, 2008, 07:26:54 PM
Quote from: locau on October 18, 2008, 10:43:33 AM

Quote from: locau on October 18, 2008, 09:03:45 AM
when i try to install this mod i get an error:

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-catchers-net' at line 2
File: /storage/www/Packages/temp/db_mgallery.php
Line: 386

How can i fix this ?
Whats your SMF, PHP and MySQL version.

Powered by SMF 1.1.6
PHP Version 5.2.6
MYSQl Server version: 5.0.67
[/quote]

Any way i can fix this issue ?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Powerbob on October 20, 2008, 12:50:53 PM
Quote
Just to note : The converter is only designed for CPG which is bridged with SMF.

Just noticed this in another thread from you, mine is not bridged anymore??
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 20, 2008, 01:51:22 PM
What do you mean?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Powerbob on October 20, 2008, 11:05:59 PM
Quote from: Powerbob on October 20, 2008, 12:50:53 PM
Quote
Just to note : The converter is only designed for CPG which is bridged with SMF.

Just noticed this in another thread from you, mine is not bridged anymore??

What I mean is, my coppermine is not bridged at the moment so does that mean I cannot convert with the 1.5 ver when it is released?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 21, 2008, 04:42:30 AM
Powerbob> You're gonna have trouble with your members table. Maybe D can make a special version later. If you send him a database dump or something.

Quote from: Krysia on October 19, 2008, 05:56:21 PM
Why is the pixel height/width even necessary when posting a video?
Because it can't guess the video dimensions.
Well, actually it can. That'll be in version 1.5. :P
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Powerbob on October 21, 2008, 06:35:27 AM
No not a problem really, will just have to re-bridge for the conversion  ::) 8)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: crustybum on October 22, 2008, 05:01:35 AM
Desperate for this as my instalation of coppermine is on a paid for database which expires on the 9th Nov, (i have a free one now) so i need to get all the pics(over 1,000) transfererd.

Installation goes fine apart from one bit that fails, have tried altering the template with the parser but no luck, can anyone see whats wrong with my index file?

Installing this package will perform the following actions:  Type Action Description
1. Execute Code db_mgallery.php 
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/Subs.php Test successful
4. Execute Modification ./Sources/Load.php Test successful
5. Execute Modification ./Sources/ManagePermissions.php Test successful
6. Execute Modification ./Themes/default/index.template.php Test failed  
7. Execute Modification ./Sources/Who.php Test successful
8. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
9. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
10. Extract Tree ./Sources 
11. Extract Tree ./Themes 
12. Extract Tree ./mgal_data 

Thanks in advance (ps i am using default theme)

Chris



Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 22, 2008, 05:15:09 AM
@crustybum - Perform the installation and after that do the changed to the index.template.php manually(See the modparser on the modsite for that).

P.S. - The coppermine converter will only be available once 1.1 is released :).
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: fotografo74 on October 22, 2008, 05:36:43 AM
Hi Dragooon, beatiful gallery!  :) ( sorry for my english, i'm italian boy..from Rome)
Now, i have SMF Gallery Pro, nice gallery...but has not a feature important for my photo's forum   ( macroforum.org) .
It's possibile make this feature ( ?) : i insert a photo in my gallery, then i select in a drop menu the right board and i open a new topic with photo!
Bye  :)
Antonio
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 22, 2008, 07:14:48 AM
Quote from: Dragooon on October 22, 2008, 05:15:09 AM
P.S. - The coppermine converter will only be available once 1.1 is released :).
1.5 to be more specific ;)

And it's the bridged version only. Make sure your version is bridged!
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: crustybum on October 22, 2008, 07:32:58 AM
Quote from: Dragooon on October 22, 2008, 05:15:09 AM
@crustybum - Perform the installation and after that do the changed to the index.template.php manually(See the modparser on the modsite for that).

P.S. - The coppermine converter will only be available once 1.1 is released :).

Hi dragoon, tied that, still the same..... not to worried about the convertor, theres a few of us willing to shift them over one by one..(fools)

Chris
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 22, 2008, 07:57:25 AM
You have to install with the error, and then apply the changes.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: crustybum on October 22, 2008, 12:53:29 PM
Many thanks dragoon, getting somewhere now, it worked on the second attempt!, and all seems to be ok in the admin area, but there is no "Gallery tab" on the forum and its a default theme :( any ideas?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Kindred on October 22, 2008, 01:13:25 PM
yes....   you need to activate it the gallery and activate permissions.

you also don't indicate what version of SMF you are using...   if you are using 1.1.x, then the failure of index.template.php pretty much indicates that you will have to MANUALLY APPLY THE MOD TO THAT FILE (as has been said 3 times so far).
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: crustybum on October 22, 2008, 01:16:55 PM
Its ok, there was a gap in the code where there shouldnt have been, and now its fine, although a converter from coppermine would be nice....
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Andrijachi on October 22, 2008, 01:39:41 PM
I have problem with menu. When I am in Gallery Home button is turned on instead Gallery button ($current_action - doesn't work).

I am using this button code:
            // mgallery [mgallery]
echo '<li><a' , $current_action=='mgallery' ? ' class="chosen"' : '' , ' href="', $scripturl, '?action=mgallery"><b>' , $txt['mgallery_gallery'] , '</b></a></li>';


I have this problem in all themes, and default theme too.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on October 22, 2008, 02:21:44 PM
Quote from: Nao 尚 on October 21, 2008, 04:42:30 AM
Quote from: Krysia on October 19, 2008, 05:56:21 PM
Why is the pixel height/width even necessary when posting a video?
Because it can't guess the video dimensions.
Well, actually it can. That'll be in version 1.5. :P
Oh, very cool. :D

BTW, it was discovered that the reason why it had been "duplicating" the video was because the video in question was a .mov file. I changed it to a .wmv file, and it uploaded without the duplication. Go fig.

In addition, I've noticed that if I try to upload a .png file, it takes so long that I cancel it, change it to a .jpg, and upload it that way. Guess it really makes a difference as to the file types, even though it says can accept multiple file types.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Krysia on October 22, 2008, 02:26:39 PM
By the way, now that I've worked out those kinks, this Gallery mod is proving to be a fun addition to my forum.
Thank you.
:D
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 22, 2008, 06:38:14 PM
Quote from: Krysia on October 22, 2008, 02:21:44 PM
BTW, it was discovered that the reason why it had been "duplicating" the video was because the video in question was a .mov file. I changed it to a .wmv file, and it uploaded without the duplication. Go fig.
I fixed the bug tonight, while working on FLV support.
The problem was with the "$done" variable which wasn't tested when printing the embed code (it was only tested for the IE-centric object code). Which means that when the $done variable was set (i.e. a special case where specific embed code was entered, not some generic solution), the script would actually embed the code a second time.

That was the second big Dragooon bug I fixed today eheh :P

We're getting close to completion...

BTW, is anyone aware of a cool Flash player for mp3, flv, maybe even mov and wmv...? I tried JW Player and it works okay on FLV, but not so much on mp3. I'm not sure what to do... I'm looking into FLVHosting's player as well. (Well, tomorrow I will.)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Kindred on October 22, 2008, 07:47:12 PM
hmmm....   I really like the JW Player. We use that for my company's sites.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Claudius on October 22, 2008, 08:10:03 PM
Hi,
Was there any solution to locau's problem (October 18/19)? I have the same problem. When I try to install Media Gallery I get this message:

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 '-simplemach' at line 2
File: /public_html/Packages/temp/db_mgallery.php
Line: 386

This is my server info:
MySQL client version: 5.0.67
MySQL charset: UTF-8 Unicode (utf8)
SMF 1.1.6
SimplePortal Classic 2.0.5

Any help you could give would be appreciated.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: crustybum on October 23, 2008, 05:30:38 AM
Now if there was a batch uploader that would be good... ;)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Nao 尚 on October 23, 2008, 06:08:09 AM
There is... in v1.5. I'm actually only using this, now :p I love seeing the progress % being updated... Even for one picture! I'm thinking in the near future I'll merge the mass upload with mass upload (since there's a fallback for non-javascript and non-flash users.)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: kiakanpa on October 23, 2008, 08:14:42 AM
QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-simplemach' at line 2
File: /public_html/Packages/temp/db_mgallery.php
Line: 386

Me too - any ideas?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: dimdom on October 23, 2008, 09:37:00 AM
OK, here you can see a way to handle videos in flv format!

http://www.authorway.com/SMF/index.php?action=mgallery;sa=viewalbum;id=3
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 23, 2008, 09:41:17 AM

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-simplemach' at line 2
File: /public_html/Packages/temp/db_mgallery.php
Line: 386
Try this
Unpack the whole package, open db_mgallery.php and remove the code from line 383-396

Quote from: dimdom on October 23, 2008, 09:37:00 AM
OK, here you can see a way to handle videos in flv format!

http://www.authorway.com/SMF/index.php?action=mgallery;sa=viewalbum;id=3
Nice, you use JW player hu! :).
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: kiakanpa on October 23, 2008, 09:45:05 AM
QuoteTry this
Unpack the whole package, open db_mgallery.php and remove the code from line 383-396

Just to be a pain - i dont suppose you could paste me line 383 could you? i am at work and only have notepad (no line numbers). If not i'll try it at home - cheers for the quick responce.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: dimdom on October 23, 2008, 09:46:41 AM
QuoteNice, you use JW player hu! :).
Me too - any ideas?

Yes...

your mod should be able to install JWplayer in a folder in root directory...

...and use the BBC code function to...

...upload the video in a specified folder and...

... correspond each uploaded video to the player...
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: dimdom on October 23, 2008, 09:54:53 AM
1. Upload video (already coded in flv format)


2. A function similar to:

[center][center][flash=512,384]http://site/videos/flvplayer.swf?file=Apachie.flv&image=http://site/videos/Apachie.jpg&logo=http://site/videos/logo.png[/flash][/center][/center]

I guess that it can be done...
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 23, 2008, 11:16:37 AM
Quote from: dimdom on October 23, 2008, 09:46:41 AM
QuoteNice, you use JW player hu! :).
Me too - any ideas?

Yes...

your mod should be able to install JWplayer in a folder in root directory...

...and use the BBC code function to...

...upload the video in a specified folder and...

... correspond each uploaded video to the player...
We are already thinking of incorporating a flash player, but we dropped the idea of JW player atleast.

Quote from: kiakanpa on October 23, 2008, 09:45:05 AM
QuoteTry this
Unpack the whole package, open db_mgallery.php and remove the code from line 383-396

Just to be a pain - i dont suppose you could paste me line 383 could you? i am at work and only have notepad (no line numbers). If not i'll try it at home - cheers for the quick responce.
It is $request = db_query("
SHOW TABLES
FROM $db_name"
,__FILE__,__LINE__);
$tables = array();
while ($row = mysql_fetch_row($request))
if(substr($db_prefix,0,strlen($db_name) + 3) != '`'.$db_name.'`' . '.')
$tables[] = $row[0];
else
$tables[] = '`'.$db_name . '`.'.$row[0];

mysql_free_result($request);
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Phyella on October 23, 2008, 11:50:28 AM
Hello there, i'm helping someone out with their site and I've just installed SMF etc etc, I've dl'd the latest version of your gallery and attempted to install it, passes all the tests but fails during install with the following:

Database Error
Table 'smf.smf_mgallery_settings' doesn't exist
File: G:\Programs\Apache Software Foundation\Apache2.2\htdocs\smf\Packages\temp\db_mgallery.php
Line: 320 

I'm using Apache 2.2.10 , PHP 5.2.6 and MySQL 5.0.67 (community edition) and WinXP (its just a test system)

Thanks in advance
Chris
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 23, 2008, 12:02:28 PM
It seems like the db table creation failed, does the mysql user has the ability to create tables.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Phyella on October 23, 2008, 12:15:21 PM
Yup, it does, just double checked there.
Can't figure it out...
Its created the smf_mgallery_log_media & smf_mgallery_log_ratings tables
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Phyella on October 23, 2008, 12:43:04 PM
I should add that I'm running SMF 2.0 Beta 4 btw, sorry
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Claudius on October 23, 2008, 04:43:34 PM
Thanks a million Dragoon, removing the code from lines 383-396 solved my MYSQL problem and I was able to (finally) install SMF Media Gallery.  :) :) :)
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: asms on October 23, 2008, 05:49:45 PM
hi pleas
want add swf ?
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: Dragooon on October 24, 2008, 01:03:52 AM
Quote from: asms on October 23, 2008, 05:49:45 PM
hi pleas
want add swf ?
I am not going to add SWF support due to security reasons.
Title: Re: SMF Media Gallery - 1.0.2 released - SMF Gallery converter now available!
Post by: kiakanpa on October 24, 2008, 02:47:49 AM
Quote
Quote from: kiakanpa on October 23, 2008, 09:45:05 AM
QuoteTry this
Unpack the whole package, open db_mgallery.php and remove the code from line 383-396

Just to be a pain - i dont suppose you could paste me line 383 could you? i am at work and only have notepad (no line numbers). If not i'll try it at home - cheers for the quick responce.
It is $request = db_query("
SHOW TABLES
FROM $db_name"
,__FILE__,__LINE__);
$tables = array();
while ($row = mysql_fetch_row($request))
if(substr($db_prefix,0,strlen($db_name) + 3) != '`'.$db_name.'`' . '.')
$tables[] = $row[0];
else
$tables[] = '`'.$db_name . '`.'.$row[0];

mysql_free_result($request);


Worked perfectly - thanks a lot - fantastic.
Title: Re: SMF Media Gallery - 1.5 beta 1 released
Post by: Dragooon on October 24, 2008, 01:27:17 PM
SMG 1.5 released!
Link to announcement (http://smf-media.com/community/index.php?topic=154)
Title: Re: SMF Media Gallery - 1.5 beta 1 released
Post by: genieuk on October 24, 2008, 06:51:52 PM
Can i choose for members not to be able to upload video and audio?

I just want them to upload pictures only and have size restrictions on pictures?

I am using SMF gallery and will move to this if i can allow just picture upload only including limiting file size of pictures and picture size.

I will have to read through the pages to make sure converting is worth doing, i worry pictures etc may get lost when converting or my forum get messed up.

Seems a great mod by the way  :D

Mathew
Title: Re: SMF Media Gallery - 1.5 beta 1 released
Post by: Nao 尚 on October 24, 2008, 07:14:28 PM
Quote from: genieuk on October 24, 2008, 06:51:52 PM
Can i choose for members not to be able to upload video and audio?
I don't think you can (for now).

QuoteI just want them to upload pictures only and have size restrictions on pictures?
You can set restrictions. You can also force the script to refuse any pictures bigger/heavier/larger than the maximum size (instead of having it attempt to resize it to the max).
Set a low filesize limit (512 to 768 KB is okay...) and people will be less likely to attempt uploading videos or MP3s...

QuoteI am using SMF gallery and will move to this if i can allow just picture upload only including limiting file size of pictures and picture size.
You can tweak the script manually to reduce the number of possible extensions... (This is something I should be adding to our to-do-list...)

BTW, I don't know about Dragooon, but our goal is not to have everyone move to SMG. We will happily live together will all other gallery scripts. Our only goal is to have a gallery script that will fit exactly our needs. And we have a lot of needs... Especially me... I'm quite a diva when it comes to number of features :D Just have a look at everything I added (I've only been there for a month). And Dragooon did a lot of excellent work too.
We'll probably need to rest for a few days though, before we start working seriously on the mod again. I've been completely exhausted by very long workdays. Actually my gallery is not even available yet on my website...! (It's a private gallery there.)

QuoteI will have to read through the pages to make sure converting is worth doing, i worry pictures etc may get lost when converting or my forum get messed up.
I know that the Coppermine converter doesn't lose anything (we both worked on it -- I had a 400-picture gallery I needed to import). SGL, I don't know. I'm sure it's the same quality level.

QuoteSeems a great mod by the way  :D
Well I'm quite happy with the work we've done indeed. And it's not over yet :)
Title: Re: SMF Media Gallery - 1.5 beta 1 released
Post by: Dragooon on October 24, 2008, 11:10:52 PM
Quote from: genieuk on October 24, 2008, 06:51:52 PM
Can i choose for members not to be able to upload video and audio?

I just want them to upload pictures only and have size restrictions on pictures?

I am using SMF gallery and will move to this if i can allow just picture upload only including limiting file size of pictures and picture size.

I will have to read through the pages to make sure converting is worth doing, i worry pictures etc may get lost when converting or my forum get messed up.

Seems a great mod by the way  :D

Mathew
There's a permission for each of the above, audio, video and pictures, so yes.

The converter, well its not currently updated for SMG 1.5, but it converts everything for SGL 1.9/2.0. I am looking to update and improve it today or tomorrow.
Title: Re: SMF Media Gallery - 1.5 beta 1 released
Post by: Dragooon on October 24, 2008, 11:26:21 PM
I have also uploaded a coppermine converter!
Title: Re: SMF Media Gallery - 1.5 beta 1 released
Post by: jdvarner on October 24, 2008, 11:28:15 PM
i uninstalled and loaded the beta and ended up with a crashed site and error:

Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' in /home/content/j/d/w/jdworld/html/Sources/Subs-MGallery.php on line 3654
Title: Re: SMF Media Gallery - 1.5 beta 1 released - CPG converter now available
Post by: Dragooon on October 24, 2008, 11:37:43 PM
@jdvarner, for now find
function getTags($taglist)
{
preg_match_all('/[^,]*\"(.*?)\"\s*?|\s*([^,]+)\s*/', str_replace('&quot;', '"', $taglist), $tags);
foreach ($tags[0] as $k => &$t)
$t = trim($t, '" ');
return $tags[0];
}

Replace it with
function getTags($taglist)
{
return $taglist;
}
Title: Re: SMF Media Gallery - 1.5 beta 1 released - CPG converter now available
Post by: jdvarner on October 24, 2008, 11:47:27 PM
nah, i went back and reloaded backup to the older version. trying not to manipulate files. it screws with all the other mods and packages.

thanks.
Title: Re: SMF Media Gallery - 1.5 beta 1 released - CPG converter now available
Post by: Dragooon on October 25, 2008, 12:16:08 AM
What other mod packages it screws? The only confliction I know in beta 1 is for AEVAC mod. And that issue is only with PHP 4.x, It is fine with PHP 5.x
Title: Re: SMF Media Gallery - 1.5 beta 1 released - CPG converter now available
Post by: Sudhakar Arjunan on October 25, 2008, 12:57:29 AM
Congrates for version 1.5 beta.

Hope converters are used mostly.
Title: Re: SMF Media Gallery - 1.5 beta 1 released - CPG converter now available
Post by: Dragooon on October 25, 2008, 03:36:09 AM
Thank you :). The SGL converter will need an update, I'll do it later today.
Title: Re: SMF Media Gallery - 1.5 beta 1 released - CPG converter now available
Post by: Darknico on October 25, 2008, 05:03:33 AM
Quote from: Dragooon on October 24, 2008, 11:37:43 PM
@jdvarner, for now find
function getTags($taglist)
{
preg_match_all('/[^,]*\"(.*?)\"\s*?|\s*([^,]+)\s*/', str_replace('&quot;', '"', $taglist), $tags);
foreach ($tags[0] as $k => &$t)
$t = trim($t, '" ');
return $tags[0];
}

Replace it with
function getTags($taglist)
{
return $taglist;
}


Don't work for me

Fatal error: Call to undefined function: () in /membri/zhentai/Sources/Subs-MGallery.php on line 3275
Title: Re: SMF Media Gallery - 1.5 beta 1 released - CPG converter now available
Post by: Nao 尚 on October 25, 2008, 05:11:54 AM
Dragooon> Why didn't you post my full fix instead? :P

Quote from: jdvarner on October 24, 2008, 11:47:27 PM
nah, i went back and reloaded backup to the older version. trying not to manipulate files. it screws with all the other mods and packages.
If the modified file is a "new" file (i.e. a file that is not part of the SMF package), then you can simply download it locally, change it, and reupload it... You can uninstall the mod later without any issue.

One of the important things in SMG is that despite its huge size, 99.9% of it is in external files that can be modified as you like. So there's absolutely no risk.
Title: Re: SMF Media Gallery - 1.5 beta 1 released - CPG converter now available
Post by: Nao 尚 on October 25, 2008, 05:14:58 AM
Quote from: Darknico on October 25, 2008, 05:03:33 AM
Don't work for me

Fatal error: Call to undefined function: () in /membri/zhentai/Sources/Subs-MGallery.php on line 3275
Please visit http://smf-media.com for fixes to common issues you might find. I already published the fix there ;) Just search for the word "3275" :P

Dragooon> Please release beta 1.1 with the fixes ;) I don't want to post this again and again :P
Title: Re: SMF Media Gallery - 1.5 beta 1 released - CPG converter now available
Post by: Darknico on October 25, 2008, 05:19:21 AM
ok thanks
Title: Re: SMF Media Gallery - 1.5 beta 1 released - CPG converter now available
Post by: genieuk on October 25, 2008, 07:07:48 AM
Great, i will install later and let you know how it goes ;)

Look forward to other versions aswell, seems you are going to make this even better, it sounds brilliant already.

I will do it tonight at see how it goes.

Mathew
Title: Re: SMF Media Gallery - 1.5 beta 1 released - CPG converter now available
Post by: Marcus Forsberg on October 25, 2008, 07:09:20 AM
What about the problems whit the Mgconverter. Are they fixed?
Title: Re: SMF Media Gallery - 1.5 beta 1 released - CPG converter now available
Post by: Dragooon on October 25, 2008, 07:10:23 AM
Thank you, we are preparing beta 1.1, it had some emergency SMF 1.1/PHP 4 fixes.(If you run SMF 2 and PHP 5 then you don't need it).

@Nascar - Currently it is not updated/fixed. I'll update it later and make it follow the conversion process as followed by the CPG converter(Which works much better IMO).
Title: Re: SMF Media Gallery - 1.5 beta 1 released - CPG converter now available
Post by: genieuk on October 25, 2008, 07:34:04 AM
Hi,

I cannot install it.

When i try to install i get:

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-flf' at line 2
File: /home/sites/foreverlastingfriends.com/public_html/Packages/temp/db_mgallery.php
Line: 427

I have the SMF Gallery mod installed and I uploaded the convert file to root directory but i cannot install the Media gallery mod because of the above error. I have read the instructions and i don't think i am doing anything wrong as it says to keep smf gallery installed so it can convert from and just to install SMF media gallery and then run the convert file. Also it shows no errors for files so no problem there.

Help?

Thanks
Mathew
Title: Re: SMF Media Gallery - 1.5 beta 1 released - CPG converter now available
Post by: Dragooon on October 25, 2008, 07:40:17 AM
Does the fix here (http://www.simplemachines.org/community/index.php?topic=260821.msg1764799#msg1764799) fixes t?
Title: Re: SMF Media Gallery - 1.5 beta 1 released - CPG converter now available
Post by: genieuk on October 25, 2008, 07:58:38 AM
Quote from: Dragooon on October 25, 2008, 07:40:17 AM
Does the fix here (http://www.simplemachines.org/community/index.php?topic=260821.msg1764799#msg1764799) fixes t?

Oh god please help.

It fixed it yes but have i think a majour problem now after installing it.

when i click on the admin tab i get:

QuoteParse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /home/sites/foreverlastingfriends.com/public_html/Sources/MGallery-Admin.php on line 173

site seems to work fine apart from when i need to access admin.

Thanks
Mathew
Title: Re: SMF Media Gallery - 1.5 beta 1 released - CPG converter now available
Post by: Dragooon on October 25, 2008, 08:06:22 AM
This will be fixed in beta 1.1, which is minuites away from release.
Title: Re: SMF Media Gallery - 1.5 beta 1 released - CPG converter now available
Post by: genieuk on October 25, 2008, 08:16:30 AM
lol,

yes but i cannot access my admin so i cannot uninstall it to install latest version which you are releasing in minute.

What can i do?

Thank you,
Mathew
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Dragooon on October 25, 2008, 08:22:36 AM
SMG 1.5 beta 1.1 released, it has some important bugfixes.
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Dragooon on October 25, 2008, 08:26:01 AM
Quote from: genieuk on October 25, 2008, 08:16:30 AM
lol,

yes but i cannot access my admin so i cannot uninstall it to install latest version which you are releasing in minute.

What can i do?

Thank you,
Mathew
Download the 1.5b1.1 package and overwrite the files, no need to run the installer. It should be fixed.
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: genieuk on October 25, 2008, 08:36:56 AM
Quote from: Dragooon on October 25, 2008, 08:26:01 AM
Quote from: genieuk on October 25, 2008, 08:16:30 AM
lol,

yes but i cannot access my admin so i cannot uninstall it to install latest version which you are releasing in minute.

What can i do?

Thank you,
Mathew
Download the 1.5b1.1 package and overwrite the files, no need to run the installer. It should be fixed.

Thanks,

Overwrite all files and now ok, just got to convert now, please pray for me it goes ok

Thanks
Mathew
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Dragooon on October 25, 2008, 08:44:23 AM
Uh, I didn't notice that. good luck :).

Please remember that the converter is not tested with SMG 1.5, only 1.0.2, although it should work.
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: genieuk on October 25, 2008, 08:46:18 AM
Quote from: Dragooon on October 25, 2008, 08:44:23 AM
Uh, I didn't notice that. good luck :).

Please remember that the converter is not tested with SMG 1.5, only 1.0.2, although it should work.

oops, i am using SMF 1.1.6 do you think it will be ok to use converter on 1.1.6?
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: genieuk on October 25, 2008, 08:49:13 AM
I am trying to convert but got an error when i am at Being Process stage

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-flf' at line 2
File: /home/sites/foreverlastingfriends.com/public_html/mgconverter.php
Line: 124

Mathew
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Dragooon on October 25, 2008, 08:58:34 AM
Open mgconverter.php
Find
$request = $mgalFunc['db_query']("
SHOW TABLES
FROM $db_name",
array()
,__FILE__,__LINE__);

Replace it with
$request = $mgalFunc['db_query']("
SHOW TABLES
FROM `$db_name`",
array()
,__FILE__,__LINE__);

Quote from: genieuk on October 25, 2008, 08:46:18 AM
Quote from: Dragooon on October 25, 2008, 08:44:23 AM
Uh, I didn't notice that. good luck :).

Please remember that the converter is not tested with SMG 1.5, only 1.0.2, although it should work.

oops, i am using SMF 1.1.6 do you think it will be ok to use converter on 1.1.6?
I was referring to SMF Media Gallery's versions not SMF's versions.
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: genieuk on October 25, 2008, 09:11:21 AM
Hi,

Please do not think i am taking the micky,

but got another error on stage where it says "Conversion of items has been completed". i can still go ahead with installation but thought i would post it for you incase you want it for future reference and if other people has same problem. Not sure it is vital and i need to do something

Mathew
Quote
Warning: filesize() [function.filesize]: Stat failed for /thumb_1_10_10_08_6_36_26.JPG (errno=2 - No such file or directory) in /home/sites/foreverlastingfriends.com/public_html/Sources/Subs-MGallery.php on line 2354

Warning: filesize() [function.filesize]: Stat failed for /thumb_1_10_10_08_6_38_06.JPG (errno=2 - No such file or directory) in /home/sites/foreverlastingfriends.com/public_html/Sources/Subs-MGallery.php on line 2354

Warning: filesize() [function.filesize]: Stat failed for /thumb_1_10_10_08_6_39_23.JPG (errno=2 - No such file or directory) in /home/sites/foreverlastingfriends.com/public_html/Sources/Subs-MGallery.php on line 2354

Warning: filesize() [function.filesize]: Stat failed for /thumb_1_10_10_08_6_40_26.JPG (errno=2 - No such file or directory) in /home/sites/foreverlastingfriends.com/public_html/Sources/Subs-MGallery.php on line 2354

Warning: filesize() [function.filesize]: Stat failed for /thumb_1_10_10_08_6_41_56.JPG (errno=2 - No such file or directory) in /home/sites/foreverlastingfriends.com/public_html/Sources/Subs-MGallery.php on line 2354

Warning: filesize() [function.filesize]: Stat failed for /thumb_1_10_10_08_6_42_46.JPG (errno=2 - No such file or directory) in /home/sites/foreverlastingfriends.com/public_html/Sources/Subs-MGallery.php on line 2354

Warning: filesize() [function.filesize]: Stat failed for /thumb_1_10_10_08_6_43_34.JPG (errno=2 - No such file or directory) in /home/sites/foreverlastingfriends.com/public_html/Sources/Subs-MGallery.php on line 2354

Warning: filesize() [function.filesize]: Stat failed for /thumb_25_11_10_08_8_28_11.jpg (errno=2 - No such file or directory) in /home/sites/foreverlastingfriends.com/public_html/Sources/Subs-MGallery.php on line 2354

Warning: filesize() [function.filesize]: Stat failed for /thumb_25_11_10_08_8_28_53.jpg (errno=2 - No such file or directory) in /home/sites/foreverlastingfriends.com/public_html/Sources/Subs-MGallery.php on line 2354

Warning: filesize() [function.filesize]: Stat failed for /thumb_25_12_10_08_3_20_27.jpg (errno=2 - No such file or directory) in /home/sites/foreverlastingfriends.com/public_html/Sources/Subs-MGallery.php on line 2354

Warning: filesize() [function.filesize]: Stat failed for /thumb_27_13_10_08_6_52_39.jpg (errno=2 - No such file or directory) in /home/sites/foreverlastingfriends.com/public_html/Sources/Subs-MGallery.php on line 2354

Warning: filesize() [function.filesize]: Stat failed for /thumb_25_13_10_08_9_52_48.jpg (errno=2 - No such file or directory) in /home/sites/foreverlastingfriends.com/public_html/Sources/Subs-MGallery.php on line 2354

and then on recount statistics i got: which it wont let me finish installation. what do i do?
Quote
The database value you're trying to insert does not exist: value
/home/sites/foreverlastingfriends.com/public_html/mgconverter.php
688
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: genieuk on October 25, 2008, 09:17:34 AM
Also when i go to media gallery does not show pictures correctly etc.


please see attached image for what i mean

it also has not converted the comments over to media gallery.

Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: MonoTiz on October 25, 2008, 09:48:31 AM
Hi, I have a problem with the latest version of this mod.
Now, all album icon seem to be hided... same thing for the videos.

Thanks.
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Dragooon on October 25, 2008, 09:54:11 AM
I'll see about the album icons.
Can you give me an example of video?
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: genieuk on October 25, 2008, 09:55:09 AM
Quote from: Dragooon on October 25, 2008, 09:54:11 AM
I'll see about the album icions.
Can you give me an example of video?

how about my problem? it has not converted comments over and cannot continue with installation. please see above posts.

thanks mathew
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Dragooon on October 25, 2008, 09:57:35 AM
As I said, the converter has issues. I'll be changing its method of conversion to match the one of CPG converter. Please be patient :).
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: genieuk on October 25, 2008, 09:59:03 AM
Quote from: Dragooon on October 25, 2008, 09:57:35 AM
As I said, the converter has issues. I'll be changing its method of conversion to match the one of CPG converter. Please be patient :).

sorry did not mean to sound like if i was not being patient. So when will that be done? , shall i uninstall it and wait or leave it installed for time being?, reason for asking not sure if this is being done for today and for a few weeks etc.

Thanks
Mathew
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Dragooon on October 25, 2008, 09:59:55 AM
I am not going to do it today, maybe tomorrow. Not sure, I have a lot of things on my head.
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: MonoTiz on October 25, 2008, 04:27:22 PM
Quote from: Dragooon on October 25, 2008, 09:54:11 AM
I'll see about the album icons.
Can you give me an example of video?
This is the site: http://www.monotiz.com
This is a video: http://www.youtube.com/watch?v=h3jxpGOhklE
and this is the page of gallery: http://www.monotiz.com/smf/index.php?action=mgallery;sa=item;id=66
but in recent items i can't see: http://www.monotiz.com/smf/index.php?action=mgallery

Same problem of genieuk in my video album: http://www.monotiz.com/smf/index.php?action=mgallery;sa=album;id=4
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Nao 尚 on October 25, 2008, 06:04:25 PM
Hmm interesting, first time I see my template changes on a default SMF theme ;)

- The album icon issue is a known one. Dragooon fixed it internally today. It will be fixed officially in the next beta (within the next two days I'd say).
- The video icons -- I have no idea... I was the one who made the changes to these, so I'm not sure why this is happening. Can you send me a MySQL dump of your mgallery tables? (I'm only interested in smf_mgallery_media (mostly id_media=66 and anything related to a video) and smf_mgallery_files (related files).

Try to edit your Youtube embedded video (most of these are from Google Video, I never tried that -- do they even have thumbnails readily available...?), and simply click on Submit without changing anything... If you don't get a static thumbnail, it's yet another issue.
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Sudhakar Arjunan on October 25, 2008, 10:38:57 PM
While using mgconverer form in smf 2.0.4 with smf gallery 2.

Warning: filesize() [function.filesize]: stat failed for /home/itacumen/public_html/discuss/gallery//thumb_1164_17_01_08_6_17_34.png in /home/itacumen/public_html/discuss/Sources/Subs-MGallery.php on line 1768
An Error Has Occurred!

So now all my categories in gallery is not showing up.
I need a solution immediately Dragooon.

No older pics in my gallery catergory is not shown. If i upload a new picture on a gallery it shows the pic.

Using smf gallery 2 lite.
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Dragooon on October 25, 2008, 11:37:45 PM
@asudhakar, the converter will be improved and will be made compatible with SMG 1.5 as soon as I get some time. Please be patient.

Thank you :).
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Nao 尚 on October 26, 2008, 03:02:03 AM
Quote from: asudhakar on October 25, 2008, 10:38:57 PM
I need a solution immediately Dragooon.
Are you willing to pay him, so that you can talk to him like that?  ::)
(Beta software, anyone?)
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: MonoTiz on October 26, 2008, 04:03:54 AM
Quote from: Nao 尚 on October 25, 2008, 06:04:25 PM
Hmm interesting, first time I see my template changes on a default SMF theme ;)

- The album icon issue is a known one. Dragooon fixed it internally today. It will be fixed officially in the next beta (within the next two days I'd say).
- The video icons -- I have no idea... I was the one who made the changes to these, so I'm not sure why this is happening. Can you send me a MySQL dump of your mgallery tables? (I'm only interested in smf_mgallery_media (mostly id_media=66 and anything related to a video) and smf_mgallery_files (related files).

Try to edit your Youtube embedded video (most of these are from Google Video, I never tried that -- do they even have thumbnails readily available...?), and simply click on Submit without changing anything... If you don't get a static thumbnail, it's yet another issue.
Ok. this is my mgallery_files table:
-- phpMyAdmin SQL Dump
-- version
-- http://www.phpmyadmin.net
--
-- Host: ############################
-- Generato il: 26 Ott, 2008 at 09:00 AM
-- Versione MySQL: 5.0.51
-- Versione PHP: 5.2.6-0.dotdeb.1
--
-- Database: ######################à
--

-- --------------------------------------------------------

--
-- Struttura della tabella `smf_mgallery_files`
--

CREATE TABLE `smf_mgallery_files` (
  `id_file` int(11) NOT NULL auto_increment,
  `filesize` int(11) NOT NULL default '0',
  `filename` text NOT NULL,
  `width` int(11) NOT NULL default '1',
  `height` int(11) NOT NULL default '1',
  `directory` text NOT NULL,
  `id_album` int(11) NOT NULL default '0',
  `exif` text NOT NULL,
  PRIMARY KEY  (`id_file`)
) ENGINE=MyISAM AUTO_INCREMENT=132 DEFAULT CHARSET=utf8 AUTO_INCREMENT=132 ;

--
-- Dump dei dati per la tabella `smf_mgallery_files`
--

INSERT INTO `smf_mgallery_files` VALUES (1, 4118, 'music.png', 48, 48, 'generic_images', 0, '');
INSERT INTO `smf_mgallery_files` VALUES (2, 2911, 'film.png', 48, 48, 'generic_images', 0, '');
INSERT INTO `smf_mgallery_files` VALUES (3, 2438, 'camera.png', 48, 48, 'generic_images', 0, '');
INSERT INTO `smf_mgallery_files` VALUES (5, 180521, 'CIMG2008.JPG', 768, 1024, 'albums/Pesca/Dir_1', 1, '');
INSERT INTO `smf_mgallery_files` VALUES (6, 26763, 'thumb_CIMG2008.JPG.jpg', 90, 120, 'albums/Pesca/Dir_1', 1, '');
INSERT INTO `smf_mgallery_files` VALUES (7, 189347, 'sardegna032.jpg', 1024, 768, 'albums/Pesca/Dir_1', 1, '');
INSERT INTO `smf_mgallery_files` VALUES (8, 28927, 'thumb_sardegna032.jpg.jpg', 120, 90, 'albums/Pesca/Dir_1', 1, '');
INSERT INTO `smf_mgallery_files` VALUES (9, 145362, 'sardegna128.jpg', 1024, 768, 'albums/Pesca/Dir_1', 1, '');
INSERT INTO `smf_mgallery_files` VALUES (10, 26353, 'thumb_sardegna128.jpg.jpg', 120, 90, 'albums/Pesca/Dir_1', 1, '');
INSERT INTO `smf_mgallery_files` VALUES (11, 145131, 'sardegna129.jpg', 1024, 768, 'albums/Pesca/Dir_1', 1, '');
INSERT INTO `smf_mgallery_files` VALUES (12, 26319, 'thumb_sardegna129.jpg.jpg', 120, 90, 'albums/Pesca/Dir_1', 1, '');
INSERT INTO `smf_mgallery_files` VALUES (13, 10599, 'pesca.jpg', 120, 90, 'album_icons', 1, '');
INSERT INTO `smf_mgallery_files` VALUES (14, 9027, 'amarcord.jpg', 120, 90, 'album_icons', 2, '');
INSERT INTO `smf_mgallery_files` VALUES (15, 61364, 'dsc00186.jpg', 768, 1024, 'albums/Amarcord/Dir_1', 2, '');
INSERT INTO `smf_mgallery_files` VALUES (16, 18843, 'thumb_dsc00186.jpg.jpg', 90, 120, 'albums/Amarcord/Dir_1', 2, '');
INSERT INTO `smf_mgallery_files` VALUES (17, 50691, 'dsc00194.jpg', 1024, 768, 'albums/Amarcord/Dir_1', 2, '');
INSERT INTO `smf_mgallery_files` VALUES (18, 15655, 'thumb_dsc00194.jpg.jpg', 120, 90, 'albums/Amarcord/Dir_1', 2, '');
INSERT INTO `smf_mgallery_files` VALUES (19, 69031, 'kscan_0004a.jpeg', 768, 1024, 'albums/Amarcord/Dir_1', 2, '');
INSERT INTO `smf_mgallery_files` VALUES (20, 16988, 'thumb_kscan_0004a.jpeg.jpg', 90, 120, 'albums/Amarcord/Dir_1', 2, '');
INSERT INTO `smf_mgallery_files` VALUES (21, 70319, 'kscan_0004b.jpeg', 768, 1024, 'albums/Amarcord/Dir_1', 2, '');
INSERT INTO `smf_mgallery_files` VALUES (22, 16035, 'thumb_kscan_0004b.jpeg.jpg', 90, 120, 'albums/Amarcord/Dir_1', 2, '');
INSERT INTO `smf_mgallery_files` VALUES (23, 97071, 'kscan_0005.jpeg', 1024, 768, 'albums/Amarcord/Dir_1', 2, '');
INSERT INTO `smf_mgallery_files` VALUES (24, 22410, 'thumb_kscan_0005.jpeg.jpg', 120, 90, 'albums/Amarcord/Dir_1', 2, '');
INSERT INTO `smf_mgallery_files` VALUES (25, 108927, 'kscan_0010.jpeg', 1024, 768, 'albums/Amarcord/Dir_1', 2, '');
INSERT INTO `smf_mgallery_files` VALUES (26, 21972, 'thumb_kscan_0010.jpeg.jpg', 120, 90, 'albums/Amarcord/Dir_1', 2, '');
INSERT INTO `smf_mgallery_files` VALUES (27, 62269, 'kscan_0011.jpeg', 1024, 768, 'albums/Amarcord/Dir_1', 2, '');
INSERT INTO `smf_mgallery_files` VALUES (28, 14921, 'thumb_kscan_0011.jpeg.jpg', 120, 90, 'albums/Amarcord/Dir_1', 2, '');
INSERT INTO `smf_mgallery_files` VALUES (29, 67553, 'kscan_0012.jpeg', 1024, 768, 'albums/Amarcord/Dir_1', 2, '');
INSERT INTO `smf_mgallery_files` VALUES (30, 15197, 'thumb_kscan_0012.jpeg.jpg', 120, 90, 'albums/Amarcord/Dir_1', 2, '');
INSERT INTO `smf_mgallery_files` VALUES (31, 63155, 'kscan_0014.jpeg', 768, 1024, 'albums/Amarcord/Dir_1', 2, '');
INSERT INTO `smf_mgallery_files` VALUES (32, 14742, 'thumb_kscan_0014.jpeg.jpg', 90, 120, 'albums/Amarcord/Dir_1', 2, '');
INSERT INTO `smf_mgallery_files` VALUES (33, 21248, 'enduro.jpg', 120, 80, 'album_icons', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (34, 230944, 'DSC01024.JPG', 1024, 768, 'albums/Moto_&amp;_enduro/Dir_1', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (35, 29069, 'thumb_DSC01024.JPG.jpg', 120, 90, 'albums/Moto_&amp;_enduro/Dir_1', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (36, 197868, 'DSC01156.JPG', 1024, 768, 'albums/Moto_&amp;_enduro/Dir_1', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (37, 29177, 'thumb_DSC01156.JPG.jpg', 120, 90, 'albums/Moto_&amp;_enduro/Dir_1', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (38, 184043, 'DSC01157.JPG', 1024, 768, 'albums/Moto_&amp;_enduro/Dir_1', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (39, 29945, 'thumb_DSC01157.JPG.jpg', 120, 90, 'albums/Moto_&amp;_enduro/Dir_1', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (40, 210386, 'DSCN0561.JPG', 1024, 766, 'albums/Moto_&amp;_enduro/Dir_1', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (41, 24232, 'thumb_DSCN0561.JPG.jpg', 118, 89, 'albums/Moto_&amp;_enduro/Dir_1', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (42, 121274, 'fotoalbe1002.jpg', 1024, 683, 'albums/Moto_&amp;_enduro/Dir_1', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (43, 12920, 'thumb_fotoalbe1002.jpg.jpg', 119, 80, 'albums/Moto_&amp;_enduro/Dir_1', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (44, 268959, 'fotoalbe1004.jpg', 1024, 683, 'albums/Moto_&amp;_enduro/Dir_1', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (45, 24829, 'thumb_fotoalbe1004.jpg.jpg', 119, 80, 'albums/Moto_&amp;_enduro/Dir_1', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (46, 136064, 'fotoalbe1006.jpg', 1024, 683, 'albums/Moto_&amp;_enduro/Dir_1', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (47, 22025, 'thumb_fotoalbe1006.jpg.jpg', 119, 80, 'albums/Moto_&amp;_enduro/Dir_1', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (48, 176376, 'fotoalbe1008.jpg', 1024, 683, 'albums/Moto_&amp;_enduro/Dir_1', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (49, 22391, 'thumb_fotoalbe1008.jpg.jpg', 119, 80, 'albums/Moto_&amp;_enduro/Dir_1', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (50, 286176, 'fotoalbe1018.jpg', 1024, 683, 'albums/Moto_&amp;_enduro/Dir_1', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (51, 26331, 'thumb_fotoalbe1018.jpg.jpg', 119, 80, 'albums/Moto_&amp;_enduro/Dir_1', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (52, 189946, 'fotoalbe1020.jpg', 1024, 683, 'albums/Moto_&amp;_enduro/Dir_1', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (53, 24728, 'thumb_fotoalbe1020.jpg.jpg', 119, 80, 'albums/Moto_&amp;_enduro/Dir_1', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (54, 124208, 'fotoalbe1033.jpg', 683, 1024, 'albums/Moto_&amp;_enduro/Dir_1', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (55, 18243, 'thumb_fotoalbe1033.jpg.jpg', 80, 119, 'albums/Moto_&amp;_enduro/Dir_1', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (56, 111438, 'Halloween0004.JPG', 1024, 768, 'albums/Amarcord/Dir_1', 2, '');
INSERT INTO `smf_mgallery_files` VALUES (57, 2781, 'thumb_Halloween0004.JPG.jpg', 120, 90, 'albums/Amarcord/Dir_1', 2, '');
INSERT INTO `smf_mgallery_files` VALUES (58, 19402, 'sardinia.jpg', 120, 80, 'album_icons', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (61, 164951, 'IMG_0176.JPG', 683, 1024, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (60, 2463, 'thumb_IMG_0176.JPG.jpg', 119, 80, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (62, 2452, 'thumb_IMG_0176.JPG.jpg', 80, 119, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (63, 168325, 'IMG_0169.JPG', 683, 1024, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (64, 2415, 'thumb_IMG_0169.JPG.jpg', 80, 119, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (65, 148047, 'IMG_0160.JPG', 1024, 683, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (66, 2828, 'thumb_IMG_0160.JPG.jpg', 119, 80, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (67, 163692, 'IMG_0148.JPG', 683, 1024, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (68, 2597, 'thumb_IMG_0148.JPG.jpg', 80, 119, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (69, 111964, 'IMG_0145.JPG', 1024, 683, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (70, 2326, 'thumb_IMG_0145.JPG.jpg', 119, 80, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (71, 115415, 'IMG_0144.JPG', 683, 1024, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (72, 2503, 'thumb_IMG_0144.JPG.jpg', 80, 119, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (73, 132185, 'IMG_0137.JPG', 1024, 683, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (74, 2649, 'thumb_IMG_0137.JPG.jpg', 119, 80, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (75, 154473, 'IMG_0136.JPG', 1024, 683, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (76, 3032, 'thumb_IMG_0136.JPG.jpg', 119, 80, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (77, 142019, 'IMG_0127.JPG', 1024, 683, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (78, 2474, 'thumb_IMG_0127.JPG.jpg', 119, 80, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (79, 170326, 'IMG_0120.JPG', 1024, 683, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (80, 2675, 'thumb_IMG_0120.JPG.jpg', 119, 80, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (81, 45725, 'IMG_0110.JPG', 1024, 683, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (82, 1483, 'thumb_IMG_0110.JPG.jpg', 119, 80, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (83, 61185, 'IMG_0107.JPG', 1024, 683, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (84, 1556, 'thumb_IMG_0107.JPG.jpg', 119, 80, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (85, 60154, 'IMG_0098.JPG', 1024, 683, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (86, 1690, 'thumb_IMG_0098.JPG.jpg', 119, 80, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (87, 81984, 'IMG_0092.JPG', 1024, 683, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (88, 2201, 'thumb_IMG_0092.JPG.jpg', 119, 80, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (89, 130439, 'IMG_0076.JPG', 1024, 683, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (90, 2267, 'thumb_IMG_0076.JPG.jpg', 119, 80, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (91, 104795, 'IMG_0066.JPG', 1024, 683, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (92, 1914, 'thumb_IMG_0066.JPG.jpg', 119, 80, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (93, 155741, 'IMG_0064.JPG', 1024, 683, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (94, 2894, 'thumb_IMG_0064.JPG.jpg', 119, 80, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (95, 172219, 'IMG_0051.JPG', 1024, 683, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (96, 2696, 'thumb_IMG_0051.JPG.jpg', 119, 80, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (97, 131402, 'IMG_0038.JPG', 1024, 683, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (98, 2381, 'thumb_IMG_0038.JPG.jpg', 119, 80, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (99, 211518, 'IMG_0035.JPG', 1024, 683, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (100, 3114, 'thumb_IMG_0035.JPG.jpg', 119, 80, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (101, 180873, 'IMG_0032.JPG', 1024, 683, 'albums/Sardinia_Desert_2006/Dir_1', 5, 'a:18:{s:8:"datetime";s:19:"2006:04:24 07:46:20";s:4:"make";s:5:"Canon";s:5:"model";s:22:"Canon EOS 350D DIGITAL";s:5:"flash";s:17:"Unknown: 67108880";s:11:"xposureTime";s:9:"1/400 sec";s:11:"orientation";s:17:"1: Normal (0 deg)";s:12:"focal_length";s:6:"120 mm";s:4:"xres";s:6:"72 dpi";s:4:"yres";s:6:"72 dpi";s:7:"resunit";s:4:"Inch";s:7:"fnumber";s:4:"f/10";s:3:"iso";i:200;s:12:"meteringMode";s:10:"Evaluative";s:11:"digitalZoom";s:4:"None";s:8:"contrast";s:4:"High";s:9:"sharpness";s:4:"High";s:9:"focustype";s:7:"Unknown";s:11:"exifVersion";s:12:"version 2.21";}');
INSERT INTO `smf_mgallery_files` VALUES (102, 3603, 'thumb_IMG_0032.JPG.jpg', 119, 80, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (103, 35608, 'IMG_0030.JPG', 1024, 683, 'albums/Sardinia_Desert_2006/Dir_1', 5, 'a:18:{s:8:"datetime";s:19:"2006:04:24 05:29:27";s:4:"make";s:5:"Canon";s:5:"model";s:22:"Canon EOS 350D DIGITAL";s:5:"flash";s:17:"Unknown: 67108880";s:11:"xposureTime";s:8:"1/60 sec";s:11:"orientation";s:17:"1: Normal (0 deg)";s:12:"focal_length";s:6:"200 mm";s:4:"xres";s:6:"72 dpi";s:4:"yres";s:6:"72 dpi";s:7:"resunit";s:4:"Inch";s:7:"fnumber";s:5:"f/5.6";s:3:"iso";i:200;s:12:"meteringMode";s:10:"Evaluative";s:11:"digitalZoom";s:4:"None";s:8:"contrast";s:4:"High";s:9:"sharpness";s:4:"High";s:9:"focustype";s:7:"Unknown";s:11:"exifVersion";s:12:"version 2.21";}');
INSERT INTO `smf_mgallery_files` VALUES (104, 1516, 'thumb_IMG_0030.JPG.jpg', 119, 80, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (105, 48298, 'IMG_0028.JPG', 1024, 683, 'albums/Sardinia_Desert_2006/Dir_1', 5, 'a:18:{s:8:"datetime";s:19:"2006:04:24 05:18:41";s:4:"make";s:5:"Canon";s:5:"model";s:22:"Canon EOS 350D DIGITAL";s:5:"flash";s:17:"Unknown: 67108880";s:11:"xposureTime";s:8:"1/50 sec";s:11:"orientation";s:17:"1: Normal (0 deg)";s:12:"focal_length";s:5:"55 mm";s:4:"xres";s:6:"72 dpi";s:4:"yres";s:6:"72 dpi";s:7:"resunit";s:4:"Inch";s:7:"fnumber";s:5:"f/4.5";s:3:"iso";i:200;s:12:"meteringMode";s:10:"Evaluative";s:11:"digitalZoom";s:4:"None";s:8:"contrast";s:4:"High";s:9:"sharpness";s:4:"High";s:9:"focustype";s:7:"Unknown";s:11:"exifVersion";s:12:"version 2.21";}');
INSERT INTO `smf_mgallery_files` VALUES (106, 1803, 'thumb_IMG_0028.JPG.jpg', 119, 80, 'albums/Sardinia_Desert_2006/Dir_1', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (107, 7689, 'dsc01558pippo.jpg', 120, 90, 'album_icons', 6, '');
INSERT INTO `smf_mgallery_files` VALUES (108, 109188, 'mtb.jpg', 1024, 576, 'albums/MTB/Dir_1', 6, '');
INSERT INTO `smf_mgallery_files` VALUES (109, 2801, 'thumb_mtb.jpg.jpg', 119, 67, 'albums/MTB/Dir_1', 6, '');
INSERT INTO `smf_mgallery_files` VALUES (110, 179737, 'dsc01557.jpg', 1024, 768, 'albums/MTB/Dir_1', 6, '');
INSERT INTO `smf_mgallery_files` VALUES (111, 2880, 'thumb_dsc01557.jpg.jpg', 120, 90, 'albums/MTB/Dir_1', 6, '');
INSERT INTO `smf_mgallery_files` VALUES (112, 187816, 'dsc01558.jpg', 1024, 768, 'albums/MTB/Dir_1', 6, '');
INSERT INTO `smf_mgallery_files` VALUES (113, 3029, 'thumb_dsc01558.jpg.jpg', 120, 90, 'albums/MTB/Dir_1', 6, '');
INSERT INTO `smf_mgallery_files` VALUES (114, 207933, 'IMG_2770-small.JPG', 1024, 683, 'albums/MTB/Dir_1', 6, '');
INSERT INTO `smf_mgallery_files` VALUES (115, 2956, 'thumb_IMG_2770-small.JPG.jpg', 119, 80, 'albums/MTB/Dir_1', 6, '');
INSERT INTO `smf_mgallery_files` VALUES (116, 245051, 'img_2773-small.jpg', 1024, 683, 'albums/MTB/Dir_1', 6, '');
INSERT INTO `smf_mgallery_files` VALUES (117, 2659, 'thumb_img_2773-small.jpg.jpg', 119, 80, 'albums/MTB/Dir_1', 6, '');
INSERT INTO `smf_mgallery_files` VALUES (118, 238520, 'img_2782-small.jpg', 1024, 683, 'albums/MTB/Dir_1', 6, '');
INSERT INTO `smf_mgallery_files` VALUES (119, 2887, 'thumb_img_2782-small.jpg.jpg', 119, 80, 'albums/MTB/Dir_1', 6, '');
INSERT INTO `smf_mgallery_files` VALUES (120, 213195, 'img_2785-small.jpg', 1024, 683, 'albums/MTB/Dir_1', 6, '');
INSERT INTO `smf_mgallery_files` VALUES (121, 2827, 'thumb_img_2785-small.jpg.jpg', 119, 80, 'albums/MTB/Dir_1', 6, '');
INSERT INTO `smf_mgallery_files` VALUES (122, 199922, 'img_2792-small.jpg', 1024, 683, 'albums/MTB/Dir_1', 6, '');
INSERT INTO `smf_mgallery_files` VALUES (123, 2943, 'thumb_img_2792-small.jpg.jpg', 119, 80, 'albums/MTB/Dir_1', 6, '');
INSERT INTO `smf_mgallery_files` VALUES (124, 279642, 'img_2794-small.jpg', 1024, 683, 'albums/MTB/Dir_1', 6, '');
INSERT INTO `smf_mgallery_files` VALUES (125, 3009, 'thumb_img_2794-small.jpg.jpg', 119, 80, 'albums/MTB/Dir_1', 6, '');
INSERT INTO `smf_mgallery_files` VALUES (4, 2799, 'folder.png', 48, 48, 'generic_images', 0, '');
INSERT INTO `smf_mgallery_files` VALUES (126, 2042, 'face-smile.png', 32, 32, 'album_icons', 5, '');
INSERT INTO `smf_mgallery_files` VALUES (127, 2042, 'face-smile.png', 32, 32, 'album_icons', 4, '');
INSERT INTO `smf_mgallery_files` VALUES (128, 2042, 'face-smile.png', 32, 32, 'album_icons', 3, '');
INSERT INTO `smf_mgallery_files` VALUES (129, 2042, 'face-smile.png', 32, 32, 'album_icons', 6, '');
INSERT INTO `smf_mgallery_files` VALUES (130, 2042, 'face-smile.png', 32, 32, 'album_icons', 2, '');
INSERT INTO `smf_mgallery_files` VALUES (131, 2042, 'face-smile.png', 32, 32, 'album_icons', 1, '');


and the mgallery_media:
-- phpMyAdmin SQL Dump
-- version
-- http://www.phpmyadmin.net
--
-- Host: ##########################
-- Generato il: 26 Ott, 2008 at 09:02 AM
-- Versione MySQL: 5.0.51
-- Versione PHP: 5.2.6-0.dotdeb.1
--
-- Database: ######################
--

-- --------------------------------------------------------

--
-- Struttura della tabella `smf_mgallery_media`
--

CREATE TABLE `smf_mgallery_media` (
  `id_media` int(11) NOT NULL auto_increment,
  `id_member` int(11) NOT NULL,
  `member_name` varchar(25) NOT NULL default '',
  `last_edited` int(11) NOT NULL default '0',
  `last_edited_by` int(11) NOT NULL default '0',
  `last_edited_name` text NOT NULL,
  `id_file` int(11) NOT NULL default '0',
  `id_thumb` int(11) NOT NULL default '0',
  `type` varchar(10) NOT NULL default 'image',
  `album_id` int(11) NOT NULL default '0',
  `rating` text NOT NULL,
  `voters` text NOT NULL,
  `title` varchar(100) NOT NULL default '(No title)',
  `description` text NOT NULL,
  `approved` tinyint(1) NOT NULL default '0',
  `time_added` int(11) NOT NULL default '0',
  `views` int(11) NOT NULL default '0',
  `last_viewed` int(11) NOT NULL default '0',
  `keywords` text NOT NULL,
  `embed_url` text NOT NULL,
  `id_last_comment` int(11) NOT NULL default '0',
  `log_last_access_time` int(11) NOT NULL default '0',
  `num_comments` int(11) NOT NULL default '0',
  `id_preview` int(11) NOT NULL default '0',
  PRIMARY KEY  (`id_media`)
) ENGINE=MyISAM AUTO_INCREMENT=67 DEFAULT CHARSET=utf8 AUTO_INCREMENT=67 ;

--
-- Dump dei dati per la tabella `smf_mgallery_media`
--

INSERT INTO `smf_mgallery_media` VALUES (1, 1, 'MonoTiz', 0, 0, '', 5, 6, 'image', 1, '0', '0', 'Un bel muggine...', 'Attualmente la preda più grande (questo vi da l&#039;idea del pescatore che sono  ;) ).', 1, 1221736277, 17, 0, 'pesca,apnea,muggine', '', 0, 1221736277, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (2, 1, 'MonoTiz', 0, 0, '', 7, 8, 'image', 1, '0', '0', 'polpi...', '', 1, 1221736324, 8, 0, 'pesca,apnea,polpo', '', 0, 1221736324, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (3, 1, 'MonoTiz', 0, 0, '', 9, 10, 'image', 1, '0', '0', 'polpi...', '', 1, 1221736555, 11, 0, '', '', 0, 1221736555, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (4, 1, 'MonoTiz', 0, 0, '', 11, 12, 'image', 1, '0', '0', 'polpo e sarago', '', 1, 1221736604, 16, 0, '', '', 0, 1221736604, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (5, 1, 'MonoTiz', 1221748437, 1, 'MonoTiz', 15, 16, 'image', 2, '0', '0', 'monociclo e giocoleria', '', 1, 1221736829, 19, 0, '', '', 0, 1221748437, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (6, 1, 'MonoTiz', 0, 0, '', 17, 18, 'image', 2, '0', '0', 'monociclo autocostruito', '', 1, 1221736860, 10, 0, '', '', 0, 1221736860, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (7, 1, 'MonoTiz', 0, 0, '', 19, 20, 'image', 2, '0', '0', 'La studentessa a carnevale', '', 1, 1221736883, 10, 0, '', '', 0, 1221736883, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (8, 1, 'MonoTiz', 0, 0, '', 21, 22, 'image', 2, '0', '0', 'La studentessa a carnevale', '', 1, 1221736900, 14, 0, '', '', 0, 1221736900, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (9, 1, 'MonoTiz', 0, 0, '', 23, 24, 'image', 2, '0', '0', 'Thiathlon con cristiano', '', 1, 1221736926, 14, 0, '', '', 0, 1221736926, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (10, 1, 'MonoTiz', 0, 0, '', 25, 26, 'image', 2, '0', '0', 'devastazione del triathleta', '', 1, 1221736946, 16, 0, '', '', 0, 1221736946, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (11, 1, 'MonoTiz', 0, 0, '', 27, 28, 'image', 2, '0', '0', 'pattini e salti', '', 1, 1221736964, 8, 0, '', '', 0, 1221736964, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (12, 1, 'MonoTiz', 0, 0, '', 29, 30, 'image', 2, '0', '0', 'In rampa con alessandro', '', 1, 1221736981, 14, 0, '', '', 0, 1221736981, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (13, 1, 'MonoTiz', 0, 0, '', 31, 32, 'image', 2, '0', '0', 'monopattino o cross?', '', 1, 1221736997, 12, 0, '', '', 0, 1221736997, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (14, 1, 'MonoTiz', 0, 0, '', 34, 35, 'image', 3, '0', '0', 'Che dura la salita', '', 1, 1221737158, 7, 0, '', '', 0, 1221737158, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (15, 1, 'MonoTiz', 0, 0, '', 36, 37, 'image', 3, '0', '0', 'Trappola?', 'C&#039;è chi nel pozzo ci lancia una monetina ed esprime un desiderio. Io ci ho lanciato la moto. Ho desiderato tanto una gru che mi tirasse fuori...', 1, 1221737235, 8, 0, '', '', 0, 1221737235, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (16, 1, 'MonoTiz', 0, 0, '', 38, 39, 'image', 3, '0', '0', 'Trappola?', '', 1, 1221737255, 8, 0, '', '', 0, 1221737255, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (17, 1, 'MonoTiz', 0, 0, '', 40, 41, 'image', 3, '0', '0', 'Enduro all&#039;elba', '', 1, 1221737277, 4, 0, '', '', 0, 1221737277, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (18, 1, 'MonoTiz', 0, 0, '', 42, 43, 'image', 3, '0', '0', 'Alberto: foto ricordo', '', 1, 1221737295, 7, 0, '', '', 0, 1221737295, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (19, 1, 'MonoTiz', 0, 0, '', 44, 45, 'image', 3, '0', '0', 'Vai vai vai...', '', 1, 1221737316, 3, 0, '', '', 0, 1221737316, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (20, 1, 'MonoTiz', 0, 0, '', 46, 47, 'image', 3, '0', '0', 'KTM.. uno dei tanti', '', 1, 1221737343, 6, 0, '', '', 0, 1221737343, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (21, 1, 'MonoTiz', 0, 0, '', 48, 49, 'image', 3, '0', '0', 'wheeling...', '', 1, 1221737362, 7, 0, '', '', 0, 1221737362, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (22, 1, 'MonoTiz', 0, 0, '', 50, 51, 'image', 3, '0', '0', 'Vai tiziano, vai...', '', 1, 1221737386, 5, 0, '', '', 0, 1221737386, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (23, 1, 'MonoTiz', 0, 0, '', 52, 53, 'image', 3, '0', '0', 'Gaaaaaassss', '', 1, 1221737406, 6, 0, '', '', 0, 1221737406, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (24, 1, 'MonoTiz', 0, 0, '', 54, 55, 'image', 3, '0', '0', 'Moto pesante o manico scadente?', '', 1, 1221737431, 7, 0, '', '', 0, 1221737431, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (25, 1, 'MonoTiz', 0, 0, '', 0, 0, 'embed', 4, '0', '0', 'Monociclo park vol 1', 'Uno dei primi video in sella al mono ed in compagnia di Alberto', 1, 1221737686, 6, 0, '', 'http://video.google.it/videoplay?docid=-3966445042937509147', 0, 1221737686, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (26, 1, 'MonoTiz', 0, 0, '', 0, 0, 'embed', 4, '0', '0', 'Monociclo park vol 2', 'La pazzia comincia a prendere il sopravvento... che botta alla fine...', 1, 1221737746, 5, 0, '', 'http://video.google.it/videoplay?docid=7967659686103314114', 0, 1221737746, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (27, 1, 'MonoTiz', 0, 0, '', 0, 0, 'embed', 4, '0', '0', 'Monociclo Trial vol. 2', 'Montaggio molto curato...', 1, 1221737813, 7, 0, '', 'http://video.google.it/videoplay?docid=3554059065984439819', 0, 1221737813, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (28, 1, 'MonoTiz', 0, 0, '', 0, 0, 'embed', 4, '0', '0', 'Monociclo Trial vol. 3', '', 1, 1221737846, 7, 0, '', 'http://video.google.it/videoplay?docid=-8173958853218616120', 0, 1221737846, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (29, 1, 'MonoTiz', 0, 0, '', 0, 0, 'embed', 4, '0', '0', 'Promo &quot;Enduro con il TTR&quot;', 'Il trailer del corso di enduro tenuto dal sottoscritto. Corso amatoriale ovviamente.', 1, 1221738879, 7, 0, '', 'http://video.google.it/videoplay?docid=7538584115011206648', 0, 1221738879, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (30, 1, 'MonoTiz', 0, 0, '', 0, 0, 'embed', 4, '0', '0', 'Trappola per TTR... non ridete!', '', 1, 1221740447, 13, 0, '', 'http://video.google.it/videoplay?docid=-2527275558753080706', 0, 1221740447, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (31, 1, 'MonoTiz', 0, 0, '', 0, 0, 'embed', 4, '0', '0', 'Sardinia Desert', 'Uno dei viaggi più belli che abbia mai fatto. In due partenza in moto con gomme tasselate. Destinazione Piscinas, costa verde. Uno spettacolo della natura.', 1, 1221749280, 9, 0, '', 'http://video.google.it/videoplay?docid=-5851707779366622560', 0, 1221749280, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (32, 1, 'MonoTiz', 0, 0, '', 56, 57, 'image', 2, '0', '0', 'Halloween', '', 1, 1221754488, 11, 0, '', '', 0, 1221754488, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (34, 1, 'MonoTiz', 0, 0, '', 61, 62, 'image', 5, '0', '0', 'Un ultimo saluto', '', 1, 1221757945, 6, 0, '', '', 0, 1221757945, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (35, 1, 'MonoTiz', 0, 0, '', 63, 64, 'image', 5, '0', '0', 'splash..', '', 1, 1221757983, 4, 0, '', '', 0, 1221757983, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (36, 1, 'MonoTiz', 0, 0, '', 65, 66, 'image', 5, '0', '0', 'sulle sponde del fiume rosso', '', 1, 1221758020, 5, 0, '', '', 0, 1221758020, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (37, 1, 'MonoTiz', 0, 0, '', 67, 68, 'image', 5, '0', '0', 'fuori dai guai', '', 1, 1221758119, 3, 0, '', '', 0, 1221758119, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (38, 1, 'MonoTiz', 0, 0, '', 69, 70, 'image', 5, '0', '0', 'nei guai', '', 1, 1221758141, 6, 0, '', '', 0, 1221758141, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (39, 1, 'MonoTiz', 0, 0, '', 71, 72, 'image', 5, '0', '0', 'insabbiato?', '', 1, 1221758171, 2, 0, '', '', 0, 1221758171, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (40, 1, 'MonoTiz', 0, 0, '', 73, 74, 'image', 5, '0', '0', 'Alberto fuori dai guai', '', 1, 1221758260, 4, 0, '', '', 0, 1221758260, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (41, 1, 'MonoTiz', 0, 0, '', 75, 76, 'image', 5, '0', '0', 'sali sali', '', 1, 1221758282, 4, 0, '', '', 0, 1221758282, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (42, 1, 'MonoTiz', 0, 0, '', 77, 78, 'image', 5, '0', '0', 'acqua e ferro', '', 1, 1221758326, 6, 0, '', '', 0, 1221758326, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (43, 1, 'MonoTiz', 0, 0, '', 79, 80, 'image', 5, '0', '0', 'uscirà?', '', 1, 1221758640, 4, 0, '', '', 0, 1221758640, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (44, 1, 'MonoTiz', 0, 0, '', 81, 82, 'image', 5, '0', '0', 'quasi deserto', '', 1, 1221758677, 2, 0, '', '', 0, 1221758677, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (45, 1, 'MonoTiz', 0, 0, '', 83, 84, 'image', 5, '0', '0', 'alberto in relax', '', 1, 1221758695, 4, 0, '', '', 0, 1221758695, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (46, 1, 'MonoTiz', 0, 0, '', 85, 86, 'image', 5, '0', '0', 'cammina cammina', 'http://www.monotiz.com/smf/index.php?action=mgallery;sa=viewitem;id=45', 1, 1221758756, 7, 0, '', '', 0, 1221758756, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (47, 1, 'MonoTiz', 0, 0, '', 87, 88, 'image', 5, '0', '0', 'sono sconvolto', '', 1, 1221758783, 7, 0, '', '', 0, 1221758783, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (48, 1, 'MonoTiz', 0, 0, '', 89, 90, 'image', 5, '0', '0', 'in riva al mare', '', 1, 1221758803, 7, 0, '', '', 0, 1221758803, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (49, 1, 'MonoTiz', 0, 0, '', 91, 92, 'image', 5, '0', '0', 'all&#039;ombra', '', 1, 1221758826, 3, 0, '', '', 0, 1221758826, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (50, 1, 'MonoTiz', 0, 0, '', 93, 94, 'image', 5, '0', '0', 'che sete (sono là dietro)', '', 1, 1221758849, 13, 0, '', '', 0, 1221758849, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (51, 1, 'MonoTiz', 0, 0, '', 95, 96, 'image', 5, '0', '0', 'vista mozzafiato', '', 1, 1221758867, 7, 0, '', '', 0, 1221758867, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (52, 1, 'MonoTiz', 0, 0, '', 97, 98, 'image', 5, '0', '0', 'anche senza cavalletto', '', 1, 1221758892, 6, 0, '', '', 0, 1221758892, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (53, 1, 'MonoTiz', 0, 0, '', 99, 100, 'image', 5, '0', '0', 'siamo quasi arrivati', '', 1, 1221758919, 8, 0, '', '', 0, 1221758919, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (54, 1, 'MonoTiz', 0, 0, '', 101, 102, 'image', 5, '0', '0', 'è che mi dipingono così', '', 1, 1221758936, 16, 0, '', '', 0, 1221758936, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (55, 1, 'MonoTiz', 0, 0, '', 103, 104, 'image', 5, '0', '0', 'tiziano all&#039;alba', '', 1, 1221758950, 11, 0, '', '', 0, 1221758950, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (56, 1, 'MonoTiz', 0, 0, '', 105, 106, 'image', 5, '0', '0', 'alberto all&#039;alba', '', 1, 1221758964, 11, 0, '', '', 0, 1221758964, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (57, 1, 'MonoTiz', 0, 0, '', 108, 109, 'image', 6, '0', '0', 'Saltoooo', '', 1, 1221997636, 12, 0, '', '', 0, 1221997636, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (58, 1, 'MonoTiz', 0, 0, '', 110, 111, 'image', 6, '0', '0', 'Foto ricordo: Lele', '', 1, 1221997666, 10, 0, '', '', 0, 1221997666, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (59, 1, 'MonoTiz', 0, 0, '', 112, 113, 'image', 6, '0', '0', 'Foto ricordo: Lele - 2', '', 1, 1221997689, 10, 0, '', '', 0, 1221997689, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (60, 1, 'MonoTiz', 0, 0, '', 114, 115, 'image', 6, '0', '0', 'Nose wheel', '', 1, 1222345893, 10, 0, '', '', 0, 1222345893, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (61, 1, 'MonoTiz', 0, 0, '', 116, 117, 'image', 6, '0', '0', 'opsss...', '', 1, 1222427320, 6, 0, '', '', 0, 1222427320, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (62, 1, 'MonoTiz', 0, 0, '', 118, 119, 'image', 6, '0', '0', 'che scarso...', '', 1, 1222428128, 8, 0, '', '', 0, 1222428128, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (63, 1, 'MonoTiz', 0, 0, '', 120, 121, 'image', 6, '0', '0', 'che classe...', '', 1, 1222428154, 28, 0, '', '', 0, 1222428154, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (64, 1, 'MonoTiz', 0, 0, '', 122, 123, 'image', 6, '0', '0', 'una foto artistica', '', 1, 1222428177, 10, 0, '', '', 0, 1222428177, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (65, 1, 'MonoTiz', 0, 0, '', 124, 125, 'image', 6, '0', '0', 'cappottamento?', '', 1, 1222428200, 13, 0, '', '', 0, 1222428200, 0, 0);
INSERT INTO `smf_mgallery_media` VALUES (66, 1, 'MonoTiz', 0, 0, '', 0, 0, 'embed', 4, '0', '0', 'MTB park vol. 1', 'Il primo video in sella alle MTB. Trick assurdi e pericolosissimi... seeeee va beh...', 1, 1224487921, 12, 0, '', 'http://www.youtube.com/watch?v=h3jxpGOhklE', 0, 1224487921, 0, 0);
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: genieuk on October 26, 2008, 04:47:46 AM
Hi Dragooon,

Notice there was another update yesterday at 14:15, is this to solve my problem or something? i mean what has changed. As at the moment as you know i am having problems with conversion etc (see aove posts).

If you could post when you have changed it so it will work for me.

Thanks
Mathew
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Dragooon on October 26, 2008, 08:29:44 AM
Quote from: genieuk on October 26, 2008, 04:47:46 AM
Hi Dragooon,

Notice there was another update yesterday at 14:15, is this to solve my problem or something? i mean what has changed. As at the moment as you know i am having problems with conversion etc (see aove posts).

If you could post when you have changed it so it will work for me.

Thanks
Mathew
Yes there was a change but the converter wasn't updated. Good news is that it is under testing by me. I'll try to finish it by tomorrow.

@MonoTiz - What happens when you run Admin > Gallery > Maintenance > Find errors?
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: MonoTiz on October 26, 2008, 08:40:09 AM
Quote from: Dragooon on October 26, 2008, 08:29:44 AM
@MonoTiz - What happens when you run Admin > Gallery > Maintenance > Find errors?
Checking for errors is done. No errors found!
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Dragooon on October 26, 2008, 08:45:25 AM
Monotiz, run this query in phpmyadmin
UPDATE smf_mgallery_media
SET id_thumb = 2
WHERE id_media = 66


Was that video uploaded before the installation of 1.5?
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Burke ♞ Knight on October 26, 2008, 09:56:24 AM
The album icon issue is also one that I am having...
If there is a fix that can be done, I'd be very grateful. :)
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: MonoTiz on October 26, 2008, 10:21:33 AM
Quote from: Dragooon on October 26, 2008, 08:45:25 AM
Monotiz, run this query in phpmyadmin
UPDATE smf_mgallery_media
SET id_thumb = 2
WHERE id_media = 66


Was that video uploaded before the installation of 1.5?
All item are upload before the update...

I have set id_thumb=2 and now I can view the video icons...
check it:
http://www.monotiz.com/smf/index.php?action=mgallery

EDIT: I have erased the icon field in mgallery_album table.
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Dragooon on October 26, 2008, 11:14:15 AM
Quote from: BurkeKnight on October 26, 2008, 09:56:24 AM
The album icon issue is also one that I am having...
If there is a fix that can be done, I'd be very grateful. :)
The fix will be in SMG 1.5 b2

Quote from: MonoTiz on October 26, 2008, 10:21:33 AM
Quote from: Dragooon on October 26, 2008, 08:45:25 AM
Monotiz, run this query in phpmyadmin
UPDATE smf_mgallery_media
SET id_thumb = 2
WHERE id_media = 66


Was that video uploaded before the installation of 1.5?
All item are upload before the update...

I have set id_thumb=2 and now I can view the video icons...
check it:
http://www.monotiz.com/smf/index.php?action=mgallery

EDIT: I have erased the icon field in mgallery_album table.
Ah thats what I wondered, because in SMG 1.5, it grabs youtube video's thumbnails.
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Nao 尚 on October 26, 2008, 11:45:23 AM
Quote from: Dragooon on October 26, 2008, 08:45:25 AM
Was that video uploaded before the installation of 1.5?
Yes, it was... If you look at the timestamp, it says 1224487921, which is October 20th.
The question would then be: did the error already happen before installing v1.5...?
And I don't see where the 1.5 install process would ever touch these settings...!

Dragooon> I found another PHP version related bug... PHP4 won't download Youtube thumbnails. This is because headers are tested via get_headers() which is PHP5-only. Grmpf!!! So I'm replacing it with a custom version of url_exists() from Subs-Package (custom not because it's not in smf 1.x -- actually it is -- but because it wouldn't work with Dailymotion thumbnails in the current situation, as it returns an error code different from 200.)

As for the SGL converter, I committed many changes today, *normally* it should work, but I have no SGL install anywhere... (And I have no interest in installing it just to test the script.)
There are just a few things I'd like to bring to your attention, Dragooon: why a 20 second max_exec time? Remember how the new converter also generates the previews and thus is a lot more taxing on the server? The number I used for the CPG converter (5 seconds) is the highest possible number where the script doesn't crash at one point. Anyway, I lowered it to 5 seconds.
As for the rest -- we already discussed it via MSN.
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Nao 尚 on October 26, 2008, 02:09:52 PM
Uninstall. Reinstall with the compatibility setting... (At the bottom of the install page I think.)
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: hcar on October 26, 2008, 02:37:50 PM
this gallery is beautiful. i've fixed all of my issues as i've been installing, but i'm stuck on one. when i upload an album icon, it doesn't show. i get a little box that says "sorry, you are not allowed to view this file. make sure you are connected to the server." i combed this thread and saw another user on page 7 with an icon issue, but it wasn't answered. can anyone help me with this?

also. i would like to be able to do the following on the individual picture pages, if anyone knows of a way:

remove rating
remove filename
remove html embed code
remove "click on picture for full size" - i would like the page to BE the full photo, and i've set the parameters for this. i don't want another one to open.


______________

ETA
i'm getting this error when i create an album, even though the album shows up fine.

http://***.com/forum/index.php?action=mgallery;sa=useralbums;do=add
Apply Filter: Only show the errors with the same message
8: Array to string conversion
File: /home/***/public_html/forum/Sources/MGallery-Sub.php
Line: 789
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: phantom5 on October 26, 2008, 02:38:35 PM
thanks
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: hcar on October 26, 2008, 02:47:12 PM
one more thing. i'd also like to know if there's a way to disable user albums. i may want it in the future, but i'd like just the albums i specify to be available for now.
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: PRaDiUS on October 26, 2008, 03:46:21 PM
is there a code i could paste onto my forum's index that would display recent items added to the media gallery?
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Burke ♞ Knight on October 26, 2008, 05:20:50 PM
Quote from: hcar on October 26, 2008, 02:47:12 PM
one more thing. i'd also like to know if there's a way to disable user albums. i may want it in the future, but i'd like just the albums i specify to be available for now.

Go into the permissions for the group you do not want to have personal albums, and uncheck the box for:
Add User Albums
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: PRaDiUS on October 26, 2008, 08:14:11 PM
mmkk.. installed the new version and it's awsome but..

Videos now show an icon that says "Sorry you are not allowed to view this file. Make sure you are connected to the server."

also, whenever I try and add a new embeded video item to an album it just brings me to a blank screen.

I'm guessing this is for the same reason I can't view videos. Pictures are working just fine.
It's just the videos that are messing up.

Any idea how I can correct this error?

http://rgxbox.com/forum/index.php?action=mgallery (http://rgxbox.com/forum/index.php?action=mgallery)
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Nao 尚 on October 26, 2008, 09:12:16 PM
Please, everyone, when you see a bug, please watch the boards at smf-media.com first before reporting them!! (Or even read this topic! It's been reported just a couple of posts above!)
This one has actually been reported several times since yesterday, and fixed the very first time it was reported.

I simply cannot stand there for days and keep repeating the same things over and over... -_-

hcar> removing stuff? Just edit the templates and remove what you don't like... "Click for full size" only shows when the picture is larger than the preview itself. Just make sure previews are disabled or are at width/height > picture's width/height.
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Dragooon on October 27, 2008, 02:16:35 AM
Quote from: Nao 尚 on October 26, 2008, 11:45:23 AM
As for the SGL converter, I committed many changes today, *normally* it should work, but I have no SGL install anywhere... (And I have no interest in installing it just to test the script.)
There are just a few things I'd like to bring to your attention, Dragooon: why a 20 second max_exec time? Remember how the new converter also generates the previews and thus is a lot more taxing on the server? The number I used for the CPG converter (5 seconds) is the highest possible number where the script doesn't crash at one point. Anyway, I lowered it to 5 seconds.
As for the rest -- we already discussed it via MSN.
It does not generates the previews(I skipped it). :)
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Nao 尚 on October 27, 2008, 03:23:48 AM
Oh... Okay... But it still doesn't change the fact that a script can't survive for 20 seconds at any rate :P
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Dragooon on October 27, 2008, 03:30:32 AM
Yeah I am fine with that :).
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: crustybum on October 27, 2008, 05:47:21 AM
Whats the news on a non bridged converter for coppermine? this would save me eons of time ;)
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: genieuk on October 27, 2008, 05:51:49 AM
Same thing here, news on the converter update?

Still have mod installed but need the updated converter to solve problem.
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Dragooon on October 27, 2008, 06:05:27 AM
Quote from: crustybum on October 27, 2008, 05:47:21 AM
Whats the news on a non bridged converter for coppermine? this would save me eons of time ;)
No news :). Currently I haven't made it so that it can transfer members.

Quote from: genieuk on October 27, 2008, 05:51:49 AM
Same thing here, news on the converter update?

Still have mod installed but need the updated converter to solve problem.
SGL one? Its under testing and have a few serious issues :).
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: genieuk on October 27, 2008, 06:08:57 AM
Quote from: Dragooon on October 27, 2008, 06:05:27 AM
Quote from: crustybum on October 27, 2008, 05:47:21 AM
Whats the news on a non bridged converter for coppermine? this would save me eons of time ;)
No news :). Currently I haven't made it so that it can transfer members.

Quote from: genieuk on October 27, 2008, 05:51:49 AM
Same thing here, news on the converter update?

Still have mod installed but need the updated converter to solve problem.
SGL one? Its under testing and have a few serious issues :).

Ok, no problem, will continue to wait.

You can't help it if you make a mod that everyone loves and is dying to get going and get there hands on it ;)


Mathew
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: crustybum on October 27, 2008, 06:19:30 AM
Quote from: Dragooon on October 27, 2008, 06:05:27 AM
Quote from: crustybum on October 27, 2008, 05:47:21 AM
Whats the news on a non bridged converter for coppermine? this would save me eons of time ;)
No news :). Currently I haven't made it so that it can transfer members.

Quote from: genieuk on October 27, 2008, 05:51:49 AM
Same thing here, news on the converter update?

Still have mod installed but need the updated converter to solve problem.
SGL one? Its under testing and have a few serious issues :).

Shame,.... actually not bothererd about the members, just the pics..lol, incidently just upgraded to the newset gallery, (1.5, five minutes ago) and apart from the no icon issue (which i know your working on) i have just tried to upload a video from you tube and all i got was a blank page (it worked on previous version)
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: Dragooon on October 27, 2008, 06:49:24 AM
You uploaded or embeded?
Anything in error log?
Got a link to gallery?
SMF Version?
Title: Re: SMF Media Gallery - 1.5 beta 1.1 released - CPG converter now available
Post by: crustybum on October 27, 2008, 09:20:04 AM
Hi,

I embeded from you tube,
Nothuing on error log
smf ver  SMF 1.1.6

You will see a vid left over from previous  gallery that wont work
(not loaded all pics until i can sort out how to get them quickly from a coppermine version)

Link  http://www.brummiespeedway.net/forum/index.php?action=mgallery 

Chris
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Dragooon on October 27, 2008, 09:21:39 AM
SMG 1.5 beta 2 released! Changelog on the first topic and full changelog in the archive.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: crustybum on October 27, 2008, 09:25:48 AM
Quote from: Dragooon on October 27, 2008, 09:21:39 AM
SMG 1.5 beta 2 released! Changelog on the first topic and full changelog in the archive.

er..sorry?
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Nao 尚 on October 27, 2008, 09:46:18 AM
Quote from: crustybum on October 27, 2008, 09:25:48 AM
Quote from: Dragooon on October 27, 2008, 09:21:39 AM
SMG 1.5 beta 2 released! Changelog on the first topic and full changelog in the archive.
er..sorry?
The man says a new beta is released, you can find the changelog & link in the first page of the topic... What's so hard to understand :P

And I might as well reproduce the changelog here...

! Fixed album icon bug
* Overhauled the moderation log
+ Added ability to regenerate thumbnails and previews
+ Added an "unapproved" notice to regular users visiting their own unapproved items
! Fixed Highslide and SWFUpload not working when installing SMG in a custom theme
* Moderators now have more power -- including the ability to view unapproved items and comments
! Fixed a few issues while pruning item
! Fixed lots of recount/statistics bugs
! Youtube/Dailymotion thumbnail download wouldn't work with PHP 4
!* More minor fixes and changes, as usual...
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: genieuk on October 27, 2008, 09:54:32 AM
Yippy, please tell me whether this will solve my problems?

I will uninstall old version and install new and see how it goes.

Thank you,
Mathew
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: crustybum on October 27, 2008, 10:06:57 AM
Many thanks Dragoon, and thanks for the arsey childish reply from Nao, thought we were here to learn?

Anyway, the latest update seams to have cured the icons thing (Brilliant!) but like another poster i still have problems with videos..grrr :D where i didn't with the original release.

Chris
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: bfeo on October 27, 2008, 10:07:57 AM
Can this easily be customized for videos only?  My members already have personal picture galleries.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Burke ♞ Knight on October 27, 2008, 10:08:26 AM
Solved mine. :)

I just wish that there was a working code for a Random Image Block for SimplePortal 2.0.5 for Media Gallery. That way, I could have it on my main page. :)
Yet, they don't seem to have one that works. :(
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: genieuk on October 27, 2008, 10:17:14 AM
still seem to have same problems, Doh!
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: crustybum on October 27, 2008, 10:23:02 AM
Regarding the vids, i get this when trying to play one

Fatal error: Call to undefined function: str_ireplace() in /home/content/b/r/u/brummies/html/forum/Sources/Subs-MGallery.php on line 1116
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: tridirk on October 27, 2008, 10:30:10 AM
I am using SMF Gallery Lite, can I convert to this?  Without losing photos?
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Dragooon on October 27, 2008, 10:35:21 AM
Quote from: tridirk on October 27, 2008, 10:30:10 AM
I am using SMF Gallery Lite, can I convert to this?  Without losing photos?
The current converter has issues, a new one is being worked upon.

Quote from: crustybum on October 27, 2008, 10:23:02 AM
Regarding the vids, i get this when trying to play one

Fatal error: Call to undefined function: str_ireplace() in /home/content/b/r/u/brummies/html/forum/Sources/Subs-MGallery.php on line 1116
What is your PHP version?

Quote from: bfeo on October 27, 2008, 10:07:57 AM
Can this easily be customized for videos only?  My members already have personal picture galleries.
This gallery is designed especially for Pictures, but has a decent support for Audio and Video.

Quote from: crustybum on October 27, 2008, 10:06:57 AM
Many thanks Dragoon, and thanks for the arsey childish reply from Nao, thought we were here to learn?

Anyway, the latest update seams to have cured the icons thing (Brilliant!) but like another poster i still have problems with videos..grrr :D where i didn't with the original release.

Chris
About video's issue, can you post your PHP version?

Quote from: genieuk on October 27, 2008, 10:17:14 AM
still seem to have same problems, Doh!
The converters versions DOES NOT have any relation with SMG's versions. So releasing beta 2 does not means that a new version of converter is also released.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: RCC_SaMiaM on October 27, 2008, 10:51:54 AM
Getting the following error on using the convertor

The database value you're trying to insert does not exist: file
/var/www/html/mgconverter_cpg.php
363
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: crustybum on October 27, 2008, 10:55:31 AM
Hi Dragoon, my php version is 4.1
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Dragooon on October 27, 2008, 10:56:48 AM
Open the converter
Find
list($id_file, $id_thumb, $id_preview) = $ret;
Replace it with
$id_file = $ret['file'];
$id_thumb = $ret['thumb'];
$id_preview = $ret['preview'];


@crustybum, I'll upload a fixed beta 2 in 5 minutes.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: RCC_SaMiaM on October 27, 2008, 11:02:46 AM
Quote from: Dragooon on October 27, 2008, 10:56:48 AM
Open the converter
Find
list($id_file, $id_thumb, $id_preview) = $ret;
Replace it with
$id_file = $ret['file'];
$id_thumb = $ret['thumb'];
$id_preview = $ret['preview'];


@crustybum, I'll upload a fixed beta 2 in 5 minutes.

Nice prompt fix!  Seems to be working, will let you know.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: bfeo on October 27, 2008, 11:10:53 AM
How do I limit uploads to video or embed video only?
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Dragooon on October 27, 2008, 11:11:26 AM
Deny permissions to add audio or images.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: bfeo on October 27, 2008, 11:18:54 AM
Uhoh...  getting a "video no longer available"  from the embed when I upload http://www.youtube.com/watch?v=ubnHR1JsPtA  but as you can see, it definitely works if you go to the link.


Look yourself.

http://bfeo.org/forum/index.php?action=mgallery;sa=item;id=1
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Dragooon on October 27, 2008, 11:22:46 AM
I cannot see the gallery.

And I have updated a new beta 2 package, it fixes a few more things.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: bfeo on October 27, 2008, 11:37:01 AM
You might not have permission as a guest, I suppose. 

Regardless, I've tried two different videos, and both times when I click play it tells me that the video is no longer available.


Also, how can I set the comments to show the latest first?  And are there alternatives to posting comments besides popup?  It doesn't match the look of my forums.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: crustybum on October 27, 2008, 11:43:18 AM
That last update did the trick Dragoon, many thanks ;)
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Dragooon on October 27, 2008, 11:45:05 AM
Quote from: bfeo on October 27, 2008, 11:37:01 AM
You might not have permission as a guest, I suppose. 

Regardless, I've tried two different videos, and both times when I click play it tells me that the video is no longer available.


Also, how can I set the comments to show the latest first?  And are there alternatives to posting comments besides popup?  It doesn't match the look of my forums.
Can you give me permission?
And comments have the option to be sorted Descending on the viewitem page.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Nao 尚 on October 27, 2008, 11:49:46 AM
Dragooon> Hey, that makes me think... When I finish my per-album Default sort order code, should I also include the Comment sorting stuff in it...? I completely forgot about that... The problem is that people might not like having a different comment order when they switch to another user's album... Should I set this site-wide, as opposed to per-album settings?

Quote from: crustybum on October 27, 2008, 10:06:57 AM
Many thanks Dragoon, and thanks for the arsey childish reply from Nao, thought we were here to learn?
I wasn't even being agressive towards you... That's what the smiley was for. Cool down.

Now, my last month on SMG and possibly my future months can be described in three words: "hard", "unpaid" and "fulltime". It's also a source of pleasure, but I never "signed up" for "customer support", especially since the mod is 100% free. I'm just trying to happily share my work. So, consider my help a gift, and don't start insulting me in return ("arsey childish", uh? WTF?). I have a signature to prove it. I'm glad to help when I can, when I have time and when it's not driving me crazy. But I don't need to be pushed over the edge.

Are we good?
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Dragooon on October 27, 2008, 11:55:51 AM
Quote from: Nao 尚 on October 27, 2008, 11:49:46 AM
Dragooon> Hey, that makes me think... When I finish my per-album Default sort order code, should I also include the Comment sorting stuff in it...? I completely forgot about that... The problem is that people might not like having a different comment order when they switch to another user's album... Should I set this site-wide, as opposed to per-album settings?
Go ahead with that
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Nao 尚 on October 27, 2008, 12:00:59 PM
Quote from: Dragooon on October 27, 2008, 11:55:51 AM
Go ahead with that
With what? I offered several ideas :P
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: crustybum on October 27, 2008, 12:02:45 PM
Nao, you will find that most people on here are running forums, unpaid, long hours, and run purely for giving pleasure to others (that's the nature of this wonderful beast,) Maybe its a good time to have a lie down mate and think before you post, sometimes posts like that can put people off for fear of becoming ridiculed,.... one of the reason i set up one of my forums ;) You have to remember that something pretty darn simple to you can be pretty confusing to others....... that's a winking smiley BTW so everything's ok..

Chris
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: bfeo on October 27, 2008, 12:11:45 PM
You should have access now.

http://bfeo.org/forum/index.php?action=mgallery;sa=item;id=1


When I go to my profile gallery Summary I get

Fatal error: Call to undefined function mgal_theme_url() in /home/bfeo/public_html/forum/Sources/MGallery-Sub.php on line 1275

for my profile gallery View Items:

Fatal error: Call to undefined function mgal_theme_url() in /home/bfeo/public_html/forum/Sources/MGallery-Sub.php on line 1375
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: bfeo on October 27, 2008, 12:15:47 PM
Crustybum, I understand what you mean, because I'm practically in the same shoes.  Working on my site whenever I'm not in my college classes.

However, Nao 尚 didn't really come off in the wrong here.  Your post "err... sorry?" did not define what you were having trouble understanding with what appears to be a very straightforward post.  His response wasn't unwarranted.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Dragooon on October 27, 2008, 12:16:14 PM
Make sure you run the latest version and have the latest files. mgal_theme_url function exists in Subs-MGallery.php

And your video plays for me in FF3.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: RCC_SaMiaM on October 27, 2008, 12:17:07 PM
A suggestion I have (or you can call it a request :) ) is to limit the display size of icons.  Right now it seems a user can upload an icon at any size and it remains that size, which can blow out pages.  Maybe have it resize down to the thumbnail size?
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Dragooon on October 27, 2008, 12:19:20 PM
Quote from: Nao 尚 on October 27, 2008, 12:00:59 PM
Quote from: Dragooon on October 27, 2008, 11:55:51 AM
Go ahead with that
With what? I offered several ideas :P
I'd say put it side-wise in settings area.

Quote from: RCC_SaMiaM on October 27, 2008, 12:17:07 PM
A suggestion I have (or you can call it a request :) ) is to limit the display size of icons.  Right now it seems a user can upload an icon at any size and it remains that size, which can blow out pages.  Maybe have it resize down to the thumbnail size?
This is something I'll try to get before final release of 1.5, if I remember it :P
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: RCC_SaMiaM on October 27, 2008, 12:20:42 PM
Quote from: Dragooon on October 27, 2008, 12:19:20 PM
This is something I'll try to get before final release of 1.5, if I remember it :P

cool, be nice if it resizes the current icons as well :)
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: mforum on October 27, 2008, 01:04:24 PM
Quote from: bfeo on October 27, 2008, 11:18:54 AM
Uhoh...  getting a "video no longer available"  from the embed when I upload http://www.youtube.com/watch?v=ubnHR1JsPtA  but as you can see, it definitely works if you go to the link.


Look yourself.

http://bfeo.org/forum/index.php?action=mgallery;sa=item;id=1

As you can see in Embed box at the right at youtube.com says "Embedding disabled by request"

That means you can view video on youtube but can`t embed it elsewhere  :)
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: qubbah on October 27, 2008, 01:27:09 PM
yeSSs..
But how about the block code for TP. The older code is not play for new version of SMFG.
The database value you're trying to insert does not exist: sort
/home/mysite/public_html/v10/Sources/Subs-MGallery.php
3372
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: RCC_SaMiaM on October 27, 2008, 01:30:57 PM
The mass upload doesn't work for me, the select files button does nothing.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: RCC_SaMiaM on October 27, 2008, 01:38:32 PM
Was the issue fixed for linking images in posts?
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Dragooon on October 27, 2008, 01:41:32 PM
Quote from: qubbah on October 27, 2008, 01:27:09 PM
yeSSs..
But how about the block code for TP. The older code is not play for new version of SMFG.
The database value you're trying to insert does not exist: sort
/home/mysite/public_html/v10/Sources/Subs-MGallery.php
3372
Can you paste the code?

Quote from: RCC_SaMiaM on October 27, 2008, 01:30:57 PM
The mass upload doesn't work for me, the select files button does nothing.
Make sure you have uploaded default theme's mgallery folder to your theme's folder

Quote from: RCC_SaMiaM on October 27, 2008, 01:38:32 PM
Was the issue fixed for linking images in posts?
What issue?
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: qubbah on October 27, 2008, 01:44:06 PM

Quote from: qubbah on October 27, 2008, 01:27:09 PM
yeSSs..
But how about the block code for TP. The older code is not play for new version of SMFG.
The database value you're trying to insert does not exist: sort
/home/mysite/public_html/v10/Sources/Subs-MGallery.php
3372
Can you paste the code?

global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;

   require_once($sourcedir . '/Subs-MGallery.php');
   loadMGal_Settings();

   if(loadlanguage('MGallery') == false)
      loadLanguage('MGallery', 'english');
   $items = getMediaItems(5,true);
echo '
<table>
   <tr>';

   foreach($items as $item)
      echo '
   <td>
   <div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">
      <a href="',$galurl,'sa=viewitem;id=',$item['id'],'">',$item['item_title'],'</a><br />
      <a href="',$galurl,'sa=viewitem;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=getmedia;id=',$item['id_thumb'],'" alt="" /></a><br />
      ',$txt['mgallery_views'],' : ',$item['views'],'<br />
      ',$txt['mgallery_posted_by'],' : <a href="',$scripturl,'?action=profile;u=',$item['member_id'],'">',$item['member_name'],'</a><br />
      ',$txt['mgallery_in_album'],' : <a href="',$galurl,'sa=viewalbum;id=',$item['id_album'],'">',$item['album_name'],'</a>
      ',$item['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
   </div>
   </td>';

echo '
   </tr>
</table>';

Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: RCC_SaMiaM on October 27, 2008, 01:49:56 PM
The issue I was talking about was not being able to use the SMF BBC img tags to show the image in a post.  Mine does not work (even using the BBC code it lists in the gallery)
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: RCC_SaMiaM on October 27, 2008, 01:53:17 PM
Oh I forgot to mention, I already did copy the mgallery folder into my theme's folder before making the post that the buttons do nothing for mass upload.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Dragooon on October 27, 2008, 01:53:56 PM
@qubbah, replace this line
   $items = getMediaItems(5,true);
with
   $items = getMediaItems(0, 5, 'm.id_media DESC');

@RCC - The code is supposed to work just fine, are you sure you use the one listed in the gallery?
Does the mass upload work in default theme? Do you have JS and Flash in your browser?
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: RCC_SaMiaM on October 27, 2008, 02:00:09 PM
Yes have JS and flash, yes sure I used the exact BBC code it says in the gallery, not sure if it works in default them since I removed that option on my site.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Dragooon on October 27, 2008, 02:01:32 PM
Can you see if it works when you add ;theme=1 at the end of URL

What happens when you try the link which is said in the BBC?
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: RCC_SaMiaM on October 27, 2008, 02:05:15 PM
Quote from: Dragooon on October 27, 2008, 02:01:32 PM
Can you see if it works when you add ;theme=1 at the end of URL

I have set my theme as default, so that just shows the same theme.

Quote from: Dragooon on October 27, 2008, 02:01:32 PM
What happens when you try the link which is said in the BBC?

nothing, blank.  I see the "fetching preview" but it just goes away.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: bfeo on October 27, 2008, 02:07:31 PM
Quote from: mforum on October 27, 2008, 01:04:24 PM
As you can see in Embed box at the right at youtube.com says "Embedding disabled by request"

That means you can view video on youtube but can`t embed it elsewhere  :)

Nice catch, mate.

Quote from: Dragooon on October 27, 2008, 12:16:14 PM
Make sure you run the latest version and have the latest files. mgal_theme_url function exists in Subs-MGallery.php

And your video plays for me in FF3.

I have the latest files, and I redownloaded and replaced the mod with the latest after you told me you reuploaded it.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Dragooon on October 27, 2008, 02:11:46 PM
@RCC - blank? Can you post the URL?

@bfeo - It was a error which was lately discovered. Let me see if Nao resolved it.

Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: qubbah on October 27, 2008, 02:14:04 PM
Quote from: Dragooon on October 27, 2008, 01:53:56 PM
@qubbah, replace this line
   $items = getMediaItems(5,true);
with
   $items = getMediaItems(0, 5, 'm.id_media DESC');



Now the thumbnail in tp block doest show. But its properly show in the gallery.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: RCC_SaMiaM on October 27, 2008, 02:14:59 PM
http://ramchargercentral.com/index.php?topic=114395.0
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Dragooon on October 27, 2008, 02:16:31 PM
@bfeo - Open MGallery-Sub.php
In the functions MGal_Profile_Summary and MGal_Profile_ViewItems find the line require_once($sourcedir . '/Subs-MGallery.php'); and move it just after where the globals are declared.

@qubbah try this
global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;

   require_once($sourcedir . '/Subs-MGallery.php');
   loadMGal_Settings();

   if(loadlanguage('MGallery') == false)
      loadLanguage('MGallery', 'english');
   $items = getMediaItems(5,true);
echo '
<table>
   <tr>';

   foreach($items as $item)
      echo '
   <td>
   <div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">
      <a href="',$galurl,'sa=viewitem;id=',$item['id'],'">',$item['item_title'],'</a><br />
      <a href="',$galurl,'sa=viewitem;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=getmedia;id=',$item['id'],';thumb" alt="" /></a><br />
      ',$txt['mgallery_views'],' : ',$item['views'],'<br />
      ',$txt['mgallery_posted_by'],' : <a href="',$scripturl,'?action=profile;u=',$item['member_id'],'">',$item['member_name'],'</a><br />
      ',$txt['mgallery_in_album'],' : <a href="',$galurl,'sa=viewalbum;id=',$item['id_album'],'">',$item['album_name'],'</a>
      ',$item['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
   </div>
   </td>';

echo '
   </tr>
</table>';


@RCC - The image opens fine to me in FF3?
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: RCC_SaMiaM on October 27, 2008, 02:17:09 PM
Oh fixed it, permissions issue with MGalleryItem.php
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Dragooon on October 27, 2008, 02:17:50 PM
Good :)
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Nao 尚 on October 27, 2008, 02:29:38 PM
Quote from: Dragooon on October 27, 2008, 02:11:46 PM
@bfeo - It was a error which was lately discovered. Let me see if Nao resolved it.
What do you think :D
http://smf-media.com/community/index.php?topic=163.msg842#msg842

I notice you posted your own fix in the meanwhile, though!
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: qubbah on October 27, 2008, 02:54:45 PM
its still show

The database value you're trying to insert does not exist: sort
/home/myhome/public_html/v4/Sources/Subs-MGallery.php
3372


when i change
   $items = getMediaItems(5,true);

to this
$items = getMediaItems(0, 5, 'm.id_media DESC');

the thumnail dosnt show at all..
sorry... i think there is something wrong with my action..
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Burke ♞ Knight on October 27, 2008, 02:55:25 PM
Quote from: RCC_SaMiaM on October 27, 2008, 02:17:09 PM
Oh fixed it, permissions issue with MGalleryItem.php

What exactly did you do?
I have same issue, and need the fix.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: bfeo on October 27, 2008, 03:10:53 PM
There doesn't appear to be any way to prune comments easily?  On a per comment basis?
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: RCC_SaMiaM on October 27, 2008, 03:28:05 PM
Quote from: BurkeKnight on October 27, 2008, 02:55:25 PM
Quote from: RCC_SaMiaM on October 27, 2008, 02:17:09 PM
Oh fixed it, permissions issue with MGalleryItem.php

What exactly did you do?
I have same issue, and need the fix.

I changed the permissions to 644
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: RCC_SaMiaM on October 27, 2008, 03:30:52 PM
For the mass upload, is the form action suppose to be blank?  I notice there is no javascript to perform an action either.  So that is why mine does nothing.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Burke ♞ Knight on October 27, 2008, 04:55:53 PM
Quote from: RCC_SaMiaM on October 27, 2008, 03:28:05 PM
I changed the permissions to 644

Well, that did not do it for me.

There is supposed to be an image here:
http://www.bkgta.co.cc/index.php?topic=9
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Burke ♞ Knight on October 27, 2008, 05:07:09 PM
Then how is it visible in the gallery?
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Nao 尚 on October 27, 2008, 05:08:56 PM
That's because your picture file is corrupted.
http://www.bkgta.co.cc/MGalleryItem.php?id=3

Just have a look... It says 0x0 pixels. You can download it and launch it in programs like ACDSee, it will correctly decode them -- but your browser might not. I'm using Opera and it doesn't. I tried to reupload on my website and it doesn't show up. All of my other pics do.

Edit -- that's because your file says this at the beginning.....

<br />
<b>Notice</b>:  Undefined index:  sp-forum in <b>/home/bkwebhos/public_html/bkgta.co.cc/Sources/Subs.php</b> on line <b>3742</b>

You should fix this. It's not a SMG bug ;) When you uploaded the file, you had this error appear, so it "saved" the error along with it. This is something I'll try to fix, though -- I mean, even though it's not a SMG bug, maybe we can do something to reduce the risk of having such a problem appear.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Nao 尚 on October 27, 2008, 05:14:21 PM
Hmm, there's little chance it will solve your problem, but we might as well try that before...
Open up MGalleryItem.php, line 45 (the line says "// Send it").

Add this just before:

if (function_exists('ob_get_level'))
while (@ob_get_level() > 0)
@ob_end_clean();
else
{
@ob_end_clean();
@ob_end_clean();
@ob_end_clean();
}


Save. Upload. Try to download again.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Ratz on October 27, 2008, 05:19:27 PM
Quote from: djrem on September 11, 2008, 10:14:25 PM
I'm getting 406 errors when ever i try and click an album
LOOKS LIKE:
QuoteNot Acceptable
An appropriate representation of the requested resource /forum/index.php could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Installed here:
http://voguefm.co.uk/forum/index.php?action=mgallery


Installed with no errors so don't understand what could be wrong.

Cheers for any help people :)

I too ran into the same issue. The solution is to contact your Hosting company to deal with this. They need to make some sort of change to something called "Apache mod_security" for your site. I'm not 100% certain what it is but it has something to do with intrusion detection or firewall. In my case the System Admin explained to me that he had to disable one mod_security rule for my site because it was "giving a FALSE positive".
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Burke ♞ Knight on October 27, 2008, 05:20:51 PM
Title   GTA: Knight Rider 2
Description   {I did Mass Upload, so none given}
Posted   Today at 05:15:23 PM
Width x Height    800x600
Filesize   139 KB
Filename   bkgta_002.jpg

Just uploaded today.
1. Former image had NO errors when I uploaded it.
2. Still no image for me in the post.




EDIT:

The last bit helped. Thank you. :)
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Nao 尚 on October 27, 2008, 05:25:05 PM
Quote from: BurkeKnight on October 27, 2008, 05:20:51 PM
The last bit helped. Thank you. :)
Which bit, exactly?
I see you reuploaded your pics. Did you fix your Subs.php file, or update the MGalleryItem.php file? I need to know if MGalleryItem needs to be updated.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Burke ♞ Knight on October 27, 2008, 05:29:00 PM
MGalleryItem.php

That did the trick. :)



Hey, do I get credit as being a beta tester for this now?  ;) :P LOL
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Boxer2 on October 27, 2008, 05:45:47 PM
I also have a coppermine gallery but integrated with mkportal. Is there an option to convert from this one or i have to make from mkportal module stand allone installation and then bridge it with sf???
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: bfeo on October 27, 2008, 05:59:47 PM
One, how do I delete comments individually?

Two, how can I change the word item/s to video/s?
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Burke ♞ Knight on October 27, 2008, 06:04:48 PM
Quote from: bfeo on October 27, 2008, 05:59:47 PM
One, how do I delete comments individually?

Two, how can I change the word item/s to video/s?

To delete any comment, go to the image in the gallery, scroll down to the comment, and click the delete button.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.bkgta.co.cc%2FThemes%2Fdefault%2Fimages%2Fmgallery%2Fcomment_delete.png&hash=9b96c138d3cfa3be4083cb8c22c1737ba199f012)
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Nao 尚 on October 27, 2008, 07:16:54 PM
Quote from: BurkeKnight on October 27, 2008, 05:29:00 PM
MGalleryItem.php

That did the trick. :)
Interesting... ^o^ This will be fixed in the next beta, of course.

So, why did you remove your pictures and re-upload them? (The ID changed... That's why I thought it didn't make the trick in the first place.)

QuoteHey, do I get credit as being a beta tester for this now?  ;) :P LOL
Well, I don't know the extent of the credited beta testers' work on SMG because I haven't seen do any beta testing during my only month as a developer, and I suspect Dragooon put their names in because it was a cheap attempt at making his readme file bigger  O:)

Hmm seriously, I think the credits area is a bit overcrowded right now... I'd actually recommend removing beta tester credits from the area... The module list takes too much space already. And we need to credit them! Even if they don't ask. That's a lot of work we don't have to do. Which leaves us more time to work on new features.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Nao 尚 on October 27, 2008, 07:18:06 PM
Quote from: BurkeKnight on October 27, 2008, 06:04:48 PM
To delete any comment, go to the image in the gallery, scroll down to the comment, and click the delete button.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.bkgta.co.cc%2FThemes%2Fdefault%2Fimages%2Fmgallery%2Fcomment_delete.png&hash=9b96c138d3cfa3be4083cb8c22c1737ba199f012)
@Note to Dragooon> How about we use regular item icons for the comments area? The Edit and Delete button are way too small to be recognizable, indeed...
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Nao 尚 on October 27, 2008, 07:27:31 PM
Sorry for the triple post... I just remembered Simplemachines.org doesn't have a "Merge Double Posts" feature like my own board :P

Quote from: bfeo on October 27, 2008, 05:59:47 PM
Two, how can I change the word item/s to video/s?
Edit /Themes/default/languages/MGallery.english.php ... And replace words individually :P
Or you could edit your SMF install so that it replaces the word "item" with "video" on-the-fly when loading that very file. It can be done (I replace the French equivalent of "E-mail" with the actual "E-mail" word in my own board), but you need some programming experience for that.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: PRaDiUS on October 27, 2008, 07:31:33 PM
Quote from: crustybum on October 27, 2008, 06:19:30 AM
Shame,.... actually not bothererd about the members, just the pics..lol, incidently just upgraded to the newset gallery, (1.5, five minutes ago) and apart from the no icon issue (which i know your working on) i have just tried to upload a video from you tube and all i got was a blank page (it worked on previous version)

I'm having the exact same problem. Just upgraded up to the new version and when I try to upload videos now I get a blank screen. Videos that were previously uploaded are not viewable.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Burke ♞ Knight on October 27, 2008, 07:43:56 PM
Quote from: Nao 尚 on October 27, 2008, 07:16:54 PM
Quote from: BurkeKnight on October 27, 2008, 05:29:00 PM
MGalleryItem.php

That did the trick. :)
Interesting... ^o^ This will be fixed in the next beta, of course.

So, why did you remove your pictures and re-upload them? (The ID changed... That's why I thought it didn't make the trick in the first place.)

I had re-uploaded before doing that edit. Re-uploading did not work, that's why I did that fix you posted.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Nao 尚 on October 27, 2008, 08:02:15 PM
@Burke> Great, then :)

Quote from: PRaDiUS on October 27, 2008, 07:31:33 PM
I'm having the exact same problem. Just upgraded up to the new version and when I try to upload videos now I get a blank screen. Videos that were previously uploaded are not viewable.
I clicked on your rgxbox.com link (so, that Fallout 3 game, is it any good? I used to be an Oblivion addict...), and noticed no videos on your gallery. You'll have to hand me a stick so that I can cross the river here :P
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: tyhgdgh on October 27, 2008, 11:34:22 PM
ok, i uninstalled 1.0.2 then installed 1.5B2, there were TWO Gallery buttons, i uninstalled 1.5B2, and reinstalled 1.0.2, there wasnt a third, but how do i delete the second one?
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: RCC_SaMiaM on October 28, 2008, 12:24:52 AM
Quote from: RCC_SaMiaM on October 27, 2008, 03:30:52 PM
For the mass upload, is the form action suppose to be blank?  I notice there is no javascript to perform an action either.  So that is why mine does nothing.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Dragooon on October 28, 2008, 01:18:45 AM
Quote from: RCC_SaMiaM on October 28, 2008, 12:24:52 AM
Quote from: RCC_SaMiaM on October 27, 2008, 03:30:52 PM
For the mass upload, is the form action suppose to be blank?  I notice there is no javascript to perform an action either.  So that is why mine does nothing.
There should be a select button, a select box and a upload button.

Quote from: Nfanthr33 on October 27, 2008, 11:34:22 PM
ok, i uninstalled 1.0.2 then installed 1.5B2, there were TWO Gallery buttons, i uninstalled 1.5B2, and reinstalled 1.0.2, there wasnt a third, but how do i delete the second one?
Open your index.template.php and delete one of the instances.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Selroth on October 28, 2008, 02:00:45 AM
1.5 beta 2:

Hmm...  On my SMF 1.1.6 install it seems to work perfectly fine... for a few hours.  I even create a test album and set up permissions and it's all good, so I leave it alone for a bit.  Now, by the next morning I go to it and get this:

Fatal error: Function name must be a string in /Sources/Subs-MGallery.php on line 3275

After the first instance, I uninstalled it, and re-installed it.  By next day it seemed to be the exact same scenario played out, and I'm getting the error again.  I'm hoping this can be an easy fix, as I like the features in 1.5 compared to 1.0!  This looks to be a great mod!
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Selroth on October 28, 2008, 02:09:46 AM
Quote from: Nao 尚 on October 25, 2008, 05:14:58 AM
Quote from: Darknico on October 25, 2008, 05:03:33 AM
Don't work for me

Fatal error: Call to undefined function: () in /membri/zhentai/Sources/Subs-MGallery.php on line 3275
Please visit http://smf-media.com for fixes to common issues you might find. I already published the fix there ;) Just search for the word "3275" :P

Dragooon> Please release beta 1.1 with the fixes ;) I don't want to post this again and again :P

BTW, this was the only solution I found, but http://wwwsmf-media.com is giving me DNS errors.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Dragooon on October 28, 2008, 02:15:05 AM
Quote from: Selroth on October 28, 2008, 02:00:45 AM
1.5 beta 2:

Hmm...  On my SMF 1.1.6 install it seems to work perfectly fine... for a few hours.  I even create a test album and set up permissions and it's all good, so I leave it alone for a bit.  Now, by the next morning I go to it and get this:

Fatal error: Function name must be a string in /Sources/Subs-MGallery.php on line 3275

After the first instance, I uninstalled it, and re-installed it.  By next day it seemed to be the exact same scenario played out, and I'm getting the error again.  I'm hoping this can be an easy fix, as I like the features in 1.5 compared to 1.0!  This looks to be a great mod!
Thats funny, what is on line 3265-3285?

Quote from: Selroth on October 28, 2008, 02:09:46 AM
Quote from: Nao 尚 on October 25, 2008, 05:14:58 AM
Quote from: Darknico on October 25, 2008, 05:03:33 AM
Don't work for me

Fatal error: Call to undefined function: () in /membri/zhentai/Sources/Subs-MGallery.php on line 3275
Please visit http://smf-media.com for fixes to common issues you might find. I already published the fix there ;) Just search for the word "3275" :P

Dragooon> Please release beta 1.1 with the fixes ;) I don't want to post this again and again :P

BTW, this was the only solution I found, but http://wwwsmf-media.com is giving me DNS errors.
Hm it gives me DNS error as well but according to dnstools.ws it is fine.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Selroth on October 28, 2008, 04:11:07 AM
function MGal_timeformat($log_time)
{
global $user_info, $txt, $modSettings, $smcFunc;

$str = $txt['mgallery_short_date_format'];

$time = $log_time + ($user_info['time_offset'] + $modSettings['time_offset']) * 3600;

if ($log_time < 0)
$log_time = 0;

if ($modSettings['todayMod'] >= 1)
{
$nowtime = forum_time();

$then = @getdate($time);
$now = @getdate($nowtime);

if ($then['yday'] == $now['yday'] && $then['year'] == $now['year'])
return $txt['mgallery_today'];

if ($modSettings['todayMod'] == '2' && (($then['yday'] == $now['yday'] - 1 && $then['year'] == $now['year']) || ($now['yday'] == 0 && $then['year'] == $now['year'] - 1) && $then['mon'] == 12 && $then['mday'] == 31))
return $txt['mgallery_yesterday'];
}

if (setlocale(LC_TIME, $txt['lang_locale']))
>>>>>>>>>>>>>> $str = str_replace('%b', $smcFunc['ucwords'](strftime('%b', $time)), $str);
else
{
foreach (array('%b' => 'months_short', '%B' => 'months') as $token => $text_label)
if (strpos($str, $token) !== false)
$str = str_replace($token, $txt[$text_label][(int) strftime('%m', $time)], $str);
}

$i = strftime($str, $time);
if (preg_match('/(^| )0([0-9] )/', $i, $dt))
$i = str_replace($dt[0], $dt[2], $i);
if (isset($user_info['language']) && $user_info['language'] == 'french' && $i[0] == '1' && $i[1] == ' ') // Vive la France !
$i = '1er' . substr($i, 1);

return is_numeric($i[0]) ? $txt['mgallery_on_date'] . ' ' . $i : $i;
}


Line 3275 is marked with the >>'s
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Dragooon on October 28, 2008, 04:12:32 AM
You are running an old version, uninstall and install beta 2. I remember that is fixed in beta 1.1, so it is definitely fixed in beta 2.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Selroth on October 28, 2008, 04:23:22 AM
OMFG I'm a retard!!!  You're right, I was using Beta 1.  Funny cause I downloaded it just yesterday, and assumed it was the latest and greatest today.  Didn't think you were so quick to the updates!  :) 

My appologies, and thanks for the help!  I probably would have never caught that...
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: crustybum on October 28, 2008, 06:25:39 AM
Could someone tell me how i can make it a more uniformed look? i.e. the thumbnails the same size maybe? ::)

Chris
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Dragooon on October 28, 2008, 06:31:59 AM
It should be resized by javascript once loaded.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: crustybum on October 28, 2008, 06:41:49 AM
So is there something wrong? seems the same in Firefox as well.
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Dragooon on October 28, 2008, 06:46:20 AM
Can I have a link to your site?
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: crustybum on October 28, 2008, 07:15:49 AM
Sure  http://www.brummiespeedway.net/forum/index.php?action=mgallery

Just starting to re-populate..
Title: Re: SMF Media Gallery - 1.5 beta 2 released - CPG converter now available
Post by: Dragooon on October 28, 2008, 07:26:26 AM
OK this will be fixed in beta 3.
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Dragooon on October 28, 2008, 07:50:27 AM
SMG 1.5 beta 3 released, changelog on first post.
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: crustybum on October 28, 2008, 08:06:01 AM
Perfect!! ;) this just gets better and better....well done Dragoon and all associated with this mod! :)
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Nao 尚 on October 28, 2008, 08:09:32 AM
Quote from: Selroth on October 28, 2008, 04:23:22 AM
OMFG I'm a retard!!!  You're right, I was using Beta 1.  Funny cause I downloaded it just yesterday, and assumed it was the latest and greatest today.  Didn't think you were so quick to the updates!  :) 
If it were only up to me, I'd be releasing updates every other hour :P

crustybum> "all" is your word for "that one"? :P

@all (really)> Beta 3 looks to be pretty solid. Hopefully!! Because we're looking into releasing the "final" 1.5 this week anyway... I hope you all like my rewrite for the comments area O:) The only "known issue" (hadn't had time to fix it since yesterday) is that if previews are enabled (dimensions set to anything > 0), if you upload a picture that is smaller than preview size, it'll still generate a preview and a clickable link. This shall be fixed in the next release. I hope. Duh.
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: genieuk on October 28, 2008, 10:49:35 AM
Quote from: Dragooon on October 28, 2008, 07:50:27 AM
SMG 1.5 beta 3 released, changelog on first post.

I have lost count now lol, i have uninstalled completely and will install when a newer converter is out, that way by the time the new converter is out there will probably be a few more versions of the actual mod released aswell.

Mathew
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: crustybum on October 28, 2008, 11:48:51 AM
One tiny thing, i did like the origional " smf editor" for putting your description on.. ;D
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Özgür on October 28, 2008, 11:59:04 AM
Quote from: ЯocKayseri on September 11, 2008, 01:27:09 PM
Quote from: Dragooon on September 11, 2008, 11:46:13 AM
What is the URL you were trying to add?

etc: http://www.metacafe.com/watch/yt-jRYDetbwegs/metallica_enter_sandman/

http://www.dailymotion.com/video/x5tavz_grip-the-moment_shortfilms

Dailymotion work for 1.5 beta 3 thank you @Dragooon:)

but guest view my gallery. thumnails is

"Sorry you are not allowed view this file..."

http://www.rockayseri.net/rk/index.php?action=mgallery;sa=media;id=38;thumb

http://www.rockayseri.net/rk/index.php?action=mgallery
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Nao 尚 on October 28, 2008, 12:56:03 PM
@genieuk> Well that's why these are called beta... Because you expect bugs to appear. The purpose of releasing beta versions is to allow a handful of enthuastic users to try out the new version and report the issues they meet, so that none of the users have problems with the final version....... If you don't feel like doing some testin', v1.0.2 is still available on the mod page  O:)

Quote from: ЯocKayseri on October 28, 2008, 11:59:04 AM
Dailymotion work for 1.5 beta 3 thank you @Dragooon:)
Hmmm actually I'm the one who complained to Dragooon because apparently he never heard about Dailymotion before :P So I added support for Dailymotion vids, and I threw in support for DM video thumbnails as well... 8)

I want to use the opportunity to say -- anyone who's having issues with Dailymotion thumbnails, feel free to report. I only tested on 3-4 videos, but I think it's solid.
I'd also like to add more video thumbnails, but it's hard to find websites that let you import their thumbs... I worked on adding Google Video thumbnails, but they don't seem to be "linked" to the actual video IDs. I managed to add very fragile support for metacafe thumbnails in the latest beta, but I'm afraid I won't be able to add a lot more. Still, I think Youtube and DM make up for 90% of the online video market, so it's better than nothing!
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Sudhakar Arjunan on October 28, 2008, 01:46:26 PM
How to upgrade
---------------------
Uninstall old gallery
Install the new version
And you are done! There will be no data loss.

So i could not have a upgrade directly from earlier version of mgallery.
Nothing but afraid of reinstalling once.

But Sure there will not be any data loss, even though it quite hard for uninstalling and installing for every update.
If updater attached in next release will be so helpful.

And earlier i have tried to use mgconverter from smf gallery lite 2.0

But it said some error,


Quote from: asudhakar on October 25, 2008, 10:38:57 PM
While using mgconverer form in smf 2.0.4 with smf gallery 2.

Warning: filesize() [function.filesize]: stat failed for /home/itacumen/public_html/discuss/gallery//thumb_1164_17_01_08_6_17_34.png in /home/itacumen/public_html/discuss/Sources/Subs-MGallery.php on line 1768
An Error Has Occurred!

So now all my categories in gallery is not showing up.
I need a solution immediately Dragooon.

No older pics in my gallery catergory is not shown. If i upload a new picture on a gallery it shows the pic.

Using smf gallery 2 lite.
Quote from: Dragooon on October 25, 2008, 11:37:45 PM
@asudhakar, the converter will be improved and will be made compatible with SMG 1.5 as soon as I get some time. Please be patient.

Thank you :).

Could i use after upgrading the latest mgallery.
I am really interested to use it, but it not working for me . So am too  :(
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Dragooon on October 28, 2008, 01:47:50 PM
How many times do I have to say it. A new release of SMG DOES NOT means that there is a new release of its converter.
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Sudhakar Arjunan on October 28, 2008, 01:56:14 PM
Quote from: Dragooon on October 28, 2008, 01:47:50 PM
How many times do I have to say it. A new release of SMG DOES NOT means that there is a new release of its converter.

ok.
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Dragooon on October 28, 2008, 02:16:40 PM
Quote from: ЯocKayseri on October 28, 2008, 11:59:04 AM
Quote from: ЯocKayseri on September 11, 2008, 01:27:09 PM
Quote from: Dragooon on September 11, 2008, 11:46:13 AM
What is the URL you were trying to add?

etc: http://www.metacafe.com/watch/yt-jRYDetbwegs/metallica_enter_sandman/

http://www.dailymotion.com/video/x5tavz_grip-the-moment_shortfilms

Dailymotion work for 1.5 beta 3 thank you @Dragooon:)

but guest view my gallery. thumnails is

"Sorry you are not allowed view this file..."

http://www.rockayseri.net/rk/index.php?action=mgallery;sa=media;id=38;thumb

http://www.rockayseri.net/rk/index.php?action=mgallery
Did you run regenerate thumbnails by any chance after installing 1.5 b2?
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Özgür on October 28, 2008, 02:25:10 PM
Yes i did it. but no fixed. now i change denied.png to film.png problem fixed =)

I'm change try mgal_data folder (only beta 2).



@Nao

http://www.dailymotion.com/bookmarks/sixfeetunder2/video/x2lcg7_red_music (http://www.dailymotion.com/bookmarks/sixfeetunder2/video/x2lcg7_red_music) no thumnbnail

http://www.dailymotion.com/video/x2lcg7_red_music (http://www.dailymotion.com/video/x2lcg7_red_music) thumbnail ok

Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Nao 尚 on October 28, 2008, 02:32:33 PM
Quote from: ЯocKayseri on October 28, 2008, 02:25:10 PM
Yes i did it. but no fixed. now i change denied.png to film.png problem fixed =)
Wow, that's the silliest fix ever... :P
You should try to regenerate again. Dragooon had made a bug that would screw video thumbnails. You may want to copy the new mgal_data folder's contents to your actual gallery folders, too.

Quotehttp://www.dailymotion.com/bookmarks/sixfeetunder2/video/x2lcg7_red_music (http://www.dailymotion.com/bookmarks/sixfeetunder2/video/x2lcg7_red_music) no thumnbnail

http://www.dailymotion.com/video/x2lcg7_red_music (http://www.dailymotion.com/video/x2lcg7_red_music) thumbnail ok
Hmm, didn't try the second one, but the first one works fine for me... I do get the thumbnail. Are you sure you have a problem?
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Özgür on October 28, 2008, 02:53:49 PM
Quote from: Nao 尚 on October 28, 2008, 02:32:33 PM
Quote from: ЯocKayseri on October 28, 2008, 02:25:10 PM
Yes i did it. but no fixed. now i change denied.png to film.png problem fixed =)
Wow, that's the silliest fix ever... :P
You should try to regenerate again. Dragooon had made a bug that would screw video thumbnails. You may want to copy the new mgal_data folder's contents to your actual gallery folders, too.

Quotehttp://www.dailymotion.com/bookmarks/sixfeetunder2/video/x2lcg7_red_music (http://www.dailymotion.com/bookmarks/sixfeetunder2/video/x2lcg7_red_music) no thumnbnail

http://www.dailymotion.com/video/x2lcg7_red_music (http://www.dailymotion.com/video/x2lcg7_red_music) thumbnail ok
Hmm, didn't try the second one, but the first one works fine for me... I do get the thumbnail. Are you sure you have a problem?

no problem. im wrong. i again tested, work fine. thank you.

I try regenarete.


Quote from: Dragooon on October 27, 2008, 02:16:31 PM


@qubbah try this
global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;

   require_once($sourcedir . '/Subs-MGallery.php');
   loadMGal_Settings();

   if(loadlanguage('MGallery') == false)
      loadLanguage('MGallery', 'english');
     $items = getMediaItems(0, 5, 'm.id_media DESC');
echo '
<table>
   <tr>';

   foreach($items as $item)
      echo '
   <td>
   <div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">
      <a href="',$galurl,'sa=item;id=',$item['id'],'">',$item['item_title'],'</a><br />
      <a href="',$galurl,'sa=item;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';thumb" alt="" /></a><br />
      ',$txt['mgallery_views'],' : ',$item['views'],'<br />
      ',$txt['mgallery_posted_by'],' : <a href="',$scripturl,'?action=profile;u=',$item['member_id'],'">',$item['member_name'],'</a><br />
      ',$txt['mgallery_in_album'],' : <a href="',$galurl,'sa=album;id=',$item['id_album'],'">',$item['album_name'],'</a>
      ',$item['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
   </div>
   </td>';

echo '
   </tr>
</table>';


@RCC - The image opens fine to me in FF3?

Album : Work
Viewed : Work
Thumb : work
http://smf-media.com/community/index.php?topic=121.msg970#msg970

item title :
Finally : From now on we are going to raise  ',$item['item_title'],' instead of  ',$item['title'],'

poster : not work
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Nao 尚 on October 28, 2008, 05:22:13 PM
Quote from: ЯocKayseri on October 28, 2008, 02:53:49 PM
I try regenarete.
Did it fix your problem? (BTW, your problem was originally due to trying to Regenerate... Since it was buggy... The new Regenerate should revert the problem.)

As for the code... I'll try to contribute a working version:

global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;

   require_once($sourcedir . '/Subs-MGallery.php');
   loadMGal_Settings();

   if (loadlanguage('MGallery') == false)
      loadLanguage('MGallery', 'english');
     $items = getMediaItems(0, 5, 'm.id_media DESC');
echo '
<table border="0">
   <tr>';

   foreach($items as $item)
      echo '
   <td>
   <div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">
      <a href="',$galurl,'sa=item;id=',$item['id'],'">',$item['item_title'],'</a><br />
      <a href="',$galurl,'sa=item;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';thumb" alt="" /></a><br />
      ',$txt['mgallery_views'],': ',$item['views'],'<br />
      ',$txt['mgallery_posted_by'],': <a href="',$scripturl,'?action=profile;u=',$item['poster_id'],'">',$item['poster_name'],'</a><br />
      ',$txt['mgallery_in_album'],': <a href="',$galurl,'sa=album;id=',$item['id_album'],'">',$item['album_name'],'</a>
      ',$item['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
   </div>
   </td>';

echo '
   </tr>
</table>';

Should be working, like that...
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: qubbah on October 29, 2008, 12:22:12 AM
Quote from: Nao 尚 on October 28, 2008, 05:22:13 PM
Quote from: ЯocKayseri on October 28, 2008, 02:53:49 PM
I try regenarete.
Did it fix your problem? (BTW, your problem was originally due to trying to Regenerate... Since it was buggy... The new Regenerate should revert the problem.)

As for the code... I'll try to contribute a working version:

global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;

   require_once($sourcedir . '/Subs-MGallery.php');
   loadMGal_Settings();

   if (loadlanguage('MGallery') == false)
      loadLanguage('MGallery', 'english');
     $items = getMediaItems(0, 5, 'm.id_media DESC');
echo '
<table border="0">
   <tr>';

   foreach($items as $item)
      echo '
   <td>
   <div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">
      <a href="',$galurl,'sa=item;id=',$item['id'],'">',$item['item_title'],'</a><br />
      <a href="',$galurl,'sa=item;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';thumb" alt="" /></a><br />
      ',$txt['mgallery_views'],': ',$item['views'],'<br />
      ',$txt['mgallery_posted_by'],': <a href="',$scripturl,'?action=profile;u=',$item['poster_id'],'">',$item['poster_name'],'</a><br />
      ',$txt['mgallery_in_album'],': <a href="',$galurl,'sa=album;id=',$item['id_album'],'">',$item['album_name'],'</a>
      ',$item['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
   </div>
   </td>';

echo '
   </tr>
</table>';

Should be working, like that...

YesSsS... very nice and soo smooth. tq
but one things... how about the image/video title..there is no title..
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Dragooon on October 29, 2008, 12:25:28 AM
OK this time this has to work
global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;

   require_once($sourcedir . '/Subs-MGallery.php');
   loadMGal_Settings();

   if (loadlanguage('MGallery') == false)
      loadLanguage('MGallery', 'english');
     $items = getMediaItems(0, 5, 'm.id_media DESC');
echo '
<table border="0">
   <tr>';

   foreach($items as $item)
      echo '
   <td>
   <div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">
      <a href="',$galurl,'sa=item;id=',$item['id'],'">',$item['title'],'</a><br />
      <a href="',$galurl,'sa=item;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';thumb" alt="" /></a><br />
      ',$txt['mgallery_views'],': ',$item['views'],'<br />
      ',$txt['mgallery_posted_by'],': <a href="',$scripturl,'?action=profile;u=',$item['poster_id'],'">',$item['poster_name'],'</a><br />
      ',$txt['mgallery_in_album'],': <a href="',$galurl,'sa=album;id=',$item['id_album'],'">',$item['album_name'],'</a>
      ',$item['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
   </div>
   </td>';
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: qubbah on October 29, 2008, 12:42:36 AM
Quote from: Dragooon on October 29, 2008, 12:25:28 AM
OK this time this has to work
global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;

   require_once($sourcedir . '/Subs-MGallery.php');
   loadMGal_Settings();

   if (loadlanguage('MGallery') == false)
      loadLanguage('MGallery', 'english');
     $items = getMediaItems(0, 5, 'm.id_media DESC');
echo '
<table border="0">
   <tr>';

   foreach($items as $item)
      echo '
   <td>
   <div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">
      <a href="',$galurl,'sa=item;id=',$item['id'],'">',$item['title'],'</a><br />
      <a href="',$galurl,'sa=item;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';thumb" alt="" /></a><br />
      ',$txt['mgallery_views'],': ',$item['views'],'<br />
      ',$txt['mgallery_posted_by'],': <a href="',$scripturl,'?action=profile;u=',$item['poster_id'],'">',$item['poster_name'],'</a><br />
      ',$txt['mgallery_in_album'],': <a href="',$galurl,'sa=album;id=',$item['id_album'],'">',$item['album_name'],'</a>
      ',$item['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
   </div>
   </td>';


I think tehere is a problem with the table of this code..
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Dragooon on October 29, 2008, 12:46:37 AM
oops
global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;

   require_once($sourcedir . '/Subs-MGallery.php');
   loadMGal_Settings();

   if (loadlanguage('MGallery') == false)
      loadLanguage('MGallery', 'english');
     $items = getMediaItems(0, 5, 'm.id_media DESC');
echo '
<table border="0">
   <tr>';

   foreach($items as $item)
      echo '
   <td>
   <div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">
      <a href="',$galurl,'sa=item;id=',$item['id'],'">',$item['title'],'</a><br />
      <a href="',$galurl,'sa=item;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';thumb" alt="" /></a><br />
      ',$txt['mgallery_views'],': ',$item['views'],'<br />
      ',$txt['mgallery_posted_by'],': <a href="',$scripturl,'?action=profile;u=',$item['poster_id'],'">',$item['poster_name'],'</a><br />
      ',$txt['mgallery_in_album'],': <a href="',$galurl,'sa=album;id=',$item['id_album'],'">',$item['album_name'],'</a>
      ',$item['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
   </div>
   </td>';
echo '
</tr>
</table>';
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Özgür on October 29, 2008, 12:48:03 AM
@Nao problem is fixed.

Comment , report, move  with highslide. And i use to gallery in subfolder. This very nice features ;D
This mod is wonderfull. So thanks :p
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Dragooon on October 29, 2008, 12:53:08 AM
Thank you for your nice words :)
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: qubbah on October 29, 2008, 01:21:45 AM
why after log out and then login for second time the video icon has been changed from normal to image that has said - SORRY YOU ARE NOT ALLOWED TO VIEW THIS FILE. Make sure you are connected to the server.
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Dragooon on October 29, 2008, 01:24:17 AM
Did you run regenerate thumbnails and previews after installing 1.5 b2? If so run it again after installing 1.5 b3(If you haven't done that yet).
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: qubbah on October 29, 2008, 01:40:17 AM
Quote from: Dragooon on October 29, 2008, 01:24:17 AM
Did you run regenerate thumbnails and previews after installing 1.5 b2? If so run it again after installing 1.5 b3(If you haven't done that yet).

OK DONE... TQ

One more things.. How can we disable MYALBUM or USERALBUM link for regular member that we cant give them access to open own album in the smf permission. I have disable for my user to open their own album but the link to myalbum is still there.
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Dragooon on October 29, 2008, 01:44:59 AM
For MyAlbum link
Open MGallery.php, find and remove
'ua' => array(
'title' => '<img alt="" src="'.$settings['images_url'].'/mgallery/user.png" />&nbsp;'.$txt['mgallery_my_user_albums'],
'url' => $galurl.'sa=useralbums',
'active' => $context['mgallery_current'] == 'useralbums',
),


For user album on index link
Open MGallery.template.php, find
<div class="catbg item_heading"><b>',$txt['mgallery_albums'],'</b> -
<a href="'.$galurl.'sa=viewuseralbums">'.$txt['mgallery_view_user_albums'].'</a></div>

Replace with
<div class="catbg item_heading"><b>',$txt['mgallery_albums'],'</b></div>
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: qubbah on October 29, 2008, 02:06:01 AM
So Far Soo Good.

;D

How can i align commentors avatar to the top of message?
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Nao 尚 on October 29, 2008, 04:43:24 AM
Quote from: Dragooon on October 29, 2008, 01:44:59 AM
For MyAlbum link
Open MGallery.php, find and remove
'ua' => array(
'title' => '<img alt="" src="'.$settings['images_url'].'/mgallery/user.png" />&nbsp;'.$txt['mgallery_my_user_albums'],
'url' => $galurl.'sa=useralbums',
'active' => $context['mgallery_current'] == 'useralbums',
),
It's actually more logical to add 'perm' => $mgalAllowedTo('user_can_add') to the array, which is what I've just been doing...
I'm also adding more stuff that I've wanted to do for a long time, such as simply not showing the User Albums link if there are none, and same for General Albums :P Just give me a couple of hours to finish that... (I'm doing several things at the same time.)
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Dragooon on October 29, 2008, 04:53:47 AM
Good :)
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Ehemm on October 29, 2008, 07:07:26 AM
i have a problem when installing this mod.
in convert item steps, i found this error :
"The conversion has been halted, currently completed 243 of 6727. The converter will automatically resume in 2 seconds "

Duplicate entry '545' for key 1
File: E:\xampp\htdocs\Forum\mgconverter.php
Line: 345

@ line 345 i found this :

__FILE__,__LINE__);

complete syntax is :
// Insert the actual item
$mgalFunc['db_insert'](
'{db_prefix}mgallery_media',
array('id_media', 'title', 'description', 'id_file', 'id_thumb', 'views', 'keywords', 'approved', 'time_added', 'album_id', 'type', 'id_member'),
array($row['id_picture'], $row['title'], $row['description'], $id_file, $id_thumb, $row['views'], $row['keywords'], $row['approved'], $row['date'], $row['id_cat'], 'image', $row['id_member']),
__FILE__,__LINE__);


Help me pls, thanks

Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Dragooon on October 29, 2008, 08:03:08 AM
Hm, this seems to be one of the old issues. I have a new converter in testing and it hopefully works, would you like to test it? If so can you PM me?
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: genieuk on October 29, 2008, 08:04:25 AM
Quote from: Dragooon on October 29, 2008, 08:03:08 AM
Hm, this seems to be one of the old issues. I have a new converter in testing and it hopefully works, would you like to test it? If so can you PM me?

Oh, not long then by the looks of things  :D

Mathew
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Dragooon on October 29, 2008, 08:20:26 AM
Don't get too excited, it may still take some time due to SMG 1.5.
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Ehemm on October 29, 2008, 09:04:06 AM
Quote from: Dragooon on October 29, 2008, 08:03:08 AM
Hm, this seems to be one of the old issues. I have a new converter in testing and it hopefully works, would you like to test it? If so can you PM me?

check ur pm boss !

btw, i'm using SMF 1.1.6 and 1.0.2 SMF Media Gallery

:)
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: RCC_SaMiaM on October 29, 2008, 02:02:01 PM
I put this on a new server and I get the same problem with the BBC doe image not showing up.  I changed the permissions of MGalleryItem.php to 644 like I did before that fixed the prob, but it didn't work this time.

I had permission issues all over the place, and pathing issues as well.  Any particular permissions any of these files need to be (related to MGalleryItem.php)?  My gallery works fine, just can't like the images in posts again.
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Nao 尚 on October 29, 2008, 02:07:22 PM
See, Dragooon? I told you --> too many permissions kill permissions :P
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: qubbah on October 29, 2008, 10:56:32 PM
Quote from: Dragooon on October 29, 2008, 12:46:37 AM
oops
global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;

   require_once($sourcedir . '/Subs-MGallery.php');
   loadMGal_Settings();

   if (loadlanguage('MGallery') == false)
      loadLanguage('MGallery', 'english');
     $items = getMediaItems(0, 5, 'm.id_media DESC');
echo '
<table border="0">
   <tr>';

   foreach($items as $item)
      echo '
   <td>
   <div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">
      <a href="',$galurl,'sa=item;id=',$item['id'],'">',$item['title'],'</a><br />
      <a href="',$galurl,'sa=item;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';thumb" alt="" /></a><br />
      ',$txt['mgallery_views'],': ',$item['views'],'<br />
      ',$txt['mgallery_posted_by'],': <a href="',$scripturl,'?action=profile;u=',$item['poster_id'],'">',$item['poster_name'],'</a><br />
      ',$txt['mgallery_in_album'],': <a href="',$galurl,'sa=album;id=',$item['id_album'],'">',$item['album_name'],'</a>
      ',$item['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
   </div>
   </td>';
echo '
</tr>
</table>';

How can we add the number of comment?
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Selroth on October 30, 2008, 01:13:07 AM
Uninstalling SMG Beta 2, "Test Failed" on Execute Modification for ./Sources/Load.php.

SMF1.1.6.  Previously used Beta 1, uninstalled that before installing beta 2. 

Install-1.1.xml:
<file name="$sourcedir/Load.php">
<operation>
<search position="before"><![CDATA[a.filename, a.attachmentType,]]></search>
<add><![CDATA[ mem.mgal_total_items, mem.mgal_total_comments,]]></add>
</operation>
<operation>
<search position="before"><![CDATA[mem.lastLogin, mem.karmaGood,]]></search>
<add><![CDATA[ mem.mgal_total_items, mem.mgal_total_comments,]]></add>
</operation>
<operation>
<search position="before"><![CDATA['local_time' => timeformat(time() + ($profile['timeOffset'] - $user_info['time_offset']) * 3600, false),]]></search>
<add><![CDATA[
'mgallery' => array(
'total_items' => $profile['mgal_total_items'],
'total_comments' => $profile['mgal_total_comments'],
),]]></add>
</operation>
<operation>
<search position="after"><![CDATA[ if (empty($ID_MEMBER) && isset($_COOKIE[$cookiename]))]]></search>
<add><![CDATA[ // SMF Media Gallery changes
if (isset($_POST['SWFUploadCookie']))
{
$data = explode(';', $_POST['SWFUploadCookie']);
foreach ($data as $dat)
{
if (substr($dat, 1, strlen($cookiename)) == $cookiename)
$_COOKIE[$cookiename] = urldecode(substr($dat, strlen($cookiename) + 2));
elseif (substr($dat, 0, strlen($cookiename)) == $cookiename)
$_COOKIE[$cookiename] = urldecode(substr($dat, strlen($cookiename) + 1));
}
}
// End SMF Media Gallery changes

]]></add>
</operation>
</file>


Seems kinda wierd.  I don't know how uninstalls work, but I assume it takes everything between the <add> tags and removes it.  Everything it added appeared to be in that file.  It has the same owner and chmod as all the other files ("You", 777). 

Attached is my Load.php file in case you want a looksie.
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Dragooon on October 30, 2008, 02:41:44 AM
I am thinking that it conflicted with your google map mod. First uninstall that, then uninstall SMG, install Google map, then install SMG 1.5 b3.
Title: Re: SMF Media Gallery - 1.5 beta 3 released - CPG converter now available
Post by: Nao 尚 on October 30, 2008, 03:29:21 AM
Quote from: Selroth on October 30, 2008, 01:13:07 AM
Uninstalling SMG Beta 2, "Test Failed" on Execute Modification for ./Sources/Load.php.
Mods need to be uninstalled in the opposite order in which you installed them... i.e. you must uninstall the last one you installed, before you can install the last one before it, etc, etc...
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Dragooon on October 30, 2008, 03:44:51 AM
SMG 1.5 RC 1 released! Changelog in the first post.
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Selroth on October 30, 2008, 08:14:30 AM
Ah, yeah, that must be it.  I did load up a few other mods after installing beta 2.  Didn't know you had to do that (or maybe it's just good practice).  Don't suppose there's a way to remedy it so you can uninstall in any order you want?  May prevent some future headaches :)
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Dragooon on October 30, 2008, 08:21:37 AM
No, what basically happens is some mod might modify the same are some other mod does. Now when uninstalling that area doesn't remain the same and it is not able to perform the remove/replace operation leading to error or say conflict.
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Selroth on October 30, 2008, 08:37:00 AM
I'm not entirely sure what you mean.

When installing, it finds a place in the file, and appends some new code into it.

When uninstalling, wouldn't it make sense to search for the new code, and simply remove it?  Since the code was installed, it should be safe to assume the code is there and after that who cares about position - we don't need to know the location of the code anymore to remove it.

I can understand if this isn't something that mod developers can help, but are the main SMF developers aware of this?  I'd be happy to toss them a note if I'm not insane just yet.

Anyway, that's old news.  New news:

SMG 1.5 RC1, SMF 1.1.6
When going into someone's profile and using the Gallery links, it works but I get these notices:
These up top:
Notice: Undefined index: mgallery in /mounted-storage/home48a/sub003/sc33400-FTPR/draconity/Sources/MGallery-Sub.php on line 1341

Notice: Undefined index: mgallery in /mounted-storage/home48a/sub003/sc33400-FTPR/draconity/Sources/MGallery-Sub.php on line 1342

Notice: Undefined index: mgallery in /mounted-storage/home48a/sub003/sc33400-FTPR/draconity/Sources/MGallery-Sub.php on line 1343

Notice: Undefined index: mgallery in /mounted-storage/home48a/sub003/sc33400-FTPR/draconity/Sources/MGallery-Sub.php on line 1344


And this on the bottom (including some of the site's debug info if you want it):
Notice: Undefined index: b348 in /mounted-storage/home48a/sub003/sc33400-FTPR/draconity/Themes/default/languages/MGallery.english.php (main_below sub template - eval?) on line 660
Templates: 3: index (dilbermc), Profile (default), MGallery (default).
Sub templates: 6: init, main_above, profile_above, mgallery_profile_summary, profile_below, main_below.
Language files: 4: index.english (default), Modifications.english (default), Profile.english (default), MGallery.english (default).
Files included: 10 - 613KB. (show./index.php, ./Settings.php, ./Sources/QueryString.php, ./Sources/Subs.php, ./Sources/Errors.php, ./Sources/Load.php, ./Sources/Security.php, ./Sources/Profile.php, ./Sources/MGallery-Sub.php, ./Sources/Subs-MGallery.php)
Queries used: 21.
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Dragooon on October 30, 2008, 08:53:56 AM
ok I see what you mean, I'll fix those undefined indexes in SMG 1.5 RC 2.

EDIT : For a fix for profile errors
Open Profile.php
Find
'website' => array(
'title' => !isset($user_profile[$memID]['websiteTitle']) ? '' : $user_profile[$memID]['websiteTitle'],
'url' => !isset($user_profile[$memID]['websiteUrl']) ? '' : $user_profile[$memID]['websiteUrl'],
),

Add after
'mgallery' => array(
'total_items' => @$user_profile['mgal_total_items'],
'total_comments' => @$user_profile['mgal_total_comments'],
),
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: dimdom on October 30, 2008, 11:23:31 AM
Keeps getting better. :)

I use it in a Greek forum (utf-8). When i create an album, the greek characters displays well in SMF media gallery, but when i open it with my ftp client (filezilla, fluently support for Greek) instead of the albums names i see ασδ_ασασφσδφασδφα...


And related to that: I have imported albums from coppermine (in greek, utf-8 again) (no errors at all during the process, excellent work from the converter) and after the cnversion, all i see is ƒΞ΄Ο†Ξ±ΟƒΞ in all text (users name, albums names, comments etc).


I know that there must be a solution but I am not an expert to figure it out myself... ::)



Examples:



COPPERMINE THAT USED FOR CONVERSION: http://www.authorway.com/gallerysmf/index.php
SMF MEDIA GALLERY after the conversion: http://www.authorway.com/SMF/index.php?action=mgallery
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: ernest on October 30, 2008, 11:53:04 AM
i have some trouble with the mod, i currently using smf media gallery v 1.0.2 all seems fine, but it seems there are a trouble with permission, i am using Profil Moderator Managment mod and now my mod cant use the gallery, is there any solution to this matter?
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Dragooon on October 30, 2008, 11:53:56 AM
What if you remove Profile moderator management?
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: dimdom on October 30, 2008, 12:06:46 PM
And this when a user hits "unapprove"

The database value you're trying to insert does not exist: id_mem
/home/mysite/public_html/forum/Sources/Subs-MGallery.php
3343

By the way, is there a way for users NOT to be able to unapprove their pictures?

And a way for users NOT to be able to set permissions for their albums (but use only global permissions set by admin?)
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: ernest on October 30, 2008, 12:09:40 PM
i manage to fix it myself, it seems just a permission conflict.
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Dragooon on October 30, 2008, 12:18:56 PM
Quote from: dimdom on October 30, 2008, 12:06:46 PM
And this when a user hits "unapprove"

The database value you're trying to insert does not exist: id_mem
/home/mysite/public_html/forum/Sources/Subs-MGallery.php
3343

By the way, is there a way for users NOT to be able to unapprove their pictures?

And a way for users NOT to be able to set permissions for their albums (but use only global permissions set by admin?)
Find
$options = array(
'id' => $item_data['id_media'],
'approved' => $approval,
in MGallery.php
and add after
'skip_log' => true,

Just don't give them auto approve item permission if you don't want them to unapprove.
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on October 30, 2008, 12:51:15 PM
Your SMG install is empty... I can't test like that :P
I'm the guy in charge with UTF conversions. The Coppermine system is (normally) using UTF and nothing else. If your SMF install is using UTF too, then the conversion shouldn't occur at all... Maybe your database is NOT using the same encoding as your SMF..? I don't see any other reason why it should happen...

Quote from: dimdom on October 30, 2008, 12:06:46 PM
By the way, is there a way for users NOT to be able to unapprove their pictures?
It is a matter of freedom. If they can auto-approve, no reason they couldn't auto-unapprove... Imagine they'd like to hide a picture or its comments for some time. It's their upload--it's their right.

QuoteAnd a way for users NOT to be able to set permissions for their albums (but use only global permissions set by admin?)
Not for now... (And probably not ever, I guess. Go ahead, program it yourself and submit your code if you'd like.)
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: dimdom on October 30, 2008, 01:01:09 PM
QuoteYour SMG install is empty... I can't test like that :P
I'm the guy in charge with UTF conversions. The Coppermine system is (normally) using UTF and nothing else. If your SMF install is using UTF too, then the conversion shouldn't occur at all... Maybe your database is NOT using the same encoding as your SMF..? I don't see any other reason why it should happen...

Yes, I have just delete it....sorry!

Well, yes, I agree with you.. but, the encoding used in coppermine sql was wrong from the begining (latin1_swedish_ci) insted of the correct utf8_general_ci collation. But somehow, despite the fact that in coppermine sql tables data is shown like that: σφσδφασδφα...
the coppermine front end shows the greek characters corectlly...

I am trying to find a way to import this data to the new sql tables  (added by SMG) in smf database (utf8_general_ci collation) and SMG to display them correctlly like in coppermine...

I guess that it I have to change something in characters encoding in one of SMGs phps...
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on October 30, 2008, 01:15:25 PM
Quote from: dimdom on October 30, 2008, 01:01:09 PM
Well, yes, I agree with you.. but, the encoding used in coppermine sql was wrong from the begining (latin1_swedish_ci) insted of the correct utf8_general_ci collation.
It's not the character set... It's the collation, which is only used for sorting text-type fields, if I remember correctly.

QuoteI am trying to find a way to import this data to the new sql tables  (added by SMG) in smf database (utf8_general_ci collation) and SMG to display them correctlly like in coppermine...
I'm afraid I can't help much -- My own gallery is Coppermine-based, I did all of the testing, and it worked great... And I use accents (even though they're just French accents, they're still actual UTF code...)

QuoteI guess that it I have to change something in characters encoding in one of SMGs phps...
You may want to check whether $txt['lang_character_set'] and the character set global settings are set... Basically, I updated the CPG converter a couple of hours ago, following your remark, and the only thing I did was to use the default SMF settings for character sets ($context['character_set'] and $context['utf8'] as a boolean.) I don't know if it would help, using that instead...
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: dimdom on October 30, 2008, 01:20:43 PM
I will download and test it right away...
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: dimdom on October 30, 2008, 01:25:11 PM
OK, i have just import albums only.

As you can see the (my) problem is still there.

http://www.authorway.com/SMF/index.php?action=mgallery

Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on October 30, 2008, 01:27:51 PM
Quote from: dimdom on October 30, 2008, 01:25:11 PM
OK, i have just import albums only.

As you can see the (my) problem is still there.
Obviously it's still here, I never said the code was uploaded ;D

Anyway, just look for the conv_char($text) function around line 744, and replace with:

function conv_char($text)
{
global $context;
return !empty($context['utf8']) ? $text : (function_exists('iconv') ? iconv($context['character_set'], $text, 'UTF-8') : (function_exists('mb_convert_encoding') ? mb_convert_encoding($text, $context['character_set'], 'UTF-8') : utf8_decode($text)));
}
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on October 30, 2008, 01:30:16 PM
Another thing... Is your Coppermine gallery located in the same database as your SMG gallery?
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: dimdom on October 30, 2008, 01:39:00 PM
Quote from: Nao 尚 on October 30, 2008, 01:30:16 PM
Another thing... Is your Coppermine gallery located in the same database as your SMG gallery?

No it is in another database. To be able to import i had to add the user in SMF database as a second user for CPG database.



Sorry, again the same errors (after adding the code).
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on October 30, 2008, 01:42:56 PM
Try to import your CPG tables to your SMF database. If you have enough room. It might help in the conversion process... (It's probably the reason for your issue actually.)
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: dimdom on October 30, 2008, 01:46:19 PM
Ill do that and i will inform you about the results... :)
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on October 30, 2008, 04:21:25 PM
Quote from: Nao 尚 on October 30, 2008, 01:27:51 PM
Anyway, just look for the conv_char($text) function around line 744, and replace with:

function conv_char($text)
{
global $context;
return !empty($context['utf8']) ? $text : (function_exists('iconv') ? iconv($context['character_set'], $text, 'UTF-8') : (function_exists('mb_convert_encoding') ? mb_convert_encoding($text, $context['character_set'], 'UTF-8') : utf8_decode($text)));
}


I inverted parameters, sorry. I meant this:

function conv_char($text)
{
global $context;
return !empty($context['utf8']) ? $text : (function_exists('iconv') ? iconv('UTF-8', $context['character_set'], $text) : (function_exists('mb_convert_encoding') ? mb_convert_encoding($text, $context['character_set'], 'UTF-8') : utf8_decode($text)));
}


It won't change anything for you, though ;)
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Ehemm on October 30, 2008, 06:24:05 PM
finally i decided to upgrade from 1.02 to 1.5 rc.1 and works fine.
but the problem is only about the way to sorting recent items and random items which is sort with vertical way.
how to setting with column and width like 1.0.2 version ? thanks anyway
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Ehemm on October 30, 2008, 06:38:14 PM
i'm using opera, recent item and random item sort with vertical way  >:(

but when i'm using mozilla and IE, they look normal  :D

only issue about browser that you use ......  :-X

add :

case closed ... only set the skin opera to standard and fix the problem :)
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: dimdom on October 30, 2008, 06:51:30 PM
Another bug (I guess)...

In Album settings, it can not store/save the permissions in (Privacy -->MemberGroups)

...and Nao, I did add the tables in SMF, but nothing changed...)
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on October 30, 2008, 07:28:13 PM
@Ehemm> What Opera skin..?

Quote from: dimdom on October 30, 2008, 06:51:30 PM
Another bug (I guess)...

In Album settings, it can not store/save the permissions in (Privacy -->MemberGroups)
Dragooon has been working on it yesterday or today, I don't remember... Maybe he fixed that already.

Quote...and Nao, I did add the tables in SMF, but nothing changed...)
Ah, bugger... Well, I'm not sure I can help more. Did you update your script with my piece of code?
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: ernest on October 30, 2008, 10:51:56 PM
did the "Regenerate thumbnails and previews" worked in 1.5b rc1?
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: ericzad on October 30, 2008, 11:02:11 PM
Dragooon,

Cheers! Worked perfectly 1.1.6. VERY nice to have the mass upload, HUGE TIME SAVER!!!

Thanks
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on October 31, 2008, 02:34:34 AM
Quote from: ernest on October 30, 2008, 10:51:56 PM
did the "Regenerate thumbnails and previews" worked in 1.5b rc1?
Supposedly, yeah :P
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: tyhgdgh on October 31, 2008, 02:39:31 AM
There are 1 unapproved item(s), Click here to view them

how do i fix this, its like permanent!
there is nothing to even approve!
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Dragooon on October 31, 2008, 05:40:48 AM
Run Gallery -> admin > Maintenance > Recount totals.
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: crustybum on October 31, 2008, 07:10:04 AM
Weird, everything has been ok, then for some reason today the icons say sorry you are not allowed to view this file.Make sure you are connected to the server.  ??

I have the latest upgrade 1.5beta RC1
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Dragooon on October 31, 2008, 07:16:00 AM
Are you talking about album icons?
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Darknico on October 31, 2008, 07:26:44 AM
Quote from: crustybum on October 31, 2008, 07:10:04 AM
Weird, everything has been ok, then for some reason today the icons say sorry you are not allowed to view this file.Make sure you are connected to the server.  ??

I have the latest upgrade 1.5beta RC1

Regenerate thumbnails and previews and empty the cache
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: crustybum on October 31, 2008, 07:34:00 AM
Album icons, regenerated the thumbnails ,dint work, re-done them all now.

Thanks
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on October 31, 2008, 09:04:35 AM
Check out your album permissions...

Give us a direct link where we can see the issue for ourselves...
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: dimdom on October 31, 2008, 10:44:11 AM
By using the  MGallery-Admin.php from the 1.0.2 installation and replacing the one that comes with RC1, i managed to solve the albums permission problem. Now, I use the RC1 file to turn on/off the Highslide feature on each album and then i replace it with the 1.0.2 file in order to set the permissions.

If only I could find which part of the code from 102 file I need to add to the RC1 file to get rid of this stupid method of mine...
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on October 31, 2008, 01:34:48 PM
Quote from: dimdom on October 31, 2008, 10:44:11 AM
By using the  MGallery-Admin.php from the 1.0.2 installation and replacing the one that comes with RC1, i managed to solve the albums permission problem. Now, I use the RC1 file to turn on/off the Highslide feature on each album and then i replace it with the 1.0.2 file in order to set the permissions.

If only I could find which part of the code from 102 file I need to add to the RC1 file to get rid of this stupid method of mine...
Well... v1.0.2 is very far from being compatible, I'm surprised it even works at all...

Don't you have a problem with charset conversion? Why do you keep trying if you know you're not going to be able to convert until we can reproduce your problem? (Which I've given up on, for now...)

Anyway--Your other problem, I can't reproduce either... The only thing that should be specified is that if you empty the membergroup list and save, when you come back it'll say Regular members is checked, even though it actually isn't. I fixed this.

Open MGallery-Sub.php, and replace

$access = explode(',',$access);

With

$access = $access === '' ? array() : explode(',',$access);
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Özgür on October 31, 2008, 02:23:35 PM
1. I try to regenerate album icon :

"Regeneration has been halted to prevent server time outs, it will automatically resume in a second. So far, 20 of 51 items done."

And try this repeat error.

2. I try to change album permission. And submit. Always seen members. not set to other usergroup and Users.

SMG : 1.5 RC1
SMF : 2.0B4
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on October 31, 2008, 03:25:34 PM
Quote from: ЯocKayseri on October 31, 2008, 02:23:35 PM
1. I try to regenerate album icon :

"Regeneration has been halted to prevent server time outs, it will automatically resume in a second. So far, 20 of 51 items done."
If you have a crash, just reload. The server will start again from where it stopped.

Quote2. I try to change album permission. And submit. Always seen members. not set to other usergroup and Users.
"Seen members"?

Anyway...--Nope, I have no issue on my side, really. You must have a configuration issue...
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: dimdom on October 31, 2008, 04:26:19 PM
Quote from: Nao 尚 on October 31, 2008, 01:34:48 PM
Quote from: dimdom on October 31, 2008, 10:44:11 AM
By using the  MGallery-Admin.php from the 1.0.2 installation and replacing the one that comes with RC1, i managed to solve the albums permission problem. Now, I use the RC1 file to turn on/off the Highslide feature on each album and then i replace it with the 1.0.2 file in order to set the permissions.

If only I could find which part of the code from 102 file I need to add to the RC1 file to get rid of this stupid method of mine...
Well... v1.0.2 is very far from being compatible, I'm surprised it even works at all...

Don't you have a problem with charset conversion? Why do you keep trying if you know you're not going to be able to convert until we can reproduce your problem? (Which I've given up on, for now...)

Anyway--Your other problem, I can't reproduce either... The only thing that should be specified is that if you empty the membergroup list and save, when you come back it'll say Regular members is checked, even though it actually isn't. I fixed this.

Open MGallery-Sub.php, and replace

$access = explode(',',$access);

With

$access = $access === '' ? array() : explode(',',$access);


Well, the problem  with characters still excists but I never meant to leave CPG. My main interest in SMG is the support for flv videos as I was looking for a video gallery module for ages...
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on October 31, 2008, 06:46:56 PM
Which makes me think, what do you think CPG has, that SMG should (and doesn't) have? I'm interested... I left Coppermine for two reasons (I couldn't get my users to leave comments, only I was able to, and I couldn't bridge my custom theme to CPG... Had to do a mockup version in html, which was frustrating), and I really see nothing that I regret from CPG. Anything you can think of?

<888>
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nibogo on October 31, 2008, 07:05:06 PM
I can update to 1.5 RC1 overwriting the MGallery files??
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on October 31, 2008, 07:30:54 PM
No... There are also changes in the installer.
Plus, you need to run the database updater from time to time. (Well, I don't, but I do my changes directly through phpmyadmin. Being a co-dev and all that. Makes me think I forgot to change a field type in my own database, oops!)
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: dimdom on November 01, 2008, 09:20:57 AM
Quote from: Nao 尚 on October 31, 2008, 06:46:56 PM
Which makes me think, what do you think CPG has, that SMG should (and doesn't) have? I'm interested... I left Coppermine for two reasons (I couldn't get my users to leave comments, only I was able to, and I couldn't bridge my custom theme to CPG... Had to do a mockup version in html, which was frustrating), and I really see nothing that I regret from CPG. Anything you can think of?

<888>

I had no problems bridging CPG with my SMF and using it with my custom made theme. I have even placed it within the forum: see here for an example http://www.authorway.com/SMF/index.php?action=InMEDIA

Not ever faced a comments problem with CPG.

I still believe that the strong point of SMG is the support for flvs. And that is that makes SMG unique.


Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nibogo on November 01, 2008, 10:12:09 AM
Quote from: Nao 尚 on October 31, 2008, 07:30:54 PM
No... There are also changes in the installer.
Plus, you need to run the database updater from time to time. (Well, I don't, but I do my changes directly through phpmyadmin. Being a co-dev and all that. Makes me think I forgot to change a field type in my own database, oops!)

Thanks for the info , but I think of is better if the uninstallation dont remove the mgallery directory , because we can lose all the files when we try to update to a new version
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Dragooon on November 01, 2008, 10:13:46 AM
no it doesn't :).
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: genieuk on November 01, 2008, 10:16:42 AM
I know, I know,

but any update yet about when the new converter will be done ???

Thank you,
Mathew
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nibogo on November 01, 2008, 11:21:37 AM
Quote from: Dragooon on November 01, 2008, 10:13:46 AM
no it doesn't :).

Its true excuse me :p

Installed Media Gallery RC1 Thanks
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on November 01, 2008, 01:34:44 PM
Quote from: dimdom on November 01, 2008, 09:20:57 AM
I had no problems bridging CPG with my SMF and using it with my custom made theme. I have even placed it within the forum: see here for an example http://www.authorway.com/SMF/index.php?action=InMEDIA
I see an empty page there...
And how did you integrate your custom template? CPG is using a HTML template and doesn't support integrating external php calls... (At least that's what it did a couple of years ago.)

@Nibogo> It never will. It would be crazy of us to do that...! It even became hell for me when I decided to change the default generic icons to larger and better-looking ones. It took me some time to find out how to seamlessly copy those new files into your own mgal_data directory (which you may, or may not, have renamed to something else). So, basically, the only thing from v1.0.x that you lose when updating to v1.5, are those 4 ugly 16x16 icons that used to show up for audio & video files ;)

@genieuk> Which converter? AFAIK, both converters are in a current state of cryogenic stasis. They both seem to be working well.
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: dimdom on November 01, 2008, 02:27:15 PM
QuoteI see an empty page there...
And how did you integrate your custom template? CPG is using a HTML template and doesn't support integrating external php calls... (At least that's what it did a couple of years ago.)

It isnt empty.

You have to wait for a while since it is iframed in a custom action...
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on November 01, 2008, 03:39:24 PM
You have a problem with your javascript code... The iframe is not loading at all on my Opera.
I simpled used the iframe url and got to access your gallery. Basically, what you're saying is -- Coppermine sucks so much that you're force to use the all-too dreaded iframes to get something that can be integrated with your template.
Is user account info correctly transmitted to the end script, btw?
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: dimdom on November 02, 2008, 04:07:09 AM
Yes, everything is working fine.

As for Opera, what can I say? I dont care a lot since all of my scripts work excellent on Firefox, IE7,Safari and Chrome. Most of the users use IE& and Firefox now...
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on November 02, 2008, 09:03:32 AM
Yeah, but it's not because your users have bad taste (especially for IE, lol) that you can't support the best browser out there... O:)
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: dimdom on November 02, 2008, 11:06:41 AM
Quote from: Nao 尚 on November 02, 2008, 09:03:32 AM
Yeah, but it's not because your users have bad taste (especially for IE, lol) that you can't support the best browser out there... O:)

I disagree. Best browser ever, is Firefox. Worst is IE (in all editions). Third party small browsers like Opera have a huge impact in the world of mobile devices but not in the real world of PC internet.

By the way, I still cant find what is wrong with the album permissions in SMG in RC1. Cant be saved at all. Tested in two different domains, in two different SMF forums...
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on November 02, 2008, 11:44:44 AM
Quote from: dimdom on November 02, 2008, 11:06:41 AM
I disagree. Best browser ever, is Firefox. Worst is IE (in all editions). Third party small browsers like Opera have a huge impact in the world of mobile devices but not in the real world of PC internet.

<fan mode>

Opera has a huge impact on serious web users who always have 100+ tabs open... It's the only browser that will deal with this situation without any signs of trouble, and making it very easy to switch from a tab to another... (Other people require to *scroll* through a list for hours... Ah!)

Opera is the innovator between many things that people consider were invented by Firefox. Well, try again...
Opera has better standards support than even Firefox does. And when Firefox announces with great noise that they just implemented a new CSS feature, well, Opera had it before.

Can you find me, let's say, three features that Firefox has, and Opera doesn't?

</fan mode>

QuoteBy the way, I still cant find what is wrong with the album permissions in SMG in RC1. Cant be saved at all. Tested in two different domains, in two different SMF forums...
Can't be saved, what?
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Burke ♞ Knight on November 02, 2008, 11:47:29 AM
QuoteCan you find me, let's say, three features that Firefox has, and Opera doesn't?

Separators in bookmarks.

That's one reason I don't like Opera.
Other than that, don't have a problem with it, myself. :)
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: dimdom on November 02, 2008, 11:53:26 AM
QuoteCan't be saved, what?

When setting permissions in albums, no matter what you check/enter/choose, they go back to an unchecked state...

Well, beeing an admin, has tought me to spend time trying to fix common problems for common browsers, like Firefox and IE. If someone wants to use Opera or anything else, then its his choice not to be able to see stuff. Not mine. :)
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on November 02, 2008, 02:12:50 PM
Quote from: BurkeKnight on November 02, 2008, 11:47:29 AM
QuoteCan you find me, let's say, three features that Firefox has, and Opera doesn't?

Separators in bookmarks.
Oh... You mean these?  ;D

Ctrl+Alt+B (open bookmarks), then select where you'd like to add a separator, right-click and select "Add a separator"... ;)

You're welcome.

QuoteThat's one reason I don't like Opera.
Well I can understand that you wouldn't like Opera if it didn't have a feature you like. Nevertheless, it has it, so you'll have to find something else ;)
Same here: I don't like Firefox mainly because of the fact that I can't make all 100+ tabs fit on my tab bar without adding a scrollbar or a multi-line control. If you find something that does add this ability, I'll make sure to review it seriously.
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on November 02, 2008, 02:14:27 PM
Quote from: dimdom on November 02, 2008, 11:53:26 AM
QuoteCan't be saved, what?

When setting permissions in albums, no matter what you check/enter/choose, they go back to an unchecked state...
You mean membergroups?
Dragooon told me he had fixed this before RC1 so I removed it from my to-do-list... (Never had a problem on my side anyway so I would have had trouble fixing it...)

The thing with Opera is -- when it comes with it, it works with everything else, because it's very strict in terms of standards. So you'd better program your sites for Opera--you'll be sure they'll be standard, at least! :P
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Burke ♞ Knight on November 02, 2008, 02:19:21 PM
Main problem with IE, is Microsoft seems to think they can change the standard on their own...
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Technoman on November 02, 2008, 04:52:18 PM
 Configuration ( in admin )

Gallery Configuration ---> once i click on it

Fatal error: require_once() [function.require]: Failed opening required 'C:\wamp\www/Sources/Gallery.php' (include_path='.;c:\php\includes') in C:\wamp\www\Sources\Admin.php on line 585

---------------

Admin can see the gallery but nobody else can ? :)
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Burke ♞ Knight on November 02, 2008, 04:53:49 PM
Quote from: Technoman on November 02, 2008, 04:52:18 PM
Configuration ( in admin )
Gallery Configuration ---> once i click on it
Fatal error: require_once() [function.require]: Failed opening required 'C:\wamp\www/Sources/Gallery.php' (include_path='.;c:\php\includes') in C:\wamp\www\Sources\Admin.php on line 585
---------------
Also on Board Admin can see the gallery but nobody else can ?


1. Maybe because of running Media Gallery SMF Gallery? Maybe a conflict?

2. Are permissions set for everyone else to see the gallery?
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Technoman on November 02, 2008, 04:56:03 PM
1 media gallery is Only Installed with out the other galleries
2. all permmissions on all users are set to view media gallery
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: ernest on November 02, 2008, 06:34:53 PM
Quote from: Nao 尚 on November 02, 2008, 02:14:27 PM
You mean membergroups?
Dragooon told me he had fixed this before RC1 so I removed it from my to-do-list... (Never had a problem on my side anyway so I would have had trouble fixing it...)

The thing with Opera is -- when it comes with it, it works with everything else, because it's very strict in terms of standards. So you'd better program your sites for Opera--you'll be sure they'll be standard, at least! :P

got the same issue with the permission for rc1 here nao  :'(
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on November 02, 2008, 06:57:17 PM
Quote from: Technoman on November 02, 2008, 04:56:03 PM
1 media gallery is Only Installed with out the other galleries
Then why is your file called Gallery.php, and not MGallery.php?

@ernest> And you didn't have the problem in previous betas?

I'm starting to wonder... Aren't you all simply complaining about problematic permissions when actually the latest RC *fixed* some permissions that were too...permissive?

Just check your General Permissions, membergroup by membergroup... I dunno...
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: haderaschta on November 02, 2008, 07:37:35 PM
Quote from: dimdom on November 02, 2008, 11:53:26 AM
When setting permissions in albums, no matter what you check/enter/choose, they go back to an unchecked state...

same for me. but worser. it reverse to regular membergroups - and that hidden albums should not be seen by them!! this error was not there before rc1.
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: perpetuallove on November 02, 2008, 08:01:42 PM
I have read thru these pages but am still not able to figure something out. lol. I can not see any "icon" or anything that should let me comment the items in the gallery, what do i gotta do for it to show? I do have my settings to let people comment, and I am the admin so shouldn't I be able to do whatever?

It seems like the gallery is working perfectly other then the comments. Is there something I need to edit in my theme possibly? I am using the blue version of the default :)

Thanks!
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on November 03, 2008, 01:55:35 AM
You've installed an old version. If you're having problems with the old version, please try out the new one (1.5 RC1, although RC2 will get released sometime today if you can wait, with more new features).

PS: make sure you enable the general permissions...
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on November 03, 2008, 02:48:19 AM
Hey everyone, I have some good and bad news... ;)

The bad news is that I've finally got to install a copy of SMF 1.1.6 in a sub-folder and installed SMG in it. As a result, I've been able to reproduce the \' bug and the unsaved permission bug. No thanks to Dragooon for telling me it was fixed in RC1! ::)

The good news is that since I've been able to reproduce them... I won't rest until I fix them :P
And it should be much easier to fix, now. Since I have ftp and sql access to the website :)
I'll keep you posted!
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on November 03, 2008, 03:18:23 AM
Fixing permissions not saving in General Albums (SMG 1.5 RC 1)

Open MGallery-Sub.php, go to line 826.

Replace
foreach ($_POST['groups'] as $group)

With
foreach ($_POST['groups'] as $id => $group)
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Celdric on November 03, 2008, 04:49:31 AM
Some troubles. After updating to RC 1 no gallery button and script can't open Gallery.php, when I click the "gallery" link in forum admin. However, in source folder there is MGallery.php. So perhaps it's looking for the wrong file?

I have also installation problems. Seems a couple of files aren't modificated. No MGallery code is to find in these files.

None of these problems occured in the earlier betas, btw.


Update: missing file modifications were caused by permission issues. Though I couldn't find what particular file was lack of permissions. However, updating worked fine, when I assigned 777 to all forum files.

As for the "gallery.php" error. Well, because the correct code modifactions were not made, the script tried to execute this line in index. php
'gallery' => array('Gallery.php', 'GalleryMain'),

I'm not sure, but I think it's a remain from the SMF Gallery lite that I had installed and de-installed a longer time ago. If yes, then I'm probably not the only one who has this remain in forum/index.php.

So all in all the issues which I reported here are actually NOT caused by RC 1. 
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on November 03, 2008, 05:50:40 AM
Fixing backslashes (\) appearing in titles and descriptions (SMF 1.x + Any version of SMG)

Open Subs-MGallery.php, and replace
if ($context['is_smf2'])
foreach ($smcFunc as $k => $v)
{
if (substr($k,0,2) !== 'db')
$mgalFunc[$k] = $smcFunc[$k];
}
else
foreach ($func as $k => $v)
$mgalFunc[$k] = $func[$k];


With
if ($context['is_smf2'])
foreach ($smcFunc as $k => $v)
{
if (substr($k,0,2) !== 'db')
$mgalFunc[$k] = $smcFunc[$k];
}
else
{
$_POST = stripslashes__recursive($_POST);
$_GET = stripslashes__recursive($_GET);
$_REQUEST = stripslashes__recursive($_REQUEST);

foreach ($func as $k => $v)
$mgalFunc[$k] = $func[$k];
}
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on November 03, 2008, 05:52:40 AM
Quote from: Celdric on November 03, 2008, 04:49:31 AM
'gallery' => array('Gallery.php', 'GalleryMain'),

I'm not sure, but I think it's a remain from the SMF Gallery lite that I had installed and de-installed a longer time ago. If yes, then I'm probably not the only one who has this remain in forum/index.php.

So all in all the issues which I reported here are actually NOT caused by RC 1.
Well, this is not exactly our fault if SMF Gallery Lite doesn't uninstall correctly... Maybe you should ask over there instead? I don't have any power over their uninstall process.
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Celdric on November 03, 2008, 06:28:14 AM
I didn't say it's your fault. Sorry, if I sounded so. :) It was rather my fault that I automatically thought on a filename typho.

Btw, a few posts above Technoman is reporting the same issues which I had.
Perhaps my hint is a help to solve them. 

Anyway, MGallery is a great modification, if not one of the best. That's what I think. :)


Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: haderaschta on November 03, 2008, 10:12:57 AM
Quote from: Nao 尚 on November 03, 2008, 03:18:23 AM
Fixing permissions not saving in General Albums (SMG 1.5 RC 1)

Open MGallery-Sub.php, go to line 826.

Replace
foreach ($_POST['groups'] as $group)

With
foreach ($_POST['groups'] as $id => $group)

thank you very much. that really worked. oh man you're really fast! :D
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on November 03, 2008, 10:44:41 AM
I was slow to catch the fact that this fix wasn't in RC1 but in a later version ;)
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Burke ♞ Knight on November 03, 2008, 10:46:37 AM
Quote from: Nao 尚 on November 03, 2008, 10:44:41 AM
I was slow to catch the fact that this fix wasn't in RC1 but in a later version ;)

Meh... We all have our off days.... ;)
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Dragooon on November 03, 2008, 10:53:28 AM
If anyone's wondering about the new SGL -> SMG converter, I just want to say that it is expected to be released tomorrow along with RC 2.
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: genieuk on November 03, 2008, 12:05:33 PM
Quote from: Dragooon on November 03, 2008, 10:53:28 AM
If anyone's wondering about the new SGL -> SMG converter, I just want to say that it is expected to be released tomorrow along with RC 2.

OMG, will this be the one i am waiting for  ???

Mathew

YIPPY! if it is  :D
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Özgür on November 03, 2008, 12:11:05 PM
Quote from: haderaschta on November 03, 2008, 10:12:57 AM
Quote from: Nao 尚 on November 03, 2008, 03:18:23 AM
Fixing permissions not saving in General Albums (SMG 1.5 RC 1)

Open MGallery-Sub.php, go to line 826.

Replace
foreach ($_POST['groups'] as $group)

With
foreach ($_POST['groups'] as $id => $group)

thank you very much. that really worked. oh man you're really fast! :D

I say this error is http://www.simplemachines.org/community/index.php?topic=260821.msg1776695#msg1776695. but my english is very bad =)

Thanks for the fix.
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on November 03, 2008, 02:22:45 PM
Quote from: ЯocKayseri on November 03, 2008, 12:11:05 PM
I say this error is http://www.simplemachines.org/community/index.php?topic=260821.msg1776695#msg1776695. but my english is very bad =)
That was after I fixed the thing, but before I realized it was fixed after RC1 ;)
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: dannys on November 03, 2008, 04:33:48 PM
hi! i just instal this mod and when i try to upload some files like png and jpeg give me error "The file has a invalid extension"
my smf SMF Media Gallery 1.5 RC 1 © SMF-Media.com
PHP Version: 4.4.7 Installed on: Σήμερα στις 09:32:51 μμ
SMF Version: SMF 1.1.6 FFMPEG: No
GD2: Yes (bundled (2.0.28 compatible)) ImageMagick: No
IMagick: No MagickWand: No
Version: 1.5 RC 1

my mods  TinyPortal
Googlebot & Spiders Mod
SMF Media Gallery nneonneo's AJAX ShoutBox  Auto Embed Video/Audio Clips
Easy Edit Meta Data  Highslide Image Viewer  RateThatTopic  Custom Tab

what must i do?
thanx for mod and your time :)
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: ernest on November 03, 2008, 06:10:52 PM
Quote from: Nao 尚 on November 03, 2008, 03:18:23 AM
Fixing permissions not saving in General Albums (SMG 1.5 RC 1)

Open MGallery-Sub.php, go to line 826.

Replace
foreach ($_POST['groups'] as $group)

With
foreach ($_POST['groups'] as $id => $group)

tq very much nao it fix my problem with the permission :D

Quote from: crustybum on October 31, 2008, 07:10:04 AM
Weird, everything has been ok, then for some reason today the icons say sorry you are not allowed to view this file.Make sure you are connected to the server.  ??

I have the latest upgrade 1.5beta RC1
got the issue too, but cleaning your browser cache fix the trouble  ;)
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on November 03, 2008, 06:55:07 PM
Quote from: dannys on November 03, 2008, 04:33:48 PM
hi! i just instal this mod and when i try to upload some files like png and jpeg give me error "The file has a invalid extension"
This is usually because the filename is empty after the upload. This can be due to a number of reasons.
Your best bet would be to use the other upload method (single, or, mass upload).
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: dannys on November 04, 2008, 03:13:12 AM
i try with Mass Upload  and  Add an item to this album and give me the same error "- The file has a invalid extension"
i try with php 5.2 the same error again! :(
thanx for quick answare :)
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Dragooon on November 04, 2008, 03:58:27 AM
what is the file's name and size?
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: pulkit on November 04, 2008, 04:30:27 AM
Errors Ahoy !!

I have SMF Gallery Lite installed before this and used the converter to convert it to SMF Media Gallery ... Now I have the SMF Media Gallery installed fine but I can't seem to upload anything ... I keep getting the error :
"There was a error in uploading, please try again or contact the administrator. "


This is the SMF Media Gallery related error that I picked up from Error Log :

2: file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/home/revlger4/public_html/forum/mgal_data/generic_images/camera.png) is not within the allowed path(s): (/home/revlimit/:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp)
File: /home/revlimit/public_html/forum/Packages/temp/db_mgallery.php
Line: 678

The converter also got stuck at step 6 and produced a lot of errors before that ... Do you want me to attach the screen shot and the error messages ?
Also, is this a problem with the files or with the database ?
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Dragooon on November 04, 2008, 04:47:04 AM
I think you should first wait for the new converter and RC 2 to be released, then try to convert.

Thanks :)
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: yermaninja on November 04, 2008, 09:14:21 AM
i'm missing the "camera_mass.png". is it just me? I downloaded the package and looked in the themes images folder and it's not there either.
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on November 04, 2008, 09:15:53 AM
Quote from: yermaninja on November 04, 2008, 09:14:21 AM
i'm missing the "camera_mass.png". is it just me? I downloaded the package and looked in the themes images folder and it's not there either.
I forgot to include it in the file list last week, but then I immediately uploaded it on smf-media... Wait for RC2 or go there to download the file ;)
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: yermaninja on November 04, 2008, 09:57:14 AM
Quote from: Nao 尚 on November 04, 2008, 09:15:53 AM
I forgot to include it in the file list last week, but then I immediately uploaded it on smf-media... Wait for RC2 or go there to download the file ;)
i went to smf-media and can't find RC2.

Also, are there any permissions I need to set on my album directories? Direct linking or linking with BB Codes to the photos gives me an internal server error. I tried it with the "mgalleryGetObject.php" and I'm still getting an Internal Server Error.
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: mforum on November 04, 2008, 10:16:29 AM
Quote from: yermaninja on November 04, 2008, 09:14:21 AM
i'm missing the "camera_mass.png". is it just me? I downloaded the package and looked in the themes images folder and it's not there either.

rc 2 is not public yet
i attached the missing icon
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: Nao 尚 on November 04, 2008, 10:42:27 AM
Quote from: yermaninja on November 04, 2008, 09:57:14 AM
i went to smf-media and can't find RC2.
I was talking about the icon, not RC2...

Anyway, RC2 is due for release in a few minutes... Whenever Dragooon wants to release it... It's the biggest update since the release of Beta 1, so maybe he's afraid :P

QuoteAlso, are there any permissions I need to set on my album directories? Direct linking or linking with BB Codes to the photos gives me an internal server error. I tried it with the "mgalleryGetObject.php" and I'm still getting an Internal Server Error.
Server error eh? There are so many possible reasons for these... Shared Hosting environment?
Title: Re: SMF Media Gallery - 1.5 beta RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 04, 2008, 10:43:40 AM
I already did it, no one reads the freeking topic title?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 04, 2008, 10:51:09 AM
Well that must have been seconds before I replied, because I saw "RC 1" when I click on the link to the latest message ;)
I'm watching for the number change but not as eagerly as other users -- I know what's in the file, doesn't make me wanna run to grab it ;D
Title: Re: SMF Media Gallery - 1.5 beta RC 1 released - CPG converter now available
Post by: yermaninja on November 04, 2008, 10:57:49 AM
Quote from: Nao 尚 on November 04, 2008, 10:42:27 AM
Server error eh? There are so many possible reasons for these... Shared Hosting environment?
yeah, shared hosting environment.

how would i post pics to the forum? bbcodes aren't working.

do I have to turn on hotlinking? it's currently off.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: akn1912 on November 04, 2008, 11:56:45 AM
Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation 'ifnull'
File: /home/ikikncom/domains/ikikuzen.com/public_html/forum/Sources/Subs-MGallery.php
Line: 2821

what i must do??
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 04, 2008, 12:10:21 PM
You must make sure that all the mgallery table cooilations is utf8_general_ci.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Smitten on November 04, 2008, 01:00:32 PM
anyone have the Mgallery.spanish.php? I need it, thank you!
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: genieuk on November 04, 2008, 01:32:59 PM
Hi,

It works! i love it. Well problem.

when i create a general album, even thou i set it to everyone can view apart from guests, yes i am logged in as admin aswell and yes i have set permissions in admin. After creating it and going to index.php?action=mgallery, where the icon goes i got an image saying: Sorry you are not allowed to view this file. Make sure you are connected to the server.

please see attached image. Why is this ??? What does it mean ???

I find it confusing as i can still click on the album and view it etc same for all members that have permission to view it

Thank you,
Mathew
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Özgür on November 04, 2008, 02:22:24 PM
how i can show "top 10 popular (by viewed) items" on boardindex.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 04, 2008, 03:56:43 PM
Rokayseri> It's been on my to-do-list for a few days...

Quote from: genieuk on November 04, 2008, 01:32:59 PM
when i create a general album, even thou i set it to everyone can view apart from guests, yes i am logged in as admin aswell and yes i have set permissions in admin. After creating it and going to index.php?action=mgallery, where the icon goes i got an image saying: Sorry you are not allowed to view this file. Make sure you are connected to the server.
I'd never have thought I'd see my own pic that much on so many servers :P I swear I didn't do it for that! It only serves to clearly show there's a problem, while in versions pre-1.5, you'd just have seen an empty space.

Dragooon, what do you think....?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: genieuk on November 04, 2008, 03:59:13 PM
mmm, so can you tell me please what the problem is  ???

am i misunderstanding something here.

My website, my hosts servers etc are all running perfectly fine.

Thank you,
Mathew
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: dannys on November 04, 2008, 04:29:10 PM
Quote from: Dragooon on November 04, 2008, 03:58:27 AM
what is the file's name and size?

cathbard-tartaros.png
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsidux.gr%2FImages%2FUntitled.png&hash=13147b50f1f0e6012e4d36e13320874e30503709)
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: ernest on November 04, 2008, 04:48:30 PM
Quote from: genieuk on November 04, 2008, 03:59:13 PM
mmm, so can you tell me please what the problem is  ???

am i misunderstanding something here.

My website, my hosts servers etc are all running perfectly fine.

Thank you,
Mathew

got the same trouble before, have you try to clean your browser cache then see the image again after doin it?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: genieuk on November 04, 2008, 04:57:11 PM
Hi,

I have done that several times, i have not tried to change image as i want to know before i try why this image is showing in the first place  ???

Is this default image or something used until you add your own, cant see how it would be as the option is to have or not have an image to show

Mathew
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Chamaeleon on November 04, 2008, 05:20:45 PM
Thanks for great Gallery  :)

But i have a problem with the Internet Explorer (no Thumbnails)

Firefox:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg98.imageshack.us%2Fimg98%2F248%2Fffscreenye9.th.gif&hash=a9912efc1938dc36414d1f3c211c997cb507ae9a) (http://img98.imageshack.us/my.php?image=ffscreenye9.gif)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg98.imageshack.us%2Fimages%2Fthpix.gif&hash=64067f5ae38ba5af65ac70e8e985b6decc2000bf) (http://g.imageshack.us/thpix.php)

Internet Explorer:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg355.imageshack.us%2Fimg355%2F3610%2Fiescreenbi0.th.gif&hash=133d3338e6223cdc1ef443e7c4c37a1e5f78ab1e) (http://img355.imageshack.us/my.php?image=iescreenbi0.gif)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg355.imageshack.us%2Fimages%2Fthpix.gif&hash=2ddbf2f45af80a4cd2a04ac3d288a40b16903d3b) (http://g.imageshack.us/thpix.php)

My Gallery  (http://www.chamaeleon-design.de/forum/index.php?action=mgallery)
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: RustyBarnacle on November 04, 2008, 05:26:42 PM
Hello,

I am getting this error when using the block code on page 29:

The database value you're trying to insert does not exist: sort

I have tried the fix that is on page 31 but the code is already there.  I am using 1.5 RC2

Is there another fix on another page that I missed?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Technoman on November 04, 2008, 05:31:46 PM
error on page only when going to check what is the album and this is the error i get when you go here

http://www.postmeon.com/index.php?action=mgallery;sa=item;id=2


tell me what to do please .............


also where are the top 10 posts showing cause i dont see it at all
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: joephantasm on November 04, 2008, 05:36:31 PM
Hi Dragooon i am getting the same error as akn1912 

Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation 'ifnull'
File: /home/2/e/3/13655/13655/public_html/forum/Sources/Subs-MGallery.php
Line: 2821

my question is how do you make mgallery table cooilations is utf8_general_ci ? change to utf8 or change the sql tables and modify them ?and if so what is the best way to change it with out messing up the DB..

Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Manu.G on November 04, 2008, 07:18:03 PM
We installed successful RC2, and I wanted to convert our SMF Gallery to SMF Media Gallery. In our testforum it worked perfect, without any errors.
After the test was successful, I tried it in the main forum too, but all what I got to see when I started the mgconverter_sgl.php was a white page.
Nothing else was to see, only a white page.
Can some one help me please to convert the SMF Gallery ot SMF Media Gallery?  :'(
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Technoman on November 04, 2008, 07:29:01 PM
once we view gallery in Internet Explorer it gives error message but not Firefox ..also Tags should show up on top of the gallery with the rest of the tags they dont show up on top they show up only in the users post and not outside the post and also the top 10 posters dont show eathier ?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: perpetuallove on November 04, 2008, 11:09:41 PM
I installed the new one. I thought it was working fine except I was wondering if there is a way to have the images show in a line horizontally first - mine are showing vertically. (see attachment). I did not see settings for this :)

But then I saw everyone is having problems in IE so i tried IE- and I see that there are
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 05, 2008, 04:41:27 AM
Quote from: Technoman on November 04, 2008, 07:29:01 PM
once we view gallery in Internet Explorer it gives error message but not Firefox ..also Tags should show up on top of the gallery with the rest of the tags they dont show up on top they show up only in the users post and not outside the post and also the top 10 posters dont show eathier ?
Huh? What errors? What tags? What top 10 posters?

Quote from: perpetuallove on November 04, 2008, 11:09:41 PM
I installed the new one. I thought it was working fine except I was wondering if there is a way to have the images show in a line horizontally first - mine are showing vertically. (see attachment). I did not see settings for this :)

But then I saw everyone is having problems in IE so i tried IE- and I see that there are
  • images and blank areas where I guess images should be, but they dont show in firefox. Why is this? Is there something I can do to fix it? Niether problems are a big deal as it all seems to be working fine, just isn't as attractive as it could be :)

    Thanks for all the hard work put into this gallery!
Link?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: genieuk on November 05, 2008, 05:47:35 AM
Quote from: genieuk on November 04, 2008, 01:32:59 PM
Hi,

It works! i love it. Well problem.

when i create a general album, even thou i set it to everyone can view apart from guests, yes i am logged in as admin aswell and yes i have set permissions in admin. After creating it and going to index.php?action=mgallery, where the icon goes i got an image saying: Sorry you are not allowed to view this file. Make sure you are connected to the server.

please see attached image. Why is this ??? What does it mean ???

I find it confusing as i can still click on the album and view it etc same for all members that have permission to view it

Thank you,
Mathew

Will you please answer my question  ???

Thank you,
Mathew
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: crustybum on November 05, 2008, 05:51:15 AM
I get the same with every upgrade....you simply have to refreshh your browser after deleting your cookies, then click on "home" in admin..
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 05, 2008, 06:00:07 AM
Quote from: genieuk on November 05, 2008, 05:47:35 AM
Quote from: genieuk on November 04, 2008, 01:32:59 PM
Hi,

It works! i love it. Well problem.

when i create a general album, even thou i set it to everyone can view apart from guests, yes i am logged in as admin aswell and yes i have set permissions in admin. After creating it and going to index.php?action=mgallery, where the icon goes i got an image saying: Sorry you are not allowed to view this file. Make sure you are connected to the server.

please see attached image. Why is this ??? What does it mean ???

I find it confusing as i can still click on the album and view it etc same for all members that have permission to view it

Thank you,
Mathew

Will you please answer my question  ???

Thank you,
Mathew
Well. Is that album supposed to have an icon?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: genieuk on November 05, 2008, 06:29:54 AM
Hi Thanks for your quick reply.

No I have not yet set the 2 albums an icon because i wanted to wait to see why I get that image on 2 albums i created, it sounds serious and thought i would ask first.

All my albums imported from smf gallery did not have that image showing only the two newly ones i created in admin.

Mathew
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: joephantasm on November 05, 2008, 09:06:58 AM
QuoteHi Dragooon i am getting the same error as akn1912 

Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation 'ifnull'
File: /home/2/e/3/13655/13655/public_html/forum/Sources/Subs-MGallery.php
Line: 2821

my question is how do you make mgallery table cooilations is utf8_general_ci ? change to utf8 or change the sql tables and modify them ?and if so what is the best way to change it with out messing up the DB..
please can you help me with this Dragooon.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 05, 2008, 09:21:21 AM
Quote from: joephantasm on November 05, 2008, 09:06:58 AM
QuoteHi Dragooon i am getting the same error as akn1912 

Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation 'ifnull'
File: /home/2/e/3/13655/13655/public_html/forum/Sources/Subs-MGallery.php
Line: 2821

my question is how do you make mgallery table cooilations is utf8_general_ci ? change to utf8 or change the sql tables and modify them ?and if so what is the best way to change it with out messing up the DB..
please can you help me with this Dragooon.
You can google that, putting simply, you can do that from phpmyadmin.

Quote from: genieuk on November 05, 2008, 06:29:54 AM
Hi Thanks for your quick reply.

No I have not yet set the 2 albums an icon because i wanted to wait to see why I get that image on 2 albums i created, it sounds serious and thought i would ask first.

All my albums imported from smf gallery did not have that image showing only the two newly ones i created in admin.

Mathew
Do you have a file named {mgal_data_dir_path}/generic_images/folder.png?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: genieuk on November 05, 2008, 09:29:10 AM
Hi yes i do it a folder image.

/mgal_data/generic_images/folder.png

Mathew
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 05, 2008, 09:31:43 AM
Can you paste the row entry from mgallery_files table where id_file is 4.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: genieuk on November 05, 2008, 09:38:19 AM
Quote from: Dragooon on November 05, 2008, 09:31:43 AM
Can you paste the row entry from mgallery_files table where id_file is 4.

mmm, sorry i am clueless to what you mean?

Thank you,
Mathew
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 05, 2008, 09:44:07 AM
Run this query in phpmyadmin and tell me what it outputs
SELECT * FROM smf_mgallery_files WHERE id_file = 4
Make sure to replace smf_ with your prefix.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: genieuk on November 05, 2008, 09:47:31 AM
Hi,

It came back saying:

MySQL returned an empty result set (i.e. zero rows). (Query took 0.0002 sec)

-------------------

     SQL query:        SELECT  *
FROM flf_mgallery_files
WHERE id_file =4
LIMIT 0 , 30   

Please see image attached.

Thank you,
Mathew
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 05, 2008, 09:52:01 AM
o_O

Run this query
INSERT INTO smf_mgallery_files
(id_file, filename, filesize, directory, width, height, id_album)
VALUES
(4, 'folder.png', 2799, 'generic_images', 48, 48, 0)
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: genieuk on November 05, 2008, 10:00:07 AM
mmm,

see image for result.

Can you please tell me what we doing as i am completely clueless to what we are doing apart from entering a vital part of SMF the database that could go bonkers if something goes wrong. Yes i have backed up.

I notice that the two folders are now showing, so what caused all this? and what did message mean  ???

Thank you,
Mathew
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 05, 2008, 10:12:09 AM
Basically the albums have a default icon of the id 4. In your case, it was missing from the DB, the last query added it. Now it should be all fine.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: genieuk on November 05, 2008, 10:19:34 AM
Hi,

Thanks for all your help  :D

May i ask which audio files are supported when uploading audio and video files  ???

Reason why i just tried to upload a mp3 file which is under the size limit so it should have uploaded at all i get is:

An Error Has Occurred!                                     There was a error in uploading, please try again or contact the administrator.          

This happens with both video and audio

I have set permissions for me admin to do anything i want with mgallery

Thank you,
Mathew
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 05, 2008, 10:26:11 AM
mp3 are supported. Make sure that its filesize is under your upload_max_filesize(You can use phpinfo to know what is upload_max_filesize).
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: genieuk on November 05, 2008, 10:35:36 AM
Thanks for quick replys

Go Here: http://www.foreverlastingfriends.com/phpinfo.php (http://www.foreverlastingfriends.com/phpinfo.php)

i dont understand, i have embedded video no problem, but uploading video/audio gives me that error as stated in above post.

and if i try uploading a video/audio to my own album (member album) i get:

QuoteInternal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, private @ private.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2 Server at www.foreverlastingfriends.com Port 80[/h]

Thank you,
Mathew
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Smitten on November 05, 2008, 10:40:02 AM
MGallery.SPANISH.php?

Thanks
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 05, 2008, 10:41:26 AM
Quote from: Smitten on November 05, 2008, 10:40:02 AM
MGallery.SPANISH.php?

Thanks
No one has translated into spanish, if you want you can. Be my guest.

Quote from: genieuk on November 05, 2008, 10:35:36 AM
Thanks for quick replys

Go Here: http://www.foreverlastingfriends.com/phpinfo.php (http://www.foreverlastingfriends.com/phpinfo.php)

i dont understand, i have embedded video no problem, but uploading video/audio gives me that error as stated in above post.

and if i try uploading a video/audio to my own album (member album) i get:

QuoteInternal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, private @ private.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2 Server at www.foreverlastingfriends.com Port 80[/h]

Thank you,
Mathew
Is your mp3 bigger than 2MB?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: genieuk on November 05, 2008, 10:50:17 AM
Hi,

No it not bigger than 2MB it is 101KB. Also what has 2MB got to do with it? i set in admin for nothing over 200KB

My host is unlimited webspace.

Thank you,
Mathew

May i ask will it be better if i give you my cpanel details and admin details for forum as it maybe solved quicker this way, i feel as thou i am constantly hounding you, Sorry. I can send you my hotmail email address and speak there if you want, let me know.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Manu.G on November 05, 2008, 10:55:03 AM
Quote from: Dragooon on November 05, 2008, 09:44:07 AM
Run this query in phpmyadmin and tell me what it outputs
SELECT * FROM smf_mgallery_files WHERE id_file = 4
Make sure to replace smf_ with your prefix.

I have the problem with the icons too.
Folder.png I could insert into the database (with your instructions), but the problem are the other icons,  but which numbers do have music.png, camera.png and film.png?  :-[
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 05, 2008, 10:56:11 AM
I am better this way. The reason for I asked 2 Mb was that your server's limit is 2 MB.

Can you check your apache/php error logs?

@ Manu - They should be 1, 2, 3.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: genieuk on November 05, 2008, 10:59:41 AM
Oh rite, i am learning today.

So basically you mean when i upload anything to my website (server) the maximum i can upload at each time is 2MB  ???

Also checked in Cpanel and nothing in my access or error logs, completely clean.

Thank you,
Mathew
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 05, 2008, 11:01:40 AM
Yes true.

About your issue, TBH, I am not sure. Can you upload pictures? Can you paste the information in the Gallery -> About page?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: genieuk on November 05, 2008, 11:04:12 AM
Quote from: Dragooon on November 05, 2008, 11:01:40 AM
Yes true.

About your issue, TBH, I am not sure. Can you upload pictures? Can you paste the information in the Gallery -> About page?

Yes, i can upload pictures without problems, also Media Gallery installed without any errors via package manager.

please see image for about page.

Thank you,
Mathew
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: crustybum on November 05, 2008, 11:07:50 AM
I have problems with uploading video (very small sizes) and have yet to succeed although embedding you tube is no problem, another thing is that if i go in to firefox instead of i.e. there are no icons..even after regenerating them :-\ but they are there on i.e...
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Manu.G on November 05, 2008, 11:14:06 AM
Quote from: Dragooon on November 05, 2008, 10:56:11 AM
@ Manu - They should be 1, 2, 3.
Ok, I search for those ID's and here is the result

SELECT * FROM smf_mgallery_files WHERE id_file = 1
It shows me a normal photo in the gallery
SELECT * FROM smf_mgallery_files WHERE id_file = 2
Empty/No icon
SELECT * FROM smf_mgallery_files WHERE id_file = 3
It shows me a normal photo in the gallery

What have I to do/change so the generic icons will be shown in the gallery as they should?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: genieuk on November 05, 2008, 11:18:56 AM
I really dont understand

I just tried uploading a mp3 file in my user album and it worked for some strange reason, but when uploading in general album it does not work.

But problem with being now able to upload audio in my own member album shows that server error image again on my audio file which i uploaded.

So at this present time, i can only upload audio to my own member album but i get that server image showing, even thou the audio file etc still plays, i cannot upload audio or video in general albums and not able to upload video in own member album (user album).

Mathew
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Manu.G on November 05, 2008, 12:47:54 PM
Next Problem SMG 1.5 RC 2

When I add a video link of youtube (for example) it doesn't show me a thumbnail in the overview.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nibogo on November 05, 2008, 05:18:18 PM
Quote from: Dragooon on November 05, 2008, 10:41:26 AM
Quote from: Smitten on November 05, 2008, 10:40:02 AM
MGallery.SPANISH.php?

Thanks
No one has translated into spanish, if you want you can. Be my guest.

I can translate this mod into spanish but when the 1.5 is released ;)
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 06, 2008, 05:05:17 AM
Nibogo> Yes, I'd rather all language translators wait for a final version before translating.

Manu0372> I have no such problems (just tried). What's the URL of your Youtube link? As for your icon problem, please try these two fixes. One of them might be the man for the job.
http://smf-media.com/community/index.php?topic=244.0
http://smf-media.com/community/index.php?topic=236.msg1735#msg1735

genieuk> You must have a configuration problem... Have you checked your General Album settings? I just tried uploading a mp3 in one of my General albums and it worked fine.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: crustybum on November 06, 2008, 05:32:14 AM
Seems ok in I.E. on my machine  but in Firefox i get the "sorry you are not allowed to view this file..." even if i reload and regenerate, i also got the same going on a different pc (in I.E.)
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 06, 2008, 05:50:29 AM
Quote from: crustybum on November 06, 2008, 05:32:14 AM
Seems ok in I.E. on my machine  but in Firefox i get the "sorry you are not allowed to view this file..." even if i reload and regenerate, i also got the same going on a different pc (in I.E.)
Log off. Empty your cache. Log back in.
Every time you change an album icon (or a thumbnail), the browser may not recognize it, because we don't "force" a cache reload for them, in order to save bandwidth. Once you upload an thumbnail, it doesn't happen often that you would want to change them. As for album icons, they are not so relevant to the usability. Simply quitting your browser and relaunching it will take care of the reloading most of the time.
What I do when I want a reload and it doesn't happen (yes, sometimes it does, sometimes it doesn't, and that's for all websites, not only SMG-type websites) is simply right click on the icon, copy the address, launch a new tab directly to that address, and hit Reload a couple of times. It always works.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 06, 2008, 05:54:27 AM
(I'm reading the topic backwards...)

Quote from: Dragooon on November 05, 2008, 10:12:09 AM
Basically the albums have a default icon of the id 4. In your case, it was missing from the DB, the last query added it. Now it should be all fine.
Definitely must be that Mgal_move() bug...

genieuk, did you use the "Move" feature on a picture that was being used as an album icon? Did you use the Move feature at all, actually?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: RustyBarnacle on November 06, 2008, 03:38:03 PM
I get this error when I try to mass upload:

httpStatus
406

Any ideas?

Also I still can't make a TP block work.  If anyone has any thoughts that would be great.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Manu.G on November 06, 2008, 03:43:38 PM
Quote from: Nao 尚 on November 06, 2008, 05:05:17 AM
Manu0372> I have no such problems (just tried). What's the URL of your Youtube link? As for your icon problem, please try these two fixes. One of them might be the man for the job.
http://smf-media.com/community/index.php?topic=244.0 (http://smf-media.com/community/index.php?topic=244.0)
http://smf-media.com/community/index.php?topic=236.msg1735#msg1735 (http://smf-media.com/community/index.php?topic=236.msg1735#msg1735)

This solved my problems, but now I haven an other problem. :(

None can load up something in our Gallery.
I tried it as Admin and with my test account, but all I get to see when I try to load up a photo, video or mp3 is
QuoteAn Error Has Occurred!
There was a error in uploading, please try again or contact the administrator.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: dannyd on November 06, 2008, 09:46:43 PM
I uploaded the package. It seemed to have installed fine. Yet nowhere in the admin can I find anything to do with the gallery ? I checked FTP and it parsed all the files into separate locations.

my site is located at www.asromaforum.com .. how would I access it ?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 06, 2008, 10:11:35 PM
Quote from: RustyBarnacle on November 06, 2008, 03:38:03 PM
I get this error when I try to mass upload:

httpStatus
406

Any ideas?
Yes. Ever read a readme file in your life?  ::) (In this case--the post-install warnings.)
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: dannyd on November 06, 2008, 10:13:01 PM
I just realized it didnt work with the theme i was using "alak". It works with the default. GREAT MOD!

Is there a way to turn off uploading ? I just want users to submit youtube urls.

Thanks!
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 06, 2008, 10:14:45 PM
@dannyd> Err, check with the general permissions stuff? I'm not sure there's a permission for embedding but if there is, activate it and disable the upload perms...

Quote from: Manu0372 on November 06, 2008, 03:43:38 PM
This solved my problems, but now I haven an other problem. :(
I have a problem, too -- with people who don't care to thank someone before they ask for another favor.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: dannyd on November 06, 2008, 10:22:33 PM
It seems theres ONLY "Add videos" under the SMF Gallery permissions which entails BOTH embed and upload. Should I just hack the code that handles the upload or is there an easier way that i missed. This mod was totally what I was looking for. I almost looked at coppermine... whew!
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: dannyd on November 06, 2008, 10:24:44 PM
Can you tell me which file to edit ? If i have to remove the code.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 06, 2008, 10:27:20 PM
Quote from: dannyd on November 06, 2008, 10:22:33 PM
It seems theres ONLY "Add videos" under the SMF Gallery permissions which entails BOTH embed and upload. Should I just hack the code that handles the upload or is there an easier way that i missed. This mod was totally what I was looking for. I almost looked at coppermine... whew!
You'll have to ask Dragooon for that feature. He likes perms... I don't :P
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Kreator on November 07, 2008, 03:20:22 AM
Can somebody tell me where the code for the menubar is > I have Two Galleries showing on the Menubar for some reason !!, I need to edit one out,

Nice Mod by the way!...
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 07, 2008, 04:21:44 AM
If you have two galleries on the menu bar, it means you reinstalled SMG without first uninstalling it... You're bound to reinstall your whole SMF at one point if you keep doing this -- the door is open to many site crashes are other funny things.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Özgür on November 07, 2008, 08:18:50 AM
In SMF Download mod. when we add a file to a category, automatically a topic opened on a board if we enabled this function ofcourse.
So, can we do this in SMF Media Gallery Mod. Is this possible?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 07, 2008, 08:31:56 AM
Yes it is possible, but if we did that, where would people comment, uh? Would make more sense that they'd comment in the SMF topic... So we can as well drop our whole comment code. Which we won't, because we want to keep everything separate from SMF. "A locked topic", then? But what's the point? You can call getMediaItems() in SSI fashion to show the latest uploaded pics on your board... Or you can simpy add a link to ?action=mgallery;sa=unseen somewhere. It will show you all unviewed items... Including the new ones, of course. Similar to SMF's Unread Topics.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Kreator on November 07, 2008, 08:36:41 AM
QuoteIf you have two galleries on the menu bar, it means you reinstalled SMG without first uninstalling it... You're bound to reinstall your whole SMF at one point if you keep doing this -- the door is open to many site crashes are other funny things. /quote]

ahhh! then thats probably why!,... i`ll figure it out ....
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Özgür on November 07, 2008, 09:08:51 AM
Quote from: Nao 尚 on November 07, 2008, 08:31:56 AM
Yes it is possible, but if we did that, where would people comment, uh? Would make more sense that they'd comment in the SMF topic... So we can as well drop our whole comment code. Which we won't, because we want to keep everything separate from SMF. "A locked topic", then? But what's the point? You can call getMediaItems() in SSI fashion to show the latest uploaded pics on your board... Or you can simpy add a link to ?action=mgallery;sa=unseen somewhere. It will show you all unviewed items... Including the new ones, of course. Similar to SMF's Unread Topics.

I have a local rock music band website. and all  local bands have biography, video and pictures in  band boards.
i want to
if band member added video or pics (in smg) in band album automatically a topic open on a band board.

locked topic possible.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: limabeats on November 07, 2008, 04:09:03 PM
Quote from: Nao 尚 on November 07, 2008, 08:31:56 AM
Yes it is possible, but if we did that, where would people comment, uh? Would make more sense that they'd comment in the SMF topic... So we can as well drop our whole comment code. Which we won't, because we want to keep everything separate from SMF. "A locked topic", then? But what's the point? You can call getMediaItems() in SSI fashion to show the latest uploaded pics on your board... Or you can simpy add a link to ?action=mgallery;sa=unseen somewhere. It will show you all unviewed items... Including the new ones, of course. Similar to SMF's Unread Topics.

That's exactly what i'm looking for. Something like the calendar in the forum, when you create a new event it gets posted right away as a topic in one of the forums. After that, all comments are actual forum posts... I would be really happy with this kind of integration, which I think is perfect for my site.

Now, I could disable comments on SMF Media Gallery and dream of a mod that would automatically post an album with a specific format into a new topic? Do you think it would be easy?

BTW, I'm translating into spanish... ;)
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 07, 2008, 04:45:39 PM
Quote from: limabeats on November 07, 2008, 04:09:03 PM
That's exactly what i'm looking for. Something like the calendar in the forum, when you create a new event it gets posted right away as a topic in one of the forums. After that, all comments are actual forum posts... I would be really happy with this kind of integration, which I think is perfect for my site.
Yes, but no.

QuoteNow, I could disable comments on SMF Media Gallery and dream of a mod that would automatically post an album with a specific format into a new topic? Do you think it would be easy?
Maybe Dragooon will do this as a non-free mod in the future. I know he's playing with the idea of creating external mods on a per-case basis and making interested users pay for them.

But, honestly, I wouldn't recommend using SMF's message system. If it had been done from the start like this -- okay. But now? We would have to create a converter for existing comments, change MUCH of the code, and what would be the point, really? What good does the SMF message structure add to the existing SMG comment structure? I don't think it adds anything...
What I *can* do, though, is to make comments look more like they're SMF messages. I've already started doing that a few betas earlier. But comments should remain what they are--comments.
Oh, and--if we were to use the SMF system, we would have to add much more custom code to the current SMF files, and it would probably make it even harder for us to update the mod along with the new SMF releases. We already have to publish three different modding xml files for three different versions of SMF... (1.1.x, 2.0 beta 4 public and 2.0 RC 1 for SMF beta testers...)
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Manu.G on November 07, 2008, 04:48:39 PM
Quote from: Nao 尚 on November 06, 2008, 10:14:45 PM
Quote from: Manu0372 on November 06, 2008, 03:43:38 PM
This solved my problems, but now I haven an other problem. :(
I have a problem, too -- with people who don't care to thank someone before they ask for another favor.

Oh sorry when I hurt your feelings, but normal I say thanks for every single help, check out my postings here in the forum.
But yesterday I was nerved and down, cause of all the problems I have with SMG. Since days I work at it and don't see any end of all the problems.
So calm down ok, it was not evil-intentioned.

I think that's the reason for all the problems I have:
http://smf-media.com/community/index.php?topic=253.0 (http://smf-media.com/community/index.php?topic=253.0)

The biggest gesture is to help without asking anything back.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 07, 2008, 04:52:51 PM
Quote from: limabeats on November 07, 2008, 04:09:03 PM
BTW, I'm translating into spanish... ;)
I think someone's already doing it...
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: limabeats on November 07, 2008, 05:04:05 PM
Quote from: Nao 尚 on November 07, 2008, 04:52:51 PM
Quote from: limabeats on November 07, 2008, 04:09:03 PM
BTW, I'm translating into spanish... ;)
I think someone's already doing it...

mine is latinamerican (spanish_latin-utf8) mhh...
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: limabeats on November 07, 2008, 05:08:07 PM
Quote from: Nao 尚 on November 07, 2008, 04:45:39 PM
Quote from: limabeats on November 07, 2008, 04:09:03 PM
That's exactly what i'm looking for. Something like the calendar in the forum, when you create a new event it gets posted right away as a topic in one of the forums. After that, all comments are actual forum posts... I would be really happy with this kind of integration, which I think is perfect for my site.
Yes, but no.

QuoteNow, I could disable comments on SMF Media Gallery and dream of a mod that would automatically post an album with a specific format into a new topic? Do you think it would be easy?
Maybe Dragooon will do this as a non-free mod in the future. I know he's playing with the idea of creating external mods on a per-case basis and making interested users pay for them.

But, honestly, I wouldn't recommend using SMF's message system. If it had been done from the start like this -- okay. But now? We would have to create a converter for existing comments, change MUCH of the code, and what would be the point, really? What good does the SMF message structure add to the existing SMG comment structure? I don't think it adds anything...
What I *can* do, though, is to make comments look more like they're SMF messages. I've already started doing that a few betas earlier. But comments should remain what they are--comments.
Oh, and--if we were to use the SMF system, we would have to add much more custom code to the current SMF files, and it would probably make it even harder for us to update the mod along with the new SMF releases. We already have to publish three different modding xml files for three different versions of SMF... (1.1.x, 2.0 beta 4 public and 2.0 RC 1 for SMF beta testers...)

okay, I get it...
going in the line of making comments and everything look more and more like SMF there could be a way to create a "gallery" subforum in the forum structures  and every new gallery could be displayed as a new topic. ONLY DISPLAY, which would mean if somebody clicked on that "topic", they would go to the album page with the SMG comments and everything...
sure it could be done manually but it would be so cool for it to happen automatically.

Then I would have a MEDIA forum with 3 subforums: Audio, Video and Pictures (see screenshot to see how I imagine it)

Edit: I just realised there's no way to comment on a whole album but only on each item!! In this case I could still think of an auto-topic of the gallery in one of my forums. People would then comment on whole albums through the forum and on single items through SMG. If there's a way to embed a whole album into a new topic...  :-\

Thanks a lot for help and explanations!!
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: genieuk on November 07, 2008, 05:50:20 PM
Hi,

I completely uninstalled SMF Gallery Lite and SMF Media Gallery, i then installed SMF Media Gallery and everything installed via package manager with no errors and still get same problems. I have removed permanenlty now as i am very sure there are a few serious issues with the mod. Obviously it in RC so things are expected but will wait until a more stable bug free version comes out.

Thank you,
Mathew
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Pяηѕѕ LF on November 07, 2008, 08:04:58 PM
hello,

I uninstall the old version and afther that I install the latest version. I have any error message during installation.

But when I refresh my page I the entire site not open.

I have HTTP 500 error message.

What can I do ?  :-\
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 08, 2008, 04:35:43 AM
Quote from: genieuk on November 07, 2008, 05:50:20 PM
I completely uninstalled SMF Gallery Lite and SMF Media Gallery, i then installed SMF Media Gallery and everything installed via package manager with no errors and still get same problems. I have removed permanenlty now as i am very sure there are a few serious issues with the mod. Obviously it in RC so things are expected but will wait until a more stable bug free version comes out.
It's close to release. It's very stable right now.
Your problem is not a problem other people here experience. If you have an habit of installing & uninstalling mods all the time, then you should simply take a note of all the mods you installed, completely reinstall SMF, and reinstall the mods. Preferably the "big ones" first, so that you can catch compatibility issues immediately.

PS: again--please don't compare us to SMF Gallery. We have no desire to enter a competition with that mod. If you like it better, use it. If you like ours better, use it. If you don't like either, don't use them. If you like both, make your choice.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: genieuk on November 08, 2008, 06:31:38 AM
mmm, i am not comparing mods i am just saying i uninstalled SMF Gallery Lite to see if it make any difference to the SMF Media Gallery and it doesn't.

Cannot upload video, and i get that server image for some reason.

and i was told there is no resolution to my problem. I also think it is drastic to reinstall whole forum just for a mod.

Mathew
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Pяηѕѕ LF on November 08, 2008, 07:16:50 AM
Quote from: Silindi.. on November 07, 2008, 08:04:58 PM
hello,

I uninstall the old version and afther that I install the latest version. I have any error message during installation.

But when I refresh my page I the entire site not open.

I have HTTP 500 error message.

What can I do ?  :-\


Nao 尚  tu sais pas pourquoi j'ai ce message d'erreur ?  :-\
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 08, 2008, 07:54:33 AM
Pas en français SVP, c'est un topic anglophone ici...
Les erreurs 500 sont généralement dues à des timeout du serveur. Donc il mouline trop longtemps et s'impatiente, hop, erreur interne. Ca peut aussi être dû à une boucle infinie (du code qui se rappelle lui-même). Aucun lien avec SMG, en tout cas... C'est avec ton hébergeur que tu dois régler ça !
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Pяηѕѕ LF on November 08, 2008, 08:07:34 AM

yes but the forum work correctly and when I uninstall and afther install the latest version I have this error. I hope that have a "Lien" with SMG  :-[
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: dimdom on November 08, 2008, 08:19:31 AM
OK here how I managed it.

I bought SMF Gallery Pro, cause it is mature, stable and implements smoothly with SMF.

I am using SMG in order to handle music and flv files and RC2 seems to be the more stable and error free version ever.

These two mods CAUSE NO ERRORS one to another.

I dont like the fact that the link to a file has a getid extension, cause it may cause potential problems with linking.

So far, I think that SMG is a most needed mod if someone would like to be able to handle videos and music files in his site...
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: bbTURK on November 08, 2008, 09:13:46 AM
my mgallery v: 1.0.2 gallery v: 1.9.4
when i run the mgconverter_sgl.php file, a blank page is opened. how do i convert the gallery to mgallery?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 08, 2008, 11:31:59 AM
Please don't cross-forum-post. You are already being answered there.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 08, 2008, 12:28:17 PM
Silindi> Est-ce que ça fait planter TOUT ton forum, ou juste la partie Galerie ?

Quote from: dimdom on November 08, 2008, 08:19:31 AM
These two mods CAUSE NO ERRORS one to another.
Well why would they :P

QuoteI dont like the fact that the link to a file has a getid extension, cause it may cause potential problems with linking.
Explain yourself.

QuoteSo far, I think that SMG is a most needed mod if someone would like to be able to handle videos and music files in his site...
SMF Gallery Pro does it as well, as I've heard. Of course it requires you to buy yet another module, for a total of $80, but it probably works better than SMG. Our mod is still very young. Of course, it has done some considerable progress since I came onboard and the emulation between Dragooon and I made us add a lot of new features ;)

Just don't wait for anything from us in the video/audio area. We implement what we want to implement. Currently, we think there are many other priorities to work on.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Pяηѕѕ LF on November 08, 2008, 03:09:57 PM
"Silindi> Est-ce que ça fait planter TOUT ton forum, ou juste la partie Galerie ?"

Tout le forum  :-[
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 09, 2008, 03:20:51 AM
Quote from: Silindi.. on November 08, 2008, 03:09:57 PM
"Silindi> Est-ce que ça fait planter TOUT ton forum, ou juste la partie Galerie ?"

Tout le forum  :-[

Euh... Bon ben désinstalle... Ou sinon réinstalle SMF.
De toute manière juste une chose à signaler : SMG n'applique pas de changements à l'index, donc à moins que ton bidule ne soit fortement moddé (genre affichage des images de la galerie sur l'index), il n'y a aucune raison que l'index plante...
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Pяηѕѕ LF on November 09, 2008, 05:28:54 AM
J'avais TinyPortal installé puis avec ça j'affichais les images du SMG dans le portal. La raison est là mais tu as l'air pas très "cool" lol comme si ça t'ennuyait  :D que je poste mon "soucis" ici. " Euh... Bon ben désinstalle... Ou sinon réinstalle SMF.". Oui, ç'est ca que je vais faire merci pour ton aide. Super (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg171.imageshack.us%2Fimg171%2F3343%2Ficon14ua1.gif&hash=de6a3a2ae3e850acc0ef95e8f031da368c7814ec)
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 09, 2008, 07:12:24 AM
Je suis resté calme et poli. Pourtant je t'ai dit de ne pas parler français ici et tu as continué. Et tu trouves que je ne suis pas cool...?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Pяηѕѕ LF on November 09, 2008, 01:04:56 PM
Nao 尚  tu es poli j'ai pas dit le contraire  :) juste tu donnes pas l'impression que tu veux aider.

" Pourtant je t'ai dit de ne pas parler français ici et tu as continué".

Si tu relis les messages une fois en haut lorsque tu me l'a dit directement j'ai  réécrit en anglais et tu m'a re répondu en français d'ou j'ai continué en français  :-[. C'est logique.

+ j'ai pas dit que tu n'étais pas cool. (Juste l'air, une impression).  :)

Soite on va pas en faire un ... je sais pas quoi  :-\.

Pas de soucis. Bonne continuation.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 09, 2008, 02:50:43 PM
Quote from: Silindi.. on November 09, 2008, 01:04:56 PM
Nao 尚  tu es poli j'ai pas dit le contraire  :) juste tu donnes pas l'impression que tu veux aider.
Of course I don't wanna help. You keep talking French on an English-speaking topic, and even though I repeatedly told you to use English.

QuoteSi tu relis les messages une fois en haut lorsque tu me l'a dit directement j'ai  réécrit en anglais et tu m'a re répondu en français d'ou j'ai continué en français  :-[. C'est logique.
No it's not. If you don't want to fit in, then why should we work on your stuff?

Anyway: your problem is not due to SMG. It is due to how poor your server is. Ask your host for more CPU power. Or it is due to conflicting mods -- which is why I asked you to try reinstalling SMF from scratch.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Pяηѕѕ LF on November 09, 2008, 03:11:47 PM
It's strange "approche". No coment.

Now Just I send a message to my host to explain my problem. I wait their solution for this.
 
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: limabeats on November 09, 2008, 08:15:37 PM
Quote from: Dragooon on November 08, 2008, 11:31:59 AM
Please don't cross-forum-post. You are already being answered there.

transfered myself to the smf-media forums only  ;) no more cross-forum-posts
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: dannyd on November 09, 2008, 11:33:56 PM
is there a way to get the recent video added thumbs to show up on the front page. Is there a piece of code I can let's say remove the smf gallery .. include in the index.template.php to do this ?

Thanks!
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Smoky "Rider" Blue on November 10, 2008, 05:19:17 AM
Dragooon...

lol i just got this on a clients site:

QuoteThe database value you're trying to insert does not exist: comment
/home/******/public_html/forum/Sources/MGallery-Admin.php
1385

when trying to do maintaince..

then there are a few db errors as well, when i head to find errors:

QuoteThe following errors have been discovered while finding errors

    * The DB entry of thumbnail(ID : 2), used with item(ID: 9), is missing
    * The DB entry of thumbnail(ID : 2), used with item(ID: 17), is missing
    * The DB entry of thumbnail(ID : 2), used with item(ID: 18), is missing
    * The DB entry of thumbnail(ID : 2), used with item(ID: 19), is missing
    * The DB entry of thumbnail(ID : 2), used with item(ID: 20), is missing
    * The DB entry of thumbnail(ID : 2), used with item(ID: 21), is missing
    * The DB entry of thumbnail(ID : 2), used with item(ID: 22), is missing
    * The DB entry of thumbnail(ID : 2), used with item(ID: 23), is missing

with no way to repair..

no9 extra files.. any fix for the 1.1.7 and tp v.1.0.6 beta 2   :)

Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 10, 2008, 05:39:19 AM
To fix your "Find errors" problem, run Regenerate thumbnails and previews.

What task do you run when getting that error?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Smoky "Rider" Blue on November 10, 2008, 05:47:54 AM
 will do a step by step..

(where do i find this: Regenerate thumbnails and previews)

first i did the check for errors and got attachment one

then i checked for extra files, none found.

then i go to recount totals and get attachment 2

that is all i see to correct..
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 10, 2008, 05:50:08 AM
Uh what version are you running? If 1.0.2, it is sort of deprecated. 1.5 is what the newest is.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Smoky "Rider" Blue on November 10, 2008, 05:58:26 AM
ok i got this:

18.     SMF Media Gallery      1.0     ;)

thanks Dragoon..
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 10, 2008, 11:39:16 AM
Yeah, we're not providing support for v1.0, it's too different... Consider v1.5 as the official one-- even though it's still in RC, it's only in RC by name. It's solid enough to be used as a "final 1.5", and we're adding new features regularly. If we'd released the final version two weeks earlier like I was hoping to, we'd already be at v1.5.5 or something right now ;)
Anyway--v1.0 has issues, v1.5 has issues, but only v1.5 will get the fixes for these issues. It's so widely different from v1.0 that you can consider it a v2.0 actually...
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Burke ♞ Knight on November 10, 2008, 11:42:05 AM
I must say that 1.5 is fantastic. :)
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Smoky "Rider" Blue on November 10, 2008, 12:26:01 PM
thank you Nao. i will look forward to doing another upgrade..  ;)


Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: dannyd on November 10, 2008, 01:59:25 PM
My gallery displays the wrong number of clips in the album. Do you know how I might fix this ?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Manu.G on November 10, 2008, 05:42:56 PM
I have a question to the layout of the Gallery Summary in the Profile of the user.
It's only a layout problem with Firefox. In IE and Opera everything looks ok, but in Firefox the table "Top Albums" is at the "wrong" place.
How can I fix this "ugly" Firefox problem?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 11, 2008, 12:24:13 AM
Looks like my request for help (back on page 22) got lost in the shuffle. *grin*

Well... a more pressing question now - WHERE is the batch upload feature? I cannot find it anywhere. In addition, there are a lot of "blanks" on the admin area of the gallery.

Example:

I click on ADMIN, then SETTINGS and scroll down the page.

The following lines are blank:

5, 7, 8, 12, 13, 17, 18.

Here... I'll post the lines:

Data directory path
   
Max files in a directory
   
Max size of a directory
   
Enable Re-Rating

[blank]

Enable cache

[blank]

Max file size
   
Max width
   
Max height

[blank]

[blank]

Max. thumb width
   
Max. thumb height

[blank]

[blank]


Over on the right I'll still see radio buttons and text boxes with data in them, but no clue what that data represents.

Plus, at the top, the first tab says CONFIGURATION and it looks like there's possibly 2 additional tabs, but they're blank. It looks like this:

Configuration  |    |      

I'm running SMF 1.1.7 and SMG 1.5 RC 2. I've uninstalled and re-installed the mod, no change.

Thanks for your help.

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 11, 2008, 04:45:57 AM
What language do you use? you seem to be using an outdated language file. Also for the mass upload, it should be listed where the add item link is located.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 11, 2008, 08:41:55 AM
Quote from: Dragooon on November 11, 2008, 04:45:57 AM
What language do you use? you seem to be using an outdated language file. Also for the mass upload, it should be listed where the add item link is located.

Oddly enough, the support info page states my language files to be version 1.1. Why? I don't know. Aren't the language files also updated when doing a general SMF upgrade? If not, could you be so kind as to point me in the direction I need to go in order to get the language files updated (for English please).

As for the MASS UPLOAD link... I don't see it (maybe it's a language file issue?) I see two links:

Add item in this album      Edit


Being that there's a lot of space between the two, I'm guessing the mass upload link is supposed to be there, but it isn't because of language file issues. So, help with figuring out how to upgrade my language files would be appreciated. *smile*

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 11, 2008, 08:43:52 AM
Well Is there a /Themes/<your theme>/languages/MGallery.english.php? If so overwrite it with the one in the package, else, overwrite the one in default language folder with the package(Or just do both).
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 11, 2008, 08:52:48 AM
Quote from: Dragooon on November 11, 2008, 08:43:52 AM
Well Is there a /Themes/<your theme>/languages/MGallery.english.php? If so overwrite it with the one in the package, else, overwrite the one in default language folder with the package(Or just do both).

There is no <my theme> MGallery.english.php.

There is a <default> MGallery.english.php (date/time stamp is November 4).

Doesn't matter if I'm using my theme or the default theme. In either case I'm still showing blanks. Pardon me for being stupid, but which file am I overwriting with which? (unsure of what you mean by the "package" file) *smile*

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 11, 2008, 08:56:31 AM
The package file is the file which you download from the mod site. Extract it and upload the newer MGallery.english.php from /Themes/default/languages to yours. It is possible that it may have not been overwrote.

Also...Whats the language in Admin -> Server settings?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: dannyd on November 11, 2008, 10:04:28 AM
Hi is there a snipped of code that I can put on the index.template.php that would show the most recent videos added ? Or any way to add the most recent on the home page ?

Thanks.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 11, 2008, 01:20:34 PM
Quote from: Dragooon on November 11, 2008, 08:56:31 AM
The package file is the file which you download from the mod site. Extract it and upload the newer MGallery.english.php from /Themes/default/languages to yours. It is possible that it may have not been overwrote.

Also...Whats the language in Admin -> Server settings?

Ah... hold the presses... in the server settings it was "english-utf8." (Don't ask me why.) I changed that to English and POOF! it all showed up.

Unfortunately, any time I click on the "MASS UPLOAD" link it crashes my Firefox. I've tried it on two different computers - same results. If I use IE and click on the link, it says "error on page" on the status bar.

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 11, 2008, 05:10:01 PM
Dragooon, should we add UTF8 versions of the files? I'm not too fond of maintaining two exact versions of a same file just for people who don't know a thing about SMF's inner workings.... :-/
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Sapo84 on November 11, 2008, 05:21:04 PM
Quote from: BYUFanatic on November 11, 2008, 01:20:34 PM
Unfortunately, any time I click on the "MASS UPLOAD" link it crashes my Firefox. I've tried it on two different computers - same results. If I use IE and click on the link, it says "error on page" on the status bar.

I have the same problem.
Firefox and Opera crash when using mass upload under SMF 2.0 beta 4, no problem for me with 1.1.7.
Hope it helps.

Thanks in advance (and thanks for the great mod too)
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 11, 2008, 05:26:33 PM
Quote from: Nao 尚 on November 11, 2008, 05:10:01 PM
Dragooon, should we add UTF8 versions of the files? I'm not too fond of maintaining two exact versions of a same file just for people who don't know a thing about SMF's inner workings.... :-/

Yep, that's me - know very little about the inner workings of SMF. That is mainly due to unfortunate time constraints on my part. Thus I'm at the mercy of others to share their pearls of wisdom with me.

Fortunately, maintaining two exact versions of essentially the same file is little more than copying it and renaming it (all of about 5 seconds worth of work).

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Burke ♞ Knight on November 11, 2008, 06:31:56 PM
Quote from: BYUFanatic on November 11, 2008, 01:20:34 PM
Unfortunately, any time I click on the "MASS UPLOAD" link it crashes my Firefox. I've tried it on two different computers - same results. If I use IE and click on the link, it says "error on page" on the status bar.

Rob

Rob,

If you are using FireFox 3, then the crashes may be PC related.
I also get a lot of FireFox crashes, but have used the mass upload, and it not crash mine.
It all depends on the pc, and the amount of memory things use, and not release.
This problem may very well be a FireFox problem, that can not be fixed by the SMF Media Gallery mod team.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 11, 2008, 06:34:38 PM
Quote from: BurkeKnight on November 11, 2008, 06:31:56 PM
Quote from: BYUFanatic on November 11, 2008, 01:20:34 PM
Unfortunately, any time I click on the "MASS UPLOAD" link it crashes my Firefox. I've tried it on two different computers - same results. If I use IE and click on the link, it says "error on page" on the status bar.

Rob

Rob,

If you are using FireFox 3, then the crashes may be PC related.
I also get a lot of FireFox crashes, but have used the mass upload, and it not crash mine.
It all depends on the pc, and the amount of memory things use, and not release.
This problem may very well be a FireFox problem, that can not be fixed by the SMF Media Gallery mod team.

Thanks. But it's an error either with SMF or SMG. It crashes Firefox and refuses to load in IE (I get an error message on the status bar).

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: runebergen on November 11, 2008, 08:29:44 PM


Can this mod be used for MP3 upload and rate only?
And does anyone have a screenshot how how mp3 files looks in media gallery`:)
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: txleo on November 12, 2008, 12:24:35 AM
There are way too many pages here to sift through to see if this has been covered yet.  I like this mod, however I get the following error when I upload the MOD:

Installing this package will perform the following actions:  Type Action Description
1. Execute Code db_mgallery.php 
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/Subs.php Test successful
4. Execute Modification ./Sources/Load.php Test successful
5. Execute Modification ./Sources/ManagePermissions.php Test successful

6. Execute Modification ./Themes/default/index.template.php Test failed


7. Execute Modification ./Sources/Who.php Test successful
8. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful

9. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file


10. Extract Tree ./Sources 
11. Extract Tree ./Themes 
12. Extract Tree ./mgal_data
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 12, 2008, 10:25:08 AM
@BYUFanatic> Can you check whether there are at least two tabs with the Mass Upload page? I noticed that my Opera tends to crash more if there are two tabs open with Mass Upload in it, instead of the usual 1.

Quote from: runebergen on November 11, 2008, 08:29:44 PM
Can this mod be used for MP3 upload and rate only?
Yes.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Sapo84 on November 12, 2008, 10:40:30 AM
Quote from: BYUFanatic on November 11, 2008, 06:34:38 PM
Thanks. But it's an error either with SMF or SMG. It crashes Firefox and refuses to load in IE (I get an error message on the status bar).

Rob

I made some other tests and it doesn't seem to happen everywhere, I installed on a different server the same version of SMF with the same SMG and it didn't crash.
I also compared the HTML output and I didn't find any real differences (same tags, same javascripts), apart from
var smf_iso_case_folding = false; in the one that is crashing.

Quote from: Nao 尚 on November 12, 2008, 10:25:08 AM
@BYUFanatic> Can you check whether there are at least two tabs with the Mass Upload page? I noticed that my Opera tends to crash more if there are two tabs open with Mass Upload in it, instead of the usual 1.
It crashes even with only one mass upload page open.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: psynx on November 12, 2008, 10:56:08 AM
hello,

how do i change the filename? i mean, i want the description or filename of the image be seen under the image not on top of the image.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 12, 2008, 03:15:56 PM
There is only ONE tab for MASS UPLOAD. Actually, it's not even a tab, but really just a link. It looks like this:

Add an item to this album   Mass Upload   Edit 

In front of each link is a little folder icon (unable to click on those).

I click on MASS UPLOAD and then just wait a moment - it starts loading the page then it crashes. It's like it is trying to load some scripting or something and the scripting is causing an error. Firefox completely crashes and IE gives me an error message. The error message isn't very helpful:

Line: 4
Char: 48014
Error: Unspecified error.
Code: 0

One thing that is interesting - Although I changed the language to "English" (previously was "English-UTF8") I am still forced to go to ADMIN -> SERVER SETTING and SAVE it each time in order to get the MASS UPLOAD link to show up if I navigate away from my forum and then come back.

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 12, 2008, 03:22:03 PM
For the record -

I've uploaded about 19 FLV videos so far (manually, one by one) and they work great. They play smoothly, I'm about to view them full-screen, the quality is great. I like this mod. Just hope to get the kinks worked out.

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 12, 2008, 03:46:02 PM
@psynx> Well... Edit the template...

Quote from: BYUFanatic on November 12, 2008, 03:15:56 PM
There is only ONE tab for MASS UPLOAD.
No need to shout...

QuoteActually, it's not even a tab, but really just a link. It looks like this:

Add an item to this album   Mass Upload   Edit 
No, you don't understand.
Tabs, in Firefox... Ever heard of tabs? Multiple websites in a single session? Like multiple windows but in one window only? Well, make sure you don't have two tabs that point to a Mass Upload page. That's all...

QuoteI click on MASS UPLOAD and then just wait a moment - it starts loading the page then it crashes.
Yeah, same here... (But only when I have two tabs with Mass Upload, again. I think.)

QuoteIt's like it is trying to load some scripting or something and the scripting is causing an error. Firefox completely crashes and IE gives me an error message. The error message isn't very helpful:
Given the char number, it's from the Mootools script.
I don't know what's wrong with Mootools, but it definitely is buggy.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 12, 2008, 04:03:26 PM
Quote from: Nao 尚 on November 12, 2008, 03:46:02 PM
Quote from: BYUFanatic on November 12, 2008, 03:15:56 PM
There is only ONE tab for MASS UPLOAD.
No need to shout...


No shouting here. Using ALL CAPS is a way of differentiating between my typing and a link or tab that I am referring to. This is typical of explaining something.


Quote from: Nao 尚 on November 12, 2008, 03:46:02 PM
QuoteActually, it's not even a tab, but really just a link. It looks like this:

Add an item to this album   Mass Upload   Edit 
No, you don't understand.
Tabs, in Firefox... Ever heard of tabs? Multiple websites in a single session? Like multiple windows but in one window only? Well, make sure you don't have two tabs that point to a Mass Upload page. That's all...


Ah, now that you have clearly specified that you are referring to FIREFOX tabs (yes, that time I purposely ALL CAPPED for emphasis) it makes more sense. SMF also has tabs. (Hence the confusion.) No, I do not have multiple instances of the forum open in Firefox.

Quote from: Nao 尚 on November 12, 2008, 03:46:02 PM
QuoteI click on MASS UPLOAD and then just wait a moment - it starts loading the page then it crashes.
Yeah, same here... (But only when I have two tabs with Mass Upload, again. I think.)

I wish that's all it was. Unfortunately even if I have only one tab open (in FF or IE) I still get the error.

Quote from: Nao 尚 on November 12, 2008, 03:46:02 PM
QuoteIt's like it is trying to load some scripting or something and the scripting is causing an error. Firefox completely crashes and IE gives me an error message. The error message isn't very helpful:
Given the char number, it's from the Mootools script.
I don't know what's wrong with Mootools, but it definitely is buggy.

SMG is written using Mootools? Or is Mootools a rendering engine? I have to admit that ever since I stopped programming years ago I am not familiar with tools and engines used nowadays.

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Burke ♞ Knight on November 12, 2008, 04:21:23 PM
Quote from: BYUFanatic on November 12, 2008, 04:03:26 PM
No shouting here. Using ALL CAPS is a way of differentiating between my typing and a link or tab that I am referring to. This is typical of explaining something.

Hmm. I always thought bold was used for that, not caps lock.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 12, 2008, 04:31:52 PM
Quote from: BurkeKnight on November 12, 2008, 04:21:23 PM
Quote from: BYUFanatic on November 12, 2008, 04:03:26 PM
No shouting here. Using ALL CAPS is a way of differentiating between my typing and a link or tab that I am referring to. This is typical of explaining something.

Hmm. I always thought bold was used for that, not caps lock.

Actually... nowadays it's with graphic files. *grin*

I'm from way back - started before we had the niceties of BBC coding. Everything was all completely in Courier font. Old habits die hard.

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Burke ♞ Knight on November 12, 2008, 04:42:32 PM
Courier font....

Must be talking of the old style BBS boards.
SysOp and all. :P
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 12, 2008, 04:54:32 PM
Quote from: BurkeKnight on November 12, 2008, 04:42:32 PM
Courier font....

Must be talking of the old style BBS boards.
SysOp and all. :P

Yep. The Internet used to be BBSes and dial-up modems. Computers with CGA screens (4 colors) were considered top-of-the line (replacing the old green screens of course). I grew up around computers and remember back when "hard drives" were cassette tapes and punch cards. *grin*

Last time I wrote any professional code was 1999. I still dink around a little bit, but no longer churn out my own code. All my time nowadays is eaten up by teaching. (I changed career paths.) One of my goals is to get my SMF forum working as smoothly as possible with these mods for my kids. Another goal is to get my Moodle site running so that I can work with online/distance-learning students.

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 12, 2008, 05:09:53 PM
Quote from: BYUFanatic on November 12, 2008, 04:03:26 PM
No, I do not have multiple instances of the forum open in Firefox.
Well, then it's something else... :-/
Dragooon will have to recognize at some point that the FancyUpload thing stinks -- at least stability-wise. And he'll either fix the bug, or change back to SWFUpload.

QuoteSMG is written using Mootools? Or is Mootools a rendering engine? I have to admit that ever since I stopped programming years ago I am not familiar with tools and engines used nowadays.
Mootools is a Javascript extension library. It adds a few special instructions and ways of dealing with the DOM structure easily (many other libraries do the same kind of stuff -- jQuery, YUI, Prototype, etc...). Mootools seems to be less stable than the other libraries, but I don't know enough about Javascript (just the basics -- I can modify code but I'm not so good at writing it), so I can't really convert FancyUpload to jQuery or anything else by myself...
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 12, 2008, 05:22:33 PM
BYUFanatic, let's try this...

Edit (via FTP) this file:
/Sources/MGallery-Sub.php

Search for this string:

<script type="text/javascript" src="'.mgal_theme_url('up/mootools.js').'"></script>

Replace it with:

<script type="text/javascript" src="http://digitarald.de/js/mootools-1.2-core-nc.js"></script>

Save, upload the file, and relaunch Firefox. (Make sure you erase your cache before you go to the Mass Upload page.)
Tell me if it works...
Please don't use this as a definitive solution -- you'll be using bandwidth from an external server without authorization. (Of course, you can download the mootools file and upload it somewhere to your FTP account, and then access it with its new URL.)

I would have done the test by myself, but since I can't reproduce the crash currently, I'm forced to rely on someone else... :(
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 12, 2008, 09:33:11 PM
Nao -

Ok. I'll give that a try in a bit (trying to do a number of things all at once tonight - as usual). I just discovered one problem though - none of my students can see the gallery. They get an error telling them they don't have permission to access it. However, I have checked the boxes giving them permission to. *scratches head*

Ugh.

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 12, 2008, 11:26:46 PM
Nao -

Ok, replaced that line of code as you suggested. It still crashes FF and won't load in IE. Out of curiosity, I used NoScript in FF to temporary block that script from running. It didn't crash. But the second I re-enabled it, it crashed. So the error would appear to be with the MooTool library.

Odd that it would work on some users forums, but not on others. I'm guessing it is probably because of conflicts with other mods.

Also, any ideas as to why my students cannot access the gallery? I've enabled it for everyone - including guests - but still no luck.

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: psynx on November 13, 2008, 01:04:56 AM
Quote from: Nao 尚 on November 12, 2008, 03:46:02 PM
@psynx> Well... Edit the template...

if only i know how to edit it....unfortunately im complete noob when it comes to coding. perhaps you could tell me what file to look for? and what code to insert or edit?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 13, 2008, 05:32:24 AM
@psynx> The template is MGallery.template.php... The thumbnail box code is in function show_item_list... Study a bit of PHP, you're bound to need some PHP knowledge if you want to seriously edit some of your mods, eh...

Quote from: BYUFanatic on November 12, 2008, 11:26:46 PM
Ok, replaced that line of code as you suggested. It still crashes FF and won't load in IE. Out of curiosity, I used NoScript in FF to temporary block that script from running. It didn't crash. But the second I re-enabled it, it crashed. So the error would appear to be with the MooTool library.
It doesn't mean that--since Javascript is used to initialize the Flash object, it could also be related to the Flash component, obviously. But I'm leaning towards the Mootools library anyway. Although the fact that it still crashed after using the original author's "recommended" library version is a concern to me. I'm afraid I can't do anything more for now -- we'll have to let Dragooon decide whether he wants to investigate the issue on his side, or find an alternative, or just leave it be and pray that we are only a handful of sad FancyUpload users. (Although the very fact that the co-developer of SMG has the problem is quite a bit scary in itself.)

QuoteOdd that it would work on some users forums, but not on others. I'm guessing it is probably because of conflicts with other mods.
I don't think so.

QuoteAlso, any ideas as to why my students cannot access the gallery? I've enabled it for everyone - including guests - but still no luck.
Are you sure you enabled permissions in the General Permissions area, for each member group?
Can they access the gallery through a direct link? (/?action=mgallery)
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Smoky "Rider" Blue on November 13, 2008, 06:15:08 AM
Nao, or Dragoon..

i updated to the 1.5 and it went very well.. however, i notice this in the logs now:

8: Undefined index: cannot_mgallery_viewprofile
File: /home/***snipped***/public_html/forum/Sources/Security.php
Line: 748

anyone knows how to fix? the bots keep racking it up in the error log on my clients site.  :)
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Sapo84 on November 13, 2008, 06:57:35 AM
Quote from: Nao 尚 on November 13, 2008, 05:32:24 AM
It doesn't mean that--since Javascript is used to initialize the Flash object, it could also be related to the Flash component, obviously. But I'm leaning towards the Mootools library anyway. Although the fact that it still crashed after using the original author's "recommended" library version is a concern to me. I'm afraid I can't do anything more for now -- we'll have to let Dragooon decide whether he wants to investigate the issue on his side, or find an alternative, or just leave it be and pray that we are only a handful of sad FancyUpload users. (Although the very fact that the co-developer of SMG has the problem is quite a bit scary in itself.)
Disabling the flash plugin also stops the problem.
Moreover when Opera crashes it says the module with errors is NPSWF32.DLL, which should be a flash dll.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 13, 2008, 07:14:26 AM
Quote from: SmokyBlue on November 13, 2008, 06:15:08 AM
Nao, or Dragoon..

i updated to the 1.5 and it went very well.. however, i notice this in the logs now:

8: Undefined index: cannot_mgallery_viewprofile
File: /home/***snipped***/public_html/forum/Sources/Security.php
Line: 748

anyone knows how to fix? the bots keep racking it up in the error log on my clients site.  :)
Add this string to your Modifications.english.php
$txt['cannot_mgallery_viewprofile'] = 'You cannot view the gallery profile';
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Smoky "Rider" Blue on November 13, 2008, 07:51:51 AM
thanks Dragooon  :D
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 13, 2008, 08:15:35 AM
Quote from: Sapo84 on November 13, 2008, 06:57:35 AM
Disabling the flash plugin also stops the problem.
Didn't think of that... ;)

So that would make the culprit FancyUpload itself... :-/
I dunno, maybe the Flash 10-compatible version is at fault..? But there's no point in going back to a Flash 9-only version when most people are going the Flash 10 way...
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 13, 2008, 09:06:23 AM
Quote from: Nao 尚 on November 13, 2008, 05:32:24 AM
QuoteAlso, any ideas as to why my students cannot access the gallery? I've enabled it for everyone - including guests - but still no luck.
Are you sure you enabled permissions in the General Permissions area, for each member group?
Can they access the gallery through a direct link? (/?action=mgallery)

Ah... I was unaware that there was two sets of permissions for users. I have now enabled permissions in in the General Permissions area.

Any idea why every time I access the gallery (after leaving the forum and coming back) that I must go to ADMIN -> SERVER SETTINGS and re-save it with "English" as the language option before I can see all the text properly?

Another question - how to resize the thumbnails for videos? I ran maintenance on the gallery and all the smaller, more manageable thumbnails were replaced with HUGE ones. I tried fiddling with the settings in the ADMIN area but nothing seems to resize them smaller. I don't see an option for attaching a specific thumbnail to a specific video either (although you apparently can attach one to the entire album).

I'm really liking the possibilities of what I can do with this mod for my students. Just gotta get it working smoothly.

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: 4fit? on November 13, 2008, 09:24:34 AM
I am wanting to include a section in BoardIndex.template.php exactly like the Recent Items on the Gallery index.  I've tried a few different things but none have worked thus far.  How would I go about doing this?

Thanks in advance.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: sheryltoo on November 13, 2008, 10:51:50 AM
I would like to add this mod to my site but I'm not sure if I have to delete the gallery that's in my sql database.
It's not linked to my message board so can it stay?
And then I'm not sure how to install this mod. Do I need to set up a new database?
I don't understand any of the steps you need to take in order to set up a database. I set up my gallery over a year ago with lots of help and don't remember how I did that.
And I don't know who I'm suppose to ask for help. Is it you people or people from my host site?
Sorry. I probably sound pretty dumb but I'm trying to learn and need some simple instructions.
Thanks
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 13, 2008, 11:15:25 AM
You don't need to remove any gallery, to know how to install the gallery please see Package Manager (http://docs.simplemachines.org/index.php?board=49.0;sort=subject)
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: sheryltoo on November 13, 2008, 11:25:44 AM
Thanks.
Sheryl
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: sheryltoo on November 13, 2008, 11:41:17 AM
I'm a little confused about something. When I went to my install package page, I noticed I already installed a package called SMF Gallery lite, 1.9.4, although it hasn't been applied yet.
Is this the same mod?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Burke ♞ Knight on November 13, 2008, 11:43:27 AM
No, it is not. That is SMF Gallery Lite and this mod is SMF Media Gallery.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: sheryltoo on November 13, 2008, 11:52:09 AM
Thanks again.
Now if I could just get that verification problem resolved I'd be able to apply these mods.
Sheryl
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Manu.G on November 13, 2008, 01:41:55 PM
I get these entries in our errorlog

Undefined index:  child_level
Ficheiro: /is/.../.../../.../Sources/Subs-MGallery.php
Linha: 898


Undefined index: num_items
Ficheiro: /is/.../.../../.../Sources/Subs-MGallery.php
Linha: 939


Undefined index: overall_total
Ficheiro: /is/.../.../../.../Sources/Subs-MGallery.php
Linha: 939


and so on.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: 4fit? on November 13, 2008, 02:33:38 PM
Quote from: 4fit? on November 13, 2008, 09:24:34 AM
I am wanting to include a section in BoardIndex.template.php exactly like the Recent Items on the Gallery index.  I've tried a few different things but none have worked thus far.  How would I go about doing this?

Thanks in advance.

Nevermind on this.  Figured it out.  Tweaked the code Nao posted over at smf-media.com (http://smf-media.com/community/index.php?topic=121.msg1008#msg1008).  If anyone is interested, this is the code I used.  The result can be seen on My Site (http://mustangsofburlington.com/bboard1/index.php).  I placed the block right above the information center, but it could be placed wherever you wanted it to be.  Also, I have "Recent Additions To The Gallery" hardcoded, but it could easily be changed to a $txt variable if desired.

Big thanks to the Dragoon, Nao, and the rest of the SMF-Media crew for making such a great gallery.

Note:
Nao, just wanted to make you aware that you have two alt tags in the thumb portion of the code I linked to above.


// Show the 5 most recent additions to the Gallery
global $sourcedir, $galurl, $scripturl;

require_once($sourcedir . '/Subs-MGallery.php');
loadMGal_Settings();

if (loadlanguage('MGallery') == false)
  loadLanguage('MGallery', 'english');

$items = getMediaItems(0, 5, 'm.id_media DESC');
echo '<br />
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center; ">
Recent Additions To The Gallery
</div>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">';
echo '<tr>';

foreach ($items as $item)
  echo '
    <td class="windowbg2" width="20%">
      <div class="smalltext" style="text-align: center; line-height: 1.4em; padding: 5px;">
      <a href="',$galurl,'sa=item;id=',$item['id'],'"><img src="',$galurl,'sa=media;id=',$item['id'],';thumb" alt="" /></a><br />
      ',$txt['mgallery_posted_by'],': <a href="',$scripturl,'?action=profile;u=',$item['poster_id'],'">',$item['poster_name'],'</a><br />
      ',$txt['mgallery_in_album'],': <a href="',$galurl,'sa=album;id=',$item['id_album'],'">',$item['album_name'],'</a>
      ',$item['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
      </div>
    </td>';
echo '
  </tr>
</table></div>';
//End showing the 5 most recent additions to the gallery
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 13, 2008, 05:48:00 PM
Quote from: BYUFanatic on November 13, 2008, 09:06:23 AM
Ah... I was unaware that there was two sets of permissions for users. I have now enabled permissions in in the General Permissions area.
Well, it's not like there's a link to that area just after (re)installing the mod....  :P
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: RCC_SaMiaM on November 14, 2008, 01:04:25 PM
How do you show user albums that were converted over from coppermine?  The access field was blank which I thought was the problem so I change it to show to everyone, but I still do not see any of them in the gallery.

Also if I go to "my albums" and click on "Add user album" the url is correct but it just shows the homepage of the gallery.  So that isn't working as well.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: dannyd on November 14, 2008, 02:20:09 PM
Is there any way of displaying the recent video on the first page ?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 14, 2008, 03:03:26 PM
Quote from: Nao 尚 on November 13, 2008, 05:48:00 PM
Quote from: BYUFanatic on November 13, 2008, 09:06:23 AM
Ah... I was unaware that there was two sets of permissions for users. I have now enabled permissions in in the General Permissions area.
Well, it's not like there's a link to that area just after (re)installing the mod....  :P

Hmmm... I didn't get that link. Maybe because at the time I had English-UTF8 as my language so the link didn't show up?

In any case, thanks for pointing that out for me. My students are now happily enjoying the videos and I'm pleased at how well it's working.

But, speaking of missing info on the screen - I still have the problem of being forced to go to ADMIN -> SERVER SETTING and re-save my language as "English" every single time I login to the forum in order to see everything showing up correctly in the admin area of SMG. Any idea why?

And, is it possible to re-size the video thumbnails? After I ran maintenance on SMG they went from being nice, easy-to-see multiple thumbnails on the screen at once to these HUGE oversize thumbnails (about one thumbnail per screen). In fact, I'd love to be able to attach my own thumbnails to the videos or to have SMG actually take a snapshot of the video instead of using a "filmstrip" icon. At the very least, I need to resize these thumbnails, they're HUGE!

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 15, 2008, 12:00:43 AM
What is your max. thumbnail values in Gallery settings?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 15, 2008, 12:03:58 AM
Quote from: Dragooon on November 15, 2008, 12:00:43 AM
What is your max. thumbnail values in Gallery settings?

120 by 120.

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 15, 2008, 12:05:46 AM
Do you have a link to your site? Where we can see your *huge* thumbnails?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 15, 2008, 12:08:31 AM
When I right-click the thumbnails and look at the properties it shows 726 x 486.

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 15, 2008, 12:10:22 AM
Uh link?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 15, 2008, 12:17:14 AM
Quote from: Dragooon on November 15, 2008, 12:10:22 AM
Uh link?

PM sent.

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 15, 2008, 02:45:20 AM
Quote from: RCC_SaMiaM on November 14, 2008, 01:04:25 PM
How do you show user albums that were converted over from coppermine?  The access field was blank which I thought was the problem
Yes, this was fixed last week, but I don't know if Dragooon release the updated converter...

Quoteso I change it to show to everyone, but I still do not see any of them in the gallery.
Dunno, then...

QuoteAlso if I go to "my albums" and click on "Add user album" the url is correct but it just shows the homepage of the gallery.  So that isn't working as well.
What's your URL?

Quote from: dannyd on November 14, 2008, 02:20:09 PM
Is there any way of displaying the recent video on the first page ?
Yes.

Quote from: BYUFanatic on November 14, 2008, 03:03:26 PM
Hmmm... I didn't get that link. Maybe because at the time I had English-UTF8 as my language so the link didn't show up?
Dunno.

QuoteBut, speaking of missing info on the screen - I still have the problem of being forced to go to ADMIN -> SERVER SETTING and re-save my language as "English" every single time I login to the forum in order to see everything showing up correctly in the admin area of SMG. Any idea why?
No. If we'd known, we'd have answered earlier, you know... It's not an SMG issue, obviously. You should ask the SMF team then. Or your host.

QuoteAnd, is it possible to re-size the video thumbnails?
Yes, but you'll have to resize ALL thumbnails then... Change thumbnail size and do the Regenerate process. (Although a bug in RC2 will probably make your generic icons not show up, and replace them with your video instead!! This is fixed in RC3... Coming soon! It's probably the reason for your oversized "thumbnails"...)

QuoteAfter I ran maintenance on SMG they went from being nice, easy-to-see multiple thumbnails on the screen at once to these HUGE oversize thumbnails (about one thumbnail per screen).
Err....

QuoteIn fact, I'd love to be able to attach my own thumbnails to the videos or to have SMG actually take a snapshot of the video instead of using a "filmstrip" icon.
Unfortunately, this can't be done, at least without the FFMpeg module installed... Means you have to have your dedicated server, probably. I'm in the same mess as you are. :(

PS: you didn't CC me your PM... ::)
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Chamaeleon on November 15, 2008, 09:23:17 AM
I would need the code for myvideo.de (http://www.myvideo.de/)

for the....MGallery-Embed.php

Thanks



Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: RCC_SaMiaM on November 15, 2008, 11:11:00 AM
View user galleries - http://ramchargercentral.com/index.php?action=mgallery;sa=viewuseralbums

Add album - http://ramchargercentral.com/index.php?action=mgallery;sa=useralbums;do=add
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 15, 2008, 11:13:06 AM
And the purpose for that was?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Chamaeleon on November 15, 2008, 11:46:47 AM
Quote from: RCC_SaMiaM on November 15, 2008, 11:11:00 AM
View user galleries - http://ramchargercentral.com/index.php?action=mgallery;sa=viewuseralbums

Add album - http://ramchargercentral.com/index.php?action=mgallery;sa=useralbums;do=add

View user galleries - http://ramchargercentral.com/index.php?action=mgallery;sa=vua

Add album - http://ramchargercentral.com/index.php?action=mgallery;sa=mya;do=add





Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 15, 2008, 11:49:50 AM
Quote from: Chamaeleon on November 15, 2008, 09:23:17 AM
I would need the code for myvideo.de (http://www.myvideo.de/)

for the....MGallery-Embed.php

Thanks
Install AEVAC!
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Chamaeleon on November 15, 2008, 11:55:36 AM
Quote from: Nao 尚 on November 15, 2008, 11:49:50 AM
Install AEVAC!

Thanks  :)

Edit: The embed URL was either bad or was from a non-supported site  :(
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: dannyd on November 15, 2008, 01:33:23 PM
HI,

How do you display recent images on the home page of website ? Is there a setting for this in admin panel ?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 15, 2008, 01:43:29 PM
Quote from: Nao 尚 on November 15, 2008, 02:45:20 AM
QuoteBut, speaking of missing info on the screen - I still have the problem of being forced to go to ADMIN -> SERVER SETTING and re-save my language as "English" every single time I login to the forum in order to see everything showing up correctly in the admin area of SMG. Any idea why?
No. If we'd known, we'd have answered earlier, you know... It's not an SMG issue, obviously. You should ask the SMF team then. Or your host.

one (http://www.simplemachines.org/community/index.php?topic=260821.msg1795351#msg1795351)
two (http://www.simplemachines.org/community/index.php?topic=260821.msg1796404#msg1796404)
three (http://www.simplemachines.org/community/index.php?topic=260821.msg1798463#msg1798463)
But, it's cool. I know ya'll are busy. *smile*

Good idea - I'll throw it out to the general SMF population and see if anyone has any ideas.


Quote from: Nao 尚 on November 15, 2008, 02:45:20 AM
QuoteAnd, is it possible to re-size the video thumbnails?
Yes, but you'll have to resize ALL thumbnails then... Change thumbnail size and do the Regenerate process. (Although a bug in RC2 will probably make your generic icons not show up, and replace them with your video instead!! This is fixed in RC3... Coming soon! It's probably the reason for your oversized "thumbnails"...)

That's what caused the problem in the first place - regenerating process. Previously my video files had "filmstrip" icons that were 120x120 in size. I saw in the MAINTENANCE section that I could regenerate thumbnails I thought "Cool! Maybe they're using ffmpeg or something and it'll create video captures for icons." Nope. My 120x120 filmstrip icons were blown up to 720x480 icons. Odd thing is, sometimes the icons show up, and sometimes they don't. Haven't had any time at all to explore why (its the end of a grading period and I have 150 students I'm calculating grades for).

Quote from: Nao 尚 on November 15, 2008, 02:45:20 AM
QuoteIn fact, I'd love to be able to attach my own thumbnails to the videos or to have SMG actually take a snapshot of the video instead of using a "filmstrip" icon.
Unfortunately, this can't be done, at least without the FFMpeg module installed... Means you have to have your dedicated server, probably. I'm in the same mess as you are. :(

Wanna know what I want for Christmas? Auto thumbnailing that'll take snapshots from the video file itself. *smile*I've heard of ffmpeg and have looked at the syntax required to create thumbnails. It's not hard, but it is cumbersome. There are actually other programs out there that'll batch-create thumbnails for me, but then I have to upload both the videos and the thumbnails and match them up.

Think of it this way - my students create a lot of videos - projects that they do. I also create practice videos for my students to review what we've learned in class. I want to upload them to my server for them to review (and to also view their classmates' videos). I've looked at a number of packages but have not seen anything that does ALL of the following :

1 - integrates seamlessly into SMF
2 - allows for batch uploading without using FTP - it's blocked on school servers
3 - automatically creates video thumbnails

The KEY is that it must be QUICK and EASY. I just don't have time to manually upload dozens of videos on a regular basis. SMG comes the closest, so that makes me pretty happy. In fact, yours is the only one I've made available to my students. It might seem I'm complaining a lot, but I'm actually very happy I've found SMG. Once we can iron out the quirks on my forum I'll be even happier. #1 and #2 are highest on my "wish list" and if you guys do #3 then I'll definitely be one extremely happy camper.

Quote from: Nao 尚 on November 15, 2008, 02:45:20 AM
PS: you didn't CC me your PM... ::)

Done.

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 15, 2008, 03:32:15 PM
@dannyd> Okay, that's like the 70th time someone's asking for that... Definitely not going to do that! Where WOULD we put the thumbnails, anyway? Do you really think there's room enough on a board index to show thumbnails somewhere without it looking awkward?

Quote from: BYUFanatic on November 15, 2008, 01:43:29 PM
But, it's cool. I know ya'll are busy. *smile*
Again, I repeat: if we'd known (the answer), we'd have answered earlier...

QuoteThat's what caused the problem in the first place - regenerating process.
The Regenerate function was thrown together quite quickly (by Dragooon, but hush hush!), and it was really buggy. Mainly because I added a lot of extensions to several areas (album icons & generic icons, mainly), which the Regenerate feature didn't/wouldn't/couldn't support. Even until yesterday, we were positive everything was working fine, until I finally tried Regenerate myself, and had two bugs with it. Fixed them both, of course... But this time, it should work. Just wait for RC3... Hopefully it'll be released tomorrow, if Dragooon can get the SVN server back on its feet.

QuoteWanna know what I want for Christmas? Auto thumbnailing that'll take snapshots from the video file itself.
I would have implemented that long ago if I could have...
Unfortunately, it CAN be done, but only via FFMpeg, and you know what? I don't have FFMpeg on my server... Otherwise, I'd do it...

I even know the instruction to call:

ffmpeg -i "$Filename" -vcodec mjpeg -vframes 1 -an -f rawvideo -s 160x120 "$Screenshot.jpg"

Quote*smile*I've heard of ffmpeg and have looked at the syntax required to create thumbnails. It's not hard, but it is cumbersome. There are actually other programs out there that'll batch-create thumbnails for me, but then I have to upload both the videos and the thumbnails and match them up.
As for uploading separate thumbnails for the videos, it's in my to-do-list... But I won't implement it this week (or even this month). I have other priorities... Including getting a frigging final 1.5 out :P (Which is hard when you're spending most of your time developing new features because the new RC isn't coming out and you have nothing better to do ;D)

QuoteI've looked at a number of packages but have not seen anything that does ALL of the following :

1 - integrates seamlessly into SMF
2 - allows for batch uploading without using FTP - it's blocked on school servers
3 - automatically creates video thumbnails
Yeah, well, it's Christmas soon, maybe a reindeer will come and visit you with a smile or something... Maybe a new competitor script... :D

QuoteThe KEY is that it must be QUICK and EASY. I just don't have time to manually upload dozens of videos on a regular basis. SMG comes the closest, so that makes me pretty happy. In fact, yours is the only one I've made available to my students. It might seem I'm complaining a lot, but I'm actually very happy I've found SMG.
I'm happy too... ^^ I'm not too happy about having to spend so much time on the damn thing, but it's cool being able to directly share my new features with the community. Haven't been able to do that since, uh... Since my good ol' days with Kyodai Mahjongg.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 15, 2008, 04:24:17 PM
No worries about ffmpeg. Integrating it would be a very nice feature, but not required. If you noticed when you peeked at my forum, all my videos were FLVs. I use a program called Quickmedia Converter and it allows me to batch-convert all my videos - while creating a nice little jpeg of each one at the same time (to be used as a thumbnail). Now if I just had a way to batch-upload both of them (the jpeg and the flv) so that I could have custom thumbnails... (again, the key being in the ease and simplicity of it - I don't have time to babysit manual uploads of dozens of files).

Guess I'll just have to wait for it to hit the top of your to-do-list! *grin*

The real pain is that other packages I've looked at might allow me to batch upload, but they only let me do it via FTP, or I can batch upload, but I have to manually connect each thumbnail to each video myself. If SMG allowed me to batch upload the thumbnails and the videos and would automatically look for uploaded thumbnails (jpegs with the same name as the flv for example) that'd be cool. Lots of gallery programs work great with pictures, but have yet to find anything that is just as "friendly" when it comes to videos.

OK... gotta run... things to do, places to be. What I really need to do is clone myself so that I can get everything done that I need to!

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: jackregan on November 15, 2008, 04:42:45 PM
I don't have time to read through 47 pages, so I apologise if this has been covered, but...

My browser crashes every time I try to do a Mass upload to an album. I use Mac OS X and this happen with all my browsers (Safari, FF and Flock).

Sometimes it happens when I hit 'Mass Upload' within the album. Other times, that's okay but then it goes wrong when I hit 'select files' within the Mass uploads screen.

Any thoughts??
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 15, 2008, 04:54:12 PM
47 pages is not that big... :P

I experienced that too, but very irregularly... Currently I'm not having any more problems. This might be because I updated the Flash file to the latest version ;) (Released this week.)
Here it is, attached. Unzip the file into your /Themes/default/mgallery/up/ folder (erase the existing swf file).
Tell us if it fixes the problem!
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 15, 2008, 04:57:56 PM
Quote from: BYUFanatic on November 15, 2008, 04:24:17 PM
Guess I'll just have to wait for it to hit the top of your to-do-list! *grin*
Companion thumbnails are much higher in the list -- and they're also more realistic to implement, because the FFMpeg solution will never allow you to choose which frame you want to use as the thumbnail...
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: jackregan on November 15, 2008, 05:23:49 PM
No, it's still crashing I'm afraid.

I am using SMF 1.1.7 with a version of the gallery installed today.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 15, 2008, 05:32:27 PM
Did you forget to empty your cache, by any chance?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: jackregan on November 15, 2008, 08:04:55 PM
I am testing the mod with a test version of SMF 2.0 b4 I have installed as well as with 1.1.7.

It works fine with 2.0, but still crashes the browser with 1.1.7 - not sure why.


By the way, it's an awesome mod :)
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 15, 2008, 10:19:02 PM
Quote from: jackregan on November 15, 2008, 04:42:45 PM
I don't have time to read through 47 pages, so I apologise if this has been covered, but...

My browser crashes every time I try to do a Mass upload to an album. I use Mac OS X and this happen with all my browsers (Safari, FF and Flock).

Sometimes it happens when I hit 'Mass Upload' within the album. Other times, that's okay but then it goes wrong when I hit 'select files' within the Mass uploads screen.

Any thoughts??

I still crash when trying to use the mass upload feature too. I don't even have to hit SELECT FILES. I just click on the link and wait for the page to load and *poof!* FF crashes without warning. IE gives an error message at least. Nao was having me try stuff to see what the problem might be, but still haven't resolved it.

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Burke ♞ Knight on November 15, 2008, 10:36:39 PM
I still say it's more of a FireFox issue on FF crashing. IE showing an error is one thing, FF should do the same instead of continuously crashing.

I'm a diehard FF fan, yet even I am tired of FF crashing all the time. I have yet to have it crash on SMG, but that may be because I use SMF 2.0 Beta 4 version, not one for 1.1.x. However, FF does like to crash often.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 15, 2008, 10:47:10 PM
Quote from: BurkeKnight on November 15, 2008, 10:36:39 PM
I still say it's more of a FireFox issue on FF crashing. IE showing an error is one thing, FF should do the same instead of continuously crashing.

I'm a diehard FF fan, yet even I am tired of FF crashing all the time. I have yet to have it crash on SMG, but that may be because I use SMF 2.0 Beta 4 version, not one for 1.1.x. However, FF does like to crash often.

*grin*

Well... let's look at this analytically then:

Just using myself and "jackregan".

At least 3 different machines (Two with Windows XP, one with Mac OS X).

At least 4 different browsers FF, IE, Flock, and Safari.

ALL OF THE ABOVE have experienced problems with the mass upload feature not working.

Are we beginning to see a pattern yet? (Hint - it's not FF.)

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Burke ♞ Knight on November 15, 2008, 10:53:49 PM
Hey, I'm not saying there is not a problem. Just saying the crashing is FF. You even said that IE gives an error, while FF does not. You had also neglected to mention all the other browsers in previous posts that I could see. :P

Also, for your information, Flock is just a modified FF, using the Mozilla engine. ;)
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 15, 2008, 10:56:10 PM
On a different note....

I'm trying to upload a video file that is about 127 meg in size. It's failing to successfully upload. I *think* it is because I need to increase my server's upload size limit. (Vaguely remembering this from a totally different issue with a totally different program.) Does anyone happen to know where I can find that upload size limit so that I can increase it? I've looked all over my server settings and can't seem to find it anywhere, but I know it's there...

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 15, 2008, 10:58:45 PM
Quote from: BurkeKnight on November 15, 2008, 10:53:49 PM
Hey, I'm not saying there is not a problem. Just saying the crashing is FF. You even said that IE gives an error, while FF does not. You had also neglected to mention all the other browsers in previous posts that I could see. :P

Also, for your information, Flock is just a modified FF, using the Mozilla engine. ;)

The issue is not the crashing, the issue is that there is an error - mass upload is not working.

Different browsers handle the error in different ways. FF crashes, IE puts out an error message. The CAUSE is the same even if the RESULT is different. The CAUSE is not FF, so we need to let go of that and look for the SOLUTION. Ok?

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Burke ♞ Knight on November 15, 2008, 11:01:13 PM
As far as I know, most hosts have it at a set value. You may have to ask them to up it for you.

Here's few things I need to know, to better help.

1. Type of hosting: Free, Paid, VPS, Dedicated server
2. Type of control panel: cPanel, Plesk, etc...
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 15, 2008, 11:08:12 PM
Quote from: BurkeKnight on November 15, 2008, 11:01:13 PM
As far as I know, most hosts have it at a set value. You may have to ask them to up it for you.

Here's few things I need to know, to better help.

1. Type of hosting: Free, Paid, VPS, Dedicated server
2. Type of control panel: cPanel, Plesk, etc...

It is not a set value. I upped it previously (I think it used to be 40 meg and I upped it to 80-100ish). Paid server using cPanel. But, I did it so long ago that I cannot remember, for the life of me, where it is.

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Burke ♞ Knight on November 15, 2008, 11:09:37 PM
Quote from: BYUFanatic on November 15, 2008, 11:08:12 PM
Quote from: BurkeKnight on November 15, 2008, 11:01:13 PM
As far as I know, most hosts have it at a set value. You may have to ask them to up it for you.

Here's few things I need to know, to better help.

1. Type of hosting: Free, Paid, VPS, Dedicated server
2. Type of control panel: cPanel, Plesk, etc...

It is not a set value. I upped it previously (I think it used to be 40 meg and I upped it to 80-100ish). Paid server using cPanel. But, I did it so long ago that I cannot remember, for the life of me, where it is.

Rob

My cPanel has unlimited uploading, yet the way I had to do it on another host, was through the .htaccess file.

Hope that helps.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 15, 2008, 11:20:32 PM
Quote from: BurkeKnight on November 15, 2008, 11:09:37 PM


My cPanel has unlimited uploading, yet the way I had to do it on another host, was through the .htaccess file.

Hope that helps.

Ah! Yes, that was extremely helpful. I forgot that it was an actual FILE that needed to be edited. In my case, it's the php.ini file. It was previously set to 100 meg. I've now boosted that to 200 meg.

We'll see how that works. It's uploading now.

I'm off to the gym to work out. Only got to the gym twice this week. Ugh, I hate being so busy!

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 16, 2008, 03:35:10 AM
Quote from: BYUFanatic on November 15, 2008, 11:20:32 PM
Quote from: BurkeKnight on November 15, 2008, 11:09:37 PM


My cPanel has unlimited uploading, yet the way I had to do it on another host, was through the .htaccess file.

Hope that helps.

Ah! Yes, that was extremely helpful. I forgot that it was an actual FILE that needed to be edited. In my case, it's the php.ini file. It was previously set to 100 meg. I've now boosted that to 200 meg.

We'll see how that works. It's uploading now.

I'm off to the gym to work out. Only got to the gym twice this week. Ugh, I hate being so busy!

Rob

Nope... didn't work. After waiting and waiting and waiting (while it says "Loading...") I get an error message:

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

The server is set at 200 meg limit. SMG is set at 300 meg limit. The video is 127 meg. So, any ideas?

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 16, 2008, 03:39:46 AM
Quote from: BYUFanatic on November 15, 2008, 10:19:02 PM
I still crash when trying to use the mass upload feature too. I don't even have to hit SELECT FILES. I just click on the link and wait for the page to load and *poof!* FF crashes without warning. IE gives an error message at least. Nao was having me try stuff to see what the problem might be, but still haven't resolved it.

Rob
It'd be best if you actually gave me access to the Mass Upload feature in your website... :P You *can* also force me to be approved, I don't mind, I don't want the stuff published, I just want to test it...

Apart from that, I tried the mass upload module with IE7 on mforum's board (SMF 1.1.7), and it did complete the upload process without crashing... (?)

Oh, yes: for large uploads, I'm not competent. Maybe Dragooon will be able to help... The error message is definitely too vague. Dragooon, shouldn't we print out something more detailed?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 16, 2008, 03:45:21 AM
Quote from: Nao 尚 on November 16, 2008, 03:39:46 AM
It'd be best if you actually gave me access to the Mass Upload feature in your website... :P You *can* also force me to be approved, I don't mind, I don't want the stuff published, I just want to test it...

Done.

Quote from: Nao 尚 on November 16, 2008, 03:39:46 AM
Apart from that, I tried the mass upload module with IE7 on mforum's board (SMF 1.1.7), and it did complete the upload process without crashing... (?)

Yeah, I don't doubt it works on others. Just wish it worked on mine. *grin*

Quote from: Nao 尚 on November 16, 2008, 03:39:46 AM
Oh, yes: for large uploads, I'm not competent. Maybe Dragooon will be able to help... The error message is definitely too vague. Dragooon, shouldn't we print out something more detailed?

Somebody go wake Dragooon up! *grin*

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 16, 2008, 06:34:20 AM
Nobody wakes me up, otherwise you will be roasted.

Anyways, it seems like Nao is working on FancyUpload and seems to be having some sort of success.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 16, 2008, 08:00:19 AM
Quote from: Dragooon on November 16, 2008, 06:34:20 AM
Nobody wakes me up, otherwise you will be roasted.

Anyways, it seems like Nao is working on FancyUpload and seems to be having some sort of success.
I've had success reproducing mforum's SMF1+Opera bug on my own server, that's all... :P I really, really am still scratching my head when it comes to fixing it.

As for crashes, nope, sorry, can't reproduce them anymore on my computer for now... So I kinda consider these as fixed thanks to the updated swf file :P
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Burke ♞ Knight on November 16, 2008, 08:06:45 AM
BYUFanatic,

I just thought of the most obvious questions that have not been asked.

The computers you are using, how old are they? What speed? How much RAM?

Also, what is the error the IE gives you?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 16, 2008, 08:13:05 AM
Quote from: BYUFanatic on November 16, 2008, 03:45:21 AM
Yeah, I don't doubt it works on others. Just wish it worked on mine. *grin*
I don't know why it doesn't, honest...
I see the error, and I get the same behavior as on Opera+SMF1 (the page goes up to the top, no file browser appears...), but I've compared the source code for both forums, and they're basically the same. Shouldn't behave differently!

The only thing I noticed is that you still have a /forum/Themes/default/mgallery/su/ folder, which means that you probably forgot to uninstall at least one previous version when installing a new one...
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 16, 2008, 10:38:59 AM
BYU, any chance you could try this again? (With the new flash module, maybe it'll work better now...?)
http://www.simplemachines.org/community/index.php?topic=260821.msg1795592#msg1795592
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 16, 2008, 08:07:51 PM
Quote from: BurkeKnight on November 16, 2008, 08:06:45 AM
BYUFanatic,

I just thought of the most obvious questions that have not been asked.

The computers you are using, how old are they? What speed? How much RAM?

Also, what is the error the IE gives you?

My notebook is less than 2 years old. My desktop at school, brand-new. These are not clunker machines. Plenty of speed, gigabytes of ram.

The error that IE gives was posted here previously (go back a page or two and you'll see it).

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: BYUFanatic on November 16, 2008, 08:14:35 PM
Quote from: Nao 尚 on November 16, 2008, 10:38:59 AM
BYU, any chance you could try this again? (With the new flash module, maybe it'll work better now...?)
http://www.simplemachines.org/community/index.php?topic=260821.msg1795592#msg1795592

Tried it again - still crashing.

I uninstalled the previous versions of SMG before installing the new ones. Perhaps the uninstall didn't remove the directory? If it'll help, I'll remove it.

Are you getting the same error that I'm getting when you try mass-uploading on my forum? If you're getting the error on my forum but not on mforum's forum then there's something messed up on my server. Either mods are conflicting, an install went bad, or something is missing...

I'm tempted to try upgrading to SMF 2 and see if that helps.

Rob
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 17, 2008, 03:45:54 AM
Quote from: BYUFanatic on November 16, 2008, 08:14:35 PM
Tried it again - still crashing.
Yeah, well... It's too unstable for our own sake.
I installed a copy of Opera on a Virtual PC image of Vista, and it refused to run my own website's mass upload... Yeah... On a fresh copy of SMF2... Same for SMF1 as previously tested... So I thought, if you need to be extremely lucky for the script to work and even not to crash your browser at all, it's not worth keeping...

So I asked Dragooon to consider giving up on FancyUpload. He accepted.
I suggested using either of these two:
- another attempt at reimplementing SWFUpload (which worked fine under Flash 9), but a "special" version that is only modified to run on Flash 10. (This would have been my favorite solution, mostly because we KNOW it doesn't crash, and it's easier to reimplement something you already made in the past),
- YUI Uploader, which has approximately the same interface as FancyUploader.

Dragooon chose to implement YUI Uploader. We'll see how it goes. The filesize will be approximately the same... You can try it out at: http://developer.yahoo.com/yui/examples/uploader/uploader-advanced-queue.html
If *that* crashes for you, then you'd better tell us fast ;)

QuoteI uninstalled the previous versions of SMG before installing the new ones. Perhaps the uninstall didn't remove the directory?
It should... Which is why I'm surprised...

QuoteIf it'll help, I'll remove it.
No it won't, I just needed to point that out ;)

QuoteAre you getting the same error that I'm getting when you try mass-uploading on my forum? If you're getting the error on my forum but not on mforum's forum then there's something messed up on my server. Either mods are conflicting, an install went bad, or something is missing...
FancyUpload is messed up, that's all. I hate the darn thing with all my guts. I wasted so many hours, so many days on that crap!

QuoteI'm tempted to try upgrading to SMF 2 and see if that helps.
I'd be tempted to say, "if everyone could upgrade to SMF2 and PHP5, we wouldn't have to waste so much time making the whole thing cross-compatible and we would use that time to add more features", but I'm not sure everyone will agree ;)
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: psynx on November 17, 2008, 08:14:58 AM
hello, i am using dilber mc theme. and i am using smf gallery lite too. i would want to convert it to mgallery. i installed SMFMediaGallery-1.5RC2.zip in my forum and got a test failed on Execute "./Sources/Load.php" how do i fix this? is it safe if i continue installing this mod even if with the error i got? by the way im using smf 1.1.6 version.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fe.imagehost.org%2F0453%2Fload.jpg&hash=001f9796bad2f1e13e2234a7447e6b9f7db8f3d1)
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 17, 2008, 09:23:50 AM
Nah, it's probably not safe... You have another mod that conflicts with SMG's code inside file Load.php... You want to check manually for the code SMG is looking to replace, and find out what mod does the conflict. If it was correctly programmed, there should be a comment saying what mod the unexpected code belongs to.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: psynx on November 17, 2008, 02:44:23 PM
i could not find the code from the SMFMediaGallery-1.5RC2.zip that should be inserted into the /load.php file

i have it installed in my test forum even if with the error i got and it is working fine. perhaps i should continue installing it in my forum?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 17, 2008, 06:59:38 PM
I can't really say without seeing your Load.php file first, eh...
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: midiof[f] on November 18, 2008, 05:02:16 AM
Quote from: Dragooon on September 09, 2008, 03:14:05 PM

MGConverter_sgl.php - SMF Gallery to SMF Media Gallery converter (New update!)
Note : This converter has been updated, it is now more stable then the previous one

Note : Currently it only works for 1.5
pls any update for smf 1.1.6 - 1.1.7 ?

Fatal error: Call to undefined function smg_updateSettings() in /usr/export/www/hosting/yaarar.../mgconverter_sgl.php on line 180

Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 18, 2008, 07:53:46 AM
Quote from: midiof[f] on November 18, 2008, 05:02:16 AM
Note : Currently it only works for 1.5
pls any update for smf 1.1.6 - 1.1.7 ?[/quote]
SMF 1.5, not SMF 1.1.5....
It works fine on any SMF 1.1.x

QuoteFatal error: Call to undefined function smg_updateSettings() in /usr/export/www/hosting/yaarar.../mgconverter_sgl.php on line 180
RC 3 should be released tomorrow or today maybe. The coppermine converter should be updated at the same time. (I made several changes to the UTF conversion that require users to update to RC3.)
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Afro on November 18, 2008, 10:34:02 AM
Thanks for this wonderful mod..

my problem is that when i tried to upload a picture, i get this 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_Album/Dir_1','3')' at line 4
File: /home/afrowall/public_html/Sources/MGallery.php
Line: 1162

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.7, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.''

what should i do?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 18, 2008, 10:42:07 AM
What version do you use/
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Afro on November 18, 2008, 10:50:43 AM
1.1.7
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Dragooon on November 18, 2008, 10:54:57 AM
I mean what version of gallery?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Afro on November 18, 2008, 10:57:04 AM
that would be 1.0.2

i guess i m supposed to unistall and install the new release?
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Afro on November 18, 2008, 01:27:44 PM
I think it was a a mistake...Some of the codes installed twice...Its working well for now
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 18, 2008, 05:52:06 PM
Quote from: sam_milla on November 18, 2008, 10:34:02 AM
''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','3')' at line 4
File: /home/afrowall/public_html/Sources/MGallery.php
Line: 1162
Sounds like an album name with an apostrophe in it ;)
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: T-Bag on November 18, 2008, 09:36:07 PM
First I want to congratulate you for this excellent modification. Now I explain my problem: I have a portal joomla and I would like to create a module that displays the latest photos added to the gallery. It could be possible? I've installed on Joomla "Mod Jumi", that allows to insert php code.
Thank you in advance, sorry for my english.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Nao 尚 on November 19, 2008, 02:10:57 AM
Yes.
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: Simone's Expressions on November 19, 2008, 05:56:20 AM
Saw a post in this thread somewhere about thumbs not lining horizontal & didn't seem to see an answer.

Can view HERE (http://robertson426.com/index.php?action=mgallery;sa=viewalbum;id=8)
If someone can post a fix or point me in the right direction would be appreciated.

This is my main issue @ this point, so brain dead right now cant think  ::)
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Nao 尚 on November 19, 2008, 10:23:46 AM
Did you manually upload the mgallery folder into your custom theme?
If yes, you have to re-do it every time you update, eh... :p
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Dragooon on November 19, 2008, 10:29:17 AM
SMG RC 3 released!
Link to announcement topic (http://smf-media.com/community/index.php?topic=297.0)
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Dragooon on November 19, 2008, 11:08:04 AM
Meh here's a quick fix for an error in Regenerate thumbnails
Find
$file->close;
Replace with
$file->close();
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Nibogo on November 19, 2008, 11:27:55 AM
Quote from: Dragooon on November 19, 2008, 10:29:17 AM
SMG RC 3 released!
Link to announcement topic (http://smf-media.com/community/index.php?topic=297.0)

Awesome dragooon thanks for the great job
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Nao 尚 on November 19, 2008, 12:20:12 PM
Quote from: Dragooon on November 19, 2008, 11:08:04 AM
Meh here's a quick fix for an error in Regenerate thumbnails
Find
$file->close;
Replace with
$file->close();
That's in line 1012 of file MGallery-Admin.php, to be specific........ ;D

I take full responsibility for this one... I sometimes forget to add () because it's not mandatory when writing in Pascal/Delphi... Old habits ;)
I'm not exactly sure why I didn't get any errors when I tested my code, though! (Because I did test it, yeah... ::))

NIBOGO> Dragooon will be glad to know :P
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Nibogo on November 19, 2008, 12:26:42 PM
xD

I mean dragooon , nao , beta testers and smg team awesome job :P
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Nao 尚 on November 19, 2008, 01:22:08 PM
That's better ;D
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Simone's Expressions on November 19, 2008, 02:26:01 PM
 :) Thanks
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Özgür on November 19, 2008, 02:31:05 PM
1 - how can i "generate thumbnail" automatical dailymotion videos?
i see mgallery-embed.php
"// Generates thumbnail for site if possible"

2 - I already install aevac mod. But aevacs support sites not work in gallery. How i can fix this ?

3 - i try mass upload, but stopped no any change.

Overall progress (306 KB)
50%  (same)
Current file progress
100%
and stopped.

smf 2b4 - smg 1,5 Rc3 - aevac 4.0.2
Title: Re: SMF Media Gallery - 1.5 RC 2 released - SMF Gallery lite converter updated
Post by: T-Bag on November 19, 2008, 02:35:58 PM
Quote from: T-Bag on November 18, 2008, 09:36:07 PM
First I want to congratulate you for this excellent modification. Now I explain my problem: I have a portal joomla and I would like to create a module that displays the latest photos added to the gallery. It could be possible? I've installed on Joomla "Mod Jumi", that allows to insert php code.
Thank you in advance, sorry for my english.
Quote from: Nao 尚 on November 19, 2008, 02:10:57 AM
Yes.

Could you give me any clue of how to start to do it? I have no much idea
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Nao 尚 on November 19, 2008, 02:53:26 PM
Quote from: ЯocKayseri on November 19, 2008, 02:31:05 PM
1 - how can i "generate thumbnail" automatical dailymotion videos?
i see mgallery-embed.php
"// Generates thumbnail for site if possible"
It already does... (Dailymotion is a French website so it's popular on my own websites--I made sure to provide thumbnail support for it.)

Quote2 - I already install aevac mod. But aevacs support sites not work in gallery. How i can fix this ?
What sites? Give us some links to test videos...
NB: the AEVAC connection was tested with AEVAC 3 in mind -- it's the only version that is not in beta, so... I have yet to install and test with AEVAC 4.

Quote3 - i try mass upload, file uploading but %21 (same) stopped no any change.
What file size? You're probably trying to upload a file that is too big for your server to handle...
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Özgür on November 19, 2008, 03:11:10 PM
*** It already does... (Dailymotion is a French website so it's popular on my own websites--I made sure to provide thumbnail support for it.)

Thumbnail is a generic images or dailymotion thumbnail ? (if dailymotion thumbnail, not working my site. i try new video added and regenerate thumb)

Edit: in smf-media.com does work this solution but in my site added generic images videos. :S

Edit 2 : I installed fresh smf 2.0b4 & SMG 1.5 Rc3 in http://asd.rockayseri.net/index.php?action=mgallery;sa=album;id=1 but again thumbnail not dailymotion thumbnail.



*** What sites? Give us some links to test videos...

http://www.izlesene.com etc : http://www.izlesene.com/video/komik_videolar-bu-cocuk-gercekten-cok-zeki/610609 ( the site turkish videos website) this url worked in posting but not working gallery. (im using 4.0.2)

*** What file size? You're probably trying to upload a file that is too big for your server to handle...

when ı use 1.5 rc2  this is working 2.0 mb total files
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Nao 尚 on November 19, 2008, 06:00:39 PM
Quote from: ЯocKayseri on November 19, 2008, 03:11:10 PM
Edit: in smf-media.com does work this solution but in my site added generic images videos. :S
Well, then that's a problem with your install, isn't it?
Is AEVAC installed or not? (I'm not asking you to install it if uninstalled, btw... Just want to know.)

QuoteEdit 2 : I installed fresh smf 2.0b4 & SMG 1.5 Rc3 in http://asd.rockayseri.net/index.php?action=mgallery;sa=album;id=1 but again thumbnail not dailymotion thumbnail.
Would be better if you gave us a test account with upload/mass upload permission, wouldn't it....?

Also, why the heck does your template show an Edit button for guests? I've checked the code for that, it really shouldn't show it....
(Dragooon?)

Quotehttp://www.izlesene.com etc : http://www.izlesene.com/video/komik_videolar-bu-cocuk-gercekten-cok-zeki/610609 ( the site turkish videos website) this url worked in posting but not working gallery. (im using 4.0.2)
Can't help you here, I'm using AEVAC 3 (the only non-beta version)... I may install v4 in the future to test for compatibility, but at this point, hmm... I dunno... SMG is really meant to be compatible with AEVAC 3, because that's what I tested it with. (And I *suppose* most people won't touch v4, or reinstall v3, because it's said to be quite buggy.)

Quote*** What file size? You're probably trying to upload a file that is too big for your server to handle...

when ı use 1.5 rc2  this is working 2.0 mb total files
Dragooon, can you test on your local server?
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Özgür on November 19, 2008, 06:16:18 PM
I must try to aevac 4.02 uninstall and 3,2 install and reply your post. (in this night)

*** Also, why the heck does your template show an Edit button for guests? I've checked the code for that, it really shouldn't show it....
(Dragooon?)

I'm give permission for guest. So not problem this is my fault.

edit: i send pm you for account detail.
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Sudhakar Arjunan on November 19, 2008, 08:10:51 PM
SMF Media Gallery converter :

Notice: Undefined index: sp-forum in /home/itacumen/public_html/discuss/Sources/Subs.php on line 3911

Steps

Warning: Invalid argument supplied for foreach() in /home/itacumen/public_html/discuss/mgconverter_sgl.php on line 616

Error
You are not allowed to make the conversion

Using Gallery Lite - Latest version.
Smf - 2.0 beta 4.
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Nao 尚 on November 20, 2008, 02:24:28 AM
A.SK > "sp-forum"? This has nothing to do with SMG...
As for the undefined 'steps' error, I'll direct you toward Dragooon. I'm pretty much in charge of the Coppermine converter while he's in charge of the SMF Gallery one.
Hopefully, he DIDN'T forget to update the converter at the time of RC3's release, as I requested... ;)

Just in case he did, I'm attaching both converters for RC3.
Please note that I just fixed a typo (ID_COMMENt => ID_COMMENT) that may cause conversions to fail, but this is probably not for yours.

Quote from: ЯocKayseri on November 19, 2008, 06:16:18 PM
I must try to aevac 4.02 uninstall and 3,2 install and reply your post. (in this night)
This won't be necessary. Didn't you notice? You can't even upload an actual picture using your install... "Error, file not found!"
This is because the files don't get created, at all. You probably have too restrictive permissions on the mgal_dat folder, or you have no disk space left.
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Dragooon on November 20, 2008, 04:57:13 AM
I'll see with the converter soon.

@RocK - As Nao said, either the mgal_data folder is corrupted or something, you need to make sure that it is 777 as well as its sub-albums (See How do I chmod? / what is chmod? (http://docs.simplemachines.org/index.php?topic=477)).
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Boby_ on November 20, 2008, 07:39:17 AM
SMG is an absolutely magnificent addition to SMF! Thanks a lot, guys!
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: ernest on November 20, 2008, 08:22:50 AM
i've noticed that the BBC embed code from the gallery has been changed, can i edit it so it remain like rc2?
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: crustybum on November 20, 2008, 08:36:52 AM
Is there a way of mass "no right clicking" pictures (if you know what i mean) i know you can give permissions for certain members not to download, but they can still right click save as ::) is there such a way/

Chris
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Burke ♞ Knight on November 20, 2008, 08:40:33 AM
Quote from: crustybum on November 20, 2008, 08:36:52 AM
Is there a way of mass "no right clicking" pictures (if you know what i mean) i know you can give permissions for certain members not to download, but they can still right click save as ::) is there such a way/

Chris

Try this mod:

Disable Right Click (http://custom.simplemachines.org/mods/index.php?mod=1175)
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Nao 尚 on November 20, 2008, 09:08:11 AM
Quote from: crustybum on November 20, 2008, 08:36:52 AM
Is there a way of mass "no right clicking" pictures (if you know what i mean) i know you can give permissions for certain members not to download, but they can still right click save as ::) is there such a way/

Chris
You can't do that, they'll always find a way to get away with it...
Opera disables Javascript methods for "no right clicking", first of all... And even if you could stop them from right clicking, what could stop them from retrieving the picture in the browser cache? And the last straw--they could simply hit the "Print screen" key and paste it into Photoshop or something to save for later.

Consider this: if you want people to be able to watch your pics, you have to accept they'll want to save them locally. It's an honor, rather than a problem. It means they appreciated the picture.
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Özgür on November 20, 2008, 09:27:13 AM
@Nao

i give a 777 permission to mgal_data folder. now image uploading , not error.
i try aevac 4.02 uninstall and 3.1.2 install my forum and test forum  but izlesene.com and other sites (revver.com ...) not working (and smf-media.com).
And dailymotion thumbnails not working my site. Again generic images display.
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Nao 尚 on November 20, 2008, 10:18:25 AM
Quote from: ЯocKayseri on November 20, 2008, 09:27:13 AM
@Nao

i give a 777 permission to mgal_data folder. now image uploading , not error.
As I said.

Quotei try aevac 4.02 uninstall and 3.1.2 install my forum and test forum  but izlesene.com and other sites (revver.com ...) not working (and smf-media.com).
And dailymotion thumbnails not working my site. Again generic images display.
Okay, I've had another look... You have plenty of problems. You like problems, don't you?

- You didn't apply the fix Dragooon gave 30 minutes after posting RC3. (http://www.simplemachines.org/community/index.php?topic=260821.msg1805618#msg1805618) (see also my message two posts below.)
That will only interfere with the Regenerate option, though, but if it fails rebuilding thumbnails, it's harder for me to debug... I've asked Dragooon to update the files with the fix, so it shouldn't be a problem in the future.

- Your server apparently likes neither file_get_contents() nor file() for retrieving a remote file. These instructions are supported since PHP 4.3.0 and you have version 5.2.6... The script fails on line 111 of MGallery-Embed.php:

$file = ($file = @file_get_contents($url)) ? $file : implode('', @file($url));


It fails precisely on "implode", because of "wrong arguments". Which means that @file() failed. Which, in turn, means that @file_get_contents() failed and thus returned "false", leading to the alternative way of retrieving the file.
Neither of these instructions are supposed to fail in PHP 5.x!

At this point, I can't help you more without a FTP access to your website, so that I can add debug code.
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Özgür on November 20, 2008, 10:51:51 AM
I send you ftp account details for you in pm.
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Sudhakar Arjunan on November 20, 2008, 11:54:18 AM
Quote from: Nao 尚 on November 20, 2008, 02:24:28 AM
A.SK > "sp-forum"? This has nothing to do with SMG...
As for the undefined 'steps' error, I'll direct you toward Dragooon. I'm pretty much in charge of the Coppermine converter while he's in charge of the SMF Gallery one.
Hopefully, he DIDN'T forget to update the converter at the time of RC3's release, as I requested... ;)

Just in case he did, I'm attaching both converters for RC3.
Please note that I just fixed a typo (ID_COMMENt => ID_COMMENT) that may cause conversions to fail, but this is probably not for yours.


Yes i understood, What i could do now.
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Nao 尚 on November 20, 2008, 12:27:57 PM
Quote from: ЯocKayseri on November 20, 2008, 10:51:51 AM
I send you ftp account details for you in pm.
Ok, you're really doing your best to make sure this mod doesn't work, eh... ::)

After the folder permission fiasco, and the "you didn't update the mod completely" disaster, let's see how your server is configured...

- file_get_contents() is configured to fail.
- file() is configured to fail.
- curl_exec() works, so I added this to the list of possible functions to retrieve the distant thumbnail. You can see that I fixed your Youtube support.
- However, curl_exec() will fail when it gets a return value telling it to follow a redirection (e.g. that's what Dailymotion does). It would normally work, but not if safe mode is enabled. And guess what? Safe mode is enabled on your server...

So, I'm thinking, you really don't want the mod to work -- or the guy who configured your server is a real prick.

I'm still working on trying to find a fix.... >_<

PS: oh, that, and the fact that the server is configured to NEVER show any error messages...... <_< I love that one.
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Nao 尚 on November 20, 2008, 02:07:28 PM
Rock, I believe you sent me your cpanel info by pm or something like that... I didn't need it in the end.
It took me all my afternoon, but I finally blasted the little suckers!
Now, Dailymotion thumbnails are retrieved on your server, as they should.

For anyone having the same problem -- either disable PHP safe mode (which I'd recommend anyway.......), or replace function downloadToLocal($url, $local) from MGallery-Embed.php with this code block:

// This annoying little function is needed when the frigging server really doesn't want to cooperate...
// Inspired (and hopefully improved) from http://www.php.net/manual/en/function.curl-setopt.php#71313
function smg_curl_redir_exec($ch)
{
static $curl_loops = 0;
if ($curl_loops++ >= 20)
{
$curl_loops = 0;
return false;
}
curl_setopt($ch, CURLOPT_HEADER, true);
$data = curl_exec($ch);
list($header, $data) = preg_split("/(\n\n|\r\r|\r\n\r\n)/", $data, 2);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if ($http_code == 301 || $http_code == 302)
{
$matches = array();
preg_match('/Location:(.*?)[\r\n]/', $header, $matches);
if ($url = @parse_url(trim(array_pop($matches))))
{
$last_url = parse_url(curl_getinfo($ch, CURLINFO_EFFECTIVE_URL));
$url['scheme'] = $url['scheme'] ? $url['scheme'] : $last_url['scheme'];
$url['host'] = $url['host'] ? $url['host'] : $last_url['host'];
$url['path'] = $url['path'] ? $url['path'] : $last_url['path'];
$new_url = $url['scheme'] . '://' . $url['host'] . $url['path'] . ($url['query'] ? '?' . $url['query'] : '');
curl_setopt($ch, CURLOPT_URL, $new_url);
return smg_curl_redir_exec($ch);
}
}
$curl_loops = 0;
return $data;
}

function smg_file_get_contents($url)
{
if (!function_exists('curl_init') || !$c = curl_init())
return false;
curl_setopt($c, CURLOPT_URL, $url);
curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
$contents = curl_exec($c);
if (!$contents)
$contents = smg_curl_redir_exec($c);
curl_close($c);
return $contents ? $contents : false;
}

function downloadToLocal($url, $local)
{
$file = @file_get_contents($url);
if (!$file)
$file = @implode('', @file($url));
if (!$file)
$file = smg_file_get_contents($url);
$len = strlen($file);
$my_file = @fopen($local, 'w');
@fwrite($my_file, $file, $len);
@fclose($my_file);
unset($file);
return $len;
}


If anyone finds a bug with this code, please tell me... I'm not even sure more than 0.05% of all SMG users will have their server go through the whole curl functions, but I am as I am... I can't stand when something doesn't work.
Hopefully, it doesn't *break* video thumbnails for other users! Beta testing time, eh?

Dragooon, could you update the RC3 package with this new code? Thanks.
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Özgür on November 20, 2008, 03:26:08 PM
thank you so much for your help.. i can't know thanks you.. =) I can understand english but I cant speak eng. very well.So I sent information which is you want. It is working great.. I'm so happy,thanks.. but some video not working so http://asd.rockayseri.net/index.php?action=mgallery;sa=item;id=18 but some video working. ("this video" thumbnail working smf-media but norking my site.)

I'm a person who have many problems :(

if problem is safe mode off i can open it.
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: tumbleweed on November 20, 2008, 04:16:28 PM
Wanted to test out the gallery.
issues:

CPG converter only good to 1.5. Only downloads i can find is 1.5 beta RC3
Will the converter be updated for RC3?

tumble
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Nao 尚 on November 20, 2008, 04:30:51 PM
Quote from: tumbleweed on November 20, 2008, 04:16:28 PM
CPG converter only good to 1.5. Only downloads i can find is 1.5 beta RC3
Will the converter be updated for RC3?
Done long ago... Not my fault if Dragooon forgot to publish them ;)
I already posted them here, though...
http://www.simplemachines.org/community/index.php?topic=260821.msg1806690#msg1806690
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: tumbleweed on November 20, 2008, 04:47:50 PM
Quote from: Nao 尚 on November 20, 2008, 04:30:51 PM
Quote from: tumbleweed on November 20, 2008, 04:16:28 PM
CPG converter only good to 1.5. Only downloads i can find is 1.5 beta RC3
Will the converter be updated for RC3?
Done long ago... Not my fault if Dragooon forgot to publish them ;)
I already posted them here, though...
http://www.simplemachines.org/community/index.php?topic=260821.msg1806690#msg1806690

tumble

thanks.
I will let you know how it moves along.
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Nao 尚 on November 20, 2008, 05:24:13 PM
Quote from: ЯocKayseri on November 20, 2008, 03:26:08 PM
but some video not working so http://asd.rockayseri.net/index.php?action=mgallery;sa=item;id=18 but some video working. ("this video" thumbnail working smf-media but norking my site.)
Uh, I'll have to have another look... Got the error to show up:

gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file

--> so there must be an issue while downloading the thumbnail. I'm not sure why it works on some Dailymotion videos and not on some others... (??)

------

Fixed :)

It's easy, too... Just replace

list($header, $data) = preg_split("/(\n\n|\r\r|\r\n\r\n)/", $data);

With

list($header, $data) = preg_split("/(\n\n|\r\r|\r\n\r\n)/", $data, 2);

I've committed the fix, and updated my code snippet above.
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Özgür on November 20, 2008, 05:32:25 PM
very thanks for everything! finally work. =) I'm so happy.
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Nao 尚 on November 20, 2008, 05:33:03 PM
Yay, victory! :)

(And 1000 posts ;D)
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: midiof[f] on November 20, 2008, 06:01:55 PM
Thx for new update !!!! best work :)
me old problem with convert file ben solved Thaaanx :)
i have beer for you
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Soms on November 21, 2008, 05:35:30 PM
QuoteWarning: recount(/MGallery-Admin.php) [function.recount]: failed to open stream: No such file or directory in /mnt/web4/21/50/51458650/htdocs/mgconverter_sgl.php on line 501

Fatal error: recount() [function.require]: Failed opening required '/MGallery-Admin.php' (include_path='.:/opt/RZphp4/includes') in /mnt/web4/21/50/51458650/htdocs/mgconverter_sgl.php on line 501

I just got this error when I was running the converter. What do I do now. Sorry if this has been asked and answered before.
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Manu.G on November 21, 2008, 05:59:31 PM
Quote from: Nao 尚 on November 15, 2008, 11:49:50 AM
Quote from: Chamaeleon on November 15, 2008, 09:23:17 AM
I would need the code for myvideo.de (http://www.myvideo.de/)

for the....MGallery-Embed.php

Thanks
Install AEVAC!

I have install AEVAC and i get this message when I try to add a video of myvideo.de or myspace.com

The embed URL was either bad or was from a non-supported site

I have tested it with SMF Media Gallery 1.5 RC 2 and RC 3 in both version I get this message!
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Dragooon on November 21, 2008, 09:39:29 PM
What version of AEVAC? Anything in error log?
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Nao 尚 on November 22, 2008, 03:26:04 AM
Quote from: Soms on November 21, 2008, 05:35:30 PM
QuoteWarning: recount(/MGallery-Admin.php) [function.recount]: failed to open stream: No such file or directory in /mnt/web4/21/50/51458650/htdocs/mgconverter_sgl.php on line 501

Fatal error: recount() [function.require]: Failed opening required '/MGallery-Admin.php' (include_path='.:/opt/RZphp4/includes') in /mnt/web4/21/50/51458650/htdocs/mgconverter_sgl.php on line 501

I just got this error when I was running the converter. What do I do now. Sorry if this has been asked and answered before.
Open mgconverter_sgl.php and replace line 499

global $mgalFunc, $context, $converter_url;


With:

global $mgalFunc, $context, $sourcedir;
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Nao 尚 on November 22, 2008, 03:28:51 AM
Quote from: Manu0372 on November 21, 2008, 05:59:31 PM
The embed URL was either bad or was from a non-supported site
Reproduced on my side. I'll have a look later today.
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Chamaeleon on November 22, 2008, 04:44:18 AM
@ Manu0372

So viel ich weiß sprichst du auch deutsch, darum schreibe ich mal deutsch.  ;)

Hatte ja das gleiche Problem wie Du mit myvideo.de

Hab das bei mir nun direkt eingefügt.

Im AEVAC findest du die "Subs-Aevac-Sites.php", da sind die ganzen Codes der Videoseiten drin.

Diese kannst du nach Bedarf in die "MGallery-Embed.php" der Galerie einfügen.

suche // This function loads the supported video sites.
function mgal_aevac_load()
{
global $mgalSettings;

static $sites = array(

und danach einfügen

für myvideo.de also diesen Code
array(
'id' => 'myv',
'title' => 'MyVideo',
'website' => 'http://www.myvideo.de',
'type' => 'video',
'added' => '<4.0',
'plugin' => 'flash',
'embed-enabled' => true,
'embed-pattern' => 'http://(?:www\.)?myvideo\.(at|be|ch|de|nl)/(?:watch|movie)/([0-9]{1,8})',
'embed-movie' => 'http://www.myvideo.$2/movie/$3',
'embed-width' => '470',
'embed-height' => '406',
'embed-nolink' => true,
// http://www.myvideo.de/watch/2480593/O_zone_Dragosta_Din_Tei_Numa_Numa
'fix-html-pattern' => '<object style=\'width:(?:[0-9]*?)px;height:(?:[0-9]*?)px;\' type=\'application/x-shockwave-flash\' data=\'$1\'>(?:[\s]{0,3})?<param name=\'movie\' value=\'$1\' />(?:[\s]{0,3})?<param name=\'AllowFullscreen\' value=\'true\' />(?:[\s]{0,3})?</object>(?:\<br/><a href=\'$1\' title=\'(?:[^\'\<\>]*?)\'>(?:[^\<\>]*?)</a>)?',
'fix-html-url' => 'http://www.myvideo.$2/watch/$3',
),


hab das bei mir so gelöst, weil ich die Videofunktion für die normale Beiträge nicht benötige, sondern nur für die Galerie.

Ach ja, es werden keine Thumbnails heruntergeladen, das macht aber AEVAC auch nicht.
Dazu bedarf es eines weiteren Codes wie z.B. bei "youtube.com" findest du auch in der "MGallery-Embed.php" weiter oben.
Diesen Code hab ich leider auch nicht.

Gruß Chamäleon
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: psynx on November 22, 2008, 04:47:29 AM
hello,

i need help with this mod. i have this mod in my dilber mc theme. i am using smf 1.1.6 version. is there anyway i can modify my mgallery page? i mean instead of 1 column for the album, make it two or 3 columns? so if i have 12 albums showing on gallery page, it would be divided on 3 columns or 2? because if you have many albums showing on your gallery page you have to keep scrolling down until you see images or the recent pics added, random images and so on.

please let me know which files to edit and what code to find and modify. a step by step guide would be much appreciated since i am not 100% knowledgeable about coding. thank you so much in advance. Godbless!   
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Soms on November 22, 2008, 05:05:53 AM
Quote from: Nao 尚 on November 22, 2008, 03:26:04 AM
Open mgconverter_sgl.php and replace line 499

global $mgalFunc, $context, $converter_url;


With:

global $mgalFunc, $context, $sourcedir;


Thanks a lot. That did the trick.
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Nao 尚 on November 22, 2008, 05:07:38 AM
@Soms> Good :)
@Chamaeleon> Please don't speak German on an English-speaking topic. Dragooon & I don't even speak it.
@Anyone> As a result, please disregard his message and solution. We are not approving it.
@Manu0372 and anyone using AEVAC>

Okay, the problem is that SMG checks for the link before accepting it... When I added support for AEVAC, I forgot to disable that check. So I rewrote the checkEmbedLink to account for AEVAC 3 & 4 installs. The problem with AEVAC 3 is that it doesn't return a list of sites it supports (which sucks), so we're bypassing the check for that version -- which means if you insert any kind of unsupported URL, it will still be included in SMG, but all you will see when visiting the item page is a (non-clickable) text link to that place... Seems okay enough for me.

This is *untested* on AEVAC 4 (it works as expected on AEVAC 3, which I use), so please bear with me if it doesn't work on your first attempt.

Open MGallery-Embed.php and search for:

function checkEmbedLink($link)
{
global $context;

// Checks whether it the link provided is supported or not
$embed = mgal_aevac_load();

foreach ($embed as $arr)
{
$pattern = '~^'.$arr['embed-pattern'].'(?:.*?)$~i'.($context['utf8'] ? 'u' : '');
if (preg_match($pattern, $link))
return $arr['id'];
}

return false;
}

// Generates thumbnail for site if possible
function generateVideoSiteThumb($link, $id_album)
{
global $embed_album;

// Load the video sites
$sites = mgal_aevac_load();
$cur_site = array();

// Load the site we are talking about here
$id = checkEmbedLink($link);
$embed_album = $id_album;

if (!$id)
return 0;

foreach ($sites as $site)
if ($site['id'] == $id)
$cur_site = $site;

if (empty($cur_site) || !isset($cur_site['thumb']))
return 0;

// Let's create the thumbnail
return $cur_site['thumb']($link, '`' . $cur_site['embed-pattern'] . '`i');
}


Replace with:

function checkEmbedLink($link, $force_own_list = false)
{
global $context, $sites, $modSettings, $sourcedir;

// If AEVAC is installed and we're checking the link instead of retrieving a site ID, load the site list from AEVAC 4, or just bypass for AEVAC 3
if (!$force_own_link && ((!empty($modSettings['aevac_enable']) && empty($context['aevac_disable'])) || file_exists($sourcedir . '/Subs-AEVAC.php')))
{
$path = $sourcedir .'/Subs-Aevac.php';
$realpath = str_replace('\\','/',realpath($path));

// AEVAC 4
if (file_exists($path) && $path == $realpath)
{
require_once($path);
if (empty($sites))
@include_once($sourcedir . '/Subs-Aevac-Generated-Sites.php');
if (empty($sites))
@include_once($sourcedir . '/Subs-Aevac-Sites.php');
}
// AEVAC 3 can't return the site list, so we'll just consider the test passed.
elseif (file_exists($sourcedir .'/Subs-AEVAC.php'))
return true;
}

if (empty($sites)) // AEVAC 4.0 not loaded?
$sites = mgal_aevac_load();

foreach ($embed as $arr)
{
$pattern = '~^'.$arr['embed-pattern'].'(?:.*?)$~i'.($context['utf8'] ? 'u' : '');
if (preg_match($pattern, $link))
return $arr['id'];
}

return false;
}

// Generates thumbnail for site if possible
function generateVideoSiteThumb($link, $id_album)
{
global $embed_album;

// Load the video sites
$sites = mgal_aevac_load();
$cur_site = array();

// Load the site we are talking about here
$id = checkEmbedLink($link, true);
$embed_album = $id_album;

if (!$id)
return 0;

foreach ($sites as $site)
if ($site['id'] == $id)
$cur_site = $site;

if (empty($cur_site) || !isset($cur_site['thumb']))
return 0;

// Let's create the thumbnail
return $cur_site['thumb']($link, '`' . $cur_site['embed-pattern'] . '`i');
}
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: Nibogo on November 22, 2008, 10:06:25 PM
Spanish Translation of the MGallery:

http://smf-media.com/community/index.php?topic=308
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Dragooon on November 23, 2008, 06:26:02 AM
SMG 1.5 RC 3.1 released.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 23, 2008, 06:39:44 AM
@Nibogo> Remember, this is not an "official" Spanish translation... I'll need someone to proofread it before... (Heck, I even got someone to proofread the English version! ;D)

@Dragooon> You forgot to publish the changelog ;)

Version 1.5 RC 3.1                              November 23, 2008
-----------------------------------------------------------------
* Changed the [smg]123[/smg] tag into [smg id=123] and added many options...
+ ...Such as [smg id=123 type=link width=200 align=right caption="Hi, mom!"] (guess what it all means)
+ Added a (long and complicated...) alternative to downloading remote video thumbnails when all existing functions fail. (Damn you, safe mode!)
! [smg] tag no longer breaks page validation on non-SMG pages (thanks to PHP for output buffer control!)
! Make sure to call SMG's default stylesheet if using the [smg] tag in a non-SMG page
! Fixed ref attribute (instead of rel) in item page comments
! Mass Uploader wouldn't work correctly on Safari and Chrome browsers
! max_thumbs_per_page wasn't taken into account
* Replaced 'time' with 'date' in WhoRatedWhat template
! Fixed mgal_media_handler::$close error
! Fixed support for video sites that are specified only in AEVAC
! Fixed mgallery_gotolink warning message
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: haderaschta on November 23, 2008, 08:33:32 AM
working great! thanks! and double-thanks for the safari-support  ;)
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: RustyBarnacle on November 23, 2008, 01:14:53 PM
So if I understand the instructions right, if I have SMF Gallery 1.45 Pro and want to convert, I need to install SMF Media Gallery and the converter, run the converter, and then install SMF Media Gallery again?
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Dragooon on November 23, 2008, 01:22:10 PM
There is no SMF Gallery pro converter. Only SMF Gallery lite converter. And just for general note, you don't need to re-install SMG once conversion is complete.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: RustyBarnacle on November 23, 2008, 01:24:33 PM
OK, I was hoping the lite converter would do pro as well but oh well.  The instructions on the first page say the converter will wipe out SMG which is why I asked.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Burke ♞ Knight on November 23, 2008, 01:27:26 PM
I do believe that means it will wipe out SMF Gallery Lite.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 23, 2008, 02:10:52 PM
Quote from: RustyBarnacle on November 23, 2008, 01:24:33 PM
OK, I was hoping the lite converter would do pro as well but oh well.
We might do it in the feature. I haven't looking into SGP for months, I don't remember exactly what feature set it has, so I'm not sure whether everything can be converted... Does SGP have any features that SMG doesn't have? I'm just asking.

Burke> No, SGL or Coppermine won't be wiped out. SMG's entries will be wiped out to make room for the converted data, obviously. We don't wipe out the originals because we want to be able to provide our mods as alternatives, we're not forcing anyone's hand here. Anyone is free to give SMG a try and then go back to either SGL or Coppermine if they're more comfortable with them -- no questions asked.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 23, 2008, 02:34:11 PM
These bugs were found today in RC 3.1 and have been fixed, but the package hasn't been updated. We are recommending that you apply these changes manually if you experience any problems.

MGallery-Embed.php: (This will fix issues when fetching video site thumbnails, or when submitting video site links if AEVAC version 3 (not 4) is not installed.)

Search for $force_own_link, replace with $force_own_list.
A few lines below, replace

foreach ($embed as $arr)

With

foreach ($sites as $arr)

Subs-MGallery.php: (This will fix an issue with the smg tag)

Search for function smg_parse_bbc(&$message)

Inside it, replace the first line (global $context) with:

global $context, $smcFunc;

A few lines below, replace $context['is_smf2'] with isset($smcFunc)

MGallery.template.php (in your template folder): (This will fix the outdated embed link using the smg tag)

Replace

echo '<tr><td class="info smalltext">',$txt['mgallery_embed_bbc'],'</td><td class="info"><input id="bbc_embed" type="text" size="60" value="[smg]' . $item['id_media'] . '[/smg]" onclick="return selectText(this);" readonly="readonly" /></td></tr>';

With:

echo '<tr><td class="info smalltext">',$txt['mgallery_embed_bbc'],'</td><td class="info"><input id="bbc_embed" type="text" size="60" value="[smg id=' . $item['id_media'] . ']" onclick="return selectText(this);" readonly="readonly" /></td></tr>';


I know it isn't needed, but since I am quick to point out when Dragooon adds a bug (;D), I feel it's only logical that I take responsibility for these annoying bugs. I had very limited time to code this weekend, and these kinds of bugs should never have gone through the commit process. Really sorry.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: RustyBarnacle on November 23, 2008, 03:06:09 PM
There are so many features in each that I haven't done an exhaustive check, but I do prefer your mass upload to SGP's bulk add.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 23, 2008, 04:18:06 PM
Quote from: RustyBarnacle on November 23, 2008, 03:06:09 PM
There are so many features in each that I haven't done an exhaustive check, but I do prefer your mass upload to SGP's bulk add.
I certainly hope so... We put a lot of work into it ;) (Especially Dragooon.) We implemented SWFUpload, then dropped it because it didn't support Flash 10, then FancyUploader, which had a tendency to crash browsers at random, and then YUI Uploader, which seems to be fine for now... Phew ;)
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: magarto on November 23, 2008, 06:15:08 PM
Is it possible to add links with the 5 (per example) last albums published by users in the home?
I mean:

Last message: "New member!!" ( 23 November 2008, 22:20:36 )
Last albums: "Album 1" ( magarto on 23 November 2008, 22:20:36 )
                     "Album 2" ( richard on 23 November 2008, 22:30:36 )
                     "Album 2" ( peter on 23 November 2008, 22:40:36 )

Thanks in advance
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: RustyBarnacle on November 23, 2008, 07:06:45 PM
I was also wonder, as it got lost in the shuffle, if there was a known TP block that worked for picking out random pics?  I know I posted before that it wasn't working for me but so many other people had bigger issues that I let it go.
Title: Re: SMF Media Gallery - 1.5 RC 3 released
Post by: psynx on November 23, 2008, 10:33:04 PM
Quote from: psynx on November 22, 2008, 04:47:29 AM
hello,

i need help with this mod. i have this mod in my dilber mc theme. i am using smf 1.1.6 version. is there anyway i can modify my mgallery page? i mean instead of 1 column for the album, make it two or 3 columns? so if i have 12 albums showing on gallery page, it would be divided on 3 columns or 2? because if you have many albums showing on your gallery page you have to keep scrolling down until you see images or the recent pics added, random images and so on.

please let me know which files to edit and what code to find and modify. a step by step guide would be much appreciated since i am not 100% knowledgeable about coding. thank you so much in advance. Godbless!

anyonce care to share ideas pls?
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 24, 2008, 03:01:52 AM
We already have much more work than we'd like. Dragooon has school duties, and I have other projects to take care of at the same time (plus, now I'm considering taking over AEVAC since so many people have asked me and I'm still waiting for someone else to take it over... That doesn't seem likely, unfortunately. And I really want AEVAC to be updated again.)

So, basically: at least for now, we're not going to write code for *one* user. We consider requests from multiple users, but that's it.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: vulcan59 on November 24, 2008, 05:41:10 AM
Hi there,

I need some help here.

I downloaded and did a manual install. I log into but couldn't get into admin. I got a function error with the message McGallery_AdminCP not found and pointing to the source as /forum/Sources/McGallery_AdminCP??  Same with a bunch of other error messages all pointing to /forum/Sources/some_file not found.

Could someone confirm - The 3 directories (mgal_data, Sources, & Themes) in the zip folder that I downloaded should be on "root" and and not in /forum/...

When I did put the files there, it seem to work but again a whole bunch of other errors came up. Kind of confuse here.  :'(

Any suggestions? 

 
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 24, 2008, 07:02:12 AM
Yeah, only one suggestion: drop McGallery, it sucks. Go for BurgerKingGallery, it tastes much better.

And do manual installs correctly, I dunno :P There aren't that many changes to apply to the SMF files...
Your files should be in /forum/
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: qubbah on November 24, 2008, 11:31:26 AM
Hope oneday.. there is an option to put two or three youtube embedding in same page.

Like if the youtube videos have a series we can add three video side by side.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 24, 2008, 11:36:15 AM
Nope.
Do a forum post and use AEVAC for that.

I'm thinking of putting an audio player that supports playlists, though--and then I would feed the album's item list into it and you could create albums with audio items that play in a single player.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: qubbah on November 24, 2008, 11:38:21 AM
how about the block code for tp to show the latest comment in mgallery?
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 24, 2008, 12:00:17 PM
?
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: qubbah on November 24, 2008, 12:04:54 PM
php code to put in php block for tinyportal.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Özgür on November 24, 2008, 12:11:14 PM
Quote from: qubbah on November 24, 2008, 12:04:54 PM
php code to put in php block for tinyportal.

Random image  http://smf-media.com/community/index.php?topic=121.0

Recent image http://smf-media.com/community/index.php?topic=42.0
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: vulcan59 on November 24, 2008, 01:06:33 PM
Quote from: Nao 尚 on November 24, 2008, 07:02:12 AM
Yeah, only one suggestion: drop McGallery, it sucks. Go for BurgerKingGallery, it tastes much better.

And do manual installs correctly, I dunno :P There aren't that many changes to apply to the SMF files...
Your files should be in /forum/

Ha, didn't notice i had added a "c" after "M", and no I stay away from any burgers....hahahah

But seriously Nao. I did check that the manual changes are correct. And I did that twice and both times I got the same result. So just to understand you, you are saying to put the 3 directories in the /forum/

But there is a "Sources" folder currently in the /forum/? Same with "Themes", there is a "Themes folder in /forum/.  Not very sure which is why i am asking. Below is the error log and there is a whole bunch of them.

Quote2: require_once(/mydomain/forum/Sources/MGallery-Admin.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory
File: /mydomain/forum/Sources/Subs.php
Line: 2822

Quote2: require_once(/mydomain/forum/Sources/Subs-MGallery.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory
File: /mydomain/forum/Sources/MGallery-Admin.php
Line: 26
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 24, 2008, 01:17:09 PM
Well, you've never installed a mod before, have you?

Just do as I'm saying... Overwrite, overwrite.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: vulcan59 on November 24, 2008, 01:25:41 PM
Yep that's what I thought. Just to be sure.

Thanks I'll try that again.

............

And yes it's working although I don't see a "Gallery" button yet. Using DilberMC theme. 
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: vulcan59 on November 24, 2008, 02:05:44 PM
Hi Nao,

Apologies for bothering you again. When I switch to default theme, the "Gallery" button is there but not when I switch back to DilberMC theme.  I suppose there is another mod that I need to do to my DilberMC theme?

Any guidance?

Thanks.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 24, 2008, 02:50:25 PM
Yep.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: vulcan59 on November 24, 2008, 03:15:50 PM
Okay thanks.

Just to confirm the two DilberMC files would be /Themes/DilberMC/index.template.php and
/Themes/DilberMC/languages/Modifications.english.php?

Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 24, 2008, 03:20:59 PM
I don't know what your version of SMF is... If it's 1.1, yes. Otherwise, it's Subs.php, not index.template.php (but then of course, there would be no reason for the link not to appear.)
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: vulcan59 on November 24, 2008, 03:31:14 PM
Oh sorry, I am using SMF 1.1.7 with the DilberMC theme with no other mods whatsoever except the just modified SMF Gallery.

The "Gallery" button appears only when I change to default theme. No error messages in the gallery error log.



Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: BYUFanatic on November 24, 2008, 05:38:35 PM
Hey gang! (Nao and Dragooon)

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). In 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."

After 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*

Rob
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: vulcan59 on November 24, 2008, 06:08:19 PM
Hi Nao,

I did the mod to /DilberMC/index.template and the gallery button showed up but the colors and font were all wrong. However is no Modifications.English.php file but a Settings.English.php.

What are the files that I need to modify in the DilberMC themes?

Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: T-Bag on November 24, 2008, 08:22:54 PM
Quote from: ЯocKayseri on November 24, 2008, 12:11:14 PM
Quote from: qubbah on November 24, 2008, 12:04:54 PM
php code to put in php block for tinyportal.

Random image  http://smf-media.com/community/index.php?topic=121.0

Recent image http://smf-media.com/community/index.php?topic=42.0

Work this blocks on Joomla under mod_jumi???
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: 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.

The mod installed cleanly BTW.

Any help appreciated.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: vulcan59 on November 25, 2008, 02:49:02 AM
Hi all,

Managed to sort it out but now I have a whole bunch of errors in the forum error log but not in the gallery error log.

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

Quote8: Undefined variable: scripturl
File: /home/on/arrowcat.co.nz/forum/Sources/MGallery-Admin.php
Line: 564

and a whole bunch of album not found!!

Any help Nao?

Thanks.


Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: 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".
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: vulcan59 on November 25, 2008, 04:15:36 AM
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
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 25, 2008, 04:55:27 AM
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?
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: vulcan59 on November 25, 2008, 05:04:25 AM
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?

Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 25, 2008, 05:27:19 AM
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.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: vulcan59 on November 25, 2008, 05:36:00 AM
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)
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 25, 2008, 06:26:44 AM
Didn't we already tell you to do that in the first place....?
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 25, 2008, 09:13:51 AM
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 ;)
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Dragooon on November 25, 2008, 09:41:13 AM
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.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Soms on November 25, 2008, 01:03:26 PM
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?
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: vulcan59 on November 25, 2008, 02:48:16 PM
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.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 25, 2008, 04:15:36 PM
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...)
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: vulcan59 on November 25, 2008, 04:23:14 PM
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?
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: 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.




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
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 25, 2008, 05:37:03 PM
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.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 25, 2008, 05:40:25 PM
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.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: vulcan59 on November 25, 2008, 06:15:12 PM
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.

Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 25, 2008, 06:21:44 PM
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...
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: 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
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: tk2012 on November 25, 2008, 08:43:26 PM
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
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Elijah Bliss on November 25, 2008, 09:03:13 PM
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.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: vulcan59 on November 26, 2008, 01:24:33 AM
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

Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 26, 2008, 02:16:21 AM
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.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: vulcan59 on November 26, 2008, 02:21:14 AM
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
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Soms on November 26, 2008, 03:06:04 AM
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.  :)
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: vulcan59 on November 26, 2008, 03:42:28 AM
Hi Nao,

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

Link Removed ( see below )

Regards.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 26, 2008, 04:01:42 AM
...

(Why are you posting a link to that? It has nothing to do with SMG. It can only add more confusion.)
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 26, 2008, 06:49:29 AM
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.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Dragooon on November 26, 2008, 07:08:10 AM
@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?
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: ernest on November 26, 2008, 08:33:25 AM
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.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Dragooon on November 26, 2008, 08:44:08 AM
No its not a must? It works without the KW as well.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: ernest on November 26, 2008, 08:54:31 AM
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.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: 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.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Dragooon on November 26, 2008, 09:35:10 AM
Yes, 1.5 does that. You are in the right place.
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: tk2012 on November 26, 2008, 09:35:13 AM
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
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: Nao 尚 on November 26, 2008, 09:43:52 AM
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! ;)
Title: Re: SMF Media Gallery - 1.5 RC 3.1 released
Post by: ernest on November 26, 2008, 09:44:47 AM
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.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Dragooon on November 26, 2008, 10:00:36 AM
Well not currently. I never got time to work on a SGP converter. SGL converter may work but I have low hopes on that.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on November 26, 2008, 10:02:10 AM
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
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: vulcan59 on November 26, 2008, 03:39:56 PM
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? 
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on November 26, 2008, 04:02:51 PM
Absolutely. (I see no reason for installing manually in the first place, anyway...?)

Let's skip to a more enjoyable subject.




http://custom.simplemachines.org/mods/index.php?mod=1365
Top and bottom of the mod page :)
Share your results!

For those who are too lazy to click -- this is a test version of a SMF Gallery Pro to SMG converter. I had an internal conflict with myself on this (yeah... I'm strange), because I have a lot of respect for vbgamer45 and don't want him to consider I'm betraying him by doing a converter for SGP. However, I changed my mind, because I'm a wicked, wicked man:

- It will only convert the features that are in SMG. So, bye bye "mature" checkbox and little things like that. Until we implement them at least. (But I'm not doing them.)
- It currently doesn't recreate the folder structure -- i.e., subs-albums appear as normal albums. This will be fixed in a later release though, I'm just a bit tired after 3 straight hours of coding.
- People who have SGP installed have bought it in the first place. It's not like we're driving sales away from SGP by releasing a SGP converter. If something were to do that, it would be the SGL converter, and I wasn't even on the project when it was made...
- People who desperately WANT to switch from SGP to SMG will use the Mass Uploader if they can't find a converter. Well, I just want to save them the hassle of doing that.
- Just so we're clear, vb or anyone else is welcome to come up with a SMG->SGP converter as well. If you need any help, just PM me.

The filename is mgconverter_sgp.php and the conversion process is exactly the same as for the other converters.

PS: I found out that the SGL converter had a lot of little issues here and there, including the generic icons getting destroyed in the process. Can anyone confirm this?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: vulcan59 on November 26, 2008, 04:31:08 PM
Quote from: NaoAbsolutely. (I see no reason for installing manually in the first place, anyway...?)

Well you'll remember that my server was running in safe.mode and thus I couldn't install via packages but manually. So I'll have to wait for the manual instructions to come out rather than do a manual uninstall and mess things up!!!!

Thanks Nao.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on November 26, 2008, 04:47:24 PM
I see. But... Manual instructions... You realize these are generated automatically? We don't do it ourselves huh...

As for uninstalling, just upload your rc 3.1 mod to the smf package parser (i don't remember the url), and take a note of every change you made...
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: RustyBarnacle on November 26, 2008, 04:52:41 PM
Wow, I just finished using the other converter and it worked.  Granted the subs didn't work but thats weird that it worked if you had to make a new one.  Maybe I just got lucky.

I was actually coming here to post a thank you for the feature of waiting a second here and there so as not to crash the server.  This worked on Bluehost and still it didn't crash.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on November 26, 2008, 05:05:54 PM
Quote from: RustyBarnacle on November 26, 2008, 04:52:41 PM
Wow, I just finished using the other converter and it worked.  Granted the subs didn't work but thats weird that it worked if you had to make a new one.  Maybe I just got lucky.
You don't use user albums (user categories), do you?
This is one of the features that won't be converted by the SGL script.
Also, generic icons get erased. Previews aren't converted. I think that's all (for the main stuff that needed to be updated, I mean.)

QuoteI was actually coming here to post a thank you for the feature of waiting a second here and there so as not to crash the server.  This worked on Bluehost and still it didn't crash.
Oh, well, originally the script waited for 5 seconds... But you really need to be solid if you want to wait for so long ;) Anyway--you can set max script execution time and max wait time within the script itself.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: RustyBarnacle on November 26, 2008, 05:19:34 PM
Ahhh, yes we did lose the user galleries but only a handfull of users made any and it only added up to 102 pics out of the 1800 we had.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on November 26, 2008, 05:57:26 PM
Well, you can re-import using the new script...
(Or wait until I integrate the folder structures.)
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: RustyBarnacle on November 26, 2008, 05:59:15 PM
I just manually moved them all, made a new group with access to the old gallery and told the few that had personal galleries that I could give them access to the old gallery if they wanted to see what they were missing and if not just start fresh with new pics.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: RustyBarnacle on November 26, 2008, 06:04:44 PM
One feature request for some day would be to allow a group to create general albums, not just user albums without full admin.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Manu.G on November 26, 2008, 06:22:18 PM
I installed 1.5 RC 3.2 and thought cause of this the entries in my error log will be history, but I was wrong. I still get these messages in the error log:

Quote8: Undefined index:  child_level
File: /is/htdocs/.../.../forum/Sources/Subs-MGallery.php
Line: 907

Quote8: Undefined index:  num_items
File:/is/htdocs/.../.../forum/Sources/Subs-MGallery.php
Line: 948

Quote8: Undefined index:  overall_total
File: /is/htdocs/.../.../forum/Sources/Subs-MGallery.php
Line: 948

Any idea what's going wrong?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on November 26, 2008, 07:40:52 PM
Manu, I'd say you upgraded v1.0.x manually to v1.5, and you didn't run db_install.php... So, you have a 1.0.x database with the 1.5 code. Very bad idea ;)

To all> I've implemented the child album system for the SGP converter. It's only tested on my test gallery (for which I made up to 2 sub-levels), and it seems to work.
Please test! I'm uploading here so that you can still get the first version (on the mod page) if this one doesn't work.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Dragooon on November 26, 2008, 11:30:19 PM
Thanks nao for doing the converter, I have updated the mod page with latest converter file. Please tell us how it goes.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Dragooon on November 27, 2008, 03:18:54 AM
It is possible if you use some sort of portal(TP, SP) or edit templates. It isn't hard.

Any news on conversion? BTW...It doesn't converts ratings ATM.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on November 27, 2008, 05:17:53 AM
@Dragooon> You're welcome. It had to be done at one point, I guess...

@DirtRider> Now, I've spent some like 6 hours on that converter, and you're already starting to ask dozens of new features? You know I have limited patience, eh? Ask around or read my sig ::)
The notification feature is pretty much next in line in my to-do-list. Has been in there for too long now, and been requested too many times.
The "latest crap" links in board templates, we're not going to do -- these require additional changes to templates, and we're trying to keep template modifications to a minimum. Anyone is free to make a mod for adding the feature to their templates, though. (Yeah, a mod for a mod -- it wouldn't be a first.)

@Both of you, and anyone else interested> http://custom.simplemachines.org/mods/index.php?mod=1365
Updated all converters (mostly the SGP one):
+ Delete temp settings after using any of the 3 converters
+ Convert ratings when importing a SGP gallery (mgconverter_sgp.php)
* User album IDs now immediately follow general album IDs, instead of starting at 1001 (mgconverter_sgp.php)
! Insert a dummy title when no title is available (mgconverter_sgp.php)
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Barchanowitz on November 27, 2008, 05:18:16 AM
Halo ich habe dier Gallery auch eingebunden aber welche Einstellungen muss ich jetzt ändern im Forum damit die Gallery zu sehen ist....Gruß Udo :-\
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Dragooon on November 27, 2008, 05:28:14 AM
Plese speak in English in English-only topics/boards.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: DirtRider on November 27, 2008, 05:44:51 AM
Quote from: Nao 尚 on November 27, 2008, 05:17:53 AM

@DirtRider> Now, I've spent some like 6 hours on that converter, and you're already starting to ask dozens of new features? You know I have limited patience, eh? Ask around or read my sig ::)


My apologies and I thank you for the converter, I will not ask for any more features, thanks again
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Dragooon on November 27, 2008, 05:49:45 AM
No one's stopping you from requesting features, we are just saying that due to 1.5 being at its edge of final release, we are no more interested in making additions to it. However we may reserve those ideas for later released. What you're asking is pretty much possible using block codes and portals, it isn't hard.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on November 27, 2008, 06:02:57 AM
Yeah, no need to apologize, but it's a bit overwhelming that's all...
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Smitten on November 27, 2008, 07:02:16 AM
I Have a problem, i can´t upload multiple files.

I have flash and javascript upgraded and activated.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Dragooon on November 27, 2008, 07:25:30 AM
Can you PM me a test account with admin powers and link to your site?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Smitten on November 27, 2008, 08:16:45 AM
I do it, only tell me. I can´t give you admin power. Sorry and thank you.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: simpledizayn on November 27, 2008, 10:18:03 AM
Video to upload ok.
Image to upload ok.
Mp3 to upload error.

Error:

Fatal error: mgal_media_handler::require_once() [function.require]: Failed opening required '/home/xxxx/public_html/Sources/MGallery-getid3/getid3.php' (include_path='.:/usr/local/lib/php') in /home/xxxx/domains/site.com/public_html/Sources/Subs-MGallery.php on line 1270
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on November 27, 2008, 10:21:39 AM
(Why is it so hard for people to give away the URL to their (test) websites? It's not like we're going to eat them... We're only interested in helping.)

simple> Are you sure the MGallery-getid3 folder is correctly installed? Does it have the right permissions?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: DirtRider on November 27, 2008, 11:00:56 AM
Ok I just tried doing the conversion and got this

Database Error
Unknown column 'id_member' in 'field list'
File: /homepages/37/d247631052/htdocs/triumphtalk/mgconverter_sgp.php
Line: 278

If you need access to the site let me know
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Bigguy on November 27, 2008, 11:35:39 AM
Awesome mod for sure I love it. It works great....except the bbc doesn't work for me:

8: Undefined index: is_smf2
File: /home/*****/public_html/forum/Sources/Subs-MGallery.php
Line: 2929
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Dragooon on November 27, 2008, 11:40:24 AM
Thanks Bigguy, and its already fixed in SMG 1.5 RC 3.2. It also has updated to the new tag format with a nice help guide compiled by Nao.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Bigguy on November 27, 2008, 11:55:54 AM
Thats great to hear. So I have to upgrade again, lol. I just finished with upgrading the last version, lol.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Bigguy on November 27, 2008, 12:12:22 PM
Just upgraded. All went fine with uninstall and re-install of the new version. Still there is no pic showing in the test post I made. No errors in the log files either.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Bigguy on November 27, 2008, 12:17:26 PM
Ok sorry for triple posting but...when I use the toogle view button and then put the bbc into a post then it works.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on November 27, 2008, 01:09:54 PM
Quote from: DirtRider on November 27, 2008, 11:00:56 AM
Ok I just tried doing the conversion and got this

Database Error
Unknown column 'id_member' in 'field list'
File: /homepages/37/d247631052/htdocs/triumphtalk/mgconverter_sgp.php
Line: 278

If you need access to the site let me know
This shouldn't even happen... (??)
Maybe SGP removed that field, I dunno... Seems logical though, since it's always set to 0...

Just go to line 273 and replace

SELECT ID_CAT AS id, title, description, id_parent, id_member

With
SELECT ID_CAT AS id, title, description, id_parent, 0 AS id_member

Should work...
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: SteveW on November 27, 2008, 02:58:12 PM
Thanks for that Nao, I had the same error and changing this line fixed and converted my gallery pro :-)
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: alex30 on November 27, 2008, 03:00:27 PM
Hi all, quick question!

I'm using ad mod for desplaying some stuff on the right hand side of my forum.

How do I hide that stuff when I'm viewing gallery because it takes a lot of space there?

Take a look http://aquatropicalfish.com/forum/index.php?action=mgallery

Thanks.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on November 27, 2008, 05:40:28 PM
SteveW> Great :) I'll update the file on the mod page then.
alex30> Why is your SMF version hidden?

Quote from: Bigguy on November 27, 2008, 12:17:26 PM
Ok sorry for triple posting but...when I use the toogle view button and then put the bbc into a post then it works.

This seems to be a SMF bug...

Try posting [img]http://smf-media.com/community/index.php?action=mgallery;sa=media;id=184;thumb[/img] (which is what the WYSIWYG mode will send when typing the [smg id=184] tag on smf-media.com), and "action=" gets rewritten to "action-"... Which fails in the end, of course.

Track the bug report here:
http://dev.simplemachines.org/mantis/view.php?id=2766

PS: I tried analyzing the SMF code and couldn't find any reason for this to happen... Also, I noticed the [smg] tag isn't simply reinstated when you switch back to non-wysiwyg mode... I committed a fix for this, by adding a "dummy" entry for the smg tag in the (large) official tag list. It's annoying that I had to do this, but it should be harmless (the smg tag will never be processed anyway because it's already been processed by SMG before we get to that code block.) I mean, I'm hoping it's harmless.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Dragooon on November 27, 2008, 08:41:46 PM
@Nao - The fields for SMF 1 in Gallery 1.x as capitalized like ID_MEMBER, ID_PIC.

@Bigguy - Make sure you use the updated format(Which was change since RC 3.1). Like [smg id=x]
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: alex30 on November 27, 2008, 08:56:27 PM
Nao 尚

I used a mod to hide it, is it illegal?

Can you  help me with that issue that I posted above?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: DirtRider on November 27, 2008, 10:45:45 PM
Quote from: Nao 尚 on November 27, 2008, 01:09:54 PM
This shouldn't even happen... (??)
Maybe SGP removed that field, I dunno... Seems logical though, since it's always set to 0...

Just go to line 273 and replace

SELECT ID_CAT AS id, title, description, id_parent, id_member

With
SELECT ID_CAT AS id, title, description, id_parent, 0 AS id_member

Should work...

Thanks that did the trick and the conversion when off without a hitch  :D It really looks great once you have all your images in it, great job on this mod
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Bigguy on November 28, 2008, 12:57:01 AM
Quote from: Dragooon on November 27, 2008, 08:41:46 PM
@Bigguy - Make sure you use the updated format(Which was change since RC 3.1). Like [smg id=x]

Yes I am using the updated code. I do have it working but for some reason it won't work in the wisig editor. It does work though. I posted a test post in my Spam and testing board. I am really impressed with the work on this that has been done.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on November 28, 2008, 02:48:27 AM
Dragooon> OK, I forgot about that... I updated the sgp converter on the mod page.
alex> No, I don't think it's illegal, it's just not bad practice for us devs who need to know the version :P
DirtRider> Great! Where can I see it in action?
Bigguy> Err... Did you read my post? I *did* spent most of my evening on that O:)
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: DirtRider on November 28, 2008, 05:38:03 AM
Quote from: Nao 尚 on November 28, 2008, 02:48:27 AM
DirtRider> Great! Where can I see it in action?
Bigguy> Err... Did you read my post? I *did* spent most of my evening on that O:)

Here we go it is working on this site at the moment http://s247631067.onlinehome.us/index.php?action=mgallery (http://s247631067.onlinehome.us/index.php?action=mgallery)

Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on November 28, 2008, 08:32:09 AM
Cool :)
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Bigguy on November 28, 2008, 12:33:54 PM
@ Nao: I didn't read it till now, Thanks. :)

EDIT: I also just read the notes for the bug report. It may not be a bug from what was posted.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Smitten on November 28, 2008, 01:00:03 PM
My problem still exists. I can´t use mass upload (multiple files)

In the middle of the process, it´s cut and nothing raises.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: vulcan59 on November 28, 2008, 02:46:19 PM
Quote from: Smitten on November 28, 2008, 01:00:03 PM
My problem still exists. I can't use mass upload (multiple files)

In the middle of the process, it's cut and nothing raises.

I seem to be having the same problem. I set the upload size to 5MB and tried uploading 5 files which were only up to 1.2MB. First file was uploaded and then it just hung!! I am using SMF 1.1.7 with SMF Media Gallery 1.5 RC 3.1 installed. I note that at your forum on SMF Media Gallery there were one or two people having the same problem.

Any solutions?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on November 28, 2008, 03:19:08 PM
It probably depends on your server configuration...
Does it still do that when using another browser?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: vulcan59 on November 28, 2008, 03:34:16 PM
Quote from: Nao 尚 on November 28, 2008, 03:19:08 PM
It probably depends on your server configuration...
Does it still do that when using another browser?

Hi Nao,

Yep same thing. Just used IE 7 (which I never use) and tried uploading 5 image files all of which came up to about 17kb and the progress bar stopped at 40%  and then just hung.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Smoky "Rider" Blue on November 28, 2008, 05:09:19 PM
i have another one:

8: Undefined index:
File: /home/******/forum/Themes/BChristmas/languages/MGallery.english.php (main_above sub template - eval?)
Line: 207


i cant seem to get figured out.. any help??  >:(
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on November 28, 2008, 05:26:43 PM
I don't see any error on your gallery...
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Smoky "Rider" Blue on November 28, 2008, 06:11:49 PM
thats the ing Nao, i dont either, and i have just now gone thru all the mods on the forum..

here is one more bit of the error log.. you, me, and legend created 5 pages of this:

  Today at 07:06:04 PM

Apply Filter: Only show the error messages of this URL http://www.pixelbypaint.com/forum/index.php?action=admin
Apply Filter: Only show the errors with the same message
8: Undefined index:
File: /home/***/forum/Themes/default/Login.template.php (main_above sub template - eval?)
Line: 207

Apply Filter: Only show the error messages of this URL http://www.pixelbypaint.com/forum/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index:
File: /home/***/forum/Themes/default/BoardIndex.template.php (main_above sub template - eval?)
Line: 207

Apply Filter: Only show the error messages of this URL http://www.pixelbypaint.com/forum/index.php?action=links;sa=visit;id=13
Apply Filter: Only show the errors with the same message
Unable to load the 'main' template.

Apply Filter: Only show the error messages of this URL http://www.pixelbypaint.com/forum/index.php?action=links;sa=visit;id=13
Apply Filter: Only show the errors with the same message
8: Undefined index:
File: /home/****/forum/Themes/BChristmas/languages/Links.english.php (main_above sub template - eval?)
Line: 207

Apply Filter: Only show the error messages of this URL http://www.pixelbypaint.com/forum/index.php?topic=14.msg64
Apply Filter: Only show the errors with the same message
8: Undefined index:
File: /home/***/forum/Themes/default/Login.template.php (main_above sub template - eval?)
Line: 207

Apply Filter: Only show the error messages of this URL http://www.pixelbypaint.com/forum/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index:
File: /home/***/forum/Themes/default/BoardIndex.template.php (main_above sub template - eval?)
Line: 207

Apply Filter: Only show the error messages of this URL http://www.pixelbypaint.com/forum/index.php?topic=36.0
Apply Filter: Only show the errors with the same message
8: Undefined index:
File: /home/***/forum/Themes/default/Display.template.php (main_above sub template - eval?)
Line: 207

Apply Filter: Only show the error messages of this URL http://www.pixelbypaint.com/forum/index.php?topic=37.0
Apply Filter: Only show the errors with the same message
8: Undefined index:
File: /home/***/forum/Themes/default/Display.template.php (main_above sub template - eval?)
Line: 207

Apply Filter: Only show the error messages of this URL http://www.pixelbypaint.com/forum/index.php?topic=628.0
Apply Filter: Only show the errors with the same message
8: Undefined index:
File: /home/***l/forum/Themes/default/Display.template.php (main_above sub template - eval?)
Line: 207


i do know the link mod is screwy.. it ownt show the links page anymore and i am going to take it out if vbgamer cant fixed the mod..

maybe you can see what it is better than me.. i cant find it..  :P
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on November 28, 2008, 06:39:08 PM
When several templates have an error in the exact same line, and "eval" is indicated, it generally means that the actual error is in "index.template.php". What does line 207 say there?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Smoky "Rider" Blue on November 28, 2008, 07:00:44 PM
i found it!!!

roflmao.. didnt surprise me.. its a PEBKAC error..  :-\

hmm wonder who could have done that???

thanks Nao, for your help..  ;)
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on November 29, 2008, 04:48:52 AM
Knew it ;)
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: magarto on November 29, 2008, 07:45:24 AM
I have all the time this warming or error in all the user's profile:

2: Invalid argument supplied for foreach()
?action=profile;u=1;sa=mgallery


Could, anyone, help me?
I think that it is possible that the error was due to "prettyurls" modification in profile permanlinks, because my user have their names in the profile link, instead that the number of their identitiy (u=1 is my administrator user).

Thanks :)
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on November 29, 2008, 08:00:56 AM
What's the line number for the error?

I'm using PrettyURLs (another of the mods I've contributed to in the past -- and the reason why I learned regexp in the first place), and I have absolutely no problem. The only thing to take care of is mass uploads -- you'll need a crossdomain.xml file if your board is not in the same subdomain as your gallery.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Burke ♞ Knight on November 29, 2008, 08:07:38 AM
Dragooon, Nao 尚, and the rest of the SMG team:

Great work!

Installed this on yet another forum, my RPG site, with no problems. Also, mass uploaded 91 images totalling 14 MB, without any troubles. :)
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: magarto on November 29, 2008, 08:16:00 AM
Solved, pretty urls was the problem
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: magarto on November 29, 2008, 08:22:01 AM
I was looking for crossdomain.xml in the past because i did not know how to upload images and videos to other server different than the forum server.

Sure, i have activated also profile and SMF Media Gallery permalinks rewrite in prettuyrls page and i have again the error. I have entered in my user, "summary of photos" and the link redirect to "u=1" instead of my user name. Then... i have those warmings.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: ディン1031 on November 29, 2008, 09:24:03 AM
So i found some small bugs ;), i will post them how i fixed them, but I'm sure there are better ways for fixing this, because some things should normal not happen :).

Tested with Version 1.5 RC 3.2

INFO: This are only infos for the devs of the mod. Please, don't use it if you not know what you do!



1st:

Error:

Benutzers  ???1031    Heute um 14:41:04
URL http://forum.arseniums.com/index.php?action=mgallery;sa=item;id=151
Error:
8: Undefined index: 51
Datei: /is/htdocs/wp1016102_GI2668394A/www/forum/Sources/MGallery.php
Zeile: 611


What happend:
It's possible that the id do not exist anymore in the database, and MGallery don't know about this. So it will produce a other Error on the Load.php because it could not load the data of the member ;).


Fixed it in MGallery.php[/code]

$item_data['comments'][] = array(
'id_comment' => $row['id_comment'],
'members' => $row['id_member'],
'member' => array(),
'message' => $mgalFunc['parse_bbc']($row['message']),
'posted_on' => $mgalFunc['time_format']($row['posted_on']),
'is_edited' => !empty($row['last_edited']) && $row['last_edited'] != '0',
'last_edited' => array(
'id' => $row['last_edited_by'],
'name' => $row['last_edited_name'],
'link' => '<a href="'.$scripturl.'?action=profile;u='.$row['last_edited_by'].'">'.$row['last_edited_name'].'</a>',
'on' => $mgalFunc['time_format']($row['last_edited']),
),
'counter' => $counter,
'can_edit' => mGalAllowedTo('moderate') || (mGalAllowedTo('edit_own_com') && $row['id_member'] == $user_info['id']),
'can_report' => mGalAllowedTo('report_com'),
'approved' => $row['approved'],
);
}
foreach ($item_data['comments'] as $mem)
$members[] = $mem['members'];
loadMemberData(array_unique($members));
foreach ($item_data['comments'] as $k => $com)
{
loadMemberContext($item_data['comments'][$k]['members']);
$item_data['comments'][$k]['member'] = $co = $memberContext[$com['members']];
$item_data['comments'][$k]['member_link'] = smg_profile($co['id'], $co['name']);
}



$item_data['comments'][] = array(
'id_comment' => $row['id_comment'],
'members' => $row['id_member'],
'member' => array(
'mgallery' => 0,
),
'member_link' => $txt['guest'],
'message' => $mgalFunc['parse_bbc']($row['message']),
'posted_on' => $mgalFunc['time_format']($row['posted_on']),
'is_edited' => !empty($row['last_edited']) && $row['last_edited'] != '0',
'last_edited' => array(
'id' => $row['last_edited_by'],
'name' => $row['last_edited_name'],
'link' => '<a href="'.$scripturl.'?action=profile;u='.$row['last_edited_by'].'">'.$row['last_edited_name'].'</a>',
'on' => $mgalFunc['time_format']($row['last_edited']),
),
'counter' => $counter,
'can_edit' => mGalAllowedTo('moderate') || (mGalAllowedTo('edit_own_com') && $row['id_member'] == $user_info['id']),
'can_report' => mGalAllowedTo('report_com'),
'approved' => $row['approved'],
);
}
foreach ($item_data['comments'] as $mem)
$members[] = $mem['members'];
$members = loadMemberData(array_unique($members));
if($members !== false)
foreach ($item_data['comments'] as $k => $com)
{
if(!in_array($com['members'], $members))
continue;
loadMemberContext($item_data['comments'][$k]['members']);
$item_data['comments'][$k]['member'] = $co = $memberContext[$com['members']];
$item_data['comments'][$k]['member_link'] = smg_profile($co['id'], $co['name']);
}
}


Now it will be show the guest as guest... i think there should be a better fix for this *g* (It's only a fist idea to solve it) ;).



2nd:
child_level eval bug

What happened:
I'm not sure where it come from but sometimes the child_level is not set but it goes into the function.

Fixed it in Subs-MGallery.php[/code]

if ($albums[$row['parent']]['child_level'] + 1 != $row['child_level'])
$mgalFunc['db_query']("
UPDATE {db_prefix}mgallery_albums
SET child_level = {int:level}



// DIN1031 Fix for the eval error?
if(empty($albums[$row['parent']]['child_level']))
$albums[$row['parent']]['child_level'] = 0;
if(empty($row['child_level']))
$row['child_level'] = 0;
// If there is a child-level problem, we fix it!
if ($albums[$row['parent']]['child_level'] + 1 != $row['child_level'])
$mgalFunc['db_query']("
UPDATE {db_prefix}mgallery_albums
SET child_level = {int:level}




3rd:
Error:
overall_count and num_items eval bug

What happened:
There are insert empty not array items into the function, i think it should be checked before. Because it can cause a lot errors on large galleries...

Currently fixed with:
Fixed it in Subs-MGallery.php[/code]

// Gets overall totals of a item
function getOverallTotal(&$_album, &$_dat)
{
$_album['overall_total'] += $_dat['num_items'];

if (empty($_dat['sub_albums']))
return true;

foreach ($_dat['sub_albums'] as $id => $album)
getOverallTotal($_album, $album);
}



// Gets overall totals of a item
function getOverallTotal(&$_album, &$_dat)
{
//DIN1031 Eval Fix?
if(empty($_album['overall_total']))
$_album['overall_total'] = 0;
if(empty($_dat['num_items']))
$_dat['num_items'] = 0;

$_album['overall_total'] += $_dat['num_items'];

if (empty($_dat['sub_albums']))
return true;

foreach ($_dat['sub_albums'] as $id => $album)
getOverallTotal($_album, $album);
}
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Dragooon on November 29, 2008, 09:46:25 AM
Thanks for the excellent feedback Din, Can I know what version you were testing it with?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: ディン1031 on November 29, 2008, 09:55:49 AM
Sorry forgot this the latest Version 1.5 RC 3.2, i thought i wrote it into the post :X
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: SteveW on November 29, 2008, 11:18:20 AM
I have searched but couldn't find anything on the following:

1) In firefox, Dewplayer doesn't work for me after uploading an MP3 but IE does work. It shows the graphic but clicking play doesn't stream the files.

2) In firefox, nothing shows under ICON for each album after uploading. In IE, the uploaded ICONS show fine.

Many thanks for a very fine addon for SMF!!!!
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: qubbah on November 29, 2008, 11:19:58 AM
I have embed Youtube.. But the thumbnail is missing. How can i repair that?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on November 29, 2008, 11:27:53 AM
Quote from: ディン1031 on November 29, 2008, 09:24:03 AM
So i found some small bugs ;), i will post them how i fixed them, but I'm sure there are better ways for fixing this, because some things should normal not happen :).
Apart from the deleted member issue (1st bug), I couldn't reproduce the other bugs, but I added a couple more tests "just in case". Thanks.

QuoteNow it will be show the guest as guest... i think there should be a better fix for this *g* (It's only a fist idea to solve it) ;).
Actually, it doesn't show the guest as a guest... I had to add more code in the template to make sure only "Guest" is shown. Well, according to my tests, it works now.
It's a bit annoying that the user name is not stored when posting a comment... I mean, it *is* done for the item owners after all. Why not for comment owners. I'll add this to my to-do-list. (It should also be integrated into the admin recount area, so that member names are updated where needed, such as comments posted before this is implemented.)

Regarding the album issues -- I think the only way such a problem could occur, is when an album is manually reassigned (via phpMyAdmin) as a child to an album created later. I actually experienced this with the board loader in SMF itself -- I had a child board with an ID lower than its own parent, so it caused issues. (This shouldn't happened on a non-custom version of SMF, don't worry.)
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on November 29, 2008, 11:31:28 AM
qubbah> URL? Did you try to simply "Edit" the item and simply hit the Submit button?

Quote from: SteveW on November 29, 2008, 11:18:20 AM
I have searched but couldn't find anything on the following:

1) In firefox, Dewplayer doesn't work for me after uploading an MP3 but IE does work. It shows the graphic but clicking play doesn't stream the files.
URL?

Quote2) In firefox, nothing shows under ICON for each album after uploading. In IE, the uploaded ICONS show fine.
...URL? :P
Did you empty your cache? Is this a fresh install or an upgrade? Over what version?

QuoteMany thanks for a very fine addon for SMF!!!!
If only everyone were using Apache 2 + SMF 2 + Opera, that would make my life so much easier ;)
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: qubbah on November 29, 2008, 11:36:53 AM
Yes.. its solved now...

One question, but i think the developper team has mentioned about this.
Some of the Embed gallary script can create the thumbnail from the original video? can the dev team can make it real in the next version?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on November 29, 2008, 11:59:56 AM
Quote from: qubbah on November 29, 2008, 11:36:53 AM
One question, but i think the developper team has mentioned about this.
Some of the Embed gallary script can create the thumbnail from the original video? can the dev team can make it real in the next version?
I don't know what you're talking about.
- Importing thumbnails from websites: it's already the case. I have to add sites manually. So far, I've done it for Youtube, Dailymotion, Google Video and Metacafe (the biggest ones). I added Google Video support today, so it'll be in the final version.
- Generating a thumbnail automatically from a video: this can only be done if you have the FFMPeg library installed on your server. I don't have it, so I can't it. From what I know, it uses the first frame, so you might as well have a black picture if you're not lucky...
- Uploading a thumbnail manually, to go with an existing video: yeah, I'll do it. I don't think it'll be done for 1.5 final, though... Maybe in the next version, who knows. We need to keep some features for the next versions, otherwise who will download them? ;D
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Smoky "Rider" Blue on November 29, 2008, 01:10:57 PM
Quote from: Nao 尚 on November 29, 2008, 04:48:52 AM
Knew it ;)

lol.. i almost lost me touch!! ;)
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: SteveW on November 29, 2008, 02:13:54 PM
@Nao - Re: Firefox Dewplayer & Icon pic issue.

I cleared my cache and their both working now. Sorry about that! I should have checked!

If Tinyportal supported smf 2 I would upgrade :-)

http://www.alienexistence.com/index.php?action=mgallery
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: ke4obt on December 01, 2008, 08:02:59 AM
First off, I had one of the very first versions of SMF Media Gallery that Dragooon put out and loved it. My test site has progressed to the point where I feel comfortable upgrading to the latest version.
What I need to know is if the AEVA 5.x will work with SMG final? Also, any idea when SMG version 1.5 final will be done. I know y'all are working hard on it, just wondering if you have a WAG (wild ass guess) as to when?
Because of the other mods on my site, I already know I'm going to have to install it manually. Since I am a blind user, I will give you fair warning that I'll probably be back asking for help and possibly crying because I messed something up. :)
If/when I need help, I have no problem giving access to the site to someone who knows what they're doing to fix whatever may need to be fixed. (for example Dragooon and Nao)
Thanks in advance,
Flip
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on December 01, 2008, 08:37:24 AM
Quote from: ke4obt on December 01, 2008, 08:02:59 AM
First off, I had one of the very first versions of SMF Media Gallery that Dragooon put out and loved it. My test site has progressed to the point where I feel comfortable upgrading to the latest version.
What I need to know is if the AEVA 5.x will work with SMG final?
Actually, it will behave even better with SMG (it always has behaved perfectly, btw), since I'm the developer of Aeva 5.0... (And as you may have noticed, I'm co-dev on SMG along with Dragooon.)
I'm trying to think of ways to tie both mods together in a way that will help them use each other's features, just like the latest SMG 1.5 RC now relies entirely on Aeva(c) when it is detected.

QuoteAlso, any idea when SMG version 1.5 final will be done.
The decision is in Dragooon's hands. He told me he wanted to have a full week without any bug reports before we release the final version.
So far, so good, so it shouldn't be long, but there's this tiny little problem -- one week without programming is too long for me (even with Aeva on my hands), so I already implemented new stuff in the latest revisions... I chose to implement things that would be easy to test, though, so I hope mforum's usual test phase should slash any potential bugs added by my new features.

QuoteI know y'all are working hard on it, just wondering if you have a WAG (wild ass guess) as to when?
This week. (Fingers crossed.)
Of course, we've said that about every other week for the last 6 weeks ;) So you may want to take this with a grain of salt.
Still, I'm confident the current revisions are extremely stable. There will *always* be a few bugs here and there, most notably because of widely varied server configurations (our first beta release has issues with both PHP 4 and SMF 1, which wasn't good... Now, I think even servers in safe mode have less compatibility issues. And when I say safe mode, I say it all. Because they're pretty ******y with web developers.)

QuoteBecause of the other mods on my site, I already know I'm going to have to install it manually.
We're trying to keep minimal changes to the official SMF files, and do everything in our own files. Which means you'll just have to compare your current install's .xml file to the new install's .xml file, and uninstall/install accordingly.
Depending on your skills as a PHP hacker, it should take you from 10 to 60 minutes at most.

QuoteSince I am a blind user, I will give you fair warning that I'll probably be back asking for help and possibly crying because I messed something up. :)
Oh, I didn't know that, sorry. I'm all for helping disabled users, don't worry. I'll take some time off and help you if you need it.

(And that's valid only for disabled users and pretty girls. To everyone else, I'm the official arrogant French bastard here, okay everyone? 8))
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Burke ♞ Knight on December 01, 2008, 08:41:47 AM
Quote from: Nao 尚 on December 01, 2008, 08:37:24 AM
(And that's valid only for disabled users and pretty girls. To everyone else, I'm the official arrogant French bastard here, okay everyone? 8))

Yeah, yeah, yeah.... That's what all us coders say, eh?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: DirtRider on December 01, 2008, 09:02:21 AM
I have just installed this one my games site that I am starting up and I am supper impressed with it especially the embedded video option. For a games site this is a huge plus. Thanks guys for all the hard work on this and I will be looking forward to the release of the next version  :D

Here is the link to my site if anyone would like to have a look at how I have it working http://www.gameporthole.com/index.php (http://www.gameporthole.com/index.php)
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: ke4obt on December 01, 2008, 11:23:40 AM
Hey Nao,

Thanks for the quick reply.
Well I guess I should remove AEVA v 5.x and install one of the other versions of AEVAC, the question is witch one or did I missunderstand what you ment.
If that's the case please forgive me.   

The next big thing to get done is to see if I can get the old ver. of EZ Portal upgraded to the new ver. so as they say "I.O.,I.O. so off to work I go".

P.S. The url to my test page is HRA TestSite (http://hraworld.com/ezportal) if you reg. on the site you will get the normal E-Mail for varefacation 

     Thanks for the great mods, Flip
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on December 01, 2008, 01:14:11 PM
Quote from: ke4obt on December 01, 2008, 11:23:40 AM
Well I guess I should remove AEVA v 5.x and install one of the other versions of AEVAC, the question is witch one or did I missunderstand what you ment.
You probably misunderstood, yes. I said that I'm the developer of Aeva 5.x, so you don't have to uninstall anything, because SMG is compatible with Aeva, and it will always be compatible, I'll make sure of that myself. Because I'm working on both.

QuoteThe next big thing to get done is to see if I can get the old ver. of EZ Portal upgraded to the new ver. so as they say "I.O.,I.O. so off to work I go".
I don't know anything about EZ Portal, though.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: msvdm on December 01, 2008, 08:52:44 PM
how to put the new uploaded files on the forum index page ? Also the Mass Upload dont work :(
but is grate mod anyway :)
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Dragooon on December 02, 2008, 12:13:37 AM
What was wrong with Mass Upload?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: msvdm on December 02, 2008, 01:01:05 AM
mass upload dont work
when i go to mass upload and press Upload nothing dont appear
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Dragooon on December 02, 2008, 01:07:06 AM
I don't understand? Do you select files first? Can you attach a screenshot?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: xxwckdxx on December 02, 2008, 01:18:47 AM
Quote from: msvdm on December 02, 2008, 01:01:05 AM
mass upload dont work
when i go to mass upload and press Upload nothing dont appear

I get the same thing i select the files click upload nothing happens using smf 1.17 tried in ie and ff also tried default theme same thing
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Smitten on December 02, 2008, 01:19:52 AM
The SMF media gallery brought us too many problems...

I had to uninstall the Pageear mod...
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Dragooon on December 02, 2008, 01:22:52 AM
Does it works on http://smf-media.com
You need to register tho.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: xxwckdxx on December 02, 2008, 01:26:18 AM
Quote from: Dragooon on December 02, 2008, 01:22:52 AM
Does it works on http://smf-media.com
You need to register tho.

Yeah Dragooon i registered there and tried and it worked i right after deleted it
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Dragooon on December 02, 2008, 01:35:02 AM
Quote from: Smitten on December 02, 2008, 01:19:52 AM
The SMF media gallery brought us too many problems...

I had to uninstall the Pageear mod...
More information might help. What problems?

Quote from: xxwckdxx on December 02, 2008, 01:26:18 AM
Quote from: Dragooon on December 02, 2008, 01:22:52 AM
Does it works on http://smf-media.com
You need to register tho.

Yeah Dragooon i registered there and tried and it worked i right after deleted it
Does normal upload works?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: xxwckdxx on December 02, 2008, 01:36:53 AM
yeah it does
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Dragooon on December 02, 2008, 01:40:51 AM
Hm..Does clearing your cookies/cache and re-logging in and re-uploading works? If not can you PM me an account with mass upload permissions.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: xxwckdxx on December 02, 2008, 01:45:31 AM
pm'd u thanks for helpin
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: HistoryHunter on December 02, 2008, 10:46:05 AM
smf 1.1.7 and Tinyportal, with coppermine

Installed with one click and no errors.
Conversion of coppermine went through without an error - all albums, comments, everything.
Absolutely bl**dy perfect!

Very many thanks. Most appreciated  :D

What should I now do with coppermine? Can I delete the folder and bridge?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Dragooon on December 02, 2008, 12:48:19 PM
Coppermine is not needed anymore now. If you want you can keep it just in case or delete it. But I'd recommend keeping a backup of files and DB and deleting it from your server.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Dragooon on December 02, 2008, 12:49:48 PM
@Mass Upload issues - Please install crossdomain.xml(Google it). It is a XML fie for security used by flash. It has a 90% chance that your mass upload is broken by this.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: xxwckdxx on December 02, 2008, 01:07:30 PM
Quote from: Dragooon on December 02, 2008, 12:49:48 PM
@Mass Upload issues - Please install crossdomain.xml(Google it). It is a XML fie for security used by flash. It has a 90% chance that your mass upload is broken by this.

downloaded it edited it to my domain what directory should this go in? main smf?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on December 02, 2008, 01:33:10 PM
This should go to the root of your domain name. This is all explained via a Google search... We didn't invent that security feature ;)
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: TheDisturbedOne on December 02, 2008, 04:46:02 PM
I keep on getting this error.  How do I fix it:
The file has a invalid extension

It happens when I try to upload a zip file.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Burke ♞ Knight on December 02, 2008, 04:57:28 PM
This is a media gallery. Not a downloads mod.
.zip is not an image, movie, or sound file extension.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: TheDisturbedOne on December 02, 2008, 05:13:31 PM
Quote from: BurkeKnight on December 02, 2008, 04:57:28 PM
This is a media gallery. Not a downloads mod.
.zip is not an image, movie, or sound file extension.
*  Maximum File Size Allowed: 1024 KB
    * Please note that this feature will not work if you disabled Javascript or Flash support in your browser.

Allowed File types:

    * Image files: bmp, png, gif, jpg, jpe, jpeg
    * Audio files: mp2, mp3, mpga, ram, ra, wax, wma, m4a, a-latm, ogg, rpm, mka, wav
    * Video files: avi, mpg, mpeg, mpe, wmv, mxu, m4u, movie, qt, mov, rv, flv, mp4, mkv
    * Multimedia archives: zip



That is what is says for the mass upload.  I tried uploading an image, and the image didn't show up either.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Burke ♞ Knight on December 02, 2008, 05:24:22 PM
Are the permissions for the folders set properly?

How do I chmod? / what is chmod? (http://docs.simplemachines.org/index.php?topic=477)
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: TheDisturbedOne on December 02, 2008, 05:33:31 PM
That may be the problem, but when I chmod it, it doesn't work:
chmod failed: Operation not permitted in
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on December 02, 2008, 05:42:51 PM
Quote from: BurkeKnight on December 02, 2008, 04:57:28 PM
This is a media gallery. Not a downloads mod.
.zip is not an image, movie, or sound file extension.
--Actually, zip files are accepted as long as they contain image files, and are uploaded through the mass upload tool.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: TheDisturbedOne on December 02, 2008, 08:33:23 PM
Quote from: Nao 尚 on December 02, 2008, 05:42:51 PM
Quote from: BurkeKnight on December 02, 2008, 04:57:28 PM
This is a media gallery. Not a downloads mod.
.zip is not an image, movie, or sound file extension.
--Actually, zip files are accepted as long as they contain image files, and are uploaded through the mass upload tool.
But not even regular images work...should I try an older version?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Burke ♞ Knight on December 03, 2008, 01:05:31 AM
That looks like code for SimplePortal, not SMF Media Gallery.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on December 03, 2008, 02:06:30 AM
What code?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: xxwckdxx on December 03, 2008, 02:39:15 AM
Quote from: Nao 尚 on December 03, 2008, 02:06:30 AM
What code?

i posted a code wrong topic i removed it
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: swtdivalove on December 04, 2008, 10:20:12 AM
I have an issue with image resizing...

I added an image that has 556px × 720px dimensions.

However, after uploaded and looking at it, it is now 450px x 450px which distorts the image.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: jglonek on December 04, 2008, 11:44:15 AM
Hey, I just stumbled across this mod and installed it. I'm having a few issues.

Well, the issues are that I can see the Gallery link on the main page and the admin page in the default theme, but in the theme I'm using it doesnt show up.

Where do I check and in what files to fix that?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Dragooon on December 04, 2008, 11:46:07 AM
Search for adding custom tabs in custom themes, you'll find the answer. It is already answered quite a few times.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: jglonek on December 04, 2008, 11:59:06 AM
Quote from: Dragooon on December 04, 2008, 11:46:07 AM
Search for adding custom tabs in custom themes, you'll find the answer. It is already answered quite a few times.
Alright, got that solved for the main page, thanks!

Where would I check for how to add to the admin list though?

Got that solved too. Had to edit my english php thing.

One last issue - I keep getting

8: Undefined index: mgallery_gallery
File: /home/rwjackso/public_html/gadvoutpost/Sources/MGallery-Admin.php
Line: 2258

In my error log.

How can I fix that?

EDIT: Fixed that too. I made MGallery-Admin.php require including my languages php file and it stopped asking
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: TeaTephi on December 04, 2008, 12:13:05 PM
Mod seems to be working fine, but there is no tab for "gallery".

I have tried various mods (like bookmarks, and flashchat)  but I could never get them to add a tab for those features.



Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Manuscript design by Bloc Page .

(https://www.simplemachines.org/community/index.php?action=dlattach;topic=260821.0;attach=78433)




ok thanks
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Dragooon on December 04, 2008, 12:23:34 PM
I just answered that 2 posts above.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: DirtRider on December 04, 2008, 12:26:07 PM
Quote from: TeaTephi on December 04, 2008, 12:13:05 PM
Mod seems to be working fine, but there is no tab for "gallery".

I have tried various mods (like bookmarks, and flashchat)  but I could never get them to add a tab for those features.



Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Manuscript design by Bloc Page .

(https://www.simplemachines.org/community/index.php?action=dlattach;topic=260821.0;attach=78433)

Go to my gallery and create one for yourself and it should appear
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: jglonek on December 04, 2008, 12:36:10 PM
I have another question, not sure if I'm missing it somewhere.

Is it possible to restrict upload access on certain albums to only certain usergroups? If so, where would I set that at?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: RustyBarnacle on December 04, 2008, 12:39:54 PM
Edit the album.  Each has its own membergroup settings.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: jglonek on December 04, 2008, 12:46:32 PM
Quote from: RustyBarnacle on December 04, 2008, 12:39:54 PM
Edit the album.  Each has its own membergroup settings.

Well I see that. But is it for viewing or uploading? Because I want them to be viewable by all but restrict upload access
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: TeaTephi on December 04, 2008, 12:53:56 PM
I looked in the manuscript comments and it said the thread was more than 120 days old, that I should start a new thread.  There was nothing in there about adding tabs.
Another thread I read said I have to change index.template.php, but I still don't know what the edits are. 
Can someone post a link to a thread that gives the edit intstructions please?
Thanks
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on December 04, 2008, 01:25:44 PM
Quote from: jglonek on December 04, 2008, 12:46:32 PM
Quote from: RustyBarnacle on December 04, 2008, 12:39:54 PM
Edit the album.  Each has its own membergroup settings.

Well I see that. But is it for viewing or uploading? Because I want them to be viewable by all but restrict upload access
The permissions system in SMG is very powerful. As a result, it's also very, very complicated to use for people who are not used to permissions.

Adding even more permissions *per albums* would be pure madness.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: swtdivalove on December 04, 2008, 03:09:44 PM
Quote from: swtdivalove on December 04, 2008, 10:20:12 AM
I have an issue with image resizing...

I added an image that has 556px × 720px dimensions.

However, after uploaded and looking at it, it is now 450px x 450px which distorts the image.

I know... I know... no bumping...  Got my tabs added fine, but still attempting to figure out why my images are getting distorted to 450px x 450px instead of the actual image size or a constrained image size.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on December 04, 2008, 07:29:28 PM
Are you sure your image isn't corrupted? 450x450 is the fallback when getSize() on the picture returns 0x0... (getSize is a function that will retrieve dimensions... It's built in PHP.)

I agree that it should be a 4/3 format to improve odds of not distorting a picture, though... Something like 600x450.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: xxwckdxx on December 04, 2008, 08:02:16 PM
is there any way to make the user albums on the same page as the general albums?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: xxwckdxx on December 04, 2008, 09:08:36 PM
also just realized when i added a icon to a gallery it knocked out all the "folder" icons i moved the photos to another gallery and deleted the one i added a the icon too and still no folder icons

http://www.cockerspanielpad.com/smf/index.php?action=mgallery
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: swtdivalove on December 05, 2008, 09:26:30 AM
Quote from: Nao 尚 on December 04, 2008, 07:29:28 PM
Are you sure your image isn't corrupted? 450x450 is the fallback when getSize() on the picture returns 0x0... (getSize is a function that will retrieve dimensions... It's built in PHP.)

I agree that it should be a 4/3 format to improve odds of not distorting a picture, though... Something like 600x450.

Yes, I am quite sure the image isn't corrupted.  I'll test another graphic and see what happens.

Just tried it again, and yes... It was an image that was 1280px × 720px, and it resized it to 450px to 450px.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Burke ♞ Knight on December 05, 2008, 09:31:16 AM
Sometimes, a file can open up on your own pc, and even on some other places, yet still be corrupt enough to not display correctly in other areas.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: swtdivalove on December 05, 2008, 09:41:51 AM
two different graphics and it did the same thing.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on December 05, 2008, 04:24:50 PM
xx, user albums + general albums on the same page: yes, technically it's possible... no, i won't do it. Because there can be MANY user albums in a website. The homepage is not there for presenting a list of albums -- it's supposed to show a summary of what you can find in the gallery. That is -- latest uploads, random uploads, latest comments, random comments, stats and, lastly, general albums... Which are generally not too many (it's up to the admin's discretion). While user albums are sorted by user, so if you have 10 users who create even only one album, you'll have ten albums to scroll through before you can see the rest of the homepage... Uhoh.

Quote from: xxwckdxx on December 04, 2008, 09:08:36 PM
also just realized when i added a icon to a gallery it knocked out all the "folder" icons i moved the photos to another gallery and deleted the one i added a the icon too and still no folder icons
I didn't understand a word of what you said :-/
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Soms on December 05, 2008, 05:50:25 PM
QuoteUndefined index: allow_smfgallery_view
Bestand: /mnt/web4/21/50/51458650/htdocs/Themes/default/BoardIndex.template.php (eval?)
line: 669
I keep getting this error in the log. This error message appears also on lots of files like MessageIndex.template.php, BoardIndex.template.php amongst others. It keeps refering to line 669. I have install SMG and removed SMFGallery so I don't understand why this should be happening.

P.S. I am really sorry if this question has been asked before  :-[
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: xxwckdxx on December 05, 2008, 07:37:22 PM
Nao i went to a gallery i had named "Bear" and went to edit and set a picture for the gallery icon when i went back to the main gallery page all of the smf media gallery folder icons were gone and only the icon i set for the bear gallery was showing....so i deleted the Bear Gallery and folder icons still never came back
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on December 05, 2008, 08:21:47 PM
This shouldn't be happening... Yesterday I opened my gallery to the public, and imported an old gallery - all albums were using the folder icon. Each time I selected an icon for an album, I would go back to the homepage and check it out there "in action"... None of the folder icons ever disappeared. :-/

Soms> What version of SMG are you using? Are your language files up to date? Did you install the mod manually? Are you using a different language?
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Kindred on December 05, 2008, 10:59:15 PM
let me just say...   mass-upload is a god-send!!!


I was trying to figure out how to convert Menalto gallery2 into SMG... I even has a SQL script started and then said the hell with it. 4000 files uploaded into the new galleries. with only a few clicks and some waiting.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Dragooon on December 06, 2008, 03:44:02 AM
Quote from: Soms on December 05, 2008, 05:50:25 PM
QuoteUndefined index: allow_smfgallery_view
Bestand: /mnt/web4/21/50/51458650/htdocs/Themes/default/BoardIndex.template.php (eval?)
line: 669
I keep getting this error in the log. This error message appears also on lots of files like MessageIndex.template.php, BoardIndex.template.php amongst others. It keeps refering to line 669. I have install SMG and removed SMFGallery so I don't understand why this should be happening.

P.S. I am really sorry if this question has been asked before  :-[
Thats not related to SMG...allow_smfgallery_view is an index of SMF Gallery not SMG.

Quote from: Kindred on December 05, 2008, 10:59:15 PM
let me just say...   mass-upload is a god-send!!!


I was trying to figure out how to convert Menalto gallery2 into SMG... I even has a SQL script started and then said the hell with it. 4000 files uploaded into the new galleries. with only a few clicks and some waiting.

Thanks :)
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Soms on December 06, 2008, 06:00:32 AM
@Nao I am using SMF Media Gallery 1.5 RC 3.2 which I presume is the latest version. And yes, I installed it manually. Yes I am using a different language (Dutch) on this particular forum. But I have a MGallery.dutch.php installed in the same language directory where MGallery.english.php is installed.

@Dragoon. This is happening even though like I said, SMF Gallery is no longer installed.

@Both. The mode is working great, it is just that I get the annoying errors in the log eating up a lot of pages.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on December 06, 2008, 06:14:44 AM
Quote from: Kindred on December 05, 2008, 10:59:15 PM
let me just say...   mass-upload is a god-send!!!

I was trying to figure out how to convert Menalto gallery2 into SMG... I even has a SQL script started and then said the hell with it. 4000 files uploaded into the new galleries. with only a few clicks and some waiting.
Cool eheh :)
Wasn't there a Gallery2 -> Coppermine converter available? Because you could also go that way... It would kept all albums, comments, descriptions, titles, etc... (I guess)
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Soms on December 06, 2008, 06:19:15 AM
@Nao & Dragoon. 2 minutes after my last post, I saw the light! There was a residual string of SMF Gallery left on index.template.php on line 669 which was causing the error. I have removed the offending string and no more errors. Thanks guys for a great mod.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Kindred on December 06, 2008, 08:49:13 AM
I hate doing convert to 1, convert to 2 systems... someting always gets bolluxed.

yeah, so I lost he viewcount... we didn't have that many comments and I will re-apply ownership as people tell me which images are theirs. :)

after I started working on it, the converter from Gallery2 seemed like too much effort for what I actually needed (getting the old images into the new system) especially since I really didn't care about anything else.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 07, 2008, 01:56:28 AM
SMF Media Gallery 1.5 final and SMG Slideshow addon released!
Link to announcement (http://smf-media.com/community/index.php?topic=366.0)
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 07, 2008, 05:00:07 AM
Again--I'm in no way related to paying addons, and if anyone needs to be reassured -- I will never release paying addons for SMG. Every "addon" I might make for SMG will be integrated into it.
So, I'm very happy that the final 1.5 version is released, but this announcement, which was made without my knowledge, shouldn't have anything to do with a paying slideshow addon.

With this point made clear -- good luck to Dragooon for his addons.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: DirtRider on December 07, 2008, 05:19:05 AM
I am running  1.5 RC 3.2  on SMF 2.0 Beta 4 not sure if I must install this 1.5 version or not. What does it actually do
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 07, 2008, 05:21:28 AM
It fixes many bugs :).
Upgrading is easy, uninstall old release and install new one.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 07, 2008, 05:28:49 AM
Do whatever you want, we're not forcing you...
And if you had clicked on the announcement, you would have got the changelog. Is that so hard?

+ New [smg id=... type=av] option allows you to integrate audio and video, both local and remote (embedded), into your posts
+ Added "Use this file as thumbnail" option to force a thumbnail for an audio/video file that wouldn't get one otherwise
+ Added support for Aeva 5.0 - this new version of Aevac is now made by a SMG dev, so get it, get it!
+ Added ability to retrieve thumbnails via a feed page
+ Added support for Google Video thumbnails via... a feed page (got it?)
+ Adding tentative support for ogg audio files, if you have the browser/player that likes them
+ Added function documentation on most source files
+ Added the ability to choose whether to use the entity conversion process for strings
! Tentative fix for more UTF issues in album names/descriptions and item descriptions
! Fixed long-lived bug where approved/unapproved item stats were wrong
! Fixed a broken [smg] tag issue in SMF2-Wysiwyg mode
+ Added several options to Regenerate: only thumbs, embedded thumbs, or previews
! Fixed more, and more, Regenerate bugs... At this point, I think we're making them up in our sleep.
! More bugs were harmed, and sometimes severely killed, during the making of this final release


+ admin area modifications (mostly in the credits area)
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Celdric on December 07, 2008, 07:06:39 AM
Hi. Just installed the final version. Well, works okay except that the admin area isn't loading. When I click the admin link in the menu it shows just white space.

However,  my SMF is connected with a Joomla forum. But that wasn't a problem with former gallery versions. The gallery admin center was always correctly loading.

Nonetheless I thought that my SMF 1.12 might be a little outdated. I updated to 1.17, but the gallery admin center is still missing. Anyway at least I have a up to date forum now. lol
I noticed that the admin link works correctly, when I unwrapp the forum and run it stand alone. The problem only occurs, if Joomla and SMF are connected. And only with the actual Gallery version.

Well, whatever it is. It's doutbless something caused by my site configuration. Not by your software. :)
But what could be that only the admin link doesn't load while all other gallery parts work fine?



Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 07, 2008, 07:10:28 AM
The only possibility I can think of is the news fetcher...but it still should not cause a white page.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: DirtRider on December 07, 2008, 07:55:05 AM
Quote from: Nao 尚 on December 07, 2008, 05:28:49 AM

And if you had clicked on the announcement, you would have got the changelog. Is that so hard?


Hmmm ....... I must also remember not to ask questions here or post in this area at all  :-X
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 07, 2008, 08:10:46 AM
.......<_<
We were just trying to say that the announcement topic has all the information and reasons you need to upgrade. 1.5 final is a release which improves the stability of the gallery. It is highly recommended to upgrade.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: DirtRider on December 07, 2008, 08:20:08 AM
Well I did not see the announcement topic that is why I asked and I still cannot find it
Title: Re: SMF Media Gallery - 1.5 final released
Post by: HistoryHunter on December 07, 2008, 08:32:15 AM
Upgrade went smoothly, thank you.

Tinyportal: I could not find there any blocks for this mod. Are there any?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: mforum on December 07, 2008, 12:29:47 PM
Random image block for TP

http://smf-media.com/community/index.php?topic=121.0
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nibogo on December 07, 2008, 12:44:35 PM
SMG Spanish Translation (non-official - because nao is on <bitc* mode>)  :P :

http://smf-media.com/community/index.php?topic=308.0
Title: Re: SMF Media Gallery - 1.5 final released
Post by: mwmconsulting on December 07, 2008, 12:56:02 PM
Thanks for the great mod!  :)

I just installed the final release of version 1.5 (released today) on my SMF Forum 1.1.7.

It works well so far except:


Any chance these issues will be resolved?

Cheers!

- MWM
Title: Re: SMF Media Gallery - 1.5 final released
Post by: ke4obt on December 07, 2008, 01:17:31 PM
Nao, Dragooon,
HELP!!!   :'(
Installed SMG, only "mess-up" was in sources/load.php so my wife did that one manually. Got it all up and then got: 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 'FROM smf117_members AS mem LEFT JOIN smf117_attachments AS a ON (a.ID_MEMBE' at line 3 - this is exactly how it showed, seems to be missing some stuff in the error according to the wife.
which basically wouldn't let me do ANYTHING on the site :(
The wife deleted the files that had been edited and took the ~ off the backups. She didn't remove the files that SMG had added and didn't do anything else to the database since we're short on time and getting ready to leave the house.
I'm afraid we may have messed something up with the load.php.
If you need to know my version of PHP or MySQL, leave a note and I'll post it later this evening when we get back home. We do have the site back up and running, just minus SMG. :(
Thanks,
Flip

ps - Nao and Dragooon, if you want, I can set up accounts for you 2 with admin privileges and FTP accounts for the site. Just let me know and I'll have the wife do it. Could be tomorrow before she could get the FTP accounts up, though. I can do the admin accounts tonight with no problem. Thanks again for any and all help. I've "played" with the first release and can't wait to get this one running.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Bostonian on December 07, 2008, 03:30:43 PM
I am uploading  picture files and find that there are big gaps with only about 5 pictures before the next page is filled, again only a few pictures. How can I bring them together so that the page is full.
My web page is http://www.detectingwales.com/
See Gallery
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Sudhakar Arjunan on December 07, 2008, 04:14:30 PM
Installation went smooth,

SMF Media Gallery converter Page - Showed Error on left side block above process bar,

Warning: Invalid argument supplied for foreach() in /home/sitename/public_html/discuss/mgconverter_sgl.php on line 642

On the right side panel, it showed

Error
You are not allowed to make the conversion

On my error log,

http://sitename.com/index.php?action=profile
Apply Filter: Only show the errors with the same message
8: Undefined index: mgal_total_items
Apply Filter: Only show the errors from this file
File: /home/sitename/public_html/discuss/Sources/Load.php
Line: 1323

http://sitename.com/index.php?action=profile
Apply Filter: Only show the errors with the same message
8: Undefined index: mgal_total_comments
Apply Filter: Only show the errors from this file
File: /home/sitename/public_html/discuss/Sources/Load.php
Line: 1324
Title: Re: SMF Media Gallery - 1.5 final released
Post by: mikecentola on December 07, 2008, 04:38:12 PM
Quote from: ke4obt on December 07, 2008, 01:17:31 PM
Nao, Dragooon,
HELP!!!   :'(
Installed SMG, only "mess-up" was in sources/load.php so my wife did that one manually. Got it all up and then got: 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 'FROM smf117_members AS mem LEFT JOIN smf117_attachments AS a ON (a.ID_MEMBE' at line 3 - this is exactly how it showed, seems to be missing some stuff in the error according to the wife.
which basically wouldn't let me do ANYTHING on the site :(
The wife deleted the files that had been edited and took the ~ off the backups. She didn't remove the files that SMG had added and didn't do anything else to the database since we're short on time and getting ready to leave the house.
I'm afraid we may have messed something up with the load.php.
If you need to know my version of PHP or MySQL, leave a note and I'll post it later this evening when we get back home. We do have the site back up and running, just minus SMG. :(
Thanks,
Flip

ps - Nao and Dragooon, if you want, I can set up accounts for you 2 with admin privileges and FTP accounts for the site. Just let me know and I'll have the wife do it. Could be tomorrow before she could get the FTP accounts up, though. I can do the admin accounts tonight with no problem. Thanks again for any and all help. I've "played" with the first release and can't wait to get this one running.

I am having the exact same issue. I replaced the Load.php with the ~ one and the forum is working again, but I cannot figure out where the syntax error might be.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 07, 2008, 05:02:14 PM
A.SK> you must be logged in as admin to your board before you can run the converter.

All others> Uh... Have you tried turning it off and on again?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: mikecentola on December 07, 2008, 05:15:04 PM
I think I have figured out my problem. I went back through and re-edited Load.php, and I think I've got it working. I'm running a few more tests first...
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Sudhakar Arjunan on December 07, 2008, 05:35:09 PM
Quote from: Nao 尚 on December 07, 2008, 05:02:14 PM
A.SK> you must be logged in as admin to your board before you can run the converter.

I am the Admin, i did for several Time. Even Logged Out and Logged in back.

And what about the error log problem mentioned on my previous post, Nao.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 07, 2008, 06:55:02 PM
Did you uninstall/reinstall correctly?

To everyone-- In the final release, item/album descriptions are cut off after 255 bytes. You can find a quick fix here:
http://smf-media.com/community/index.php?topic=371.msg2896#msg2896

Please note that comments are also cut off, but I'm too lazy to post a fix for them ;) Will be in the next release...
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 07, 2008, 07:03:26 PM
Quote from: ke4obt on December 07, 2008, 01:17:31 PM
Installed SMG, only "mess-up" was in sources/load.php so my wife did that one manually. Got it all up and then got: 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 'FROM smf117_members AS mem LEFT JOIN smf117_attachments AS a ON (a.ID_MEMBE' at line 3 - this is exactly how it showed, seems to be missing some stuff in the error according to the wife.
Hmm, I don't know... Doesn't look like a SMG issue.

QuoteI'm afraid we may have messed something up with the load.php.
Could you simply post your Load.php file so I can have a look? (I mean the one that was buggy, if you still have it...)
Title: Re: SMF Media Gallery - 1.5 final released
Post by: niko on December 07, 2008, 07:08:58 PM
Congrats for 1.5 Final!
Title: Re: SMF Media Gallery - 1.5 final released
Post by: ke4obt on December 07, 2008, 07:35:14 PM
Quote from: Nao 尚 on December 07, 2008, 07:03:26 PM

QuoteI'm afraid we may have messed something up with the load.php.
Could you simply post your Load.php file so I can have a look? (I mean the one that was buggy, if you still have it...)

Here it is. We just got home in time to get this posted back to you before I have to take a nap before work.
Even though Flip is blind, he's trying to prove he's not totally useless, but he's almost bald trying to figure some of the stuff out. The "hard" stuff like manually editing files I have to do since his screen reader doesn't read it for garbage for him. But even this had me stumped - however, I'm not a coder either, so we were both stuck. :)

Thanks,
Mickey - Flip's BETTER half   ;D

p.s. - thanks for the offer of help for Flip (being blind), and (in my own mind) myself (for a beautiful woman). I'm trying to learn how to do at least some of the coding just to have the practice. However, I may come crying for help again. :)  Thanks again, Mickey
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Celdric on December 07, 2008, 09:11:06 PM
Quote from: Dragooon on December 07, 2008, 07:10:28 AM
The only possibility I can think of is the news fetcher...but it still should not cause a white page.

Well, thanks for your response. :) Couldn't find the reason, so I switched back to 1.5 RC1. No admin issues with this version. All is loading. Though I have the undefined variable width and height issue.
Video is shown in Firefox, but not in IE.
I read overthere at your place that the problem was fixed later. Any option that I can fix it manually?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: darkon on December 07, 2008, 09:45:03 PM
I installed MG 1.5 in my SMF 1.1.7 and i can´t upload anything. :(

It tries to upload but after a few seconds i´ll get a message "FILENAME.EXT - An error happened during the upload process, please try again or contact the administrator."

in single upload the message ist nearly the same, just the filename ist missing.

I tried several browsers but none of them works out
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: dea on December 07, 2008, 09:50:29 PM

Hi! Thanks for the gallery! It's beatiful!
I'm getting the same errors, I just converted from SMF Gallery Lite and got them.
8: Undefined index: num_items
/htdocs/Sources/Subs-MGallery.php
Línea: 1199

8: Undefined index: overall_total
/htdocs/Sources/Subs-MGallery.php
Línea: 1199

8: Undefined index: parent
/htdocs/Sources/MGallery.php
Línea: 209

Thank you again!
Quote from: ディン1031 on November 29, 2008, 09:24:03 AM
So i found some small bugs ;), i will post them how i fixed them, but I'm sure there are better ways for fixing this, because some things should normal not happen :).

Tested with Version 1.5 RC 3.2

INFO: This are only infos for the devs of the mod. Please, don't use it if you not know what you do!



1st:

Error:

Benutzers  ???1031    Heute um 14:41:04
URL http://forum.arseniums.com/index.php?action=mgallery;sa=item;id=151
Error:
8: Undefined index: 51
Datei: /is/htdocs/wp1016102_GI2668394A/www/forum/Sources/MGallery.php
Zeile: 611


What happend:
It's possible that the id do not exist anymore in the database, and MGallery don't know about this. So it will produce a other Error on the Load.php because it could not load the data of the member ;).


Fixed it in MGallery.php[/code]

$item_data['comments'][] = array(
'id_comment' => $row['id_comment'],
'members' => $row['id_member'],
'member' => array(),
'message' => $mgalFunc['parse_bbc']($row['message']),
'posted_on' => $mgalFunc['time_format']($row['posted_on']),
'is_edited' => !empty($row['last_edited']) && $row['last_edited'] != '0',
'last_edited' => array(
'id' => $row['last_edited_by'],
'name' => $row['last_edited_name'],
'link' => '<a href="'.$scripturl.'?action=profile;u='.$row['last_edited_by'].'">'.$row['last_edited_name'].'</a>',
'on' => $mgalFunc['time_format']($row['last_edited']),
),
'counter' => $counter,
'can_edit' => mGalAllowedTo('moderate') || (mGalAllowedTo('edit_own_com') && $row['id_member'] == $user_info['id']),
'can_report' => mGalAllowedTo('report_com'),
'approved' => $row['approved'],
);
}
foreach ($item_data['comments'] as $mem)
$members[] = $mem['members'];
loadMemberData(array_unique($members));
foreach ($item_data['comments'] as $k => $com)
{
loadMemberContext($item_data['comments'][$k]['members']);
$item_data['comments'][$k]['member'] = $co = $memberContext[$com['members']];
$item_data['comments'][$k]['member_link'] = smg_profile($co['id'], $co['name']);
}



$item_data['comments'][] = array(
'id_comment' => $row['id_comment'],
'members' => $row['id_member'],
'member' => array(
'mgallery' => 0,
),
'member_link' => $txt['guest'],
'message' => $mgalFunc['parse_bbc']($row['message']),
'posted_on' => $mgalFunc['time_format']($row['posted_on']),
'is_edited' => !empty($row['last_edited']) && $row['last_edited'] != '0',
'last_edited' => array(
'id' => $row['last_edited_by'],
'name' => $row['last_edited_name'],
'link' => '<a href="'.$scripturl.'?action=profile;u='.$row['last_edited_by'].'">'.$row['last_edited_name'].'</a>',
'on' => $mgalFunc['time_format']($row['last_edited']),
),
'counter' => $counter,
'can_edit' => mGalAllowedTo('moderate') || (mGalAllowedTo('edit_own_com') && $row['id_member'] == $user_info['id']),
'can_report' => mGalAllowedTo('report_com'),
'approved' => $row['approved'],
);
}
foreach ($item_data['comments'] as $mem)
$members[] = $mem['members'];
$members = loadMemberData(array_unique($members));
if($members !== false)
foreach ($item_data['comments'] as $k => $com)
{
if(!in_array($com['members'], $members))
continue;
loadMemberContext($item_data['comments'][$k]['members']);
$item_data['comments'][$k]['member'] = $co = $memberContext[$com['members']];
$item_data['comments'][$k]['member_link'] = smg_profile($co['id'], $co['name']);
}
}


Now it will be show the guest as guest... i think there should be a better fix for this *g* (It's only a fist idea to solve it) ;).



2nd:
child_level eval bug

What happened:
I'm not sure where it come from but sometimes the child_level is not set but it goes into the function.

Fixed it in Subs-MGallery.php[/code]

if ($albums[$row['parent']]['child_level'] + 1 != $row['child_level'])
$mgalFunc['db_query']("
UPDATE {db_prefix}mgallery_albums
SET child_level = {int:level}



// DIN1031 Fix for the eval error?
if(empty($albums[$row['parent']]['child_level']))
$albums[$row['parent']]['child_level'] = 0;
if(empty($row['child_level']))
$row['child_level'] = 0;
// If there is a child-level problem, we fix it!
if ($albums[$row['parent']]['child_level'] + 1 != $row['child_level'])
$mgalFunc['db_query']("
UPDATE {db_prefix}mgallery_albums
SET child_level = {int:level}




3rd:
Error:
overall_count and num_items eval bug

What happened:
There are insert empty not array items into the function, i think it should be checked before. Because it can cause a lot errors on large galleries...

Currently fixed with:
Fixed it in Subs-MGallery.php[/code]

// Gets overall totals of a item
function getOverallTotal(&$_album, &$_dat)
{
$_album['overall_total'] += $_dat['num_items'];

if (empty($_dat['sub_albums']))
return true;

foreach ($_dat['sub_albums'] as $id => $album)
getOverallTotal($_album, $album);
}



// Gets overall totals of a item
function getOverallTotal(&$_album, &$_dat)
{
//DIN1031 Eval Fix?
if(empty($_album['overall_total']))
$_album['overall_total'] = 0;
if(empty($_dat['num_items']))
$_dat['num_items'] = 0;

$_album['overall_total'] += $_dat['num_items'];

if (empty($_dat['sub_albums']))
return true;

foreach ($_dat['sub_albums'] as $id => $album)
getOverallTotal($_album, $album);
}

Title: Re: SMF Media Gallery - 1.5 final released
Post by: ke4obt on December 08, 2008, 11:03:44 AM
Quote from: mikecentola on December 07, 2008, 05:15:04 PM
I think I have figured out my problem. I went back through and re-edited Load.php, and I think I've got it working. I'm running a few more tests first...

maybe a silly question, but can you tell me the area that you re-edited in load.php?
I'm the one who posted my error just a few posts above the one of yours that I quoted here. :)
If you could tell me either the general section/area or the line number or both that you edited to make it work right, I may be able to find it - after I get some sleep and let my poor tired brain rest. :D Also, you can look at our copy of load.php that I posted if you would and perhaps give me a hint as to what I did wrong.

Thanks,
Mickey - Flip's wife

p.s. I am posting this at Flip's request since we both want to learn how to code a LOT better than we do now. That way, after we do any edits and an error comes up, we at least have a slim idea of what to look for in the edits. Thanks again.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 08, 2008, 02:30:54 PM
@Celdric> We didn't change anything in the admin area since the release...
@darkon> All correct chmods and everything?
@dea> Looks like a failed install to me... Won't be able to help without a link to your board, and possibly an admin account (or at least an account with "manage board" permissions.) And quoting a long (unrelated) message is considered rude, BTW!

Quote from: ke4obt on December 07, 2008, 07:35:14 PM
Even though Flip is blind, he's trying to prove he's not totally useless, but he's almost bald trying to figure some of the stuff out. The "hard" stuff like manually editing files I have to do since his screen reader doesn't read it for garbage for him.
Yeah, I'm also guessing that quoting is a problem with screen readers (it doesn't say "This part here is written by someone else...")

QuoteBut even this had me stumped - however, I'm not a coder either, so we were both stuck. :)
p.s. - thanks for the offer of help for Flip (being blind), and (in my own mind) myself (for a beautiful woman).
Oh, they have to be *available*, too! :P
But then again, I'm not, so it's a vicious circle anyway ;D

QuoteI'm trying to learn how to do at least some of the coding just to have the practice. However, I may come crying for help again. :)  Thanks again, Mickey
Okay, what with the Load.php file... You were supposed to search for "a.filename, a.attachmentType," (notice the final ","), but you searched for "a.filename, a.attachmentType", which brought you to a different line. You need to move the extra text to the "($set == 'normal')" code block, so that the two extra fields are loaded in both "normal" and "profile" data blocks.
I think that's the only change that screwed up ;) It shouldn't have generated a fatal error... At the very worst, a warning message...
Title: Re: SMF Media Gallery - 1.5 final released
Post by: ke4obt on December 08, 2008, 04:33:22 PM
Hey Nao and all other SuperCoders,

Just foundout the hardway NOT to wake-up the wife when I get a message that looks like it has all the annsers we need.(Oh Boy :o ).

Well she did say that she would take a look tonight before leaving for work.
Will let you know more later.

    Many Thanks Again,
    The Now Bald Blind Ham Radio Operater
    Flip - KE4OBT   
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 08, 2008, 05:06:33 PM
You don't want to wake up your wife... You never want to do that... Whomever the wife is... I also did that a couple of days ago, when someone gave me a link to an website that has a potential Mod file player for SMG... The player's volume was so high... It was 2 in the morning... Yeah... You don't want to wake up the wife :D
Title: Re: SMF Media Gallery - 1.5 final released
Post by: alex30 on December 08, 2008, 09:41:22 PM
Can anyone explain why can't I see a picture in gallery even if I didn't enter any passwords before?

Thanks.



(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.hugginsnet.com%2Ffishy%2Faqgall2.jpg&hash=77db58dd7b1f4eca5bde7ec856a58b27fbf3a0f6)
Title: Re: SMF Media Gallery - 1.5 final released
Post by: darkon on December 08, 2008, 09:45:14 PM
The CHMOD for the folders "mgal_data" and all the folders included in that are set to 777.
Since i have to install my mods manualy (somehow the package manager won´t work on my vServer) i had to guess how to set the CHMODs, because there was no instruction on permissions.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: ke4obt on December 08, 2008, 09:52:58 PM
Nao,
first, this is the wife :) I didn't hurt him toooo badly. And playing a media player too loud at 2 am wouldn't bother me a bit, I'm at work at that time.
second, could we get on our knees and beg you or one of the devs to take mercy on us and check our site for us? I can set up whomever as an admin. But of course, I'm not going to do that for just anyone. They gotta be part of the dev team. the site is located at http://hraworld.com/ezportal (http://hraworld.com/ezportal). You can register up there and then if I'll "upgrade" you to admin.
While I was asleep, Flip reinstalled SMG and then realized there were 2 gallery buttons in the menu, so he uninstalled. there was still a gallery button, so he clicked it and the gallery was there. Odd at best. He said he hasn't figured out how to get around in the gallery yet, but he's "playing" with it.
Off I go to my "real" job (the one that actually pays me). Have a wonderful night.
Still like the mod, btw.

Thanks again,
Mickey - the blind, bald ham's wife.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 08, 2008, 11:16:27 PM
Quote from: alex30 on December 08, 2008, 09:41:22 PM
Can anyone explain why can't I see a picture in gallery even if I didn't enter any passwords before?
Huh? You password protected the albums probably.

@ke4obt - Send me (PM me) an admin account, I'll have a look for you :).
Title: Re: SMF Media Gallery - 1.5 final released
Post by: alex30 on December 08, 2008, 11:50:17 PM
I'm scared to give you a password. Do you know where I need to go to fix it?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 08, 2008, 11:56:18 PM
What I mean is...while adding the album you must have set a password. And that made it password protected....
Title: Re: SMF Media Gallery - 1.5 final released
Post by: alex30 on December 09, 2008, 12:01:57 AM
Member says that he didn't enter any, but how can I disable password.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 09, 2008, 12:04:33 AM
Go to Admin > Albums > (The album) > Edit and empty the field with the name "Password" in it and save it.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: alex30 on December 09, 2008, 12:09:01 AM
Thanks mate. If you have an aquarium, you're welcome to check out our forum.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: alex30 on December 09, 2008, 12:10:31 AM
One more questions. Do you have any ideas how can I take away ads from gallery section?

Update: I use some things on the right side.

Look

http://aquatropicalfish.com/forum/index.php?action=mgallery
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 09, 2008, 12:11:32 AM
Thanks, it seems you're running 1.0.2. I recommend upgrading to 1.5 as it has many new features.

@Ads issue - I'd ask the mod author about it.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: alex30 on December 09, 2008, 12:13:56 AM
I'm not sure if it will allow me. I messed up a bit with codes on index page. What do you think can I take away that stuff that I use by ad mod?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 09, 2008, 12:24:21 AM
Well you can add a small "if" clause such as
if (!isset($_REQUEST['action']) || $_REQUEST['action'] != 'mgallery')
{
// Your code here
}
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Celdric on December 09, 2008, 01:08:19 AM
@Nao> Well, I just uploaded and installed the final version 1.5 new. The result is the same. The admin center is missing. Eventhough the same result, when I installed 1.5 RC1 back: the admin center was  there.  I'm installing both versions in one and the same forum using one and the same package manager. So if the codes of 1.5 final and 1.5 RC1 aren't different, what else could cause that the admin area loads with one version, but not with the other?

Anyway,  the gallery is a great mod and I would be happy with 1.5 RC1. If your time allows would you just give me a hint, how I can fix the undefined height and width error to get wmv videos running in IE? :)
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 09, 2008, 03:50:35 AM
Quote from: ke4obt on December 08, 2008, 09:52:58 PM
Nao,
first, this is the wife :) I didn't hurt him toooo badly. And playing a media player too loud at 2 am wouldn't bother me a bit, I'm at work at that time.
You work in night shifts?

Quotesecond, could we get on our knees and beg you or one of the devs to take mercy on us and check our site for us? I can set up whomever as an admin. But of course, I'm not going to do that for just anyone. They gotta be part of the dev team. the site is located at http://hraworld.com/ezportal (http://hraworld.com/ezportal). You can register up there and then if I'll "upgrade" you to admin.
Yeah, no problem... I'd rather you send me via PM a ready-to-use account, though. (Just go to the Admin area > Members > there's a section to create a new account. Enter a dummy e-mail, don't e-mail the account owner, and send me user/pass by PM here.)

@Celdric> I can't help further without admin access to your website (and possibly FTP access, as usual. Might not always be needed, but can be handy for a quick check.)

RC1 is several weeks old... It's so... Middle-ages :P
Title: Re: SMF Media Gallery - 1.5 final released
Post by: ke4obt on December 09, 2008, 08:00:24 AM
 

Hey Dragooon and Nao,

PMs sent,

Now the wife told me that i have to ask how many-times I have to write
"Thank-You forhelping, Next time I am told not to mess with something untill I have someone here to help me,I will learn to follow directions."
:( :-[

Thanks Flip

Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 09, 2008, 09:26:11 AM
Okay, just one silly little question...
What's wrong with the gallery on your website? It seems to be running perfectly fine...
As for the double-gallery-button, it's probably because you installed it twice... (One time manually I suppose, and one time through the package manager?)
You're very lucky that it didn't break anything. But it does seem to be behaving correctly here.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: ke4obt on December 09, 2008, 10:41:19 AM
Quote from: Nao 尚 on December 09, 2008, 09:26:11 AM
Okay, just one silly little question...
What's wrong with the gallery on your website? It seems to be running perfectly fine...
As for the double-gallery-button, it's probably because you installed it twice... (One time manually I suppose, and one time through the package manager?)
You're very lucky that it didn't break anything. But it does seem to be behaving correctly here.

we didn't install it twice, that's the weird thing. don't know what's wrong with it.
We also have SMF Articles for a couple of the guys who are going to write them for the site. Since I didn't see it, is there a way to hide an album? This way, the article writers can put pictures for their articles in a hidden album and link them to the article.
Flip said there are some errors in the error log that refer to SMG, undefined something or another. He said he had no clue what to do about them.
Do you and/or Dragooon need FTP accounts?? If so, I can set them up later. I just got home and have a class this afternoon, so I'm going to take a quick nap.
And, yes, I work the midnight shift. 2300-0700. LOVE it!!! I'm weird like that :)

Thanks a zillion times over again and again,
Mickey

ps - when I walked in the door, I handed Flip his tape recorder and he is in the process of recording "I will not mess without help" a thousand times.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 09, 2008, 11:10:04 AM
Quote from: ke4obt on December 09, 2008, 10:41:19 AM
We also have SMF Articles for a couple of the guys who are going to write them for the site. Since I didn't see it, is there a way to hide an album? This way, the article writers can put pictures for their articles in a hidden album and link them to the article.
You know, actually, the only reason why I went to search for a gallery system and ended up losing myself in co-developing SMG, is that I wanted to enable my bloggers to upload pics in a hidden area and link to them via a new tag...
Honestly!
Anyway--in the end, I didn't implement that... And I don't know when I'll do it. The problem is that it requires the user to be able to view a picture, and its item page, without being able to browse the album itself. How should I do this, eh? I thought of simply adding a "Disallow album browsing" tag in the album settings that would disable several things ("previous/next" links, album name in the linktree, album view, album link in the album list, etc...), but it's still a lot of work just for that... And I really have to work on Aeva right now...

Flip said there are some errors in the error log that refer to SMG, undefined something or another. He said he had no clue what to do about them.[/quote]
I'll have a look at the error log then...
Oh, and I just noticed your homepage crashes...

QuoteDo you and/or Dragooon need FTP accounts?? If so, I can set them up later.
Later maybe.

QuoteI just got home and have a class this afternoon, so I'm going to take a quick nap.
And, yes, I work the midnight shift. 2300-0700. LOVE it!!! I'm weird like that :)
Yeah I love working at night, too, but my GF wouldn't appreciate...
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Celdric on December 09, 2008, 11:43:21 AM
@Nao> Well, I don't know what to say. 2 times now I told you my decision to use RC1 and I asked you friendly and polite, if you can help me to fix this video bug.

But you are simply ignoring either my decision and also my requests. Why is that? :)










Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 09, 2008, 12:49:02 PM
Oh oh... I'm feeling anger here... (And that edit thing... Sounds like it used to be even worse...)

Remember, eh? You're not paying us for your tech support... If you're having problems, we could just say screw up, go use something else. I've been trying to help for several messages, always answering politely, and since I was out of options, I said I couldn't help with an admin access to the gallery. And then you say I'm not helping and I'm not answering. Yay. Good for you. Celdric FTW!

Yeah, you just earned yourself an official SMG seal of "Go see somewhere else, or come back when you'll be ready to let me help you on my spare time with a smile".
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 09, 2008, 01:13:51 PM
@Celdric....Its not our fault that you use an older version of the gallery with a bug that was fixed later on. If your page ends up being white when wrapped with Joomla then check the PHP/Apache error logs to know if something actually went faulty. Fixing the error is better than running away from it.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Celdric on December 09, 2008, 02:39:47 PM
@Dragoon>I remember that I said it's not your fault. :) And my page ends not at all being white.
It is just the Gallery admin page that is showing white. And it is showing white only, when I use the final Gallery version.

Now that this happens might have hundreds of reasons. You and I and could spend problably weeks on seeking because of the tons of other scripts which I have installed and which may cause a conflict.

Anyway, I thought - and perhaps you agree, if you look at it from my standpoint - it's an much easier and reasonable way, when I just use an earlier version where this white admin page issue didn't occur instead to spend much time and work on a probably unsuccessful search.

Though RC1 that I want to use has this video bug. Well, I hoped Nao could provide me with a hint how this bug can be fixed. But it seems to me that he can't help me with this issue. :(
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 09, 2008, 03:19:18 PM
Quote from: Celdric on December 09, 2008, 02:39:47 PM
Though RC1 that I want to use has this video bug. Well, I hoped Nao could provide me with a hint how this bug can be fixed. But it seems to me that he can't help me with this issue. :(
When are you going to understand??

I do NOT know why you have this problem. (Generally, blank admin page = generally, a syntax error inside the admin files themselves, but why on *our* admin files?)
I can NOT fix this without having access to the files to analyze them.
You are obviously not willing to share your files.

Oh well, why do I care answering at this point?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Godsongz on December 09, 2008, 04:19:54 PM
/me uploads a bottle of virtual Tequila to Nao

Ain't tech support fun? ;)
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 09, 2008, 04:42:39 PM
Yeah... I signed up to develop, not to support :P
I quit my main job years ago *because* I was bored with the tech support thingy!

Celdric... "Have you tried turning it off and on again?"
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Burke ♞ Knight on December 09, 2008, 04:50:12 PM
Or even uninstalling and re-installing it again?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: ke4obt on December 09, 2008, 05:12:35 PM
well, to start with, we want to give our nod and super-kudos to Dragooon and Nao for helping out us two wannabe site admins. we have always found it a LOT easier, when we ask for help, to allow the devs/support access to the site instead of vetching about it. That would be like taking my car to the mechanic and telling him he could only diagnose the problem by sitting in  the front seat. :)
@Nao, Flip said it was a language file that he edited that crashed the site. He OBVIOUSLY doesn't learn quickly (he's back at the tape recorder, this time a million times). Also, a lot of the errors went away when Flip uninstalled the page view counter and the unique hit counter (now he'll just have to wonder how many hits we get).
Only one last thing we'd like to see for SMG - we're using EZ Portal and you can set up a block to show a random image out of X album. We'd like to have in the block, selectable through the back end, to be able to show a random image out of a random album. Either a "pic of the day", or every time the page refreshes there's a new image.
Nao and Dragooon, even though every thing seems to be hunky dory, we're going to leave your access as it is. Just wanted to let you know we weren't going to "use" your expertise and then dump you to the curb. :D  Also, if you want to use the site to test things out on a different server just to see how they work, that site is just a test site, so it won't bother anything.
BTW - Nao, if you prefer nights and the GF prefers you to be home at night, you have one of two choices - work days (which I guess you already do), or get a new GF who's a night-owl too. :)

Again, Thanks a zillion plus one,
Mickey

ps - if any of this doesn't make sense, my brain is still pretty wasted. I'm going back to bed before I keel over and can't work tonight (which would NOT be a good thing). Mickey
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 10, 2008, 12:30:34 AM
@Celdric...Can you please check your PHP and Apache error logs?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 10, 2008, 01:50:20 AM
Quote from: ke4obt on December 09, 2008, 05:12:35 PM
well, to start with, we want to give our nod and super-kudos to Dragooon and Nao for helping out us two wannabe site admins.
Hey, he didn't do it! I'm the one who helps disabled users O:) and pretty girls! 8) Dragooon is the one who helps rude users who don't want to look at their logs and attach files on the board! :'( We both have our specialties! :D

Okay lol I'm stopping with the smileys and the lousy humor  :P I don't mind, just kidding.

Quotewe have always found it a LOT easier, when we ask for help, to allow the devs/support access to the site instead of vetching about it. That would be like taking my car to the mechanic and telling him he could only diagnose the problem by sitting in  the front seat. :)
Yeah, yeah, good comparison ;)

Quote@Nao, Flip said it was a language file that he edited that crashed the site.
Yes, I can confirm...

QuoteHe OBVIOUSLY doesn't learn quickly (he's back at the tape recorder, this time a million times).
Well I can only imagine how hard it must be to edit a file when it's very large and you're forced to rely on something else than an actual screen to review it... (How does it work? Is it a program that reads the screen out loud? Or is it somehow converted to a Braille version?)

QuoteAlso, a lot of the errors went away when Flip uninstalled the page view counter and the unique hit counter (now he'll just have to wonder how many hits we get).
Hmm... There's a hit counter on SMF... Just look at the stats area... It's not perfect, but at least it allows you to check whether your website is growing or not.

QuoteOnly one last thing we'd like to see for SMG - we're using EZ Portal and you can set up a block to show a random image out of X album. We'd like to have in the block, selectable through the back end, to be able to show a random image out of a random album. Either a "pic of the day", or every time the page refreshes there's a new image.
I don't know anything about portals so you'll have to ask someone on the board to help you here. There are blocks for random images available for TinyPortal I think.

Hmm... Makes me think I could add a feature to the [smg] tag... Something like, [smg id=random] (and optional: album=random) would show a random picture from a random (or specific) album...

QuoteNao and Dragooon, even though every thing seems to be hunky dory, we're going to leave your access as it is. Just wanted to let you know we weren't going to "use" your expertise and then dump you to the curb. :D
Well I'll keep your account details for later if you have another problem...

QuoteBTW - Nao, if you prefer nights and the GF prefers you to be home at night, you have one of two choices - work days (which I guess you already do), or get a new GF who's a night-owl too. :)
Yeah, well... I'll just wait and see!
Title: Re: SMF Media Gallery - 1.5 final released
Post by: adrian_teakdesk on December 10, 2008, 06:29:00 AM
I am helping to set up a SMF forum with SMF Media Gallery. I have three quick questions that you could possibly help me with:

1/ on SMF Media Gallery is it possible to remove the code links for HTML and Direct to just leave the BBC code ?

2/ is it possible to have a button that when clicked will copy the code to the clipboard in one action so that it can then just be pasted into the SMF forum posts (ie so the user does not need to highlight and then copy the code)?

3/ having removed the HTML and Direct code options is it then possible to add in different varieties of the BBC code - for instance one that copies thumbnail code, one that copies normal (medium sized) picture code, one that copies full size picture code, etc....?


Many thanks - Mike
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 10, 2008, 09:32:01 AM
Quote from: adrian_teakdesk on December 10, 2008, 06:29:00 AM
I am helping to set up a SMF forum with SMF Media Gallery. I have three quick questions that you could possibly help me with:

1/ on SMF Media Gallery is it possible to remove the code links for HTML and Direct to just leave the BBC code ?
Yes, by removing the MGalleryItem.php from your root folder.
Ah, wait--not, it's not available yet. Will be in v1.5.1. I did that change a few days ago and others were asking me for the reason I'd do that... I explained I didn't like the html/direct links ;)
Anyway: wait for v1.5.1

Quote2/ is it possible to have a button that when clicked will copy the code to the clipboard in one action so that it can then just be pasted into the SMF forum posts (ie so the user does not need to highlight and then copy the code)?
He doesn't need to highlight, he just needs to click on the box... (It highlights the code automatically. And if it doesn't, just double-click or triple-click on the input box.)
Err, no, I don't think I'll add that. (I'm not exactly a big fan of everything Javascript.)

Quote3/ having removed the HTML and Direct code options is it then possible to add in different varieties of the BBC code - for instance one that copies thumbnail code, one that copies normal (medium sized) picture code, one that copies full size picture code, etc....?
No. I thought of adding a button to launch a smg tag customizer, but I got lazy. And as I said, I'm not too much of a Javascript addict, and you need Java/Ajax for this kind of tool.
Just click on the Help button if you need a reminder for all you can do :P
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Elijah Bliss on December 10, 2008, 01:10:01 PM
As in regular posts, is there a way to censor undesirable words in the comments?
Have it linked to the censored words table some how?

Thanks.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 10, 2008, 01:31:54 PM
Hmm... You mean there are people who actually use that feature? ;)
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Elijah Bliss on December 10, 2008, 01:55:39 PM
Quote from: Nao 尚 on December 10, 2008, 01:31:54 PM
Hmm... You mean there are people who actually use that feature? ;)

lol.

Now if there is something I missed I apologize, but the censored words don't work on comments and if there is a setting to enable this I couldn't find it.

Thanks.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 10, 2008, 02:22:59 PM
Yeah, we don't use censorText() on comments or anything else for that matter, probably because we don't use it...
We will definitely have to add the call, though. It needs to be in line with the rest of SMF.

Dragooon? Opinion?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: ke4obt on December 10, 2008, 05:48:31 PM
Hey Nao,

QuoteWell I can only imagine how hard it must be to edit a file when it's very large and you're forced to rely on something else than an actual screen to review it... (How does it work? Is it a program that reads the screen out loud? Or is it somehow converted to a Braille version?)
Quote

First off, my computer has a screen reader that reads most every-thing on the screen,
"leters only for the most part", out loud.
The nice thing is that I am able to lable somethings on websites ie imgs. and photos as long as it's not js. buttons so others useing the same software here the title for the img. / buttons and can nav. there way around the net.

Now for my question, I can't seem to find but one linking code after a img. is posted  and it seems to be "bbc" so I think I'm looking right over it.
Can you point me in the right direction. Also can't find the link that I beleave you said tells you the different opptions the person posting the img. has e.g. Help button or something like that

     Thanks Mutch,
     Flip - KE4OBT
Title: Re: SMF Media Gallery - 1.5 final released
Post by: qubbah on December 10, 2008, 11:14:22 PM
actually...
There is a very nice job from smf Gallery team.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 10, 2008, 11:20:34 PM
I really don't appreciate someone advertise some other mod in my modification's thread for no good reason.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 11, 2008, 03:12:20 AM
@ke4obt> The tag is [smg id=123], replace the ID with your picture's ID, obviously. If you need some help, just follow this link (I'm puttin my website's one because it's the same help file everywhere):
http://media.noisen.com/?sa=smgtaghelp

@Dragooon> It was your choice to give the mod a name close to another existing mod, don't be surprised that there is some confusion in the process ;)
I just had a look at the SMF Gallery thread -- vbgamer45 is plagued with user questions related to SMF Media Gallery. He's forced to mention us once in a while. Do you think he appreciates that either? ^^

Anyway--it is common knowledge that SGL is made by a single user and SMG by two users, so I think he was talking about us when he said "SMF Gallery Team"... And he didn't post in the other topic in recent months (maybe never, actually), so you got your answer ;)
Title: Re: SMF Media Gallery - 1.5 final released
Post by: holeski on December 11, 2008, 06:44:31 AM
Will this work with the Sullen Madness theme? I can't seem to find where to place the file edits.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: DirtRider on December 11, 2008, 06:47:51 AM
When I click on my profile or any of the members in the member list I get the following error

Quote
Fatal error: Cannot redeclare mgallery() (previously declared in /home/davem/public_html/gameporthole.com/Sources/Profile.php:696) in /home/davem/public_html/gameporthole.com/Sources/Profile.php on line 720
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 11, 2008, 07:00:34 AM
You must've installed twice. Open Profile.php find the instances of mgallery. There would be 2 more more, delete them and leave only 1.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: DirtRider on December 11, 2008, 08:06:08 AM
Thanks sorted out. For some reason this bit of code was duplicated 5 times over


function mgalitems($memID)
{
global $sourcedir;
require_once($sourcedir . '/MGallery-Sub.php');
MGal_Profile_ViewItems($memID);
}

Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 11, 2008, 08:28:22 AM
It happens when you install a mod even if its older one wasn't removed properly(Probably because of upgrading).
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 11, 2008, 09:18:15 AM
Dragooon, how about we reduce the number of such occurrences by adding a check?

if (function_exists('mgalitems'))
  fatal_error_something('You have installed this mod twice, oh, you silly!');

or simply

if (!function_exists....)
  define the function
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 11, 2008, 09:19:57 AM
I like the second idea, the first one wouldn't even work as it would die from parse error even before it begins.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 11, 2008, 09:23:06 AM
The check would simply have to be added to add areas in the install files where new functions are defined. There aren't a lot, fortunately...
Title: Re: SMF Media Gallery - 1.5 final released
Post by: qubbah on December 11, 2008, 11:18:05 AM
Quote from: qubbah on December 10, 2008, 11:14:22 PM
actually...
There is a very nice job from smf Gallery team.

Oh... soo sorry what i mean is SMF Media Gallery.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Smoky "Rider" Blue on December 11, 2008, 12:12:44 PM
hey Nao or Dragooon.. tell me, will there be a converter for gallery2?

i havent dug around, but i didnt notice anything on mod discription either..

got a client that would love the mod lol.. (but i doubt as much as me!)  :P
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 11, 2008, 02:24:28 PM
Quote from: SmokyBlue on December 11, 2008, 12:12:44 PM
hey Nao or Dragooon.. tell me, will there be a converter for gallery2?
Sort of....
- Install Coppermine (sic) and SMG on your website (along with the Gallery2 stuff)
- Run this Gallery2 -> CPG converter: http://forum.coppermine-gallery.net/index.php/topic,51300.0.html
- Run our CPG -> SMG converter.

I would love to say I'd gladly do a direct Gallery2 converter, but actually I don't want to. :P Gallery2 is an awful mess to work with, so I quickly uninstalled it. (Kudos to Oldiesmann for his cool Gallery2 bridge, though!)
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Smoky "Rider" Blue on December 11, 2008, 02:32:23 PM
mmm not what i would like to do, but knowing it can be done, is half the battle eh Nao??  ;)

lol thanks for the help and will use it if i have to.. glad you and dragooon are having fun with this..

thanks..  :)
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 11, 2008, 04:12:40 PM
If you need any help, just ask... As long as it doesn't involve creating that script :D
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Smoky "Rider" Blue on December 11, 2008, 04:22:21 PM
i think i got it Nao, however, i would never run copermind.. that is one of the worse srcipts out there that someone can use..

try googling for hacking it and see what comes up ;) lol..

but still, am glad there is a way, for just in case.. and i appreciate the offer..

thanks again my friend..  :)
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 11, 2008, 04:47:07 PM
Technically, you don't need to *run* Coppermine to use the converters... ;)

And yeah I agree with you, Coppermine is not too good... But it's actually the oldest script of its kind. It hasn't evolved much in the last few years, but believe me, back in 2005 I was glad to have it on my website :)
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Smoky "Rider" Blue on December 11, 2008, 07:22:04 PM
lol.. no more comments here Nao.. i will be good..

just glad that you and Dragoon have the best gallery going..

no issues, complaints but i am happy with the looks.. very nice..

now keep up the good work so i can continue to brag!!  O:) :P
Title: Re: SMF Media Gallery - 1.5 final released
Post by: LinK187 on December 12, 2008, 11:44:05 AM
Is this mod made by the same person(s) who made "SMF Gallery"?

Because I'm having problems with SMF Gallery.

Should I just give up on it and use the "SMF Media Gallery" ?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: RustyBarnacle on December 12, 2008, 11:45:48 AM
No, they are different people and differently executed mods.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: LinK187 on December 12, 2008, 11:48:53 AM
k thx, I think I found the right thread anyway. However in the event that I don't get it working. How does Media Gallery differ from Gallery? I might just use it instead.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: RustyBarnacle on December 12, 2008, 11:49:58 AM
They do roughly the same thing, display pics and such, but I find the mass upload of this mod to be better than the other one.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 12, 2008, 11:50:54 AM
No. SMF Gallery and SMF Media Gallery are not inter-related. SMF Gallery is developed by vbgamer45 and SMF Media Gallery is developed by Dragooon(me) and Nao.

To know the differences, try it yourself, I hope you like it :).
Title: Re: SMF Media Gallery - 1.5 final released
Post by: LinK187 on December 12, 2008, 11:51:23 AM
Ok, well if I don't get a reply from the other thread by the time I get home from work tonight, I'll try this one.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Burke ♞ Knight on December 12, 2008, 11:54:07 AM
SMF Media Gallery has a lot of extra functionality.
I highly recommend it. :)

Yes, Nao, it seems that I have indeed changed my mind about which I like best. :)

By the way, I cannot wait to see what you add next to it. ;)
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 12, 2008, 12:29:29 PM
Quote from: BurkeKnight on December 12, 2008, 11:54:07 AM
By the way, I cannot wait to see what you add next to it. ;)
I can't wait, either!
;D

(Oh, yes, I can wait... I've got this thing called "Aeva" in my way ;))
Title: Re: SMF Media Gallery - 1.5 final released
Post by: mforum on December 12, 2008, 01:09:45 PM
Quote from: LinK187 on December 12, 2008, 11:48:53 AM
k thx, I think I found the right thread anyway. However in the event that I don't get it working. How does Media Gallery differ from Gallery? I might just use it instead.

SMF Media Gallery compared to SMF Gallery Lite, has a lot of extra powerful features, as:

- User Albums
- Mass Upload
- Upload of video and audio files
- Embed video items
- Rating
- A lot of Administration features
Title: Re: SMF Media Gallery - 1.5 final released
Post by: RustyBarnacle on December 12, 2008, 01:11:02 PM
Ah yes, I was using the Pro version and was just used to already having all of that, except video.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Burke ♞ Knight on December 12, 2008, 01:17:49 PM
Top quality for SMF Media Gallery:

All those features... For FREE!!!!!!! :) :) :) :)
Title: Re: SMF Media Gallery - 1.5 final released
Post by: LinK187 on December 12, 2008, 01:24:59 PM
Every time i click install, it hangs and times out... ???

Nothing in error log.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Burke ♞ Knight on December 12, 2008, 01:30:52 PM
What version of SMF?

Having problems with the package manager? (http://www.simplemachines.org/community/index.php?topic=28393.0)


If running SMF 1.1.7:
SMF 1.1.7: Session verification failed error when installing mods (http://www.simplemachines.org/community/index.php?topic=278824.0)
Title: Re: SMF Media Gallery - 1.5 final released
Post by: LinK187 on December 12, 2008, 01:44:08 PM
Quote from: BurkeKnight on December 12, 2008, 01:30:52 PM
What version of SMF?

Having problems with the package manager? (http://www.simplemachines.org/community/index.php?topic=28393.0)


If running SMF 1.1.7:
SMF 1.1.7: Session verification failed error when installing mods (http://www.simplemachines.org/community/index.php?topic=278824.0)

I am using 1.1.7 however it's not a session verification problem. It simply times out after I click "Install Now" from the package manager. I visited that first link, however that post only has a php file attached with no instructions on wtf to do with it.

Any help is much appreciated.

Edit: ok I figured out how to use the tool. But wtf do i do with this path... it tells me to use it... but the package manager gives me but only few options, "apply mod" "install now" "delete mod" ... there isn't really any place to put the path...
Title: Re: SMF Media Gallery - 1.5 final released
Post by: fiveflat on December 12, 2008, 02:58:57 PM
Has the Media Gallery been made to work with SimplePortal yet?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: jamonkey1982 on December 12, 2008, 03:38:43 PM
Hi All,

I have managed to install the mod fine, the only thing i cant figure out is..

When you click on the Gallery button, the gallery opens fine, however, the gallery button detatches itself from the menu bar and decides to sit in a new position about 1cm down the screen from its original position. (This only happens when you are in the gallery, when you browse elsewhere on the forum, it goes back to its proper place.)

Help  :D

Its a custom theme btw...

www.beardedtheory.co.uk/forum

index template file:
<?php
// Version: 1.1; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1.4';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="' 
$settings['theme_url'] , '/hfg.js"></script>
<![endif]-->'
;

echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
 var myfontsize = '
, empty($options['myfontsize']) ? '\'90\'' '\'' $options['myfontsize']. '\'' ';
 function setfontsize(size)
 {'
;

  // Guests don't have theme options!!
  if ($context['user']['is_guest'])
 echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
  else
 echo '
smf_setThemeOption("collapse_leftbar", mode ? 1 : 0, null, "'
$context['session_id'], '");';
  echo '
document.getElementById("upshrinkLeftbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("leftbarHeader").style.display = mode ? "none" : "";

current_leftbar = mode;
 }
 // ]]></script>
 <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
 var current_rightbar = '
, empty($options['collapse_rightbar']) ? 'false' 'true'';

 function shrinkHeaderRightbar(mode)
 {'
;

  // Guests don't have theme options!!
  if ($context['user']['is_guest'])
 echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
  else
 echo '
smf_setThemeOption("collapse_rightbar", mode ? 1 : 0, null, "'
$context['session_id'], '");';

  echo '
document.getElementById("upshrinkRightbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("rightbarHeader").style.display = mode ? "none" : "";

current_rightbar = mode;
 }
  // ]]></script>

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
 <body>
  <div id="boyutlar">
<div id="yankenar">
 <div id="yankenar-l">
  <div id="header">
     <div id="arama">'
;
echo '
  <form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<a href="'
$scripturl'?action=search;advanced"><img src="'.$settings['images_url'].'/filter1.png" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input type="text" name="search" value="" style="width: 110px;" />&nbsp;
<input type="submit" name="submit" value="'
$txt[182], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />'
;

 // Search within current topic?
if (!empty($context['current_topic']))
 echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

 // If we're on a certain board, limit it to this board ;).
 elseif (!empty($context['current_board']))
 echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form>
</div>
<a href="'
.$scripturl.'" title=""><span id="logo">&nbsp;</span></a>';
echo '
</div>
<div id="menutaban">
'
,template_menu(),'
  </div>
  <div id="frmust">'
;
       echo 
'
          <div id="menutaban1">

  <div id="userarea">'
;
if ($context['user']['is_logged'])
{
echo '
<p><b>'
$txt['hello_member_ndt'], ' '$context['user']['name'],   '</b>'  .' ';


// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo $txt[152], ' <a href="'$scripturl'?action=pm">'$context['user']['messages'],   ' '$context['user']['messages'] != $txt[153] : $txt[471], '  </a>'$txt['newmessages4'], '   '$context['user']['unread_messages'], ' '$context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1'] ,   '  . </p>';

echo '
<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a>
<a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a>';

}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo '
<p>'
$txt['welcome_guest'], '</p>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>
<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 4px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user"  size="10" />
<input type="password" name="passwrd"  size="10" />
<input type="submit" value="'
$txt[34], '" />
<input type="hidden" name="hash_passwrd" value="" />
</form><br />'
;
}

echo '
</div></div>'
;

}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;


  echo '
</div>'
;
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<td width="90%" class="titlebg2">
<span class="smalltext"><b>'
$txt[102], '</b>: '$context['random_news_line'], '</span>
</td>'
;

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="altk">
<div id="altky">
<span class="altky">'
theme_copyright(), '
<br />Theme DreamLike by <a href="http://www.fussilet.com"><b>Fussilet.com</b></a></span>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<br /><span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
</div>

</div>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>';

echo 
'
</div></div></div>
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;>&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';

if ($context['current_action']=='mgallery')
$current_action 'mgallery';

if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.
echo '
  <ul class="menu">'
;
  
// Show the [home] button.
echo '<li'$current_action == 'home' ' class="chosen"' '''><a href="'$scripturl'"><b>' $txt[103] , '</b></a></li>';

// Show the [help] button.
echo '<li'$current_action == 'help' ' class="chosen"' '''><a href="'$scripturl'?action=help"><b>' $txt[119] , '</b></a></li>';

// How about the [search] button?
if ($context['allow_search'])
echo '<li'$current_action == 'search' ' class="chosen"' '''><a href="'$scripturl'?action=search"><b>' $txt[182] , '</b></a></li>';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '<li'$current_action == 'admin' ' class="chosen"' '''><a href="'$scripturl'?action=admin"><b>' $txt[2] , '</b></a></li>';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<li'$current_action == 'profile' ' class="chosen"' '''><a href="'$scripturl'?action=profile"><b>' $txt[79] , '</b></a></li>';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
 echo '<li'$current_action == 'pm' ' class="chosen"' '''><a href="'$scripturl'?action=pm"><b>' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</b></a></li>';

// The [calendar]!
if ($context['allow_calendar'])
echo '<li'$current_action == 'calendar' ' class="chosen"' '''><a href="'$scripturl'?action=calendar"><b>' $txt['calendar24'] , '</b></a></li>';

// the [member] list button
if ($context['allow_memberlist'])
echo '<li'$current_action == 'mlist' ' class="chosen"' '''><a href="'$scripturl'?action=mlist"><b>' $txt[331] , '</b></a></li>';

// [SMF Media Gallery]
if (allowedTo('mgallery_access'))
echo ($current_action == 'mgallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'mgallery' 'active_back' 'back' '">
<a href="'
$scripturl'?action=mgallery">' $txt['mgallery_gallery'] , '</a>
</td>' 
$current_action == 'mgallery' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '<li'$current_action == 'login' ' class="chosen"' '''><a href="'$scripturl'?action=login"><b>' $txt[34] , '</b></a></li>';

// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '<li'$current_action == 'register' ' class="chosen"' '''><a href="'$scripturl'?action=register"><b>' $txt[97] , '</b></a></li>';

// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '<li'$current_action == 'logout' ' class="chosen"' '''><a href="'$scripturl'?action=logout;sesc='$context['session_id'], '"><b>' $txt[108] , '</b></a></li>';
echo '
  </ul>'
;
}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>
Title: Re: SMF Media Gallery - 1.5 final released
Post by: aidy_d_uk on December 12, 2008, 05:34:04 PM
hi

great mod btw

but i have 1 problem i use alot of pictures and i tried to emebed them in a post on the forum and got the limit reach so i changed it to 50 tags but it still says limit reached any ideas?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 12, 2008, 10:14:20 PM
Quote from: fiveflat on December 12, 2008, 02:58:57 PM
Has the Media Gallery been made to work with SimplePortal yet?

It just works fine? AFAIK SP even has a gallery block?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: darkon on December 13, 2008, 01:52:50 AM
Quote from: darkon on December 08, 2008, 09:45:14 PM
The CHMOD for the folders "mgal_data" and all the folders included in that are set to 777.
Since i have to install my mods manualy (somehow the package manager won´t work on my vServer) i had to guess how to set the CHMODs, because there was no instruction on permissions.

Just a reminder.
I still get that annoying Error-Message mentioned before, when trying to upload something.

Are these all the permissions i have to set or are there more?
Any other ideas, where the problem could be?

Title: Re: SMF Media Gallery - 1.5 final released
Post by: LinK187 on December 13, 2008, 05:23:47 AM
Well seeing as no one has replied, my next question is, is a manual install posible? Or is there some DB editing file that needs to be executed by the package manager?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: mforum on December 13, 2008, 08:55:46 AM
you can install manually => http://custom.simplemachines.org/mods/index.php?action=parse;mod=1365;attach=78795;smf_version=1.1.7

db_mgallery.php
This file should be able to execute standalone.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 13, 2008, 08:58:39 AM
Quote from: LinK187 on December 13, 2008, 05:23:47 AM
Well seeing as no one has replied, my next question is, is a manual install posible? Or is there some DB editing file that needs to be executed by the package manager?
As mforum said you can install manually, upload db_mgallery.php to your SMF's root folder and call it from the browser.
Make sure to backup the files you edit though.

Quote from: darkon on December 13, 2008, 01:52:50 AM
Quote from: darkon on December 08, 2008, 09:45:14 PM
The CHMOD for the folders "mgal_data" and all the folders included in that are set to 777.
Since i have to install my mods manualy (somehow the package manager won´t work on my vServer) i had to guess how to set the CHMODs, because there was no instruction on permissions.

Just a reminder.
I still get that annoying Error-Message mentioned before, when trying to upload something.

Are these all the permissions i have to set or are there more?
Any other ideas, where the problem could be?


Make sure that mgal_data and all of its sub-folders and there folders are so on are chmodded to 777.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Succubus Evaligan on December 13, 2008, 09:03:38 AM
What happen with the official pafe of SMF-Media?
well I think that I have the last version 1.5
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 13, 2008, 09:22:40 AM
Eh what do you mean?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: LinK187 on December 13, 2008, 11:28:40 AM
Quote from: mforum on December 13, 2008, 08:55:46 AM
you can install manually => http://custom.simplemachines.org/mods/index.php?action=parse;mod=1365;attach=78795;smf_version=1.1.7

db_mgallery.php
This file should be able to execute standalone.

So I can just upload it to where it's supposed to be and that's the end of it? Or do i have to view the file in my webbrowser to execute it?

edit: sorry I didn't notice dragoon's response answering this question.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: LinK187 on December 13, 2008, 02:55:46 PM
cheers  :D

got it installed and working (manually).
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Alpay on December 13, 2008, 04:19:49 PM
hi..
Database error..

Table 'xxx_smf3.members' doesn't exist

my table :  'xxx_smf3.forum_members'

Line : db_mgallery.php

$mem_columns = $smcFunc['db_list_columns']('members', false);

('members', .. Before  {db_prefix} ?
&
two members..

if (!in_array('mgal_total_items', $mem_columns))
   {
      $smcFunc['db_add_column']('members', array('name' => 'mgal_total_items', 'type' => 'INT', 'null' => null, 'default' => '0'));
      $altered_mem_table_1 = true;
   }
   if (!in_array('mgal_total_comments', $mem_columns))
   {
      $smcFunc['db_add_column']('members', array('name' => 'mgal_total_comments', 'type' => 'INT', 'null' => null, 'default' => '0'));
      $altered_mem_table_2 = true;
   }

Title: Re: SMF Media Gallery - 1.5 final released
Post by: aidy_d_uk on December 13, 2008, 07:52:24 PM
Quote from: aidy_d_uk on December 12, 2008, 05:34:04 PM
hi

great mod btw

but i have 1 problem i use alot of pictures and i tried to emebed them in a post on the forum and got the limit reach so i changed it to 50 tags but it still says limit reached any ideas?

can you help me on this??
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Burke ♞ Knight on December 13, 2008, 08:35:07 PM
Just how many pictures are you trying to put into one post?

That is more of a SMF problem, not the Gallery's problem.

May want to ask in the support board for the version of SMF you are running.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 13, 2008, 10:41:40 PM
Quote from: Alpay on December 13, 2008, 04:19:49 PM
hi..
Database error..

Table 'xxx_smf3.members' doesn't exist

my table :  'xxx_smf3.forum_members'

Line : db_mgallery.php

$mem_columns = $smcFunc['db_list_columns']('members', false);

('members', .. Before  {db_prefix} ?
&
two members..

if (!in_array('mgal_total_items', $mem_columns))
   {
      $smcFunc['db_add_column']('members', array('name' => 'mgal_total_items', 'type' => 'INT', 'null' => null, 'default' => '0'));
      $altered_mem_table_1 = true;
   }
   if (!in_array('mgal_total_comments', $mem_columns))
   {
      $smcFunc['db_add_column']('members', array('name' => 'mgal_total_comments', 'type' => 'INT', 'null' => null, 'default' => '0'));
      $altered_mem_table_2 = true;
   }


Whats your SMF version?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: aidy_d_uk on December 14, 2008, 07:03:58 AM
Quote from: BurkeKnight on December 13, 2008, 08:35:07 PM
Just how many pictures are you trying to put into one post?

That is more of a SMF problem, not the Gallery's problem.

May want to ask in the support board for the version of SMF you are running.

not really its using bbc code and it was set at 10 i set it to 50 but it never goes past 10 just says limit reached where the other tags where.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: aidy_d_uk on December 14, 2008, 07:47:32 AM
well i sorted it myself by changing this from 10 to 50

function smg_show_thumbnail($data)
{
global $scripturl, $txt, $mgalSettings, $sourcedir;
static $counter;

if ($counter++ >= (isset($mgalSettings['max_thumbs_per_page']) ? $mgalSettings['max_thumbs_per_page'] : 50))
return $txt['mgallery_max_thumbs_reached'];
Title: Re: SMF Media Gallery - 1.5 final released
Post by: taha116 on December 14, 2008, 12:48:22 PM
What has been updated? this mod shows up in recently updated but i dont see a version change, i have 1.5 and its says newest is 1.5 but i had that installed for a while now....

edit

I need help with something... I set max file size to 1MB but as admin i uplaoded a 14 MB .flv file. The first time i visited the page it worked then i refreshed and the video wont show but its other data will... What is the problem?

The embed tags seem to work fine though...

edit

IDK why but it seems to have started to work again...
Title: Re: SMF Media Gallery - 1.5 final released
Post by: darkon on December 14, 2008, 02:12:57 PM
Quote from: Dragooon on December 13, 2008, 08:58:39 AM

Quote from: darkon on December 13, 2008, 01:52:50 AM
Quote from: darkon on December 08, 2008, 09:45:14 PM
The CHMOD for the folders "mgal_data" and all the folders included in that are set to 777.
Since i have to install my mods manualy (somehow the package manager won´t work on my vServer) i had to guess how to set the CHMODs, because there was no instruction on permissions.

Just a reminder.
I still get that annoying Error-Message mentioned before, when trying to upload something.

Are these all the permissions i have to set or are there more?
Any other ideas, where the problem could be?


Make sure that mgal_data and all of its sub-folders and there folders are so on are chmodded to 777.

Like i posted, the permissions for mgal_data and all its subfolders are 777


Title: Re: SMF Media Gallery - 1.5 final released
Post by: TheDisturbedOne on December 14, 2008, 03:55:44 PM
I have a suggestion for this MOD.  Have the comments be posted in a forum (ex I comment on Picture 1 and my comment is a reply to a topic called "Picture 1".  Once a picture is uploaded a new topic will be made).

Anybody like my idea?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: holeski on December 14, 2008, 04:09:04 PM
I have the gallery installed and working. Looks good.

Does anyone know if there a way to give the Admin access to all the albums including others user albums? I had to save all our forums old photos and now need to set up our members albums. The Admin need to be able to add user albums for other members and photos to those albums. What we had hoped to do is have a general album that any paying member could add their user album to. This giving one album to look in for all club members albums.

Also the icons for albums are being intermediately generated and when I go back to add one they never show up.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: taha116 on December 14, 2008, 04:09:22 PM
Quote from: TheDisturbedOne on December 14, 2008, 03:55:44 PM
I have a suggestion for this MOD.  Have the comments be posted in a forum (ex I comment on Picture 1 and my comment is a reply to a topic called "Picture 1".  Once a picture is uploaded a new topic will be made).

Anybody like my idea?

Great idea sorta like the way the calender feature works, just adopt a similar mthod, shouldnt be too hard
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 14, 2008, 06:05:31 PM
Quote from: aidy_d_uk on December 14, 2008, 07:47:32 AM
well i sorted it myself by changing this from 10 to 50

function smg_show_thumbnail($data)
{
global $scripturl, $txt, $mgalSettings, $sourcedir;
static $counter;

if ($counter++ >= (isset($mgalSettings['max_thumbs_per_page']) ? $mgalSettings['max_thumbs_per_page'] : 50))
return $txt['mgallery_max_thumbs_reached'];

Could you try to set it back to 10, and add = 0; right after "static $counter"? Maybe it's where the problem is... (I applied this to the svn, just in case. BTW Dragooon, I also added some Javascript (wow! Miracles happen sometimes!) to convert the news dates in the admin area to something readable in one's own language/locale.)
Other than that, my max thumbs is set to 15 and it does work...

TheDisturbedOne> Sorry but this isn't exactly an original idea... ;) This has been requested a LOT... And I mean a LOT (both on this topic, and over at smf-media.com). And although I'll definitely work on some stuff like that in the future, I just want to remind you that the separate comments table is how Dragooon made it up in the first place, and having comments posted in the messages table instead is only likely to increase the size of the messages table... If there are lots of messages and comments, it will slow down both your board and your gallery. Is that really what you want?

I have two ways of doing it:
- a single, closed, topic per user album/general album. Every time a picture is posted, a new message is automatically posted to the related topic.
- a new topic is posted for every picture... That could mean an awful lot of new topics....
Title: Re: SMF Media Gallery - 1.5 final released
Post by: TeaTephi on December 14, 2008, 09:00:13 PM
Used the Mass upload option which worked awesome, but I don't know where the file I uploaded went!  I looked all over, it's not in the albums and I looked on my server,

What am I missing?

Thanks!
Tea
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 15, 2008, 04:10:35 AM
@TeaTephi - Please try applying cross domain security XML file(Google it) then try using mass upload.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 15, 2008, 04:18:24 AM
@Dragooon> he said he was able to use it...

@TeaTephi> did you look in the twilight zone as well, by any chance?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 15, 2008, 04:25:07 AM
@Nao - The image clearly shows that the server didn't give any response, I've experienced this whenever crossdomain.xml wasn't there. Although it might not be the reason.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 15, 2008, 06:21:08 AM
Quote from: msvdm on December 15, 2008, 04:54:19 AM
This gallery dont work on my forum how to remove the gallery if i install the gallery manual ?
Well, if you installed manually, that may be the reason why it doesn't work, eh -- maybe you failed the install process.

If you installed manually, you'll have to uninstall manually.
It might just be faster to check out whatever doesn't work and ask for some specific help... Don't you think? There's always a helpful hand here. If not me, then Dragooon is here or any other faithful user.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: asty on December 15, 2008, 07:19:51 AM
Hi guys

Big noob here i have just installed this gallery but not sure how to actually get access to the gallery can some one help ?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 15, 2008, 07:50:22 AM
Add ?action=mgallery after your index.php...
If there's no button, it's because you have a custom theme. You'll have to add the button yourself.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: asty on December 15, 2008, 07:53:15 AM
Im using the theme called amber, not sure how to add abutton yet is there a url link i can use for now ?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: TeaTephi on December 15, 2008, 09:23:24 AM
asty check out this link HERE (http://www.simplemachines.org/community/index.php?topic=63203.0)
Title: Re: SMF Media Gallery - 1.5 final released
Post by: jglonek on December 15, 2008, 09:33:33 AM
Hey I have a question..

Apparently if any guests try to click on our Gallery link it gives an access denied error, saying they cannot access the gallery. I checked and there is at least one general album with guest view privilages.

I checked through the settings but I didn't see anything to change guest rights on the gallery, maybe I missed it? Where would I fix it so that guests stop getting that message?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: TeaTephi on December 15, 2008, 10:04:54 AM
I went to THIS (http://www.moock.org/asdg/technotes/crossDomainPolicyFiles/) website and uploaded a cross-domain xml file to the root directory, but large files still don't work.

Large files don't open the window with the submit button. 

Is my server timing out or something?

The second pic shows a second attempt at uploading the larger file (10 mb), and when I click submit only the smaller file is submitted.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: taha116 on December 15, 2008, 06:31:27 PM
Hi i had SMF MG installed for quite some time before it was recently updated.... Now im wondering, Why does it say this mod has been recently updates when its version is the same.... am i missing something?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Burke ♞ Knight on December 15, 2008, 06:43:01 PM
There is a difference between RC1, RC2 and the final. :P
Title: Re: SMF Media Gallery - 1.5 final released
Post by: taha116 on December 15, 2008, 07:05:34 PM
umm sorry should ahve made myself more clear i have 1.5 for a wile is 1.5 the newer one or are the RC whatevers what was updated?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Burke ♞ Knight on December 15, 2008, 07:43:50 PM
1.5 is the new one. It recently got released.
The 1.5 RC1, etc were the prior releases.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: taha116 on December 15, 2008, 08:53:25 PM
WTF..... I i downlaoded MG for beta a not long befor the update... but still why does mine say i have 1.5.... Thats wierd... Ok ill unistal anyways and install a fresh copy


Just one question i jsut do it that way, uninstal, install and i wont lose any photos, nuthin?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Burke ♞ Knight on December 15, 2008, 09:35:15 PM
Nope. All data remains. :)
Title: Re: SMF Media Gallery - 1.5 final released
Post by: msvdm on December 15, 2008, 09:45:41 PM
Quote from: Nao 尚 on December 15, 2008, 06:21:08 AM
Quote from: msvdm on December 15, 2008, 04:54:19 AM
This gallery don't work on my forum how to remove the gallery if i install the gallery manual ?
Well, if you installed manually, that may be the reason why it doesn't work, eh -- maybe you failed the install process.

If you installed manually, you'll have to uninstall manually.
It might just be faster to check out whatever doesn't work and ask for some specific help... Don't you think? There's always a helpful hand here. If not me, then Dragooon is here or any other faithful user.

Thank you the problems are the same as before ;
The mass upload dont work i install and uninstall the gallery 4 times and once manually,the buttom appear under white line and when i press upload my browser froze for a second and after that don't want to upload the pictures (im Linux user and my browser is Firefox)
I try to change the size for the upload to 3MB but now even the single upload don't work too ;(
Is it possible the problem with the upload to be because my internet connection is very slow? Because im on holidays and this is the hotel internet connection not my home network ?
Every time i try to upload single file i getting the error ;
An Error Has Occurred!
An error happened during the upload process, please try again or contact the administrator.

:-[ I dont know what to do and i dont want to us the SMF Gallery because the good function as mass upload are paid  :(
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 15, 2008, 11:44:53 PM
Quote from: TeaTephi on December 15, 2008, 10:04:54 AM
I went to THIS (http://www.moock.org/asdg/technotes/crossDomainPolicyFiles/) website and uploaded a cross-domain xml file to the root directory, but large files still don't work.

Large files don't open the window with the submit button. 

Is my server timing out or something?

The second pic shows a second attempt at uploading the larger file (10 mb), and when I click submit only the smaller file is submitted.
Please remember that the file cannot be bigger then server limits(upload_max_filesize to be specific), please consult your host for more information.

Quote from: msvdm on December 15, 2008, 09:45:41 PM
Quote from: Nao 尚 on December 15, 2008, 06:21:08 AM
Quote from: msvdm on December 15, 2008, 04:54:19 AM
This gallery don't work on my forum how to remove the gallery if i install the gallery manual ?
Well, if you installed manually, that may be the reason why it doesn't work, eh -- maybe you failed the install process.

If you installed manually, you'll have to uninstall manually.
It might just be faster to check out whatever doesn't work and ask for some specific help... Don't you think? There's always a helpful hand here. If not me, then Dragooon is here or any other faithful user.

Thank you the problems are the same as before ;
The mass upload dont work i install and uninstall the gallery 4 times and once manually,the buttom appear under white line and when i press upload my browser froze for a second and after that don't want to upload the pictures (im Linux user and my browser is Firefox)
I try to change the size for the upload to 3MB but now even the single upload don't work too ;(
Is it possible the problem with the upload to be because my internet connection is very slow? Because im on holidays and this is the hotel internet connection not my home network ?
Every time i try to upload single file i getting the error ;
An Error Has Occurred!
An error happened during the upload process, please try again or contact the administrator.

:-[ I dont know what to do and i dont want to us the SMF Gallery because the good function as mass upload are paid  :(
Can you give a link to your php info file? (What is a phpinfo() file? (http://docs.simplemachines.org/index.php?topic=479))
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 16, 2008, 12:36:32 AM
I wanted a hyper link...not a file which I don't know how to open.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 16, 2008, 01:37:16 AM
Your server limits your upload to 2M(upload_max_filesize), so you cannot upload files more than that.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 16, 2008, 03:56:14 AM
Hey Dragooon, how about we check the size limits and print it in the admin area to warn the user not to go over that size?
We should take the lower number between @ini_get('upload_max_filesize') and @ini_get('post_max_size') (converting "2M" to 2*1024*1024 for instance. I get post_max_size gives an answer in bytes so that's only for upload_max_filesize.)
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Smoky "Rider" Blue on December 16, 2008, 05:05:11 AM
that would be a good thing Nao  ;)

lol so far i havent run into any file limitations so.. but there is always that chance  :D
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 16, 2008, 05:56:08 AM
I'm having big problems with Safe Mode...
Have been trying to install SMG on another server since yesterday. I needed something to keep my spirit ablaze while I was patiently waiting for some feedback about the new Aeva release ;)

This server is probably the most complicated I've ever installed SMG on.
- many mods, several conflicting issues
- tends to crash here and there while i'm installing (<_<)
- and on top of that, it has Safe Mode enabled. And I can't disable it.

I finally got full FTP access to it (in addition to admin access), and I'm still unable to fix. I'm hoping that by posting here, someone who's used to working with Safe Mode will be able to help me. You may remember I used to have lots of issues with Safe Mode when it came to downloading remote thumbnails -- this is nothing compared to that.

When I import an existing gallery into it, the script behaves this way:
- deletes /mgal_data/albums if it exists, then re-creates it. So far, so good.
- creates all sub-folders, such as /mgal_data/albums/Hello_World, and sets chmod to 0777. This isn't working.

After several hours of research, the only thing I can say is: mgal_data/albums is created with UID set to Apache's (UID 99, here). While it should create it with a UID equivalent to my script (UID > 32,000).
As a result, sub-folders are forbidden because I'm attempting to create in a folder that does not belong to my script.
So, I thought, "Why can I create the albums folder in the first place?" Because mgal_data belongs to the SMF script, of course. But then... How is it created? After some more research -- it is "simply" created by a custom function inside SMF's package manager, packageRequireFTP (renamed to create_chmod_control in SMF 2.x, as if it wasn't already too complicated), which will chmod the folder via... FTP.

So, basically, the only way I can create folders in safe mode for SMG is by using the same techniques as the SMF package installer: asking the user for FTP information. Security-wise, it's fine as long as the album's creator is an admin... Otherwise, well... I don't know. Of course it might be the only possible solution, but I don't like it (and it's going to take even more time to implement it, even if I'm using SMF's built-in features.)

Any ideas? Pretty please?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 16, 2008, 09:02:00 AM
Okay, I did it... (on my own :P)
I wrote a function to emulate mkdir() in Safe Mode.
It works. The only thing that's left is to enable the user to set the FTP account information.
I'd like your opinion on this, too -- should this be in a file similar to Settings.php? (That would be nice -- I wouldn't have to write text for the admin area, and descriptions in both English and French :P)
Or in the database? Remember that the FTP account data is stored forever -- it's not something you provide once in a while: FTP while be used every time a new album (or folder) is created. So it needs to be secure. I can't think of a way to hack one's way into retrieving the FTP data, but still, I don't want to take it lightly.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: TeaTephi on December 16, 2008, 02:09:03 PM
Quote from: Dragooon on December 16, 2008, 01:37:16 AM
Your server limits your upload to 2M(upload_max_filesize), so you cannot upload files more than that.

You were right, it was godaddy.  By default a file called php.ini reads like this:

memory_limit = 50M
post_max_size = 8M
file_uploads = On
upload_max_filesize = 192M

I changed it to this:

memory_limit = 100M
post_max_size = 100M
file_uploads = On
upload_max_filesize = 192M

That is ALL that is in that file!  If anyone has godaddy they can add a php file to their ROOT directory with these four lines and then you can upload whatever you want.

Hope this helps!
Title: Re: SMF Media Gallery - 1.5 final released
Post by: fiveflat on December 16, 2008, 08:37:45 PM
Anyway to support watermarking images that get uploaded?
Title: Re: SMF Media Gallery - 1.5 final released
Post by: ethankcvds on December 16, 2008, 11:26:51 PM
Database Error: Can't create/write to file '/dev/shm/#sql_7591_0.MYI' (Errcode: 2)


SELECT
m.id_media, m.id_member, m.title, m.views, m.time_added, m.type, m.num_comments, m.voters, m.weighted AS rating, m.embed_url,
IFNULL(lm.time, IFNULL(lm_all.time, 0)) < m.log_last_access_time AS is_new, IFNULL(mem.real_name, m.member_name) AS member_name,
f.id_file, f.width, f.height, f.filename, f.directory, m.approved, m.description, a.id_album, a.name
FROM smf_mgallery_media AS m
INNER JOIN smf_mgallery_albums AS a ON (a.id_album = m.album_id)
LEFT JOIN smf_mgallery_files AS f ON (f.id_file = m.id_thumb)
LEFT JOIN smf_mgallery_log_media AS lm ON (lm.id_media = m.id_media AND lm.id_member = 1)
LEFT JOIN smf_mgallery_log_media AS lm_all ON (lm_all.id_media = 0 AND lm_all.id_member = 1)
LEFT JOIN smf_members AS mem ON (mem.id_member = m.id_member)
WHERE 1=1
ORDER BY RAND()
LIMIT 6

I just started to get this error on December 16th. It's saying there's a problem with Subs-MGallery.php  Just tell me what needs fixed.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 17, 2008, 03:53:07 AM
Quote from: ethankcvds on December 16, 2008, 11:26:51 PM
Database Error: Can't create/write to file '/dev/shm/#sql_7591_0.MYI' (Errcode: 2)


SELECT
m.id_media, m.id_member, m.title, m.views, m.time_added, m.type, m.num_comments, m.voters, m.weighted AS rating, m.embed_url,
IFNULL(lm.time, IFNULL(lm_all.time, 0)) < m.log_last_access_time AS is_new, IFNULL(mem.real_name, m.member_name) AS member_name,
f.id_file, f.width, f.height, f.filename, f.directory, m.approved, m.description, a.id_album, a.name
FROM smf_mgallery_media AS m
INNER JOIN smf_mgallery_albums AS a ON (a.id_album = m.album_id)
LEFT JOIN smf_mgallery_files AS f ON (f.id_file = m.id_thumb)
LEFT JOIN smf_mgallery_log_media AS lm ON (lm.id_media = m.id_media AND lm.id_member = 1)
LEFT JOIN smf_mgallery_log_media AS lm_all ON (lm_all.id_media = 0 AND lm_all.id_member = 1)
LEFT JOIN smf_members AS mem ON (mem.id_member = m.id_member)
WHERE 1=1
ORDER BY RAND()
LIMIT 6

I just started to get this error on December 16th. It's saying there's a problem with Subs-MGallery.php  Just tell me what needs fixed.
Thats more of a problem on your MySQL installation. Ask your host.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Nao 尚 on December 17, 2008, 07:50:55 AM
Yeah... Probably no disk space left.
Title: Re: SMF Media Gallery - 1.5 RC 3.2 released
Post by: Nao 尚 on December 17, 2008, 08:07:16 AM
Quote from: vulcan59 on November 26, 2008, 04:31:08 PM
Quote from: NaoAbsolutely. (I see no reason for installing manually in the first place, anyway...?)

Well you'll remember that my server was running in safe.mode and thus I couldn't install via packages but manually. So I'll have to wait for the manual instructions to come out rather than do a manual uninstall and mess things up!!!!

Thanks Nao.
Just a quick note about this older message...

Having myself had the pleasure opportunity of working with a safe mode server yesterday, I can only say that: installing packages automatically with safe mode IS definitely possible...

- For packages that do not copy folders: nothing to do.
- For packages that copy folders (such as SMG): SMF will ask you for some FTP account details. Just enter them. It will copy the folders via FTP and it'll work just fine.
I'm using this solution for SMG when it comes to creating subfolders for new albums. According to my tests, it's working flawlessly. :)

Oh, please everyone! When you update a mod, PLEASE, please uninstall the previous version before! It's quite funny but it gets on your nerves in the end, whenever you get to see that a previously installed mod is copied ten times and slows down your board as a result...
Title: Re: SMF Media Gallery - 1.5 final released
Post by: ethankcvds on December 17, 2008, 07:04:00 PM
Quote from: Dragooon on December 17, 2008, 03:53:07 AM
Quote from: ethankcvds on December 16, 2008, 11:26:51 PM
Database Error: Can't create/write to file '/dev/shm/#sql_7591_0.MYI' (Errcode: 2)


SELECT
m.id_media, m.id_member, m.title, m.views, m.time_added, m.type, m.num_comments, m.voters, m.weighted AS rating, m.embed_url,
IFNULL(lm.time, IFNULL(lm_all.time, 0)) < m.log_last_access_time AS is_new, IFNULL(mem.real_name, m.member_name) AS member_name,
f.id_file, f.width, f.height, f.filename, f.directory, m.approved, m.description, a.id_album, a.name
FROM smf_mgallery_media AS m
INNER JOIN smf_mgallery_albums AS a ON (a.id_album = m.album_id)
LEFT JOIN smf_mgallery_files AS f ON (f.id_file = m.id_thumb)
LEFT JOIN smf_mgallery_log_media AS lm ON (lm.id_media = m.id_media AND lm.id_member = 1)
LEFT JOIN smf_mgallery_log_media AS lm_all ON (lm_all.id_media = 0 AND lm_all.id_member = 1)
LEFT JOIN smf_members AS mem ON (mem.id_member = m.id_member)
WHERE 1=1
ORDER BY RAND()
LIMIT 6

I just started to get this error on December 16th. It's saying there's a problem with Subs-MGallery.php  Just tell me what needs fixed.
Thats more of a problem on your MySQL installation. Ask your host.

The host fixed the MySQL problem without blaming SMF.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: alex30 on December 17, 2008, 07:39:23 PM
Hi all!

Guest deleted all pictures from our gallery, IS IT HACK?

What should I do in this case. 1.1.7 ? I backed up my sql, is it possible to restore all pictures?

Thanks in advance


QuoteBy :
Time : Today at 04:46:27 pm
On : Brooke & Tom
Action type : Deleted item
   By :
Time : Today at 04:33:03 pm
On : Tasha & Matt & Buddy
Action type : Deleted item
   By :
Time : October 13, 2008, 05:59:47 pm
On : Old School
Action type : Deleted item
Title: Re: SMF Media Gallery - 1.5 final released
Post by: vulcan59 on December 17, 2008, 09:18:20 PM
Quote from: NaoJust a quick note about this older message...

Having myself had the pleasure opportunity of working with a safe mode server yesterday, I can only say that: installing packages automatically with safe mode IS definitely possible...

- For packages that do not copy folders: nothing to do.
- For packages that copy folders (such as SMG): SMF will ask you for some FTP account details. Just enter them. It will copy the folders via FTP and it'll work just fine.
I'm using this solution for SMG when it comes to creating subfolders for new albums. According to my tests, it's working flawlessly. :)

Oh, please everyone! When you update a mod, PLEASE, please uninstall the previous version before! It's quite funny but it gets on your nerves in the end, whenever you get to see that a previously installed mod is copied ten times and slows down your board as a result...

Thanks Nao for the update. I still have not uninstall the previous installation. I had it installed on a friends website and he has yet to get back to me about upgrading to the newer version. I still haven't had a chance to check out the crossdomain.xml as well. I had problems trying to mass upload files previously and I am anxious to see if the crossdomain.xml solves the problem.

As soon as I am given the go-ahead to upgrade, I'll do so and post any problems that I encounter. In the meantime, I have been keenly following all the discussions here.

Regards.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: alex30 on December 17, 2008, 11:51:08 PM
Guys really need help here.

Quote from: alex30 on December 17, 2008, 07:39:23 PM
Hi all!

Guest deleted all pictures from our gallery, IS IT HACK?

What should I do in this case. 1.1.7 ? I backed up my sql, is it possible to restore all pictures?

Thanks in advance


QuoteBy :
Time : Today at 04:46:27 pm
On : Brooke & Tom
Action type : Deleted item
   By :
Time : Today at 04:33:03 pm
On : Tasha & Matt & Buddy
Action type : Deleted item
   By :
Time : October 13, 2008, 05:59:47 pm
On : Old School
Action type : Deleted item
Title: Re: SMF Media Gallery - 1.5 final released
Post by: mforum on December 18, 2008, 02:19:55 AM
Are you sure you didn`t gave moderation permission to guests ?
Check this out, just in case .....
Title: Re: SMF Media Gallery - 1.5 final released
Post by: holeski on December 18, 2008, 03:14:01 AM
I'm stuck and can't upload any photos or restore other members albums, Any clue as to how I may be able to do this?

Quote from: holeski on December 14, 2008, 04:09:04 PM
I have the gallery installed and working. Looks good.

Does anyone know if there a way to give the Admin access to all the albums including others user albums? I had to save all our forums old photos and now need to set up our members albums. The Admin need to be able to add user albums for other members and photos to those albums. What we had hoped to do is have a general album that any paying member could add their user album to. This giving one album to look in for all club members albums.

Also the icons for albums are being intermediately generated and when I go back to add one they never show up.
Title: Re: SMF Media Gallery - 1.5 final released
Post by: Dragooon on December 18, 2008, 03:55:08 AM
Quote from: alex30 on December 17, 2008, 07:39:23 PM
Hi all!

Guest deleted all pictures from our gallery, IS IT HACK?

What should I do in this case. 1.1.7 ? I backed up my sql, is it possible to restore all pictures?

Thanks in advance


QuoteBy :
Time : Today at 04:46:27 pm
On : Brooke & Tom
Action type : Deleted item
   By :
Time : Today at 04:33:03 pm
On : Tasha & Matt & Buddy
Action type : Deleted item
   By :
Time : October 13, 2008, 05:59:47 pm
On : Old School
Action type : Deleted item

What permissions do guest have?
Also I recommend to upgrade to 1.5 as it has more features and better security.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 18, 2008, 04:39:51 AM
1.5.1 released!
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 18, 2008, 04:46:42 AM
You forgot to post the changelog, both here and in page 1 ;)

Version 1.5.1                                   December 18, 2008
-----------------------------------------------------------------
+ Added index.php files to album folders to protect their contents
! JW Player would show only one video per page when using [smg] tags
! Item descriptions and comments were limited to 255 bytes, which was
! Fixed redirect link being shown for embedded videos
! Last edit link wasn't pointing to gallery profile
! [smg] tags will no longer parse when BBC is disabled
! Highslide animation duration shouldn't allow negative numbers
! Highslide wasn't working well on IE6 due to a missing semi-colon
! Replaced area with sa for SMF 2 beta 4 in SMG profile links
! Fixed DB error when searching items by user name
! Fixed a new (last?) unapproved items count bug
! Fixed search failing when specifying an album
! Album total items wasn't reset if no items were found during recount
! Make sure max folder size is at least 5 times the max file size
* Applied new regex from Aeva 5.0.21 to avoid potential [smg] crashes
* News dates in admin credits are now translated to your locale
* Thumbnail box borders look better when they're gone
* Replaced SMG admin menu icon to match the SMF2 style
! A couple more bug fixes (not that much, this time!)
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 18, 2008, 05:32:53 AM
Eh I never do.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 18, 2008, 05:56:47 AM
Well, I always try to insert a couple of stupid jokes in otherwise boring changelogs, so I like mentioning them :P
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Baloch on December 18, 2008, 08:49:16 AM
Quote from: Nao 尚 on December 18, 2008, 04:46:42 AM
You forgot to post the changelog, both here and in page 1 ;)

Version 1.5.1                                   December 18, 2008
-----------------------------------------------------------------
+ Added index.php files to album folders to protect their contents
! JW Player would show only one video per page when using [smg] tags
! Item descriptions and comments were limited to 255 bytes, which was
! Fixed redirect link being shown for embedded videos
! Last edit link wasn't pointing to gallery profile
! [smg] tags will no longer parse when BBC is disabled
! Highslide animation duration shouldn't allow negative numbers
! Highslide wasn't working well on IE6 due to a missing semi-colon
! Replaced area with sa for SMF 2 beta 4 in SMG profile links
! Fixed DB error when searching items by user name
! Fixed a new (last?) unapproved items count bug
! Fixed search failing when specifying an album
! Album total items wasn't reset if no items were found during recount
! Make sure max folder size is at least 5 times the max file size
* Applied new regex from Aeva 5.0.21 to avoid potential [smg] crashes
* News dates in admin credits are now translated to your locale
* Thumbnail box borders look better when they're gone
* Replaced SMG admin menu icon to match the SMF2 style
! A couple more bug fixes (not that much, this time!)

After installing this updated mode I am unable to read COMMENTS on any picture.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: LinK187 on December 18, 2008, 08:51:43 AM
Seeing as I had to manually install this mod originally (1.5). Do I till need to uninstall 1.5 to install 1.5.1? Would be proper annoying if I had to manual uninstall :P
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: dannyd on December 18, 2008, 09:47:23 AM
My gallery looks scrambled .. is there a way to make the number of clips nicely displayed on the page. You can see on my site www.lazioforever.com .. the gallery looks messed.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Burke ♞ Knight on December 18, 2008, 09:53:55 AM
I just checked with FireFox 3.

Looks like the gallery displays correctly to me.
It does look messed up while loading the page, but fixes itself when everything is fully loaded.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: qubbah on December 18, 2008, 09:57:31 AM
how can i disable rating option and also disable rating in recent item?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 18, 2008, 11:46:33 AM
Quote from: Baloch on December 18, 2008, 08:49:16 AM
After installing this updated mode I am unable to read COMMENTS on any picture.
No problem here...

@Link> Yes. Why do you have to manually (un)install, anyway?

@qubbah> Membergroup permissions!
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: LinK187 on December 18, 2008, 12:22:00 PM
Quote from: Nao 尚 on December 18, 2008, 11:46:33 AM
Quote from: Baloch on December 18, 2008, 08:49:16 AM
After installing this updated mode I am unable to read COMMENTS on any picture.
No problem here...

@Link> Yes. Why do you have to manually (un)install, anyway?

@qubbah> Membergroup permissions!

The reason I had to manually install is because the package manager kept hanging and then went to "this page can't be displayed". Upon refreshing it went back to the packages page showing the mod had not yet been installed.

So I said fu(k it and did it manually.

The reason I'm asking if I absolutely need to uninstall before updating to 1.5.1 is because I will have to uninstall manually (really annoying) because it's not listed as one of my packages due to me installing it manually.

Would be much easier if I could just add/modify/remove just the lines that differentiate 1.5 and 1.5.1 .
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 18, 2008, 02:42:22 PM
Quote from: LinK187 on December 18, 2008, 12:22:00 PM
Would be much easier if I could just add/modify/remove just the lines that differentiate 1.5 and 1.5.1 .
Errr... The *file list* maybe... But the *line* list? It would take you hours to make the modifications manually ;)
Really, you're better off extracting the mod to a new folder on your PC, and launch a diff compare tool that will compare your new folder with your old folder (you should also extract the previous version the same way). If there are no changes in the .xml files, just take the modified/added files and upload them to your site.
If there are changes in the .xml files, launch a diff compare of the files and do the edits manually.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: LinK187 on December 18, 2008, 03:05:37 PM
Quote from: Nao 尚 on December 18, 2008, 02:42:22 PM
Quote from: LinK187 on December 18, 2008, 12:22:00 PM
Would be much easier if I could just add/modify/remove just the lines that differentiate 1.5 and 1.5.1 .
Errr... The *file list* maybe... But the *line* list? It would take you hours to make the modifications manually ;)
Really, you're better off extracting the mod to a new folder on your PC, and launch a diff compare tool that will compare your new folder with your old folder (you should also extract the previous version the same way). If there are no changes in the .xml files, just take the modified/added files and upload them to your site.
If there are changes in the .xml files, launch a diff compare of the files and do the edits manually.

Well that's the thing, what app would I use to compare? I've used  an online parser before, but the bookmark I had for it, appears to be a dead link.

Would following the manual install instructions for 1.5 in reverse (manually uninstalling) and then using the package installer for 1.5.1 be easier?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 18, 2008, 03:28:33 PM
"Beyond Compare" is probably the best of its kind, but it's not freeware.
Other than that... WinMerge (perhaps the better known one), DiffMerge, kdiff3 (http://kdiff3.sourceforge.net/)...
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Skargon on December 18, 2008, 03:37:19 PM
I just loaded this mod, I'm having a couple of problems.

The first, I don't have a button for the gallery in either the custom theme I use  (Blue Rose) or the smf default theme.

I altered the index.template.php to try to get the button to show up, and I still get nothing.

**************

Also, I attempt to use the "Mass upload" function, and it gives me this error: 

Line: 1
Char: 132
Error: 'yuigen0' is undefined
Code: 0
URL: ***REMOVED***

I can upload picture singularly with no issues.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: LinK187 on December 18, 2008, 04:12:29 PM
Quote from: Nao 尚 on December 18, 2008, 03:28:33 PM
"Beyond Compare" is probably the best of its kind, but it's not freeware.
Other than that... WinMerge (perhaps the better known one), DiffMerge, kdiff3 (http://kdiff3.sourceforge.net/)...

/me grabs a torrent...
Title: Re: SMF Media Gallery - 1.5 final released
Post by: alex30 on December 18, 2008, 05:15:21 PM
Quote from: Dragooon on December 18, 2008, 03:55:08 AM
Quote from: alex30 on December 17, 2008, 07:39:23 PM
Hi all!

Guest deleted all pictures from our gallery, IS IT HACK?

What should I do in this case. 1.1.7 ? I backed up my sql, is it possible to restore all pictures?

Thanks in advance


QuoteBy :
Time : Today at 04:46:27 pm
On : Brooke & Tom
Action type : Deleted item
   By :
Time : Today at 04:33:03 pm
On : Tasha & Matt & Buddy
Action type : Deleted item
   By :
Time : October 13, 2008, 05:59:47 pm
On : Old School
Action type : Deleted item

What permissions do guest have?
Also I recommend to upgrade to 1.5 as it has more features and better security.

Dragon before, guests were able to "Access Gallery" , "Search Gallery" and that's it. Now I disabled everything for guests!

I know that there is a link that guest can enter and it'll bring him to deletion page. I also know that there is a code that can be inserted in a file to protect gallery. We're using 1.1.7 version

What code should I enter and where?

Thanks for all help.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 18, 2008, 06:19:37 PM
alex30, again: update your SMG to the latest version... Version 1.0.2 really sucks, security-wise. Uninstall your copy of SMG, and download and install the new one.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: alex30 on December 18, 2008, 07:15:43 PM
I would do that right away Nao 尚 , and I did it but plenty of errors, code is messed up and manual adding will be a nightmare.

What do you think about adding extra code to mgallery.template.php to protect it at that way?


Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Burke ♞ Knight on December 18, 2008, 07:17:40 PM
Personally, if I were you, and had a forum with coding that messed up, is remake the forum, and import all data from the database that is needed.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: taha116 on December 18, 2008, 07:49:27 PM
Thanks i hate it when people forget about the changelog, it really pisses me off

How do i update without losing photos?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: taha116 on December 18, 2008, 08:01:59 PM
Uninstilation error WTF? I jsut tried to uninstal it for the upgrade and it gives me an error.... that is somthing new! Lol

Type  Action  Description
* 1. Execute Modification ./index.php Test successful
1. Replace ./index.php Test successful
* 2. Execute Modification ./Sources/Subs.php Test failed
1. Replace ./Sources/Subs.php Test failed
2. Replace ./Sources/Subs.php Test successful
3. Replace ./Sources/Subs.php Test successful
* 3. Execute Modification ./Sources/Admin.php Test successful
1. Replace ./Sources/Admin.php Test successful
* 4. Execute Modification ./Sources/Load.php Test failed
1. Replace ./Sources/Load.php Test failed
2. Replace ./Sources/Load.php Test successful
3. Replace ./Sources/Load.php Test failed
4. Replace ./Sources/Load.php Test successful
* 5. Execute Modification ./Sources/ManagePermissions.php Test successful
1. Replace ./Sources/ManagePermissions.php Test successful
2. Replace ./Sources/ManagePermissions.php Test successful
3. Replace ./Sources/ManagePermissions.php Test successful
* 6. Execute Modification ./Sources/Who.php Test successful
1. Replace ./Sources/Who.php Test successful
2. Replace ./Sources/Who.php Test successful
* 7. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
1. Add Before ./Themes/default/languages/Modifications.english.php Test successful
8. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
9. Execute Modification ./Themes/default/languages/Modifications.french.php Skipping file
* 10. Execute Modification ./Sources/Profile.php Test successful
1. Replace ./Sources/Profile.php Test successful
2. Add Before ./Sources/Profile.php Test successful
11. Delete File MGallery.php
12. Delete File MGallery-Sub.php
13. Delete File Subs-MGallery.php
14. Delete File MGallery-Admin.php
15. Delete File MGallery.template
16. Delete Tree mgallery
17. Delete Tree mgallery
18. Delete File MGallery.english.php
19. Delete File MGallery.french.php
20. Delete File MGalleryItem.php



Now wat?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: mforum on December 19, 2008, 04:38:14 AM
Quote from: dannyd on December 18, 2008, 09:47:23 AM
My gallery looks scrambled .. is there a way to make the number of clips nicely displayed on the page. You can see on my site www.lazioforever.com .. the gallery looks messed.

just update to latest version (1.5.1)
you run a very old beta version .....
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: magarto on December 19, 2008, 05:04:33 AM
In 1.5 and 1.5.1 videos do not work.
I have tested it in IE 7, Firefox 3.1, Safari, GNU/Linux, Mac & Windows. In version below 1.5 it worked.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Claudius on December 19, 2008, 09:38:28 AM
Hi,
My implementation of SMF Media Gallery doesn't seem to work very well with the theme I'm using. The gallery layout is a bit of a mess. I think the problem stems from the fact that the height of each individual item varies which throws the layout out of whack.

Any ideas what I could change to solve this? You can have a look at my gallery here:
http://www.detectingwales.com/index.php?action=mgallery;sa=album;id=4

Thanks.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: LinK187 on December 19, 2008, 10:13:34 AM
Quote from: magarto on December 19, 2008, 05:04:33 AM
In 1.5 and 1.5.1 videos do not work.
I have tested it in IE 7, Firefox 3.1, Safari, GNU/Linux, Mac & Windows. In version below 1.5 it worked.

I have 1.1.5 and both embedded and uploaded vids work fine in ff3 and ie7. It's something on your side.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 19, 2008, 10:52:08 AM
Quote from: Claudius on December 19, 2008, 09:38:28 AM
Hi,
My implementation of SMF Media Gallery doesn't seem to work very well with the theme I'm using. The gallery layout is a bit of a mess. I think the problem stems from the fact that the height of each individual item varies which throws the layout out of whack.
It's not your custom theme's fault...
You have a Javascript stylesheet changer at the end of your page, that erases the onload event without first checking it (or using add_load_event). It's not very good practice -- and here, it simpy forbids SMG from calling the function that will fix all thumbnail boxes.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: taha116 on December 19, 2008, 11:34:20 AM
   Type     Action     Description
*    1.    Execute Modification    ./index.php    Test successful
      1.    Replace    ./index.php    Test successful
*    2.    Execute Modification    ./Sources/Subs.php    Test failed
      1.    Replace    ./Sources/Subs.php    Test failed
      2.    Replace    ./Sources/Subs.php    Test successful
      3.    Replace    ./Sources/Subs.php    Test successful
*    3.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Replace    ./Sources/Admin.php    Test successful
*    4.    Execute Modification    ./Sources/Load.php    Test failed
      1.    Replace    ./Sources/Load.php    Test failed
      2.    Replace    ./Sources/Load.php    Test successful
      3.    Replace    ./Sources/Load.php    Test failed
      4.    Replace    ./Sources/Load.php    Test successful
*    5.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
      1.    Replace    ./Sources/ManagePermissions.php    Test successful
      2.    Replace    ./Sources/ManagePermissions.php    Test successful
      3.    Replace    ./Sources/ManagePermissions.php    Test successful
*    6.    Execute Modification    ./Sources/Who.php    Test successful
      1.    Replace    ./Sources/Who.php    Test successful
      2.    Replace    ./Sources/Who.php    Test successful
*    7.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
      1.    Add Before    ./Themes/default/languages/Modifications.english.php    Test successful
   8.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
   9.    Execute Modification    ./Themes/default/languages/Modifications.french.php    Skipping file
*    10.    Execute Modification    ./Sources/Profile.php    Test successful
      1.    Replace    ./Sources/Profile.php    Test successful
      2.    Add Before    ./Sources/Profile.php    Test successful
   11.    Delete File    MGallery.php   
   12.    Delete File    MGallery-Sub.php   
   13.    Delete File    Subs-MGallery.php   
   14.    Delete File    MGallery-Admin.php   
   15.    Delete File    MGallery.template   
   16.    Delete Tree    mgallery   
   17.    Delete Tree    mgallery   
   18.    Delete File    MGallery.english.php   
   19.    Delete File    MGallery.french.php   
   20.    Delete File    MGalleryItem.php



Cant anyone help? This happend during the uninstilation!, That means that a mod modifies the code that already was modified with the gallery? What the flip is going on?.... Maybe AVea is conflicting with it?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 19, 2008, 11:48:48 AM
Quote from: taha116 on December 19, 2008, 11:34:20 AM
Cant anyone help? This happend during the uninstilation!, That means that a mod modifies the code that already was modified with the gallery?
Possibly.

QuoteWhat the flip is going on?.... Maybe AVea is conflicting with it?
Lol... I don't think so. I would know ;) I made sure SMG would not conflict with Aeva, and I'm making sure Aeva doesn't conflict with SMG. That would be annoying if I'd failed :P
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Sapo84 on December 19, 2008, 03:51:15 PM
Quote from: magarto on December 19, 2008, 05:04:33 AM
In 1.5 and 1.5.1 videos do not work.
I have tested it in IE 7, Firefox 3.1, Safari, GNU/Linux, Mac & Windows. In version below 1.5 it worked.

I have a similar problem (reported by another user and tested on my system).
JW Player loads the first time and it works, then it won't load at all, and this happens with Firefox, with IE7 I never saw the JW Player work.

Maybe the problem lies in the JW Player included with the latest gallery.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: taha116 on December 19, 2008, 04:06:38 PM
Quote from: Nao 尚 on December 19, 2008, 11:48:48 AM
Quote from: taha116 on December 19, 2008, 11:34:20 AM
Cant anyone help? This happend during the uninstilation!, That means that a mod modifies the code that already was modified with the gallery?
Possibly.

QuoteWhat the flip is going on?.... Maybe AVea is conflicting with it?
Lol... I don't think so. I would know ;) I made sure SMG wouldn not to conflict with Aeva, and I'm making sure Aeva doesn't conflict with SMG. That would be annoying if I'd failed :P

Ahh.... well i have... once... had a peron fix up some of my code for a file to get smf affiliates to work...., anyways ill take a look at wich file it was and try to figure it out and post back
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: xxxdown on December 19, 2008, 05:06:40 PM
hi,
I upgraded 1.5 to 1.5.1 on yesterday. It haven't given any error. My gallery items is moderated by admin. But in today, a standart user can post an item as auto approved. I check the settings but i couldn't find any solution.

Is there any solution about this problem.

Thanks
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: magarto on December 19, 2008, 06:40:39 PM
It cannot be a problem on my side... i have downgrade to 1.5 RC 3 and videos work again, there should be anything more.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 19, 2008, 06:47:07 PM
Sure, we did it on purpose. :)
We were wondering if people were using SMG at all, so we intentionally broke everything in the latest versions. It's nice to see that someone has been testing them! Cool.

Of course, it would be much easier to see what your problem is if you actually shared the URL to your website... But that would spoil all the fun, I suppose?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Burke ♞ Knight on December 19, 2008, 06:49:19 PM
Nao 尚,

You forgot to tell them the name of the genius who gave you the idea. :P
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: xxxdown on December 20, 2008, 05:44:04 AM
smf version : 1.7
installed smg version : 1.5.1

Everythings seem good. But users can insert items directly. Auto approve system is not working for items.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 20, 2008, 06:14:37 AM
Are you sure you didn't give them Auto approve permission?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: xxxdown on December 20, 2008, 06:43:07 AM
I'm sure i didn't give auto approve permission. But items approve automaticaly.
I'm looking "permissions" table in database.

permission        addDeny
----------------      ----------------------
mgallery_access     1
mgallery_access_unseen    1
mgallery_add_images    1
mgallery_add_user_album    1
mgallery_add_videos    1
mgallery_auto_approve_com    1
mgallery_comment    1
mgallery_download_item    1
mgallery_edit_own_com    1
mgallery_edit_own_item    1
mgallery_rate_items    1
mgallery_report_com    1
mgallery_report_item    1
mgallery_search    1
mgallery_viewprofile    1
------------------------------------------
There are totaly 15 record for each group like above.

i think your last version are including 22 permission option.

Something is wrong. What do you think about this? Deagooon
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 20, 2008, 07:00:46 AM
Hmm
Open $still_unapproved = !$row['approved'];
Replace with
$still_unapproved = $row['approved'] == 0 ? true : false;
Does it works better now?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 20, 2008, 07:17:01 AM
Or

$still_unapproved = empty($row['approved']);
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: xxxdown on December 20, 2008, 07:31:44 AM
I made this changes and settings.

1) I modified MGallery.php like dragooon said.

2) I disabled all smg group permission options for an user group.

3) I enabled some smg group permission options for the user group.

4) i looked at "permission" table in database.

   These records is added to table. I think no problem.
---------------------------------------------------------------
mgallery_access     1
mgallery_access_unseen    1
mgallery_add_images    1
mgallery_add_user_album    1
mgallery_add_videos    1
mgallery_auto_approve_com    1
mgallery_comment    1
mgallery_download_item    1
mgallery_edit_own_com    1
mgallery_edit_own_item    1
mgallery_rate_items    1
mgallery_report_com    1
mgallery_report_item    1
mgallery_search    1
mgallery_viewprofile    1

5) I loged in the smf a test user of the user group. And inserted an item.

6) But same problem is still here. Item approved automatically.

:(:(:(

Thanks for your interest.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 20, 2008, 07:48:49 AM
Find
if ($will_be_unapproved != $still_unapproved)
$options['approved'] = ($will_be_unapproved ? 0 : 1);

Replace with
$options['approved'] = ($will_be_unapproved ? 0 : ($still_unapproved ? 0 : 1));
(MGallery.php)
Tested and works fine, thank you very much for reporting this.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: xxxdown on December 20, 2008, 07:56:29 AM
It works fine. Thank you.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 20, 2008, 09:25:40 AM
We did a silent update to fix that bug for all. (Dragooon, I also removed the unneeded parenthesis in the updated line -- although that's not in the silent update.)

Also supposedly included in the silent update is my fix for the "Keywords:" line still appearing even when there are no tags at all.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: ccraciun on December 20, 2008, 12:08:42 PM
Hello,
I installed SMG 1.5.1 on my SMF (1.1.7 with Dilber MC theme) and it seems to be ok.

I would like to know how can i add an item for the gallery in the menu to be easier to access it; now i can acccess the gallery, by adding in the address /index.php?action=mgallery

Thanks!
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: magarto on December 20, 2008, 03:23:42 PM
Nao, my SMF url is: http://salsamadrid.org and the gallery is in the tab "Fotos" (photos in spanish).
I'm now using 1.5 RC 3.2 and it works ;)
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 20, 2008, 06:20:09 PM
Okay, err... Then redownload v1.5.1 and tell me to go there when it doesn't work ;)
Don't forget to give us (here or by PM) an account to go there... We're not registering just for tests :P
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: SgtMic on December 21, 2008, 02:07:26 AM
SMF Beta4

I am getting this error when I go to delete a member from the forum:

Fatal error: require_once() [function.require]: Failed opening required '/home/xxxx/public_html/gallery/embed.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xx/public_html/forums/Sources/Gallery.php on line 368

Any ideas on a fix?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 21, 2008, 03:22:40 AM
This is not SMF Gallery lite, this is a different gallery. Please ask SMF Gallery's question on there topic/support forum.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: smurfyforum on December 21, 2008, 05:19:13 AM
Quote from: Skargon on December 18, 2008, 03:37:19 PM
I just loaded this mod, I'm having a couple of problems.

The first, I don't have a button for the gallery in either the custom theme I use  (Blue Rose) or the smf default theme.

I altered the index.template.php to try to get the button to show up, and I still get nothing.

**************

Also, I attempt to use the "Mass upload" function, and it gives me this error: 

Line: 1
Char: 132
Error: 'yuigen0' is undefined
Code: 0
URL: ***REMOVED***

I can upload picture singularly with no issues.

If your button isn't showing up - look in the default theme files for index.template.php
search for this


if ($context['current_action']=='mgallery')
$current_action = 'mgallery';




if that isn't there, add it right under this code -


if (isset($_GET['board']) || isset($_GET['topic']) || $context['current_action']=='forum')
$current_action = 'forum';




then scroll down to buttons and add in his code where you want the button to appear if it is not already in the buttons codes (usually it is after the Calendar button code) -



// [SMF Media Gallery]
if (allowedTo('mgallery_access'))
echo ($current_action == 'mgallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mgallery' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mgallery">' , $txt['mgallery_gallery'] , '</a>
</td>' , $current_action == 'mgallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';




NOW - with a theme other than default, you have to go into it's index.template.php file and look for this line -



if (in_array($context['current_action'], array('forum', 'contact', 'links', 'search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))




add in this code - 'mgallery' - at the front of the line, or anywhere really, as long as you add it in the same way the others are listed.

then to add the button goto the buttons and add the button in this way -



if (allowedTo('mgallery_access'))

echo '<li><a' , $current_action=='mgallery' ? ' class="current"' : '' , ' href="', $scripturl, '?action=mgallery"><span>' , $txt['mgallery_gallery'] , '</span></a></li>';


Title: Re: SMF Media Gallery - 1.5.1 released
Post by: [unplugged] on December 21, 2008, 08:25:57 AM
Quote from: Dragooon on December 21, 2008, 03:22:40 AM
This is not SMF Gallery lite, this is a different gallery. Please ask SMF Gallery's question on there topic/support forum.

Wow. You may want to put "This is not SMF Gallery." in bright bold letters in your signature. ;)

I have a question. I was wondering if there was a way to alter the number of pictures shown per page.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg381.imageshack.us%2Fimg381%2F9319%2Fsmgrm8.jpg&hash=0242363a3106aaa9ea15a57f96350068a80d1a44) (http://imageshack.us)

Every page of an album looks like that, with the space at the end instead of one last picture, even if there is another page of pictures to follow. I know it's a small detail in an already fantastic mod, but it's the small details that annoy me the most.  :P

Also, I looked but could not find how to change the number of pictures displayed under the "Recent Items" section. Is there a way to set this as well?

Thank you very much for your time.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Kindred on December 21, 2008, 08:45:03 AM
you set the number displayed per screen in the gallery admin section.

realize that if you change the window size, the layout will also be different.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: [unplugged] on December 21, 2008, 08:54:16 AM
Thanks! I swear those three tabs weren't in the admin section the 317 times I was in there.  :P
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 21, 2008, 09:15:59 AM
Quote from: SunKing on December 21, 2008, 08:25:57 AM
Wow. You may want to put "This is not SMF Gallery." in bright bold letters in your signature. ;)
Why? They couldn't be any more different...
And it's not like it's on the same topic. Or the same authors. Or that SMF Gallery supports Media (= also video and audio). Etc, etc.
What is it with the name?
Both are mods to add a gallery to your website. It's only logical that they both have the name Gallery in it. Should we rename it to something else, just to avoid confusion?
I can only think of "Santa's Little Independent Picture Shop" (SLIPS), but that only works well in French of course.

QuoteI have a question. I was wondering if there was a way to alter the number of pictures shown per page.
Yes, and for those asking "can we center the random/recent pics?", the answer is no, I've already tried, and I have yet to find a solution that is compatible with Dragooon's float-based implementation. If anyone pulls one together, please share.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: magarto on December 21, 2008, 09:23:15 AM
Thanks Nao,  you have a PM with the account and pwd.
I am translating SMG into spanish.
Also check that if you make click on any user profile and then in summary of SMG stats, data is not displayed, you cannot see how many elements the user uploaded and so on...
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: [unplugged] on December 21, 2008, 09:43:53 AM
Quote from: Nao 尚 on December 21, 2008, 09:15:59 AM
Yes, and for those asking "can we center the random/recent pics?", the answer is no, I've already tried, and I have yet to find a solution that is compatible with Dragooon's float-based implementation. If anyone pulls one together, please share.

It's almost as if you can read minds........that was my next question.

I guess I am all set then! Thanks again for a brilliant mod!
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: ke4obt on December 21, 2008, 10:04:26 AM
Hey Guys,

How about SMF Media Studio or the SMF Media Center?
Just the one and a half cents worth of your biggest blind fans thoughts, for what thats worth.

!!! OUCH!!! Nao, Mickey just popped me in the head realy hard and said not to lisen to a thing I say so I guess ya'll shouldn't  lisen to me, (just disreguarde my last thoughts)
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: SgtMic on December 21, 2008, 12:23:39 PM
Quote from: Dragooon on December 21, 2008, 03:22:40 AM
This is not SMF Gallery lite, this is a different gallery. Please ask SMF Gallery's question on there topic/support forum.

Sorry, I disabled that mod because I'm using yours. I should have read the error more closely.

*crawls back into my hole highly embarrassed*
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Smoky "Rider" Blue on December 21, 2008, 12:34:11 PM
hmm..  :o  hands micky a blankie.. rofl 8) he might just need it.

lol.. Nao seems like this is a hot topic.. and we all know the reason why.. ;)

no issues and looking forward for more toys from you and Dragooon..

Smoky wants a peep!!  :D O:)
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: SgtMic on December 21, 2008, 12:56:58 PM
As long as there is no snot on that blanky I can use it. :)

This mod is great and so far haven't had any problems (related to this mod). LOL
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Smoky "Rider" Blue on December 21, 2008, 01:08:07 PM
brand new Mic.. tags just came off it..  O:)

and yeps i like the mod too.. pretty nice..  :P
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: ccraciun on December 21, 2008, 05:18:39 PM
Quote from: pvcblue™ on December 21, 2008, 05:19:13 AM
Quote from: Skargon on December 18, 2008, 03:37:19 PM
I just loaded this mod, I'm having a couple of problems.
The first, I don't have a button for the gallery in either the custom theme I use  (Blue Rose) or the smf default theme.
I altered the index.template.php to try to get the button to show up, and I still get nothing.
...
If your button isn't showing up - look in the default theme files for index.template.php
search for this
...
I have the same problem (the gallery button didn't show up, no matter i tried so far), but with Dilber MC theme. Someone could help me please?
I attached "index.template.php" file.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 21, 2008, 05:21:42 PM
@ccraciun> this is going to be the same for all mods, if you're using SMF 1.x... Only SMF 2.x can automatically add the button in all themes. There are tutorials out there that explain how to add a button manually.

@SmokyBlue> the topic is hot but it could be even hotter... Give Dragooon something to work on! ;D

@magarto> I don't understand your question! Oh, and the Spanish version -- please check out smf-media.com, dannbass is the current translator. He's always posting updates there for the latest versions ;)
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Smoky "Rider" Blue on December 21, 2008, 06:01:41 PM
Nao.. do you really want me to do that?? :o  hmm??

poor Dragooon.. lol.. will do, but i expect the great Nao to be there to spot him if needed..  O:)


hehehe!!! Merry Christmas you guys..  ;)
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: vulcan59 on December 21, 2008, 06:10:32 PM
QuoteI have the same problem (the gallery button didn't show up, no matter i tried so far), but with Dilber MC theme. Someone could help me please?
I attached "index.template.php" file.

Hi ccracium,

I am using the DilberMC theme on one of my sites. Try the attached index.template

Regards.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: SgtMic on December 21, 2008, 06:16:15 PM
OK, ran into something odd. I have 2 sites running off my dedicated server. Both Beta4.
I also have GD, ImageMagick and FFmpeg installed and working.

One site shows 2 out of 3 available and the other shows 1 out of 3 available.
What is the fix for this?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 21, 2008, 08:45:47 PM
Try uploading phpinfo and checking each one separately, does it shows them as available?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: SgtMic on December 21, 2008, 11:04:52 PM
Is it safe to copy/paste the info? I've seen GD, but have not seen any others. That's not saying I've missed them either. It's quite possible.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Michael24 on December 22, 2008, 01:31:07 AM
I installed the gallery but shouldn't there be a link on top , as in "Home, Help, Search, Gallery."  It's not showing up there and also even though I have it set up for regular members to access, it seems I'm the only one that can see the gallery.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: ccraciun on December 22, 2008, 01:54:47 AM
Quote from: Nao 尚 on December 21, 2008, 05:21:42 PM
@ccraciun> this is going to be the same for all mods, if you're using SMF 1.x... Only SMF 2.x can automatically add the button in all themes. There are tutorials out there that explain how to add a button manually.
...
I tried some of the tutorials but they didn't work with my Dilber theme; or maybe i did something wrong...   :-\
Thanks


Quote from: vulcan59 on December 21, 2008, 06:10:32 PM
QuoteI have the same problem (the gallery button didn't show up, no matter i tried so far), but with Dilber MC theme. Someone could help me please?
I attached "index.template.php" file.
Hi ccracium,
I am using the DilberMC theme on one of my sites. Try the attached index.template
Regards.
It works!
Thank you very much!
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Michael24 on December 22, 2008, 02:11:44 AM
Quote from: ccraciun on December 22, 2008, 01:54:47 AM
Hi ccracium,
I am using the DilberMC theme on one of my sites. Try the attached index.template
Regards.

It works!

I tried that and it threw my entire board offline.  I am using DilberMC as well so I thought it'd work for me too.

This is the error message I got:

Unable to load the 'main_above' template. 
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: ディン1031 on December 22, 2008, 02:26:40 AM
I found a small bug ;)


8: Undefined index: 51
File: /i***/forum/Sources/MGallery.php
Line: 769

So this error happen if the user did not exists, but the id is stored in the database :X.

Tested on V: 1.5.1
(It will generate a second error, but if this is fixed the other will be gone, too)

Bye
DIN1031
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 22, 2008, 03:40:24 AM
New mod suggestion for mod authors in search of something to do: "Add a freaking button to my freaking custom theme". :D
Just provide the action to link to, and you're done! lol
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Smoky "Rider" Blue on December 22, 2008, 03:50:00 AM
lol which button (http://custom.simplemachines.org/mods/index.php?action=search;basic_search=button) Nao??  O:)
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 22, 2008, 03:53:57 AM
Oh yes, I forgot... I suppose everyone expects mod authors to provide "in theme" buttons for every theme available? ;)
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 22, 2008, 04:06:18 AM
Quote from: SgtMic on December 21, 2008, 11:04:52 PM
Is it safe to copy/paste the info? I've seen GD, but have not seen any others. That's not saying I've missed them either. It's quite possible.
If its not showing others then you haven't compiled them properly. Also make sure to compile there PHP Modules as well(FFMPEG-PHP for FFMPEG, Imagick or MagickWand for ImageMagick).
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: vulcan59 on December 22, 2008, 05:23:05 AM
Quote from: Michael24 on December 22, 2008, 02:11:44 AM
Quote from: ccraciun on December 22, 2008, 01:54:47 AM
Hi ccracium,
I am using the DilberMC theme on one of my sites. Try the attached index.template
Regards.

It works!

I tried that and it threw my entire board offline.  I am using DilberMC as well so I thought it'd work for me too.

This is the error message I got:

Unable to load the 'main_above' template.

Hi Michael24, sorry to hear that. Would you care to attach your DilberMC index.template? Perhaps you have other mods.

Regards.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: vulcan59 on December 22, 2008, 05:46:03 AM
Quote from: Nao 尚 on December 22, 2008, 03:53:57 AM
Oh yes, I forgot... I suppose everyone expects mod authors to provide "in theme" buttons for every theme available? ;)

Hi Nao,

Agreed, that would not be possible but perhaps the theme authors should be required to make it such that extra buttons can be configured like for example the Adagio theme made by Bloc over at TP. Just a suggestion.

Regards.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 22, 2008, 08:58:57 AM
Quote from: magarto on December 19, 2008, 05:04:33 AM
In 1.5 and 1.5.1 videos do not work.
I have tested it in IE 7, Firefox 3.1, Safari, GNU/Linux, Mac & Windows. In version below 1.5 it worked.
I don't know what exact codec you've been using, but it's not readable by Flash.
Basically, versions prior to 1.5 used to rely on the operating system to show MP4 videos. Now they rely on the JW Player which is itself relying on Flash itself to play MP4 vids. As a result, any computer, any OS, any browser can view the videos. But the counterpart is that some videos won't play at all, anywhere.

Try to replace JW Player with FlowPlayer... It was my "second choice", I'm just not sure whether it would work.
Do you have any idea what codec you're using for your MP4 files?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Smoky "Rider" Blue on December 22, 2008, 09:32:59 AM
Quote from: vulcan59 on December 22, 2008, 05:46:03 AM
Quote from: Nao 尚 on December 22, 2008, 03:53:57 AM
Oh yes, I forgot... I suppose everyone expects mod authors to provide "in theme" buttons for every theme available? ;)

Hi Nao,

Agreed, that would not be possible but perhaps the theme authors should be required to make it such that extra buttons can be configured like for example the Adagio theme made by Bloc over at TP. Just a suggestion.

Regards.

Hi Vulcan!!

I am sorry you are having an issue with buttons, but some theme authors do include mod options with their themes, some even build custom themes around your mods, but its up to the individual for buttons.. not everyone will have the same mods..  ;)
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: magarto on December 22, 2008, 09:46:04 AM
I do not know which code do you mean, i installed only your SMG but no additional video player.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 22, 2008, 10:42:51 AM
Quote from: magarto on December 22, 2008, 09:46:04 AM
I do not know which code do you mean, i installed only your SMG but no additional video player.
Codec, not code. Google, please?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Michael24 on December 22, 2008, 11:14:34 AM
Quote from: vulcan59 on December 22, 2008, 05:23:05 AM
Quote from: Michael24 on December 22, 2008, 02:11:44 AM
Quote from: ccraciun on December 22, 2008, 01:54:47 AM
Hi ccracium,
I am using the DilberMC theme on one of my sites. Try the attached index.template
Regards.

It works!

I tried that and it threw my entire board offline.  I am using DilberMC as well so I thought it'd work for me too.

This is the error message I got:

Unable to load the 'main_above' template.

Hi Michael24, sorry to hear that. Would you care to attach your DilberMC index.template? Perhaps you have other mods.

Regards.

Hello, vulcan59 --  Thanks for your help.  Here's the file you requested.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: holeski on December 22, 2008, 11:37:25 AM
It is not allowing me to move user albums to a different location. General albums work fine, but when I click on move a user album, even if it is one of my own it just refreshes the page back to the general albums. Right now I'm looking at having to uninstall all the photos and delete the user albums just to add them back where they need to be located. Is this normal or is something not working right for me?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: vulcan59 on December 22, 2008, 02:29:41 PM
Hi Michael24,

Try the attached. And if you go over to the Theme Site and look under DilberMC (http://www.simplemachines.org/community/index.php?topic=91902.0) you'll get a lot more info.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: vulcan59 on December 22, 2008, 02:38:40 PM
Quote from: SmokyBlueHi Vulcan!!

I am sorry you are having an issue with buttons, but some theme authors do include mod options with their themes, some even build custom themes around your mods, but its up to the individual for buttons.. not everyone will have the same mods..  ;)

Hi SmokyBlue,

That's exactly what I am saying, ie authors like in the Adagio theme have included a much better way to configure a button. All I had to do was specify what the button was called and it's action!!! So much easier than trying to cut and paste code. Less chance for someone to mess things up.  :D

And no, I do not have issues with buttons anymore once I understood the principles involved.

Regards. :D :D

Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Sapo84 on December 22, 2008, 02:58:56 PM
Nao, two days ago I sent you a pm about the video problem on my smf2 installation with gallery 1.5+, did you receive it?
If not, I can send it again.

Regards.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Michael24 on December 22, 2008, 03:19:14 PM
Thanks for trying, but I got the same exact error message as before.  I really like DilberMC aesthetically speaking, but it's proven to be very problematic with just about every mod I've installed, and this one is no exception.

Quote from: vulcan59 on December 22, 2008, 02:29:41 PM
Hi Michael24,

Try the attached. And if you go over to the Theme Site and look under DilberMC (http://www.simplemachines.org/community/index.php?topic=91902.0) you'll get a lot more info.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: vulcan59 on December 22, 2008, 04:11:46 PM
Hi Michael24,

Try posting your problem or looking for it. I found a whole lot of similar issues that you are having and numerous suggestions as to how to solve the problem. I'm sure one of the solutions will work for you.

Apologies I can't be of more help.

Regards.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: afe on December 22, 2008, 05:05:26 PM
I made a new album and when I went to it, I got "  The website is unable to display the webpage
HTTP 501/HTTP 505 
   What you can try:
     Go back to the previous page.

     More information "
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 22, 2008, 06:30:16 PM
Sapo> I received 3 other PMs at the same time, I simply missed yours (which was the first). That's 9 PMs in two days... lol...

afe> HTTP 50x = server error. Usually, this means your server is not "strong" enough to deal with something. Not enough memory, etc, or an infinite loop (but I'm confident we fixed all of these last month.)
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: magarto on December 22, 2008, 06:53:42 PM
Ahhh, ok. Codec is mp4 the same codification as the iphone use.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: vulcan59 on December 22, 2008, 06:56:14 PM
Hi Nao,

Finally got to try mass upload and again, it doesn't work. I have a new installation of SMF1.1.7 with TP 1.0.5 beta 2. I downloaded and installed SMF Media Gallery without a hitch.

I then created an album and tried mass upload. The progress bar just hangs at about 20%. If I click upload again, it eventually reaches 100% or more but the files below only show the first file being uploaded. When I then go check the album, nothing is uploaded!! I had to do single uploads and that works without a hitch. The total file size that I tried to upload was something like 500kb with the max upload size set to 10MB. Yes I have crossdomain.xml in the root. There are no errors in the Forum error log.

The only problem I can think of is that I am using a free host (co.cc) and perhaps that could be the problem but I am not sure. I just wanted to try out and see what problems I would face before going live on the main site.  :(

Any ideas?



Title: Re: SMF Media Gallery - 1.5.1 released
Post by: afe on December 22, 2008, 07:30:15 PM
Quote from: Nao 尚 on December 22, 2008, 06:30:16 PM
Sapo> I received 3 other PMs at the same time, I simply missed yours (which was the first). That's 9 PMs in two days... lol...

afe> HTTP 50x = server error. Usually, this means your server is not "strong" enough to deal with something. Not enough memory, etc, or an infinite loop (but I'm confident we fixed all of these last month.)

So there's nothing I can do to get my gallery working? :(
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: yrral on December 22, 2008, 08:09:20 PM
Hi Dragoon and Nao,

Firstly, thanks for the VERY nice mod... this is the one that i'm waiting for. I've installed it last night and seems to be working correctly aside from (I guess a quick solution) some buttons not showing up in the admin pages.

Can you guys tell me which file I need to look at? thanks!

Please see the attached screenshot:
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Smoky "Rider" Blue on December 22, 2008, 09:30:16 PM
ok i give.. been trying to figure out what this is:

An error happened during the upload process, please try again or contact the administrator.

thats too funny.. i am a admin :P

anyways.. all the folders are chmodded to 777..

it wont make new folders useable..

ran the maintance, and been trying to think bout it, but im lost..

any help with this one??  O:)
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 23, 2008, 04:17:04 AM
@magarto> so, it means JW Player (or Flash itself) is not compatible with MP4s targetted to iPhones. Convert them to FLV. You won't lose much quality, if any...
@vulcan> what are the values for upload_max_filesize and max_post_size? And yeah, it's probably because of your host...
@yrral> right-click on the buttons that don't appear, and click Properties... You'll get the URL. Make sure the file is correctly uploaded there.
@SmokyBlue> same as for Mr. Spock... I guess you're trying to upload a file that's larger than your max PHP-allowed size. Fix this through php.ini settings (or php_value through htaccess, etc... Google for more details.)
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Blinker on December 23, 2008, 07:08:33 AM
Hey guys, great mod, loving it!

After I upgraded to 1.5.1 there was a glitch where even though auto-approve was OFF, uploads still appeared. I fixed that with Dragoon's fix a page or so back.

Unfortunately I noticed another security glitch today which concerns me:

When a user posts an image it sits in the gallery waiting for approval but if they post the HTML embed code for that image into a post the image shows up in their post. That kinda defeats the purpose of admin/mod approving images.

All the user did was paste the code like so - <img src="http://myforum.org/forum/MGalleryItem.php?id=15" alt="" /> and it appeared in their post.

That got me thinking so I tested something else by logging out of the forum and then pasting the direct link into the browser like so - http://myforum.org/forum/MGalleryItem.php?id=15 and sure enough the image loads straight into a blank webpage.

Maybe I'm missing something here but I thought SMF Gallery integrates into the forum to the extent that it follows the permissions of the forum. Maybe not.

I do not allow guest access, my board is very private, so I would really like to lock this baby down so that direct links to images would take you to the login screen and embed codes would not work until the image has been approved. It makes sense that that would be the case.

Any ideas guys?

P.S. I've thoroughly checked the gallery setting in adminCP and can't find any relevant settings. Am I missing something obvious here?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 23, 2008, 09:18:56 AM
This is indeed a bug. Will be fixed in 1.5.2
To fix this open Subs-MGallery.php
find
global $mgalFunc, $mgalSettings, $settings;

// Get the item's filename
$galdir = $mgalSettings['data_dir_path'];
$result = $mgalFunc['db_query']('
SELECT f.id_file, f.filename, f.directory
FROM {db_prefix}mgallery_'.($type == 'icon' ? 'albums AS a' : 'media AS m').'
INNER JOIN {db_prefix}mgallery_files AS f ON (' . ($type == 'icon' ? 'a.icon' : ($type == 'preview' ? 'IF(m.id_preview = 0, m.id_file, m.id_preview)' : ($type == 'thumb' ? 'm.id_thumb' : 'm.id_file'))) . ' = f.id_file)
' . (!$security_override && $type != 'icon' ? 'LEFT JOIN {db_prefix}mgallery_albums AS a ON (a.id_album = f.id_album)' : '') . '
WHERE '.($type == 'icon' ? 'a.id_album' : 'm.id_media').' = {int:media_id}' . (!$security_override ? '
AND (f.id_file < 5 OR {query_see_album})' : '') . '
LIMIT 1', array('media_id' => $mid), __FILE__,__LINE__);

Replace it with
global $mgalFunc, $mgalSettings, $settings, $user_info;

// Get the item's filename
$galdir = $mgalSettings['data_dir_path'];
$result = $mgalFunc['db_query']('
SELECT f.id_file, f.filename, f.directory
FROM {db_prefix}mgallery_'.($type == 'icon' ? 'albums AS a' : 'media AS m').'
INNER JOIN {db_prefix}mgallery_files AS f ON (' . ($type == 'icon' ? 'a.icon' : ($type == 'preview' ? 'IF(m.id_preview = 0, m.id_file, m.id_preview)' : ($type == 'thumb' ? 'm.id_thumb' : 'm.id_file'))) . ' = f.id_file)
' . (!$security_override && $type != 'icon' ? 'LEFT JOIN {db_prefix}mgallery_albums AS a ON (a.id_album = f.id_album)' : '') . '
WHERE '.($type == 'icon' ? 'a.id_album' : 'm.id_media').' = {int:media_id}' . (!$security_override ? '
AND (f.id_file < 5 OR {query_see_album})' . (!mGalAllowedTo('moderate') ? ' AND (' . ($type == 'icon' ? 'a' : 'm') . '.approved = 1 OR ' . ($type == 'icon' ? 'a.album_of' : 'm.id_member') . ' = {int:user_id})' : '') : '') . '
LIMIT 1', array('media_id' => $mid, 'user_id' => $user_info['id']), __FILE__,__LINE__);

Untested but I am pretty sure it would work.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 23, 2008, 09:35:28 AM
OK Updated the fix, this time it really works.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Blinker on December 23, 2008, 09:48:46 AM
Hi Dragoon thanks for the speedy reply.

I'm both glad and not glad I found a bug. :-X

I edited the Subs-MGallery.php file as per your post (both of them!) and tested both aspects of the loophole.

Unfortunately, still not working on both counts I'm afraid... :(

I submitted an image as a regular user (didn't approve it as admin) then posted html embed code into a thread and the image displayed.

I also logged out and pasted direct link into browser and the image displayed.

Sorry Dragoon...I think this bug needs attention BUT enjoy your xmas and bring on 1.5.2 when you and Nao get a chance....we can wait dude. :D Thanks for all your hard work to date, it's a great mod.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Smoky "Rider" Blue on December 23, 2008, 10:01:54 AM
@SmokyBlue> same as for Mr. Spock... I guess you're trying to upload a file that's larger than your max PHP-allowed size. Fix this through php.ini settings (or php_value through htaccess, etc... Google for more details.)

not too sure Nao..  :'(

its on a client site: http://www.dangerousmindz.com/forum 

if you head to that gallery and take a peep. its a image of a comic strip.. the one gallery album that was created 3 times last night by me, never accepted it and gave me that error

"An error happened during the upload process, please try again or contact the administrator"

attaching image here.. i dont know, no coffee yet..  :P
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Burke ♞ Knight on December 23, 2008, 10:06:13 AM
For security purposes, I really would not allow HTML in posts.
Can they also post the unapproved images using the BBC way?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Blinker on December 23, 2008, 10:14:31 AM
Quote from: BurkeKnight on December 23, 2008, 10:06:13 AM
For security purposes, I really would not allow HTML in posts.
Can they also post the unapproved images using the BBC way?

Hey BK

Yes, BBC embed code works too. :(

The image shows as a thumbnail in the post and expands when you click on it.

My bad, I should have mentioned BBC as well.

BTW out of interest why is HTML in posts more of a security risk and also how could I disable it in posts? Particularly in light of some users thinking that it was a better way to embed their pics if they didn't understand that BBC was actually safer and more convenient?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Burke ♞ Knight on December 23, 2008, 10:19:32 AM
I'm not 100% sure why, just that I have heard that so many times, and the fact that a lot of forum scripts even recommend not enabling it, shows me that there is something to it.

I've just been too danged lazy to find out why. :P

Go to Admin > Posts and Topics > Bulletin Board Code > Uncheck Enable basic HTML in posts to disable.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Blinker on December 23, 2008, 10:25:15 AM
Quote from: BurkeKnight on December 23, 2008, 10:19:32 AM
I'm not 100% sure why, just that I have heard that so many times, and the fact that a lot of forum scripts even recommend not enabling it, shows me that there is something to it.

I've just been too danged lazy to find out why. :P

Go to Admin > Posts and Topics > Bulletin Board Code > Uncheck Enable basic HTML in posts to disable.

OK cool, thanks for the heads up. I can dig the whole lazy thing but I'll have to go read up on that now. Gotta learn y'know?

I've compared the edits Dragooon made to the original and it LOOKS like it should work but I guess the rabbit hole goes much deeper.

Back to the drawing board as they say.

Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 23, 2008, 10:59:31 AM
Quote from: Blinker on December 23, 2008, 09:48:46 AM
Hi Dragoon thanks for the speedy reply.

I'm both glad and not glad I found a bug. :-X

I edited the Subs-MGallery.php file as per your post (both of them!) and tested both aspects of the loophole.

Unfortunately, still not working on both counts I'm afraid... :(

I submitted an image as a regular user (didn't approve it as admin) then posted html embed code into a thread and the image displayed.

I also logged out and pasted direct link into browser and the image displayed.

Sorry Dragoon...I think this bug needs attention BUT enjoy your xmas and bring on 1.5.2 when you and Nao get a chance....we can wait dude. :D Thanks for all your hard work to date, it's a great mod.
Did you clear your browser cache?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 23, 2008, 11:58:46 AM
Blinker, try with this version of getMediaFilePath() in Subs-MGallery. (I rewrote the SQL stuff to make it clearer. It's a bit longer but it's no longer filled with tests ;))

// This function returns file path to a media, also checks security unless security_override is true
function getMediaFilePath($mid, $type = 'main', $security_override = false)
{
global $mgalFunc, $mgalSettings, $settings, $user_info;

// Get the item's filename
$galdir = $mgalSettings['data_dir_path'];
if (!in_array($type, array('main', 'icon', 'thumb', 'preview')))
return false;

$result = $mgalFunc['db_query'](($type == 'icon' ? '
SELECT f.id_file, f.filename, f.directory
FROM {db_prefix}mgallery_albums AS a
INNER JOIN {db_prefix}mgallery_files AS f ON (a.icon = f.id_file)
WHERE
a.id_album = {int:media_id}' . ($security_override || mGalAllowedTo('moderate') ? '' : '
AND (f.id_file < 5 OR {query_see_album})
AND (a.approved = 1 OR a.album_of = {int:user_id})')
: '
SELECT f.id_file, f.filename, f.directory
FROM {db_prefix}mgallery_media AS m
INNER JOIN {db_prefix}mgallery_files AS f ON (' . ($type != 'file' ? 'IF(m.id_' . $type . ' = 0, m.id_file, m.id_' . $type . ')'
: 'm.id_file') . ' = f.id_file)' . ($security_override || mGalAllowedTo('moderate') ? '
WHERE m.id_media = {int:media_id}' : '
LEFT JOIN {db_prefix}mgallery_albums AS a ON (a.id_album = f.id_album)
WHERE m.id_media = {int:media_id}
AND (f.id_file < 5 OR {query_see_album})
AND (m.approved = 1 OR m.id_member = {int:user_id})')) . '
LIMIT 1', array('media_id' => $mid, 'user_id' => $user_info['id']), __FILE__,__LINE__);

// Not found?
if ($mgalFunc['db_num_rows']($result) > 0)
{
$row = $mgalFunc['db_fetch_assoc']($result);
$path = $galdir . '/' . $row['directory'] . '/' . ($row['id_file'] > 4 ? getEncryptedFilename($row['filename'], $row['id_file']) : $row['filename']);
$filename = $row['filename'];
}
else
{
$path = $type == 'icon' ? $settings['default_theme_dir'] . '/images/blank.gif' : $settings['theme_dir'] . '/images/mgallery/denied.png';
$filename = 'denied.png';
}
$mgalFunc['db_free_result']($result);

return file_exists($path) ? array($path, $filename) : false;
}


SmokyBlue, this is too small a picture to be a problem with php variables...
Maybe safe mode is enabled? I don't think it would say that error message though...

I guess you'll have to sacrifice a FTP account and admin account as well for the website ;)
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Smoky "Rider" Blue on December 23, 2008, 12:14:03 PM
dropping a pm now.. let me know, owner is in Japan on USS battleship..  ;)
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: vulcan59 on December 23, 2008, 01:39:38 PM
Quote from: Nao...same as for Mr. Spock... I guess you're trying to upload a file that's larger than your max PHP-allowed size.

Quote from: Nao@vulcan> what are the values for upload_max_filesize and max_post_size? And yeah, it's probably because of your host.

Hi Nao,

I changed it all back to default values (1024kb) and then tried to upload 5 files about 120kb and same problem. It has to be the host but I'll have to wait to find out.

Thanks for your response.

Regards.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Smoky "Rider" Blue on December 23, 2008, 06:51:06 PM
umm Nao, i forgot ftp login.. but if you tell me what you are looking for i might be able to help..

every folder for the gallery is set to 777

im sorry.. will try to get a hold of the owner if you really need that..
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: taha116 on December 23, 2008, 09:05:52 PM
Uninstall Actions
Uninstall Actions "SMF Media Gallery":
Installing this package will perform the following actions:
Type Action Description
* 1. Execute Modification ./index.php Test successful
1. Replace ./index.php Test successful
* 2. Execute Modification ./Sources/Subs.php Test failed
1. Replace ./Sources/Subs.php Test failed
2. Replace ./Sources/Subs.php Test successful
3. Replace ./Sources/Subs.php Test successful
* 3. Execute Modification ./Sources/Admin.php Test successful
1. Replace ./Sources/Admin.php Test successful
* 4. Execute Modification ./Sources/Load.php Test failed
1. Replace ./Sources/Load.php Test failed
2. Replace ./Sources/Load.php Test successful
3. Replace ./Sources/Load.php Test failed
4. Replace ./Sources/Load.php Test successful
* 5. Execute Modification ./Sources/ManagePermissions.php Test successful
1. Replace ./Sources/ManagePermissions.php Test successful
2. Replace ./Sources/ManagePermissions.php Test successful
3. Replace ./Sources/ManagePermissions.php Test successful
* 6. Execute Modification ./Sources/Who.php Test successful
1. Replace ./Sources/Who.php Test successful
2. Replace ./Sources/Who.php Test successful
* 7. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
1. Add Before ./Themes/default/languages/Modifications.english.php Test successful
8. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
9. Execute Modification ./Themes/default/languages/Modifications.french.php Skipping file
* 10. Execute Modification ./Sources/Profile.php Test successful
1. Replace ./Sources/Profile.php Test successful
2. Add Before ./Sources/Profile.php Test successful
11. Delete File MGallery.php
12. Delete File MGallery-Sub.php
13. Delete File Subs-MGallery.php
14. Delete File MGallery-Admin.php
15. Delete File MGallery.template
16. Delete Tree mgallery
17. Delete Tree mgallery
18. Delete File MGallery.english.php
19. Delete File MGallery.french.php
20. Delete File MGalleryItem.php


No one answered me, Can someone do offer a manual edit for me or sumthing this was me trying to uninstall SMG 1.5 so i could get the latest.....
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Smoky "Rider" Blue on December 23, 2008, 09:25:12 PM
taha116.

im sorry no one did, but maybe dragooon will notice this.. atm i8m a little busy..

just bump again if you need to..  ;)
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: taha116 on December 23, 2008, 09:50:52 PM
Quote from: SmokyBlue on December 23, 2008, 09:25:12 PM
taha116.

im sorry no one did, but maybe dragooon will notice this.. atm i8m a little busy..

just bump again if you need to..  ;)

No problem ill wait 2-3 days before posting that one again if i need help...  Thanks for the reply though
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Blinker on December 23, 2008, 09:51:17 PM
Quote from: Nao 尚 on December 23, 2008, 11:58:46 AM
Blinker, try with this version of getMediaFilePath() in Subs-MGallery. (I rewrote the SQL stuff to make it clearer. It's a bit longer but it's no longer filled with tests ;))

Hi Nao

Thanks for having a go at this. :)

OK, onto the test results:

After plugging in your code, HTML embed code no longer shows the image :), but BBCode does. :(

In IE, there is a 'placeholder' in full size for the HTML image with a small white square with a red cross in it in the top left corner as per standard missing image icon. In Seamonkey (and I'll assume Firefox too) there is nothing at all (which I like more...+1 to Mozilla).

Unfortunately, as I mentioned the BBcode thumbnail still shows and can be expanded if clicked on.

More good news - direct links no longer work!!! Hooray! 8)

I logged out, pasted a direct link into the browser and this error came back -

Database Error

Please try again. If you come back to this error screen, report the error to an administrator.


So, in summary, HTML embed and direct links now follow security and permission protocols, BBCode embed does not.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 23, 2008, 11:34:08 PM
Try my fix, and make sure to clear your browser's cache.

EDIT : Or try this
$result = $mgalFunc['db_query'](($type == 'icon' ? '
SELECT f.id_file, f.filename, f.directory
FROM {db_prefix}mgallery_albums AS a
INNER JOIN {db_prefix}mgallery_files AS f ON (a.icon = f.id_file)
WHERE
a.id_album = {int:media_id}' . ($security_override || mGalAllowedTo('moderate') ? '' : '
AND (f.id_file < 5 OR {query_see_album})
AND (a.approved = 1 OR a.album_of = {int:user_id})')
: '
SELECT f.id_file, f.filename, f.directory
FROM {db_prefix}mgallery_media AS m
INNER JOIN {db_prefix}mgallery_files AS f ON (' . ($type != 'main' ? 'IF(m.id_' . $type . ' = 0, m.id_file, m.id_' . $type . ')'
: 'm.id_file') . ' = f.id_file)' . ($security_override || mGalAllowedTo('moderate') ? '
WHERE m.id_media = {int:media_id}' : '
LEFT JOIN {db_prefix}mgallery_albums AS a ON (a.id_album = f.id_album)
WHERE m.id_media = {int:media_id}
AND (f.id_file < 5 OR {query_see_album})
AND (m.approved = 1 OR m.id_member = {int:user_id})')) . '
LIMIT 1', array('media_id' => $mid, 'user_id' => $user_info['id']), __FILE__,__LINE__);


Tested and I am completely sure it works. Make sure to flush your cache.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Blinker on December 24, 2008, 12:02:15 AM
Hey Dragooon

As per your previous recommendation I completely cleared the cache on both browsers before every test.

I compared that code (in your most recent post) to what was already in my Subs-Mgallery.php file and the only difference was in this line -

INNER JOIN {db_prefix}mgallery_files AS f ON (' . ($type != 'main' ? 'IF(m.id_' . $type . ' = 0, m.id_file, m.id_' . $type . ')'

where 'main' was previously 'file' so that was all I changed.

I tested and now HTML embed is showing up again!! :( BBC is still showing, but direct links won't work which is good.

Is it possible that because I've got your original fix, plus Nao's fix, plus your most recent fix all active in the same file that the problem is from that?

I'll try with my clean backup from last night with only your most recent fix and see how I go.

Edit: I changed it back to 'file' from 'main' and html embed code is disabled again. Haven't managed to try with only your new fix and minus Nao's yet.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 24, 2008, 12:10:58 AM
Can you attach your Subs-MGallery.php? I don't know why is it showing the images even if they're not approved to non-admins. Make sure you are not the person who has posted the image since it will continue showing the original poster the link.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Blinker on December 24, 2008, 12:16:02 AM
Sure mate, here you go. Please note my edit on my previous post.

BTW I'm doing the test as admin and the file was posted by my test account. I've tried several different variations with diff accounts and browsers.

Oh, and thanks so much for all your help.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 24, 2008, 12:19:31 AM
The account you're testing it with, is it the same as the user who posted it? Because then it would show it. And make sure to use $type != 'main rather then $type != 'file' because its not correct.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Blinker on December 24, 2008, 12:28:46 AM
Quote from: Dragooon on December 24, 2008, 12:19:31 AM
The account you're testing it with, is it the same as the user who posted it? Because then it would show it. And make sure to use $type != 'main rather then $type != 'file' because its not correct.

Definitely testing with a different account. Will also switch back to main instead of file. The only reason I changed it back again was because main allowed html to display again.

Interesting observation: (In IE) when I post html and bbc as the original poster of the image, the html only shows as that placeholder with the missing image icon and the bbc still shows as a thumb. This is the same whether I am looking at the post as admin, original poster or any other user (I have 4 accounts!)

In Seamonkey (my main browser), there is no placeholder at all, nothing shows up, there is nothing whatsoever to indicate the image is missing or not showing. BBC still shows as a thumb as normal.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 24, 2008, 12:56:42 AM
hmm interesting...This somehow works fine for me. Nao any ideas?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Blinker on December 24, 2008, 12:59:35 AM
Quote from: Dragooon on December 24, 2008, 12:56:42 AM
hmm interesting...This somehow works fine for me. Nao any ideas?

Did you have a look at my file? Should I be taking one of the fixes out? I'm not sure if perhaps they're conflicting with each other.

Is there any other file that should be looked at?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 24, 2008, 04:48:27 AM
Your files are fine, I can't understand how you cannot view them directly but when they're embedded. Can you PM me a FTP account, as well as one admin account and the 2 test accounts?

EDIT : After some testing, it was fine for me. It didn't show me the thumbnail when I was trying to view the post with the thumbnail embedded. Although I was required to clear my cache before it actually show me the denied.png image(The actual image was cached at the URL, so it was showing me the old thumbnail, after clearing the cache it was fine again.)
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 24, 2008, 05:40:44 AM
About the main/file bug... It's an oversight on my side. I simply forgot to rename one of my "file" changes to "main".

To be specific, I rewrote everything to use "file" instead of "main" because I thought it was good to put it in line with the rest (id_file, id_preview, id_thumb are all part of the media database... While "id_main" isn't.) "main" uses id_file so I figured, we should be using 'file' instead, so I could simply not have to test the field type before using it. Actually it didn't help much, because IF(id_file = 0, id_file, id_file) is a bit stupid (it always returns id_file, and makes a useless test in the query), so I thought I'd just go back to the test thing... And then I thought, this was the main reason for using "file" instead of "main", so I'll just go back to "main", in case someone used that function in a mod or something and specific "main".

Regarding the approval error. There are many ways to look at it. But for what it's worth, I think it'd be best to see your stuff in action or something, hey... Do you use a simple [smg id=xx] tag, or specific options in it?
Also, but I guess you already checked that, you need to make sure your cache is emptied. Sometimes I can only get a thumbnail to refresh by copying its URL, putitng it in my location bar, and then hitting Refresh (i.e. it doesn't refresh when right-clicking the picture and choosing "Reload image".)

Merry Christmas to all. I won't spend much time behind my monitor for a couple of days. Guess why. ;)
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: KahneFan on December 24, 2008, 06:34:35 AM
I apologize if I missed this somewhere, but (using 2.0b4) with a test account I can't seem to get an auto-approval of single images. I can't bulk upload, but single images tell me the require approval. Might I have missed a setting somewhere?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Burke ♞ Knight on December 24, 2008, 06:44:36 AM
In permissions for each membergroup, there will be one for auto approve.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: KahneFan on December 24, 2008, 07:16:46 AM
I have that marked, but it doesn't seem to be working for some reason.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 24, 2008, 07:18:24 AM
What version are you running?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: KahneFan on December 24, 2008, 07:42:24 AM
1.5.1

Just to be sure, attached is my settings for "Regular Members"

Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Burke ♞ Knight on December 24, 2008, 07:48:20 AM
Not sure if it matters, but Add User Album is unmarked.
Not sure if regular members can upload to the regular gallery albums.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: KahneFan on December 24, 2008, 07:54:42 AM
I'm wanting to have general albums, not user specific albums. As a (test) user I can upload images, they just show they need approval.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: panzz on December 24, 2008, 10:10:07 AM
I have a quick question too. Is it currently not possible to let items be "really" automatically approved?

What I mean is that right now, users have to click on the approve button for single uploads and that is not "really" automated like the mass upload that just places all the uploaded items into the selected album without having the need to click on approve for each of the items.

If that is not how it should be originally, then I must have done something and require your help very much!

My SMG Version is 1.5.1 and forum version is 1.1.7 in case you have to know.

Thanks
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: MissyNL on December 24, 2008, 12:05:33 PM
hello.... i had 3 questions.. but one has been solved by the search... it seems that this mod is compatible with the Lightbox mod :D

So... i have two quetions left.. :D

I have regular members and VIP members. Is it possible to for me to choose a membergroup who can view a specific video album?

Is it possible that the VIP members can choose to only show an album they have made to the VIP Members?

Thanks!
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: KahneFan on December 24, 2008, 12:39:31 PM
I just tried posting as admin and it still tells me I have to approve my own image. I don't mind having to approve images if someone can tell me where to find the code for the bar pictured below so that I can move it to the standard index page. This would make it so I can clearly see when images need to be approved.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: ke4obt on December 24, 2008, 02:06:27 PM


Hey Ya'll,

  I was looking around the SMF site and saw someones list of installed mods and one of them was "SMG Slideshow Addon", can anybody tell me where to get this mod?

     Thanks Lots,
     Flip - KE4OBT
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: MissyNL on December 24, 2008, 09:21:49 PM
Quote from: ke4obt on December 24, 2008, 02:06:27 PM


Hey Ya'll,

  I was looking around the SMF site and saw someones list of installed mods and one of them was "SMG Slideshow Addon", can anybody tell me where to get this mod?

     Thanks Lots,
     Flip - KE4OBT

I do not know.. but why do you need it if the new version contains "Highslide animated transitions with per-album settings" ?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 24, 2008, 10:14:37 PM
Quote from: Lafemme on December 24, 2008, 09:21:49 PM
Quote from: ke4obt on December 24, 2008, 02:06:27 PM


Hey Ya'll,

  I was looking around the SMF site and saw someones list of installed mods and one of them was "SMG Slideshow Addon", can anybody tell me where to get this mod?

     Thanks Lots,
     Flip - KE4OBT

I do not know.. but why do you need it if the new version contains "Highslide animated transitions with per-album settings" ?
Its a premium addon for SMG, which can be found over http://store.smf-media.com

Quote from: KahneFan on December 24, 2008, 12:39:31 PM
I just tried posting as admin and it still tells me I have to approve my own image. I don't mind having to approve images if someone can tell me where to find the code for the bar pictured below so that I can move it to the standard index page. This would make it so I can clearly see when images need to be approved.
Hmm I'm doubting it as a bug. Let me investigate then I'll post what I've found.

Quote from: panzz on December 24, 2008, 10:10:07 AM
I have a quick question too. Is it currently not possible to let items be "really" automatically approved?

What I mean is that right now, users have to click on the approve button for single uploads and that is not "really" automated like the mass upload that just places all the uploaded items into the selected album without having the need to click on approve for each of the items.

If that is not how it should be originally, then I must have done something and require your help very much!

My SMG Version is 1.5.1 and forum version is 1.1.7 in case you have to know.

Thanks
No thats definitely not the original behavior
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 24, 2008, 11:01:40 PM
@All the items always being unapproved issue -
Open MGallery.php
Find
$still_unapproved = true;
Replace with
$still_unapproved = mGalAllowedTo('auto_approve_item') ? false : true;
Tested and works.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: KahneFan on December 25, 2008, 01:22:29 AM
/Sources/MGallery.php if it help anyone.

Thanks Dragoon!

BTW, any chance you could make it so we could show the media (all folders together) as a board on the index?

Example:

Sample Category
- Board 1...... 3 Post - 1 Topic
- Board 2...... 56 Post - 4 Topics
- Board 3...... 24 Posts - 3 Topics
- Media Gallery...... ## Files (or posts) - ## Folders (or topics)

And make it so the "On" lights up when there's new content? I think this would draw more people to the galleries, plus give an easy indicator to admin when there's new content.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: jayc7176 on December 25, 2008, 01:45:30 AM
This is an awesome mode, Overall this mod Nails everything that one can want in a Mod like this! Thnx for this.

One question ?  I have highslide enabled but it is not working :( any help?

Title: Re: SMF Media Gallery - 1.5.1 released
Post by: KahneFan on December 25, 2008, 02:59:29 AM
Dragoon, along with my suggestion above, another thought; would there be a way to link to a post similar to the calendar does? I'm not sure a site with A LOT of pics would want to do this, but it might be nice for an image/art specific forum to be able to have the option of creating a thread inside their boards each time an image is posted instead of commenting inside the gallery. Not something I would use, but I could see it being used.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: panzz on December 25, 2008, 09:40:08 AM
Quote from: Dragooon on December 24, 2008, 11:01:40 PM
@All the items always being unapproved issue -
Open MGallery.php
Find
$still_unapproved = true;
Replace with
$still_unapproved = mGalAllowedTo('auto_approve_item') ? false : true;
Tested and works.

Thank you so very much! Tested and worked on my end too.  :D

Thank you once again
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: MissyNL on December 25, 2008, 02:34:54 PM
hello,

I wanted to install.. but i have an error...

1.     Voer code uit     db_mgallery.php     
2.    Voer aanpassing uit    ./index.php    Succes
3.    Voer aanpassing uit    ./Sources/Subs.php    Succes
4.    Voer aanpassing uit    ./Sources/Load.php    Succes
5.    Voer aanpassing uit    ./Sources/ManagePermissions.php    Test mislukt
6.    Voer aanpassing uit    ./Themes/default/index.template.php    Succes
7.    Voer aanpassing uit    ./Sources/Who.php    Succes
8.    Voer aanpassing uit    ./Sources/Profile.php    Succes
9.    Voer aanpassing uit    ./Themes/default/languages/Modifications.english.php    Succes
10.    Voer aanpassing uit    ./Themes/default/languages/Modifications.english-utf8.php    Succes
11.    Voer aanpassing uit    ./Themes/default/languages/Modifications.french.php    Succes
12.    Uitpakken Boom    ./Sources    
13.    Uitpakken Boom    ./Themes    
14.    Uitpakken Boom    ./mgal_data    
15.    Uitpakken Bestand    ./MGalleryItem.php

I run SMF 1.1.7  what could be wrong?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Burke ♞ Knight on December 25, 2008, 05:59:33 PM
Another mod may have edited the file wrong.
That sometimes happens.
You will have to manually install on that file:
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Omniverse on December 25, 2008, 07:45:36 PM
I have only found one other issue like this in my search, but no resolution.

I installed this and converted from an smf-lite gallery. Everything works great.

However....

I decided to change the default thumbnail/preview size. after words I went into maintenance to use the Regenerating thumbnails and previews section.

When attempting to regenerate any, it ticks once, counts 5 or whatever of xxx number of files. Does its refresh, but instead of continuing, kicks me out to the main smf admin page.
I have not been able to use any of the main maintenance functions because of this, which has led to some pics having different sized thumbnails.

Any idea on how I could do it manually perhaps, or maybe an idea on why I have this issue. There are approximately 200 items in the gallery.

SMF 1.1.7
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: MissyNL on December 25, 2008, 07:59:27 PM
Quote from: BurkeKnight on December 25, 2008, 05:59:33 PM
Another mod may have edited the file wrong.
That sometimes happens.
You will have to manually install on that file:
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)

ok.. thank you for the info...

any idea how i find out what is causing the problem? Or do you think i shouldn't even bother to look what it is...
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Blinker on December 25, 2008, 08:00:58 PM
Quote from: Dragooon on December 24, 2008, 04:48:27 AM
Your files are fine, I can't understand how you cannot view them directly but when they're embedded. Can you PM me a FTP account, as well as one admin account and the 2 test accounts?

EDIT : After some testing, it was fine for me. It didn't show me the thumbnail when I was trying to view the post with the thumbnail embedded. Although I was required to clear my cache before it actually show me the denied.png image(The actual image was cached at the URL, so it was showing me the old thumbnail, after clearing the cache it was fine again.)

Quote from: Nao 尚 on December 24, 2008, 05:40:44 AM
About the main/file bug... It's an oversight on my side. I simply forgot to rename one of my "file" changes to "main".

To be specific, I rewrote everything to use "file" instead of "main" because I thought it was good to put it in line with the rest (id_file, id_preview, id_thumb are all part of the media database... While "id_main" isn't.) "main" uses id_file so I figured, we should be using 'file' instead, so I could simply not have to test the field type before using it. Actually it didn't help much, because IF(id_file = 0, id_file, id_file) is a bit stupid (it always returns id_file, and makes a useless test in the query), so I thought I'd just go back to the test thing... And then I thought, this was the main reason for using "file" instead of "main", so I'll just go back to "main", in case someone used that function in a mod or something and specific "main".

Regarding the approval error. There are many ways to look at it. But for what it's worth, I think it'd be best to see your stuff in action or something, hey... Do you use a simple [smg id=xx] tag, or specific options in it?
Also, but I guess you already checked that, you need to make sure your cache is emptied. Sometimes I can only get a thumbnail to refresh by copying its URL, putitng it in my location bar, and then hitting Refresh (i.e. it doesn't refresh when right-clicking the picture and choosing "Reload image".)

Merry Christmas to all. I won't spend much time behind my monitor for a couple of days. Guess why. ;)

Guys, great news - it seems to be working. I don't know why it didn't before but I did a bunch more testing (I must've flushed my cache about 100 times) and now my non-admin test accounts are displaying the denied image. Yay! 8)

I've submitted a new test image to the gallery, left it unapproved and then embedded in a post with HTML and BBC and asked users to post their results. Everyone is getting the denied image. Awesome.

Great work both of you and thanks again for your help. I'm always happy to help on a bug hunt too. :P
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 25, 2008, 10:31:14 PM
Your welcome, I'm glad you got it to work. I think we should be getting 1.5.2 out soon.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: KahneFan on December 25, 2008, 11:42:35 PM
Quote from: Dragooon on December 25, 2008, 10:31:14 PM
I think we should be getting 1.5.2 out soon.

Any chance there will be a "new images" notification on the index page? Even if the "Gallery" button somehow shows Gallery {new} or something? It's just hard to tell from the index page when someone has added something to the gallery.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 26, 2008, 12:11:58 AM
1.5.2 will have no new features, only a few bug fixes.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: SgtMic on December 26, 2008, 02:06:45 AM
Sorry if I missed this in previous pages. I'm getting this error filling up the logs.


Undefined index: member
File: /home/xxxx/public_html/forums/Sources/MGallery-Sub.php
Line: 1470

Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 26, 2008, 03:24:43 AM
What is your SMF's version?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: magarto on December 26, 2008, 07:55:27 AM
THE MESSAGE BELOW, QUOTED, IS SOLVED:
QuoteI have more problems now... when i try to upload some files using the mass uploader, when the first file is uploaded it stops to upload more. I have tried some versions: 1.5 RC3 and 1.5.1 but it worked some time ago. I also thied to put: SecFilter... in htaccess but i received a 501 server error.
I am thinking on destroying database and files for mgallery but i would need to recover all albums from users... how do i proceed?
THANK YO VERY MUCH.

I am using firefox 3.1 beta 1 and OS X and SMF 2.0 beta 4 on a Apache server: salsamadrid.org
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: magarto on December 26, 2008, 09:02:34 AM
Solved: i do not why but my server do not let to create any folder when i uses the package manager on SMF. Then some mgallery folders where not created.
I have, instead, a bug in 1.5.1. When i open some videos (mp4) using SMG, i received a error. I think that it is due to my SMF is in UTF-8 and in spanish and there should be any bug: http://salsamadrid.org/mgallery/?sa=item;id=381
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: SgtMic on December 26, 2008, 10:48:24 AM
Quote from: Dragooon on December 26, 2008, 03:24:43 AM
What is your SMF's version?

Beta4
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Omniverse on December 26, 2008, 01:26:29 PM
Quote from: Omniverse on December 25, 2008, 07:45:36 PM
I have only found one other issue like this in my search, but no resolution.

I installed this and converted from an smf-lite gallery. Everything works great.

However....

I decided to change the default thumbnail/preview size. after words I went into maintenance to use the Regenerating thumbnails and previews section.

When attempting to regenerate any, it ticks once, counts 5 or whatever of xxx number of files. Does its refresh, but instead of continuing, kicks me out to the main smf admin page.
I have not been able to use any of the main maintenance functions because of this, which has led to some pics having different sized thumbnails.

Any idea on how I could do it manually perhaps, or maybe an idea on why I have this issue. There are approximately 200 items in the gallery.

SMF 1.1.7

I have determined this to be a browser issue, though not sure what...
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: yrral on December 26, 2008, 07:10:51 PM
Quote from: Nao 尚 on December 23, 2008, 04:17:04 AM

@yrral> right-click on the buttons that don't appear, and click Properties... You'll get the URL. Make sure the file is correctly uploaded there.

Nao, thanks for the reply...

I've uploaded the files in the Oxygen TP themes but I'm still getting the same problem.
It was also uploaded on the default theme folder... When I'm using the default theme it is working because it's not using button but my Oxygen TP uses icon/buttons.

When I checked the source code and the instruction that you gave me it was just pointing to nothing: http://www.domain name here.com/Themes/oxygen11final_tp/images

Which file should I edit to manually point the link to buttons?

Also, it's generating forum error log I guess due to the absence of the image.

8: Undefined index: image
File: /home/atimona/public_html/Themes/oxygen11final_tp/languages/MGallery.english.php (mgallery_admin_settings_above sub template - eval?)
Line: 604

and this error

8: Undefined index: lang
File: /home/atimona/public_html/Themes/oxygen11final_tp/languages/MGallery.english.php (mgallery_admin_settings_above sub template - eval?)
Line: 604

I don't have line 604 on my MGallery.english.php :o
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Lonewood on December 26, 2008, 07:45:41 PM
I am interested in using this mod.  I am running 1.17 with default template and Tiny Portal 0.98.  Currently using SMF Gallery which is fine for my purposes except that one of my users has requested that the image name be visible on the gallery page.  I cant see how to do this with SMF Gallery and dont really need the Pro version which seems to have this feature.

Is there any catch to removing SMF Gallery and installing SMF Media Gallery.  Will I have to reload all the images?  Tips?? 

I also have a tiny portal block which loads a random image from the gallery - would need to be able to do this also if I changed over to Media Gallery.

cheers
Leah
www.aussiesapphire.com.au/forum
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: SgtMic on December 26, 2008, 08:14:51 PM
On the mod link page is a converter you can use.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Speedbast on December 26, 2008, 08:58:43 PM
Hi,
thanks for your work and for the mod

I've a mistake, not with the gallery mod itself but....
i'm using smf 1.1.7, Sportal, and nneonneo shoutbox and of course media gallery 1.5

i would like to modify my shoutbox to add smiley
but if media gallery is instal, it's not working

this is the source code of the part who's not working

smileyPopupWindow.document.write('\n\t<head>\n\t\t<title>&Eacute;motic&ocirc;nes additionnels</title>\n\t\t<link rel="stylesheet" type="text/css" href="http://www.dreamforever.fr/Themes/Efsane_Atomic/style.css" />\n\t
<link rel="stylesheet" type="text/css" href="http://www.dreamforever.fr/Themes/default/mgallery/style.css" />
<link rel="stylesheet" type="text/css" href="http://www.dreamforever.fr/Themes/default/mgallery/hs.css" media="screen" />
<script type="text/javascript" src="http://www.dreamforever.fr/Themes/default/mgallery/highslide.js"></script>
<script type="text/javascript"><!-- // --><![CDATA[
hs.graphicsDir = 'http://www.dreamforever.fr/Themes/default/mgallery/hs/';
hs.lang = { loadingText: 'Chargement...', restoreTitle: 'Cliquez pour fermer, glissez pour déplacer' };
// ]]></script>

</head>');


instead of ..

smileyPopupWindow.document.write('\n\t<head>\n\t\t<title>&Eacute;motic&ocirc;nes additionnels</title>\n\t\t<link rel="stylesheet" type="text/css" href="http://www.dreamforever.fr/Themes/Efsane_Atomic/style.css" />\n\t</head>');


so the link for the popup doesn't work
i've tested my modification on a forum whithout media gallery and it works fine
do you have an idea for that ?

thanks for answer, sorry for my english :)
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Smoky "Rider" Blue on December 26, 2008, 09:35:51 PM
Nao, mark my issue solved.. when i "flipped" my clients site, it was a url causing the problem..

it will be fixed soon so thanks again you guys..  ;)
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 26, 2008, 09:53:40 PM
@Speedbast - Where does this happen?
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: yrral on December 26, 2008, 10:13:21 PM
Quote from: yrral on December 26, 2008, 07:10:51 PM
Quote from: Nao 尚 on December 23, 2008, 04:17:04 AM

@yrral> right-click on the buttons that don't appear, and click Properties... You'll get the URL. Make sure the file is correctly uploaded there.

Nao, thanks for the reply...

I've uploaded the files in the Oxygen TP themes but I'm still getting the same problem.
It was also uploaded on the default theme folder... When I'm using the default theme it is working because it's not using button but my Oxygen TP uses icon/buttons.

When I checked the source code and the instruction that you gave me it was just pointing to nothing: http://www.domain name here.com/Themes/oxygen11final_tp/images

Which file should I edit to manually point the link to buttons?

Also, it's generating forum error log I guess due to the absence of the image.

8: Undefined index: image
File: /home/atimona/public_html/Themes/oxygen11final_tp/languages/MGallery.english.php (mgallery_admin_settings_above sub template - eval?)
Line: 604

and this error

8: Undefined index: lang
File: /home/atimona/public_html/Themes/oxygen11final_tp/languages/MGallery.english.php (mgallery_admin_settings_above sub template - eval?)
Line: 604

I don't have line 604 on my MGallery.english.php :o

I've been trying to find the problem my self but to no avail... 

There's no other mods installed in my forum aside from the TinyPortal v0.9.8
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 26, 2008, 10:21:43 PM
I'll investigate, thank you for reporting
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Speedbast on December 26, 2008, 10:25:44 PM
@Dragoon it's on home page

the home page is Sportal mod, and the shout box is not instal in the index.template
but i did the same thing on another forum and it's work

you can login on my forum with test:testeur on http://www.dreamforever.fr

i can't click on the [plus] button at ths bottom of smiley list
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: yrral on December 26, 2008, 11:00:07 PM
Quote from: Dragooon on December 26, 2008, 10:21:43 PM
I'll investigate, thank you for reporting
Thanks... I'll wait for your reply
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: taha116 on December 27, 2008, 04:25:59 PM
Quote from: Dragooon on December 23, 2008, 11:34:08 PM
Try my fix, and make sure to clear your browser's cache.

EDIT : Or try this
$result = $mgalFunc['db_query'](($type == 'icon' ? '
SELECT f.id_file, f.filename, f.directory
FROM {db_prefix}mgallery_albums AS a
INNER JOIN {db_prefix}mgallery_files AS f ON (a.icon = f.id_file)
WHERE
a.id_album = {int:media_id}' . ($security_override || mGalAllowedTo('moderate') ? '' : '
AND (f.id_file < 5 OR {query_see_album})
AND (a.approved = 1 OR a.album_of = {int:user_id})')
: '
SELECT f.id_file, f.filename, f.directory
FROM {db_prefix}mgallery_media AS m
INNER JOIN {db_prefix}mgallery_files AS f ON (' . ($type != 'main' ? 'IF(m.id_' . $type . ' = 0, m.id_file, m.id_' . $type . ')'
: 'm.id_file') . ' = f.id_file)' . ($security_override || mGalAllowedTo('moderate') ? '
WHERE m.id_media = {int:media_id}' : '
LEFT JOIN {db_prefix}mgallery_albums AS a ON (a.id_album = f.id_album)
WHERE m.id_media = {int:media_id}
AND (f.id_file < 5 OR {query_see_album})
AND (m.approved = 1 OR m.id_member = {int:user_id})')) . '
LIMIT 1', array('media_id' => $mid, 'user_id' => $user_info['id']), __FILE__,__LINE__);


Tested and I am completely sure it works. Make sure to flush your cache.

WAs that a reply to me?  on this

[code]Uninstall Actions
Uninstall Actions "SMF Media Gallery":
Installing this package will perform the following actions:
Type Action Description
* 1. Execute Modification ./index.php Test successful
1. Replace ./index.php Test successful
* 2. Execute Modification ./Sources/Subs.php Test failed
1. Replace ./Sources/Subs.php Test failed
2. Replace ./Sources/Subs.php Test successful
3. Replace ./Sources/Subs.php Test successful
* 3. Execute Modification ./Sources/Admin.php Test successful
1. Replace ./Sources/Admin.php Test successful
* 4. Execute Modification ./Sources/Load.php Test failed
1. Replace ./Sources/Load.php Test failed
2. Replace ./Sources/Load.php Test successful
3. Replace ./Sources/Load.php Test failed
4. Replace ./Sources/Load.php Test successful
* 5. Execute Modification ./Sources/ManagePermissions.php Test successful
1. Replace ./Sources/ManagePermissions.php Test successful
2. Replace ./Sources/ManagePermissions.php Test successful
3. Replace ./Sources/ManagePermissions.php Test successful
* 6. Execute Modification ./Sources/Who.php Test successful
1. Replace ./Sources/Who.php Test successful
2. Replace ./Sources/Who.php Test successful
* 7. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
1. Add Before ./Themes/default/languages/Modifications.english.php Test successful
8. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
9. Execute Modification ./Themes/default/languages/Modifications.french.php Skipping file
* 10. Execute Modification ./Sources/Profile.php Test successful
1. Replace ./Sources/Profile.php Test successful
2. Add Before ./Sources/Profile.php Test successful
11. Delete File MGallery.php
12. Delete File MGallery-Sub.php
13. Delete File Subs-MGallery.php
14. Delete File MGallery-Admin.php
15. Delete File MGallery.template
16. Delete Tree mgallery
17. Delete Tree mgallery
18. Delete File MGallery.english.php
19. Delete File MGallery.french.php
20. Delete File MGalleryItem.php


No one answered me, Can someone do offer a manual edit for me or sumthing this was me trying to uninstall SMG 1.5 so i could get the latest.....[/code]

If not then consider this a bump Cuz ive been trying to get your attention evry couple pages but im getting NILL
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: dannyd on December 27, 2008, 10:01:10 PM
I did the upgrade and it seems to have gone fine.

How do I remove the upload code so people can't upload anything. I just want people to add youtube URL's.

Title: Re: SMF Media Gallery - 1.5.1 released
Post by: LinK187 on December 28, 2008, 01:39:16 AM
Quote from: dannyd on December 27, 2008, 10:01:10 PM
I did the upgrade and it seems to have gone fine.

How do I remove the upload code so people can't upload anything. I just want people to add youtube URL's.



Why bother with the gallery in the first place then? Just use aeva.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Dragooon on December 28, 2008, 02:42:30 AM
@taha116 - SMG is conflicting with another mod of yours, You will be needing to perform a manual installation.
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Speedbast on December 28, 2008, 04:58:39 PM
@Dragoon - i've found a fix for my forum

in Subs-Gallery.php, function mgalAddHeaders

before

if ($add_to_headers)
$context['html_headers'] .= $lightbox;
else
{
$temp = ob_get_contents();
if (function_exists('ob_clean'))
ob_clean();
else
{
ob_end_clean();
ob_start('ob_sessrewrite');
}
echo str_replace('</head>', $lightbox . '
</head>', $temp);

}


after

if ($add_to_headers)
$context['html_headers'] .= $lightbox;
else
{
$temp = ob_get_contents();
if (function_exists('ob_clean'))
ob_clean();
else
{
ob_end_clean();
ob_start('ob_sessrewrite');
}
if ($context['page_title'] != $context['forum_name'])
echo str_replace('</head>', $lightbox . '
</head>', $temp);
else
echo str_replace('</head>','</head>', $temp);

}


so this don't do anything on my home page
but i don't know if it's a good fix

Title: Re: SMF Media Gallery - 1.5.1 released
Post by: taha116 on December 28, 2008, 05:33:11 PM
Quote from: Dragooon on December 28, 2008, 02:42:30 AM
@taha116 - SMG is conflicting with another mod of yours, You will be needing to perform a manual installation.

I guessed so... Now I understand the basics of what im probably gona end up doing... Install it and then look for the arppopiate file then the section were the test failed and look for something that replaced what should be there and replace that with something that keeps both mods happy... But I can only pull of the steps till the last one if i have the time..

How about i install it and attach the failed files here and you edit them and attach them again?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on December 29, 2008, 08:21:25 AM
SMF Media Gallery 1.5.2 released!

Changelog :
* Exif data is now shown as a Highslide popup
* Highslide popups now match your current template's background
* Keywords mention is now hidden properly when none are found
+ Added subtask to Find Errors function, which will fix access groups for
  child albums whose parents have more restrictive access
! Album's folders were not getting deleted from mgal_data on album removal
! Users could see items through their embed links even if unapproved
! Fixed WYSIWYG support for item descriptions
! Fixed undefined index lang/image issues
! Edit wait time wasn't working as expected
! IE6 Javascript compatibility improvements
! Items were always being approved
* Item page layout cleanup
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: Nao 尚 on December 29, 2008, 09:01:00 AM
Quote from: KahneFan on December 25, 2008, 01:22:29 AM
/Sources/MGallery.php if it help anyone.

Thanks Dragoon!

BTW, any chance you could make it so we could show the media (all folders together) as a board on the index?

Example:

Sample Category
- Board 1...... 3 Post - 1 Topic
- Board 2...... 56 Post - 4 Topics
- Board 3...... 24 Posts - 3 Topics
- Media Gallery...... ## Files (or posts) - ## Folders (or topics)

And make it so the "On" lights up when there's new content? I think this would draw more people to the galleries, plus give an easy indicator to admin when there's new content.
These are features that have been asked only 6497 times in the past.
We will only consider them when the request count reaches 6500, so you can forget it for now.

Oh, and I'm back from my holidays, so I should be getting back to work in a week or so... I just need to finish implementing some stuff in Aeva and hopefully I'll be back on my feet on SMG too. (Plus, we need to release that v1.6 one day, or we'll be doomed to duplicate each and every fix we make to the code :P)
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: ke4obt on December 29, 2008, 09:45:53 AM
Here's 2 more votes (1 for Flip and 1 for me - Mickey). please, please, purty please??!!??
:D  he he he he he!! ROFLMAO!

Quote from: Nao 尚 on December 29, 2008, 09:01:00 AM
Quote from: KahneFan on December 25, 2008, 01:22:29 AM
/Sources/MGallery.php if it help anyone.

Thanks Dragoon!

BTW, any chance you could make it so we could show the media (all folders together) as a board on the index?

Example:

Sample Category
- Board 1...... 3 Post - 1 Topic
- Board 2...... 56 Post - 4 Topics
- Board 3...... 24 Posts - 3 Topics
- Media Gallery...... ## Files (or posts) - ## Folders (or topics)

And make it so the "On" lights up when there's new content? I think this would draw more people to the galleries, plus give an easy indicator to admin when there's new content.
These are features that have been asked only 6497 times in the past.
We will only consider them when the request count reaches 6500, so you can forget it for now.

Oh, and I'm back from my holidays, so I should be getting back to work in a week or so... I just need to finish implementing some stuff in Aeva and hopefully I'll be back on my feet on SMG too. (Plus, we need to release that v1.6 one day, or we'll be doomed to duplicate each and every fix we make to the code :P)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: ccraciun on December 30, 2008, 07:37:58 AM
Quote from: Dragooon on December 29, 2008, 08:21:25 AM
SMF Media Gallery 1.5.2 released!
..
Thanks for the update!
It worked fine from 1.5.1!
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: hansdampf on December 30, 2008, 09:26:57 AM
Hey...

Using SMF 2b4 there seems to be an issue with the EXIF metadata. When I go to a picture it just says

Exif Metadata
(6)

Looking at the logs it says:


8: Undefined index: mgallery_exif_entries
Datei: /xxx/Themes/default/MGallery.template.php (eval?)
Zeile: 339


Any ideas? (It used to work with 1.5)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on December 30, 2008, 09:44:37 AM
I believe it is due to a missing string in your translation, in 1.5.2 2 new strings were added. One is mgallery_exif_entries and other one is mgallery_exif_not_available.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: hansdampf on December 30, 2008, 10:34:30 AM
Quote from: Dragooon on December 30, 2008, 09:44:37 AM
I believe it is due to a missing string in your translation, in 1.5.2 2 new strings were added. One is mgallery_exif_entries and other one is mgallery_exif_not_available.

You're right - that fixed it. Thanks mate!  ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: afe on December 30, 2008, 01:15:42 PM
Quote from: afe on December 22, 2008, 07:30:15 PM
Quote from: Nao 尚 on December 22, 2008, 06:30:16 PM
Sapo> I received 3 other PMs at the same time, I simply missed yours (which was the first). That's 9 PMs in two days... lol...

afe> HTTP 50x = server error. Usually, this means your server is not "strong" enough to deal with something. Not enough memory, etc, or an infinite loop (but I'm confident we fixed all of these last month.)

So there's nothing I can do to get my gallery working? :(

Hey, you've still not replied back. Can you please tell me.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Smoky "Rider" Blue on December 30, 2008, 01:28:35 PM
QuoteI made a new album and when I went to it, I got "  The website is unable to display the webpage
HTTP 501/HTTP 505
   What you can try:
     Go back to the previous page.

     More information "

hey afe.. read this: http://support.microsoft.com/kb/811262
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: HellBent on December 30, 2008, 01:49:43 PM
Fantastic plug-in, thankyou very much.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: afe on December 30, 2008, 02:30:06 PM
Quote from: SmokyBlue on December 30, 2008, 01:28:35 PM
QuoteI made a new album and when I went to it, I got "  The website is unable to display the webpage
HTTP 501/HTTP 505
   What you can try:
     Go back to the previous page.

     More information "

hey afe.. read this: http://support.microsoft.com/kb/811262

Followed the steps and now I get "Method Not Implemented
GET to /index.php not supported.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."
Title: Re: SMF Media Gallery - 1.5.1 released
Post by: taha116 on December 30, 2008, 04:27:15 PM
Quote from: taha116 on December 28, 2008, 05:33:11 PM
Quote from: Dragooon on December 28, 2008, 02:42:30 AM
@taha116 - SMG is conflicting with another mod of yours, You will be needing to perform a manual installation.

I guessed so... Now I understand the basics of what im probably gona end up doing... Install it and then look for the arppopiate file then the section were the test failed and look for something that replaced what should be there and replace that with something that keeps both mods happy... But I can only pull of the steps till the last one if i have the time..

How about i install it and attach the failed files here and you edit them and attach them again?

Bump Can anyone possibly perform a manual edit for me?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on December 30, 2008, 04:33:45 PM
Quote from: taha116 on December 30, 2008, 04:27:15 PM
Quote from: taha116 on December 28, 2008, 05:33:11 PM
Quote from: Dragooon on December 28, 2008, 02:42:30 AM
@taha116 - SMG is conflicting with another mod of yours, You will be needing to perform a manual installation.

I guessed so... Now I understand the basics of what im probably gona end up doing... Install it and then look for the arppopiate file then the section were the test failed and look for something that replaced what should be there and replace that with something that keeps both mods happy... But I can only pull of the steps till the last one if i have the time..

How about i install it and attach the failed files here and you edit them and attach them again?

Bump Can anyone possibly perform a manual edit for me?

The manual install instructions are right below the download link. Just use note/word pad and use the ctrl-f function to find the "find" code, and then add/replace the specified code before/after/in place of the "find" code.

Back up each of the files that need to be modded and if $hit hits the fan, just copy the original files back in place. Out of all the things one must do to admin/dev a smf forum, this procedure is far from rocket science.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: afe on December 30, 2008, 05:05:44 PM
Quote from: afe on December 30, 2008, 02:30:06 PM
Quote from: SmokyBlue on December 30, 2008, 01:28:35 PM
QuoteI made a new album and when I went to it, I got "  The website is unable to display the webpage
HTTP 501/HTTP 505
   What you can try:
     Go back to the previous page.

     More information "

hey afe.. read this: http://support.microsoft.com/kb/811262

Followed the steps and now I get "Method Not Implemented
GET to /index.php not supported.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

Anyone please. :(
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on December 30, 2008, 05:18:20 PM
Quote from: afe on December 30, 2008, 05:05:44 PM
Anyone please. :(
How can I say that as simply as possible?

When I don't know something, or when I don't have time or willingness to give time on a problem, I tend not to answer. I'm afraid I'm a busy man.

I suppose this is the same for Dragooon. We have lifes to live. We're not paid for tech support. If you're having trouble with your particular implementation, read through the latest pages of the topic or some topics over at smf-media.com, maybe you'll find a solution. If you don't, and if you're not tech-savvy enough, just switch to another implementation. I know that SMF Gallery Lite isn't quite as feature-packed as SMG, and SMF Gallery Pro is very expensive, but there are other alternatives, like the Gallery2 bridge from oldiesmann which is quite okay I believe. (It's just that it's too complicated as a gallery itself, which is why I worked on my own gallery software.)

That's all I can say regarding our silence on some issues. It's pretty useless to bump the topic with a simple quote.

PS: it's a general comment. Regarding 50x server issues, an answer was already made earlier in the topic...
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: taha116 on December 30, 2008, 07:41:50 PM
Quote from: LinK187 on December 30, 2008, 04:33:45 PM
Quote from: taha116 on December 30, 2008, 04:27:15 PM
Quote from: taha116 on December 28, 2008, 05:33:11 PM
Quote from: Dragooon on December 28, 2008, 02:42:30 AM
@taha116 - SMG is conflicting with another mod of yours, You will be needing to perform a manual installation.

I guessed so... Now I understand the basics of what im probably gona end up doing... Install it and then look for the arppopiate file then the section were the test failed and look for something that replaced what should be there and replace that with something that keeps both mods happy... But I can only pull of the steps till the last one if i have the time..

How about i install it and attach the failed files here and you edit them and attach them again?

Bump Can anyone possibly perform a manual edit for me?

The manual install instructions are right below the download link. Just use note/word pad and use the ctrl-f function to find the "find" code, and then add/replace the specified code before/after/in place of the "find" code.

Back up each of the files that need to be modded and if $hit hits the fan, just copy the original files back in place. Out of all the things one must do to admin/dev a smf forum, this procedure is far from rocket science.

I can do a manual install or edit if it was to remove something simply however with this confliction It means that removing the coresponing general area will mean another mod will be broken... I will need to look inside the code wich is were I will need someone esle.... anyways ill try but if no dice I have to ask for help again
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: afe on December 30, 2008, 09:25:34 PM
Dude, how do I get my gallery to work??
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Smoky "Rider" Blue on December 30, 2008, 10:05:33 PM
you really need to check the chhmod for the files and folders on your site.. if you have issues with that or dont know how, search here and /or ask your host..

you need to make sure if you are using a custom theme that you have edited the files in the theme to reflect your mods.. need help with that, you can post a help wanted ad in that section here..

if you want to hire someone to ad the mod for your site you can include it there as well..

i do wish you good luck with this..  ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on December 31, 2008, 03:48:47 AM
Quote from: afe on December 30, 2008, 09:25:34 PM
Dude, how do I get my gallery to work??
Since when are we buddy-buddy? Do I know you?
Don't ever call me dude again.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Smoky "Rider" Blue on December 31, 2008, 07:03:15 AM
lol.. you dont surf Nao??

lol i hope that wasnt directed at me.. i dont have those kinds of body parts..  :P

but seriously afe, you will need to ask your host on this.. k??
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on December 31, 2008, 07:25:46 AM
Quote from: SmokyBlue on December 31, 2008, 07:03:15 AM
lol.. you dont surf Nao??
I don't surf. I don't even surf pages, I browse them. I try to stay away from water as much as I can.
(Casséééé !)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Chamaeleon on December 31, 2008, 08:27:36 AM
Fatal error, if I delete an album, after update to 1.5.2

Fatal error: require_once() [function.require]: Failed opening required '/Subs-Package.php' (include_path='.:/usr/local/lib/php') in /[...serverpfad].../Sources/MGallery-Admin.php on line 607

MGallery-Admin.php

old Part (1.5.1):

// Remove the directory
@rmdir($mgalSettings['data_dir_path'].'/'.$dir);


new Part (1.5.2):

// Remove the directory
require_once($sourcedir . '/Subs-Package.php');
deltree($mgalSettings['data_dir_path'] . '/' . $dir);


Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on December 31, 2008, 09:02:44 AM
Uh that doesn't make sense. Is that a Subs-Package.php in your Sources directory?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on December 31, 2008, 09:56:57 AM
Check that $sourcedir is correctly set in Settings.php, and not a hack or something...
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on December 31, 2008, 10:10:02 AM
Actually its my mistake, it seems I forgot to have $sourcedir in globals in 1.5 branch.

Find
global $mgalFunc, $context, $mgalSettings, $user_info, $scripturl;
Replace with
global $mgalFunc, $context, $mgalSettings, $user_info, $scripturl, $sourcedir;
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Chamaeleon on December 31, 2008, 10:29:05 AM
Thanks, it works now  :D
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Syndel on December 31, 2008, 12:16:00 PM
Hi, Dragooon
Moving the thread like I said I would.
Mmmm i have altered the string as you suggested and it looks like this...:

My forum still has two galleries listed on the menu.. one is yours, the other is the SMF Gallery. What am I doing wrong?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on December 31, 2008, 01:38:59 PM
Are you using caching? What language are you running in Admin > Server settings? Also please use code block rather then code.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Syndel on December 31, 2008, 02:53:20 PM
<?php
// Version: 2.0 Beta 4; Modifications

// Important! Before editing these language files please read the text at the top of index.english.php.

// Arcade start
// Arcade
$txt['arcade'] = 'Arcade';

// Admin
$txt['arcade_admin'] = 'Arcade';
$txt['arcade_manage_games'] = 'Games';
$txt['arcade_manage_games_list'] = 'List';
$txt['arcade_manage_games_install'] = 'Install';
$txt['arcade_manage_category'] = 'Categories';
$txt['arcade_manage_category_list'] = 'List';
$txt['arcade_manage_category_new'] = 'New';
$txt['arcade_settings'] = 'Settings';
$txt['arcade_settings_main'] = 'Main';
$txt['arcade_settings_permission'] = 'Permissions';
$txt['arcade_maintenance'] = 'Maintenance';
$txt['arcade_maintenance_main'] = 'Main';
$txt['arcade_maintenance_highscore'] = 'Highscore';

// Moderation Log
$txt['modlog_ac_arcade_install_game'] = 'Installed Game &quot;{game}&quot;';
$txt['modlog_ac_arcade_update_game'] = 'Updated Game &quot;{game}&quot;';
$txt['modlog_ac_arcade_delete_game'] = 'Deleted Game &quot;{game}&quot;';

// Profile
$txt['arcadeStats'] = 'Arcade Statistics';
$txt['arcadeChallenge'] = 'Arcade Arena';
$txt['sendArcadeChallenge'] = 'Send Challenge';
$txt['arcadeSettings'] = 'Arcade Settings';

// Arcade Admin Settings
$txt['arcade_admin_settings'] = 'Arcade Settings';
$txt['arcadeEnabled'] = 'Arcade Enabled';
$txt['arcadeArenaEnabled'] = 'Arena Enabled';
$txt['arcadeEnableFavorites'] = 'Allow users keep list of favorite games';
$txt['arcadeEnableRatings'] = 'Allow users to rate games';

$txt['arcadeCommentLen'] = 'Max Comment Length<div class="smalltext">(0 is unlimited)</div>';

$txt['gamesPerPage'] = 'Games per page';
$txt['matchesPerPage'] = 'Matches per page';
$txt['scoresPerPage'] = 'Scores per page';

$txt['arcadeGameInformationSide'] = 'Side of information box';
$txt['arcade_game_box_side_left'] = 'Left';
$txt['arcade_game_box_side_right'] = 'Right';

$txt['gamesUrl'] = 'Url to games';
$txt['gamesDirectory'] = 'Path to games directory';
$txt['arcadeGamecacheUpdate'] = 'Update Gamecache automatically';

$txt['arcadeCheckLevel'] = 'Cheating check mode';
$txt['arcade_check_level0'] = 'Basic (Warning only)';
$txt['arcade_check_level1'] = 'Default (Recommended)';
$txt['arcade_check_level2'] = 'Default plus (Not recommended)';

$txt['arcadeMaxScores'] = 'Maximum scores (per player per game)';

// Arcade Admin permissions
$txt['arcadePermissionMode'] = 'Permission mode';
$txt['arcade_permission_mode_none'] = 'None';
$txt['arcade_permission_mode_category'] = 'Category only';
$txt['arcade_permission_mode_game'] = 'Game only';
$txt['arcade_permission_mode_and_both'] = 'Category and game';
$txt['arcade_permission_mode_or_both'] = 'Category or game';
$txt['arcadePostPermission'] = 'Enable post count / post per day check';
$txt['arcadePostsPlay'] = 'Cumulative post needed to play';
$txt['arcadePostsLastDay'] = 'Posts in last 24 hours needed to play';
$txt['arcadePostsPlayAverage'] = 'Average post per day needed to play';

$txt['perm_arcade_view'] = 'View Arcade';
$txt['perm_arcade_play'] = 'Play in Arcade';
$txt['perm_arcade_submit'] = 'Save scores';

// Permission names and help
$txt['permissiongroup_arcade'] = 'Arcade';
$txt['permissionname_arcade_view'] = 'View Arcade';
$txt['permissionhelp_arcade_view'] = 'May access Arcade and use basic features like search and view highscores';
$txt['permissionname_arcade_play'] = 'Play on Arcade';
$txt['permissionhelp_arcade_play'] = 'Allows member to play, on Arcade, games which they have rights to';
$txt['permissionname_arcade_admin'] = 'Administrate arcade';
$txt['permissionhelp_arcade_admin'] = 'Arcade Administrator can Install/Edit/Delete game, Delete scores and edit settings for Arcade';
$txt['permissionname_arcade_submit'] = 'Save scores';
$txt['permissionhelp_arcade_submit'] = 'Allows users to save their scores.';
$txt['permissionname_arcade_comment'] = 'Edit Comments';
$txt['permissionhelp_arcade_comment'] = 'Allows user to edit comments, ';
$txt['permissionname_arcade_comment_own'] = 'Own';
$txt['permissionname_arcade_comment_any'] = 'Any';
$txt['permissionname_arcade_user_stats'] = 'View User Statistics';
$txt['permissionname_arcade_user_stats_own'] = 'Own';
$txt['permissionname_arcade_user_stats_any'] = 'Any';
$txt['permissionname_arcade_view_arena'] = 'View Arena';
$txt['permissionname_arcade_create_match'] = 'Create a new match on Arena';
$txt['permissionname_arcade_join_match'] = 'Join match on Arena';
$txt['permissionname_arcade_join_invite_match'] = 'Join match on Arena when invited';
$txt['permissionname_arcade_edit_settings'] = 'Edit Arcade Settings';
$txt['permissionname_arcade_edit_settings_own'] = 'Own';
$txt['permissionname_arcade_edit_settings_any'] = 'Any';

// Simple permission gropus
$txt['permissiongroup_simple_arcade'] = 'Use Arcade';
$txt['permissiongroup_simple_arcade_moderate'] = 'Moderate Arcade';

// Simple permission names
$txt['permissionname_simple_arcade_comment_own'] = 'Edit their own comments';
$txt['permissionname_simple_arcade_comment_any'] = 'Edit any comment';
$txt['permissionname_simple_arcade_user_stats_own'] = 'View their own statistics';
$txt['permissionname_simple_arcade_user_stats_any'] = 'View other people\'s statistics';
$txt['permissionname_simple_arcade_edit_settings_own'] = 'Edit their own Arcade Settings';
$txt['permissionname_simple_arcade_edit_settings_any'] = 'Edit other people\'s Arcade Settings';

// Errors if they can't do something
$txt['cannot_arcade_play'] = 'You are not allowed to play games!';
$txt['cannot_arcade_view'] = 'You are not allowed to access arcade.';
$txt['cannot_arcade_comment_own'] = 'You are not allowed to comment';
$txt['cannot_arcade_user_stats_any'] = 'You are not allowed to view statistics of any user';
$txt['cannot_arcade_user_stats_own'] = 'You are not allowed to view your statistics';

// Who's online
$txt['who_arcade'] = 'Viewing Arcade index';
$txt['who_arcade_play'] = 'Playing <a href="' $scripturl '?action=arcade;sa=play;game=%d">%s</a> on Arcade';
$txt['who_arcade_highscore'] = 'Viewing highscores of <a href="' $scripturl '?action=arcade;sa=play;game=%d">%s</a> on Arcade';

// Help
$txt['arcade_max_scores_help'] = 'Maximum scores that will be stored per member. (0 means unlimited)';
$txt['arcade_membergroups_help'] = 'These groups will be allowed to play and view highscores. Others will not see this game, only used if permission mode will use game permissions.';
// Arcade end
// Begin SMF Staff Page Text Strings
$txt['smfstaff_stafflist'] = 'Staff List';
$txt['smfstaff_admin'] = 'Staff Configuration';

$txt['permissionname_view_stafflist'] = 'View Staff List';
$txt['permissionhelp_view_stafflist'] = 'Staff List shows all members on your Staff. You can change which member groups are shown by going to Layout and Options and look for SMF Staff filter. This permission allows you to toggle who can view the staff list.';
$txt['cannot_view_stafflist'] = 'You can not view the staff list.';


// Begin SMF Articles Text Strings
$txt['smfarticles_menu'] = 'Articles';
$txt['smfarticles_admin'] = 'Articles Configuration';

$txt['smfarticles_articlessettings'] = 'Settings';
$txt['smfarticles_approvearticles'] = 'Approve Articles';
$txt['smfarticles_form_approvecomments'] = 'Approve Comments';
$txt['smfarticles_catpermlist'] = 'Category Permission List';
$txt['smfarticles_txt_import'] = 'Import';

$txt['permissiongroup_smfarticles'] = 'SMF Articles';

$txt['permissionname_view_articles'] = 'View Articles';
$txt['permissionhelp_view_articles'] = 'Sets if the user can view the articles.';
$txt['cannot_view_articles'] = 'You can not view the articles page.';

$txt['permissionname_add_articles'] = 'Add Article';
$txt['permissionhelp_add_articles'] = 'If the user is allowed to submit articles';

$txt['cannot_add_articles'] = 'You can not add articles.';
$txt['permissionname_edit_articles'] = 'Edit own Articles';
$txt['permissionhelp_edit_articles'] = 'If the user is allowed to edit articles';

$txt['cannot_edit_articles'] = 'You can not edit articles.';
$txt['permissionname_delete_articles'] = 'Delete own Articles';
$txt['permissionhelp_delete_articles'] = 'If the user is allowed to delete articles';
$txt['cannot_delete_articles'] = 'You can not delete articles.';

$txt['permissionname_articles_comment'] = 'Leave Comments';
$txt['permissionhelp_articles_comment'] = 'Allows the user to leave comments on an article.';
$txt['cannot_articles_comment'] = 'You are not allowed to leave comments.';


$txt['permissionname_articles_auto_approve'] = 'Articles Auto Approved';
$txt['permissionhelp_articles_auto_approve'] = 'If the users articles are auto approved when submitted.';

$txt['permissionname_articles_autocomment'] = 'Auto Approve Comments';
$txt['permissionhelp_articles_autocomment'] = 'Comments do not need to wait for approval.';

$txt['permissionname_rate_articles'] = 'Rate Articles';
$txt['permissionhelp_rate_articles'] = 'If the user is allowed to rate articles';
$txt['cannot_rate_articles'] = 'You are not allowed to rate articles.';

$txt['permissionname_articles_admin'] = 'Admin Articles';
$txt['permissionhelp_articles_admin'] = 'User can manage the articles';
$txt['cannot_articles_admin'] = 'You are not allowed to manage the articles.';
// END SMF Articles Strings         
// Begin Download System Text Strings
$txt['downloads_menu'] = 'Downloads';
$txt['downloads_admin'] = 'Downloads Configuration';
$txt['downloads_text_settings'] = 'Settings';

$txt['downloads_form_approvedownloads'] = 'Approve Downloads';
$txt['downloads_form_reportdownloads'] = 'Reported Downloads';
$txt['downloads_form_approvecomments'] = 'Approve Comments';
$txt['downloads_filespace'] = 'File Space Manager';
$txt['downloads_text_catpermlist2'] = 'Category Permissions';

// Permissions
$txt['permissiongroup_downloads'] = 'Downloads System';

$txt['permissionname_downloads_view'] = 'View Downloads';
$txt['permissionhelp_downloads_view'] = 'Allows the user to view the Downloads';
$txt['cannot_downloads_view'] = 'You are not allowed to view the Downloads';

$txt['permissionname_downloads_add'] = 'Add Download';
$txt['permissionhelp_downloads_add'] = 'Allows the user to add a download.';
$txt['cannot_downloads_add'] = 'You are not allowed to add a download.';

$txt['permissionname_downloads_edit'] = 'Edit own Download';
$txt['permissionhelp_downloads_edit'] = 'Allows the user to edit their own download.';
$txt['cannot_downloads_edit'] = 'You are not allowed to edit that download';

$txt['permissionname_downloads_delete'] = 'Delete own Download';
$txt['permissionhelp_downloads_delete'] = 'Allows the user to delete their own download.';
$txt['cannot_downloads_delete'] = 'You are not allowed to delete that download.';

$txt['permissionname_downloads_ratefile'] = 'Rate Downloads';
$txt['permissionhelp_downloads_ratefile'] = 'Allows the user to rate a file.';
$txt['cannot_downloads_ratefile'] = 'You are not allowed to rate that file.';

$txt['permissionname_downloads_editcomment'] = 'Edit own Comment';
$txt['permissionhelp_downloads_editcomment'] = 'Allows the user to edit their own comments.';
$txt['cannot_downloads_editcomment'] = 'You are not allowed to edit that comment.';

$txt['permissionname_downloads_comment'] = 'Leave Comments';
$txt['permissionhelp_downloads_comment'] = 'Allows the user to leave comments on a download.';
$txt['cannot_downloads_comment'] = 'You are not allowed to leave comments.';

$txt['permissionname_downloads_report'] = 'Report Pictures/Comments';
$txt['permissionhelp_downloads_report'] = 'Allows the user to report downloads and comments.';
$txt['cannot_downloads_report'] = 'You are not allowed to report content.';

$txt['permissionname_downloads_autocomment'] = 'Auto Approve Comments';
$txt['permissionhelp_downloads_autocomment'] = 'Comments do not need to wait for approval.';

$txt['permissionname_downloads_autoapprove'] = 'Auto Approve Downloads';
$txt['permissionhelp_downloads_autoapprove'] = 'Downloads do not need to wait for approval.';


$txt['permissionname_downloads_manage'] = 'Admin Download System';
$txt['permissionhelp_downloads_manage'] = 'Allows the user to add/delete/edit all catagories. Delete Comments, Delete Downloads, Approve Downloads';
$txt['cannot_downloads_manage'] = 'You are not allowed to manage the downloads.';

// END Download System Text Strings         


// ---- Begin modification - nneonneo's Shoutbox ----
$txt['yshout_shoutbox'] = 'Shout Box';
$txt['yshout_loading'] = '...loading shoutbox...';
$txt['yshout_rp_banned'] = "Sorry, you've been banned from the shoutbox.";
$txt['yshout_no_guests'] = 'Sorry, you must be logged in to use the shoutbox!';
$txt['yshout_ban_conf'] = 'Ban Confirmation';
$txt['yshout_select_mode'] = 'Select Ban Mode:';
$txt['yshout_rp'] = 'Reading and Posting';
$txt['yshout_p'] = 'Posting only';
$txt['yshout_error'] = 'ERROR: ';
$txt['yshout_no_user'] = 'User not found.';
$txt['yshout_del_success'] = 'Shout deleted.';
$txt['yshout_no_action'] = 'Nothing to do.';
$txt['yshout_history'] = 'History';
$txt['yshout_commands'] = 'Commands';
$txt['yshout_exthistory'] = 'ExtendedHistory';
$txt['yshout_hide'] = 'Hide';
$txt['yshout_show'] = 'Show';
$txt['yshout_admlinks'] = 'AdminLinks';
$txt['yshout_return'] = 'ReturnToShoutbox';
$txt['yshout_p_banned'] = 'You are banned from posting.';
$txt['yshout_banned'] = 'Banned';
$txt['yshout_shout_button'] = 'Shout!';
$txt['yshout_banlist_caption'] = 'Shout Box Bans (click to unban)';
$txt['yshout_ip_bans'] = 'IP Bans for ';
$txt['yshout_username_bans'] = 'Username Bans for ';
$txt['yshout_ban_type_error'] = 'use /banuser or /banip!';
$txt['yshout_ban_mode_error'] = 'Must have mode argument.';
$txt['yshout_imp_slash_error'] = 'Prefix shout with "/" (slash character)! See "/help impersonate" for details.';
$txt['yshout_imp_uname_error'] = 'No username given!';
$txt['yshout_imp_max4_error'] = 'Maximum 4 arguments!';
$txt['yshout_cmd_reference'] = 'Command Reference';
$txt['yshout_cmdlist'] = array(
               
'/help'      =>   ' [command]: Help on a command, or all if no command is specified.',
               
'/return'   =>   ': Go back to the Shout Box.',
               
'/pi'      =>   ' [digits]: What is the value of pi to the nth digit?',
               
'/me'      =>   ' &lt;message&gt;: Emotes the message (e.g. <span class="meaction"> * Nathaniel likes dogs</span>)');
$txt['yshout_cmdlistadmin'] = array(
                  
'/clear'      =>   ': Completely empty the Shout Box.',
                  
'/help'         =>   ' [command]: Help on a command, or all if no command is specified.',
                  
'/return'      =>   ': Go back to the Shout Box.',
                  
'/banlist'      =>   ': List all bans currently in place. Unban the users by clicking on their names.',
                  
'/banuser'      =>   ' &lt;mode&gt; &lt;username&gt;: Ban a user by name. You should use the user\'s real username, otherwise the ban can be evaded. Mode can be "u" to unban, "rp" for read and post bans, or "p" for a post ban.',
                  
'/banip'      =>   ' &lt;mode&gt; &lt;IP&gt;: Ban a user by IP. Mode can be "u" to unban, "rp" for read and post bans, or "p" for a post ban.',
                  
'/impersonate'   =>   ' &lt;user&gt; [userlevel] [ip] [userid] /[shout text]: Impersonate a user. Shout text must be prefixed by a "/" or else it will fail.<blockquote><div>
                  &lt;user&gt;: Username to use<br />
                  [userlevel]: User Level to use. 0=normal, 1=mod, 2=admin<br />
                  [ip]: IP address to use, as 1.2.3.4<br />
                  [userid]: User ID from forum, to fix profile link</div></blockquote>'
,
                  
'/lock'         =>   ' &lt;message&gt;: Lock the shoutbox for maintenance with the specified message.',
                  
'/unlock'      =>   ': Release the shoutbox from maintenance.');
$txt['yshout_maintenance'] = 'Locked';
$txt['yshout_lock_arg_error'] = 'You need to specify a reason for maintenance!';
$txt['yshout_lock_changed'] = 'Changed maintenance reason to "%s".';
$txt['yshout_lock_success'] = 'Locked shoutbox for maintenance with reason "%s".';
$txt['yshout_unlock_already'] = 'Failed to unlock: shoutbox isn\'t locked!';
$txt['yshout_unlock_success'] = 'Successfully unlocked shoutbox.';
$txt['yshout_no_posting'] = 'Sorry, you cannot post to the shoutbox.';
$txt['yshout_smilies'] = "Smilies";
// Permissions
$txt['permissiongroup_yshout'] = 'Shoutbox';
$txt['permissionname_yshout_view'] = 'View shoutbox';
$txt['permissionname_yshout_post'] = 'Post in shoutbox';
$txt['permissionname_yshout_moderate'] = 'Moderate shoutbox';
$txt['permissionhelp_yshout_view'] = 'This permission allows access to the shoutbox. If it is enabled, users will see the shoutbox and the chats in it.';
$txt['permissionhelp_yshout_post'] = 'This permission allows users to post messages to the shoutbox. If it is disabled, users cannot enter any messages.';
$txt['permissionhelp_yshout_moderate'] = 'If this permission is set, users will be allowed to moderate the shoutbox -- deleting, banning and clearing among other features.';
$txt['permissiongroup_simple_yshout'] = 'Shoutbox';
// ---- End modification - nneonneo's Shoutbox ----
$txt['enable_spiderAccess'] = 'Enable spider access';
$txt['enabled_spider'] = 'The spiders,which should be able to browse the site <br /><i> (As an example,for the spiders <b><font color="red">google and yahoo</font></b> you should write google,yahoo) ';


$txt['setting_cal_bdays_for_index'] = 'Days in advance to show birthdays';
//Begin SMF Gallery Text Strings
$txt['smfgallery_title'] = 'Gallery For SMF';
$txt['smfgallery_menu'] = 'Gallery';
$txt['smfgallery_version'] = '2.0 Lite';
$txt['smfgallery_admin'] = 'Gallery Configuration';

//Permissions
$txt['permissiongroup_smfgallery'] = 'SMF Gallery';
$txt['permissiongroup_simple_smfgallery'] = 'Use SMF Gallery.';

$txt['permissionname_smfgallery_view'] = 'View SMF Gallery';
$txt['permissionhelp_smfgallery_view'] = 'Allows the user to view the Gallery';
$txt['cannot_smfgallery_view'] = 'You are not allowed to view the Gallery';

$txt['permissionname_smfgallery_add'] = 'Add Picture';
$txt['permissionhelp_smfgallery_add'] = 'Allows the user to add a picture.';
$txt['cannot_smfgallery_add'] = 'You are not allowed to add a picture.';

$txt['permissionname_smfgallery_edit'] = 'Edit own Picture';
$txt['permissionhelp_smfgallery_edit'] = 'Allows the user to edit a picture.';
$txt['cannot_smfgallery_edit'] = 'You are not allowed to edit a picture.';

$txt['permissionname_smfgallery_delete'] = 'Delete own Picture';
$txt['permissionhelp_smfgallery_delete'] = 'Allows the user to delete a picture.';
$txt['cannot_smfgallery_delete'] = 'You are not allowed to delete a picture.';

$txt['permissionname_smfgallery_comment'] = 'Leave Comments';
$txt['permissionhelp_smfgallery_comment'] = 'Allows the user to leave comments on a picture.';
$txt['cannot_smfgallery_comment'] = 'You are not allowed to leave comments.';

$txt['permissionname_smfgallery_report'] = 'Report Pictures/Comments';
$txt['permissionhelp_smfgallery_report'] = 'Allows the user to report pictures and comments.';
$txt['cannot_smfgallery_report'] = 'You are not allowed to report content.';

$txt['permissionname_smfgallery_autoapprove'] = 'Auto Approve Pictures';
$txt['permissionhelp_smfgallery_autoapprove'] = 'Pictures do not need to wait for approval.';

$txt['permissionname_smfgallery_manage'] = 'Manage Gallery';
$txt['permissionhelp_smfgallery_manage'] = 'Allows the user to add/delete/edit all catagories. Delete Comments, Delete Pictures, Approve Pictures';
$txt['cannot_smfgallery_manage'] = 'You are not allowed to manage gallery.';


$txt['gallery_form_managecats'] = 'Manage Categories';
$txt['gallery_form_approveimages'] = 'Approve Images';
$txt['gallery_form_reportimages'] = 'Reported Images';
$txt['gallery_text_settings'] = 'Settings';

//END SMF Gallery Text Strings   


// Begin SMFShop code
$txt['shop_menu_button'] = 'Shop';
$txt['shop_profile_credits'] = 'Credits';
$txt['shop_display_view_inventory'] = 'View Inventory';
$txt['shop_display_send_money'] = 'Send Money To';
// End SMFShop code
$txt['bookmarks'] = 'My Bookmarks';
$txt['bookmark_list'] = 'Bookmarks';
$txt['bookmark_list_empty'] = 'You don\'t have any bookmarks at the moment. Add one by clicking \'Add bookmark\' in topics.';
$txt['bookmark_open_window'] = 'Open in new window';
$txt['bookmark_delete'] = 'Delete selected bookmarks';
$txt['bookmark_delete_success'] = '%1$s bookmarks were deleted successfully!';
$txt['bookmark_delete_failure'] = 'Not all bookmarks could be deleted.';
$txt['bookmark_add'] = 'Add bookmark';
$txt['bookmark_add_success'] = 'The topic was successfully added to your bookmarks!';
$txt['bookmark_add_exists'] = 'This topic is already listed in your bookmarks!';
$txt['bookmark_add_failed'] = 'Failed to add the topic to your bookmarks.';
$txt['permissionname_make_bookmarks'] = 'Create bookmarks for topics';
$txt['cannot_make_bookmarks'] = 'Sorry, you don\'t have permission to make bookmarks.';

$txt['contact'] = 'contact';
$txt['contact_form_default_dns_check'] = 'domain must have valid A or MX record';
$txt['contact_form_default_email_sender'] = 'Sender email address if none provided:';
$txt['contact_form_default_guest_access'] = 'no guest access';
$txt['contact_form_default_member_access'] = 'no member access';
$txt['contact_form_default_name'] = 'Sender name if none provided:';
$txt['contact_form_default_name_default'] = 'Anonymous';
$txt['contact_form_default_require_email'] = 'use email address settings below';
$txt['contact_form_default_require_name'] = 'use sender name settings below';
$txt['contact_form_default_require_subject'] = 'use subject line settings below';
$txt['contact_form_default_subject'] = 'Subject line if none provided:';
$txt['contact_form_default_subject_default'] = '(no subject)';
$txt['contact_form_default_tab_label'] = 'CONTACT';
$txt['contact_form_dest_email_addr'] = 'Send contact form replies to this email address:';
$txt['contact_form_display_title'] = 'Contact form page title:';
$txt['contact_form_enable_guest_access'] = 'Allow guest access:';
$txt['contact_form_enable_member_access'] = 'Allow member access:';
$txt['contact_form_error_invalid_email'] = 'Invalid email address entered.';
$txt['contact_form_error_no_email'] = 'No email address entered.';
$txt['contact_form_error_no_message'] = 'No message entered.';
$txt['contact_form_error_no_name'] = 'No name entered.';
$txt['contact_form_error_no_subject'] = 'No subject entered.';
$txt['contact_form_error_unable_to_send'] = 'Send mail failed. We were unable to send your message';
$txt['contact_form_field_optional'] = '(optional)';
$txt['contact_form_field_optional_email'] = '(if you want a reply)';
$txt['contact_form_field_required'] = '(required)';
$txt['contact_form_label_default'] = 'default: ';
$txt['contact_form_label_edit'] = '[edit]';
$txt['contact_form_label_email'] = 'Email ';
$txt['contact_form_label_ip'] = "\r\n\r\n-- \r\nIP: ";
$txt['contact_form_label_message'] = 'Message ';
$txt['contact_form_label_name'] = 'Name ';
$txt['contact_form_label_rdns'] = "\r\nrDNS: ";
$txt['contact_form_label_sender'] = "\r\nSender: ";
$txt['contact_form_label_status_email'] = 'Email: ';
$txt['contact_form_label_status_name'] = 'Name: ';
$txt['contact_form_label_status_separator'] = "------\r\n\r\n";
$txt['contact_form_label_status_subject'] = 'Subject: ';
$txt['contact_form_label_subject'] = 'Subject ';
$txt['contact_form_label_submit_button'] = 'Send Message';
$txt['contact_form_label_unchecked'] = 'unchecked: ';
$txt['contact_form_label_verification'] = 'Verification ';
$txt['contact_form_message_sent'] = 'Message sent. Thank you for your comments.';
$txt['contact_form_mods_cat'] = 'Contact Form';
$txt['contact_form_require_email'] = 'Require email address:';
$txt['contact_form_require_name'] = 'Require sender name:';
$txt['contact_form_require_subject'] = 'Require subject line:';
$txt['contact_form_result_error'] = 'Error';
$txt['contact_form_result_message_sent'] = 'Message Sent';
$txt['contact_form_result_send_mail_failed'] = 'Send Mail Failed';
$txt['contact_form_sender_email_dont_use_form'] = 'Don\'t use contact form email address as sender email address:';
$txt['contact_form_sender_email_dont_use_form_default'] = 'use email address from form if provided';
$txt['contact_form_sender_is_guest'] = 'guest';
$txt['contact_form_sender_name_dont_use_form'] = 'Don\'t use contact form name as sender name:';
$txt['contact_form_sender_name_dont_use_form_default'] = 'use name from form if provided';
$txt['contact_form_sender_subject_dont_use_form'] = 'Don\'t use contact form subject line as sender subject line:';
$txt['contact_form_sender_subject_dont_use_form_default'] = 'use subject line from form if provided';
$txt['contact_form_skip_dns_check'] = 'Skip sender email address domain record check:';
$txt['contact_form_subject_prefix'] = 'Subject line optional prefix:';
$txt['contact_form_subject_prefix_default'] = 'no prefix';
$txt['contact_form_tab_label'] = 'Contact form tab label:';
$txt['contact_form_title']='Contact Form';

$txt['contact'] = 'contact';
$txt['contact_form_default_dns_check'] = 'domain must have valid A or MX record';
$txt['contact_form_default_email_sender'] = 'Sender email address if none provided:';
$txt['contact_form_default_guest_access'] = 'no guest access';
$txt['contact_form_default_member_access'] = 'no member access';
$txt['contact_form_default_name'] = 'Sender name if none provided:';
$txt['contact_form_default_name_default'] = 'Anonymous';
$txt['contact_form_default_require_email'] = 'use email address settings below';
$txt['contact_form_default_require_name'] = 'use sender name settings below';
$txt['contact_form_default_require_subject'] = 'use subject line settings below';
$txt['contact_form_default_subject'] = 'Subject line if none provided:';
$txt['contact_form_default_subject_default'] = '(no subject)';
$txt['contact_form_default_tab_label'] = 'CONTACT';
$txt['contact_form_dest_email_addr'] = 'Send contact form replies to this email address:';
$txt['contact_form_display_title'] = 'Contact form page title:';
$txt['contact_form_enable_guest_access'] = 'Allow guest access:';
$txt['contact_form_enable_member_access'] = 'Allow member access:';
$txt['contact_form_error_invalid_email'] = 'Invalid email address entered.';
$txt['contact_form_error_no_email'] = 'No email address entered.';
$txt['contact_form_error_no_message'] = 'No message entered.';
$txt['contact_form_error_no_name'] = 'No name entered.';
$txt['contact_form_error_no_subject'] = 'No subject entered.';
$txt['contact_form_error_unable_to_send'] = 'Send mail failed. We were unable to send your message';
$txt['contact_form_field_optional'] = '(optional)';
$txt['contact_form_field_optional_email'] = '(if you want a reply)';
$txt['contact_form_field_required'] = '(required)';
$txt['contact_form_label_default'] = 'default: ';
$txt['contact_form_label_edit'] = '[edit]';
$txt['contact_form_label_email'] = 'Email ';
$txt['contact_form_label_ip'] = "\r\n\r\n-- \r\nIP: ";
$txt['contact_form_label_message'] = 'Message ';
$txt['contact_form_label_name'] = 'Name ';
$txt['contact_form_label_rdns'] = "\r\nrDNS: ";
$txt['contact_form_label_sender'] = "\r\nSender: ";
$txt['contact_form_label_status_email'] = 'Email: ';
$txt['contact_form_label_status_name'] = 'Name: ';
$txt['contact_form_label_status_separator'] = "------\r\n\r\n";
$txt['contact_form_label_status_subject'] = 'Subject: ';
$txt['contact_form_label_subject'] = 'Subject ';
$txt['contact_form_label_submit_button'] = 'Send Message';
$txt['contact_form_label_unchecked'] = 'unchecked: ';
$txt['contact_form_label_verification'] = 'Verification ';
$txt['contact_form_message_sent'] = 'Message sent. Thank you for your comments.';
$txt['contact_form_mods_cat'] = 'Contact Form';
$txt['contact_form_require_email'] = 'Require email address:';
$txt['contact_form_require_name'] = 'Require sender name:';
$txt['contact_form_require_subject'] = 'Require subject line:';
$txt['contact_form_result_error'] = 'Error';
$txt['contact_form_result_message_sent'] = 'Message Sent';
$txt['contact_form_result_send_mail_failed'] = 'Send Mail Failed';
$txt['contact_form_sender_email_dont_use_form'] = 'Don\'t use contact form email address as sender email address:';
$txt['contact_form_sender_email_dont_use_form_default'] = 'use email address from form if provided';
$txt['contact_form_sender_is_guest'] = 'guest';
$txt['contact_form_sender_name_dont_use_form'] = 'Don\'t use contact form name as sender name:';
$txt['contact_form_sender_name_dont_use_form_default'] = 'use name from form if provided';
$txt['contact_form_sender_subject_dont_use_form'] = 'Don\'t use contact form subject line as sender subject line:';
$txt['contact_form_sender_subject_dont_use_form_default'] = 'use subject line from form if provided';
$txt['contact_form_skip_dns_check'] = 'Skip sender email address domain record check:';
$txt['contact_form_subject_prefix'] = 'Subject line optional prefix:';
$txt['contact_form_subject_prefix_default'] = 'no prefix';
$txt['contact_form_tab_label'] = 'Contact form tab label:';
$txt['contact_form_title']='Contact Form';

// SMF Media Gallery extra strings
$txt['mgallery_gallery'] = 'Media';
$txt['mgallery_profile_sum'] = 'Summary';
$txt['mgallery_view_items'] = 'View items';
$txt['mgallery_view_coms'] = 'View comments';
$txt['mgallery_gotolink'] = 'More details...';
$txt['permissiongroup_mgallery'] = 'SMF Media Gallery';
$txt['permissiongroup_simple_mgallery'] = 'SMF Media Gallery';
$txt['permissionname_mgallery_access'] = 'Access Gallery';
$txt['permissionname_mgallery_moderate'] = 'Moderate Gallery';
$txt['permissionname_mgallery_manage'] = 'Administrate Gallery';
$txt['permissionname_mgallery_access_unseen'] = 'Access unseen area';
$txt['permissionname_mgallery_search'] = 'Search in Gallery';
$txt['permissionname_mgallery_download_item'] = 'Download items';
$txt['permissionname_mgallery_add_user_album'] = 'Add User Albums';
$txt['permissionname_mgallery_auto_approve_albums'] = 'Auto-approve User Albums';
$txt['permissionname_mgallery_add_videos'] = 'Add videos';
$txt['permissionname_mgallery_add_audios'] = 'Add audio files';
$txt['permissionname_mgallery_add_images'] = 'Add pictures';
$txt['permissionname_mgallery_rate_items'] = 'Rate items';
$txt['permissionname_mgallery_edit_own_com'] = 'Edit own comments';
$txt['permissionname_mgallery_report_com'] = 'Report comment';
$txt['permissionname_mgallery_edit_own_item'] = 'Edit own items';
$txt['permissionname_mgallery_comment'] = 'Comment in items';
$txt['permissionname_mgallery_report_item'] = 'Report items';
$txt['permissionname_mgallery_auto_approve_com'] = 'Auto-approve comments';
$txt['permissionname_mgallery_auto_approve_item'] = 'Auto-approve items';
$txt['permissionname_mgallery_multi_upload'] = 'Mass Upload';
$txt['permissionname_mgallery_viewprofile'] = 'View anyone\'s Gallery profile';
$txt['permissionname_mgallery_whoratedwhat'] = 'View who rated what';
$txt['cannot_mgallery_viewprofile'] = 'You cannot view Gallery profiles';
// End SMF Media Gallery strings

?>


Sorry about that.
I am running the Default theme in English. No caching that I know of.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Kindred on December 31, 2008, 05:48:39 PM
???   a double button has nothignt o do with your language strings, especially not in 2.0
If you have an extra button, then the code is in subs.php
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Syndel on December 31, 2008, 06:31:46 PM
It is not a double button... it is two different mods that generate the same button name.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Kindred on December 31, 2008, 10:10:54 PM
and buttons are controlled in subs.php
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: [unplugged] on December 31, 2008, 10:27:55 PM
If you are wanting to completely remove the SMF Gallery button, open Subs.php, find and remove:

// [SMF Gallery] button
'gallery' => array(
'title' => $txt['smfgallery_menu'],
'href' => $scripturl . '?action=gallery',
'show' => $context['allow_smfgallery_view'],
'icon' => '',
),


This will leave the SMF Media Gallery button untouched.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: smurfyforum on December 31, 2008, 10:57:10 PM
Maybe someone here can help - I posted this on the SMF Media Gallery forum and no-one could help there,

Quote from: pvcblue on December 23, 2008, 06:13:19 PM
I was uploading some mp3 files to my SMFmediaGallery and 2 were uploaded but now it won't upload anymore, I get this error -

An error happened during the upload process, please try again or contact the administrator.

I tried again, and again, and again, and again, and again, and still won't do it, even tried a different file same thing happens.

Did get one to upload that was 896 kb, the others are like 3 mb - is it the size ?

I also changed the php.ini upload_max_filesize to allow for a larger upload and it still isn't working.

>:(
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Blinker on January 01, 2009, 12:42:49 AM
Quick question guys:

I run a dark theme that has a black background.

When there are items awaiting approval, it shows a bright yellow box and the text is very difficult to read.

The same goes for the pink box that surrounds unapproved items.

What would I have to do to change those colours, either the yellow and pink boxes or the text inside them?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 01, 2009, 12:45:37 AM
Have a look at /Themes/default or your theme/mgallery/style.css
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Blinker on January 01, 2009, 12:55:51 AM
Thanks Dragooon, I'll check it out.

BTW I just found a new error after upgrading to 1.5.2. If I click on any member's name to go to their profile:

Fatal error: Cannot redeclare mgallery() (previously declared in /home/content/a/l/c/admin/html/forum/Sources/Profile.php:3003) in /home/content/a/l/c/admin/html/forum/Sources/Profile.php on line 3144

Line 3144 in profile.php is simply function mgallery($memID)

What could be going on?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Syndel on January 01, 2009, 01:23:29 AM
Quote from: SunKing on December 31, 2008, 10:27:55 PM
If you are wanting to completely remove the SMF Gallery button, open Subs.php, find and remove:

// [SMF Gallery] button
'gallery' => array(
'title' => $txt['smfgallery_menu'],
'href' => $scripturl . '?action=gallery',
'show' => $context['allow_smfgallery_view'],
'icon' => '',
),


This will leave the SMF Media Gallery button untouched.


I want to rename one of them and keep the other as it is.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: [unplugged] on January 01, 2009, 01:34:56 AM
You could always just hardcode one of them too. To hardcode SMF Gallery, for instance, just change
'gallery' => array(
'title' => $txt['smfgallery_menu'],
'href' => $scripturl . '?action=gallery',
'show' => $context['allow_smfgallery_view'],
'icon' => '',
),


to

'gallery' => array(
'title' => 'SMF Gallery',
'href' => $scripturl . '?action=gallery',
'show' => $context['allow_smfgallery_view'],
'icon' => '',
),


or to hardcode SMF Media Gallery change

'mgallery' => array(
'title' => $txt['mgallery_gallery'],
'href' => $scripturl . '?action=mgallery',
'show' => allowedTo('mgallery_access'),
'sub_buttons' => array(),
),


to

'mgallery' => array(
'title' => 'The Better Gallery',
'href' => $scripturl . '?action=mgallery',
'show' => allowedTo('mgallery_access'),
'sub_buttons' => array(),
),


;)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Blinker on January 01, 2009, 01:48:09 AM
Quote from: Blinker on January 01, 2009, 12:55:51 AM
Thanks Dragooon, I'll check it out.

BTW I just found a new error after upgrading to 1.5.2. If I click on any member's name to go to their profile:

Fatal error: Cannot redeclare mgallery() (previously declared in /home/content/a/l/c/admin/html/forum/Sources/Profile.php:3003) in /home/content/a/l/c/admin/html/forum/Sources/Profile.php on line 3144

Line 3144 in profile.php is simply function mgallery($memID)

What could be going on?

I figured it out - I went through the post-upgrade version of profile.php and one from a couple of weeks ago with Beyond Compare and found that this block of code had been replicated at the bottom of the file (starting at 3144):
function mgallery($memID)
{
global $sourcedir;
require_once($sourcedir . '/MGallery-Sub.php');
MGal_Profile_Summary($memID);
}
function mgalitems($memID)
{
global $sourcedir;
require_once($sourcedir . '/MGallery-Sub.php');
MGal_Profile_ViewItems($memID);
}
function mgalcoms($memID)
{
global $sourcedir;
require_once($sourcedir . '/MGallery-Sub.php');
MGal_Profile_ViewComs($memID);


So I deleted it and all's good. Was I supposed to uninstall 1.5.1 first? I've often found uninstalling doesn't remove code additions to files and I've seen many chunks of duplicated code before. If it doesn't break anything I generally leave it.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: The_Wii_Nes_Boy on January 01, 2009, 04:17:19 AM
Hi guys, keep getting the following error when I am trying to link to a picture in my gallery

QuoteInternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

Direct Link Sample - http://twnb-worldofstuff.com/Forums/MGalleryItem.php?id=5

Plus my server log is showing this error

Quote[Thu Jan  1 03:00:10 2009] [error] [client **.***.***.**] File does not exist: /home/twnbwor1/public_html/500.shtml
[Thu Jan  1 03:00:10 2009] [error] [client **.***.***.**] Premature end of script headers: /home/twnbwor1/public_html/Forums/MGalleryItem.php
SoftException in Application.cpp:252: File "/home/twnbwor1/public_html/Forums/MGalleryItem.php" is writeable by group

any advice from the pro's on this thanks

Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Syndel on January 01, 2009, 09:31:07 AM
Thank you, Sunking! That was dead on! :D
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: magarto on January 01, 2009, 11:25:46 AM
Thanks for 1.5.2.
In EXIF metainfo i see (6) in my Gallery template instead of the metainfo :S
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 01, 2009, 11:35:07 AM
Screenshot?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: magarto on January 01, 2009, 12:12:02 PM
Here you are :)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: magarto on January 01, 2009, 12:16:19 PM
Also i have one more error when uploading large videos: after uploading it, mass upload crash. See the screenshot.
It occurs since 1.5
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 01, 2009, 12:33:45 PM
At your missing string issue, please add the 2 new translated strings to your language. I posted them some posts back. Can you give me a link to your phpinfo?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Tuzaboy on January 01, 2009, 12:48:06 PM
you try use a php.ini or .htaccess with
php_value upload_max_filesize 100M

php_value post_max_size 100M

php_value max_execution_time 1000

php_value max_input_time 1000

you can this gallery in spanish?  :P
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Darknico on January 01, 2009, 01:03:08 PM
Quote from: Tuzaboy on January 01, 2009, 12:48:06 PM
you can this gallery in spanish?  :P

http://smf-media.com/community/index.php?action=downloads;cat=2
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 01, 2009, 01:21:32 PM
Yes, but it hasn't been updated to 1.5.2, I'll do it tomorrow if I don't forget.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: bambusforum on January 01, 2009, 01:46:24 PM
When i switch my forum to danish as the default language my gallery disappears!

Is it possible to make the gallery work with danish language?

www.bambusforum.dk
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: The_Wii_Nes_Boy on January 01, 2009, 01:51:06 PM
Was any of the above post pointed at me? These long threads can get really confusing lol
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: The_Wii_Nes_Boy on January 01, 2009, 02:28:14 PM
It's cool guys, I fixed this all on my own...... again  :P

seems like "MGalleryItem.php" file permission wasn't set to 755. After changing the permision to 755 my problem is gone  :D
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: smurfyforum on January 01, 2009, 05:56:36 PM
Quote from: The_Wii_Nes_Boy on January 01, 2009, 02:28:14 PM
It's cool guys, I fixed this all on my own...... again  :P

seems like "MGalleryItem.php" file permission wasn't set to 755. After changing the permision to 755 my problem is gone  :D

Where is this file located??  ???
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: [unplugged] on January 01, 2009, 06:03:49 PM
It's located in your forum's root folder.

www.yoursite.com/forum/MGalleryItem.php
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: magarto on January 01, 2009, 06:24:50 PM
Thanks for the spanish translation... i was working on it but i will not continue it then :P
My php info is: http://salsamadrid.org/info.php
I change max upload size to 100 M but i cannot put max time in .htaccess because it gives 501 error.
I will be some days in Irland, i will check answer after :)
Happy New Year!
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 02, 2009, 01:40:21 AM
Quote from: SunKing on January 01, 2009, 06:03:49 PM
It's located in your forum's root folder.

www.yoursite.com/forum/MGalleryItem.php
And again (as it's not really documented): remove that file and the embed code for "html" and "direct link" will be removed from item pages, which is an easy way to disable these. (I know a lot of users, including myself, only need the smg tag.)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: QueenTiye on January 02, 2009, 02:00:06 AM
Is there an SMG tutorial anywhere?  I just added it to my site, but I find that the functionality just leaves me baffled...


QT
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Smoky "Rider" Blue on January 02, 2009, 02:13:17 AM
if you read the front of this thread, all the answers are there, QT.  ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: smurfyforum on January 02, 2009, 06:06:00 AM
Quote from: pvcblue™ on December 31, 2008, 10:57:10 PM
Maybe someone here can help - I posted this on the SMF Media Gallery forum and no-one could help there,

Quote from: pvcblue on December 23, 2008, 06:13:19 PM
I was uploading some mp3 files to my SMFmediaGallery and 2 were uploaded but now it won't upload anymore, I get this error -

An error happened during the upload process, please try again or contact the administrator.

I tried again, and again, and again, and again, and again, and still won't do it, even tried a different file same thing happens.

Did get one to upload that was 896 kb, the others are like 3 mb - is it the size ?

I also changed the php.ini upload_max_filesize to allow for a larger upload and it still isn't working.

>:(

sorry to bump this but still haven't gotten an answer  ::)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Smoky "Rider" Blue on January 02, 2009, 06:21:08 AM
you should find out from your host how much "weight" you are allowed to upload..

there might be a size restriction involved.

you can upload as much as you want, but if the server you are on his a limit, it will not go.

or it will turn out a file that either uploads forever, or when uploaded have no size to it..

does this help you?  ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: smurfyforum on January 02, 2009, 09:08:10 AM
Quote from: SmokyBlue on January 02, 2009, 06:21:08 AM
you should find out from your host how much "weight" you are allowed to upload..

there might be a size restriction involved.

you can upload as much as you want, but if the server you are on his a limit, it will not go.

or it will turn out a file that either uploads forever, or when uploaded have no size to it..

does this help you?  ;)

Well my server plan is unlimited space and bandwith, but I will call them, thanks for your help again Smokey!
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Omniverse on January 02, 2009, 12:42:38 PM
Quote from: pvcblue™ on January 02, 2009, 09:08:10 AM
Well my server plan is unlimited space and bandwith, but I will call them, thanks for your help again Smokey!

The limit for uploading has nothing to do with your space/bandwidth. It's a setting on your hosts server in the php.ini file(?) that sets an allowable upload size. My host limits uploads to about 8MB. This is something that if you have a paid host, you cannot change, usually.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Smoky "Rider" Blue on January 02, 2009, 01:28:10 PM
no problem pvcblue ;)

hope that helps you..
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: The_Wii_Nes_Boy on January 02, 2009, 03:52:08 PM
2 quick question.....

"Max size of a directory" is it measured in bytes, megabytes or someting else? and

Is there no way to limit each user goups total maximum space and bandwidth. ie, for standard members I want to limit their total space on my server to say 1Gb regardless of albums and pics and maybe limit there bandwidth usage to say 10Gb similar to [cough]photobucket.[cough]
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 02, 2009, 04:08:31 PM
User quotas are in my personal to-do-list, but it's not in the high priority list; also, I'm currently busy on Aeva and I'm not sure Dragooon would want to implement these himself.
So it probably won't be done before next spring... (I'm always saying I'll go back to SMG in a week or so, but as long as I have a lot of work on Aeva, I'd rather not split myself between two projects like that. SMG is working great, I'm very happy with everything I implemented in it, so it'll have to wait a bit.)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Stef001 on January 02, 2009, 04:48:41 PM
Quote from: Nao 尚 on January 02, 2009, 04:06:28 PM
Quote from: Normally on January 02, 2009, 03:46:07 PM
What i mean is SMF Gallery Pro have:

- Every member can make his own album.
We also have this in SMF Media Gallery...

Quote- Watersign.
We don't have this. I'm not sure it's in our to-do-list. I personally feel that it's wrong to add watermarking to a picture, generally. It's a state of mind I guess. I think that if you want to watermark something, you'll do it on a per-picture basis, which you will generally do through Photoshop or similar.

Quote- That is all.
We do this, too :D

QuoteSo i try to install SMF Media Gallery and than i get a white screen, some conflict with a other mod.
A white screen is more likely due to something other than a conflict...
Does this happen at install time, or after installation, and if yes -- on what pages? All of them, or only the Gallery pages?
(Hmm we should be discussing this over at the SMG topic really...)

The whole site is white.
I had to upload the backup before i get back to the forum.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 02, 2009, 06:33:58 PM
Well... It's annoying -- I do remember getting stuff like that before, but I don't remember why...
I think it was when I was working on PrettyURLs. Sometimes it would crash and the output buffer ended up empty.
There's only one place where I rewrite the output buffer in SMG, and that's when the smg tag is being used. I take it you never used it? It wouldn't crash all pages anyway... So that's a mystery to me.

Dragooon? Any opinion?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: smurfyforum on January 02, 2009, 08:27:45 PM
Quote from: pvcblue™ on January 02, 2009, 09:08:10 AM
Quote from: SmokyBlue on January 02, 2009, 06:21:08 AM
you should find out from your host how much "weight" you are allowed to upload..

there might be a size restriction involved.

you can upload as much as you want, but if the server you are on his a limit, it will not go.

or it will turn out a file that either uploads forever, or when uploaded have no size to it..

does this help you?  ;)

Well my server plan is unlimited space and bandwith, but I will call them, thanks for your help again Smokey!

Well I called, and they said I was doing everything right adjusting my php.ini and adding it to all subdirectories, but sometimes it just doesn't take, so they added a global php.ini for me that would control all directories without having to add it to the subs, and it now works!  ;D
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Michael24 on January 02, 2009, 08:41:35 PM
Quick question (I hope!).

I finally got this gallery to work with dilbermc, but the gallery button is not like the other buttons.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsimplystreisand.com%2Fmenu_problem.jpg&hash=9fe0e610e6b49e445d5e00969c785ca8f2b0a6f8)

How can I fix this?

Thank you.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: vulcan59 on January 02, 2009, 08:55:09 PM
Hi Michael24,

I had this problem before. Assuming your are using SMF 1.1.7 with the DilberMc theme, check that the index.template for DilberMC is as follows:

Quote$txt['mgallery_gallery']

and not
Quote$txt['mgallery']

Try that and remember that the context as per the rest of the buttons must be the same for the "Gallery" button.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Michael24 on January 02, 2009, 09:18:21 PM
Hi Vulcan and thanks for your reply.  I did check that and I found that the code was correct according to what you quoted.  Yes, it's SMF 1.1.7

Another thing that's messed up is this.  No one can access their profile!

When you click on any member's profile, an error message states:

QuoteFatal error: Cannot redeclare mgallery() (previously declared in /home/michael2/public_html/forum/Sources/Profile.php:2928) in /home/michael2/public_html/forum/Sources/Profile.php on line 2952

It's all Greek to me!

Quote from: vulcan59 on January 02, 2009, 08:55:09 PM
Hi Michael24,

I had this problem before. Assuming your are using SMF 1.1.7 with the DilberMc theme, check that the index.template for DilberMC is as follows:

Quote$txt['mgallery_gallery']

and not
Quote$txt['mgallery']

Try that and remember that the context as per the rest of the buttons must be the same for the "Gallery" button.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: vulcan59 on January 02, 2009, 09:28:57 PM
Okay, attached your DilberMC index.template and I'll see what I can do.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Michael24 on January 02, 2009, 09:31:10 PM
Thanks.  Here it is. 
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: vulcan59 on January 02, 2009, 09:37:49 PM
Okay try this.

Cheers
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: [unplugged] on January 02, 2009, 09:46:19 PM
The button showing up like that is because the Dilbert theme uses <li></li> for the buttons, if I'm not mistaken. You just need to follow the layout for the other buttons to add the <li> and </li> around the gallery button.  ;D
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Michael24 on January 02, 2009, 09:51:47 PM
Quote from: vulcan59 on January 02, 2009, 09:37:49 PM
Okay try this.

Cheers

That didn't work, it threw the board offline and I got this error message:

QuoteUnable to load the 'main_above' template.

Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: vulcan59 on January 02, 2009, 09:55:42 PM
Well, I am using the DilberMC theme with SMF 1.1.7 and that index.template works for me.

So perhaps there are other mods that are/is causing the problem?

Try running repair settings (http://docs.simplemachines.org/index.php?topic=663). Hopefully that might fix the problem because I don't think it's the index.template.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: [unplugged] on January 02, 2009, 10:09:43 PM
Well, I was mistaken about the <li></li>.  :(
So I installed the theme on a test site and then added the button (in the same way as vulcan59) and the button shows up as desired.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Michael24 on January 02, 2009, 10:13:00 PM
Quote from: SunKing on January 02, 2009, 09:46:19 PM
The button showing up like that is because the Dilbert theme uses <li></li> for the buttons, if I'm not mistaken. You just need to follow the layout for the other buttons to add the <li> and </li> around the gallery button.  ;D

When I look at the page source all the other buttons say
Quoteclass="menubg
and the misfit "Gallery" button says
Quoteclass="maintab_back"

It says index.php but I can't find ANY of that stuff there, therefore I need to know where these settings are.  I've looked EVERYWHERE for them, sources, etc.  Can't find it.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Michael24 on January 02, 2009, 10:15:28 PM
Quote from: vulcan59 on January 02, 2009, 09:55:42 PM
Well, I am using the DilberMC theme with SMF 1.1.7 and that index.template works for me.

So perhaps there are other mods that are/is causing the problem?

Try running repair settings (http://docs.simplemachines.org/index.php?topic=663). Hopefully that might fix the problem because I don't think it's the index.template.

I ran that thing and clicked "save settings" at the bottom and it didn't seem to work.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: [unplugged] on January 02, 2009, 10:19:07 PM
Quote from: Michael24 on January 02, 2009, 10:13:00 PM

When I look at the page source all the other buttons say class="menubg" and the misfit "Gallery" button says class="maintab_back"


If you used the modified index.template.php from vulcan59, then that class for the Gallery button should also be showing class="menubg".
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Michael24 on January 02, 2009, 10:23:57 PM
I wish I knew why it won't work!  All I know is when I upload Vulcan's file my board won't load and I get this error:

QuoteUnable to load the 'main_above' template.

Quote from: SunKing on January 02, 2009, 10:19:07 PM
Quote from: Michael24 on January 02, 2009, 10:13:00 PM

When I look at the page source all the other buttons say class="menubg" and the misfit "Gallery" button says class="maintab_back"


If you used the modified index.template.php from vulcan59, then that class for the Gallery button should also be showing class="menubg".
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: [unplugged] on January 02, 2009, 10:29:40 PM
Well, I took the file you attached and made the same mods to it and it worked on my test site. I'll attach your modified file so you can at least try it. ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: vulcan59 on January 02, 2009, 10:33:45 PM
Where did you upload the file?

Just to be sure, after you applied the SMF Media Gallery mod, all you had to do then was to modify the DilberMC index.template.php as suggested/attached and upload that file back into the /forum/Themes/DilberMC directory.

I hope you didn't upload it into /forum/Themes/default directory by mistake because "class=maintab" appears only in the default.index.template and not DilberMC index.template.  DilberMC uses the "class=menubg".
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Michael24 on January 02, 2009, 10:42:03 PM
I uploaded your attached file (index.template.php) into /forum/Themes/DilberMC and overwrote the existing one.  It didn't work.   
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: vulcan59 on January 02, 2009, 10:46:54 PM
Okay so restore the original DilberMC index.template and see if that brings your forum back.

Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Kindred on January 02, 2009, 10:56:29 PM
BTW: your "can not redeclare" error is due to the fact that you have apparently installed the mod twice.

You will have to hand edit your profile.php (and possibly other files) to remove the duplicate code.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Michael24 on January 02, 2009, 10:59:49 PM
Quote from: vulcan59 on January 02, 2009, 10:46:54 PM
Okay so restore the original DilberMC index.template and see if that brings your forum back.



Oh, I did that right away!  Frankly at this point my brain is fried.  I've been working on this all night and it's still wrong.  In fact somehow the forum changed to the default theme and people were saying they loved the "new look."  Oy. I'm about the throw in the towel and upload all those files I spent ages to modify manually and forget about this gallery.  As a last ditch to salage this, is there any way one of you guys can log on if I make you a temp admin to try to fix this thing?  I can pay you a few bucks.  I just want this fixed and I apparently am unable to do that.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 02, 2009, 11:11:59 PM
Quote from: Normally on January 02, 2009, 04:48:41 PM
Quote from: Nao 尚 on January 02, 2009, 04:06:28 PM
Quote from: Normally on January 02, 2009, 03:46:07 PM
What i mean is SMF Gallery Pro have:

- Every member can make his own album.
We also have this in SMF Media Gallery...

Quote- Watersign.
We don't have this. I'm not sure it's in our to-do-list. I personally feel that it's wrong to add watermarking to a picture, generally. It's a state of mind I guess. I think that if you want to watermark something, you'll do it on a per-picture basis, which you will generally do through Photoshop or similar.

Quote- That is all.
We do this, too :D

QuoteSo i try to install SMF Media Gallery and than i get a white screen, some conflict with a other mod.
A white screen is more likely due to something other than a conflict...
Does this happen at install time, or after installation, and if yes -- on what pages? All of them, or only the Gallery pages?
(Hmm we should be discussing this over at the SMG topic really...)

The whole site is white.
I had to upload the backup before i get back to the forum.
Anything in SMF error log? Apache error log? PHP error log?

Quote from: Nao 尚 on January 02, 2009, 06:33:58 PM
Well... It's annoying -- I do remember getting stuff like that before, but I don't remember why...
I think it was when I was working on PrettyURLs. Sometimes it would crash and the output buffer ended up empty.
There's only one place where I rewrite the output buffer in SMG, and that's when the smg tag is being used. I take it you never used it? It wouldn't crash all pages anyway... So that's a mystery to me.

Dragooon? Any opinion?
Well it could be due to multiple reasons, one is that, other is parse error or fatal error. Since most servers have display_errors as off, it doesn't displays them but ends up showing a white page.

Quote from: Michael24 on January 02, 2009, 08:41:35 PM
Quick question (I hope!).

I finally got this gallery to work with dilbermc, but the gallery button is not like the other buttons.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsimplystreisand.com%2Fmenu_problem.jpg&hash=9fe0e610e6b49e445d5e00969c785ca8f2b0a6f8)

How can I fix this?

Thank you.
Post your index.template.php here.

Quote from: Michael24 on January 02, 2009, 09:18:21 PM
When you click on any member's profile, an error message states:

QuoteFatal error: Cannot redeclare mgallery() (previously declared in /home/michael2/public_html/forum/Sources/Profile.php:2928) in /home/michael2/public_html/forum/Sources/Profile.php on line 2952

It's all Greek to me!
Open your Profile.php, and remove the duplicate declaration of mgallery and other of its functions.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: The_Wii_Nes_Boy on January 02, 2009, 11:20:00 PM
Back to my previous question

What is the "Max size of a directory" is it measured in bytes, megabytes or someting else? and
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 02, 2009, 11:23:03 PM
Kilobytes.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: The_Wii_Nes_Boy on January 02, 2009, 11:28:20 PM
Thanks   :D
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Michael24 on January 02, 2009, 11:35:55 PM
Quote from: Dragooon on January 02, 2009, 11:11:59 PM

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsimplystreisand.com%2Fmenu_problem.jpg&hash=9fe0e610e6b49e445d5e00969c785ca8f2b0a6f8)

How can I fix this?

Thank you.
Post your index.template.php here.

Quote from: Michael24 on January 02, 2009, 09:18:21 PM
When you click on any member's profile, an error message states:

QuoteFatal error: Cannot redeclare mgallery() (previously declared in /home/michael2/public_html/forum/Sources/Profile.php:2928) in /home/michael2/public_html/forum/Sources/Profile.php on line 2952

It's all Greek to me!
Open your Profile.php, and remove the duplicate declaration of mgallery and other of its functions.

[/quote]

Thanks, Dragooon.  The profiles are all working now.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 02, 2009, 11:43:30 PM
Hmm not sure whats wrong with your index.template, can you show us your site?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Michael24 on January 02, 2009, 11:49:54 PM
Sure.

http://simplystreisand.com/forum/
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: [unplugged] on January 03, 2009, 12:00:10 AM
Well....if you set up a test account, someone here may be able to help you. ;)

Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: vulcan59 on January 03, 2009, 12:11:06 AM
Hi Michael24,

The DilberMC theme doesn't look right. Here (http://www.arrowcat.co.nz/forum) is one forum that I set up with the DilberMC theme with the SMF Media Gallery mod install.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: mrmiyagi on January 03, 2009, 12:19:13 AM
Quote from: vulcan59 on January 03, 2009, 12:11:06 AM
Hi Michael24,

The DilberMC theme doesn't look right. Here (http://www.arrowcat.co.nz/forum) is one forum that I set up with the DilberMC theme with the SMF Media Gallery mod install.

Hi I am looking to do this with the Adagio theme!
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: vulcan59 on January 03, 2009, 12:28:17 AM
Hi mrmiyagi,

Here  (http://mmera.co.cc/forum) is one with the Adagio theme. Change the theme to Adagio from the Themes block.

The Adagio theme has built in buttons mods for you. So all you need to do is to specify the name of the button and it's action from the Theme itself without editing the index.template.

Brilliant theme.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: mrmiyagi on January 03, 2009, 12:52:51 AM
Vulcan I love the theme, Sorry to sound rude here but I am such a novice with SMF so could you explain a little bit further about how do edit the buttons in the Admin panel?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: vulcan59 on January 03, 2009, 01:39:55 AM
Hi mrmiyagi,

Once you install the theme, go to Admin - Current Theme.

You will then see Theme Options and Preferences and a list for custom buttons.  So in my case, for Custom 1 name, I use Gallery. Then next line specifies link/file I used ?action=mgallery"
Under type of custom button, I left it as Link.

And that's it. Regards.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: mrmiyagi on January 03, 2009, 01:45:39 AM
Quote from: vulcan59 on January 03, 2009, 01:39:55 AM
Hi mrmiyagi,

Once you install the theme, go to Admin - Current Theme.

You will then see Theme Options and Preferences and a list for custom buttons.  So in my case, for Custom 1 name, I use Gallery. Then next line specifies link/file I used ?action=mgallery"
Under type of custom button, I left it as Link.

And that's it. Regards.

OMG you are a genius, thank you soo much!!

Something I thought looked a million miles away from possibility was done in 2 seconds :p

You see this ?action=mgallery" , can I edit this and put in for example; ?action=banlist"
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: hansdampf on January 03, 2009, 06:36:32 AM
Hey...

Unfortunately I have some issues with this great mod - maybe you can help, shouldn't be a big deal at all?!  ;)

In the logs it says:

/index.php?action=profile;u=43
8: Undefined index: mgalcoms
Datei: /Sources/Profile.php
Zeile: 300


and

8: Undefined index: mgallery_view_coms
Datei: /Sources/Profile.php
Zeile: 240


I tried to add a language string for "mgallery_view_coms" but this didn't rectify the issue...

I also tried to un- and re-install the mod.

Any hints appreciated!  :)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 03, 2009, 07:19:43 AM
Is this an old version of SMG, by any chance?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Smoky "Rider" Blue on January 03, 2009, 07:46:37 AM
mmm Nao.. i get this looking at the package area in admin

red is outdated correct?? and there is no uninstall for the 1.52 even tho i looked at the xml it looks the same to me..

havent applied it yet but?? hmm..  :P
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: hansdampf on January 03, 2009, 07:51:27 AM
I'm using 1.5.2 which should be the latest version...?!
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 03, 2009, 08:35:56 AM
Smoky, you didn't uninstall v1.5.1 before trying to install v1.5.2...?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Smoky "Rider" Blue on January 03, 2009, 08:40:30 AM
lol.. the 1,52 isnt installed Nao, i just uploaded it via ftp.. and that is when i noticed the little red dot..

been a few since i have seen that, and i thought the 1,52 was the newer one..

sides im waiting on my host for file ownership issues.. hmmm.. he is having pc problems so..  ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 03, 2009, 09:01:07 AM
Quote from: SmokyBlue on January 03, 2009, 08:40:30 AM
lol.. the 1,52 isnt installed Nao, i just uploaded it via ftp.. and that is when i noticed the little red dot..
I'm not too sure what the dot means, really...

Quotebeen a few since i have seen that, and i thought the 1,52 was the newer one..
Yes it is.
Actually, the newer one is 1.6 but it's not public yet ;)
I think Dragooon wants to hold on its release until we add a few more features to it. We're both taking a break (holidays etc.), so it probably won't be out before late January, or later in February.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Smoky "Rider" Blue on January 03, 2009, 09:33:35 AM
lol it would make for a good Valentines day  ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Mai Pen Rai on January 03, 2009, 10:58:16 AM
Could SSI be used to show the most recent pics on our mainsite?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 03, 2009, 12:14:44 PM
Sort of yes
Something like this will load the items into the array
require_once($sourcedir . '/Subs-MGallery.php');
loadMGal_Settings();
$items = getMediaItems(0. 10, 'm.id_media DESC');
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: vulcan59 on January 03, 2009, 03:36:18 PM
Quote from: mrmiyagi on January 03, 2009, 01:45:39 AM
Quote from: vulcan59 on January 03, 2009, 01:39:55 AM
Hi mrmiyagi,

Once you install the theme, go to Admin - Current Theme.

You will then see Theme Options and Preferences and a list for custom buttons.  So in my case, for Custom 1 name, I use Gallery. Then next line specifies link/file I used ?action=mgallery"
Under type of custom button, I left it as Link.

And that's it. Regards.

OMG you are a genius, thank you soo much!!

Something I thought looked a million miles away from possibility was done in 2 seconds :p

You see this ?action=mgallery" , can I edit this and put in for example; ?action=banlist"

Thanks for the compliment mrmiyagi, but the true geniuses here are the people who bring us this mod, Dragooon and Nao. I'm just a guy who fumbles around to make things work, half the time not sure what the heck is happening.

I participate here because I have taken so much (mods, themes, etc) and to not give back (help others out) invites "unbalanced energy" or "unbalanced karma".

As for you question of using "?action=banlist", I am not sure what you are trying to do. But in any case this is not the right place to discuss it. So perhaps you should open up a new topic on the appropriate board and hopefully someone will respond. 

Regards.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 03, 2009, 07:22:01 PM
Quote from: vulcan59 on January 03, 2009, 03:36:18 PM
Thanks for the compliment mrmiyagi, but the true geniuses here are the people who bring us this mod, Dragooon and Nao.
Geniuses are people who invent stuff out of thin air...
I think we are more like craftsmen, we build on each other's ideas, we improve stuff, we add little ideas here and there... But we didn't create a revolution in the concept of Gallery itself. The work between v1.0 and v1.5 was just to make it on par with other solutions in terms of functionality -- while keeping it 100% free. As for future versions, we have a large to-do-list of features to implement, but while some of these ideas I don't remember seeing implemented elsewhere, they are mostly born out of common sense and/or regular use.

All in all, I just wanted to say that I feel uncomfortable at being called a genius just because I share my work with the community. Which I can afford, so it's really no big deal to me ;) (I'm not sure I'm very clear... But it's late here.)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 05, 2009, 12:22:25 PM
Here's some of the stuff from my to-do-list...
I'm just posting them to see if it generates any reaction regarding one or more entries. So that I know where I should put my priorities when I come back to work on SMG. (And, no, whatever the reaction, I will not my priorities on Notifications.)

Quote- Show users on gallery? (on index / per item)
- Add "most popular items" etc as an alternative to "recent items" on index
- censorText for comments, titles, descriptions
- I need to work on separating pictures from video/audio in the single upload area, to make the form simpler
- Total Gallery Filesize (+ per-album filesize?) in stats
- Total Views / Average Views per day in stats
- Average Views per day per item ("0.76 downloads/day")
- Still in stats: best rated items
- Notify on new picture, on new comment / post a locked topic for each album with automatic messages in them every time a new item is posted?
- Copy album icons to the album_icons folder instead of "forcing them" (might not be needed any more, since I think I've fixed all bugs related to this...)
- Deal with user albums where user was deleted from forum
- Per-album quotas (total size, total items)
- Album creation date / "older media upload" / "media activity" (e.g. "2006-2008")
- Need to make sure albums and their children are sorted correctly in the main album list...
- Show a small icon (10x10?) next to item titles in thumbnail boxes, specifying the item type (audio/video/picture)

Let's discuss them, if you will.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Smoky "Rider" Blue on January 05, 2009, 02:38:55 PM
that sounds great Nao, all of it..

when talking about the notifying, is that for everyone? or just admin type??

i think you guys have done great on the mod, and really, other than what you have put up now, outstanding!  ;)

Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: vulcan59 on January 05, 2009, 03:31:01 PM
Quote from: NaoGeniuses are people who invent stuff out of thin air...

Quote from: Chambers Dictionarygenius noun (geniuses or in sense 5 genii) 1. someone who has outstanding creative or intellectual ability.

But apologies Nao, if that makes you uncomfortable.

Looking forward to more great mods from you and as SmokyBlue says
Quotesounds great, all of it.

Best regards.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: videoman57 on January 05, 2009, 03:34:12 PM
Happy New Year to all!
I see you have quite the ambitious list of "to do's"..

I wish you luck with all that programming.  I have no idea how to program, so we leave it to the professionals and appreciate what you do!

Thanks!
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 05, 2009, 05:59:00 PM
@Spock> We have a saying in French... "On est toujours le con de quelqu'un d'autre". How can I translate this? "One is always someone else' fool"?
Means in our case that whatever you do, there's always somebody who will do it better.
The only time this didn't happen in my life was for Kyodai Mahjongg -- but then again, I knew people who worked in hardcore game programming and they were clearly ahead of me in terms of 3D knowledge etc. Should have helped me stay humble I guess, but it never works like that ;)

Quote from: videoman57 on January 05, 2009, 03:34:12 PM
Happy New Year to all!
I see you have quite the ambitious list of "to do's"..
Not so ambitious... I think half of the list can be implemented in a couple of days. The other half will take longer -- make a week or two. I don't know what else I'll do after that ;) The rest of my to-do-list isn't that interesting really. Maybe SMG will be perfect and I'll switch fulltime to Aeva until it's perfect as well? And then I can retire safely? :P
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: videoman57 on January 05, 2009, 06:14:46 PM
Perhaps you can take some time off for yourself etc...once you 'retire safely'!!!

Do you actively work in programming as a job?  I worked on IT type stuff at work, but did not want to do that when I got home...
I try to do other things different from my job or career...if that is what I call it???

Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on January 05, 2009, 06:38:48 PM
Quote from: videoman57 on January 05, 2009, 06:14:46 PM
Perhaps you can take some time off for yourself etc...once you 'retire safely'!!!

Do you actively work in programming as a job?  I worked on IT type stuff at work, but did not want to do that when I got home...
I try to do other things different from my job or career...if that is what I call it???



The ideal career is something you don't see as work, so chances are you'd do it at home to...
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 05, 2009, 08:34:29 PM
@Nao - Nothing is perfect ;) :P
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: hansdampf on January 06, 2009, 04:25:25 AM
Quote from: hansdampf on January 03, 2009, 06:36:32 AM
In the logs it says:

/index.php?action=profile;u=43
8: Undefined index: mgalcoms
Datei: /Sources/Profile.php
Zeile: 300


and

8: Undefined index: mgallery_view_coms
Datei: /Sources/Profile.php
Zeile: 240


Any ideas regarding my issue? Anyone?

It's quite annoying since it's flooding the logs!  :(
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 06, 2009, 08:22:43 AM
You should attach your Profile.php file.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 06, 2009, 08:32:37 AM
Forgot to answer other posts...

@Dragooon> What do you mean?

Quote from: videoman57 on January 05, 2009, 06:14:46 PM
Perhaps you can take some time off for yourself etc...once you 'retire safely'!!!
Well, "time off", as in "enjoy yourself"?

QuoteDo you actively work in programming as a job?
I already said it multiple times -- I work fulltime on SMF (or my SMF-powered website).
When I say "fulltime", I don't mean "on my free time". I mean I wake up, take a breakfast, then go online and get to work with SMF stuff.
My "paid job" used to be as a games programmer (www.cynagames.com). I took a break two years ago because I'd "lost it". I'm not sure what to do next... I was hoping that my work on SMF would bring me some interesting opportunities but nothing so far. Still, I enjoy my work on SMF because of the diversity.

QuoteI worked on IT type stuff at work, but did not want to do that when I got home...
Sad :(
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: magarto on January 06, 2009, 08:44:24 AM
Wowww Nao, you are one of the most dedicated men that I know. Thanks a lot for your time and dedication! I hope you find a good opportunity.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Smoky "Rider" Blue on January 06, 2009, 08:46:14 AM
lol same here, and as smart as Nao is, im sure a door will open for him.  ;)

lol i eat breakfast watching smf.. hmm..  O:)



Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: magarto on January 06, 2009, 08:54:48 AM
I have new errors on 1.5.2 (http://salsamadrid.org) and people some times cannot upload some files and some videos and i change max_upload_size and so on:
- 1st error (in some users):

2: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for /home2/salsamad/public_html/mgal_data/tmp/bangaloo+trivial 021.jpg
Apply Filter: Only show the errors from this file
Archivo: /home2/salsamad/public_html/Sources/Subs-MGallery.php
Línea: 2104


- Update: I have more errors: Please check the attachment screenshot.

- 2nd error (very common in several users):
http://salsamadrid.org/index.php?action=mgallery;sa=mass;album=29;xml;upcook=YTo0OntpOjA7czoyOiI0NyI7aToxO3M6NDA6IjRmZWE5ZjM3MjFlM2YwNWEzMzRhNDQyODc1OTE2MTA5MjM0NmM5MWMiO2k6MjtpOjE0MjA0MTExNjM7aTozO2k6MDt9
Apply Filter: Only show the errors with the same message
No especificaste un archivo a subir

For some information, in spanish "No especificaste un archivo a subir" is the translation of the function mgallery_file_not_specified

Any idea?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: hansdampf on January 06, 2009, 09:28:12 AM
Quote from: Nao 尚 on January 06, 2009, 08:22:43 AM
You should attach your Profile.php file.

Sorry mate, my fault! Here you go...
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 06, 2009, 01:35:25 PM
@magarto> You know, if I wasn't working on these, I'd be working fulltime on some other hobby... You could just as well say, "Although your dedication is nothing short of stunning, you really should be ashamed that you're spending so much time working on a hobby* of yours, instead of trying to find a steady job!" :P
* I know it can be hard to imagine this kind of complicated stuff is a hobby, but I love a good challenge. Most team members will agree with me I think ;)

@hansdampf> okay, you have some missing strings in your Modifications.english.php file... I'm taking my chances based on your curious nickname - you're probably not using English or French, in which case... Well, in which case it's only natural that it doesn't work for you. You realize that you need to update your own language files for all mods that edit the Modifications files automatically, eh? ;) Just have a look at smf-media.com, you'll probably find your required language files there.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: hansdampf on January 06, 2009, 02:22:48 PM
Ah... thank you so much! I could have figured this out on my own, though... shame on me.  :-X

However, there's still one error left. Could it be I need to touch another language file?

It says

Quote
http://.../index.php?action=profile;u=60;sa=mgalcoms
8: Undefined index: member
File: /.../Sources/MGallery-Sub.php
Line: 1595

and this is the line:


$context['page_index'] = $mgalFunc['construct_page_index']($scripturl . '?action=profile;u=' . $memID . ($context['is_smf2'] ? ';area' : ';sa') . '=mgalitems', $_REQUEST['start'], $context['member']['mgallery']['total_comments'], 20);


TIA for your help - much appreciated!  :)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on January 06, 2009, 06:19:08 PM
Is it possible this mod could botch up aeva?

I set up a test forum for my friends to test out and mess around with. They want to put up a message board for their site once I've customized it the way they want.

It's a 1.1.7 forum. The first mod I installed was aeva mainly due to it's alphabetical listing on the mod site. It worked fine. I tested it and it worked. One of the last mods I installed was the smf media gallery. Which also works fine. However, as I was going over the test posts I made, the youtube link is no longer embeded, it's just a link. I tried a few other youtube links and what happens is just a url is posted. When I click modify the code shows url /url tags.

I figured since nao works on both mods, this would be a good place to post.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: KahneFan on January 06, 2009, 07:31:33 PM
I can not speak for 1.1.7, but I have both installed on my 2.0b4 site and they work together.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on January 06, 2009, 07:33:40 PM
I'll wait to see what nao says, and if it's not due to the gallery, i'll move this question over to his aeva thread...
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: techwg on January 07, 2009, 08:04:37 AM
Hello.

We are having a problem on our server, where we can delete something from an albulm, however if we try and delete an album regardless of it its just this second been created or anything, we get a white page with the following error:


Fatal error: require_once() [function.require]: Failed opening required '/Subs-Package.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/admin/public_html/community/Sources/MGallery-Admin.php on line 607



Any ideas so that we can fix this, maybe we need some guidence though...

Thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 07, 2009, 09:01:25 AM
Quote from: hansdampf on January 06, 2009, 02:22:48 PM
and this is the line:


$context['page_index'] = $mgalFunc['construct_page_index']($scripturl . '?action=profile;u=' . $memID . ($context['is_smf2'] ? ';area' : ';sa') . '=mgalitems', $_REQUEST['start'], $context['member']['mgallery']['total_comments'], 20);


TIA for your help - much appreciated!  :)
I dunno... We get these sometimes... Don't know why. Never been able to reproduce on my side. Did you have any errors at install time?

I'd advise to simply replace $context['member'] with @$context['member'].
It won't fix the issue, but at least it won't log the error... ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 07, 2009, 09:04:07 AM
@techwg> lol...... Blame Dragooon for that one. Have fun fixing it. It's easy (declare $sourcedir global), but I'm through helping with that one.

Quote from: LinK187 on January 06, 2009, 06:19:08 PM
Is it possible this mod could botch up aeva?
I don't see how...?

QuoteIt's a 1.1.7 forum. The first mod I installed was aeva mainly due to it's alphabetical listing on the mod site. It worked fine. I tested it and it worked. One of the last mods I installed was the smf media gallery. Which also works fine. However, as I was going over the test posts I made, the youtube link is no longer embeded, it's just a link. I tried a few other youtube links and what happens is just a url is posted. When I click modify the code shows url /url tags.
This is more of an Aeva issue, really. I will need a link to a couple of posts that show the issue. Additionally you may want to PM me access to an admin account so that I can look into it. A FTP account with access to the Sources folder would also be perfect. Since it's a test site, I don't suppose it'd be a problem for you?

QuoteI figured since nao works on both mods, this would be a good place to post.
I'd rather have this kind of request posted at aeva.noisen.com but I know... People are lazy  O:)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: techwg on January 07, 2009, 11:25:22 AM
Quote from: Nao 尚 on January 07, 2009, 09:04:07 AM
@techwg> lol...... Blame Dragooon for that one. Have fun fixing it. It's easy (declare $sourcedir global), but I'm through helping with that one.

Well thankyou for that indepth tutorial on how to fix it... lol, Does anyone actually know how i would go about fixing it?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 07, 2009, 11:31:16 AM
I'll post a silent up soon, see previous post for info on fixing it.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 07, 2009, 12:39:40 PM
If you're fixing just that thing, then cool.
But don't release a silent update with my latest 1.5.3 additions, eh ;)
Why not release that one directly, BTW?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 07, 2009, 12:53:20 PM
Don't tell me you added more features.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: techwg on January 07, 2009, 12:54:27 PM
Quote from: Dragooon on January 07, 2009, 11:31:16 AM
I'll post a silent up soon, see previous post for info on fixing it.

Ok i will wait for the update, if you could let me know that would be great, cheers.

I would to that thing listed, but just because the error is not logged does not fix the problem as that person said.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Kindred on January 07, 2009, 02:03:31 PM
techwg...   try using search?   It's already been answered at least twice in this thread.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: techwg on January 07, 2009, 02:09:00 PM
Yes, the guy said hes putting out a silent update, i dont know what all that jargon is that was typed, its all gobbeldy gook to me, i am not a programmer, im just an admin on a forum. If ya know what i mean..
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Smoky "Rider" Blue on January 07, 2009, 02:13:30 PM
take the error message and use the search here on smf and you will find the answer..

the update will come out when its ready ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: techwg on January 07, 2009, 02:35:03 PM
the update is out, i saw the date change, and it works... thanks so much for the fast help. Really apreciate it.

Wes
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on January 07, 2009, 05:08:23 PM
Quote from: Nao 尚 on January 07, 2009, 09:04:07 AM
@techwg> lol...... Blame Dragooon for that one. Have fun fixing it. It's easy (declare $sourcedir global), but I'm through helping with that one.

Quote from: LinK187 on January 06, 2009, 06:19:08 PM
Is it possible this mod could botch up aeva?
I don't see how...?

QuoteIt's a 1.1.7 forum. The first mod I installed was aeva mainly due to it's alphabetical listing on the mod site. It worked fine. I tested it and it worked. One of the last mods I installed was the smf media gallery. Which also works fine. However, as I was going over the test posts I made, the youtube link is no longer embeded, it's just a link. I tried a few other youtube links and what happens is just a url is posted. When I click modify the code shows url /url tags.
This is more of an Aeva issue, really. I will need a link to a couple of posts that show the issue. Additionally you may want to PM me access to an admin account so that I can look into it. A FTP account with access to the Sources folder would also be perfect. Since it's a test site, I don't suppose it'd be a problem for you?

QuoteI figured since nao works on both mods, this would be a good place to post.
I'd rather have this kind of request posted at aeva.noisen.com but I know... People are lazy  O:)

I sent you a pm with ftp and forum logins.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: karlbenson on January 07, 2009, 09:37:10 PM
Bug in mgconverter_sgl.php

lines 100, 101

// Is it pending?
if ($num > $contet['current_step'])


Should be context not contet

line 129
// Get weather the gallery is installed or not
spelling should be whether not weather :P

line 718
$conversion_urll
has an extra L at the end of the variable.
Same line is also missing a closing </td> tag
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 07, 2009, 11:55:58 PM
I had already done a silent upgrade, download the newer pacakge.

@regex - Thanks for the reports, I'll fix them in the SVN.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 08, 2009, 05:40:20 AM
@Dragooon> Are you scolding me? lol. No, I don't remember adding features in 1.5.3, I only fix stuff... There are still things to fix, you know? I made 9 commits in the last 3 days... Don't you ever read the svn logs? :P
What I mean is, I hope you didn't make a silent update with 1.5.3 material, eh? ;)
And yeah we should definitely release 1.5.3 ASAP now... Too many bugs that should be fixed IMO.

@Dragooon again> I didn't see your converter updates in the SVN so I assume you didn't do them. I applied the changes that Karl suggested, and used the opportunity to rewrite some of the stuff in these blocks.

@Karl> Thanks! This Dragooon's code so you'll have to forgive his English ;) He also made another typo in the comment below the one you reported, lol. ("doesn't exists") It's no biggie. Even SMF has comment typos aplenty ;)

I feel like the bug report flow is never going to end, lol... The real question is, can we add bugs faster than that? ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 08, 2009, 06:08:35 AM
No lol, I didn't do the silent update with your 1.5.3 stuff, just modified the file with the fix, re-packaged and uploaded. I got a different art of silent updating :P. I haven't been getting time to work on gallery, school and stuff, you know :).
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 08, 2009, 10:30:22 AM
Quote from: LinK187 on January 06, 2009, 06:19:08 PM
It's a 1.1.7 forum. The first mod I installed was aeva mainly due to it's alphabetical listing on the mod site. It worked fine. I tested it and it worked. One of the last mods I installed was the smf media gallery. Which also works fine.
Well, it seems like you made a manual install of SMG... It doesn't appear in your packages list, and it is curiously installed (no indenting, etc.)
Also, Aeva was somehow screwed -- the Subs.php file doesn't contain its edits. You probably used a new copy of Subs.php to apply some more manual changes and forgot to use a copy that has Aeva in it.
Considering that your Subs.php only has two edits in it (both related to SMG), and you have dozens of mods installed, let me just say this: Aeva isn't the only mod that isn't going to work correctly! Most of them will fail. Subs.php is one of the most important files for mod authors.

Really, if you're going to do manual installs of a mod, you really want to have some prior knowledge on how to correctly handle multiple versions of a file... :-/
If you install a mod, you need to immediately download locally all of the modified files. If you don't, the mod will be broken as soon as you reupload one of the files it modified.
You're in for a complete reinstall. Which isn't a problem for you I guess, because it's only a test board...

Also, your server doesn't work well in my place. I tried to force uninstalling Aeva and it just stalls forever. What you want to do is uninstall Aeva (not manually!) and install the newest version instead. (5.1.32) It works, I did it.

Gosh, I was joking back when I said "Have you tried turning it off and on again?" at one point. It was just a reference to The IT Crowd.

So, I'll have to get used asking this... Have you tried uninstalling and installing it again?

O:)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: ZeUsSaN on January 08, 2009, 12:38:11 PM
I have installed last version (SMG) 1.5.2, and when I go to the link
../index.php?action=mgallery and ../index.php?action=admin;area=mgallery;sesc=xxx
I see Error:

Unable to load the 'MGallery' template

(It is more in the attached files)
I do not know what to do! Please Help!

Sorry for my bad English... (:
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: KahneFan on January 08, 2009, 01:00:40 PM
1. Are members not allowed to delete their own albums?

2. When I tried to delete an album from admin I received this error...
Quote
Fatal error: require_once() [function.require]: Failed opening required '/Subs-Package.php' (include_path='.:/usr/local/php5/lib/php')
in .../Sources/MGallery-Admin.php on line 607
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 08, 2009, 01:46:43 PM
Quote from: ZeUsSaN on January 08, 2009, 12:38:11 PM
Unable to load the 'MGallery' template
Your installation failed.
Have you tried uninstalling and installing it again?

@KahneFan>
1. I don't think user albums can be deleted. This is one of the issues with user albums. But I'm doing my best to finally merge user albums & general albums in terms of functionality. They should only be separated conceptually (one is for everyone to post in, the other is for their owners), not technically.

2. Redownload from here, and reinstall. (Or update the only changed file.)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: KahneFan on January 08, 2009, 01:53:56 PM
Should "here" have been a link, or do you mean to DL the newest release? I'm currently using 1.5.2
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 08, 2009, 01:59:32 PM
The newest release was silently updated yesterday so you should redownload it from the SMF mod page.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: KahneFan on January 08, 2009, 02:00:57 PM
Will do, thanks!
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: ZeUsSaN on January 08, 2009, 03:13:22 PM
Quote from: Nao 尚 on January 08, 2009, 01:46:43 PM
Your installation failed.
Have you tried uninstalling and installing it again?
I found what a problem was in...
I had 2 forums with one DB.
fashions changed files on the first forum.... and I wanted to put him on the second... right here and there was an error..... thank you all works well...
remarkable fashions!

sorry for my bad English!  :)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on January 08, 2009, 05:38:37 PM
Quote from: Nao 尚 on January 08, 2009, 10:30:22 AM
Quote from: LinK187 on January 06, 2009, 06:19:08 PM
It's a 1.1.7 forum. The first mod I installed was aeva mainly due to it's alphabetical listing on the mod site. It worked fine. I tested it and it worked. One of the last mods I installed was the smf media gallery. Which also works fine.
Well, it seems like you made a manual install of SMG... It doesn't appear in your packages list, and it is curiously installed (no indenting, etc.)
Also, Aeva was somehow screwed -- the Subs.php file doesn't contain its edits. You probably used a new copy of Subs.php to apply some more manual changes and forgot to use a copy that has Aeva in it.
Considering that your Subs.php only has two edits in it (both related to SMG), and you have dozens of mods installed, let me just say this: Aeva isn't the only mod that isn't going to work correctly! Most of them will fail. Subs.php is one of the most important files for mod authors.

Really, if you're going to do manual installs of a mod, you really want to have some prior knowledge on how to correctly handle multiple versions of a file... :-/
If you install a mod, you need to immediately download locally all of the modified files. If you don't, the mod will be broken as soon as you reupload one of the files it modified.
You're in for a complete reinstall. Which isn't a problem for you I guess, because it's only a test board...

Also, your server doesn't work well in my place. I tried to force uninstalling Aeva and it just stalls forever. What you want to do is uninstall Aeva (not manually!) and install the newest version instead. (5.1.32) It works, I did it.

Gosh, I was joking back when I said "Have you tried turning it off and on again?" at one point. It was just a reference to The IT Crowd.

So, I'll have to get used asking this... Have you tried uninstalling and installing it again?

O:)

Actually normaly I back up all related files.. I have a full duplicate of the modified files, however, i must have ******ed up with subs.php somewhere... however, i've noticed that the only mod not working right now is aeva.

Another thing i've found, is a lot of times i have to use the option in the packages section to make all files writeable before i can install/uninstall things and sometimes after a mod is installed for it to work right.

I never had to do that with my old clan forum I used to run.

I'll reinstall it, as far as the rest of the forum, once my friend has it all looking how he wants it, i'll be getting a domain for it and doing a fresh install etc..
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 09, 2009, 01:55:59 AM
Quote from: LinK187 on January 08, 2009, 05:38:37 PM
Actually normaly I back up all related files.. I have a full duplicate of the modified files, however, i must have ******ed up with subs.php somewhere... however, i've noticed that the only mod not working right now is aeva.
Well, this isn't the case anymore, eheh...  :P

QuoteAnother thing i've found, is a lot of times i have to use the option in the packages section to make all files writeable before i can install/uninstall things and sometimes after a mod is installed for it to work right.
PHP Safe Mode, eh? That one's a ******... Try to have it disabled.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: bulutcini on January 09, 2009, 02:15:58 AM
Another very useful mod. Thank you!
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on January 09, 2009, 04:50:28 AM
Quote from: Nao 尚 on January 09, 2009, 01:55:59 AM
Quote from: LinK187 on January 08, 2009, 05:38:37 PM
Actually normaly I back up all related files.. I have a full duplicate of the modified files, however, i must have ******ed up with subs.php somewhere... however, i've noticed that the only mod not working right now is aeva.
Well, this isn't the case anymore, eheh...  :P

QuoteAnother thing i've found, is a lot of times i have to use the option in the packages section to make all files writeable before i can install/uninstall things and sometimes after a mod is installed for it to work right.
PHP Safe Mode, eh? That one's a ******... Try to have it disabled.

Yeh thx for fixin the aeva :P

I'll ask my host about safe mode after I pay my bill lol. I'm a couple days late due to me not being payed till the end of the week. :P
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 09, 2009, 12:24:37 PM
Fix for Aeva support!

Problem: you can embed URLs for websites supported by SMG just fine. You can also embed URLs only supported by Aeva, but they won't play when you actually go to the item page.
Solution: add $modSettings to the globals. (Yeah, it rings a bell, eh?)

Open MGallery-Embed.php

Search for the word "global". You should be around line 22 now. Replace the line with:

global $context, $sites, $sourcedir, $modSettings;

(It's just a matter of adding ", $modSettings" to the existing line.)

Fixed!

Suggestion to Dragooon: we should release v1.5.3 this weekend if you have some spare time..... ;)
(I like the idea that my first post as a "Simple Machines Hero" is a stupid bug fix, lol!)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on January 09, 2009, 06:39:07 PM
hmmm this keeps filling up my error log but i can't see any problems with actually using the gallery:

Quote
****   Today at 07:36:53 PM 
99.253.150.120     8dabda64878c0bdc80cd792b01719d11 
http://****/forumtest/index.php?action=viewErrorLog;desc;start=0 
Unable to load the 'MGallery.english-utf8' language file.

I haven't done anything to remedy the situation due to hopes of a quick answer on this forum :P
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Smoky "Rider" Blue on January 09, 2009, 06:46:59 PM
then you need to take a copy of the mgallery.english file and adjust the title to the error ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on January 09, 2009, 06:48:37 PM
Quote from: SmokyBlue on January 09, 2009, 06:46:59 PM
then you need to take a copy of the mgallery.english file and adjust the title to the error ;)

Forgive me if I sound really stupid. Adjust what title?... to the error...
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Smoky "Rider" Blue on January 09, 2009, 07:00:24 PM
go look in you theme files, in the language folder:

find:

mgallery.english.php

make copy of said file.

name it to:

mgallery.english-utf-8.php

upload said new file to the theme you are using.

close ftp.

no more error from that issue
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on January 09, 2009, 07:05:20 PM
Quote from: SmokyBlue on January 09, 2009, 07:00:24 PM
go look in you theme files, in the language folder:

find:

mgallery.english.php

make copy of said file.

name it to:

mgallery.english-utf-8.php

upload said new file to the theme you are using.

close ftp.

no more error from that issue

Cheers, I didn't realize the file was missing... as matter of fact i recall add/editing it manually.. tho i do drink and smoke quite often.. I imagine i did somethin stupid somewhere along the line..
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Smoky "Rider" Blue on January 09, 2009, 07:21:38 PM
glad you sorted it Link  ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on January 09, 2009, 07:52:26 PM
Quote from: NaoPHP Safe Mode, eh? That one's a ******... Try to have it disabled.

My host says php safe mode is not enabled. So I'm not sure what it is really.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: NEMINI on January 10, 2009, 12:39:34 AM
The conversion script for SGP keeps exceeding maximum execution time and fails to complete.  Shame I was hoping to give this a whirl too.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 10, 2009, 12:47:48 AM
What is max_execution time? It shouldn't exceed.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: NEMINI on January 10, 2009, 01:55:34 AM
30 seconds it said in the error message
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 10, 2009, 04:07:09 AM
Quote from: LinK187 on January 09, 2009, 06:39:07 PM
Quote
****   Today at 07:36:53 PM 
99.253.150.120     8dabda64878c0bdc80cd792b01719d11 
http://****/forumtest/index.php?action=viewErrorLog;desc;start=0 
Unable to load the 'MGallery.english-utf8' language file.
We don't provide a UTF8 copy of the language files by default. (I do it for Aeva because Karl did it, and I chose to keep his habits...)
When you choose to use UTF8 for your board, you need to take into account the fact that you're basically changing your language, so you'll have to keep track of all languages files and rename them accordingly.
I realize this is something that should/might be done by SMF (i.e. load the non-UTF8 file if the UTF8 file can't be found), at least for the English language, because basically it only has a 0.1% chance of having contents that differ from the classic English language files.
Actually, this *will* be done starting from SMF2 RC1, thanks to a bug report of mine eheh. (This is when I'm very happy with my current position.  8))
http://dev.simplemachines.org/mantis/view.php?id=2743
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 10, 2009, 04:13:59 AM
(Something to be added to the potential FAQ, maybe?)

Quote from: NEMINI on January 10, 2009, 01:55:34 AM
30 seconds it said in the error message
Max execution time is something that Dragooon worked A LOT on -- he didn't have to, really! And it still failed on my board at one point (I don't remember why), it generated a 500 internal server error, so we worked together on this and we implemented various solutions (variable fine-tuning + on-the-fly recovery) that makes it work for everyone.

Now, solution 1: simply edit your mgconverter_sgp.php file and spot these lines at the very beginning of the file:

$context['max_exec'] = 5;
$context['wait_time'] = 1;

Change the max_exec value to something like 2 (which will make sure only one item is done at a time), and wait_time to something like 3 or 5 (which will give more time to your server to recover -- usually not needed).

Solution 2: if you simply get a 500 Internal error, it didn't exactly fail -- sometimes servers are unstable and will simply not accept the conversion at one specific point in time. Really, what you need to do is simply hit the Refresh button! It will resume conversion exactly where it failed. It might take some time if your server isn't cooperative, but it will eventually work.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: NEMINI on January 10, 2009, 05:12:34 AM
The conversion has been halted to avoid overloading your server. So far, 250 items out of 986 have been converted. The script will automatically resume in 3 second(s).
<refresh>
The conversion has been halted to avoid overloading your server. So far, 500 items out of 986 have been converted. The script will automatically resume in 3 second(s).
<refresh>
<refresh>
<refresh>
<refresh>
<refresh>
The conversion has been halted to avoid overloading your server. So far, 486 items out of 986 have been converted. The script will automatically resume in 3 second(s).
<refresh>
The conversion has been halted to avoid overloading your server. So far, 250 items out of 986 have been converted. The script will automatically resume in 3 second(s).
<refresh>
<refresh>
<refresh>
<refresh>
<refresh>
The conversion has been halted to avoid overloading your server. So far, 486 items out of 986 have been converted. The script will automatically resume in 3 second(s)

and there is sits refreshing and making no progress.  I've tried several different values and whilst the numbers change a bit it always gets to a certain point before completion and starts going backwards
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 10, 2009, 05:16:58 AM
It actually goes *backwards* in the list?!

Also, <refresh> -- is it an automatic or manual refresh?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: NEMINI on January 10, 2009, 05:19:31 AM
auto refresh sorry.  and yes it gets to a certain point and goes backwards
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: smurfyforum on January 10, 2009, 06:09:53 AM
Is www.smf-media.com down??
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 10, 2009, 06:10:44 AM
Seems fine to me.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 10, 2009, 06:18:51 AM
Quote from: NEMINI on January 10, 2009, 05:19:31 AM
auto refresh sorry.  and yes it gets to a certain point and goes backwards
Is it really doing ~250 items at a time...? Are you putting a high max_exec time? Or are your items, like, 16x16 pixels or something?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 10, 2009, 10:09:54 AM
I really don't get it...
SELECT MAX(id_media) FROM {db_prefix}mgallery_media
This query allows the script to resume work from the last successful import.
I have no idea how it could go backwards. Are you sure you're using the latest version of the script, along with the latest version of SMG?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: MonoTiz on January 10, 2009, 01:26:37 PM
Hi.
deleteItems() function create conflit with the same function of Blog Community mod (it's the same function name).

I have fix change to smg_deleteItems, but I suggest to dragoon to change the function name for the next realease. Thanks.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 10, 2009, 04:44:13 PM
Interestingly, the issue was already brought up here last week:
http://smf-media.com/community/index.php?topic=456.0
I thought Dragooon had dealt with it, but he hasn't worked on SMG since December 31, so I'll do it myself.

...

Done. Revision 684. Will be in v1.5.3. FYI, I also renamed deleteComments(), just for the sake of consistency.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: ryozo on January 10, 2009, 11:07:15 PM
just one quick question, i had a problem with the gallery album's icon before. (user can upload a high dimension image as icon)

Is it already remedied? thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: NEMINI on January 10, 2009, 11:54:49 PM
Quote from: Nao 尚 on January 10, 2009, 10:09:54 AM
I really don't get it...
SELECT MAX(id_media) FROM {db_prefix}mgallery_media
This query allows the script to resume work from the last successful import.
I have no idea how it could go backwards. Are you sure you're using the latest version of the script, along with the latest version of SMG?

yes and yes.  I did finally get the script to complete changing the sql limit to 1000 instead of 250, however no albums were actually created but the statistics showed the correct number of photos.  Checking the files showed no files actually added to the mgal_data folder.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 11, 2009, 06:10:07 AM
@ryozo> Yes... I fixed that long ago ;)

Quote from: NEMINI on January 10, 2009, 11:54:49 PM
yes and yes.  I did finally get the script to complete changing the sql limit to 1000 instead of 250, however no albums were actually created but the statistics showed the correct number of photos.  Checking the files showed no files actually added to the mgal_data folder.
Can't help further without any FTP+admin account access...
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Bugpac ™ on January 11, 2009, 12:37:49 PM
I can not pull images from my gallery via bbc code Img , Is there something that blocks that in permissions, Have no problems with img unless trying to pull from the gallery.....   2.04
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 11, 2009, 01:19:39 PM
Example URL?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Bugpac ™ on January 11, 2009, 01:29:17 PM
Posting the bbc code below...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fdtsfab.com%2Findex%2FMGalleryItem.php%3Fid%3D128&hash=c431c6f13779909f0d8639dc4cd541d284bbf44b)


Should show ^^^
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Bugpac ™ on January 11, 2009, 01:30:07 PM
Here is the code... Manipulated to show....

img]http://dtsfab.com/index/MGalleryItem.php?id=128[/img
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 11, 2009, 01:31:57 PM
You're using an old version.
That code didn't work all the time.

The version released just after yours (and it's been like that since then) uses the [smg] tag which is simpler and more reliable.

[smg id=128]
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Bugpac ™ on January 11, 2009, 01:33:12 PM
Here is a Img code from my forum attachments....

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fdtsfab.com%2Findex%2Findex.php%3Faction%3Ddlattach%3Btopic%3D798.0%3Battach%3D5526%3Bimage&hash=68e1fad12867c0f5a811a0d252ab7417b7481308)

In the permissions i have guest enabled   

Access the gallery and download items
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Bugpac ™ on January 11, 2009, 01:34:00 PM
Quote from: Nao 尚 on January 11, 2009, 01:31:57 PM
You're using an old version.
That code didn't work all the time.

The version released just after yours (and it's been like that since then) uses the [smg] tag which is simpler and more reliable.

[smg id=128]

so i can just uprgrade to the new version?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 11, 2009, 01:38:08 PM
Yes of course.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Bugpac ™ on January 11, 2009, 01:42:46 PM
Done, now if someone right clicks and trys to stick the url in img code it still wont work correct? How would i img code it to this forum, smg will only work on my forum correct?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 11, 2009, 02:42:15 PM
Just delete the MGalleryItem.php file from your root folder and no one will be able to use it ;)
[smg] only works on your forum.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Bugpac ™ on January 11, 2009, 05:26:24 PM
Quote from: Nao 尚 on January 11, 2009, 02:42:15 PM
Just delete the MGalleryItem.php file from your root folder and no one will be able to use it ;)
[smg] only works on your forum.

Deleting this will allow img coding of urls to offsite?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Minare on January 12, 2009, 01:59:36 AM
Hi

Thank you for this great mod.

Maybe my question will be too classic but I couldn't manage it.

Is there any way to show the recent or random added images on my main forum page ?

I mean In this (http://www.minare.net/forum/index.php?action=mgallery) page for example, there are recently added elements, I want this section to be seen on the main page.


Possible ?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 12, 2009, 03:10:10 AM
Quote from: Bugpac ™ on January 11, 2009, 05:26:24 PM
Deleting this will allow img coding of urls to offsite?
If you want to enable other sites to link your images, then keep that file and tell them to use it.
Regarding your server error with the MGalleryItem.php file use, make sure it is correctly chmodded.

@Minare> you have to add this manually. We're not supporting this for now but it's easily done with the getMediaItems() function. Just look into smf-media.com for some examples.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: tonyluzzi on January 12, 2009, 10:09:39 AM
I just added SMG to my website (http://www.lethaldosageguild.com/forum).  The gallery appears to function fine, but I cannot get the BBC code to work in my forums.  I've tried it with both my site's theme and the default.  I don't know if there is a conflict with Simple Portal or not. The only error in the log is the Utf8 language error. If anyone can help, much appreciated.

Fuzzy
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on January 12, 2009, 10:15:59 AM
Quote from: tonyluzzi on January 12, 2009, 10:09:39 AM
I just added SMG to my website (http://www.lethaldosageguild.com/forum).  The gallery appears to function fine, but I cannot get the BBC code to work in my forums.  I've tried it with both my site's theme and the default.  I don't know if there is a conflict with Simple Portal or not. The only error in the log is the Utf8 language error. If anyone can help, much appreciated.

Fuzzy

Is it a file in the themename/languages folder?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: needhelpplease on January 12, 2009, 05:09:38 PM
I've  error

QuoteExecute Modification     ./Sources/Load.php     Test failed


how to solve it
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 12, 2009, 05:12:49 PM
lol, you're not even saying whether it's an install or uninstall...

Actually you're saying pretty much nothing :D
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on January 12, 2009, 05:13:10 PM
Quote from: needhelpplease on January 12, 2009, 05:09:38 PM
I've  error

QuoteExecute Modification     ./Sources/Load.php     Test failed


how to solve it

Modify that file manually.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: needhelpplease on January 12, 2009, 05:37:53 PM
ok cool thank you
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 12, 2009, 05:46:06 PM
Almost done with the Danish translation. Where and how do you want it?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Mai Pen Rai on January 12, 2009, 05:58:59 PM
Is there any way to import all attached pictures from the forum itself to the gallery?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 12, 2009, 11:54:03 PM
@IQgeek - No, not ATM.

@akhyne, if you wish I can add you to the translation group in http://smf-media.com, otherwise you can e-mail me at my e-mail address in the profile here.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: psynx on January 13, 2009, 01:30:57 AM
hello,

i hope you guys can help me with my little problem.

i am using SMFMediaGallery-1.5.1 and want to upgrade it to the latest SMFMediaGallery-1.5.2

problem is in my admin>package setting there isn't 'uninstall' in the SMFMediaGallery-1.5.1 mod.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Lonewood on January 13, 2009, 01:45:20 AM
I am using this mod - LOVE IT !! but have a couple of questions.  Have quickly read this thread but it is large so may have missed something relevant.

I'm using 1.5.1 on SMF 1.1.7

Some of my users have uploaded some photos but then later created their own album and want to move their images to their album.  I'm probably really thick but I couldnt see how to do this?  I'll keep looking for an answer but if someone can point me in the right direction, I'd appreciate it.

I have a certain user group with the permission to approve their own images but I'd like the process to be automatic.  I ticked auto-approve but it doesnt seem to do this - you submit the image and then have to click "Approve".  This also applies to me as an administrator.  Have I got a setting wrong somewhere?

Should I be upgrading to 1.5.2?  I'm happy with how it is working now but maybe a good reason to upgrade.

cheers
Leah

www.aussiesapphire.com.au/forum
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: fords8 on January 13, 2009, 01:47:59 AM
Quote from: psynx on January 13, 2009, 01:30:57 AM
hello,

i hope you guys can help me with my little problem.

i am using SMFMediaGallery-1.5.1 and want to upgrade it to the latest SMFMediaGallery-1.5.2

problem is in my admin>package setting there isn't 'uninstall' in the SMFMediaGallery-1.5.1 mod.

This may help you: http://www.simplemachines.org/community/index.php?topic=271942.0
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 13, 2009, 01:48:33 AM
what is your SMF version?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: tonyluzzi on January 13, 2009, 03:58:31 AM
Quote from: tonyluzzi on January 12, 2009, 10:09:39 AM
I just added SMG to my website (http://www.lethaldosageguild.com/forum).  The gallery appears to function fine, but I cannot get the BBC code to work in my forums.  I've tried it with both my site's theme and the default.  I don't know if there is a conflict with Simple Portal or not. The only error in the log is the Utf8 language error. If anyone can help, much appreciated.

Fuzzy

I just checked under my Admin:Forum:Posts & Topics:BBC and [smg] is not listed as a possible code.  Even though it was a successful Automatic install, I just rechecked all the files from the manual install list and all the adjustments are there.  The mgal directory has been adjusted to 777. and I made a new utf8 language file.

So, I'm at a loss as to what could be causing the [smg] code not to work.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 13, 2009, 04:09:06 AM
Quote from: tonyluzzi on January 13, 2009, 03:58:31 AM
I just checked under my Admin:Forum:Posts & Topics:BBC and [smg] is not listed as a possible code.
That's because it's not a REAL bbc tag. SMF doesn't support self-closing tags with parameters so I wrote my own code for that, and it turned out to be faster so I kept it that way.
It can't be disabled through the BBC admin area, but you can turn it off in the SMG admin area though.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: tonyluzzi on January 13, 2009, 04:44:36 AM
Thanks for the help...  Tried several new topic posts and it worked there fine.  Must have just been the one topic I tried to make.  It had a unclosed code block which must have thrown everything off.

Everything works great now.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 13, 2009, 07:02:55 AM
Quote from: Dragooon on January 12, 2009, 11:54:03 PM
@akhyne, if you wish I can add you to the translation group in http://smf-media.com, ...

Please add me.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: locau on January 14, 2009, 01:10:18 PM
Hello there,

I'm looking for a way to integrate this to my forum but i have a few questions that i wonder if it's possible or "in the way" of behind made....

1.  Is it possible to integrate a paymente gateway to buy the user pictures?
2.  Is there any plans to create a watermark option for the pictures?

The ideia is to integrate something similar to deviantart.com into my forum, where user share there knowledge about photography and can earn some money.

Thanks for all the work in this mod, it looks great
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 14, 2009, 02:06:11 PM
What you're asking for, basically, is a mod on top of the mod.
Moreover, a mod that earns you money.

So let's be blunt: are you willing to pay for these features?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: midiof[f] on January 14, 2009, 05:17:38 PM
Quote from: Lonewood on January 13, 2009, 01:45:20 AM
I am using this mod - LOVE IT !! but have a couple of questions.  Have quickly read this thread but it is large so may have missed something relevant.

I'm using 1.5.1 on SMF 1.1.7

Some of my users have uploaded some photos but then later created their own album and want to move their images to their album.  I'm probably really thick but I couldnt see how to do this?  I'll keep looking for an answer but if someone can point me in the right direction, I'd appreciate it.

I have a certain user group with the permission to approve their own images but I'd like the process to be automatic.  I ticked auto-approve but it doesnt seem to do this - you submit the image and then have to click "Approve".  This also applies to me as an administrator.  Have I got a setting wrong somewhere?

Should I be upgrading to 1.5.2?  I'm happy with how it is working now but maybe a good reason to upgrade.

cheers
Leah

www.aussiesapphire.com.au/forum
I have the same problem with m.gallery
smf v.1.1.7
smg v.1.5.1
auto approve dont work

smg v.1.5.2 i cant upload:
Quote
The package you tried to upload either is not a valid package or has become corrupted.

i installed a 12 new plugins but

i cant uninstall v1.5.1 :
Quote
   ./Sources/Load.php     Test failed

pls any manual repair approve v.1.5.1 --> v.1.5.2 ?

or
i'll
- uninstall other plugins (12)
- then uninstall v.1.5.1
- manual upload archive smg
- then install v1.5.2
- install other plugins
?
or i'll repair unistall code in smg (xml)?

or i'll repair Load.php ?

which variant repair will be better
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Opolop on January 14, 2009, 11:34:30 PM
Helloooo

This has most probably been answered somewhere else... BUT! I can't find anything that helps me...

I've downloaded this, works perfectly, no problems at all... I just can't seem to get it to work with my current theme ---> http://www.simplemachines.org/community/index.php?topic=284319.0 (http://www.simplemachines.org/community/index.php?topic=284319.0)

I did what it said on the manually install guide you have on this website, but admittedly it didnt really make sense and what I was looking for wasnt there so the majority of my poking about was just pure guess work...

The gallery is still on my forum, I just don't know how to make that extra tab up top to link to it... in the style of the current theme >.<
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 14, 2009, 11:55:39 PM
Attach the index.template.php of your theme.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Opolop on January 15, 2009, 09:59:17 AM
:)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: midiof[f] on January 15, 2009, 10:00:41 AM
i changed manualy a load.php file and then i uninstalled m.gallery1.5.1 OK :)
then i uploaded manual package m.gallery1.5.2 and installed this mod
it work perfekt !!

pls i have question:

i cant upload  Aeva and media gallery mods with admin section:
Quote
The package you tried to upload either is not a valid package or has become corrupted.

pls where i have  problem ? other mods ben uploaded successful
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 15, 2009, 10:03:07 AM
Did you get Aeva from the SVN server?
Then you'll need to unzip & rezip it.
I'd recommend using the SM.org mod site version for now. SVN versions are usually untested.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Burke ♞ Knight on January 15, 2009, 11:22:36 AM
I just had to uninstall SMG from one of my sites. Everything was working great, until today, when all thumbnails and images vanished. No idea how, but that's what I saw when go to look at anything there.

For that site, I'm just going to have the members do the images in posts, since in all reality, that site does not even really need a gallery. However, figured I'd let you know, in case this happens to other people.

SMG 1.5.2 and SMF 2.0 Beta 4.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 15, 2009, 07:06:40 PM
Just installed and love this mod. Just skipped a Coppermine Gallery for this one

Bu I have a few issues:
When extending the "Max [smg] tags per page", it takes no effect. Still only 10 images are shown. The rest just says the limit is reached.

When I am viewing an image in the gallery, I miss a link to the album that the image is within. Annoying if you want a full view of the album.

It should be possible in admin center of SMG to dissallow users to make their gallery public to guests.

The mass upload is brilliant. I really like the way it works. But it could also be nice to be able to add the comments right away, as each step to do it afterwards is pretty long for each image.

How does users delete their own albums. Is this not possible?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 16, 2009, 04:39:56 AM
Quote from: akyhne on January 15, 2009, 07:06:40 PM
Just installed and love this mod.
How can you NOT love whatever I work on?  O:)

QuoteJust skipped a Coppermine Gallery for this one
Me too :D

QuoteBu I have a few issues:
When extending the "Max [smg] tags per page", it takes no effect. Still only 10 images are shown. The rest just says the limit is reached.
I think it's a known issue from earlier versions... Dragooon, didn't you release a silent update or something with the fix at one point?

(It's just a global variable that needs to be put back where it should be ;))

QuoteWhen I am viewing an image in the gallery, I miss a link to the album that the image is within. Annoying if you want a full view of the album.
You mean when you're in an item page...? The album link is in the usual linktree ;)

QuoteIt should be possible in admin center of SMG to dissallow users to make their gallery public to guests.
It's a very specific setting you're asking for... We're trying to keep away from anything that can't be immediately seen as "useful" by users. I really don't see the point in this feature, that's what I mean.

QuoteThe mass upload is brilliant. I really like the way it works.
Yeah, it was a real pain to implement :) It kept us awake for a few weeks until we finally settled on a specific implementation that worked for everyone, lol... We're very happy with this one. (And congrats to Dragooon for keeping up with the Javascript debugging! Kiddo's got it all!)

QuoteBut it could also be nice to be able to add the comments right away, as each step to do it afterwards is pretty long for each image.
Add the comments right away....? What do you mean?

QuoteHow does users delete their own albums. Is this not possible?
Not for now. It's in my to-do-list though (I posted it a few pages earlier). I need a few more days/weeks on Aeva to make sure it's solid enough to be left alone for some time, and then I'll focus back on SMG.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 16, 2009, 05:27:09 AM
Quote from: Nao 尚 on January 16, 2009, 04:39:56 AM
You mean when you're in an item page...? The album link is in the usual linktree ;)
Ah, of course. But not that obvious for people. I didn't think of it, and I know SMF

QuoteIt should be possible in admin center of SMG to dissallow users to make their gallery public to guests.
Quote from: Nao 尚 on January 16, 2009, 04:39:56 AM
It's a very specific setting you're asking for... We're trying to keep away from anything that can't be immediately seen as "useful" by users. I really don't see the point in this feature, that's what I mean.
Yeah, but if you don't want your server to be used for filesharing, or as in my case it's a family forum with private images; people can suddently without thinking of it, share private images.

QuoteBut it could also be nice to be able to add the comments right away, as each step to do it afterwards is pretty long for each image.
Quote from: Nao 尚 on January 16, 2009, 04:39:56 AM
Add the comments right away....? What do you mean?
When you mass upload images, you can right away give the images a title while uploading. Every time a new image is uploaded, you can name it. As uploading for most people takes time, why not be able to add the description right away. Just i the form of a single line. Most of the time people don't write that much.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 16, 2009, 05:51:15 AM
Quote from: akyhne on January 16, 2009, 05:27:09 AM
Ah, of course. But not that obvious for people. I didn't think of it, and I know SMF
I don't really see where we could have put it...
Also, how do you go back to a board while in a topic, if not using the linktree...?
It becomes the logical way to go there, after a while...

QuoteYeah, but if you don't want your server to be used for filesharing, or as in my case it's a family forum with private images; people can suddently without thinking of it, share private images.
From the day they start posting their own user albums, and they see the Guest option, it's their responsability to know what they're posting, and where.
You need to give users a sense of freedom if you want them to use your forum. :)

QuoteWhen you mass upload images, you can right away give the images a title while uploading. Every time a new image is uploaded, you can name it. As uploading for most people takes time, why not be able to add the description right away. Just i the form of a single line. Most of the time people don't write that much.
Yeah, I thought about that, but I think it would make the upload form unnecessarily complex. It might scare users away to have two input fields for each item.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 16, 2009, 06:00:41 AM
Quote from: Nao 尚 on January 16, 2009, 05:51:15 AM
Yeah, I thought about that, but I think it would make the upload form unnecessarily complex. It might scare users away to have two input fields for each item.

I think the users that are good enough to use and understand the function, will know what to do or quickly learn.

As for the option about making images etc. available for guests, it should at least as standard be set to "No". Then people will have to choose wether to make their images available by links to external users, or they want privacy. I will have to find out how to change it to "No" in this specific forum I'm building.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 16, 2009, 06:06:41 AM
Setting it to "No" by default:

Open MGallery-Sub.php
Line 720:

      $access = array(-1, 0, 1);

Replace with:

      $access = array(0, 1);

Should work...
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: moumoute83 on January 16, 2009, 06:48:41 AM
Hi! I'm using your last version of your mod et and it works great.
However, I've some troubles with adding audio files in the gallery which have a great size (generally bigger than 7 MB). I tried to change the file size in the admin panel but nothing happens, I've the same error "please contact the administrator...blabla". Maybe I'm stupid :)
Is there any secret option (in a secret subfolder in a secret php file) ?

Thanks in advance.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 16, 2009, 06:58:49 AM
Salut Moumoute du 83, ça c'est du pseudo...

The usual suspect: max_upload_size and max_post_size settings in your php.ini file. You need to set them to a higher value (such as 32M). If you don't have access to your php.ini file, then try setting them through a .htaccess file. (Google est ton ami.)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 16, 2009, 06:59:57 AM
Quote from: Nao 尚 on January 16, 2009, 06:06:41 AM
Setting it to "No" by default:

Open MGallery-Sub.php
Line 720:

      $access = array(-1, 0, 1);

Replace with:

      $access = array(0, 1);

Should work...

Seems to work excellent.

A few more issues:
When adding an image, you have the option to add a title, then the description and finally the image. That's a reverse order to do things. Of course people will do it the other way around, but it's a little odd.
I can see the layout looks better as it is now, but still..

There are a few layout errors in the admin part. Probably just a .css error. It's the same few spots the layout is broken. Image attached..
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 16, 2009, 07:15:45 AM
Quote from: akyhne on January 16, 2009, 06:59:57 AM
A few more issues:
When adding an image, you have the option to add a title, then the description and finally the image. That's a reverse order to do things. Of course people will do it the other way around, but it's a little odd.
Lol... Never really thought about that. It's a valid request, though ;)

QuoteThere are a few layout errors in the admin part. Probably just a .css error. It's the same few spots the layout is broken. Image attached..
I don't use default layouts so I wouldn't know. But it's already been reported to the bug tracker, AFAIK.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Birder on January 17, 2009, 05:13:14 AM
Hi

First thanks for a great mod

I am using SMF 1.1.17 and need custom profile fields so must go to SMF 2.0

When  i upgrade i have to remove and reinstall all mods including yours,

What instructions do i need to follow so i can get my gallery back on the new version, is there a backup gallery option and restore

many thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 17, 2009, 07:00:08 AM
You just need to re-install after upgrading. Make sure to not remove the mgal_data folder or mgallery tables to keep your data intact.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Birder on January 17, 2009, 11:14:50 AM
Thanks so much for such a quick answer, i will try it after midnight
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 17, 2009, 01:17:37 PM
Quote from: Nao 尚 on January 16, 2009, 04:39:56 AM
QuoteWhen I am viewing an image in the gallery, I miss a link to the album that the image is within. Annoying if you want a full view of the album.
You mean when you're in an item page...? The album link is in the usual linktree ;)

Well, actually when you're viewing recent images, there's no link to the album the image belongs to. The link could be in the buttom toolbar.

My issue:
Just mass uploaded some images. Then clicked into the first to edit description. After saving I was thrown back to the image, but because I had clicked in recent images list, I was still in recent images list. So to edit description for the other mass uploaded images, I have to manually browse to the album and edit every images desc. there.
So I really think it would be nice with a link to each images album when viewing it (preview).
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on January 17, 2009, 02:54:09 PM
Quote from: akyhne on January 17, 2009, 01:17:37 PM
Quote from: Nao 尚 on January 16, 2009, 04:39:56 AM
QuoteWhen I am viewing an image in the gallery, I miss a link to the album that the image is within. Annoying if you want a full view of the album.
You mean when you're in an item page...? The album link is in the usual linktree ;)

Well, actually when you're viewing recent images, there's no link to the album the image belongs to. The link could be in the buttom toolbar.

My issue:
Just mass uploaded some images. Then clicked into the first to edit description. After saving I was thrown back to the image, but because I had clicked in recent images list, I was still in recent images list. So to edit description for the other mass uploaded images, I have to manually browse to the album and edit every images desc. there.
So I really think it would be nice with a link to each images album when viewing it (preview).

Perhaps an easier approach would be a mass comment page...
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Succubus Evaligan on January 17, 2009, 04:43:50 PM
Forum version SMF 1.1.7
SMF Media Gallery 1.5.2

When I try to delete an album.... I get this error...
Quote
Fatal error: require_once() [function.require]: Failed opening required '/Subs-Package.php' (include_path='.;C:\php5\pear') in C:\AppServ\www\smf\Sources\MGallery-Admin.php on line 607

____________________________________________________________
I have a liitle problem using Simple Portal with the AEVA mod 5.36 and the SMF Media Gallery 1.5.2... :'(
I update both and all works fine until... I try to add a new album... after many test I see some relation conflict between mods. So I see what mods are making that error and I find this.

You can check in a fresh Install  SMF 1.1.7 Only with 3 mods installed.
Quote
Browse Packages
Modification Packages
   Mod Name    Version    
1.    SimplePortal    2.1.1    [ Uninstall ] [ List Files ] [ Delete ]
2.    SMF Media Gallery    1.5.2    [ Uninstall ] [ List Files ] [ Delete ]
3.    Aeva ~ Auto-Embed Video & Audio    5.1.36    [ Uninstall ] [ List Files ] [ Delete ]
When I click in Add General Album. I get this error...
Quote
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 393216 bytes) in C:\AppServ\www\smf\Sources\Load.php(1744) : eval()'d code on line 719

If I uninstall AEVA 5.1.36 I can add again new albums... but I don't want uninstall AEVA because I love this mod and I want use both the gallery and the aeva in my site. Also If I uninstall the Simple Portal 2.1.1. the gallery works perfect with the aeva.

Also with the new update of the AEVA 5.1.42 is the same.
______________________________________________________________

Another strange error is when I  have these mods working together in SMF 1.1.7 fresh install.
Quote
Browse Packages
Modification Packages
   Mod Name    Version    
1.    SimplePortal    2.1.1    [ Uninstall ] [ List Files ] [ Delete ]
2.    SMF Media Gallery    1.5.2    [ Uninstall ] [ List Files ] [ Delete ]
3.    Aeva ~ Auto-Embed Video & Audio    5.1.36    [ Apply Mod ] [ List Files ] [ Delete ]
4.    HacksPark shoutBox    1.2.1    [ Uninstall ] [ List Files ] [ Delete ]
5.    Age and Gender Board Filter    1.2.1    [ Uninstall ] [ List Files ] [ Delete ]
6.    Ultimate Profile    0.8.5    [ Uninstall ] [ List Files ] [ Delete ]

I get this error when I go to the profile and click in any of these links of SMG...
Gallery
Summary
View items
View comments
Quote
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 393216 bytes) in C:\AppServ\www\smf\Sources\Load.php(1762) : eval()'d code on line 535
This is very strange...
If I uninstall the Age and Gender Board Filter    1.2.1 these links of the SMG in the profile works normally.
If I uninstall the Ultimate Profile    0.8.5 these links of the SMG in the profile works normally too...
well If I uninstall the SMF Gallery 1.5.2 the other two mods works without problems in the profile area because the error is when are the SMG in the profiles.
But I want that all mod works together in my forum...

What I need change?

Thanks.


_____________________________________________________________
I leave the list of all the mods mentioned here.

http://custom.simplemachines.org/mods/index.php?mod=1104 <-- version 2.1.1
http://custom.simplemachines.org/mods/index.php?mod=977  <-- version 5.1.36.
http://custom.simplemachines.org/mods/index.php?mod=1365 <--version 1.5.2
http://custom.simplemachines.org/mods/index.php?mod=1260 <--version 1.2.1
http://www.simplemachines.org/community/index.php?topic=183574.0 <--version 0.85
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 17, 2009, 04:47:01 PM
Well obviously you don't have enough RAM in the basic php process (you have 8M and you probably need 12M at least.)
You should ask your host to give you a bit more, or explain you how to augment the quantity.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Succubus Evaligan on January 17, 2009, 04:55:13 PM
Quote from: Nao 尚 on January 17, 2009, 04:47:01 PM
Well obviously you don't have enough RAM in the basic php process (you have 8M and you probably need 12M at least.)
You should ask your host to give you a bit more, or explain you how to augment the quantity.
Where I change that option? :o

So in my forum that is in the http://yurilandia.net/foro-yuri/
I need ask to my host for more RAM memory, right?

But in my local forum?
My PC has a 1GB in RAM.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 17, 2009, 05:01:22 PM
It's a setting in php.ini, a setting at your host (for some in your admin center), or a setting you in some case can adjust in a .htaccess file in the root of your forum.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Succubus Evaligan on January 17, 2009, 05:11:56 PM
Quote from: akyhne on January 17, 2009, 05:01:22 PM
It's a setting in php.ini, a setting at your host (for some in your admin center), or a setting you in some case can adjust in a .htaccess file in the root of your forum.
Let me see... a .htaccess file in the root of my forum.

C:\AppServ\www\smf\
I see a .htmlaccess in C:\AppServ\www\smf\Packages
another .htmlaccess in C:\AppServ\www\smf\attachments

but I don't find none in C:\AppServ\www\smf\
Sorry I am noob :'( please explain step by step

In C:\AppServ\php5
I found two files
php.ini-dist and php.ini-recommended

Edit...
_________________________________________________
Quote from: Nao 尚 on January 17, 2009, 04:33:01 PM
@Succubus> There's already an official Spanish version here:
http://site.noisen.com/aeva-trans/5067/traduccion-al-espanol-spanish-translation-v-5-1-32/
Although dannbass hasn't been seen on the site for a few weeks now... So I guess you could update his version or something. Just post your file there.
About your problem -- can you remind exactly what's going on?
If I remember correctly. I had a little problem... when I wanted to add a new ábum.
I wanted to see was what was causing the error. So I installed a new forum 1.1.7 for testing.

First. I installed Install SMF 1.1.7
http://s1.subirimagenes.com/albums/112502instalation.jpg
After I installed SMF Media Gallery 1.5.2 without errors
http://s1.subirimagenes.com/albums/112503install-gallery-succ.jpg
http://s1.subirimagenes.com/albums/112510install-gallery-succ.jpg
http://s1.subirimagenes.com/albums/112505add-new-album-1.jpg
http://s1.subirimagenes.com/albums/112504add-images-in-album.jpg
http://s1.subirimagenes.com/albums/112506add-new-album-2.jpg
http://s1.subirimagenes.com/albums/112504add-images-in-album.jpg
Well I don't have problem creating new albums and adding images but...
http://s1.subirimagenes.com/albums/112509error-deleting-album.jpg
http://s1.subirimagenes.com/albums/112508error-deleting-album.jpg
I can't delete the album. But all images are deleted but the album is listed in gallery.
_____________________________________________________
After I installed aeva without errors...
http://s1.subirimagenes.com/albums/112511install-aeva-success.jpg
http://s1.subirimagenes.com/albums/112512aeva-works-perfect.jpg
well works fine.

We only have now two mods installed in the forum.
http://s1.subirimagenes.com/albums/112514two-mods-installed.jpg

After I installed Simple Portal...
http://s1.subirimagenes.com/albums/112516install-simeportal-s.jpg
http://s1.subirimagenes.com/albums/112517portal-working.jpg
without problems but...
when I go to the gallery and try to create a new album... this error appears
http://s1.subirimagenes.com/albums/112518error-creating-album.jpg

Only 3 mods installed in SMF and the forum had problems with the memory?
http://s1.subirimagenes.com/albums/112515only-3-mods-installe.jpg

If I uninstall AEVA the gallery works fine again and I cann add new albums. If I uninstall Simple Portal the gallery works fine again. But I want have the portal, the gallery and aeva working fine at the same time.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 17, 2009, 11:00:04 PM
You need to open php.ini of your local server and increase memory_limit to 32 M.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Mystery? on January 17, 2009, 11:46:36 PM
I have 2 problems.

- I can't mass upload video(s). The add file works, but the upload button, doesn't do anything. It makes it look like its working, but no progress is made in the uploading because all I see is 0% for overall progress and current file progress.

- However, one of my members uploaded a video and its a .wmv. When I try to view it, it says:

Sorry, you are not allowed to view this file. Make sure you are connected to the server.

_______________

I think my uploaded doesn't work.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 17, 2009, 11:51:24 PM
Anything in error log? What are the size of files? What is upload_max_filesize set as?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Mystery? on January 18, 2009, 12:09:39 AM
Quote from: Dragooon on January 17, 2009, 11:51:24 PM
Anything in error log? Checking for errors is done. No errors found!

What are the size of files? 11,841 KB

What is upload_max_filesize set as? 200,000 KB (Its high because my website has unlimited harddrive and bandwidth)


I don't know much about html and coding except finding and replacing codes and going through files.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 18, 2009, 01:30:24 AM
First of all, nothing is unlimited, second can you send me a link to php info? Third, I meant Maintenance > Error log not Gallery's Find error function.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Succubus Evaligan on January 18, 2009, 05:33:39 AM
Quote from: Dragooon on January 18, 2009, 01:30:24 AM
First of all, nothing is unlimited, second can you send me a link to php info? Third, I meant Maintenance > Error log not Gallery's Find error function.
thanks Dragoon, Nao and all other who help me.
I installed the PHP Info mod
http://custom.simplemachines.org/mods/index.php?mod=574

I changed the php.ini
Quote
PHP Version 5.2.3
System    Windows NT MORRIGAN 5.1 build 2600
Build Date    May 31 2007 09:36:39
Configure Command    cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
Server API    Apache 2.0 Handler
Virtual Directory Support    enabled
Configuration File (php.ini) Path    C:\WINDOWS
Loaded Configuration File    C:\WINDOWS\php.ini
PHP API    20041225
PHP Extension    20060613
Zend Extension    220060519
Debug Build    no
Thread Safety    enabled
Zend Memory Manager    enabled
IPv6 Support    enabled
Registered PHP Streams    php, file, data, http, ftp, compress.zlib
Registered Stream Socket Transports    tcp, udp
Registered Stream Filters    convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*
.
.
.
max_execution_time   30   30
max_input_nesting_level   64   64
max_input_time   60   60
memory_limit   32M   32M (I change the limit of 8MB to 32MB)
open_basedir   no value   no value
output_buffering   no value   no value
output_handler   no value   no value
post_max_size   8M   8M
precision   12   12
realpath_cache_size   16K   16K
Now everything seems to work well. I can add albums without any problems with the 3 mods working together.

The only problem that has not been resolved is when I delete an album.
Quote
Fatal error: require_once() [function.require]: Failed opening required '/Subs-Package.php' (include_path='.;C:\php5\pear') in C:\AppServ\www\smf\Sources\MGallery-Admin.php on line 607
http://s1.subirimagenes.com/albums/112509error-deleting-album.jpg
http://s1.subirimagenes.com/albums/112508error-deleting-album.jpg

All images are deleted from the album but the album is not deleted.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 18, 2009, 07:45:44 AM
Thats a known issue, AFAIK I did a silent update for this, redownload the file and overwrite the MGallery-Admin.php with the one in the package.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 18, 2009, 07:53:36 AM
What purpose does the "Move" in admin center have? When I click on it when viewing the list of user albums, I just get a blank album page.

Suggestion: A possability for admins to be able to create albums for the users. So when I get a new user, I can create a standard album for that user.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 18, 2009, 12:56:37 PM
How do I get FFMPEG to work with the mod? is it a future option?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 18, 2009, 01:19:18 PM
Do you have it installed as well as the PHP mod for it(FFMPEG-PHP)?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 18, 2009, 02:18:44 PM
Hmm, as a mod?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Kindred on January 18, 2009, 03:48:22 PM
no... like GD and ImageMagik, they are server installed, typically done by your server admin (if you have a dedicated server) or host (if you have a shared host server)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Mystery? on January 18, 2009, 03:57:15 PM
Quote from: Dragooon on January 18, 2009, 01:30:24 AM
First of all, nothing is unlimited, second can you send me a link to php info? Third, I meant Maintenance > Error log not Gallery's Find error function.

How do I get PHP info? The mod the guy below you talks about it. But it won't install on my forum because its corrupted or not compatible with my version of smf.

--------

Oh and the first time I tried to install the mod. The load.php file said test failed. But after I went and manually fixed some stuff in it. It said test successful.

--------

Okay this is what it says when I look at my error log (Its not in order). It was after I uninstalled the mod, though I reinstalled it:

2: unlink(MGallery.french.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/mystery/public_html/Sources/Subs-Package.php
Line: 1047

and

8: Undefined offset: 1
File: /home/mystery/public_html/Sources/Subs-Aeva-Admin.php
Line: 112

and

8: Undefined index: destination
File: /home/mystery/public_html/Sources/Subs-Package.php
Line: 971

and

2: unlink(MGallery.english.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/mystery/public_html/Sources/Subs-Package.php
Line: 1047

and

2: unlink(MGallery.template) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/mystery/public_html/Sources/Subs-Package.php
Line: 1047

and

2: unlink(MGallery-Admin.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/mystery/public_html/Sources/Subs-Package.php
Line: 1047

and

2: unlink(Subs-MGallery.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/mystery/public_html/Sources/Subs-Package.php
Line: 1047

and

2: unlink(MGallery-Sub.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/mystery/public_html/Sources/Subs-Package.php
Line: 1047

and

2: unlink(MGallery.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/mystery/public_html/Sources/Subs-Package.php
Line: 1047
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 18, 2009, 04:01:18 PM
Quote from: Kindred on January 18, 2009, 03:48:22 PM
no... like GD and ImageMagik, they are server installed, typically done by your server admin (if you have a dedicated server) or host (if you have a shared host server)

Yeah, I just figured it out. Actually FFMPEG should be installed on my server (Dreamhost) as standard on the address /usr/bin/ffmpeg, but it's not there.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: coucnilhomeswap on January 18, 2009, 04:56:25 PM
hi i have successfully installed this but when i try to upload an image as a tester i get this message "An error happened during the upload process, please try again or contact the administrator. "

can anyone help
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Özgür on January 18, 2009, 05:11:07 PM
Quote from: alanrobinsonleigh on January 18, 2009, 04:56:25 PM
hi i have successfully installed this but when i try to upload an image as a tester i get this message "An error happened during the upload process, please try again or contact the administrator. "

can anyone help

Go to mgallery admin please look file path. is file path true ?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: coucnilhomeswap on January 18, 2009, 05:21:37 PM
im in gallery admin and i cant find what you want me to look for. im in configureation.

Go to mgallery admin please look file path. is file path true ?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Özgür on January 18, 2009, 05:25:39 PM
Quote from: alanrobinsonleigh on January 18, 2009, 05:21:37 PM
im in gallery admin and i cant find what you want me to look for. im in configureation.

Go to mgallery admin please look file path. is file path true ?

Im used turkish language but tabs same english version. look attachment.

Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: coucnilhomeswap on January 18, 2009, 05:38:30 PM
everything on that image matchs my settings. were is the upload file as i can not find one anywhere
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: coucnilhomeswap on January 18, 2009, 05:45:42 PM
does the mgal_data folder need to be writable or not
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: coucnilhomeswap on January 18, 2009, 05:52:08 PM
thanks mate. i had 2 problems which i solved. one was file ownership and the file one you solved. thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Özgür on January 18, 2009, 05:59:39 PM
not flood please. mgal_data need 755 but, committed to your server.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 18, 2009, 08:21:37 PM
A tiny "bug": When repporting an item, the time of the report is the server time, not the "real" time (admins time).
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: magarto on January 18, 2009, 08:25:23 PM
Mistery is right.
I am spanish and i have the same error and most times upload button do not work and also is not possible to upload files with the mass uploader.
I have a error more (which makes me not possible to upload files even if i set permissions and owners rightly to tmp directory):

2: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for /home2/salsamad/public_html/mgal_data/tmp/2009-01-18.avi
Archivo: /home2/salsamad/public_html/Sources/Subs-MGallery.php
Línea: 2111


I have attached a screenshot with the same error with a lot of users
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Succubus Evaligan on January 18, 2009, 09:09:23 PM
Quote from: Dragooon on January 18, 2009, 07:45:44 AM
Thats a known issue, AFAIK I did a silent update for this, redownload the file and overwrite the MGallery-Admin.php with the one in the package.
Thanks a lot. All works fine in the gallery now.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Mystery? on January 19, 2009, 12:09:56 AM
Hey Dragoon.

Can you fix my problem by registering on my forum. I will make you an admin on my forum. Please test if the upload works and try to fix the problem from there if it doesn't.

The link is in my signature.

----

I successfully uploaded 1 video through the single file uploader. However, the video won't load.

BTW is it possible to upload 1 video through the mass uploader?

Also do you need anonymous ftp for this mod to work.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 19, 2009, 04:11:17 AM
@magarto> Open Subs-MGallery.php and replace all instances of filesize with @filesize
Should eliminate the warnings/errors... Won't fix the error itself though. It's not really on our side. You're in PHP Safe Mode or some other crap like that, I guess?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 19, 2009, 05:52:24 AM
Quote from: akyhne on January 18, 2009, 04:01:18 PM
Quote from: Kindred on January 18, 2009, 03:48:22 PM
no... like GD and ImageMagik, they are server installed, typically done by your server admin (if you have a dedicated server) or host (if you have a shared host server)

Yeah, I just figured it out. Actually FFMPEG should be installed on my server (Dreamhost) as standard on the address /usr/bin/ffmpeg, but it's not there.
You need Its PHP module to be installed as well.

@ All the mass upload problems - Can you guys please check your upload_max_filesize is well over the file size of the file you are trying to upload?

@Mystery - create the a file named phpinfo.php with the fol.
<?php
phpinfo
();
?>

Upload it to your server and link it to us.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: drkfear on January 19, 2009, 05:58:53 AM
hi. I am not good english.I hope understand me.

I setup smg media gallery.
I make  777
I was uploading picture it get fails

An error happened during the upload process, please try again or contact the administrator.

thank you
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 19, 2009, 06:11:41 AM
Dragooon, when are you starting work on the FAQ? lol... Might save us a lot of time, don't you think? SMG is a big thing, it's never going to work flawlessly for everyone, not with the wealth/plague of server configurations we're meeting here...
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 19, 2009, 06:15:32 AM
This weekend, I'll create a "Documentation" board and start on it soon.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: drkfear on January 19, 2009, 06:32:39 AM
please help me
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Özgür on January 19, 2009, 07:50:39 AM
Quote from: drkfear on January 19, 2009, 06:32:39 AM
please help me

I'm help you in turkish board.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 19, 2009, 08:55:11 AM
Quote from: akyhne on January 18, 2009, 07:53:36 AM
What purpose does the "Move" in admin center have? When I click on it when viewing the list of user albums, I just get a blank album page.

Suggestion: A possability for admins to be able to create albums for the users. So when I get a new user, I can create a standard album for that user.

After creating a General Album in admin center, when I then click on "move" at another album in admin center, I only get my newly created "General Album" as target.

The error also shows in this way:
When I go to one of my own created albums and choose to move an item, I also only get  the "General Album" as target.

I then deleted the "General Album" and now I don't get any targets to move to, neither in admin center or as user.

Edit: I don't have any kind of errors in the log.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 19, 2009, 09:25:35 AM
When searhing after images, I also only get the general album. When deleting that one, I can only search in all. None of the other albums are listed. Must be the same error.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: coucnilhomeswap on January 19, 2009, 11:30:02 AM
firstly Dragoon can i just say this mod is awesome. secondly id like to place a bar on the main page to show users photo's. how can i do this, any ideas
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Mystery? on January 19, 2009, 11:42:31 AM
Here is my phpinfo:

http://nextgenbattles.com/phpinfo.php
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Technoman on January 19, 2009, 11:43:17 AM
93 pages ..... wowwwwwwwwwwwwwwwwwwwwwwwwwww

wouldnt you think that if there is so many questions and this is not working and that is not working ..

why wont this mod be taken off the shelve and fixxed completly instead of using 93 pages of the same problems ......

im not complaining and i dont run this board but wouldnt you think its time to take apart this mod and fix it better so it has a icon on top and all the stuff its missing and all the problems its giving to everyone

I think for 2009 we should go ahead and try new things instead of always go back to the past and try to fix things when we cant and i have always been told if you cant fix it then repair it or start over from scratch :)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: magarto on January 19, 2009, 12:39:23 PM
And mine: http://salsamadrid.org/info.php
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 19, 2009, 12:46:04 PM
Quote from: Technoman on January 19, 2009, 11:43:17 AM
93 pages ..... wowwwwwwwwwwwwwwwwwwwwwwwwwww

wouldnt you think that if there is so many questions and this is not working and that is not working ..

why wont this mod be taken off the shelve and fixxed completly instead of using 93 pages of the same problems ......

im not complaining and i dont run this board but wouldnt you think its time to take apart this mod and fix it better so it has a icon on top and all the stuff its missing and all the problems its giving to everyone

I think for 2009 we should go ahead and try new things instead of always go back to the past and try to fix things when we cant and i have always been told if you cant fix it then repair it or start over from scratch :)
You do realise that most of the issues are not our fault? Its either something crooked with there server or something misconfigured. So before opening your mouth realise the reality here.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: magarto on January 19, 2009, 12:51:19 PM
Changing that word in Sub-MGallery did not work. I have to leave some words without the @ but also mass upload did not work.
I can also pay for solving that mass upload problems in my forum...
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 19, 2009, 12:52:26 PM
@megarto, how big is your file? Apache might be timing out here.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: magarto on January 19, 2009, 12:53:28 PM
@Technoman: Why don't you try to release something better before telling that?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: magarto on January 19, 2009, 12:54:26 PM
I try to upload a lot of pictures (maybe 50 each time) of 2 MB each time... we go out every weekend and the people would need to upload pictures and some videos.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 19, 2009, 12:57:54 PM
Are they pictures or videos? And are you sure you got flash 9/10 installed and enabled along with JS?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: magarto on January 19, 2009, 01:04:04 PM
Sure. When the mass upload crash i have the last error i reported.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 19, 2009, 01:06:55 PM
"Crash" as in?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 19, 2009, 01:08:31 PM
Quote from: alanrobinsonleigh on January 19, 2009, 11:30:02 AM
Secondly id like to place a bar on the main page to show users photo's. how can i do this, any ideas
That's on my wishlist too.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 19, 2009, 01:17:27 PM
Just tried 30 files - 45Mb all in all. The files were btw. 0,7 and 3Mb in size. My upload speed is 768kbit/s when running stable. My host is in the US and I am in Denmark.

It took 11 minutes to do the upload.

My key php settings are:
memory_limit 90M
post_max_size 8M
upload_max_filesize 7M

It just ran smooth with no error what so ever. Love this mod :)

Just need answers on my Q's when you have time ;)

Btw: Danish language will be mailed shortly...
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 19, 2009, 01:19:31 PM
Quote from: akyhne on January 19, 2009, 01:08:31 PM
Quote from: alanrobinsonleigh on January 19, 2009, 11:30:02 AM
Secondly id like to place a bar on the main page to show users photo's. how can i do this, any ideas
That's on my wishlist too.
Have a look in Hacks and Mods board over http://smf-media.com, I think someone posted something like this.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: coucnilhomeswap on January 19, 2009, 01:33:50 PM
got it buddy will try it now
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: jmil on January 19, 2009, 01:34:50 PM
Error On Install,

Just installed latest on a SMF 1.1.7 - Custom Theme.
Gallery Lite also Installed - was about to do the Convert.

Site Name - www.forums.midatlanticxriders.com
(http://www.forums.midatlanticxriders.com)

Do not see admin pages either!

All installed fine - But I get the following text at the header of my site:

// SMF Media Gallery extra strings $txt['mgallery_gallery'] = 'Gallery'; $txt['mgallery_profile_sum'] = 'Summary'; $txt['mgallery_view_items'] = 'View items'; $txt['mgallery_view_coms'] = 'View comments'; $txt['mgallery_gotolink'] = 'More details...'; $txt['permissiongroup_mgallery'] = 'SMF Media Gallery'; $txt['permissiongroup_simple_mgallery'] = 'SMF Media Gallery'; $txt['permissionname_mgallery_access'] = 'Access Gallery'; $txt['permissionname_mgallery_moderate'] = 'Moderate Gallery'; $txt['permissionname_mgallery_manage'] = 'Administrate Gallery'; $txt['permissionname_mgallery_access_unseen'] = 'Access unseen area'; $txt['permissionname_mgallery_search'] = 'Search in Gallery'; $txt['permissionname_mgallery_download_item'] = 'Download items'; $txt['permissionname_mgallery_add_user_album'] = 'Add User Albums'; $txt['permissionname_mgallery_auto_approve_albums'] = 'Auto-approve User Albums'; $txt['permissionname_mgallery_add_videos'] = 'Add videos'; $txt['permissionname_mgallery_add_audios'] = 'Add audio files'; $txt['permissionname_mgallery_add_images'] = 'Add pictures'; $txt['permissionname_mgallery_rate_items'] = 'Rate items'; $txt['permissionname_mgallery_edit_own_com'] = 'Edit own comments'; $txt['permissionname_mgallery_report_com'] = 'Report comment'; $txt['permissionname_mgallery_edit_own_item'] = 'Edit own items'; $txt['permissionname_mgallery_comment'] = 'Comment in items'; $txt['permissionname_mgallery_report_item'] = 'Report items'; $txt['permissionname_mgallery_auto_approve_com'] = 'Auto-approve comments'; $txt['permissionname_mgallery_auto_approve_item'] = 'Auto-approve items'; $txt['permissionname_mgallery_multi_upload'] = 'Mass Upload'; $txt['permissionname_mgallery_viewprofile'] = 'View anyone\'s Gallery profile'; $txt['permissionname_mgallery_whoratedwhat'] = 'View who rated what'; $txt['cannot_mgallery_viewprofile'] = 'You cannot view Gallery profiles'; // End SMF Media Gallery strings

The install went fine and all appeared fine except this.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 19, 2009, 01:40:53 PM
Open Modifications.english.php and move ?> to the last.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: jmil on January 19, 2009, 01:43:30 PM
Doing it now - Good timing!
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: jmil on January 19, 2009, 01:55:43 PM
w00t - That did it - Dumb Follow-up
Should I parse it now to get the button (Link) on the Theme?

Man - What fricken Service!  :)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: KahneFan on January 19, 2009, 02:19:01 PM
@Technoman: Mine works great.

@Dragoon: Thanks for the great mod!
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: magarto on January 19, 2009, 03:44:06 PM
Crash... i mean that the process bar stops in the first files and then it does not upload more files.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: RoCKeT-88 on January 19, 2009, 06:02:11 PM
Very nice mod thank you!
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Technoman on January 19, 2009, 07:47:52 PM
QuoteDragoon : You do realise that most of the issues are not our fault? Its either something crooked with there server or something misconfigured. So before opening your mouth realise the reality here.

i wasnt saying anything in a bad way from it i was just saying why not start a new thread as this 1 thread is 94 pages long heading 100 pages  O:)

94 pages thats alot to keep up to if you understand where im coming from ....

imagine new users that have to go threw each and every page to keep up to this mod ,   by the 5 page they would give up ... for most users they dont have 5 hours to go threw 94 pages if you know what i mean in a nice way :-X
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: sheryltoo on January 19, 2009, 07:48:15 PM
2 Gallery links in the taskbar.
I also have one for a different gallery that I'm not using.
How can I get rid of some of these links?

Also, I tried to do a mass upload but it wasn't working so I may have some things turned off on my browser but I don't know how to find out or how to turn them back on.
Sheryl
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on January 19, 2009, 10:33:46 PM
Quote from: Technoman on January 19, 2009, 07:47:52 PM
QuoteDragoon : You do realise that most of the issues are not our fault? Its either something crooked with there server or something misconfigured. So before opening your mouth realise the reality here.

i wasnt saying anything in a bad way from it i was just saying why not start a new thread as this 1 thread is 94 pages long heading 100 pages  O:)

94 pages thats alot to keep up to if you understand where im coming from ....

imagine new users that have to go threw each and every page to keep up to this mod ,   by the 5 page they would give up ... for most users they dont have 5 hours to go threw 94 pages if you know what i mean in a nice way :-X

users who aren't proper tits go to the last page and read 5 backwards(maybe).. then say "fu(k it" and post not caring if it's been answered because everyone knows no one would actually read 95 pages just to moan about it..
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 20, 2009, 02:16:56 AM
Quote from: Technoman on January 19, 2009, 07:47:52 PM
i wasnt saying anything in a bad way
Yeah, as if we're gonna believe you...
I'd trust you more if you said you were trolling.
Again: SMG has over ten thousands of lines of code. At the peak of its development (september to december, nearly three full months), it had two developers working fulltime on it. For free.
*And we're not even done yet!*
Although we're currently on an extended break when it comes to adding new features (Dragooon is busy with school and I'm working on Aeva and on my website which has its own set of features), we still have a long to-do-list, and we intend to implement at least a few more of our ideas.

We didn't sign up for giving free tech support. We simply wanted to fill a gap (no full-featured and free gallery made specifically for SMF boards), and we're happy we managed to do it. Tech support is okay because most users will help us with the everyday regular questions from newbies. But complaints like yours aren't likely to make us love working for the community.
Fortunately, for one annoying guy like you, there are dozens of enthusiastic users. We work for them, not for you. Now if you don't like what we're doing, why not go mess with someone else instead?

Quotefrom it i was just saying why not start a new thread as this 1 thread is 94 pages long heading 100 pages  O:)

94 pages thats alot to keep up to if you understand where im coming from ....
We never asked anyone to read all of it. Only the devs (both of us) make sure to read everything. We've been there since the beginning, eh.
And that's not even counting the 3900+ posts on smf-media.com, which we also read all (I actually posted 1000+ of these, and Dragooon has nearly 700). If all of these posts were on this topic, it would currently be close to 300 pages...

And even if it were 300 pages -- it would be just as fast and efficient as it is now. Thanks to the powerful and well-optimized SQL queries that SMF uses.

Quoteimagine new users that have to go threw each and every page to keep up to this mod ,   by the 5 page they would give up ... for most users they dont have 5 hours to go threw 94 pages if you know what i mean in a nice way :-X
That's until they realize they have a "Search this topic" option at the top right corner... (Granted, SM.org's implementation doesn't work perfectly, but it does its job.)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 20, 2009, 08:08:17 AM
Issue with uploaded videos. SMF 2.0 Beta 4.

I have uploaded a few videos. After uploading they show perfect, but when entering the album they are uploaded to and then click on the videos icon, the vidoes don't show (on preview page).

Errors:
http://www.xxx/index.php?action=mgallery;sa=item;id=136 
8: Undefined index: bit_rate
Fil: /xxx/Sources/MGallery.php
Linie: 786 

IE7: SWFObjects not defined

FF3: Same error as IE, but it sometimes shows the videos anyway

Streaming in a post doesn't generate any errors. Example: [smg id=136 type=av]


Edit:
The script that is generated on the page:

<script type="text/javascript">
var sw1 = new SWFObject("http://www.xxx/Themes/default/mgallery/player.swf", "player", "640", "500", "9");
sw1.addParam("allowfullscreen", "true");
sw1.addParam("allowscriptaccess", "always");
sw1.addParam("flashvars", "file=http://www.xxx/index.php?action=mgallery;sa=media;id=136&amp;type=video/x-flv");
sw1.write("sob1");
</script>
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 20, 2009, 09:33:52 AM
Seems it's in the header things get messed up.

When uploading a video things works as expected. I can see the video. After refreshing the final page or clicking on the video in the album, this line is not generated in the header:
<script type="text/javascript" src="http://www.kuhne.dk/Themes/default/mgallery/swfobject.js"></script>

The error is the same in IE7, FF3.xx and Opera (newest version)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 20, 2009, 09:41:52 AM
There was such a bug at one point, but I fixed it weeks ago...
View the html source for your page, look for:

<p id="sob

Can you copy the block code around this?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 20, 2009, 09:48:26 AM
Well, the only difference on an ok loaded page, is the line I provided in my post (except number of views, time and date etc.)
<div id="itembox">
<p id="sob1">&nbsp;</p>
<script type="text/javascript">
var sw1 = new SWFObject("http://www.xxx/Themes/default/mgallery/player.swf", "player", "428", "370", "9");
sw1.addParam("allowfullscreen", "true");
sw1.addParam("allowscriptaccess", "always");
sw1.addParam("flashvars", "file=http://xxx/index.php?action=mgallery;sa=media;id=137&amp;type=video/x-flv");
sw1.write("sob1");
</script>
</div>
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 20, 2009, 10:02:27 AM
I got rid of the db error by disabling "Show exif data".
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 20, 2009, 10:07:34 AM
Quote from: akyhne on January 20, 2009, 10:02:27 AM
I got rid of the db error by disabling "Show exif data".
Its not a DB error first of all :), and I just committed a fix for it, this will make in 1.5.3.

Do you got a link to the page you're talking about?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 20, 2009, 10:18:00 AM
Quote from: akyhne on January 20, 2009, 09:48:26 AM
Well, the only difference on an ok loaded page, is the line I provided in my post (except number of views, time and date etc.)
Did you copy code that works? Because I only need the code for a page that doesn't work... ;D

Does your server support buffer output only to an extent or something?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 20, 2009, 10:27:13 AM
Quote from: Dragooon on January 20, 2009, 10:07:34 AM
Quote from: akyhne on January 20, 2009, 10:02:27 AM
I got rid of the db error by disabling "Show exif data".
Its not a DB error first of all :), and I just committed a fix for it, this will make in 1.5.3.

Do you got a link to the page you're talking about?
I have some exif data enabled in the admin center, except those for video like bitrate and video streaming. But still the mod shows two exif data values: bitrate and video streaming (the values are empty). So I disabled to see if the db error would go away and in fact it did. But still the video only shows sometimes.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 20, 2009, 10:29:17 AM
Its not a DB error, its a undefined variable index error. It was due to a typing mistake in MGallery.php, in which's case if duration was there and bit_rate wasn't there, it'll cause issues. It has nothing to do with your video error. Can you post us a link of a page with which you're experiencing the error?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 20, 2009, 10:32:46 AM
These are the differences according to Notepad++ on a page where the video loads and a page where it doesn't:

Line 37:
good:
   <script type="text/javascript" src="http://xxx/Themes/default/mgallery/swfobject.js"></script>
Bad:
...missing


Line 59:
Good:
            20 Januar, 2009, 15:24:09
Bad:
            20 Januar, 2009, 15:26:22


Line 70:
Good:
               <li>Total tid logget på: 2 dage, 2 timer og 9 minutter.
Bad:
               <li>Total tid logget på: 2 dage, 2 timer og 11 minutter.


Line 201:
Good:
         <tr><td class="info smalltext">Visninger</td><td class="info">0</td></tr>
Bad:
         <tr><td class="info smalltext">Visninger</td><td class="info">1</td></tr>


Line 292:
Good:
      <p class="smalltext" id="show_loadtime">Siden oprettet på 0.317 sekunder med 15 forespørgsler.</p>
Bad:
      <p class="smalltext" id="show_loadtime">Siden oprettet på 0.105 sekunder med 15 forespørgsler.</p>


It's the same page, just reloaded a few times with the F5 key
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 20, 2009, 10:34:27 AM
Is caching enabled by any chance? If so does disabling it(And emptying the cache) helps?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 20, 2009, 10:40:22 AM
Disabling the cache and then clearing it seemed to solve the problem.

It seems to worl in all tree browsers. So I have to run the forum without cache, or is a solution on it's wa`y?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 20, 2009, 10:46:11 AM
The fix will be public once 1.5.3 was out, it seems Nao fixed it sometime after 1.5.2 was released. You can just disable the Gallery's cache for some time.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 20, 2009, 10:54:09 AM
Well, I'm not even sure I want people to upload videos. Just trying out the ´functions and possabilities of this great mod.

Still though there's a bug in the mod as I haven't enabled bitrate , but it still wants to show it at the video preview. undefined variable or not, it's disabled and shouldn't attempt to show it. Only disabling all exif datas removes the error.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 20, 2009, 10:56:44 AM
Yes, I fixed this a few minutes ago.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 20, 2009, 11:34:02 AM
I did a diff compare between 1.5.2 and 1.5.3 and indeed, my fix for the cache stuff is only in 1.5.3...
Honestly, I was convinced 1.5.3 had been released long ago -- actually it's been nearly a month without a single update now. Maybe we should release it, eh?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 20, 2009, 11:47:04 AM
Then please add a tiny, tiny change to the jw player
sw' . $swfobjects . '.addParam("flashvars", "file='.$galurl.'sa=media;id='.$id_file.'&amp;type='.$mime.'");

replace with..

sw' . $swfobjects . '.addParam"flashvars", "file='.$galurl.'sa=media;id='.$id_file.'&amp;type='.$mime.'&amp;image='.$galurl . 'sa=media;id=' . $id_file . ';thumb");

Adds the thumb on the video. It's so boring to look at a black JW player. I didn't check if the thumb exists. Maybe you should, though I read somewhere a while ago that the JW player doesn't care if the file exists or not.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 20, 2009, 12:29:24 PM
No, the thumb doesn't exist. At least if you don't have FFMpeg installed. (I don't and I can't, so I can't test.)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 20, 2009, 12:37:43 PM
I also don't have FFMpeg installed.

The thumb exists if the person who uploaded the image also provided a thumb for the video. So just upload a video with an image as thumb, and you can see the result. Works for me.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 20, 2009, 02:16:04 PM
Ah, yes, silly me...... I implemented that thumb thing and completely forgot about it... :D
Okay I'll do it then. At least in v1.6.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 20, 2009, 02:23:35 PM
Rev 700 -- done.
I basically used your method. If it works, then I'm all for it ;) Will be in 1.5.3 and 1.6.
Dragooon, could you test? I don't have any vids on my server and won't bother to upload ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Özgür on January 20, 2009, 05:10:16 PM
I used black theme. And dewplayer be seen very bad.
How can i use aeva mp3player? (look http://www.rockayseri.net/rk/muzik/bu-sese-kulak-ver/ )


Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 20, 2009, 05:54:48 PM
Well I guess you'll have to edit the css files so that not everything is either black or white... I've heard there are more shades of color in life ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: RoCKeT-88 on January 20, 2009, 06:03:06 PM
OK I am just playing it with now.  :P

However I can't figure out how to allow users to view the galleries.  I gave permission to the post groups and to regular members.   I must be missing something???
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Özgür on January 20, 2009, 06:22:22 PM
Quote from: Nao 尚 on January 20, 2009, 05:54:48 PM
Well I guess you'll have to edit the css files so that not everything is either black or white... I've heard there are more shades of color in life ;)

Thanks (= But dewplayers background (swf file) white, and my site text color white.
i know this beacuse i used mp3 player mod one year ago.
http://custom.simplemachines.org/mods/index.php?mod=829
if i change the text color...  i must the change all color.
I can't have time new theme.  i change embed style mgallery. (subs-mgallery) for aeva codes now. work fine but is this safe?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 21, 2009, 01:56:40 AM
I'm not too fond of the Dew Player (although it's both popular and French :p), but it's pretty much the only non-nonsense player out there that doesn't have any real cons to it. Apart from the styling, of course.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on January 21, 2009, 05:27:13 PM
I was curious, for future updates, would it be possible for you guys to make upgrade installers? So that we wouldn't have to uninstall and reinstall but simply upgrade.

I still have an older version installed on that test site, but when we go live it would be a proper pain for me because for some reason the package manager doesn't work properly for your mod on my server and I would have to do a manual uninstall and reinstall each time...
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Kindred on January 21, 2009, 05:47:09 PM
Hey Nao...  I have read every single page of this thread too!

And as for the complainer...   SMF links the mod to THIS thread...  if we started a new thread, the mod would no longer link to the correct support thread.

And yep...   if you are running a dark theme, you will have to modify the CSS for your theme (as I do over on 40konline)


Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 21, 2009, 10:52:16 PM
Quote from: LinK187 on January 21, 2009, 05:27:13 PM
I was curious, for future updates, would it be possible for you guys to make upgrade installers? So that we wouldn't have to uninstall and reinstall but simply upgrade.

I still have an older version installed on that test site, but when we go live it would be a proper pain for me because for some reason the package manager doesn't work properly for your mod on my server and I would have to do a manual uninstall and reinstall each time...
It would be a true pain for us, especially because of the changes in 1.5.3 I am not going to do it.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on January 21, 2009, 10:56:36 PM
Quote from: Dragooon on January 21, 2009, 10:52:16 PM
Quote from: LinK187 on January 21, 2009, 05:27:13 PM
I was curious, for future updates, would it be possible for you guys to make upgrade installers? So that we wouldn't have to uninstall and reinstall but simply upgrade.

I still have an older version installed on that test site, but when we go live it would be a proper pain for me because for some reason the package manager doesn't work properly for your mod on my server and I would have to do a manual uninstall and reinstall each time...
It would be a true pain for us, especially because of the changes in 1.5.3 I am not going to do it.

What about for 1.5.3 and above?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: yrral on January 22, 2009, 12:30:19 AM
Is it possible to "MASS MOVE" pictures from one album to another?... One of my member stuff up the album when he mass uploaded some photos that belongs to another album.

I'm using version 1.5.1
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 22, 2009, 02:06:15 AM
Quote from: yrral on January 22, 2009, 12:30:19 AM
Is it possible to "MASS MOVE" pictures from one album to another?...
Apart from doing some sql query, nope.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: fords8 on January 22, 2009, 02:17:41 AM
Had someone ask me about adding a upload status when uploading videos to the gallery. Something like the mass upload has.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 22, 2009, 05:35:45 AM
No can do. Madd upload uses javascript and flash. Single upload is the "compatible" solution. It will work without flash or javascript. Use mass upload if you need to upload even a single, but very large, file.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on January 22, 2009, 07:27:13 AM
Quote from: Nao 尚 on January 22, 2009, 05:35:45 AM
No can do. Madd upload uses javascript and flash. Single upload is the "compatible" solution. It will work without flash or javascript. Use mass upload if you need to upload even a single, but very large, file.

...Madd Upload... so massive, it's madd...

lol it's like a quote from one of those inspirational poster parodies bouncing around the net...
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: fords8 on January 22, 2009, 11:35:32 AM
Quote from: Nao 尚 on January 22, 2009, 05:35:45 AM
No can do. Madd upload uses javascript and flash. Single upload is the "compatible" solution. It will work without flash or javascript. Use mass upload if you need to upload even a single, but very large, file.

Thanks! Never checked to see if you could upload a video on the mass upload.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: yrral on January 22, 2009, 02:09:25 PM
Quote from: Nao 尚 on January 22, 2009, 02:06:15 AM
Quote from: yrral on January 22, 2009, 12:30:19 AM
Is it possible to "MASS MOVE" pictures from one album to another?...
Apart from doing some sql query, nope.

dang! thought it can easily be done... just like a check mark on its photos that needs to be move... oh well... still kudos to both of you guys for this wonderful mod :)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on January 22, 2009, 06:40:15 PM
3 questions:

1. If a user uploads an image larger than the max width/height, will the server retain the original file and only display it as the max size, or will it shrink the image as a new file? For example, I upload a pic 1200x1600, but the max is set to 1280x1024. When i download the image back to my hd, will it now be 1280x1024 or still original size?

2. Are there options to give different user groups different max gallery sizes? I can't seem to locate any options in regards to this. Because when we go live, we'd like to make a feature for donators to have larger galleries.

3. If i have the max gallery size set to say, 10mb, and down the road I lower it. Will users who have full galleries still retain their media? Or will the server delete items exceeding the limit?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 22, 2009, 07:02:07 PM
1) It will be at the max size provided by you: 1280x1024

2) No

3) I'm quite sure they will stay. But that's easy to test.

ps: I'm only a user of the gallery
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on January 22, 2009, 07:04:25 PM
Quote from: akyhne on January 22, 2009, 07:02:07 PM
1) It will be at the max size provided by you: 1280x1024

2) No

3) I'm quite sure they will stay. But that's easy to test.

ps: I'm only a user of the gallery

So if i set max image size to 0,0 will there be no limit? or should i give width and height a null value?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 22, 2009, 07:17:47 PM
I just tried it out. If you write 0 in width and height, you can't upload any image. Neither with NULL value...
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: MinasC on January 22, 2009, 07:25:29 PM
hello there

I run a smf forum, version 1.1.3, with SMF Gallery Lite 1.7.6 installed. I meant to install SMG but I need some answers before I do.

1) I understand that the only way to install it to smf 1.1.3 is the manual way. Is there going to be any conflict with SMF Gallery Lite?

2) will the pictures shown in SMF Gallery Lite be also shown in SMG?

3) will I have to uninstall SMF Gallery Lite? before or after i install SMG?

4) are there any known problems with SMG and old smf versions like mine (1.1.3)? will it be fully operative (especially embed videos)?
(there are many reasons why i cannot upgrade to 1.1.7 right now)

thnx in advance.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 22, 2009, 07:32:49 PM
2) I'm quite sure they won't. But the authors provided a conversion tool to convert from SMF Gallery Lite to SMF Media Gallery.

Why can't you upgrade to 1.1.7?? There's upgrade tools to do that.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on January 22, 2009, 07:35:47 PM
Quote from: akyhne on January 22, 2009, 07:17:47 PM
I just tried it out. If you write 0 in width and height, you can't upload any image. Neither with NULL value...

So if i want to make no limit, just set the values to 9999?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 22, 2009, 07:39:30 PM
Probably, but if people then click large images like a 2592*1944 image, it will be much wider than most peoples screen. But there's a clever zoom effect in the gallery. You should try it out. It's much easier to understand then.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on January 22, 2009, 07:57:01 PM
Quote from: akyhne on January 22, 2009, 07:39:30 PM
Probably, but if people then click large images like a 2592*1944 image, it will be much wider than most peoples screen. But there's a clever zoom effect in the gallery. You should try it out. It's much easier to understand then.

yeah i have highslide enabled... is that what you're refering to?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Akyhne on January 22, 2009, 08:02:17 PM
Maybe, I don't know. Try it out.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: LinK187 on January 22, 2009, 08:08:41 PM
Quote from: akyhne on January 22, 2009, 08:02:17 PM
Maybe, I don't know. Try it out.

Well that's already working because all images have that effect regardless of size.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Kindred on January 22, 2009, 10:11:49 PM
Quote from: MinasC on January 22, 2009, 07:25:29 PM
hello there

I run a smf forum, version 1.1.3, with SMF Gallery Lite 1.7.6 installed. I meant to install SMG but I need some answers before I do.

1) I understand that the only way to install it to smf 1.1.3 is the manual way. Is there going to be any conflict with SMF Gallery Lite?

2) will the pictures shown in SMF Gallery Lite be also shown in SMG?

3) will I have to uninstall SMF Gallery Lite? before or after i install SMG?

4) are there any known problems with SMG and old smf versions like mine (1.1.3)? will it be fully operative (especially embed videos)?
(there are many reasons why i cannot upgrade to 1.1.7 right now)

thnx in advance.

1-  upgrade to 1.1.7. immediately.
2- only if you convert.
3- I suggest uninstalling first....to avoid overlaps.
4- upgrade to 1.1.7...  now.

I don't care what reasons you think you might have, but you really need to upgrade to 1.1.7 as soon as possible. There are a number of security vulnerabilities that have been fixed. In addition, many mods are no longer supported on those versions.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 22, 2009, 11:39:16 PM
Quote from: LinK187 on January 22, 2009, 07:57:01 PM
Quote from: akyhne on January 22, 2009, 07:39:30 PM
Probably, but if people then click large images like a 2592*1944 image, it will be much wider than most peoples screen. But there's a clever zoom effect in the gallery. You should try it out. It's much easier to understand then.

yeah i have highslide enabled... is that what you're refering to?
Yes, it is highslide. You can also set the options for highslide's preferences on per-album basis.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: KrisBG on January 23, 2009, 02:39:10 PM
  Hi Dragon.  ;)
It is perfect, but I have some problems.
My problem is that no button gallery menu, and the other is all that disappears when changes in Cyrillic.
I very grateful if you help me.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 24, 2009, 12:16:10 AM
You'll be needing to modify your theme on SMF 1.1 in order for it to show the button. Search the forum.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: locau on January 24, 2009, 05:51:10 AM
Quote from: KrisBG on January 23, 2009, 02:39:10 PM
  Hi Dragon.  ;)
It is perfect, but I have some problems.
My problem is that no button gallery menu, and the other is all that disappears when changes in Cyrillic.
I very grateful if you help me.

open your theme folder index.template.php
search for your current buttons (hint: something like ->  Show the [home] button.)

add after:
//SMF Media Gallery
echo '<li><a' , $current_action=='mgallery' ? ' class="current"' : '' , ' href="', $scripturl, '?action=mgallery"><span>Galeria</span></a></li>';

Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: MinasC on January 24, 2009, 07:28:35 AM
Quote from: Kindred on January 22, 2009, 10:11:49 PM
1-  upgrade to 1.1.7. immediately.
2- only if you convert.
3- I suggest uninstalling first....to avoid overlaps.
4- upgrade to 1.1.7...  now.

I don't care what reasons you think you might have, but you really need to upgrade to 1.1.7 as soon as possible. There are a number of security vulnerabilities that have been fixed. In addition, many mods are no longer supported on those versions.


ok i tried to upgrade through admin panel and all tests were successfull except it said that "This patch file will update your forum to SMF 1.1.4." not 1.1.7! so how do i upgrade to 1.1.7?

the reason i didn't want to upgrade is that i have too many mods installed and i can't afford to uninstall and install them again. will they work after upgrade if i don't uninstall them? (as far as you can tell)

about smf gallery lite, if i uninstall before i install smg will the existing photos and comments remain and appear in smg after install?

thank you so much for the help.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Kindred on January 24, 2009, 07:50:36 AM
if you are using the package upgrader, you will have to for 1.1.3-> 1.1.4 and then 1.1.4->1.1.5 and then 1.1.5-> 1.1.7
Doing the upgrade through the package manager should leave your mods...

However, since you have missed so many upgrades and have so many mods installed, you MAY have to do  a full upgrade...  and yes, this will cause your mods to be uninstalled.

(I'm sorry, but I do not feel that "I have a lot of mods" is a valid excuse for not keeping your forum secure.)

When mods uninstall by using the full upgrade, you don't lose any data, you just have to re-apply them


As for sm gallery lite....   You won't lose any imsgae unless you delete the files/database.  However, they will only appear in smg if you run the converter. SMG and smg galLite do not use the same database entries or storage schema...

Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: MinasC on January 24, 2009, 09:47:06 AM
ok, i have upgraded to 1.1.7 through the package upgrader without any problem (i haven't checked on the mods yet but comes last right now). so now i need to uninstall smf gallery lite and then install smg? i didn't understand the part about the converter in order not to loose all the uploaded photos and comments etc.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Nao 尚 on January 24, 2009, 09:59:23 AM
You can leave SGL installed if you'd like. It's not related to SMG.
The converter will delete all SMG data (which is fine, if it's empty in the first place...), and will leave your SGL data untouched. It's all explained in the help file, eh...
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: locau on January 24, 2009, 10:33:18 AM
hello there NAO,

i've recently moved from smf gallery lite to SMG and i'm very happy with the change.

I'm also using pretty urls (sef mod) and they (smf gallery lite) had already a mod for filters that optimize there urls... will there be any type of suppor for SMG on this ?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: MinasC on January 24, 2009, 10:38:55 AM
but i want to uninstall smf gallery lite, after smg install there will be no use for it. i just ask about the data cause i don't know whether it is all erased along with the uninstall.

i am also confused about what i should do now. do i install smg and then use the converter or do i use the converter i order to install smg? having smf gallery installed could you guide me step by step or is it too much to ask?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: locau on January 24, 2009, 11:00:41 AM
i made my "upgrade" today and everything works fine (at least till now)

1 - install SMG
2 - use the converter to import the things from gallery lite to SMG
3 - uninstall gallery lite

voilá :)

Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 24, 2009, 11:02:40 AM
Quote from: MinasC on January 24, 2009, 10:38:55 AM
but i want to uninstall smf gallery lite, after smg install there will be no use for it. i just ask about the data cause i don't know whether it is all erased along with the uninstall.

i am also confused about what i should do now. do i install smg and then use the converter or do i use the converter i order to install smg? having smf gallery installed could you guide me step by step or is it too much to ask?
You can remove SGL if you wish after conversion, as locau said.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: locau on January 24, 2009, 11:35:27 AM
NAO or Dragooon can you help me regarding this questions ?

Quote from: locau on January 24, 2009, 10:33:18 AM
hello there NAO,

i've recently moved from smf gallery lite to SMG and i'm very happy with the change.

I'm also using pretty urls (sef mod) and they (smf gallery lite) had already a mod for filters that optimize there urls... will there be any type of suppor for SMG on this ?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 24, 2009, 11:40:49 AM
I think Nao did something like that, I'll leave that on him as he knows better about PrettyURLs then me.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: MinasC on January 24, 2009, 11:57:50 AM
dooooone! installed smg, converted data, uninstalled smf gallery lite and everything works fine. the only thing is that the names of the albums have changed a bite as if greek is not recognized. foe example

Αναμνήσεις was changed into Αναμνήσε&#

anybody knows why?

(many many thanks to all of you people who guided me step by step through my forum upgrades. great support guys!)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: KrisBG on January 24, 2009, 12:26:02 PM
Quote from: Dragooon on January 24, 2009, 12:16:10 AM
You'll be needing to modify your theme on SMF 1.1 in order for it to show the button. Search the forum.

Button problem with it thought.
But I have a problem with Cyrillic.
Replacement, a replacement but the situation is the same. I guess that is a small problem but I currently do not remember how to fix it.
Of the attached photo will see several texts I translated the Cyrillic alphabet but they do not read.
I very happy if you help.
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: MinasC on January 24, 2009, 12:43:32 PM
i just installed the greek language and at the top of my forum above header i get some lines of text

// SMF Media Gallery extra strings $txt['mgallery_gallery'] = '???????'; $txt['mgallery_profile_sum'] = '????????'; $txt['mgallery_view_items'] = '??? ?? ????????'; $txt['mgallery_view_coms'] = '??? ?? ??????'; $txt['mgallery_gotolink'] = '???????????? ???????????...'; $txt['permissiongroup_mgallery'] = 'SMF Media Gallery'; $txt['permissiongroup_simple_mgallery'] = 'SMF Media Gallery'; $txt['permissionname_mgallery_access'] = '???????? ???? ???????'; $txt['permissionname_mgallery_moderate'] = '??????????? ??? ???????'; $txt['permissionname_mgallery_manage'] = '?????????? ??? ???????'; $txt['permissionname_mgallery_access_unseen'] = '???????? ??? ???'; $txt['permissionname_mgallery_search'] = '????????? ???? ???????'; $txt['permissionname_mgallery_download_item'] = '????????? ?????????'; $txt['permissionname_mgallery_add_user_album'] = '???????? ??????? ??????'; $txt['permissionname_mgallery_auto_approve_albums'] = '???????? ??????? ??????? ??????'; $txt['permissionname_mgallery_add_videos'] = '???????? ??????'; $txt['permissionname_mgallery_add_audios'] = '???????? ??????? ????'; $txt['permissionname_mgallery_add_images'] = '???????? ???????'; $txt['permissionname_mgallery_rate_items'] = '?????????? ?????????'; $txt['permissionname_mgallery_edit_own_com'] = '??????????? ????? ??? ???????'; $txt['permissionname_mgallery_report_com'] = '??????? ???????'; $txt['permissionname_mgallery_edit_own_item'] = '??????????? ????? ??? ?????????'; $txt['permissionname_mgallery_comment'] = '?????????? ?? ????????'; $txt['permissionname_mgallery_report_item'] = '??????? ?????????'; $txt['permissionname_mgallery_auto_approve_com'] = '???????? ??????? ???????'; $txt['permissionname_mgallery_auto_approve_item'] = '???????? ??????? ?????????'; $txt['permissionname_mgallery_multi_upload'] = '???????? ????????'; $txt['permissionname_mgallery_viewprofile'] = '?? ?????? ?? ?????? ???????????? ???? ???????'; $txt['permissionname_mgallery_whoratedwhat'] = '?? ?????? ????? ?????????? ??'; $txt['cannot_mgallery_viewprofile'] = '??? ??????? ?? ???? ?? ?????? ??? ???????'; // End SMF Media Gallery strings


how do i get them out of there?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Kindred on January 24, 2009, 12:50:51 PM
yuo pasted lines of code into your greek language file, didn't you?

Make sure that the ?> is the last line of the modifications.greek.php (and that it does not appear anywhere else)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: MinasC on January 24, 2009, 01:15:45 PM
i didn't paste anything, i installed greek through the package installer. you were right though, the ?> was the problem. fixed, thank you very much for all the help.

can you think of any solution for this?

Quote from: MinasC on January 24, 2009, 11:57:50 AM
the only thing is that the names of the albums have changed a bite as if greek is not recognized. foe example

Αναμνήσεις was changed into Αναμνήσε&#
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 24, 2009, 01:45:24 PM
Hm..Is your forum set to follow UTF-8 or normal latin charecter set?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: MinasC on January 24, 2009, 02:39:06 PM
it is set to follow UTF-8. does that create any problem?

i also noticed that no matter what picture i set as the picture of an album, the default pic doesn't change. when i create a new album there is no album picture at all and i cannot set one. (well that's a completely different issue offcourse but i thought i should mention it)
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: ʟink on January 24, 2009, 06:02:08 PM
Ok, I've tried uploading videos both as .flv and as .mp4, and when I go to view the item, the page can't be displayed, and I have to use the prune function to get rid of the video. Any suggestions on getting that feature to work?
Title: Re: SMF Media Gallery (SMG) - 1.5.2 released
Post by: Dragooon on January 25, 2009, 12:19:58 AM
Quote from: MinasC on January 24, 2009, 02:39:06 PM
it is set to follow UTF-8. does that create any problem?

i also noticed that no matter what picture i set as the picture of an album, the default pic doesn't change. when i create a new album there is no album picture at all and i cannot set one. (well that's a completely different issue offcourse but i thought i should mention it)
Did you try clearing your browser's cache? Because it works fine for me.

@Your greek problem - I'm not too sure....UTF-8 shouldn't cause any issues AFAIK. Are your mgallery tables at utf-8 too? Can you open them via phpmyadmin and tell there character coalition?

Quote from: linkgamer3 on January 24, 2009, 06:02:08 PM
Ok, I've tried uploading videos both as .flv and as .mp4, and when I go to view the item, the page can't be displayed, and I have to use the prune function to get rid of the video. Any suggestions on getting that feature to work?
Hmm....I'll be releasing 1.5.3 today, tell me if using it fixes your problem.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 25, 2009, 12:44:38 AM
SMG 1.5.3 released!

From the changelog :
* Added checks on installation for previous installations of mod
! Fixed warning triggered when posting a smg tag with an invalid id (0 or non-integer)
! Fixed Javascript issue when album descriptions had html lists in them
+ JW Player will now show the video thumbnail if available, when not playing
! Typo in English language file
! Undefined index "bit_rate" in some cases
* Changed the way Sub-Albums are fetched. This fixes several issues such as album sorting and total count
! Fixed session variable compatibility with SMF 2.0 RC 1
! Caching of embed media was causing "1200" too appear when page was refreshed
! Unapproved items were causing the item's stats to still go down
! Total comments wasn't being set to 0 if there was no comment found in the items in recount
! Added smg_ prefix to deleteItems() and deleteComments() to avoid conflicts with other mods
! Aeva test would fail at embedding time because of a missing global
! Fixed potential id_owner error
* Make sure to avoid further tests in allowedToAccessAlbum() when user owns the album
! User Album owners should *always* be able to view their own albums.
* Refining smg tag layout
! Updated a regex to avoid [smg] parsing issues on some complex posts with several [smg] tags and double quotes.
! $sourcedir was missing in globals in MGal_admin_albums_delete function
! If SMG's cache feature was enabled, local FLV videos would only play once in a while.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Özgür on January 25, 2009, 01:04:40 AM
Thanks Dragooon. Is ftp upload in this version? or 1.6?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 25, 2009, 01:59:29 AM
No, FTP upload is not in this version. It'll be in 1.6, whenever it'll be released.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: MinasC on January 25, 2009, 03:31:22 AM
Quote from: Dragooon on January 25, 2009, 12:19:58 AM
Did you try clearing your browser's cache? Because it works fine for me.

yes i did but no good.  :(

Quote from: Dragooon on January 25, 2009, 12:19:58 AM
@Your greek problem - I'm not too sure....UTF-8 shouldn't cause any issues AFAIK. Are your mgallery tables at utf-8 too? Can you open them via phpmyadmin and tell there character coalition?

how do i know what tables are smg's? please tell me what i have to look for. i can see 4 tables by tha names smf_gallery_cat, smf_gallery_comment, smf_gallery_pic, and smf_gallery_report,are those the right ones?

nevertheless all tables are in latin1_swedish_ci collation (i don't really know what that means but i know that i have chosen my database to be in utf-8 through administration).
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 25, 2009, 03:42:20 AM
Then it means your DB is not in UTF-8 and is not likely to support greek charecters. Search for converting to UTF-8.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on January 25, 2009, 03:47:54 AM
Quote from: Dragooon on January 25, 2009, 01:59:29 AM
No, FTP upload is not in this version. It'll be in 1.6, whenever it'll be released.
I'm thinking we should be releasing 1.6 next... I don't think there are any other bugs left in 1.5.x, and I'm really through with updating both branches every time we make a fix, really. Which has been causing me to participate less and less.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 25, 2009, 03:54:29 AM
Well...even if we release 1.6, we still won't be getting rid of branches and trunk system.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: MinasC on January 25, 2009, 03:55:39 AM
Quote from: Dragooon on January 25, 2009, 03:42:20 AM
Then it means your DB is not in UTF-8 and is not likely to support greek charecters. Search for converting to UTF-8.

do i have to do that through forum admin or through php admin. in php admin i found a way to change callation but there are many types of utf-8. which one do i choose?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 25, 2009, 03:59:19 AM
Try doing it via Maintenance > Convert to UTF-8. Make sure to backup your DB before doing this as this is irreversible.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: MinasC on January 25, 2009, 04:39:34 AM
i did it but still no good, and some other text in the sidebars of my forum went ... chinese (Î"είÏ,,ε σÏ,,ην Έκθεση ). now i need to get my backup back on, but i don't know how (through forum admin i took a copy named minasc_forum-complete_2009-01-25.sql.gz). could you please tell me?

i noticed that the titles of the albums turn from letters to symbols only after the 10th letter. if a title is 8-letter-long it shows ok. now i know that every greek letter counts for more than one english letters, so if we could increase the number of letters allowed in the titles wouldn't that solve the problem? but you will have to tell me how.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on January 25, 2009, 05:00:21 AM
Quote from: Dragooon on January 25, 2009, 03:54:29 AM
Well...even if we release 1.6, we still won't be getting rid of branches and trunk system.
Yeah well I suppose that'll be the end of me or something... There's nothing I hate more than this, really. I could understand the branch system if we were a team of 27 devs working on these. Or a huge project. Still, the only "big new" feature in 1.6 is FTP upload. It took you a few hours to implement it. No bug was found. Now, for that simple feature, we've been hurting like hell to update both branches for a couple of months now. I find it silly.

So I'm going to add a few features to 1.6, and then call it quits. I'll only fix bugs on 1.6, and will not work on 2.0. If you want to update the 2.0 trunk with my 1.6 branch fixes/improvements, fine by me. But I'm sick with this little game, really. I prefer my Aeva naming system, eh.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 25, 2009, 05:05:46 AM
Its your wish and your opinion. I respect your decisions. But I am not looking for changing the way SVN should be used, this is the first reason I use SVN.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: MinasC on January 25, 2009, 05:52:46 AM
Quote from: MinasC on January 25, 2009, 04:39:34 AM
i did it but still no good, and some other text in the sidebars of my forum went ... chinese (Î"είÏ,,ε σÏ,,ην Έκθεση ). now i need to get my backup back on, but i don't know how (through forum admin i took a copy named minasc_forum-complete_2009-01-25.sql.gz). could you please tell me?

i noticed that the titles of the albums turn from letters to symbols only after the 10th letter. if a title is 8-letter-long it shows ok. now i know that every greek letter counts for more than one english letters, so if we could increase the number of letters allowed in the titles wouldn't that solve the problem? but you will have to tell me how.

dragooon given that your free time is limited, please take a minute to answer to the above. if i don't recover the old database my forum cannot function. thnx a lot.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 25, 2009, 06:10:09 AM
Can you import your DB with phpMyAdmin?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: MinasC on January 25, 2009, 06:16:35 AM
it gives me the choice "File to import" but it asks me to define the "Character set of the file", not to mention that it gives other choices like "Partial import", "Format of imported file" etc,that i don't have a clue what they are. i have never used php admin before to recover a database.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Özgür on January 25, 2009, 06:57:22 AM
Very small bug in new package.
db_mgallery.php line 66
'version' => '1.5.2', but this version 1.5.3
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 25, 2009, 07:00:50 AM
Thanks, I fixed and uploaded a new package.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on January 25, 2009, 07:20:01 AM
Move still doesn't work for me, neither in admin center nor as user. There's just no target to move to.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 25, 2009, 07:24:05 AM
You can't move from general album to user album.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: magarto on January 25, 2009, 08:32:56 AM
Thanks :)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on January 25, 2009, 09:07:03 AM
Quote from: Dragooon on January 25, 2009, 05:05:46 AM
Its your wish and your opinion. I respect your decisions. But I am not looking for changing the way SVN should be used, this is the first reason I use SVN.
Yes... I know you won't change it.
But being force to copy all of the changes I make to both branches, is the #1 reason why I've been slowing down my work on SMG (Aeva being #2 obviously). And it might also become the #1 reason why I give up on developing SMG at all. I don't want that, so I thought I should talk to you about it.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: L'AltroWeb on January 25, 2009, 09:09:24 AM
I've updated from 1.5.2 to 1.5.3 but i've a small error when i test to enter in AdminGaller from admin panel:
QuoteSession verification failed. Please try logging out and back in again, and then try again.
The link in admin panel is like this:
http://darkwolf.altervista.org/forum/admin/?area=mgallery;=sessioncode
Instead link from Gallery, Admin is like this (and this work):
http://darkwolf.altervista.org/forum/admin/?area=mgallery;sesc=sessioncodeFrom error log i see:
Quote8: Undefined index: session_var
File: /membri/darkwolf/forum/Sources/MGallery-Admin.php
Line: 2445
In effect line 2445 (rel. 1.5.3) is: $_admin_areas['config']['areas']['mgallery'] = '<a href="'.$scripturl.'?action=admin;area=mgallery;' . $context['session_var'] . '='.$context['session_id'].'">'.$txt['mgallery_gallery'].'</a>';
instead in 1.5.2 is: $_admin_areas['config']['areas']['mgallery'] = '<a href="'.$scripturl.'?action=admin;area=mgallery;sesc='.$context['session_id'].'">'.$txt['mgallery_gallery'].'</a>';
Actually to fix i've edit like this (code line from 1.5.2): elseif (allowedTo('mgallery_manage'))
//$_admin_areas['config']['areas']['mgallery'] = '<a href="'.$scripturl.'?action=admin;area=mgallery;' . $context['session_var'] . '='.$context['session_id'].'">'.$txt['mgallery_gallery'].'</a>';
$_admin_areas['config']['areas']['mgallery'] = '<a href="'.$scripturl.'?action=admin;area=mgallery;sesc='.$context['session_id'].'">'.$txt['mgallery_gallery'].'</a>';
And all seems to work fine!
Can you confirm this fix?

-

PS: another error in error log (present also in 1.5.2) is:

Quotehttp://darkwolf.altervista.org/forum/index.php?action=error;code=404
Error 404 - Not Found (http://darkwolf.altervista.org/forum/mgallery/hs/zoomin.cur)
File: user
(Thanks to #Apache Error Handling modification) :)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on January 25, 2009, 09:14:29 AM
@Dark-Wolf> Re: session verification

http://smf-media.com/community/index.php?topic=514.msg4124#msg4124
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: L'AltroWeb on January 25, 2009, 09:17:54 AM
Oh thanks!
PS: i've edit precedent post (please look) :)
-
Edit!
I've applied this fix
http://www.simplemachines.org/community/index.php?topic=274874.msg1803632#msg1803632
But problem still remain.
Is necessary to uninstall and reinstall MediaGallery?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 25, 2009, 10:31:41 AM
See http://smf-media.com/community/index.php?topic=514.msg4128#msg4128

BTW - I've uploaded a fixed package.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: L'AltroWeb on January 25, 2009, 10:36:41 AM
Quote from: Dragooon on January 25, 2009, 10:31:41 AM
See http://smf-media.com/community/index.php?topic=514.msg4128#msg4128

BTW - I've uploaded a fixed package.
Ok thanks, is the same of my precedent post :)
Any notice for zoomin.cur?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 25, 2009, 11:19:29 AM
THis is the second time I'm seeing that error, I need to investigate why that happens. Does it work in default theme?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: L'AltroWeb on January 25, 2009, 11:29:43 AM
Quote from: Dragooon on January 25, 2009, 11:19:29 AM
THis is the second time I'm seeing that error, I need to investigate why that happens. Does it work in default theme?
I've test now!
Also with defaul theme!
PS: the gallery works fine without error, i see this error only in error log and only when a guest see the gallery :)
Maybe it depend on:.hs {
cursor: url(hs/zoomin.cur), pointer;
outline: none;
text-decoration: none;
}
???
Riedit!
Ok i've changed in hs.css all url from:
Quoteurl(hs/*
to this:
Quoteurl(http://mysite.org/forum/Themes/default/mgallery/hs/*
and now cursor works fine also for guest and error log is empty :)
-
PS: the same problem is present in mediagallery site:
http://smf-media.com/community/index.php?action=mgallery;sa=item;id=168
see "cursor" from guest  ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: ʟink on January 25, 2009, 12:35:57 PM
Dragoon, I applied the update and still can't view the video. Here's the album, try viewing the video in Opera, too; it just puts out a bunch of weird symbols.
http://whatninja.com/index.php?action=mgallery;sa=album;id=7
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on January 25, 2009, 12:47:12 PM
This is a compression problem.
I noticed this happen on my site as well (it's using SMF2, I don't think it has an effect on SMF1).

Possible things to look into:
- is SMG caching enabled? If yes, try to disable it.
- worst case scenario: disable output buffer compression in SMF. I wouldn't recommend it, though... If the first step doesn't work, then I'm a bit out of ideas.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: ʟink on January 25, 2009, 01:00:58 PM
I temporarily disabled compressed output, and the page will load, but the video won't. Thanks for the quick response!
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: magarto on January 25, 2009, 01:18:46 PM
I have again the same error and i am frustrated since some months :(

2: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for /home2/salsamad/public_html/mgal_data/tmp/fotos 23 y 24 febrero pasos y almacen 139.JPG
File: /home2/salsamad/public_html/Sources/Subs-MGallery.php
Line: 2117


When any user (but me) uses the mass upload, the first file or two files can be uploaded but after, the progress bar stops at 100% of any file and it leaves to work :(
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Mystery? on January 25, 2009, 01:25:04 PM
What are the change from 1.5.2 to 1.5.3?

I need a changelog.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on January 25, 2009, 01:29:24 PM
Magarto, put a "@" in front of the "filesize" call at the line indicated...

Mystery> Oh that's so nicely asked of you.
(BTW, Dragooon already posted it... Buy a new pair of glasses.)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: magarto on January 25, 2009, 01:44:03 PM
Is it a bug then?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 25, 2009, 01:57:23 PM
Can you tell us how big are the files? And can you post a link to php info?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on January 25, 2009, 01:58:09 PM
@magarto> Not on our side. It's a bug on your server.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: magarto on January 25, 2009, 03:17:54 PM
Thanks :)
I hope that it solves my problems ;)
I'm sorry for all the inconveniences.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on January 25, 2009, 06:01:45 PM
Quote from: akyhne on January 25, 2009, 07:20:01 AM
Move still doesn't work for me, neither in admin center nor as user. There's just no target to move to.

Am I just the only guy with this issue???
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: qtime on January 25, 2009, 07:02:29 PM
maybe it's simple (I hope) but I will not see a preview after uploading a jpg. Does I need some extra software on my server? Or is there a setting to change?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 26, 2009, 02:01:12 AM
@qtime - What preview are you talking about? If you are talking about the medium sized image...then it should be enabled in your ACP(Which it is by default).

@akhyne - Can you paste your album structure from ACP?(Screenshot will do).
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: qtime on January 26, 2009, 02:07:53 AM
Quote from: Dragooon on January 26, 2009, 02:01:12 AM
@qtime - What preview are you talking about? If you are talking about the medium sized image...then it should be enabled in your ACP(Which it is by default).
I see the photo Icon, if I use the code in a post, I see the photo icon also. Clicking on it will show me the picture in a new screen.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 26, 2009, 02:12:14 AM
Go to Admin > Gallery > About, do you see either of GD2, IMagick, MagickWand installed?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: qtime on January 26, 2009, 02:16:33 AM
Quote from: Dragooon on January 26, 2009, 02:12:14 AM
Go to Admin > Gallery > About, do you see either of GD2, IMagick, MagickWand installed?
aha, not installed, thanks you!
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 26, 2009, 02:18:27 AM
The easiest solution would be installing GD2. Either one of them is required, not all.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: KrisBG on January 26, 2009, 03:02:01 AM
I ask again for the Cyrillic alphabet.
Changed almost everywhere in the database, almost all files added UTF-8 but no effect. Not yet read the Cyrillic alphabet. Any ideas about this ???
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: FUBAR on January 26, 2009, 03:12:27 AM
I just did the install and everything is working properly although when I tried to convert the SMF Gallery Lite I only got to 85%. 

I gave me this error:
Unknown column 'num_comments' in 'field list'
File: /home/website/public_html/forum/Sources/MGallery-Admin.php
Line: 1260


It stopped just before "Finished" at "Recount statistics", do you think this will cause any problems?

If so, how I would go about fixing this?

Any help would be appreciated. 
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Özgür on January 26, 2009, 03:18:53 AM
Quote from: FUBAR on January 26, 2009, 03:12:27 AM
I just did the install and everything is working properly although when I tried to convert the SMF Gallery Lite I only got to 85%. 

I gave me this error:
Unknown column 'num_comments' in 'field list'
File: /home/website/public_html/forum/Sources/MGallery-Admin.php
Line: 1260


It stopped just before "Finished" at "Recount statistics", do you think this will cause any problems?

If so, how I would go about fixing this?

Any help would be appreciated. 

http://smf-media.com/community/index.php?topic=519.msg4150#msg4150
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: FUBAR on January 26, 2009, 03:47:15 AM
I tried to go through most of this thread but came up empty but that worked, thanks so much. 
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 26, 2009, 04:18:16 AM
I recently uploaded a fixed package.

EDIT : Wow..This is reply no. 1999 on this thread.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on January 26, 2009, 04:32:22 AM
Quote from: Dragooon on January 26, 2009, 02:18:27 AM
The easiest solution would be installing GD2. Either one of them is required, not all.
Lol, I thought it was installed on ALL machines, at this point.... ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on January 26, 2009, 04:38:36 AM
@Dragooon> You mean I was reply #2000? Eheh ;)

Quote from: KrisBG on January 26, 2009, 03:02:01 AM
I ask again for the Cyrillic alphabet.
Changed almost everywhere in the database, almost all files added UTF-8 but no effect. Not yet read the Cyrillic alphabet. Any ideas about this ???
Not really... I'd need to see your pages in action.
I was pretty much in charge of all the UTF-8 interaction so I understand why Dragooon wouldn't deal too much with this -- and I'm too busy on Aeva myself. So descriptions are cool, but I have actually no idea what you're talking about so you'll have to help me help you, here ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 26, 2009, 04:43:31 AM
Quote from: Nao 尚 on January 26, 2009, 04:32:22 AM
Quote from: Dragooon on January 26, 2009, 02:18:27 AM
The easiest solution would be installing GD2. Either one of them is required, not all.
Lol, I thought it was installed on ALL machines, at this point.... ;)
Not really. If you own your server and have set it up yourself then you most probably need to install it manually(Like I did).
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: KrisBG on January 26, 2009, 04:53:24 AM
http://azremontiram.com/foruma/index.php
Here is the forum and you see where is the problem.
Thank you!
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on January 26, 2009, 06:04:19 AM
Actually, no... Your gallery isn't public, and I'm not gonna open an account for that.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on January 26, 2009, 06:34:08 AM
Quote from: Dragooon on January 26, 2009, 02:01:12 AM
@akhyne - Can you paste your album structure from ACP?(Screenshot will do).
APC?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: KrisBG on January 26, 2009, 07:12:16 AM
Quote from: Nao 尚 on January 26, 2009, 06:04:19 AM
Actually, no... Your gallery isn't public, and I'm not gonna open an account for that.

Soryy i repair for guest all Permissions
If you need i give you pass and name for administration in PM
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 26, 2009, 08:13:19 AM
Quote from: akyhne on January 26, 2009, 06:34:08 AM
Quote from: Dragooon on January 26, 2009, 02:01:12 AM
@akhyne - Can you paste your album structure from ACP?(Screenshot will do).
APC?
Admin control panel. Admin > Gallery > Albums.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on January 26, 2009, 08:18:58 AM
No albums there. When I then click into "Show Useralbums" in the same menu, I get the list of useralbums.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 26, 2009, 08:24:38 AM
Hm it seems it is not causing user albums to include, I'll fix this later. Currently logged into bug-tracker.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on January 26, 2009, 08:28:24 AM
Thanks in advance :)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on January 26, 2009, 10:11:52 AM
I just read this on a blog... (It's in French so I'm translating)

The filesize function in PHP (tested on version 5.1.2) fails badly with files when they're too large (> 2 GB).

"Warning: filesize(): stat failed for ..."

Here's an alternative solution:
$size = exec("ls -l '".$filename."' | awk '{print $5}'");

http://www.blup.fr/2007/12/10/php-filesize-et-gros-morceaux/
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SergeantAsh on January 26, 2009, 10:13:54 AM
Hi Dragooon,

Just a query, for some reason none of the Highslide animations, fades, lightbox are working? I've enabled the features in SETTINGS and then enabled PER ALBUM too, yet nothing? I'm also not seeing any shadows or curved white edges for thumbnails?

Any ideas?

Cheers, Ash

-------------------------------
My Wishlist for SMG Gallery:

Watermark Feature for uploaded images
Ability to turn on/off which details are shown when viewing a picture (filesize etc)
Support for Bebo video embedding
Supporting for BBC video embedding
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on January 26, 2009, 10:28:57 AM
Quote from: @sh on January 26, 2009, 10:13:54 AM
Watermark Feature for uploaded images
Will you all please stop requesting that?! It's starting to get really annoying...

QuoteAbility to turn on/off which details are shown when viewing a picture (filesize etc)
Why?

QuoteSupport for Bebo video embedding
Already in there...

QuoteSupporting for BBC video embedding
BBCode or BBC News?
BBC News is already in there, too.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SergeantAsh on January 26, 2009, 10:37:19 AM
Quote from: Nao 尚 on January 26, 2009, 10:28:57 AM
Watermark Feature for uploaded images
Will you all please stop requesting that?! It's starting to get really annoying...

Not being funny...but does that not indicate that people want the feature lol!!!! This is afterall a forum where you give feedback and discuss mods??

QuoteAbility to turn on/off which details are shown when viewing a picture (filesize etc)
Why?

Because my members don't care how big the filesize is, it just clutters the page!?!?

QuoteSupport for Bebo video embedding
Already in there...

Doesn't work, said unsupported video format...

QuoteSupporting for BBC video embedding
BBCode or BBC News?
BBC News is already in there, too.

I'll give this one a try again then.

Maybe I misread your response but kindly drop the sarcasm, I'm giving feedback here to what it essentially a very good mod. Whether you're sick of hearing of users requesting a feature or not, I'm a new user and I'm giving feedback, ignore it or accept it - there's no need to respond as you did...
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 26, 2009, 11:01:11 AM
@@ash - Can you make sure your theme(Or default theme) has a mgallery folder with proper contents as they are in the archive. And I probably will implement the Watermarking option sometime in the future.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SergeantAsh on January 26, 2009, 11:18:37 AM
Quote from: Dragooon on January 26, 2009, 11:01:11 AM
@@ash - Can you make sure your theme(Or default theme) has a mgallery folder with proper contents as they are in the archive. And I probably will implement the Watermarking option sometime in the future.

Just did this Dragooon, I'm using a different theme - I've copied the MGALLERY folder from the default, uploaded it, but still nothing  ;o(  I'm only using the index.template.php file for my custom theme, is there anything that I need to modify in that or perhaps to check for in the resultant file?

http://www.*****************.co.uk/forum/mgallery/
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 26, 2009, 11:22:11 AM
It should be at /Themes/<your theme>/mgallery not /mgallery.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SergeantAsh on January 26, 2009, 11:35:26 AM
Quote from: Dragooon on January 26, 2009, 11:22:11 AM
It should be at /Themes/<your theme>/mgallery not /mgallery.

Sorry for the confusion, I was just giving you a link to my MGallery, I'm using ModRewrite.

My MGALLERY folder is as you specify, inside my 'themes/currenttheme/' folder, but still not working?

Can I uninstall MGALLERY and just reinstall it again without affecting all added categories, config and photos?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 26, 2009, 11:36:24 AM
You can do that...BTW is highslide enabled?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SergeantAsh on January 26, 2009, 11:42:34 AM
Quote from: Dragooon on January 26, 2009, 11:36:24 AM
You can do that...BTW is highslide enabled?

Yeah, enabled within the MGAllery Settings, and enabled within each Album configuration too. What can I check for in the page itself, i.e. should I see a Javascript include somewhere for it within the rendered page?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on January 26, 2009, 11:53:41 AM
Quote from: @sh on January 26, 2009, 10:37:19 AM
Not being funny...but does that not indicate that people want the feature lol!!!! This is afterall a forum where you give feedback and discuss mods??
Yeah, but we also have the right to find it annoying, haven't we?!
It's been so long, I definitely know I won't implement this...

QuoteBecause my members don't care how big the filesize is, it just clutters the page!?!?
There's some free space in that area. Why shouldn't we use it?

Quote
QuoteSupport for Bebo video embedding
Already in there...
Doesn't work, said unsupported video format...
Because you haven't installed Aeva. That would be the first thing to do, don't you think...?

QuoteMaybe I misread your response but kindly drop the sarcasm, I'm giving feedback here to what it essentially a very good mod.
Yes, and we worked equally hard on it.

QuoteWhether you're sick of hearing of users requesting a feature or not, I'm a new user and I'm giving feedback, ignore it or accept it - there's no need to respond as you did...
Ignore users?

Okay, quick poll!

Would you rather see mod developers:
- answer with sarcasm?
- completely ignore your requests?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on January 26, 2009, 01:19:23 PM
Anyway....

Ok I've got a question and a problem.

question: which file and which vars control the text colors you see so very poorly chosen in the attached picture?

problem: I have that thing where mass upload freezes after first file. I'm too lazy to dig backwards in this massive thread.

Cheers to any help anyone can provide. :)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: magarto on January 26, 2009, 01:46:47 PM
I have a question/request... is it possible to let users (not moderators) delete their own albums, not only their photos.
I have just bought SMG SlideShow
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Özgür on January 26, 2009, 01:55:37 PM
I am a member of this site since 2007 and I've never seen any person except Nao who tries to solve another member's problem during all afternoon...

Quote from: Nao 尚 on November 20, 2008, 02:07:28 PM
... It took me all my afternoon, but I finally blasted the little suckers! ...

@sh, You don't to talk nonsense..


Quote from: LinK187 on January 26, 2009, 01:19:23 PM
Anyway....

Ok I've got a question and a problem.

question: which file and which vars control the text colors you see so very poorly chosen in the attached picture?

problem: I have that thing where mass upload freezes after first file. I'm too lazy to dig backwards in this massive thread.

Cheers to any help anyone can provide. :)

open default/mgallery/style-up.css and change css colors.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: ʟink on January 26, 2009, 02:45:25 PM
Quote from: Dragooon on January 25, 2009, 01:57:23 PM
Can you tell us how big are the files? And can you post a link to php info?
The file sizes are about 4MB and about 8MB. I adjusted the max file size in admin panel, before you ask.
Here's you phpinfo: http://whatninja.com/phpinfo.php
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on January 26, 2009, 05:17:45 PM
Quote from: Özgür´ on January 26, 2009, 01:55:37 PM
I am a member of this site since 2007 and I've never seen any person except Nao who tries to solve another member's problem during all afternoon...

Quote from: Nao 尚 on November 20, 2008, 02:07:28 PM
... It took me all my afternoon, but I finally blasted the little suckers! ...

@sh, You don't to talk nonsense..


Quote from: LinK187 on January 26, 2009, 01:19:23 PM
Anyway....

Ok I've got a question and a problem.

question: which file and which vars control the text colors you see so very poorly chosen in the attached picture?

problem: I have that thing where mass upload freezes after first file. I'm too lazy to dig backwards in this massive thread.

Cheers to any help anyone can provide. :)

open default/mgallery/style-up.css and change css colors.

Hey, I found the file but am confused as to which value to change. I just want the file list to be readable on the mass upload as I have displayed in my previously attached screen shot.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Özgür on January 26, 2009, 05:53:59 PM
change
#current_list li.file
and
#current_list li.file-uploading
background color vaule .

example.
#current_list li.file {
background: #111111
}
#current_list li.file-uploading {
background: url(../images/mgallery/uploading.png) no-repeat 4px 4px;
background-color: #090909;
}


This is your question answer :p
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on January 26, 2009, 06:39:36 PM
Quote(And not that it matters at all, but I'm not bald. I just liked how my webcam made my head look so shiny with the right amount of sunlight coming from one side.)

If you never told me that, I would still think you were bald, but now that i look closer at your pic, you must be a blond! XD This may complicate matters.. lol :P
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on January 26, 2009, 06:44:27 PM
Quote from: LinK187 on January 26, 2009, 06:39:36 PM
If you never told me that, I would still think you were bald, but now that i look closer at your pic, you must be a blond! XD This may complicate matters.. lol :P
Well, I just thought most SMG/Aeva users already had a look at my pics over at http://media.noisen.com if they were really interested. I must have a hundred of them with my silly face on them ;) It's not exactly a secret. Yeah I'm a blond, but my IQ is just fine thank you.  O:)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on January 26, 2009, 06:47:52 PM
I think it's pretty easy to see on NAO's avatar he's got hair. Maybe he just wants to look like a viking with blond hair ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on January 26, 2009, 06:54:48 PM
Quote from: Özgür´ on January 26, 2009, 05:53:59 PM
change
#current_list li.file
and
#current_list li.file-uploading
background color vaule .

example.
#current_list li.file {
background: #111111
}
#current_list li.file-uploading {
background: url(../images/mgallery/uploading.png) no-repeat 4px 4px;
background-color: #090909;
}


This is your question answer :p

Those values only make the problem a tiny tiny bit better:
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on January 26, 2009, 07:00:30 PM
Actually I got it working perfect now. I reversed those two values. thx

Now I just need help with why the mass upload freezes after the first file.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SergeantAsh on January 26, 2009, 07:30:59 PM
Just to confirm, to try and fix the issues I've got, is it safe to uninstall SMG, then reinstall it without losing all pictures, categories and configuration?

Thanks,
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: weightman on January 26, 2009, 08:08:04 PM
QuoteOh, and by the way -- although I don't have a problem with French being seen as a flaw (I often joke about it myself and it used to be in my sig), I don't see in what way being bald is a problem.

LOL. I figured I could get a way with a little French ribbing since I am of French descent.  :D
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on January 26, 2009, 08:38:17 PM
Quote from: @sh on January 26, 2009, 07:30:59 PM
Just to confirm, to try and fix the issues I've got, is it safe to uninstall SMG, then reinstall it without losing all pictures, categories and configuration?

Thanks,
Should be. Tried it yesterday with no errors.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 27, 2009, 05:48:25 AM
Quote from: LinK187 on January 26, 2009, 07:00:30 PM
Actually I got it working perfect now. I reversed those two values. thx

Now I just need help with why the mass upload freezes after the first file.
Have you implemented crossdomain.xml? Google if you want to know what it is, its pretty easy to implement.

@linkgamer - Are there any error in either of the 3 error logs(SMF's, Apache's and PHP's)?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on January 27, 2009, 05:54:51 AM
"Watermarks" on local videos is pretty easy to with the JW player. Well, it's not a watermark as such, but just a png image shown in the upper right corner of the video like a watermark. It can even be transparent.

I use it in a SMF forum. Looks pretty cool.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on January 27, 2009, 09:12:22 AM
Quote from: Dragooon on January 27, 2009, 05:48:25 AM
Quote from: LinK187 on January 26, 2009, 07:00:30 PM
Actually I got it working perfect now. I reversed those two values. thx

Now I just need help with why the mass upload freezes after the first file.
Have you implemented crossdomain.xml? Google if you want to know what it is, its pretty easy to implement.

@linkgamer - Are there any error in either of the 3 error logs(SMF's, Apache's and PHP's)?

@Nao - lol....but the work of that twat/stupid idiot/French bald guy is pretty awesome ;).

Well I've read through this document: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14213

And I'm still a little confused. That file does not exist in my webserver's root, the public_html root, or the root of the domain in question. Is there a generic file I can use? If not, would one of you be willing to make one for me. I'll provide you with the info/access required.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 27, 2009, 09:16:41 AM
You need to create one, and upload to your domain's root.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on January 27, 2009, 09:19:07 AM
Quote from: Dragooon on January 27, 2009, 09:16:41 AM
You need to create one, and upload to your domain's root.

Ok, in that case, does anyone know a url to better "how to make" instructions? :P
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: mattchewone on January 27, 2009, 10:32:15 AM
I have SMG gallery installed, i was wondering if there was a way for there to be an IMG code which you could use that users could copy and paste into the forum to display there image as well as other forums.

I understand there is a SMG code which will display in the smf forum only, you need to manual add where you would like the image to be and the size. Where is for example when you use photobucket and use the IMG code it adds a nice thumbnail to the left of the page.

Automatically the SMG code is centered, and when moved to the left any text you write seems to appear next to the image and not underneath.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 27, 2009, 10:35:00 AM
Take the direct link and put it in IMG tags.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: mattchewone on January 27, 2009, 10:38:07 AM
Quote from: Dragooon on January 27, 2009, 10:35:00 AM
Take the direct link and put it in IMG tags.

Thanks

Would i need to delete any part of the direct link or just add [IMG ][ /img] to the link.

Is there a way this could be intergrated into the gallery so the users wouldnt have to do this everytime they want to post up an image?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 27, 2009, 10:42:13 AM
No, just add the img tags, no editing should be required. And make sure to use the direct link provided below HTML code not the link in your browser.

A simple template edit can do this I believe.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: mattchewone on January 27, 2009, 10:50:30 AM
Quote from: Dragooon on January 27, 2009, 10:42:13 AM
No, just add the img tags, no editing should be required. And make sure to use the direct link provided below HTML code not the link in your browser.

A simple template edit can do this I believe.

How easy would this edit be? What would need to be done?
Sorry to be a pain, it would make it easier for the users if it automatically had the [IMG ] code so all they had to do is copy and paste.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SergeantAsh on January 27, 2009, 12:55:42 PM
I've just attempted an uninstall but I'm getting problems with my Subs.php file that I'm attempting to clean - I've checked it and it seems to be absolutely inline with the install1.1.xml package, but still says 'Test Failed', here's the segments that concern MGallery, can anyone spot anything glaringly wrong that I'm missing that would cause an uninstall to fail?

I've included a line above and below each SMG code insert so as to check position...

if (!empty($modSettings['modlog_enabled']))
$context['admin_areas']['maintenance']['areas']['view_moderation_log'] = '<a href="' . $scripturl . '?action=modlog">' . $txt['modlog_view'] . '</a>';
}

// SMF MGallery changes
global $sourcedir;
require_once($sourcedir . '/MGallery-Admin.php');
mgal_loadadminareas($context['admin_areas']);
// End SMF MGallery changes


// Make sure the administrator has a valid session...
validateSession();


And then this chunk lower down...

// Just in case it wasn't determined yet whether UTF-8 is enabled.
if (!isset($context['utf8']))
$context['utf8'] = (empty($modSettings['global_character_set']) ? $txt['lang_character_set'] : $modSettings['global_character_set']) === 'UTF-8';

if (stripos($message, '[smg') !== false)
{
if (!function_exists('smg_parse_bbc'))
{
global $sourcedir;
require_once($sourcedir . '/Subs-MGallery.php');
}
smg_parse_bbc($message);
}


// Sift out the bbc for a performance improvement.
if (empty($bbc_codes) || $message === false)


Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on January 27, 2009, 06:18:43 PM
Found a few errors in the gallery:

I a persons profile when clicking on one of the following texts in the gallery section of profiles:
Summary
View items
View comments


I get errors in the log like this:

http://xxx/index.php?action=profile;u=14;sa=mgallery 
8: Undefined index: member
Fil: /xxx/Sources/MGallery-Sub.php
Linie: 1471 
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on January 27, 2009, 06:24:04 PM
It's on line 1469-1471, 1568 and 1596 of the same file, depending on the link you click. Seems to affect both user with personal galleries created and people with no personal gallery.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: ʟink on January 27, 2009, 06:51:02 PM
Quote from: SMF
Link     Today at 06:45:32 PM  Type of error: Undefined
http://whatninja.com/index.php?action=mgallery;sa=item;id=195

8: Undefined variable: scripturl

File: /home/*/domains/whatninja.com/public_html/Sources/PortaMx/Class/php.php(32) : eval()'d code
Apache has no errors, and I don't know how to access the PHP logs, if I even can. That PortaMX error is on all pages, but never bothers anything.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SergeantAsh on January 27, 2009, 08:08:53 PM
Quote from: @sh on January 27, 2009, 12:55:42 PM
I've just attempted an uninstall but I'm getting problems with my Subs.php file that I'm attempting to clean - I've checked it and it seems to be absolutely inline with the install1.1.xml package, but still says 'Test Failed', here's the segments that concern MGallery, can anyone spot anything glaringly wrong that I'm missing that would cause an uninstall to fail?

I've included a line above and below each SMG code insert so as to check position...

if (!empty($modSettings['modlog_enabled']))
$context['admin_areas']['maintenance']['areas']['view_moderation_log'] = '<a href="' . $scripturl . '?action=modlog">' . $txt['modlog_view'] . '</a>';
}

// SMF MGallery changes
global $sourcedir;
require_once($sourcedir . '/MGallery-Admin.php');
mgal_loadadminareas($context['admin_areas']);
// End SMF MGallery changes


// Make sure the administrator has a valid session...
validateSession();


And then this chunk lower down...

// Just in case it wasn't determined yet whether UTF-8 is enabled.
if (!isset($context['utf8']))
$context['utf8'] = (empty($modSettings['global_character_set']) ? $txt['lang_character_set'] : $modSettings['global_character_set']) === 'UTF-8';

if (stripos($message, '[smg') !== false)
{
if (!function_exists('smg_parse_bbc'))
{
global $sourcedir;
require_once($sourcedir . '/Subs-MGallery.php');
}
smg_parse_bbc($message);
}


// Sift out the bbc for a performance improvement.
if (empty($bbc_codes) || $message === false)




Sorted, this was due to me adding one single carriage return below the inserted blocks of code that prevented SMF from parsing it, surprised it looks at whitespace that accurately.

Regarding the Highslide error, using Firefox's Firebug, when viewing an image itself, it pops up the following Javascript error...

hs.getAnchors is not a function
http://www.**************.co.uk/Themes/default/Highslide/highslide.js
Line 28
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 28, 2009, 12:05:21 AM
@@ash - Do you have Highslide image viewer installed? If so does removing it improves anything?

@linkgamer - I seriously am out of ideas. Plus I can't open your site.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SergeantAsh on January 28, 2009, 07:04:42 AM
Quote from: Dragooon on January 28, 2009, 12:05:21 AM
@@ash - Do you have Highslide image viewer installed? If so does removing it improves anything?

Yes but I installed the Highslide SMF Viewer (Highslide_Viewer_1.0.zip) after my issues with SMG, the problem was still there beforehand.

I have noticed that the feature where a larger image will float out of the page on click DOES work, its just the transition of the small thumbnails to full size that isn't working? Does that help?

Would it help if I attached the flat/rendered HTML of one of the 'view image' pages?

Thanks for your help.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 28, 2009, 07:07:35 AM
Uhm......from small thumbnails to full size? What area are you in?
And a link to page will help more.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SergeantAsh on January 28, 2009, 07:11:52 AM
Maybe I'm misunderstanding the feature but I thought that from within an album you can display the thumbnails contained within it - I interpreted the feature that upon clicking a thumbnail the image would blow up and appear full size, rather than having to go to the actual 'view image' page (with a page load/refresh).

Did I dream this feature? hehe
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 28, 2009, 07:14:06 AM
Yes, you sure did.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SergeantAsh on January 28, 2009, 07:28:05 AM
Quote from: Dragooon on January 28, 2009, 07:14:06 AM
Yes, you sure did.

Whooops, sorry mate. Not sure where I dreamed up that feature, I've had a long week!!!

Just finally, any ideas on this Javascript error I'm getting as it seems to be HS related? It only appears on the page that shows the fullsize image itself, see attached.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on January 28, 2009, 07:43:06 AM
Quote from: @sh on January 28, 2009, 07:28:05 AM
Whooops, sorry mate. Not sure where I dreamed up that feature, I've had a long week!!!
I was thinking of doing it a few months ago, but then I had a dream that you would like it, so I gave up on it.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: magarto on January 28, 2009, 09:47:04 AM
Hi,
I have the same error than here: http://www.simplemachines.org/community/index.php?topic=260821.msg1867858#msg1867858 from lines 1477, 1478, 1479 and 1480

Any help?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SergeantAsh on January 28, 2009, 10:22:34 AM
Quote from: magarto on January 28, 2009, 09:47:04 AM
Hi,
I have the same error than here: http://www.simplemachines.org/community/index.php?topic=260821.msg1867858#msg1867858 from lines 1477, 1478, 1479 and 1480

Any help?

Same as my error Margarto? I'm investigating now and playing around, if I discover anything, I'll let you know, likewise please :D
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on January 28, 2009, 10:50:22 AM
Quote from: magarto on January 28, 2009, 09:47:04 AM
Hi,
I have the same error than here: http://www.simplemachines.org/community/index.php?topic=260821.msg1867858#msg1867858 from lines 1477, 1478, 1479 and 1480

Any help?

Seems it's the same error as I posted here: http://www.simplemachines.org/community/index.php?topic=260821.msg1899383#msg1899383
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: fatesjoke03 on January 28, 2009, 11:03:45 AM
Cannot find if this has been covered already so here it is.

I am using SMF 2.0 B4, Coppermine 1.4.19 and SMG 1.5.3. I can install okay (had to manually correct my load.php file) but when I try to convert my Coppermine data to SMG I get the following error:

"Database Error
SELECT command denied to user 'mistral_tri08025'@'localhost' for table 'cpg_pictures'
File: /home/mistral/public_html/forum/mgconverter_cpg.php
Line: 159 "

I have uninstalled and reinstalled, no luck. I unbridged and rebridged SMF and CM but no luck. Any idea what the problem could be?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on January 28, 2009, 11:19:37 AM
The error message says it all... Your MySQL access data isn't authorized to use the SELECT query on this table. Considering this is a non-damaging query (and the single most used one), it's surprising that your SMF works at all... Make sure to double-check your user name & password for your MySQL database.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: fatesjoke03 on January 28, 2009, 11:23:20 AM
Thanks, I actually figured it out as you were typing I imagine. I had Coppermine set up with it's own user on the database. I have made the database accessible by the SMF user and everything looks good. Thanks for confirming.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on January 28, 2009, 12:46:35 PM
(Posted on the Aeva topic -- posting it here as well, for those who don't read the topic but still use Aeva.)

Fix for lookups in SMF Media Gallery:

Open Subs-MGallery.php
Find
function smg_utf2entities($source, $is_file = true, $limit = 255)
{
global $context, $mgalSettings;

Replace with
function smg_utf2entities($source, $is_file = true, $limit = 255)
{
global $context, $mgalSettings, $modSettings;

if (isset($modSettings['aeva_enable']) && function_exists('aeva_onposting'))
$source = aeva_onposting($source);


Tested, it works on my site.
(What is it for? -- currently, if you post an embedded video in SMG, it will not try to look it up, i.e. it will not show the video in widescreen on YouTube, or use HQ/HD, or simply make some videos embeddable at all...)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on January 28, 2009, 12:59:47 PM
Quote from: Nao 尚 on January 28, 2009, 12:46:35 PM
(Posted on the Aeva topic -- posting it here as well, for those who don't read the topic but still use Aeva.)

Fix for lookups in SMF Media Gallery:

Open Subs-MGallery.php
Find
function smg_utf2entities($source, $is_file = true, $limit = 255)
{
global $context, $mgalSettings;

Replace with
function smg_utf2entities($source, $is_file = true, $limit = 255)
{
global $context, $mgalSettings, $modSettings;

if (isset($modSettings['aeva_enable']) && function_exists('aeva_onposting'))
$source = aeva_onposting($source);


Tested, it works on my site.
(What is it for? -- currently, if you post an embedded video in SMG, it will not try to look it up, i.e. it will not show the video in widescreen on YouTube, or use HQ/HD, or simply make some videos embeddable at all...)

Thx, modified. No errors so far.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: apenzoon on January 28, 2009, 01:08:13 PM
I have got a problem with this mods, the gallery is only visible for admins, how to make it public ???
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on January 28, 2009, 01:11:35 PM
Quote from: apenzoon on January 28, 2009, 01:08:13 PM
I have got a problem with this mods, the gallery is only visible for admins, how to make it public ???

Permissions + Gallery Options = Rocket Science ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SergeantAsh on January 28, 2009, 01:13:56 PM
Quote from: apenzoon on January 28, 2009, 01:08:13 PM
I have got a problem with this mods, the gallery is only visible for admins, how to make it public ???

Go into the board's permissions and edit each membergroup - you'll see a new set of permissions on the righthand side, go through carefully and only check those that are applicable!
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SergeantAsh on January 28, 2009, 01:30:37 PM
Just a feature request idea...

As with the 'View Board Only' mod, it would be nice within the Albums to have two permissions columns - one to 'View' the album' and another permission that actually permits whether the user can 'Enter' the album to see pictures within it?

Just an idea :D
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: apenzoon on January 28, 2009, 01:36:41 PM
Quote from: @sh on January 28, 2009, 01:13:56 PM
Quote from: apenzoon on January 28, 2009, 01:08:13 PM
I have got a problem with this mods, the gallery is only visible for admins, how to make it public ???

Go into the board's permissions and edit each membergroup - you'll see a new set of permissions on the righthand side, go through carefully and only check those that are applicable!

Thank you very much, it works.  :)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Marcus Forsberg on January 28, 2009, 01:41:33 PM
Quote from: @sh on January 28, 2009, 01:30:37 PM
Just a feature request idea...

As with the 'View Board Only' mod, it would be nice within the Albums to have two permissions columns - one to 'View' the album' and another permission that actually permits whether the user can 'Enter' the album to see pictures within it?

Just an idea :D

Thats good. Maybe a third permissions to, which will let them upload the the album. So they may view but not enter, enter but not post, etc.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on January 28, 2009, 01:48:54 PM
A user can protect his album with a password. What more do you want?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Marcus Forsberg on January 28, 2009, 01:53:17 PM
What more we want? What we want more is what we stated above ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on January 28, 2009, 01:55:30 PM
Perhaps an allow list in place of the password. With chek boxes for permissions for each user on the allow list...
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on January 28, 2009, 02:02:01 PM
So you want the users to view the images as thumbs, just not in preview and full size?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Marcus Forsberg on January 28, 2009, 02:04:53 PM
Allow me to explain a bit further. Each album will have three different permissionsets:

View album = They will see the album in the list of albums, but not be albe to enter the albums and view the items inside etc.
Enter album = They will be able to enter the album and view all items inside.
Upload to album = They will be able to upload items to the album.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on January 28, 2009, 02:06:58 PM
Quote from: LinK187 on January 28, 2009, 01:55:30 PM
Perhaps an allow list in place of the password. With chek boxes for permissions for each user on the allow list...
Membergroups, that should be enough shouldn't it...?

Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on January 28, 2009, 02:14:22 PM
Quote from: Nao 尚 on January 28, 2009, 02:06:58 PM
Quote from: LinK187 on January 28, 2009, 01:55:30 PM
Perhaps an allow list in place of the password. With check boxes for permissions for each user on the allow list...
Membergroups, that should be enough shouldn't it...?

The current member groups permissions only allow users to use the gallery. What buddy was asking was a per user permission list for each private album. Which is why I suggested that perhaps an "Allow List" may be useful in place of the current password protection.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SergeantAsh on January 28, 2009, 02:18:45 PM
I want Googlebots and search engines to be able to crawl my site including the Gallery, see albums and the hyperlinks that I've named purposely for SEO purposes but I don't want them to ENTER the albums listed unless they're registered.

This way, they would see the contents of the album and want to enter, but when they try, they're asked to register.

Currently, if I untick the Guests option in the Album settings, the album disappears and as far as a guest is concerned, it doesn't exist at all.

Think it would be a nice feature.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Mai Pen Rai on January 28, 2009, 03:46:50 PM
Again I have ask since the search doesnt work perfectly here ;)

[limit reached] comes up even though I have set the limit alot higher than 10 per page (embedded in the forum with [smg id=x] )

How to resolve the problem??
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on January 28, 2009, 04:04:00 PM
Are you using the newest version? I had the same issue with 1.5.2, but it's gone now after upgrading.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SergeantAsh on January 28, 2009, 04:13:20 PM
Quote from: Mai Pen Rai on January 28, 2009, 03:46:50 PM
Again I have ask since the search doesnt work perfectly here ;)

[limit reached] comes up even though I have set the limit alot higher than 10 per page (embedded in the forum with [smg id=x] )

How to resolve the problem??

Once you save the setting in the admin panel, leave the page and go back to the admin panel, is the setting as you left it, or does it revert back? I would also check the value in your DB's settings table to ensure that its saving properly.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Mai Pen Rai on January 28, 2009, 04:17:26 PM
Oh, maybe I should also say (my mistake, sorry) that I am using the [smg id=x type=preview] version of the bbc.

The setting save and all looks good, both on the admin page and in the phpmyadmin.

Maybe I am overlooking something...?

And oh, I do use the latest verison.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Mai Pen Rai on January 28, 2009, 04:25:32 PM
OK, guys, thanks for the help... It seems to be working now.

Me thinks a combination of cache and my small brain might have been a bit part of the problem.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SergeantAsh on January 28, 2009, 04:27:04 PM
Quote from: Mai Pen Rai on January 28, 2009, 04:25:32 PM
OK, guys, thanks for the help... It seems to be working now.

Me thinks a combination of cache and my small brain might have been a bit part of the problem.

LOL, glad you solved it mate!
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: fatesjoke03 on January 28, 2009, 05:30:04 PM
Okay, here is a problem I have not found on the boards, every time I try to edit something on the back-end of SMG (delete an album, move an album, etc) I lose very image according to the error checker.

I am using SMF 2.0 B4, Coppermine 1.4.19 and SMG 1.5.3. I have used the migration script and it works fine. I can look at the pictures and all is well but if I try to edit something all of the pictures vanish.

I run the error checker and it says every image file (I am assuming every image file because it lists hundreds) is missing. I have had to uninstall, delete, wipe from the database and redo everything a half dozen times trying to figure out what the problem could be. So far I have come up with nothing.

Seeing as it is an error I cannot find it must be something on my end.

Any thoughts? Please help, I want to get this mod running ASAP. Thanks in advance.

Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: KahneFan on January 28, 2009, 07:10:56 PM
Dragoon (or anyone) is there a way that I can make "Allow guests" automatically NO instead of YES? I've tried turning off guests viewing the album, but when a new member creates a new album for some reason guests can still see it. If I could set the "Allow guests" to NO automatically then it would solve this.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: qubbah on January 28, 2009, 10:42:36 PM
why i get this?

/Themes/default/languages/MGallery.english.php (tp_above sub template - eval?)
Line: 20
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 28, 2009, 11:39:39 PM
@Nas - Per-album perms has been in my to-do list but i don't expect this before 2.0.

@Undefined index : Member error - What is your SMF version?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on January 29, 2009, 02:29:26 AM
Quote from: Dragooon on January 28, 2009, 11:39:39 PM
@Undefined index : Member error - What is your SMF version?
It was in 1.5.2 and it is in 1.5.3
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 29, 2009, 02:31:48 AM
SMF not SMG.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on January 29, 2009, 02:35:47 AM
2.0 beta 4
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on January 29, 2009, 02:36:44 AM
Quote from: KahneFan on January 28, 2009, 07:10:56 PM
Dragoon (or anyone) is there a way that I can make "Allow guests" automatically NO instead of YES? I've tried turning off guests viewing the album, but when a new member creates a new album for some reason guests can still see it. If I could set the "Allow guests" to NO automatically then it would solve this.
Nao gave me this solution for SMG 1.5.2: http://www.simplemachines.org/community/index.php?topic=260821.msg1880592#msg1880592
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on January 29, 2009, 02:55:34 AM
@akyhne> That would be the post just after ;) (top of page 91)

Quote from: Dragooon on January 28, 2009, 11:39:39 PM
@Nas - Per-album perms has been in my to-do list but i don't expect this before 2.0.
There are already too many perms for SMG, and people are complaining that it's too complicated to handle... ;) Do you really wanna make it even more complicated? lol :)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on January 29, 2009, 03:01:02 AM
People that are finding this mod hard never tried Coppermine. None of my users could find their way around in that one. And SMG allmost gives the same options.
The only thing I miss from Coppermine is per user-sized space.

Yeah, I know about the link, but he had to read my request ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on January 29, 2009, 03:06:05 AM
@akyhne> Yeah, actually, I took on SMG because I wanted to share with the world my idea of a gallery that is both full-featured and not too complicated to use...
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Paracelsus on January 29, 2009, 03:37:34 AM
I just like to thank the 2 devs that work hard on this MOD.

I've just tried it, it still needs a few tweaks to go public in my forum (like language strings), but I'm amazed that, still being a very complex MOD with tons of features, it installed so easily and works so flawlessly. No problems found att all so far in spite of more than 30 MODs + custom tweaks and I hope it stays that way. ;D

Keep up the excellent work.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on January 29, 2009, 04:15:13 AM
Quote from: Paracelsus on January 29, 2009, 03:37:34 AM
I've just tried it, it still needs a few tweaks to go public in my forum (like language strings), but I'm amazed that, still being a very complex MOD with tons of features, it installed so easily and works so flawlessly. No problems found att all so far in spite of more than 30 MODs + custom tweaks and I hope it stays that way. ;D
We tried to put a limit to how much SMF code is modified by SMG. My policy (which I also applied to Aeva) is to put as much code as possible in external files (that won't conflict with other mods), and put calls to this code from within SMF files. That way, users who want to update (and who don't have too old a version) will be able to simply overwrite the external files with new versions, and not have to deal with uninstalling/reinstalling the mod. (They still should run the db_install.php file, if only to have an up-to-date version number in the admin area.)

And yes, all in all, it's nice that such a huge mod (over 12,000 lines of code) has very few chances of conflict with other mods. We tried out best to avoid that, precisely.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 29, 2009, 05:45:21 AM
Quote from: Nao 尚 on January 29, 2009, 02:55:34 AM
Quote from: Dragooon on January 28, 2009, 11:39:39 PM
@Nas - Per-album perms has been in my to-do list but i don't expect this before 2.0.
There are already too many perms for SMG, and people are complaining that it's too complicated to handle... ;) Do you really wanna make it even more complicated? lol :)
It won't be more complicated, per-album permissions would be disabled by default for every album and every new album, if needed, they can be enabled. Somewhat like Local boards permissions work.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 29, 2009, 06:26:27 AM
@Undefined index member error - Can you guys attach your Profile.php here?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on January 29, 2009, 08:28:36 AM
Quote from: Nao 尚 on January 29, 2009, 02:55:34 AM
@akyhne> That would be the post just after ;) (top of page 91)

Quote from: Dragooon on January 28, 2009, 11:39:39 PM
@Nas - Per-album perms has been in my to-do list but i don't expect this before 2.0.
There are already too many perms for SMG, and people are complaining that it's too complicated to handle... ;) Do you really wanna make it even more complicated? lol :)

Idea:
SMG Light for the people who have somehow managed to install but never figured out how to enable permissions or find the gallery settings.

SMG Pro for people that want it to be complicated so as to intricately accommodate their needs.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Paracelsus on January 29, 2009, 09:19:01 AM
You guys are doing an excellent job, some will always complain and some will always want something more, that's life, you just have to put the filter mode [on] and focus on those matters that really deserve the effort.

Personally, I wouldn't like to see many more versions with thousands new features - this MOD is very good as it is and you should concentrate on squashing bugs and eventual security issues that might surface and help those who are having trouble installing / uninstalling / managing the MOD itself as it is. Hey, but you guys decide what's best, so if you want to add more features, just go ahead with it, no problem at all.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: KahneFan on January 29, 2009, 10:35:38 AM
Thanks akyhne!
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on January 29, 2009, 11:39:31 AM
Quote from: Paracelsus on January 29, 2009, 11:28:38 AM
Yours for sure... just please stop inflaming the whole thing, you've made enough people upset, me included. Now, could we just please follow Dragoon's words and get back to the topic, as I am interested in the feedback people have about the MOD (since I'm using it myself)?
Hint: --> http://smf-media.com/community/index.php
Over 4,000 posts about SMG... Plenty of space to talk :) This topic here isn't exactly suited for the many topics that are attached to SMG itself.

Edit: I'm off for a few hours. In case something happens, please someone make a copy, so that I can read it later on in case it gets deleted. You never know when something funny can happen ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Navubi on January 29, 2009, 01:20:11 PM
Hey everyone. I am currently using SMF 1.1.7 with this mod. The media gallery is an excellent way to offer your members a way to share images, audio, and videos. I recommend this to any community :D! The installation is quite easy regardless if you are installing on the default theme or a different one. The only thing I would suggest is allow the general albums to have the option to write a description for pictures that are uploaded. At the moment only "My Albums" of members can have descriptions for each picture they upload.

My rating for the mod: 5/5 :D
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SergeantAsh on January 29, 2009, 01:35:11 PM
Quote from: Navubi on January 29, 2009, 01:20:11 PM
The only thing I would suggest is allow the general albums to have the option to write a description for pictures that are uploaded. At the moment only "My Albums" of members can have descriptions for each picture they upload.

After you have uploaded images, simply edit them one by one, you can then add a description, or did I misunderstand you? Hope that helps!

Quote from: Navubi on January 29, 2009, 01:20:11 PM
My rating for the mod: 5/5 :D

I agree entirely, its a great mod.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: magarto on January 29, 2009, 02:03:06 PM
Index member error... attached is my Profile.php
Nao, now after adding @ to sizeimage every four photos that i upload, i have to click on upload an so on.. but i don't have log errors   ???
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: phantom5 on January 29, 2009, 04:22:11 PM
when I try to uninstall 1.0.2 it says "Session verification failed. Please try logging out and back in again, and then try again. "

no matter what I do it will not let me uninstall it.. any ideas on what I can do?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SergeantAsh on January 29, 2009, 04:27:39 PM
Quote from: phantom5 on January 29, 2009, 04:22:11 PM
when I try to uninstall 1.0.2 it says "Session verification failed. Please try logging out and back in again, and then try again. "

no matter what I do it will not let me uninstall it.. any ideas on what I can do?

Try deleting/clearing all cookies on your machine, also clear temporary files, should sort it?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: ianus on January 29, 2009, 04:33:18 PM
Greetings!

Quote from: phantom5 on January 29, 2009, 04:22:11 PM
when I try to uninstall 1.0.2 it says "Session verification failed. Please try logging out and back in again, and then try again. "

Have a look at:
SMF 1.1.7: Session verification failed error when installing mods (http://www.simplemachines.org/community/index.php?topic=278824.0)

Hopefully this will solve your problem.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Succubus Evaligan on January 30, 2009, 06:09:32 AM
I am happy with the Nao's work in AEVA and SMF Media Gallery. Nao is Nao and we can't change that. While he made a good job. I don't care if he is a bit sarcastic or not. I love their work and I want him to continue as a developer of AEVA and SMF Media Gallery.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: MinasC on January 30, 2009, 01:52:14 PM
hello there

i have installed smg 1.5.2 and i just found out that my members dion't have the right to see the gallery. i thought there would be an allowance issue so i tried to find through admin panel the way to give them rights over smg, but i found out that there is only an empty space there, no text appears (i run the greek translation) as if there is no text for that in greek. am i missing something here?

thnx in advance
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: dannbass on January 30, 2009, 01:59:58 PM
MinasC, remember that there are some strings that have to go to the Modifications.greek.php and you can find them in the install-1.1 or install-2.0 and those are the strings for the permissions, found here http://yoursite.com/index.php?action=permissions
This is what you need to translate and add.  Or you can install mforum's translation, found here http://smf-media.com/community/index.php?action=downloads;cat=2
// SMF Media Gallery extra strings
$txt['mgallery_gallery'] = 'Gallery';
$txt['mgallery_profile_sum'] = 'Summary';
$txt['mgallery_view_items'] = 'View items';
$txt['mgallery_view_coms'] = 'View comments';
$txt['mgallery_gotolink'] = 'More details...';
$txt['permissiongroup_mgallery'] = 'SMF Media Gallery';
$txt['permissiongroup_simple_mgallery'] = 'SMF Media Gallery';
$txt['permissionname_mgallery_access'] = 'Access Gallery';
$txt['permissionname_mgallery_moderate'] = 'Moderate Gallery';
$txt['permissionname_mgallery_manage'] = 'Administrate Gallery';
$txt['permissionname_mgallery_access_unseen'] = 'Access unseen area';
$txt['permissionname_mgallery_search'] = 'Search in Gallery';
$txt['permissionname_mgallery_download_item'] = 'Download items';
$txt['permissionname_mgallery_add_user_album'] = 'Add User Albums';
$txt['permissionname_mgallery_auto_approve_albums'] = 'Auto-approve User Albums';
$txt['permissionname_mgallery_add_videos'] = 'Add videos';
$txt['permissionname_mgallery_add_audios'] = 'Add audio files';
$txt['permissionname_mgallery_add_images'] = 'Add pictures';
$txt['permissionname_mgallery_rate_items'] = 'Rate items';
$txt['permissionname_mgallery_edit_own_com'] = 'Edit own comments';
$txt['permissionname_mgallery_report_com'] = 'Report comment';
$txt['permissionname_mgallery_edit_own_item'] = 'Edit own items';
$txt['permissionname_mgallery_comment'] = 'Comment in items';
$txt['permissionname_mgallery_report_item'] = 'Report items';
$txt['permissionname_mgallery_auto_approve_com'] = 'Auto-approve comments';
$txt['permissionname_mgallery_auto_approve_item'] = 'Auto-approve items';
$txt['permissionname_mgallery_multi_upload'] = 'Mass Upload';
$txt['permissionname_mgallery_viewprofile'] = 'View anyone\'s Gallery profile';
$txt['permissionname_mgallery_whoratedwhat'] = 'View who rated what';
$txt['cannot_mgallery_viewprofile'] = 'You cannot view Gallery profiles';
// End SMF Media Gallery strings
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: MinasC on January 30, 2009, 06:04:45 PM
i already have that text translated, i checked it. there must be something else wrong.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: MinasC on January 31, 2009, 05:54:03 AM
any help here please?  i can't use smg if my members can't even see it... :(
thnx
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 31, 2009, 07:02:54 AM
Whats your language set in Admin > Server Settings?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: MinasC on January 31, 2009, 07:30:32 AM
greek-utf8
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 31, 2009, 07:39:30 AM
Then make sure you edited Modifications.greek-utf8.php and got MGallery.greek-utf8.php.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: MinasC on January 31, 2009, 07:44:29 AM
i already checked those and they are ok. i managed to see the text of msg in permissions by changing server language into english (and then back to greek-utf8 off course), but that doesn't explain why i can't see the text there when i choose greek-utf8.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SergeantAsh on January 31, 2009, 07:47:15 AM
Quote from: MinasC on January 31, 2009, 07:44:29 AM
i already checked those and they are ok. i managed to see the text of msg in permissions by changing server language into english (and then back to greek-utf8 off course), but that doesn't explain why i can't see the text there when i choose greek-utf8.

Why not take the english translation page as it is now, overwrite your greek filenamed page - but for now leave the new greek version as it is - then go into SMG, change to Greek and just check that the tabs/menus etc all appear (in English of course).

Once you're happy that its reading the file correctly, retranslate the new greek version of the file?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: MinasC on January 31, 2009, 07:49:35 AM
no reason for doing that, i can see the missing greek text by changing the server's language into english (i have set the permissions i wanted that way). i am just looking for a permanent solution, that's all.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SergeantAsh on January 31, 2009, 07:56:52 AM
Sorry Minas you misunderstand - this is a permanent solution but I'm suggesting that you take the English template as it is - overwrite your Greek template - switch the language in SMG and ensure that all is displaying correctly - this will rule out any potential for your current greek template being corrupt/broken.

Once you're happy that all is working following the change to greek, then start translating the new Greek version based on your new greek template.

Does that make sense?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 31, 2009, 08:02:02 AM
Are you running SMF 2? If so make sure your file cache is empty.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: MinasC on January 31, 2009, 08:15:16 AM
dragooon no i am running smf 1.1.7
@sh sorry pale but... i didn't undrestand a word  :-[
(except the thing about me translating something which i don't have the time to do right now, even though i have translated many mods in the past)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SergeantAsh on January 31, 2009, 08:23:44 AM
Dragooon do you understand the steps that I suggested? Does it make sense? I'm suggesting that the method I proposed would at least prove that the Greek translation that Minas has created is being read.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 31, 2009, 08:28:09 AM
Actually your steps doesn't make sense. Since his greek language is fine.

And does your theme has Modifications.greek-utf8.php? If so add the strings to it, if no tripple check that there's a Modifications.greek-utf8.php with the strings.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: MinasC on January 31, 2009, 08:35:11 AM
i am running default theme and there is the file as it shoulb be with the strings in it.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on January 31, 2009, 08:36:25 AM
Anything in error log?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: MinasC on January 31, 2009, 08:39:59 AM
Εφαρμογή φίλτρου: Προβολή μόνο των μηνυμάτων σφαλμάτων αυτού του μέλους  Minas       Σήμερα στις 15:37:48
Εφαρμογή φίλτρου: Προβολή μόνο των μηνυμάτων σφαλμάτων αυτής της διεύθυνσης IP 94.70.14.246      Εφαρμογή φίλτρου: Προβολή μόνο των μηνυμάτων σφαλμάτων αυτής της συνόδου 76d99abab16331a43072ebbf9995d166
Εφαρμογή φίλτρου: Προβολή μόνο των μηνυμάτων σφαλμάτων αυτής της διεύθυνσης URL http://www.thechrisanthakopoulosfamily.gr/forumv3/index.php?action=viewErrorLog;desc
Εφαρμογή φίλτρου: Προβολή μόνο των ίδιων λαθών
8: Undefined index: mgallery_gallery
Αρχείο: /home/minasc/public_html/forumv3/Sources/MGallery-Admin.php
Γραμμή: 2436
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: MinasC on January 31, 2009, 08:40:21 AM
sorry , some are in greek
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: DirtRider on January 31, 2009, 08:55:11 AM
Quote from: MinasC on January 31, 2009, 08:39:59 AM
Εφαρμογή φίλτρου: Προβολή μόνο των μηνυμάτων σφαλμάτων αυτού του μέλους  Minas       Σήμερα στις 15:37:48
Εφαρμογή φίλτρου: Προβολή μόνο των μηνυμάτων σφαλμάτων αυτής της διεύθυνσης IP 94.70.14.246      Εφαρμογή φίλτρου: Προβολή μόνο των μηνυμάτων σφαλμάτων αυτής της συνόδου 76d99abab16331a43072ebbf9995d166
Εφαρμογή φίλτρου: Προβολή μόνο των μηνυμάτων σφαλμάτων αυτής της διεύθυνσης URL http://www.thechrisanthakopoulosfamily.gr/forumv3/index.php?action=viewErrorLog;desc
Εφαρμογή φίλτρου: Προβολή μόνο των ίδιων λαθών
8: Undefined index: mgallery_gallery
Αρχείο: /home/minasc/public_html/forumv3/Sources/MGallery-Admin.php
Γραμμή: 2436

English below

Application of filter: Projection of only this messages of faults of member Minas Today in the 15:37: 48 Application of filter: Projection of only this messages of faults of address IP 94.70.14.246 Application of filter: Projection of only this messages of faults of session 76d99abab16331a43072ebbf9995d166 Application of filter: Projection of only this messages of faults of address URL http://www.thechrisanthakopoulosfamily.gr/forumv3/index.php?action=viewErrorLog;desc Application of filter: Projection of only same errors 8: Undefined index: mgallery_gallery File: /home/minasc/public_html/forumv3/Sources/MGallery-Admin.php Line: 2436
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: MinasC on January 31, 2009, 09:21:41 AM
thnx a lot  :-[
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Joe N on January 31, 2009, 10:47:21 AM
Hi

I have installed the media galllery 1.5.3

It doesn't show up as a tab

Please Help
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: [unplugged] on January 31, 2009, 11:17:10 AM
@WBA Dude

This may help:
http://www.simplemachines.org/community/index.php?topic=137508.msg1812941#msg1812941
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Joe N on January 31, 2009, 11:18:43 AM
Quote from: SunKing on January 31, 2009, 11:17:10 AM
@WBA Dude

This may help:
http://www.simplemachines.org/community/index.php?topic=137508.msg1812941#msg1812941

Not really

I am using smf 1.1.7
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Özgür on January 31, 2009, 11:28:23 AM
is tab mean main menu button ?

Sources/Subs.php Find

'mlist' => array(


Add Before

'mgallery' => array(
'title' => $txt['mgallery_gallery'],
'href' => $scripturl . '?action=mgallery',
'show' => allowedTo('mgallery_access'),
'sub_buttons' => array(),
),

Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Joe N on January 31, 2009, 11:44:03 AM
Quote from: Özgür´ on January 31, 2009, 11:28:23 AM
is tab mean main menu button ?

Sources/Subs.php Find

'mlist' => array(


Add Before

'mgallery' => array(
'title' => $txt['mgallery_gallery'],
'href' => $scripturl . '?action=mgallery',
'show' => allowedTo('mgallery_access'),
'sub_buttons' => array(),
),


Where do I add the code

I am very confused
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Marcus Forsberg on January 31, 2009, 11:44:42 AM
Quote from: Özgür´ on January 31, 2009, 11:28:23 AM
is tab mean main menu button ?

Sources/Subs.php Find

'mlist' => array(


Add Before

'mgallery' => array(
'title' => $txt['mgallery_gallery'],
'href' => $scripturl . '?action=mgallery',
'show' => allowedTo('mgallery_access'),
'sub_buttons' => array(),
),



Thats for SMF 2.0. WBA Dude is using 1.1.7.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Özgür on January 31, 2009, 12:20:38 PM
Hmm. Sorry :(

WBA Dude please attach your index.template.php.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: metallica48423 on January 31, 2009, 01:19:33 PM
As a note:

As per the request of dragooon and Nao, I have sanitized this topic of the argument and things not related to the mod, though I have left some of the general comments that were not related to the argument. This means some 60 posts were deleted, or edited.  If your post was deleted or edited it was for pertaining to the situation as opposed to the mod.  You do not need to worry about further moderation actions.  This includes posts of some team members including myself.

However, I am human -- if I have missed something, please send me a PM with a link.

The issue here is done and over with.  Any further infractions will be dealt with as a new moderation issue and appropriate actions taken.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SgtMic on January 31, 2009, 03:50:31 PM
How do I get the mass upload to work?
RC1 and SMG 1.5.3
I can upload single pictures. But the mass upload does not work.

I can submit pictures, but when I click on upload, nothing happens. Nor are there errors
in the error log.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on January 31, 2009, 03:51:45 PM
Quote from: SgtMic on January 31, 2009, 03:50:31 PM
How do I get the mass upload to work?
RC1 and SMG 1.5.3
I can upload single pictures. But the mass upload does not work.

I can submit pictures, but when I click on upload, nothing happens. Nor are there errors
in the error log.

Does the first file upload and freeze? or nothing at all happens when you click upload?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SgtMic on January 31, 2009, 03:57:39 PM
Nothing at all happens.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on January 31, 2009, 03:59:19 PM
Quote from: SgtMic on January 31, 2009, 03:57:39 PM
Nothing at all happens.

I've never had that particular problem. I'll let somone else try to solve it. :\
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SgtMic on January 31, 2009, 06:33:33 PM
It's definitely odd. I run another forum off the same server and the mass upload works just fine.
That board is running Beta4.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on January 31, 2009, 06:45:40 PM
The mass upload actually works like a charm for me... in a Beta 4 SMF forum.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SgtMic on January 31, 2009, 09:42:34 PM
My Beta4 works like a charm as well.

It's the RC1 that is having the issue.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Blinker on January 31, 2009, 11:24:41 PM
Just upgraded to 1.5.3 and when I perform a 'Recount Totals' in Gallery maintenance I get this error:

Database Error

Unknown column 'num_comments' in 'field list'
File: /home/content/x/x/x/xxxxxxxxx/html/forum/Sources/MGallery-Admin.php
Line: 1260

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.7, while your database is at version 1.1.1. The above error might possibly go away if you execute the latest version of upgrade.php.


I checked MGallery-Admin.php and there isn't even any text in line 1260, it's blank.

Not sure about the whole DB thing, I'm running 1.1.7 and everything is up to date.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Mystery? on February 01, 2009, 12:09:25 AM
Is it possible to use this mod, if your website doesn't support FFMPEG?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on February 01, 2009, 12:11:23 AM
Quote from: Blinker on January 31, 2009, 11:24:41 PM
Just upgraded to 1.5.3 and when I perform a 'Recount Totals' in Gallery maintenance I get this error:

Database Error

Unknown column 'num_comments' in 'field list'
File: /home/content/x/x/x/xxxxxxxxx/html/forum/Sources/MGallery-Admin.php
Line: 1260

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.7, while your database is at version 1.1.1. The above error might possibly go away if you execute the latest version of upgrade.php.


I checked MGallery-Admin.php and there isn't even any text in line 1260, it's blank.

Not sure about the whole DB thing, I'm running 1.1.7 and everything is up to date.
Around that line find {db_prefix}mgallery_comments and replace with {db_prefix}mgallery_media

Quote from: SgtMic on January 31, 2009, 03:50:31 PM
How do I get the mass upload to work?
RC1 and SMG 1.5.3
I can upload single pictures. But the mass upload does not work.

I can submit pictures, but when I click on upload, nothing happens. Nor are there errors
in the error log.
Its fine for me in RC1, do you have crossdomain security XML file installed? If no search and upload it.

@Mystery - Yes, FFMPEG is only required to fetch some information and video's thumbnails, without that these features would be disabled and rest would function fine.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SgtMic on February 01, 2009, 12:50:15 AM
Installed the crossdomain.xml and still no go.

I can send a pm for a test account if you want to take a look.

Here is the code for the Upload button. javascript:Uploader.startNext();

Think it might be a JS issue?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on February 01, 2009, 12:53:07 AM
I don't have time now, are you sure you got JS and Flash enabled for your site?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SgtMic on February 01, 2009, 01:16:18 AM
Arcade and AEVA both work on the site.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on February 01, 2009, 01:17:28 AM
Send me a test account, maybe I can have a quick look.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SgtMic on February 01, 2009, 01:36:00 AM
PM sent
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Joe N on February 01, 2009, 05:18:15 AM
Quote from: Özgür´ on January 31, 2009, 12:20:38 PM
Hmm. Sorry :(

WBA Dude please attach your index.template.php.

Where would I find that?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Marcus Forsberg on February 01, 2009, 05:18:51 AM
In ./Themes/{current_theme}/
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Kindred on February 01, 2009, 07:43:57 AM
odd occurence,

One install on one server (clean install on 2.0RC1) everything works perfectly

The other install, different server, this time upgrading the the beta version of the mod, and the "folder" icons are not appearing...   actually NO icons appear for folders, even if I specify them to be different from the default the only fix for the missing folder icon is to go into the database and set the folder icon to "null"

the properties says:
http://site.com/index.php?action=mgallery;sa=media;id=38;icon
(and so on for each album ID)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: SgtMic on February 01, 2009, 12:46:13 PM
Quote from: SgtMic on February 01, 2009, 01:36:00 AM
PM sent

Draggon was able to mass upload with no issues at all.
I used a different PC and had no issues. It narrows the issue
down to this PC and that specific site.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: phantom5 on February 01, 2009, 03:55:42 PM
I upgraded SMF to 1.1.7 and installed the new media gallery version but I am having some major issues..

I noticed the teme I was using was causing some problems to I switched to the default.. at this point I can get to the gallery and upload files but they are not showing me the pics or videos.. and when I try to enter the album it hangs.. I need some help
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: KrisBG on February 01, 2009, 04:55:39 PM
Just a big problem with UTF-8
After changing everything to UTF-8 is to be able to read Cyrillic, my forum is shifting left.
It difficult to explain this.
If someone can tell me how to run the Cyrillic alphabet will have a beer on me
Title: Install
Post by: quietstorm on February 01, 2009, 09:15:42 PM
Have a question to ask!  :)

I installed this, but it did not install in other than the default theme!  :(
How can I get it to install in other themes that I have?

I did all the edits too.

TIA

btw... I posted this on the home site as well..want it to be shown on  both so I can get an answer at either place!  :)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on February 01, 2009, 09:23:11 PM
As I remember, you just have to copy the Mgallery folder from the Default theme and to your custom theme.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: phantom5 on February 02, 2009, 01:40:51 AM
most themes I tried have worked.. hit a few that didn't
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Xavi-Nena on February 02, 2009, 05:40:40 AM
Quote from: Nao 尚 on January 02, 2009, 01:40:21 AM
Quote from: SunKing on January 01, 2009, 06:03:49 PM
It's located in your forum's root folder.

www.yoursite.com/forum/MGalleryItem.php
And again (as it's not really documented): remove that file and the embed code for "html" and "direct link" will be removed from item pages, which is an easy way to disable these. (I know a lot of users, including myself, only need the smg tag.)

awesome thanks for the note on that, i was trying to figure out how to remove the embed and direct links of the image. :) thanks so much.

Quote from: dannyd on November 11, 2008, 10:04:28 AM
Hi is there a snipped of code that I can put on the index.template.php that would show the most recent videos added ? Or any way to add the most recent on the home page ?

Thanks.

was this ever answered? i looked and searched but could not find an answer. :) [/glow]


and one last thing....

I ran into an issue with my posted on item info field. It is showing the date the photo was taken...how would i go about fixing that?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on February 02, 2009, 07:58:38 AM
Quote from: NenaGb on February 02, 2009, 05:40:40 AM
I ran into an issue with my posted on item info field. It is showing the date the photo was taken...how would i go about fixing that?
I think that's because I added an option in the admin area (or per-album settings, not sure), where you can choose whether you want to use the Exif date or the upload date. It's set to "Exif date" by default because it's efficient for most people.
Just disable it ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on February 02, 2009, 04:13:24 PM
Hey, I know what I'm about to ask has been discused. But I am too lazy to dig beyond a few pages...

I would like to know if it's possible to mod my smg so that I can set different quotas for different member groups so I can grant paying members more gallery space.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: InsaneneSs on February 02, 2009, 05:07:23 PM
My mass upload doesn't work :S

"Select files | Upload
Overall progress (2 MB)
2%
Current file progress
100%
user6_pic3_1222616210.jpg"

It stays stop like this and to move on i have to press "Upload" all the time

"Select files | Upload
Overall progress (2 MB)
105%
Current file progress
100%
user6_pic3_1222616210.jpg"

It stays always like this and never upload a pic

(And sorry my ingles is horrible)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on February 02, 2009, 05:09:51 PM
Quote from: Became17 on February 02, 2009, 05:07:23 PM
My mass upload doesn't work :S

"Select files | Upload
Overall progress (2 MB)
2%
Current file progress
100%
user6_pic3_1222616210.jpg"

It stays stop like this and to move on i have to press "Upload" all the time

"Select files | Upload
Overall progress (2 MB)
105%
Current file progress
100%
user6_pic3_1222616210.jpg"

It stays always like this and never upload a pic

(And sorry my ingles is horrible)

nao, i just had this prob.. but you fixed it yourself... just copy n paste what you did to my site and this gentleman should be right proper satisfied... :)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on February 02, 2009, 06:03:07 PM
@Became> read the help file at install time. Re: mod_security issue.

Quote from: LinK187 on February 02, 2009, 04:13:24 PM
I would like to know if it's possible to mod my smg so that I can set different quotas for different member groups so I can grant paying members more gallery space.
Nope.
This feature has been reported without a date. I don't think it'll come before long.
If you're looking for a feature for paying members, I suppose you're willing to sponsor it then?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on February 02, 2009, 06:06:51 PM
Quote from: Nao 尚 on February 02, 2009, 06:03:07 PM
@Became> read the help file at install time. Re: mod_security issue.

Quote from: LinK187 on February 02, 2009, 04:13:24 PM
I would like to know if it's possible to mod my smg so that I can set different quotas for different member groups so I can grant paying members more gallery space.
Nope.
This feature has been reported without a date. I don't think it'll come before long.
If you're looking for a feature for paying members, I suppose you're willing to sponsor it then?

Well that depends. For now all member have a 10mb gallery quota... but i could charge a specific amount that would cover me paying you for the modification...
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: InsaneneSs on February 02, 2009, 06:10:03 PM
Quote from: Nao 尚 on February 02, 2009, 06:03:07 PM
@Became> read the help file at install time. Re: mod_security issue.

Quote from: LinK187 on February 02, 2009, 04:13:24 PM
I would like to know if it's possible to mod my smg so that I can set different quotas for different member groups so I can grant paying members more gallery space.
Nope.
This feature has been reported without a date. I don't think it'll come before long.
If you're looking for a feature for paying members, I suppose you're willing to sponsor it then?

I have to reinstall it?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on February 02, 2009, 06:15:48 PM
Quote from: Became17 on February 02, 2009, 06:10:03 PM
I have to reinstall it?
No, just read the help file. db_mgallery.php in the package. At the end.

...
(Isn't there the slighest room left for personal initiative out there in this world?)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on February 02, 2009, 06:18:36 PM
Quote from: Nao 尚 on February 02, 2009, 06:15:48 PM
Quote from: Became17 on February 02, 2009, 06:10:03 PM
I have to reinstall it?
No, just read the help file. db_mgallery.php in the package. At the end.

...
(Isn't there the slighest room left for personal initiative out there in this world?)

yes much room... however my php/html/java knowledge is far behind my c/c++/vb knowledge... and the fact it's much easier to throw $s around than source code XD :P
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: InsaneneSs on February 02, 2009, 06:19:27 PM
I just see on the package this file db_mgallery.php

The is no help.db_mgallery.php -.-

"
License agreement
If you wish to use this software, you will be bound by the SMG license agreement. Please make sure to read file license_smg.txt, at the root of this package. It can also be viewed online at http://smf-media.com/smg/license.php.

Support and updates for the mod can be found at http://smf-media.com or the simplemachines.org topic.
If you find any issues, please make sure they have not been reported/fixed before reporting them!

Check out the Admin area for a full Credits page.
Thank you for trying out SMF Media Gallery! Enjoy!"

When i install it it just says this
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: magarto on February 02, 2009, 08:28:16 PM
Finally i added the following to .htaccess and i hope that solves the error:
<ifmodule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</ifmodule>


Thankssss :)
Title: Themes
Post by: quietstorm on February 02, 2009, 09:33:13 PM
Can anyone tell me and others what themes are compatible with this?

TIA
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: InsaneneSs on February 02, 2009, 10:15:47 PM
Can someone help me please :S

It freezes on 2% on the first file :S
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Xavi-Nena on February 02, 2009, 10:23:21 PM
Quote from: Nao 尚 on February 02, 2009, 07:58:38 AM
Quote from: NenaGb on February 02, 2009, 05:40:40 AM
I ran into an issue with my posted on item info field. It is showing the date the photo was taken...how would i go about fixing that?
I think that's because I added an option in the admin area (or per-album settings, not sure), where you can choose whether you want to use the Exif date or the upload date. It's set to "Exif date" by default because it's efficient for most people.
Just disable it ;)

Thank ya kisses.
Title: Re: Themes
Post by: DirtRider on February 02, 2009, 10:49:22 PM
Quote from: quietstorm on February 02, 2009, 09:33:13 PM
Can anyone tell me and others what themes are compatible with this?

TIA

I am running this on all the themes from DzinerStudio with no problem at all
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on February 03, 2009, 03:54:46 AM
Quote from: Became17 on February 02, 2009, 10:15:47 PM
Can someone help me please :S

It freezes on 2% on the first file :S

It would probably be easier to find out which themes are not compatible. Because most are compatible.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: casp3r on February 03, 2009, 04:14:11 AM
Would anyone have a piece of code that would get the total views of all the images in the gallery - just something I could put in a php block?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on February 03, 2009, 04:42:18 AM
@NenaGB> you're welcome.

Quote from: Became17 on February 02, 2009, 06:19:27 PM
I just see on the package this file db_mgallery.php

The is no help.db_mgallery.php -.-
Wow... That's a keeper, lol.

QuoteWhen i install it it just says this
Err... You're not using the latest version and you're coming here for support?
You mean you're not even trying to update the package before asking for help?

Yeah... Definitely a keeper.

Anyway.... magarto's reply.  ::)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Özgür on February 03, 2009, 05:36:57 AM
Nao, again thank you and dragoon for this great mod.

I have problem for create thumbnail.

If aeva 5.2.56 and mgallery 1.5.3 installed , Create thumbnail not work.

http://demo.rockayseri.net/index.php?action=mgallery;sa=album;id=1

I try aeva uninstall and add one dailymotion video, thumbnail work.
But i install aeva and open, add someone dailymotion video, thumbnail not work.

Is this my server fault ?

If you want admin pass / ftp account, i can send you.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Paragaya on February 03, 2009, 05:39:13 AM
Thank you  :)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on February 03, 2009, 05:54:50 AM
Quote from: Özgür´ on February 03, 2009, 05:36:57 AM
Is this my server fault ?
Uh, I don't know... I still have your admin+ftp for this site so I'll have a look.

I'm not sure there's a reason for this to happen, really. You're telling me it only works when Aeva is disabled, or when Aeva is uninstalled?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Özgür on February 03, 2009, 06:11:01 AM
Uninstalled. if aeva disabled, videos not embedding.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: InsaneneSs on February 03, 2009, 03:22:42 PM
Quote from: Nao 尚 on February 03, 2009, 04:42:18 AM
@NenaGB> you're welcome.

Quote from: Became17 on February 02, 2009, 06:19:27 PM
I just see on the package this file db_mgallery.php

The is no help.db_mgallery.php -.-
Wow... That's a keeper, lol.

QuoteWhen i install it it just says this
Err... You're not using the latest version and you're coming here for support?
You mean you're not even trying to update the package before asking for help?

Yeah... Definitely a keeper.

Anyway.... magarto's reply.  ::)

SMFMediaGallery-1.5.3 is the last one isn't ?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on February 03, 2009, 05:18:57 PM
Is this bad?

Quote
****   Yesterday at 04:36:52 PM 
*.*.*.*     7011a5d890477c9a74eeb420a1c9abb2 
http://****.com/forum/index.php?action=mgallery;sa=post;album=4 
8: Undefined index: embed-pattern
File: /home/****/public_html/****/forum/Sources/MGallery-Embed.php
Line: 91
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on February 03, 2009, 05:39:31 PM
No... It's just that 1.5.3's embedding system isn't compatible with Aeva 5.2.56 (and 5.2.52... And maybe 5.2.50, can't remember.)
This was fixed in rev 716 but I'm not sure Dragooon is planning to release 1.5.4 anytime soon.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on February 03, 2009, 05:41:29 PM
Quote from: Nao 尚 on February 03, 2009, 05:39:31 PM
No... It's just that 1.5.3's embedding system isn't compatible with Aeva 5.2.56 (and 5.2.52... And maybe 5.2.50, can't remember.)
This was fixed in rev 716 but I'm not sure Dragooon is planning to release 1.5.4 anytime soon.

Ah ok thx.. just wasn't sure what it meant :P
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: drakeone69 on February 03, 2009, 05:43:54 PM
This isn't really a problem or an error or anything but I was wondering is there an option or could there be in the future that would show a section for the recent items added like the "RECENT POSTS" section? so that way visitors will see the newly added gallery additions? Maybe I'm just missing something, or perhaps it'd be a great feature to add to this amazing mod.

Thanks ahead of time guys.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: quietstorm on February 03, 2009, 11:17:07 PM
Hey..
Once I installed SMF 2.0b4 all went well but one thing..

My categories/stats etc. are in black and I need them to be white.
Look at the attached screen shot and you can see what I am talking about.


Thanks for an awesome program and I want to thank the ones that
help me get this up and running!  :)

THANKS AGAIN
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Kindred on February 04, 2009, 12:18:18 AM
well, you will have to modify the CSS to suit your own theme.   Firebug is your friend
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on February 04, 2009, 01:39:13 AM
Quote from: LinK187 on February 03, 2009, 05:41:29 PM
Ah ok thx.. just wasn't sure what it meant :P
What it means is: please downgrade to v5.1.47 (I checked, this is the last version that'll work), *or* ask Dragooon for SVN access to SMF-Media.com, which should allow you to download a beta that supports Aeva 5.2.x.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on February 04, 2009, 03:10:32 AM
Quote from: Nao 尚 on February 04, 2009, 01:39:13 AM
Quote from: LinK187 on February 03, 2009, 05:41:29 PM
Ah ok thx.. just wasn't sure what it meant :P
What it means is: please downgrade to v5.1.47 (I checked, this is the last version that'll work), *or* ask Dragooon for SVN access to SMF-Media.com, which should allow you to download a beta that supports Aeva 5.2.x.

Do you recommend waiting for an updated version of either mod or doing a manual fix?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on February 04, 2009, 03:28:16 AM
I won't "update" Aeva for this because it's a clear cut from the past.
It's SMG that needs an update.
A manual fix isn't possible. There are too many fixes to apply. I could upload both changed files here, but I'd rather not do this instead of Dragooon. I'm officially retired from SMG (and you know why), and although I may keep working on it, I won't do anything behind his back.

So really, either downgrade Aeva (which would be sad), or ask Dragooon for the fix or a copy of the latest svn.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on February 04, 2009, 03:30:07 AM
Quote from: Nao 尚 on February 04, 2009, 03:28:16 AM
I won't "update" Aeva for this because it's a clear cut from the past.
It's SMG that needs an update.
A manual fix isn't possible. There are too many fixes to apply. I could upload both changed files here, but I'd rather not do this instead of Dragooon. I'm officially retired from SMG (and you know why), and although I may keep working on it, I won't do anything behind his back.

So really, either downgrade Aeva (which would be sad), or ask Dragooon for the fix or a copy of the latest svn.

I'll wait for 1.5.4 or for you to tell me otherwise.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on February 04, 2009, 03:39:46 AM
Quote from: Nao 尚 on February 04, 2009, 03:28:16 AM
I'm officially retired from SMG (and you know why),
No...
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Özgür on February 04, 2009, 04:20:02 AM
Quote from: akyhne on February 04, 2009, 03:39:46 AM
Quote from: Nao 尚 on February 04, 2009, 03:28:16 AM
I'm officially retired from SMG (and you know why),
No...

are you sleeping ? :) http://www.simplemachines.org/community/index.php?topic=289263.0

I guess @Dragoon is waiting for 2.0 rc1. We will wait for new version now.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Xavi-Nena on February 04, 2009, 04:20:26 AM
Ok tried installing this to my other board that has way more mods and this is what i get upon install:

4.     Execute Modification     ./Sources/Load.php     Test failed

what other info is needed to further assist? Thanks in advance.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: hansdampf on February 04, 2009, 04:38:59 AM
Hi,

It just might be that I'm blind or stuff... but I can't find a possibility for users to DELETE their own albums?! It only seems to be possible to remove albums via the admin backend. Can't be...?!  :-\

Cheers!
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on February 04, 2009, 04:51:30 AM
I must be. I can't find where it says he's retiring. Not a word on smf-media.com as well.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on February 04, 2009, 04:52:31 AM
Quote from: hansdampf on February 04, 2009, 04:38:59 AM
Hi,

It just might be that I'm blind or stuff... but I can't find a possibility for users to DELETE their own albums?! It only seems to be possible to remove albums via the admin backend. Can't be...?!  :-\

Cheers!

Users can not delete their albums.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on February 04, 2009, 05:09:19 AM
Quote from: Özgür´ on February 04, 2009, 04:20:02 AM
Dragoon is waiting for 2.0 rc1. We will wait for new version now.
1.5.3 totally supports RC 1, RC 1 compatibility issues were fixed in it. I'm going to release 1.5.4 maybe this weekend.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: hansdampf on February 04, 2009, 05:49:52 AM
Quote from: akyhne on February 04, 2009, 04:52:31 AM
Users can not delete their albums.

I see. But why not? What is the intention behind?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on February 04, 2009, 05:59:22 AM
Quote from: akyhne on February 04, 2009, 04:51:30 AM
I must be. I can't find where it says he's retiring. Not a word on smf-media.com as well.
I said it loud and clear on January 29. This has been edited out by a moderator, but I thought it was pretty much self-explained by all of the posts that remained anyway.

Do you really need me to repeat myself, and say it out loud?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on February 04, 2009, 06:03:25 AM
What's wrong? I just didn't read it anywhere.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on February 04, 2009, 06:06:33 AM
Weren't you part of the flame war?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on February 04, 2009, 07:04:44 AM
Quote from: Dragooon on February 04, 2009, 05:09:19 AM
Quote from: Özgür´ on February 04, 2009, 04:20:02 AM
Dragoon is waiting for 2.0 rc1. We will wait for new version now.
1.5.3 totally supports RC 1, RC 1 compatibility issues were fixed in it. I'm going to release 1.5.4 maybe this weekend.

Could you guys provide manual upgrade instructions from 1.5.3.  I had to manually install smg. Or at least an upgrade package.

Quote from:  NenaGbOk tried installing this to my other board that has way more mods and this is what i get upon install:

4.     Execute Modification     ./Sources/Load.php     Test failed

what other info is needed to further assist? Thanks in advance.

Proceed but update load.php manually.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: drakeone69 on February 04, 2009, 08:08:15 AM
I'm guessing by the fact I didn't get a response that my idea isn't an intelligent one.......
.......?
or my rambling wasn't coherent.. either way, is it something that may be added later? or not at all, as in never, or I'll have to figure it out on my own type thing? .. I'm not very good with php and all that jazz and I was just hoping that a recent posts for the gallery would promote it's use a bit more... tis all.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on February 04, 2009, 08:18:09 AM
Try take a look here: http://smf-media.com/community/index.php?topic=493.0
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Angelotus on February 04, 2009, 09:01:55 AM
Does this mod support RSS feed or SSI functionality?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on February 04, 2009, 09:06:25 AM
Quote from: drakeone69 on February 04, 2009, 08:08:15 AM
I'm guessing by the fact I didn't get a response that my idea isn't an intelligent one.......
.......?
or my rambling wasn't coherent.. either way, is it something that may be added later? or not at all, as in never, or I'll have to figure it out on my own type thing? .. I'm not very good with php and all that jazz and I was just hoping that a recent posts for the gallery would promote it's use a bit more... tis all.

Not to be insulting, but definitely stupid question. By default when you click "gallery". It shows you a the list of galleries and then a bunch of recent uploads.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on February 04, 2009, 09:18:50 AM
I guess he means on the boardindex (frontpage).
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on February 04, 2009, 09:20:50 AM
Quote from: akyhne on February 04, 2009, 09:18:50 AM
I guess he means on the boardindex (frontpage).

It's doable, but he'd have to ask dragoon or nao which code to modify to change it's location...
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on February 04, 2009, 09:22:31 AM
Quote from: Nao 尚 on February 04, 2009, 06:06:33 AM
Weren't you part of the flame war?
In the way that i got around 50 mails from Simple Machines saying "There's a war going on at Simple Machines. Click here to continue", yeah. But besides that, no.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on February 04, 2009, 09:23:52 AM
Quote from: LinK187 on February 04, 2009, 09:20:50 AM
Quote from: akyhne on February 04, 2009, 09:18:50 AM
I guess he means on the boardindex (frontpage).

It's doable, but he'd have to ask dragoon or nao which code to modify to change it's location...

My link shows a solution, at least for SMF 1.1.7
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on February 04, 2009, 09:26:51 AM
Quote from: akyhne on February 04, 2009, 09:23:52 AM
Quote from: LinK187 on February 04, 2009, 09:20:50 AM
Quote from: akyhne on February 04, 2009, 09:18:50 AM
I guess he means on the boardindex (frontpage).

It's doable, but he'd have to ask dragoon or nao which code to modify to change it's location...

My link shows a solution, at least for SMF 1.1.7

Does this place the recent posts at the top or bottom of the index?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on February 04, 2009, 09:35:11 AM
I didn't try it out, as I'm using SMG in a 2.0 beta 4 forum version. To me it looks like it just adds it to the buttom or top, but i'm not sure. I can't find the place in the code where the modder wants people to add his code.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on February 04, 2009, 09:45:25 AM
Quote from: akyhne on February 04, 2009, 09:35:11 AM
I didn't try it out, as I'm using SMG in a 2.0 beta 4 forum version. To me it looks like it just adds it to the buttom or top, but i'm not sure. I can't find the place in the code where the modder wants people to add his code.

Ah, I wouldn't mind recent uploads being displayed at the bottom above the info center..
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on February 04, 2009, 09:59:36 AM
Quote from: akyhne on February 04, 2009, 09:22:31 AM
In the way that i got around 50 mails from Simple Machines saying "There's a war going on at Simple Machines. Click here to continue", yeah. But besides that, no.
Okay then...

http://www.simplemachines.org/community/index.php?topic=260821.msg1901527#msg1901527
Of course it was edited later to remove the threat but it's still been applied.

Here's what I said back then:

"I think a nice feature would be that you f** apologize for your behavior or I'm quitting SMG development for good!"

Never got an apology from @sh, and never got the SMF Team to take any action against him. So, they do not care much about important community members getting insulted by lamers.

I may not be half as nice a person as Karl is, but I worked just as much as he did on SMF. When he called it quits and definitively left the community (for 6 weeks), everyone was crying and speaking like he was a great hero who died on the battlefield. Now, me, complaining about how I'm treated? Well, funny story... Nobody cares. I won't forget. So, as such, I did not see any further reason to involve myself in a community that doesn't care.

- I'm keeping my positions on SMG and Aeva, and as a beta tester, but I'm no longer doing any work that could be qualified as "for the community".
- I'm only working for myself and my own pleasure.
- If I find a bug in SMF and it's too big/annoying to let go, then I'll report it. That's pretty much it.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Angelotus on February 04, 2009, 10:03:47 AM
Is there SSI and/or RSS support on this mod?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on February 04, 2009, 10:04:13 AM
Quote from: Angelotus on February 04, 2009, 10:03:47 AM
Is there SSI and/or RSS support on this mod?
Only SSI.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Angelotus on February 04, 2009, 10:07:50 AM
Where can I find these functions?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on February 04, 2009, 11:01:09 AM
Subs-MGallery.php
getMediaItems() is the main one.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Özgür on February 04, 2009, 01:01:10 PM
Quote from: Dragooon on February 04, 2009, 05:09:19 AM
Quote from: Özgür´ on February 04, 2009, 04:20:02 AM
Dragoon is waiting for 2.0 rc1. We will wait for new version now.
1.5.3 totally supports RC 1, RC 1 compatibility issues were fixed in it. I'm going to release 1.5.4 maybe this weekend.

actually i know this, but i don't know why are you waiting for. As I this was only an estimate =)
1.5.4 = rev x ?
I ask this because i am interested ftp upload and aeva fix.
In fact, we could see the package svn aeva well as you do not? =)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on February 04, 2009, 01:10:11 PM
SMG SVN is not public..nor I'm planning on making it.

1.5.4 is in branches, 1.6 is in trunk(Not that it matters to you). I'm only waiting for this weekend so that I can get some time to do some final testing and update the stuff. FTP upload will be in 1.6, not in 1.5.4.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Joe N on February 04, 2009, 01:31:09 PM
Please

Would you need to install the gallery to make mgallery show up?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on February 04, 2009, 01:31:47 PM
@WBA - What do you mean??
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on February 04, 2009, 01:40:02 PM
Quote from: WBA Dude on February 04, 2009, 01:31:09 PM
Would you need to install the gallery to make mgallery show up?
Nope.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: drakeone69 on February 04, 2009, 03:14:25 PM
Thank you for posting that link .... I indeed wanted the recent posts thing on the board index, not in the gallery.

I used the code provided at the link and it worked perfectly.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on February 04, 2009, 03:16:14 PM
Quote from: drakeone69 on February 04, 2009, 03:14:25 PM
Thank you for posting that link .... I indeed wanted the recent posts thing on the board index, not in the gallery.

I used the code provided at the link and it worked perfectly.

Where did it place the recent uploads? top or bottom of the index?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: magarto on February 04, 2009, 05:52:43 PM
Finally, after adding .htaccess instruction it keeps on hanging when uploading files i have to click on "upload" each some minutes :(
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: PfalzNacht on February 04, 2009, 05:56:06 PM
Exists anywhere a german translation?
If not, i will translate it these days and upload the files in this topic.
I translate it to german-iso and german-utf8.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on February 04, 2009, 06:28:54 PM
Translation: http://smf-media.com

There is a german version.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on February 04, 2009, 06:48:08 PM
Quote from: akyhne on February 04, 2009, 06:28:54 PM
Translation: http://smf-media.com

There is a german version.
See? Even you don't give a crap about what I said. And I was talking to you, lol.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on February 04, 2009, 06:56:49 PM
Nah Nao, I just think it was something I didn't want to get involved in.

But it's sad you leave Dragoon and all the other of us because of one single attack. I'm sure a lot don't care, but there's also a lot that DO care.

I'm not taking side here, but concider this: If Simple Machines should live up to their own rules of this forum, you and others should have been banned, right or wrong.

Think of it, no matter how right you were in your own case; if you had a guy at noisen.com that wouldn't stop posting, even if you asked him to, you would surely ban the guy from your forum at some point.

None of you would stop in that fight, even you were told to! You have to respect what a moderator says, no matter how right you are. If people had no respect for you at Noisen, what would you do?

Edit: I really don't want to discuss the matter here, but will be willing to answer in another forum.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on February 04, 2009, 07:02:34 PM
I've put the fight behind me really. Hard for me to stay mad about anything for any length of time. I really don't think it's worth bringing back up again. If nao wants to move on to other things, that's fine. However i don't believe he should do so based on this incident. Just one loudmouthed mole that wouldn't know up from down if he fell off his balcony.
No one here is getting paid. That's why we're using smf... the free part. Nao's help with this mod has been very helpful to me and others. It would be a shame if he moves on, but if he does, I think it should be for other reasons.

Just my 2 cents.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Akyhne on February 04, 2009, 07:05:41 PM
Righty.. :)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Facetious Sage on February 04, 2009, 10:19:41 PM
I've got a question about this.  I did a test forum to do this, by the way.

Nvm...I actually figured it out (and gave myself a gentle slap on the head, too)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on February 05, 2009, 01:00:11 AM
Will smg1.5.3 work on smf1.1.8?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on February 05, 2009, 01:03:48 AM
Yes.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Smoky "Rider" Blue on February 05, 2009, 01:04:40 AM
create a backup and try and see..

worse comes to worse, you just have to restore..

you might need to edit the xml file for it to go in, but i think the guys have the mod straight..  ;)


jinkx Dragoon
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on February 05, 2009, 01:05:43 AM
Quote from: Dragooon on February 05, 2009, 01:03:48 AM
Yes.

So what's the diff between 1.1.7 and 1.1.8? All i've heard is they fixed some "vulnerabilities"....
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Smoky "Rider" Blue on February 05, 2009, 01:06:51 AM
this is the smf media gallery, not the topic for the 1.1.8 ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Marcus Forsberg on February 05, 2009, 01:07:32 AM
It was some packagerelated securityvulnerabilities.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on February 05, 2009, 01:09:11 AM
Quote from: SmokyBlue on February 05, 2009, 01:06:51 AM
this is the smf media gallery, not the topic for the 1.1.8 ;)

true but that thread didn't say what was actually different.

Quote from: Nas on February 05, 2009, 01:07:32 AM
It was some packagerelated securityvulnerabilities.

So upgrading to 1.1.8 won't effect any mod at all?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Smoky "Rider" Blue on February 05, 2009, 01:10:25 AM
hmm.. ok Dragoon and Nao.. you should just let the topic of the media gallery be called the offtopix thread  ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: nolageek on February 05, 2009, 01:12:03 AM
I cant open any of the conversion scripts, they all end at line 2087 and don't work.  Anyone else having this issue?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: LinK187 on February 05, 2009, 01:12:54 AM
Quote from: SmokyBlue on February 05, 2009, 01:10:25 AM
hmm.. ok Dragoon and Nao.. you should just let the topic of the media gallery be called the offtopix thread  ;)

could someone link me to the right thread?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on February 05, 2009, 01:17:22 AM
Quote from: SmokyBlue on February 05, 2009, 01:04:40 AM
create a backup and try and see..

worse comes to worse, you just have to restore..

you might need to edit the xml file for it to go in, but i think the guys have the mod straight..  ;)
No need for that Smokey, it already works with 1.1.8 and 2.0 RC 1 as it is.

Quote from: LinK187 on February 05, 2009, 01:05:43 AM
Quote from: Dragooon on February 05, 2009, 01:03:48 AM
Yes.

So what's the diff between 1.1.7 and 1.1.8? All i've heard is they fixed some "vulnerabilities"....
Thats good enough to be the difference :P. There are some other bug fixes as well I believe.

Quote from: LinK187 on February 05, 2009, 01:12:54 AM
Quote from: SmokyBlue on February 05, 2009, 01:10:25 AM
hmm.. ok Dragoon and Nao.. you should just let the topic of the media gallery be called the offtopix thread  ;)

could someone link me to the right thread?
http://www.simplemachines.org/community/index.php?topic=290608.0

Quote from: nolageek on February 05, 2009, 01:12:03 AM
I cant open any of the conversion scripts, they all end at line 2087 and don't work.  Anyone else having this issue?
Uh I don't understand..how are you trying to open them?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on February 05, 2009, 02:09:40 AM
Quote from: akyhne on February 04, 2009, 06:56:49 PM
Nah Nao, I just think it was something I didn't want to get involved in.
Just like everyone else.

QuoteNone of you would stop in that fight, even you were told to! You have to respect what a moderator says, no matter how right you are.
I give people as much respect as they give me back, that's all.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Smoky "Rider" Blue on February 05, 2009, 02:15:26 AM
Nao..

i wasnt around when this happened, i heard, and for everything i have, you are a good guy, smart, with a temper, but i still like ya..

i hope they can resolve this.. perhaps now, that you have stated so clearly, they will..

chin up and take a vacation for a few.. heck come work on my site.. i got a few that really could use the help.  ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Joe N on February 05, 2009, 03:45:27 AM
Quote from: Nao 尚 on February 04, 2009, 01:40:02 PM
Quote from: WBA Dude on February 04, 2009, 01:31:09 PM
Would you need to install the gallery to make mgallery show up?
Nope.

Thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Angelotus on February 05, 2009, 05:35:55 AM
I want the latest uploaded pics to show up on my frontpage through SSI. Which code to use?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Dragooon on February 05, 2009, 05:37:22 AM
Have a look at the http://smf-media.com under Hacks and Mods board.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Angelotus on February 05, 2009, 05:38:04 AM
Thanks Dragooon, will do that!!!
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: casp3r on February 05, 2009, 07:36:15 AM
For anyone that's interested this will get and display the total views

<?php

global $settings;

$ViewsResult=mysql_query("select sum(views) from smf_mgallery_media");
$TotalViews=mysql_fetch_array($ViewsResult);



echo "<b>Gallery Views:</b> ".$TotalViews[0]."<br>";

?>
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: ianus on February 05, 2009, 08:41:14 AM
Quote from: Nao 尚 on February 04, 2009, 09:59:36 AM

Greetings!

I think, you are not right.
See, after your " I finish" post, things moved to a more private sphere.
metallica48423 let us know, that he and the team are corresponding with you and your "friend" in this thread and the one weightman has stared.
We, or maybe only I, don't know what has happened meanwhile. Appropriate advocacy I think.

Then the difference between you and Karl.
It's not the amount or quality of work one of you spend to help users. (I have never seen a mod author like you, who ask so often for admin access to fix things for other webmasters.) Maybe it's the different style of writing, but this depends.

I think, it's the wide range of users each of you are reaching. Karl has written a bunch of mods and therefore he reached a bigger audience. You are working on "only" two mods and although the mods are very popular, your audience is smaller.

Now and future?
Now I'm sorry to hear that you quit. Imho you carried a fresh wind into this community. Some times ago I used to call it "French style". See, I'm from Germany and we are so dump, that we tend to follow our leaders even if they are incredibly stupid bastards. The "French style" is the opposite. If something went wrong, you went to Paris to give somebody a wake-up call (or to behead someone).
So, I appreciate if you call a spade a spade.

Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 05, 2009, 09:07:09 AM
SMG 1.5.4 released

From the changelog
! Incorrect table name while recounting totals
! Use aeva_onposting() on comments and descriptions if Aeva is installed. This will allow for items to be looked up
!* AEVA 5.2.x compatibility fixes
! Sub-albums of user albums were not getting shown
! Fixed validation issues when a comment was posted by a guest, or was unapproved.
! Users could see images via direct link even if they didn't have mgallery_access permission
! Banned users were not having a check on MGalleryItem.php
! Fixed video thumbnails, and YouTube will now send larger thumbnails (320x240)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 05, 2009, 09:10:34 AM
Quote from: Dragooon on February 05, 2009, 09:07:09 AM
SMG 1.5.4 released

From the changelog
! Incorrect table name while recounting totals
! Use aeva_onposting() on comments and descriptions if Aeva is installed. This will allow for items to be looked up
!* AEVA 5.2.x compatibility fixes
! Sub-albums of user albums were not getting shown
! Fixed validation issues when a comment was posted by a guest, or was unapproved.
! Users could see images via direct link even if they didn't have mgallery_access permission
! Banned users were not having a check on MGalleryItem.php
! Fixed video thumbnails, and YouTube will now send larger thumbnails (320x240)


Is there manual upgrade instructions from 1.5.3 ? I couldn't use package manager to install, so I had to install 1.5.3 manually.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 05, 2009, 09:11:23 AM
You can overwrite mgallery's files.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 05, 2009, 09:12:35 AM
Quote from: Dragooon on February 05, 2009, 09:11:23 AM
You can overwrite mgallery's files.

Could you elaborate?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Özgür on February 05, 2009, 09:37:56 AM
Thank you @Dragoon. =)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: PfalzNacht on February 05, 2009, 09:41:20 AM
Quote from: akyhne on February 04, 2009, 06:28:54 PM
Translation: http://smf-media.com (http://smf-media.com)

There is a german version.

I was looking for the german language, not for turkish, italian, greek, spanish or danish.

Or did you mean this thread: http://smf-media.com/community/index.php?topic=293.0 (http://smf-media.com/community/index.php?topic=293.0)

But why isn't the german translation in the download section? ;)

I translate it of my own, then i know it's the right. :-P
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 05, 2009, 09:46:12 AM
Quote from: The Crusader on February 05, 2009, 09:41:20 AM
I was looking for the german language, not for turkish, italian, greek, spanish or danish.

Or did you mean this thread: http://smf-media.com/community/index.php?topic=293.0 (http://smf-media.com/community/index.php?topic=293.0)

But why isn't the german translation in the download section? ;)

I translate it of my own, then i know it's the right. :-P


There IS a german translation. As I have more access because I'm the Danish translator, I have no idea what you can see and what you can't see.
Ask Dragooon. If he needs an updated version of German, I'm sure he will be happy to sign you up as translator.

If you really want to start your own translation, you can just grab my Danish package, split it apart, and make your own version.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: hansdampf on February 05, 2009, 09:46:31 AM
Quote from: Dragooon on February 05, 2009, 09:07:09 AM
SMG 1.5.4 released

From the changelog
! Incorrect table name while recounting totals
! Use aeva_onposting() on comments and descriptions if Aeva is installed. This will allow for items to be looked up
!* AEVA 5.2.x compatibility fixes
! Sub-albums of user albums were not getting shown
! Fixed validation issues when a comment was posted by a guest, or was unapproved.
! Users could see images via direct link even if they didn't have mgallery_access permission
! Banned users were not having a check on MGalleryItem.php
! Fixed video thumbnails, and YouTube will now send larger thumbnails (320x240)



Hi,

Could anyone explain to me how to add a sub-album?

Thx!
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: PfalzNacht on February 05, 2009, 10:07:28 AM
Quote from: akyhne on February 05, 2009, 09:46:12 AM
Quote from: The Crusader on February 05, 2009, 09:41:20 AM
I was looking for the german language, not for turkish, italian, greek, spanish or danish.

Or did you mean this thread: http://smf-media.com/community/index.php?topic=293.0 (http://smf-media.com/community/index.php?topic=293.0)

But why isn't the german translation in the download section? ;)

I translate it of my own, then i know it's the right. :-P


There IS a german translation. As I have more access because I'm the Danish translator, I have no idea what you can see and what you can't see.
Ask Dragooon. If he needs an updated version of German, I'm sure he will be happy to sign you up as translator.

If you really want to start your own translation, you can just grab my Danish package, split it apart, and make your own version.

I'm not registerd at SMF-Media.com, that's the reason why i can't see the translations in the threads.  ;)
And i can't speak danish, so i translate from english into german.  ;D

When i'm ready with it, i will upload the files here in this thread, and/or send it to Dragoon.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: InsaneneSs on February 05, 2009, 10:36:59 AM
Quote from: LinK187 on February 03, 2009, 03:54:46 AM
Quote from: Became17 on February 02, 2009, 10:15:47 PM
Can someone help me please :S

It freezes on 2% on the first file :S

It would probably be easier to find out which themes are not compatible. Because most are compatible.

But it doesn't work it the default theme either!
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 05, 2009, 10:47:58 AM
Quote from: Became17 on February 05, 2009, 10:36:59 AM
Quote from: LinK187 on February 03, 2009, 03:54:46 AM
Quote from: Became17 on February 02, 2009, 10:15:47 PM
Can someone help me please :S

It freezes on 2% on the first file :S

It would probably be easier to find out which themes are not compatible. Because most are compatible.

But it doesn't work it the default theme either!

Then it's not a theme related issue.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 05, 2009, 10:51:01 AM
Didn't we already reply about this? File upload freezing during an upload = mod_security issue?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: InsaneneSs on February 05, 2009, 10:52:25 AM
I didn't understand what you said about that

I don't speak ingles very well :S

I'm sorry
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 05, 2009, 10:53:35 AM
Quote from: Became17 on February 05, 2009, 10:52:25 AM
I didn't understand what you said about that

I don't speak ingles very well :S

I'm sorry

Ah, that's the problem. We're speaking english, not ingles :P
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: InsaneneSs on February 05, 2009, 10:56:47 AM
Quote from: LinK187 on February 05, 2009, 10:53:35 AM
Quote from: Became17 on February 05, 2009, 10:52:25 AM
I didn't understand what you said about that

I don't speak ingles very well :S

I'm sorry

Ah, that's the problem. We're speaking english, not ingles :P

LOL, in AZ, English is Inglês. xD

Edit:

Nao, you are talking about this?

"Initializing settings

No new record(s) have been inserted into the settings table.
Your database update has been completed successfully!

If this is your first install, you should now go to the Admin area, Members section, and head to the General Permissions section. Then click on Modify for each membergroup, and check the SMF Media Gallery section to give them the appropriate permissions.

If you're experiencing errors "403" or "406" when using the new Mass Upload tool, please edit (or create) file .htaccess at the root of your SMF folder, and add the following instructions in it:
   SecFilterEngine Off
   SecFilterScanPOST Off


Thank you for trying out SMF Media Gallery!"

When i put this on the file:

SecFilterEngine Off
SecFilterScanPOST Off

The page doesn't open, "External Error" or something like it
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 05, 2009, 11:09:56 AM
Yes.
And if doesn't work, ask your host.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: InsaneneSs on February 05, 2009, 11:13:17 AM
Quote from: Nao 尚 on February 05, 2009, 11:09:56 AM
Yes.
And if doesn't work, ask your host.

Just one more thing, hear: "file .htaccess at the root of your SMF folder"

That's inside the SMF folder or on the public_html ?

I saw the file in public_html is there, empty, and when i put does 2 lines it says that error
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 05, 2009, 12:00:00 PM
That's in the SMF folder. Although anywhere should work, as long as it's not in a sub-folder of SMF itself.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: apenzoon on February 05, 2009, 12:49:38 PM
Is it possible to give this mod pretty urls?
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Joe N on February 05, 2009, 12:53:03 PM
Quote from: apenzoon on January 28, 2009, 01:08:13 PM
I have got a problem with this mods, the gallery is only visible for admins, how to make it public ???

I am having the smae problem with smf 1.1.8
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 05, 2009, 01:02:19 PM
Quote from: apenzoon on February 05, 2009, 12:49:38 PM
Is it possible to give this mod pretty urls?
Yes but you'll have to write your own code to add support.
As in: http://media.noisen.com/
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: RustyBarnacle on February 05, 2009, 01:40:51 PM
Thanks for the updates.  I tried reinstalling the slide show after updating to 1.5.4 and got an installation error.


5.    Execute Modification    ./Themes/default/MGallery.template.php    Test failed

If you could take a look at that it would be appreciated.
Title: Re: SMF Media Gallery (SMG) - 1.5.3 released
Post by: Nao 尚 on February 05, 2009, 03:26:44 PM
Quote from: ianus on February 05, 2009, 08:41:14 AM
I think, you are not right.
See, after your " I finish" post, things moved to a more private sphere.
metallica48423 let us know, that he and the team are corresponding with you and your "friend" in this thread and the one weightman has stared.
Well we didn't have much of a talk... He let me know why he wouldn't budge, and I let him know why I wanted him to.

QuoteThen the difference between you and Karl.
It's not the amount or quality of work one of you spend to help users. (I have never seen a mod author like you, who ask so often for admin access to fix things for other webmasters.)
Well I don't know, I think that most of the issues are due to circumstances that have nothing to do with my code. So I try to find them and sort it out so that I can help others later without having to request admin/ftp access.
Yeah, sometimes I do take more time for some people -- I remember spending nearly two fulltime days on a server which was completely broken by dirty installations. I took time to clean up the source files and reinstall several mods, sometimes manually. But I only did that once. I try not to spend more than half an hour on every case.
All in all, my goal is simply to make tech support *easier* for later.

Also, it might be due to the frustration I accumulated at the time when I was working on Kyodai Mahjongg. People would come to me and say, "this here doesn't work, that doesn't work, etc.", and I would try to find what caused the issue, and many times I failed badly. Why? Because the only way for me to fix would have been to go to their place and fix their computer. Actually, I did that once, around 2006 -- a customer who was a couple of miles away from where I live. I just went to his place and fixed KMJ, and I also fixed more stuff on his computer, lol.
Where was I? Ah yes. Website fixing -- it's pretty easy as long as I have admin/ftp access, because I can actually reproduce the bugs locally and try many possible methods for not triggering the error. It can be exciting to do.

QuoteI think, it's the wide range of users each of you are reaching. Karl has written a bunch of mods and therefore he reached a bigger audience. You are working on "only" two mods and although the mods are very popular, your audience is smaller.
Plus, he reads all of sm.org, while I only keep myself to a few dozen topics (mostly the SMG and Aeva topics, and topics from the beta tester board.)

QuoteNow and future?
Now I'm sorry to hear that you quit. Imho you carried a fresh wind into this community. Some times ago I used to call it "French style". See, I'm from Germany and we are so dump, that we tend to follow our leaders even if they are incredibly stupid bastards. The "French style" is the opposite. If something went wrong, you went to Paris to give somebody a wake-up call (or to behead someone).
Oh yeah, national sports... And we're a country known for its tendency to do strikes for pretty much everything ;) (Not my type of action but I can understand.)

QuoteSo, I appreciate if you call a spade a spade.
Well, what would you want me to call it? My English is not good enough for that, ha! ;)

Oh, and that 18mn Knucklebusters song remix on the Sidologie CD... It rocks. Don't mind me, I just started writing when the song began, and it's still not finished eheh. Gives me the energy.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Me313 on February 06, 2009, 04:49:30 PM
i could not solve this problem:

"An error happened during the upload process, please try again or contact the administrator. "

i have set all to 777

and set the Maximum File Size Allowed ..

i can upload pictures...but not audio files and video...
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 06, 2009, 04:50:42 PM
Quote from: Me313 on February 06, 2009, 04:49:30 PM
i could not solve this problem:

"An error happened during the upload process, please try again or contact the administrator. "

i have set all to 777

and set the Maximum File Size Allowed ..

i can upload pictures...but not audio files and video...

I have this problem too. Had to install manually.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Me313 on February 06, 2009, 04:55:05 PM
can u tell me how to manually install it?coz i used ftp to upload a file in an album created there..but the file is not on the web..
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 06, 2009, 04:59:23 PM
you will need to go to the maintenance and run the recount ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 06, 2009, 05:02:39 PM
Quote from: Me313 on February 06, 2009, 04:55:05 PM
can u tell me how to manually install it?coz i used ftp to upload a file in an album created there..but the file is not on the web..

goto the mod page where you downloaded this and chose the manual install for your version of smf. It will show you what code to add/modify on which files and what files to manually copy... also you'll need to run the db_mgallery file in the forum root from a web browser to create the db structure for the gallery...
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Me313 on February 06, 2009, 05:07:35 PM
oh i see
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 06, 2009, 05:08:21 PM
run the entire maintenance.. it will show  ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Me313 on February 06, 2009, 05:09:57 PM
Quote from: SmokyBlue on February 06, 2009, 04:59:23 PM
you will need to go to the maintenance and run the recount ;)

really?and after that what shud i do?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 06, 2009, 05:13:12 PM
Quote from: Me313 on February 06, 2009, 05:07:35 PM
oh i see

never mind, I misread what you said. I thought you had the problem installing the mod itself.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Me313 on February 06, 2009, 06:22:09 PM
oh ok hehe..thank you anyway
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: InsaneneSs on February 06, 2009, 06:28:23 PM
Quote from: Nao 尚 on February 05, 2009, 10:51:01 AM
Didn't we already reply about this? File upload freezing during an upload = mod_security issue?

I ask the host and they sad that there is no "modSecurity" installed on the host :S
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Me313 on February 06, 2009, 06:48:05 PM
hey smokeyblue..thanks ..

but i still have the error lol...gosh..sorry

what is happening actually?what i'm mising in here?

the same error appeared

- An error happened during the upload process, please try again or contact the administrator.

Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Me313 on February 06, 2009, 07:05:21 PM
now..i cant even upload picture...:(
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: irdogg on February 06, 2009, 11:26:16 PM
can someone tell me how to install this manually that ftp wont work for me 550 error can i just upload it and set permission i mean after i do the file modifications  ::)

if so please include the chmod map please
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: fangweile on February 07, 2009, 12:33:18 AM
Hello there,

I have a problem in my gallery. I can't view thumbnails and previews. It displays this error when finding errors in maintainance

QuoteThe following errors were discovered when searching for errors

    * The physical thumbnail #238, used with item #1, is missing.
    * The physical thumbnail #239, used with item #2, is missing.
    * The physical preview file #240, used with item #2, is missing.
    * The physical thumbnail #241, used with item #3, is missing.
    * The physical thumbnail #242, used with item #4, is missing.
    * The physical thumbnail #243, used with item #5, is missing.
    * The physical preview file #244, used with item #5, is missing.
    * The physical thumbnail #245, used with item #6, is missing.
    * The physical thumbnail #246, used with item #7, is missing.
    * The physical preview file #247, used with item #7, is missing.
    * The physical thumbnail #248, used with item #9, is missing.
    * The physical preview file #249, used with item #9, is missing.
    * The physical thumbnail #250, used with item #10, is missing.
    * The physical thumbnail #251, used with item #11, is missing.
    * The physical preview file #252, used with item #11, is missing.
    * The physical thumbnail #253, used with item #12, is missing.
    * The physical preview file #254, used with item #12, is missing.
    * The physical thumbnail #255, used with item #13, is missing.
    * The physical thumbnail #256, used with item #14, is missing.
    * The physical thumbnail #257, used with item #15, is missing.
    * The physical preview file #258, used with item #15, is missing.
    * The physical thumbnail #259, used with item #16, is missing.
    * The physical preview file #260, used with item #16, is missing.
    * The physical thumbnail #261, used with item #17, is missing.
    * The physical preview file #262, used with item #17, is missing.
    * The physical thumbnail #263, used with item #19, is missing.
    * The physical thumbnail #264, used with item #20, is missing.
    * The physical thumbnail #265, used with item #21, is missing.
    * The physical preview file #266, used with item #21, is missing.
    * The physical thumbnail #267, used with item #22, is missing.
    * The physical preview file #268, used with item #22, is missing.
    * The physical thumbnail #269, used with item #23, is missing.
    * The physical thumbnail #270, used with item #24, is missing.
    * The physical thumbnail #271, used with item #26, is missing.
    * The physical preview file #272, used with item #26, is missing.
    * The physical thumbnail #273, used with item #27, is missing.
    * The physical thumbnail #274, used with item #28, is missing.
    * The physical preview file #275, used with item #28, is missing.
    * The physical thumbnail #276, used with item #29, is missing.
    * The physical preview file #277, used with item #29, is missing.

I already tried to regenerate thumbnails and previews but still nothing happens.
Thanks in advance

-------------------
In addition, My user can't upload picture also, it display this error

An error happened during the upload process, please try again or contact the administrator.
Any Idea



Alright, ive figured it out. I just restore my old gallery database and it is working fine now. Thanks a lot for this wonderful gallery. ^_^[/hr]
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 07, 2009, 03:10:47 AM
Safe Mode?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: phantom5 on February 07, 2009, 07:53:59 AM
Quote from: irdogg on February 06, 2009, 11:26:16 PM
can someone tell me how to install this manually that ftp wont work for me 550 error can i just upload it and set permission i mean after i do the file modifications  ::)

if so please include the chmod map please

what ftp program do you use?  I recommend FlashFXP which allows you to to change attribs (chmod) very easily. you can also use raw commands and type "CHMOD 777 filename.php" or "CHMOD 777 directory"
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: mark7144 on February 07, 2009, 02:30:03 PM
I'm interested in using this mod but have a question...

Most of my website uses SSI, my home page and my sub-pages use forum topics as the source for the page content (Wiki style). If I install this mod, can I show all the galleries on a non-SMF page using SSI?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Özgür on February 07, 2009, 02:42:55 PM
Quote from: mark7144 on February 07, 2009, 02:30:03 PM
I'm interested in using this mod but have a question...

Most of my website uses SSI, my home page and my sub-pages use forum topics as the source for the page content (Wiki style). If I install this mod, can I show all the galleries on a non-SMF page using SSI?

http://smf-media.com/community/index.php?topic=68.0
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: mark7144 on February 07, 2009, 02:47:20 PM
So using that method, it won't look like an SMF forum anymore, right? My main website is not like an SMF portal, it's a completely different design so I need to use this mod but not have it look as if it is part of SMF.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Özgür on February 07, 2009, 02:54:01 PM
You can't use as a (full) standalone for smf.

Quote from: Nao
"SMG is a mod that integrates within your SMF install", doesn't it?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 07, 2009, 06:36:21 PM
Yeah, Mark. It'll work just fine. You can trust me on that, lol ;) I know you have decent knowledge of PHP etc so you'll be in known territory.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: ke4obt on February 07, 2009, 06:41:35 PM
maybe I missed it, but when I have the mass upload enabled the "Select files" button doesn't show up in IE. It shows fine in Firefox, but just a blank spot in IE. I've attached the 2 separate screen shots.
Any idea? What do I need to add where to fix this?

Thanks,
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 07, 2009, 08:13:59 PM
No troubles for me. Do you have errors in the log?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 07, 2009, 08:21:04 PM
Quote from: ke4obt on February 07, 2009, 06:41:35 PM
maybe I missed it, but when I have the mass upload enabled the "Select files" button doesn't show up in IE. It shows fine in Firefox, but just a blank spot in IE. I've attached the 2 separate screen shots.
Any idea? What do I need to add where to fix this?

Thanks,

In either ie or firefox you have overridden the websites colors scheme. Check your options in both browsers.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: L'AltroWeb on February 07, 2009, 08:29:58 PM
update from 1.5.3 to 1.5.4 without problem :)
1) replace via ftp all files
2) put in your forum directory and run db_mgallery.php (delete when you have finish)
3) replace from backup only hs.css and style.css (with my custom)
4) put new archive in /Packages directory, delete old 1.5.3 and fix installed.list file

Thanks, great work! ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: ke4obt on February 07, 2009, 08:43:40 PM
@ akhyne - no errors in my log.
@LinK187 - I have my site up on 2 separate computers. IE on both of them are set to use the "default" colors for the site - at least from what I can tell. The "upload" button shows fine, just not the "Select files" button doesn't show up in IE. Firefox shows both buttons fine. Is there something I can do in IE to make sure it's set right?

oops, forgot My site (http://hamradioadvisors.net/test2)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 07, 2009, 08:48:36 PM
Quote from: ke4obt on February 07, 2009, 08:43:40 PM
@ akhyne - no errors in my log.
@LinK187 - I have my site up on 2 separate computers. IE on both of them are set to use the "default" colors for the site - at least from what I can tell. The "upload" button shows fine, just not the "Select files" button doesn't show up in IE. Firefox shows both buttons fine. Is there something I can do in IE to make sure it's set right?

oops, forgot My site (http://hamradioadvisors.net/test2)


The it must be theme specific because on my forum it looks the same in ie, ff, opera, and chrome.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: ke4obt on February 07, 2009, 08:55:34 PM
I'm using SMF 1.1.8, SMG 1.5.4, default theme on SMF. That doesn't sound logical to me - being a theme-related issue.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 07, 2009, 08:56:49 PM
Is the text in the code of the page?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 07, 2009, 09:04:19 PM
Quote from: ke4obt on February 07, 2009, 08:55:34 PM
I'm using SMF 1.1.8, SMG 1.5.4, default theme on SMF. That doesn't sound logical to me - being a theme-related issue.

You must have done something to a .css file somewhere or ff and or ie is not up to date.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: ke4obt on February 07, 2009, 09:08:33 PM
@akhyne
<p>
<span id="browse" style="position: absolute; z-index: 2"></span>
<span id="browseBtnSpan" style="z-index: 1"><a id="browseBtn" href="#">Select files</a></span> |
<a id="upload" href="#">Upload</a>
</p>

Is this what you mean by being in the code of the page?

@LinK187 - I don't know enough about coding to go anywhere near a .css file :)  and both IE and FF were just updated. *scratches head*
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 07, 2009, 09:13:17 PM
Quote from: ke4obt on February 07, 2009, 09:08:33 PM
@akhyne
<p>
<span id="browse" style="position: absolute; z-index: 2"></span>
<span id="browseBtnSpan" style="z-index: 1"><a id="browseBtn" href="#">Select files</a></span> |
<a id="upload" href="#">Upload</a>
</p>

Is this what you mean by being in the code of the page?

@LinK187 - I don't know enough about coding to go anywhere near a .css file :)  and both IE and FF were just updated. *scratches head*

Then I'm at a loss. :\
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 07, 2009, 09:16:29 PM
My code is the same. Can you still click the non-existing link? If you can't, then your browser must be messed up.

Can you attach all the code from the page? You are using IE7, right?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 07, 2009, 09:21:38 PM
Ehh.. I just looked at your attached IE image. There's a white square where the text should be. Did you cut something out?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Me313 on February 07, 2009, 09:28:32 PM
help..i got this error after i tried to submit my audio file:

XML Parsing Error: junk after document element
Location: http://www.domain.net/forum/index.php?action=mgallery;sa=mass;album=3;xml;upcook=YTo0OntpOjA7czoxOiIzIjtpOjE7czo0MDoiNTEyMWYzMWU2OTUwNDc1OGI3NjYzMjFiY2NlNDYyYTM3NjExZjRkMCI7aToyO2k6MTQyMzI0MzkxNjtpOjM7aTowO30%3D
Line Number 15, Column 1:<div align="center" style="margin-top: 2ex;"><a href="javascript:history.go(-1)">Back</a></div>

what shud i do?

and i also have problem uploading bigger files..even i have set up its maximum size to a bigger size.

just tell me if..the problem is with the server or..smg itself?




Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: ke4obt on February 07, 2009, 09:34:06 PM
Quote from: akyhne on February 07, 2009, 09:21:38 PM
Ehh.. I just looked at your attached IE image. There's a white square where the text should be. Did you cut something out?

no, didn't cut anything out. that little white square shows up on one of my computers, not the other (figure that one out).
put the source code in a text file to make for a little easier reading. :)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 07, 2009, 09:38:05 PM
Quote from: ke4obt on February 07, 2009, 09:34:06 PM
Quote from: akyhne on February 07, 2009, 09:21:38 PM
Ehh.. I just looked at your attached IE image. There's a white square where the text should be. Did you cut something out?

no, didn't cut anything out. that little white square shows up on one of my computers, not the other (figure that one out).
put the source code in a text file to make for a little easier reading. :)

Then it's software interference specific to only one of your boxes.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 07, 2009, 09:41:13 PM
Seems ok to me. I'm blank...
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: ke4obt on February 07, 2009, 09:45:45 PM
akhyne, if you want, go to the link I posted a little bit back. click on gallery, mass upload, etc.
just use IE since that's the one I seem to have the problem with.

actually, forgot about some errors we've been getting since yesterday.
8: Undefined index: color
File: //hraregular/test2/Themes/default/EzPortal.template.php(1120) : eval()'d code
Line: 466

the errors only show up when somebody goes to the home (portal) page. Still haven't figured it out. Posted in the ezportal thread and haven't got a reply yet. I don't think that's the problem, but I'm not sure.

thanks,
Mickey

ps - LinK, the thing is - one of the computers is running windows xp, the other is running vista. both have IE and FF. The only REAL difference between the computers is that the xp machine is a desktop, the vista is a laptop.
hold on and I'll have a screenshot from the laptop
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: ke4obt on February 07, 2009, 09:53:57 PM
here's the screenshot from the laptop IE.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 07, 2009, 09:55:15 PM
Could you save it in .doc format?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Xavi-Nena on February 07, 2009, 10:07:48 PM
i bow my head humbly into this asking for more support...

so me being a complete boob i made changes to my files w/out making a copy to resort back to...figures the one time i say 'oh ill be good, i never have issues' would be the time i have issues with my code...

anyone please help. i have attached my load.php as that was the file i had to manually alter.

oh yes and this is the error i get when going to my board:

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 'FROM smf_members AS mem LEFT JOIN smf_attachments AS a ON (a.ID_MEMBER = 1)' at line 2
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: ke4obt on February 07, 2009, 10:13:25 PM
here ya go.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: ke4obt on February 07, 2009, 10:23:47 PM
well, disregard my posts. it IS a software error. As long as I have my screen reader on, I don't see the "select files" button. Turn off the screen reader, the button shows up just fine.
odd. going to try something else to see if I can get them to work together.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 07, 2009, 10:30:51 PM
There must be a "Disable mass upload from spooky sites"- option in your screen reader software ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 07, 2009, 10:49:34 PM
Quote from: ke4obt on February 07, 2009, 10:23:47 PM
well, disregard my posts. it IS a software error. As long as I have my screen reader on, I don't see the "select files" button. Turn off the screen reader, the button shows up just fine.
odd. going to try something else to see if I can get them to work together.

Honestly, how many blind users do you have? lol I wouldn't worry about it. Why would a blind person upload pics XD
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Xavi-Nena on February 07, 2009, 11:02:35 PM
can anyone help me with my load issue?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: ke4obt on February 07, 2009, 11:03:18 PM
Quote from: LinK187 on February 07, 2009, 10:49:34 PM
Quote from: ke4obt on February 07, 2009, 10:23:47 PM
well, disregard my posts. it IS a software error. As long as I have my screen reader on, I don't see the "select files" button. Turn off the screen reader, the button shows up just fine.
odd. going to try something else to see if I can get them to work together.

Honestly, how many blind users do you have? lol I wouldn't worry about it. Why would a blind person upload pics XD

if you will remember, SMG does audio and video files too, not just pictures. And even though this is just a test site for now, the main focus of our site is for blind or visually impaired Ham Radio Operators. So, even though the users may not have full sight, they can use the sizer on their computer to blow up the pictures and then upload the ones they want to the site. Not nice to have them keep needing to upload single pictures one at a time. Or large sound files one at a time.
I've seen a post where Dragooon told someone if they had a large file to upload to use the flash upload function.
I've sent an e-mail to the tech support for my screen reader - only hope they can figure out a way to fix it. Otherwise, the wife will have to do all the uploads for the site. :(
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 07, 2009, 11:05:04 PM
Quote from: ke4obt on February 07, 2009, 11:03:18 PM
Quote from: LinK187 on February 07, 2009, 10:49:34 PM
Quote from: ke4obt on February 07, 2009, 10:23:47 PM
well, disregard my posts. it IS a software error. As long as I have my screen reader on, I don't see the "select files" button. Turn off the screen reader, the button shows up just fine.
odd. going to try something else to see if I can get them to work together.

Honestly, how many blind users do you have? lol I wouldn't worry about it. Why would a blind person upload pics XD

if you will remember, SMG does audio and video files too, not just pictures. And even though this is just a test site for now, the main focus of our site is for blind or visually impaired Ham Radio Operators. So, even though the users may not have full sight, they can use the sizer on their computer to blow up the pictures and then upload the ones they want to the site. Not nice to have them keep needing to upload single pictures one at a time. Or large sound files one at a time.
I've seen a post where Dragooon told someone if they had a large file to upload to use the flash upload function.
I've sent an e-mail to the tech support for my screen reader - only hope they can figure out a way to fix it. Otherwise, the wife will have to do all the uploads for the site. :(

/me thinks he should have looked at your site first lol

Just play with the .css or use a diff theme.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 08, 2009, 04:31:08 AM
Quote from: NenaGb on February 07, 2009, 11:02:35 PM
can anyone help me with my load issue?
At line 390, remove:
, mem.mgal_total_items, mem.mgal_total_comments,

Make sure the line does NOT end with a comma!
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: mark7144 on February 08, 2009, 05:57:39 AM
Quote from: Nao 尚 on February 07, 2009, 06:36:21 PM
Yeah, Mark. It'll work just fine. You can trust me on that, lol ;) I know you have decent knowledge of PHP etc so you'll be in known territory.
Awesome! I'm very exciting in getting this installed and running. I used have a really large gallery but after a year of legal threats it got to a stage where I had to take it down. Now I'm relaunching it as a fan gallery using SMG so copyright is less of an issue. :)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Joe N on February 08, 2009, 06:02:53 AM
Quote from: Dragooon on September 09, 2008, 03:14:05 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1365)
SMF Media Gallery (SMG)
Version: 1.5.4
SMF Media Gallery © SMF-Media.com (http://smf-media.com)
For SMF 1.1.8 and SMF 2.0 Beta 4/RC1
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsmf-media.com%2Fcommunity%2FThemes%2Fdefault%2Fimages%2Fx-click-but21.gif&hash=46d68494dfd37c74ef03b555761a6471502b31fc) (http://smf-media.com/community/index.php?action=treasury)
Donations will be used to pay for the project's costs -- mainly the server costs. Please help the SMF Media Gallery project survive!


SMF Media Gallery is a free and full-featured gallery mod for SMF, we hope you'll enjoy it!
User side demo (http://smf-media.com/community/index.php?action=mgallery)


Main Features (Main new v1.5 features are marked in red)

  • Works on both SMF 1.1 and SMF 2.0!
  • General Albums, User Albums that only allow items from their owners, Sub-Albums with unlimited levels
  • Supports Images, Audio and Video files, and embedding videos from Youtube, Dailymotion etc.
  • Tracks what items haven't yet been viewed by the user (similar to SMF's Unread Posts)
  • Search, preview, rate, comment and embed items! It must be worth the exclamation mark!
  • Approval/Unapproval system for comments, items and user albums
  • Powerful permission and security features, including password protection
  • Supports Exif data (no PHP modules required), GD2, ImageMagick and FFMpeg
  • Highslide animated transitions with per-album settings
  • An exhaustive control panel for admins to play with
  • Mass Upload, Profile areas, embed tags...
  • And much, much more... We don't want to spoil the fun.


License agreement
If you wish to use this software, you will be bound by the SMG license agreement. Please make sure to read file license_smg.txt, at the root of this package. It can also be viewed online at http://smf-media.com/smg/license.php (http://smf-media.com/smg/license.php).



Credits

  • Development : Dragooon, Nao [noisen.com]
  • 3rd party scripts : Exifixer, Highslide, Yahoo! UI Uploader, JW Player, DewPlayer



How to upgrade
Uninstall old gallery
Install the new version
And you are done! There will be no data loss.



Support and updated for this mod can be found at http://smf-media.com or http://simplemachines.org




Slideshow addon
A slideshow add-on is also available, this add-on adds a slideshow feature for your gallery. Click here (http://store.smf-media.com) for more information.




MGConverter_cpg.php - Coppermine to SMG 1.5 converter

Note : This will wipe out SMF Media Gallery's installation however Coppermine's installation will remain unaffected before or after the conversion

Note : Currently it is only for 1.5

Requirements

  • A working Coppermine installation to convert from, which is bridged with SMF(I may make a non-bridged converter)
  • A working fresh SMF Media Gallery installation(It should be fully functional)

How to convert :
Download the attached mgconverter_cpg.php and upload it to your forum's root where SSI.php and index.php exists.
Run it from your browser.
Follow the steps on screen, it should do the conversion itself.

What it converts

  • Items
  • Albums(user and general)
  • Comments

Note : This is only tested with cpg 1.4.x




MGConverter_sgl.php - SMF Gallery Lite to SMF Media Gallery converter (New update!)

Note : This will wipe out SMF Media Gallery's installation. However, SMF Gallery Lite's installation will remain unaffected before or after the conversion

Note : Currently it only works for 1.5

Requirements

  • A working SMF Gallery installation to convert from
  • A working fresh SMF Media Gallery installation(It should be fully functional) on the same forum and should be latest 1.5 release

How to convert :
Download the attached mgconverter_sgl.php and upload it to your forum's root where SSI.php and index.php exists.
Run it from your browser.
Follow the steps on screen, it should do the conversion itself.

What it converts

  • Items
  • Categories
  • Comments
  • Reports

Note : It is tested with Gallery 1.9, although theoretically it should convert SMF Gallery 2.0 as well




MGConverter_sgp.php - SMF Gallery Pro to SMF Media Gallery converter
(New converter! Added November 27th) Only compatible with RC 3.2 - Refer to the SMF Gallery Lite converter for installation instructions)

Basically, I took Dragooon's SGL converter, and tried to apply it to a dummy SGP gallery. It didn't work. Then I figured, okay I'll fix that. Oh, and that and that and that. And many hours later, it was done. And nobody cares. I have no life and I must scream. ~~Nao

This is an early release for those of you who want to try converting your SGP gallery and give SMG a try. Don't expect miracles (although it converts pretty much everything, except for album icons which we won't do), but if it works, eh, good for you!

Would you need to install the other gallery as well.

I have it but it doesn't show up as a tab?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: drakeone69 on February 08, 2009, 06:43:40 AM
I am having a problem and I'm not very savvy with PHP yet and not sure what is going on..

I can access the mass upload screen and I can click on UPLOAD, but Select Files does not do anything, in IE it merely reloads the page and in firefox you cannot even click it, although Upload is clickable.

Is anyone else having this issue? all I did was uninstall 1.5.3 and install 1.5.4, it was working before that.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 08, 2009, 08:16:04 AM
@drakenone> Do you have a screen reader installed?

Quote from: mark7144 on February 08, 2009, 05:57:39 AM
Awesome! I'm very exciting in getting this installed and running. I used have a really large gallery but after a year of legal threats it got to a stage where I had to take it down. Now I'm relaunching it as a fan gallery using SMG so copyright is less of an issue. :)
Why should it be less of an issue?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 08, 2009, 08:20:27 AM
darkenone - Do you got crossdomain.xml installed?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: jaru on February 08, 2009, 11:17:24 AM
hi, I've been using the MSG - SMF Media Gallery for almost a month, and yesterday, suddenly, all the pictures and videos in the album are unable to get displayed.
not thumbs, no previews. and if I use the direct link i get "Something went wrong..."

Steps performed by me:
-checked databases, repaired and it says all is OK.
-uninstall previous version and install 1.5.4 version
-run all the options in the maintenance mode

nothing worked, all the gallery functions work correctly except image display

do you have any ideas how to solve this?

thank you in advance
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: katb on February 08, 2009, 11:19:18 AM
hi installed successfully i caan't view images.. i tried firfox and IE .when i click gallery i can view only image description like following

Views: 0
Filesize: 32.75KB
Date: Today at 21:54:49
Comments (0)
By: testuser
[UnApprove] [Edit] [Delete]

please help
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 08, 2009, 12:08:40 PM
Can you PM me FTP and Admin info>?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 08, 2009, 12:12:15 PM
As long as no single user is willing to give ftp+admin access to their website so that we can analyze this, we can't do anything.

I assume that you all tried to go back to SMG 1.5.3 and it worked?

You can also try this: open MGallery.php and replace

// If you can't access..forget it
if (!mGalAllowedTo('access'))
{
$path = $settings['theme_dir'] . '/images/mgallery/denied.png';
$filename = 'denied.png';
}
else
list($path, $filename) = getMediaFilePath($id, $type);


With

list($path, $filename) = getMediaFilePath($id, $type);

Of course, no guarantee it'll work. Since I can't reproduce. (None of the usual testers can reproduce, I'd say. Did you notice how these are mostly ex-lurkers who are reporting this?)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Joe N on February 08, 2009, 12:18:08 PM
Quote from: Dragooon on February 08, 2009, 12:08:40 PM
Can you PM me FTP and Admin info>?

I don't think he would!  ;D
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 08, 2009, 12:28:52 PM
Then I can't help him.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Joe N on February 08, 2009, 12:31:24 PM
Quote from: Dragooon on February 08, 2009, 12:28:52 PM
Then I can't help him.

But giving a password away!
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 08, 2009, 12:35:49 PM
What do you mean?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: qubbah on February 08, 2009, 12:43:33 PM
i try to go back 1.5.3 but  it still not working...
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: [unplugged] on February 08, 2009, 12:48:29 PM
It's easy enough to set up a temporary FTP account if security is an issue...... :-\

WBA Dude.....if you still need assistance with the tab showing, attach your index.template.php here and I'll fix it for you.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: ke4obt on February 08, 2009, 12:57:38 PM
Quote from: Dragooon on February 08, 2009, 08:20:27 AM
darkenone - Do you got crossdomain.xml installed?

would that help with my not seeing the button?
Even though I have tracked it down to my screen reader, I'm still looking for a solution. 
A way for someone to check what it is doing - you can use your own website to see it.
1 - go to http://satogo.com (http://satogo.com). Follow the directions, but don't create an account or try to log in. You can just "continue without registering". This will use the "default" screen reading program.
2 - go to the website that has SMG with mass upload enabled. If it's your website, that's fine. You will see the "Upload" button, but not the "Select files" button. This is also a way for you to check if your website is accessible to the blind.
Most anything that doesn't read out loud means that it doesn't have an alt tag attached to it, the alt tag is blank, or it's done in Flash.

As a registered user and a certified CSAW participant of System Access, I can get most of the site set up to read correctly with Serotek's System Access (http://www.serotek.com). I would need an account set up with your highest "regular" member's permissions. If you need to contact me, you can PM me here at SMF.

Then, hopefully, you will be able to figure out a work-around to get the button to show.
We really like SMG. But, this little snag is annoying - to say the least. Since Hams love to share audio, pictures and video amongst themselves.
@Dragooon/Nao - thanks for such a great mod. Even if we have to disable the mass upload :(  we still are going to use the mess out of it :) once the site goes live.

Thanks again for the help,
Flip
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: mark7144 on February 08, 2009, 03:02:25 PM
Quote from: Nao 尚 on February 08, 2009, 08:16:04 AM
Why should it be less of an issue?
Because the photos will belong to the fans who upload them, before they were photos from professionals.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: nosferatu on February 08, 2009, 04:21:18 PM
Hello all. I've installed this mod but, on ApolloBB, it doesn't display the thumbnails and previews (other than the icon and in the profile section). The image link is there even though I can't see the pic because the mouse pointer turns to a hand when I mouse over what appears to be a blank space and links to the album where I can see the full image. It works fine in the default theme and in the BlueSkies theme. I'm using SMF 1.1.8. Any ideas?

Thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 08, 2009, 05:28:37 PM
@nosferatu> I posted a possible fix in my previous message. Did you try it?

Quote from: WBA Dude on February 08, 2009, 12:31:24 PM
But giving a password away!
Well what's the problem?
Let me see my list... I have ftp access to weightman, eyeskreamcomics, nfoclan, mforum, our-crib, rockayseri, wewantsport, virtuelnasrbija, assyrian4all, baklja and xbmc. This is from the list of sites I've kept (i.e. may be getting more requests to things stuff there so I kept them). Do you think any of these sites are in danger of being hacked by me? Well, believe me, I have much better things to do than pissing off other people. I'd rather do it by being constantly sarcastic than by messing with files, it's funnier. Also, my access requests are very public. It would be silly of me to hack sites and expect people not to notice it was me, wouldn't it?

In short: I have no time to play wannabe hackers and I'm only here to improve my mods. If people don't want to give me ftp/admin access, I won't kill them for that, eh. If they do, they can as well give me temporary ftp (restriced to the Sources folder is fine), and a temp admin account as well. Why should I care?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Me313 on February 08, 2009, 07:33:35 PM
i have problem uploading bigger files..even i have set up its maximum size to a bigger size.

just tell me if..the problem is with the server or..smg itself?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 08, 2009, 08:01:41 PM
Quote from: Nao 尚 on February 08, 2009, 05:28:37 PM
@nosferatu> I posted a possible fix in my previous message. Did you try it?

Quote from: WBA Dude on February 08, 2009, 12:31:24 PM
But giving a password away!
Well what's the problem?
Let me see my list... I have ftp access to weightman, eyeskreamcomics, nfoclan, mforum, our-crib, rockayseri, wewantsport, virtuelnasrbija, assyrian4all, baklja and xbmc. This is from the list of sites I've kept (i.e. may be getting more requests to things stuff there so I kept them). Do you think any of these sites are in danger of being hacked by me? Well, believe me, I have much better things to do than pissing off other people. I'd rather do it by being constantly sarcastic than by messing with files, it's funnier. Also, my access requests are very public. It would be silly of me to hack sites and expect people not to notice it was me, wouldn't it?

In short: I have no time to play wannabe hackers and I'm only here to improve my mods. If people don't want to give me ftp/admin access, I won't kill them for that, eh. If they do, they can as well give me temporary ftp (restriced to the Sources folder is fine), and a temp admin account as well. Why should I care?

I've given him access to two of my forums as an admin as well as a few diff folders via ftp. In each case he quickly fixed my problem. I also deleted/disabled the accounts I gave him afterwards just for peace of mind. You can trust nao and dragoon.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: PfalzNacht on February 08, 2009, 08:58:44 PM
The SMG works fine, but i have one issue.

I enabled the mass upload, but this don't work. It doesn't matter which browser, Javascript and Flash is on.
I can't click on the link to choose the pictures.

My other mods i have installed are:
Glossary
SMF Articles
RSS Feeder

Is there any Problem with one of these Mods?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 08, 2009, 09:29:45 PM
I posted about this a number of pages back, since I had to manually update to 1.5.4, I overwrote all the smg files and changed the color scheme for the mass upload back to default. I need the text on the file names to be grey or black. Which file controls this again?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: PfalzNacht on February 08, 2009, 09:47:36 PM
I've found the error.

Normally i use german as langauge, and when i turn it into english, the mass upload works coorect.
But why?
I think i have to translate the latest version of the langauge strings, because i use older german strings i found on smf-media.com
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Janet Merai on February 09, 2009, 12:01:28 AM
I am having problems just like that, no images show up when displayed even though they are SHOWN to display, no images show up at all.

Tried Google Chrome, Firefox and IE, nothing.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: phantom5 on February 09, 2009, 12:15:37 AM
i had the same problem when i uninstalled 1.5.3 and then installed 1.5.4
someone told me it could have been related to the version of apache i was using

don't know if that helps any
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Galedon on February 09, 2009, 04:06:12 AM
Quote from: The Crusader on February 08, 2009, 09:47:36 PM
I've found the error.

Normally i use german as langauge, and when i turn it into english, the mass upload works coorect.
But why?
I think i have to translate the latest version of the langauge strings, because i use older german strings i found on smf-media.com

uih - not good

nicht gut ;)

falls lösung vorhanden - bitte mitteilen !

Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 09, 2009, 04:25:35 AM
I'm pretty sure now that the "blank pictures" bug many people have been mentioning, is due to Dragooon's last-minute fix on mgallery_access. The fix I mentioned earlier last page.
Has ANYONE tried it? I need to move on to other things. Many things to do on Aeva, too.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: ke4obt on February 09, 2009, 04:55:53 AM
Hey Nao,

Do you have any clue about why a screen reader would totele make a flash button vanish, to reproduce please see http://www.simplemachines.org/community/index.php?topic=260821.msg1920714#msg1920714 (http://www.simplemachines.org/community/index.php?topic=260821.msg1920714#msg1920714), hope this can be figured out. 
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 09, 2009, 05:25:28 AM
Quote from: ke4obt on February 09, 2009, 04:55:53 AM
Do you have any clue about why a screen reader would totele make a flash button vanish, to reproduce please see http://www.simplemachines.org/community/index.php?topic=260821.msg1920714#msg1920714 (http://www.simplemachines.org/community/index.php?topic=260821.msg1920714#msg1920714), hope this can be figured out.
Sorry, no. I don't even think we made any changes to mass upload recently. Did you update to SMF 1.1.8 or something? Maybe it broke something, I don't know.

And yes, this was already mentioned by someone on smf-media.com that disabling the screenreader enabled the "Select files" link to appear. Then, someone else said, "So who cares? Blind users aren't going to upload pictures anyway." I didn't answer anything but I thought they still may want to upload audio files, at least...
Anyway.

No, I don't know yet. It seems SMG 1.5.4 + SMF 1.1.8 is a deadly combination right now. Dunno if it's SMF's fault or SMG's. I didn't do much in SMG 1.5.4 (if I did anything at all), and Dragooon isn't much available these days, so I'm forced to fix by myself, and I don't have much of a clue right now. I guess it'll have to wait.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: ke4obt on February 09, 2009, 06:14:20 AM
Thanks Nao, not a big problem just turned mass-upload off for all but staff.
Someone said the same thing here over the weekend and we told them the same thing "sound files and just because you use a screen-reader doesn't mean that a person is totally blind so".

Well I Thank-You for such a quick reply. Have a great day and talk to ya later, Flip

ps. AEVAs looking good.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: kopijun on February 09, 2009, 06:47:06 AM
Quote from: katb on February 08, 2009, 11:19:18 AM
hi installed successfully i caan't view images.. i tried firfox and IE .when i click gallery i can view only image description like following

Views: 0
Filesize: 32.75KB
Date: Today at 21:54:49
Comments (0)
By: testuser
[UnApprove] [Edit] [Delete]

please help

I have same problem,...No errors found in maintanance ...

I installed in local pc, then try to look the image properties using ff, it  says :

Location : http://localhost/kopijun/index.php?action=mgallery;sa=media;id=3;preview
Type : JPEG image
Image Dimensions : 500px × 313px
Size of File : 16.55 KB (16952 bytes)
Alternate text : Blank

And the image properties in my online sites, it says :

Location : http://hotmud.kopijun.net/index.php?action=mgallery;sa=media;id=6;preview
Type : JPEG image
Image Dimensions : 0px × 0px (scaled to 500px × 313px)
Size of File : 0.15 KB (152 bytes)
Alternate text : Blank

Anyone would tell me what the problem is ?
Thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: FireFreezer on February 09, 2009, 08:05:26 AM
Quote from: Modifications.german.php
$txt['mgallery_gallery'] = 'Galerie';
$txt['mgallery_profile_sum'] = 'Zusammenfassung';
$txt['mgallery_view_items'] = 'Dateien ansehen';
$txt['mgallery_view_coms'] = 'Kommentare ansehen';
$txt['mgallery_gotolink'] = 'Mehr Einzelheiten...';
$txt['permissiongroup_mgallery'] = 'SMF Media Gallery';
$txt['permissiongroup_simple_mgallery'] = 'SMF Media Gallery';
$txt['permissionname_mgallery_access'] = 'Zugriff auf Galerie';
$txt['permissionname_mgallery_moderate'] = 'Galerie moderieren';
$txt['permissionname_mgallery_manage'] = 'Galerie administrieren';
$txt['permissionname_mgallery_access_unseen'] = 'Neue Dateien ansehen';
$txt['permissionname_mgallery_search'] = 'In Galerie suchen';
$txt['permissionname_mgallery_download_item'] = 'Dateien herunterladen';
$txt['permissionname_mgallery_add_user_album'] = 'Anwender-Alben hinzufügen';
$txt['permissionname_mgallery_auto_approve_albums'] = 'Automatisches Zulassen von Anwender-Alben';
$txt['permissionname_mgallery_add_videos'] = 'video(s) hinzufügen';
$txt['permissionname_mgallery_add_audios'] = 'Musikdatei(en) hinzufügen';
$txt['permissionname_mgallery_add_images'] = 'Bild(er) hinzufügen';
$txt['permissionname_mgallery_rate_items'] = 'Datei bewerten';
$txt['permissionname_mgallery_edit_own_com'] = 'Eigene Kommentare bearbeiten';
$txt['permissionname_mgallery_report_com'] = 'Kommentar als Verstoss melden!';
$txt['permissionname_mgallery_edit_own_item'] = 'Eigene Dateien bearbeiten';
$txt['permissionname_mgallery_comment'] = 'Datei kommentieren';
$txt['permissionname_mgallery_report_item'] = 'Datei als Verstoss melden!';
$txt['permissionname_mgallery_auto_approve_com'] = 'Automatisches Zulassen von Kommentaren';
$txt['permissionname_mgallery_auto_approve_item'] = 'Automatisches Zulassen von Dateien';
$txt['permissionname_mgallery_multi_upload'] = 'Hochladen von mehreren Dateien';
$txt['permissionname_mgallery_viewprofile'] = 'Profil eines Mitglieds angucken';
$txt['permissionname_mgallery_whoratedwhat'] = 'Bewertungen ansehen';
$txt['cannot_mgallery_viewprofile'] = 'Du bist nicht befugt, Galerieprofile anzugucken';

Quote from: Modifications.german-utf8.php
$txt['mgallery_gallery'] = 'Galerie';
$txt['mgallery_profile_sum'] = 'Zusammenfassung';
$txt['mgallery_view_items'] = 'Dateien ansehen';
$txt['mgallery_view_coms'] = 'Kommentare ansehen';
$txt['mgallery_gotolink'] = 'Mehr Einzelheiten...';
$txt['permissiongroup_mgallery'] = 'SMF Media Gallery';
$txt['permissiongroup_simple_mgallery'] = 'SMF Media Gallery';
$txt['permissionname_mgallery_access'] = 'Zugriff auf Galerie';
$txt['permissionname_mgallery_moderate'] = 'Galerie moderieren';
$txt['permissionname_mgallery_manage'] = 'Galerie administrieren';
$txt['permissionname_mgallery_access_unseen'] = 'Neue Dateien ansehen';
$txt['permissionname_mgallery_search'] = 'In Galerie suchen';
$txt['permissionname_mgallery_download_item'] = 'Dateien herunterladen';
$txt['permissionname_mgallery_add_user_album'] = 'Anwender-Alben hinzufügen';
$txt['permissionname_mgallery_auto_approve_albums'] = 'Automatisches Zulassen von Anwender-Alben';
$txt['permissionname_mgallery_add_videos'] = 'video(s) hinzufügen';
$txt['permissionname_mgallery_add_audios'] = 'Musikdatei(en) hinzufügen';
$txt['permissionname_mgallery_add_images'] = 'Bild(er) hinzufügen';
$txt['permissionname_mgallery_rate_items'] = 'Datei bewerten';
$txt['permissionname_mgallery_edit_own_com'] = 'Eigene Kommentare bearbeiten';
$txt['permissionname_mgallery_report_com'] = 'Kommentar als Verstoss melden!';
$txt['permissionname_mgallery_edit_own_item'] = 'Eigene Dateien bearbeiten';
$txt['permissionname_mgallery_comment'] = 'Datei kommentieren';
$txt['permissionname_mgallery_report_item'] = 'Datei als Verstoss melden!';
$txt['permissionname_mgallery_auto_approve_com'] = 'Automatisches Zulassen von Kommentaren';
$txt['permissionname_mgallery_auto_approve_item'] = 'Automatisches Zulassen von Dateien';
$txt['permissionname_mgallery_multi_upload'] = 'Hochladen von mehreren Dateien';
$txt['permissionname_mgallery_viewprofile'] = 'Profil eines Mitglieds angucken';
$txt['permissionname_mgallery_whoratedwhat'] = 'Bewertungen ansehen';
$txt['cannot_mgallery_viewprofile'] = 'Du bist nicht befugt, Galerieprofile anzugucken';
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 09, 2009, 08:09:52 AM
@Not showing the pics problem....Have you tried the fix Nao posted...??

Quote from: Nao 尚 on February 09, 2009, 05:25:28 AM
No, I don't know yet. It seems SMG 1.5.4 + SMF 1.1.8 is a deadly combination right now. Dunno if it's SMF's fault or SMG's. I didn't do much in SMG 1.5.4 (if I did anything at all), and Dragooon isn't much available these days, so I'm forced to fix by myself, and I don't have much of a clue right now. I guess it'll have to wait.
It seems to be the same with RC 1 actually....and hey...not that I got a clue.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: kopijun on February 09, 2009, 08:23:59 AM
Quote from: Dragooon on February 09, 2009, 08:09:52 AM
@Not showing the pics problem....Have you tried the fix Nao posted...??

I tried changing something in Mgallery.php, like Nao said, but nothing happen..
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 09, 2009, 08:32:13 AM
Hm...What is the permission of MGallery.php, index.php, Subs-MGallery.php?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 09, 2009, 08:39:53 AM
@Image issue - Does image attachments properly work on your forum on SMF? Like do they show the thumbnails and full image?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: kopijun on February 09, 2009, 08:50:25 AM
Quote from: Dragooon on February 09, 2009, 08:32:13 AM
Hm...What is the permission of MGallery.php, index.php, Subs-MGallery.php?

MGallery.php, index.php, Subs-MGallery.php all in 777.

Quote@Image issue - Does image attachments properly work on your forum on SMF? Like do they show the thumbnails and full image?

I don't know about using thumbnails and full images on forum, but when using avatar, attachments or embedding img/video on forum, they are all fine.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 09, 2009, 08:52:43 AM
SMF 2 RC1 and SMG 1.5.4: I have no issues with upload, mass upload or images not showing.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 09, 2009, 08:54:37 AM
When you upload an image attachment..does it shows a thumbnail of it?

@akhyne - Thanks that really helps(No it really does).
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: nosferatu on February 09, 2009, 08:56:46 AM
Not in ApolloBB. It will show for the album icon but will not show either the preview or thumbnail. However, if you click the 'invisible' link, it will open the image as normal. It works fine in the default theme and in BlueSkies.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 09, 2009, 08:59:04 AM
Got a link to your gallery?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: nosferatu on February 09, 2009, 09:01:53 AM
http://www.traffic-answers.co.uk/forum/index.php?action=mgallery (http://www.traffic-answers.co.uk/forum/index.php?action=mgallery)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 09, 2009, 09:03:25 AM
Can you PM me a test account or fix up guest permissions?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: kopijun on February 09, 2009, 09:09:51 AM
Well I'm using smf 1.1.8, updated from 1.1.7, using SMF 1.0.16 / 1.1.8 Update file. The gallery is SMG 1.5.4

On mine, when upload an image as an attachment on forum, yes it shows the thumbnail.

Upload image on smf media gallery, it doesn't show the thumbnail and the item itself.
Image for album icon also can't be display.

The one runs well only add a video item. But it is still problem with the thumbnail.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 09, 2009, 09:13:53 AM
PM me an admin test account please, also a link to php info.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: PfalzNacht on February 09, 2009, 09:17:16 AM
Now i translated it completely into german utf8, and now it works all fine.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Özgür on February 09, 2009, 09:17:30 AM
My server is open to safemod.  And taking longer to regenerate video (embed) thumbnails.

Is there a way to accelerate this?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 09, 2009, 09:18:43 AM
It usually takes 1 second to generate one thumbnail. And I recommend safe-mode to be off.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 09, 2009, 09:46:50 AM
Just tested in an old forum that has been upgraded all the way from SMF 1.1.4 and now running 1.1.8. No issues what so ever. The only "issue" I had: Once I mass uploaded some files, it took a while for the thumbs in the mass upload window to show (up to ten seconds each). But the server I'm running the forum on is sometimes slow.
It was actually some small Babylon buttons I uploaded (1kb each). I then tried some 800*600 images for mass uploading. Then the images came right away.

If you are running IE, you can actually see if the page is not done uploading everything (in this case the thumbnails), in the left lower corner. It's a little allmost unvisible text. Maybe that's the issue some people are having - just a slow server.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 09, 2009, 10:42:55 AM
@Images not showing issue
Try this one
Open MGallery.php(This would be at the end).
Code (Find) Select
if (filesize($path) > 1572864)
{
if ($file = fopen($path, 'rb'))
{
while (!feof($file))
{
echo @fread($file, 8192);
flush();
}
@fclose($file);
}
else
die('Something went wrong...');
}
elseif (@readfile($path) == null)
die('Something went wrong...');

Code (Replace) Select
if (filesize($path) > 1572864 || @readfile($path) == null)
{
if ($file = fopen($path, 'rb'))
{
while (!feof($file))
{
echo @fread($file, 8192);
flush();
}
@fclose($file);
}
else
die('Something went wrong...');
}

And if this works, tell your host to get a brain.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 09, 2009, 10:55:51 AM
Also make sure to clear your browser's cache after applying that fix.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: amg944 on February 09, 2009, 11:04:20 AM
Hi,

I tried the fix
"@Images not showing issue
Try this one
Open MGallery.php(This would be at the end)."

And it didn't work.
As a recap.
I was running fine on SMF 1.1.7 and SMF Media 1.5.2 with close to 3,000 pics loaded and Slideshow.
I upgraded to SMF 1.1.8 without problems.
I created another albums => no problems
I tried to load pics in the album => no pics would load
I uninstall Slideshow then Media 1.5.2
I installed Media 1.5.4 => thumbnails don't show, tried to run "Find errors" => no errors reported
I tried to regenerate thumbnails => error
"Error, file not found! (/homepages/17/d172373739/htdocs/forum/mgal_data/albums/Porsches_et_autres_belles_!/Dir_1/528__MG_1733_4_5_jpge604e555384b40a1ec6fd3ec0322ee4e_extjpg)"
Uninstall 1.5.4 then re-install 1.5.2 => same error

Please help! If you want an FTP access, I'll PM one.

The site is http://www.rennsport.ca/forum/index.php?action=mgallery

Tx.

Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: nosferatu on February 09, 2009, 11:08:35 AM
Sorry. Still not working. It does still work in the default theme though where I can see the recent item preview perfectly. It's just in the ApolloBB theme.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: PfalzNacht on February 09, 2009, 11:14:10 AM
Is there an option to use the last 5 pictures on an custom site with SSI?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 09, 2009, 11:15:26 AM
Quote from: amg944 on February 09, 2009, 11:04:20 AM
Hi,

I tried the fix
"@Images not showing issue
Try this one
Open MGallery.php(This would be at the end)."

And it didn't work.
As a recap.
I was running fine on SMF 1.1.7 and SMF Media 1.5.2 with close to 3,000 pics loaded and Slideshow.
I upgraded to SMF 1.1.8 without problems.
I created another albums => no problems
I tried to load pics in the album => no pics would load
I uninstall Slideshow then Media 1.5.2
I installed Media 1.5.4 => thumbnails don't show, tried to run "Find errors" => no errors reported
I tried to regenerate thumbnails => error
"Error, file not found! (/homepages/17/d172373739/htdocs/forum/mgal_data/albums/Porsches_et_autres_belles_!/Dir_1/528__MG_1733_4_5_jpge604e555384b40a1ec6fd3ec0322ee4e_extjpg)"
Uninstall 1.5.4 then re-install 1.5.2 => same error

Please help! If you want an FTP access, I'll PM one.

The site is http://www.rennsport.ca/forum/index.php?action=mgallery

Tx.


Tried clearing your browser's cache? Can you enable guest access?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: amg944 on February 09, 2009, 11:22:22 AM
Quote from: Dragooon on February 09, 2009, 11:15:26 AM
Quote from: amg944 on February 09, 2009, 11:04:20 AM
Hi,

I tried the fix
"@Images not showing issue
Try this one
Open MGallery.php(This would be at the end)."

And it didn't work.
As a recap.
I was running fine on SMF 1.1.7 and SMF Media 1.5.2 with close to 3,000 pics loaded and Slideshow.
I upgraded to SMF 1.1.8 without problems.
I created another albums => no problems
I tried to load pics in the album => no pics would load
I uninstall Slideshow then Media 1.5.2
I installed Media 1.5.4 => thumbnails don't show, tried to run "Find errors" => no errors reported
I tried to regenerate thumbnails => error
"Error, file not found! (/homepages/17/d172373739/htdocs/forum/mgal_data/albums/Porsches_et_autres_belles_!/Dir_1/528__MG_1733_4_5_jpge604e555384b40a1ec6fd3ec0322ee4e_extjpg)"
Uninstall 1.5.4 then re-install 1.5.2 => same error

Please help! If you want an FTP access, I'll PM one.

The site is http://www.rennsport.ca/forum/index.php?action=mgallery

Tx.


Tried clearing your browser's cache? Can you enable guest access?
Yes, I cleared the cache and I sent you an email with the accesses.
Tx.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 09, 2009, 11:46:39 AM
Quote from: amg944 on February 09, 2009, 11:22:22 AM
Quote from: Dragooon on February 09, 2009, 11:15:26 AM
Quote from: amg944 on February 09, 2009, 11:04:20 AM
Hi,

I tried the fix
"@Images not showing issue
Try this one
Open MGallery.php(This would be at the end)."

And it didn't work.
As a recap.
I was running fine on SMF 1.1.7 and SMF Media 1.5.2 with close to 3,000 pics loaded and Slideshow.
I upgraded to SMF 1.1.8 without problems.
I created another albums => no problems
I tried to load pics in the album => no pics would load
I uninstall Slideshow then Media 1.5.2
I installed Media 1.5.4 => thumbnails don't show, tried to run "Find errors" => no errors reported
I tried to regenerate thumbnails => error
"Error, file not found! (/homepages/17/d172373739/htdocs/forum/mgal_data/albums/Porsches_et_autres_belles_!/Dir_1/528__MG_1733_4_5_jpge604e555384b40a1ec6fd3ec0322ee4e_extjpg)"
Uninstall 1.5.4 then re-install 1.5.2 => same error

Please help! If you want an FTP access, I'll PM one.

The site is http://www.rennsport.ca/forum/index.php?action=mgallery

Tx.


Tried clearing your browser's cache? Can you enable guest access?
Yes, I cleared the cache and I sent you an email with the accesses.
Tx.

Eh..Your gallery works fine to me?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Janet Merai on February 09, 2009, 11:50:29 AM
I replaced that code in Mgallery.php, works fine now, thank you for the hard work :D
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: qubbah on February 09, 2009, 11:55:17 AM
i have a backup file like backup_smf_mgallery_albums.
how can i restore it ?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 09, 2009, 11:56:35 AM
Quote from: Dragooon on February 09, 2009, 11:46:39 AM
Quote from: amg944 on February 09, 2009, 11:22:22 AM
Quote from: Dragooon on February 09, 2009, 11:15:26 AM
Quote from: amg944 on February 09, 2009, 11:04:20 AM
Hi,

I tried the fix
"@Images not showing issue
Try this one
Open MGallery.php(This would be at the end)."

And it didn't work.
As a recap.
I was running fine on SMF 1.1.7 and SMF Media 1.5.2 with close to 3,000 pics loaded and Slideshow.
I upgraded to SMF 1.1.8 without problems.
I created another albums => no problems
I tried to load pics in the album => no pics would load
I uninstall Slideshow then Media 1.5.2
I installed Media 1.5.4 => thumbnails don't show, tried to run "Find errors" => no errors reported
I tried to regenerate thumbnails => error
"Error, file not found! (/homepages/17/d172373739/htdocs/forum/mgal_data/albums/Porsches_et_autres_belles_!/Dir_1/528__MG_1733_4_5_jpge604e555384b40a1ec6fd3ec0322ee4e_extjpg)"
Uninstall 1.5.4 then re-install 1.5.2 => same error

Please help! If you want an FTP access, I'll PM one.

The site is http://www.rennsport.ca/forum/index.php?action=mgallery

Tx.


Tried clearing your browser's cache? Can you enable guest access?
Yes, I cleared the cache and I sent you an email with the accesses.
Tx.

Eh..Your gallery works fine to me?
Your issue is not with the image's not displayed, you're gallery is screwed up as in mgal_data is not chmodded to 777 as well as its sub-albums and it is not able to create the album's folders. You ned to flush your gallery out and start all over again, make sure that you chmod mgal_data and its sub-folders to 777.

@qubbah - what are you talking about?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: amg944 on February 09, 2009, 12:00:30 PM
Sorry,

how do I "chmod mgal_data and its sub-folders to 777"

Tx.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 09, 2009, 12:03:55 PM
Its a file permission system, see How do I chmod? / what is chmod? (http://docs.simplemachines.org/index.php?topic=477). Unfortunately, you'll be needing to start the gallery again.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: amg944 on February 09, 2009, 12:08:18 PM
Quote from: Dragooon on February 09, 2009, 12:03:55 PM
Its a file permission system, see How do I chmod? / what is chmod? (http://docs.simplemachines.org/index.php?topic=477). Unfortunately, you'll be needing to start the gallery again.
Hi Dragoon,

well, I guess I'll start over.

Tx for your help.

Ciao.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Kindred on February 09, 2009, 12:14:41 PM
SSI sort of stuff is available/listed over on smf-media.com
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: cwd1031 on February 09, 2009, 12:26:29 PM
I was hoping someone could point me in the right direction if possible. Love the mod and all the great work and features you guys continue to add, and support you give us.
I sometimes host large video files. Upwards of 150 megs. When you go to the gallery enter the video section i've made, and see the video you want. Sometimes on larger files it seems it's locking up. Is this because the video size is too large? Or do you think it's because the video is trying to auto play? If its autoplay, is there a way to stop this?  That way the person can decided if they want to play or download the video?  Any ideas to lead me in the right direction would be greatly appreciated  Thx Christian :)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Xavi-Nena on February 09, 2009, 12:47:08 PM
Quote from: Nao 尚 on February 08, 2009, 04:31:08 AM
Quote from: NenaGb on February 07, 2009, 11:02:35 PM
can anyone help me with my load issue?
At line 390, remove:
, mem.mgal_total_items, mem.mgal_total_comments,
Make sure the line does NOT end with a comma!

thank you sorry but im not very code savy. what should it end with?

blonde moment sorry, obviously it should have nothing behind it hence the comma being removed :)...

my issue im having with the gallery is my board moderators cannot see it or upload to it...but other members can... i have double and triple checked my permissions to no avail...
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: jaru on February 09, 2009, 01:09:07 PM
thank you Dragooon.
the change on the MGallery.php code fixed the issue with the image not showing up.
I also applied the change to MGalleryItem.php to get the direct image code working too.
all seems to be ok now, thank you very very much, you are doing a great work with this and making lots of people happy, all my users will be happy too, thank you once again.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 09, 2009, 01:27:11 PM
You're welcome.

(I'm glad we can put this problem behind. The only question being: why didn't this happen BEFORE? Because it's not specific to 1.5.4, @readfile has been in *all* 1.5 versions since the beginning.....)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 09, 2009, 01:28:29 PM
I know I know....sudenly all the hosts had the bright idea of disabling readfile!
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Xavi-Nena on February 09, 2009, 01:31:38 PM
any suggestions for my board mods? .... i have allowed in permissions for them to access the gallery but they still are unable to however regular members can access it completely.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: nosferatu on February 09, 2009, 02:27:40 PM
Well, my previews still don't work. It must be a glitch with the ApolloBB theme so I'll see about changing that. Thanks for your help anyway.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 09, 2009, 02:49:35 PM
Did you trying a hard reload? Try to copy the picture's direct link, paste it in your address bar and press F5 a few times.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Xavi-Nena on February 09, 2009, 02:53:56 PM
ok update:

all my regular groups cannot see the gallery with the exception of me

all post count based groups can

i have tried everything that I know how to try to resolve this with no luck. [insert banging head on desk icon]
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 09, 2009, 03:01:17 PM
Quote from: NenaGb on February 09, 2009, 02:53:56 PM
ok update:

all my regular groups cannot see the gallery with the exception of me

all post count based groups can

i have tried everything that I know how to try to resolve this with no luck. [insert banging head on desk icon]


That your moderators can't see the gallery either could be this issue:
The moderators has to be selected moderators as first choice in their profile, as permissions are inherited. I'm not quite sure if it counts for moderators, but that's the way it works for all other groups. Permissions are inherited.
So if regular members are not set up to view the gallery properly, and your moderators are set to be moderators as second group, they won't have access.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Xavi-Nena on February 09, 2009, 03:26:01 PM
akyhne...thanks but they are selected as board mods first...that is the only option i see for them in their profiles...

im losing my mind over this one
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 09, 2009, 03:29:45 PM
What theme are you using?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Xavi-Nena on February 09, 2009, 03:33:01 PM
i have TP using xmas theme
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 09, 2009, 03:37:50 PM
Does that one use the Default theme? Can they see the gallery with the default theme? Can they see the gallery if you give the direct link to the main gallery page?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Xavi-Nena on February 09, 2009, 03:41:46 PM
yep it uses default..

ok so im not sure what the heck is going on but i selected moderate and access unseen and now they can see them...not sure why that worked but it did.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: mark7144 on February 09, 2009, 04:06:05 PM
akyhne: Did you create the smileys in your signature? Do you realise the wink is incorrect? The smile should be more prominent on the side of the face that has the closed eye, not the other way around - it's humanly impossible! :)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smf.e-debatten.dk%2Fimages%2FLightB_Smileys%2Fwink.gif&hash=aec212c9555f67f29e4fc5d9f84191fbcb3406b3)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 09, 2009, 04:07:25 PM
As a sidenote--sorry, I don't use permissions a lot. It's more of Dragooon's territory so I'll leave it up to him if you don't find a solution in the meantime.

@mark> lol, you're right! Never tried that on my own face ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: amg944 on February 09, 2009, 05:01:42 PM
Quote from: Dragooon on February 09, 2009, 11:56:35 AM
Quote from: Dragooon on February 09, 2009, 11:46:39 AM
Quote from: amg944 on February 09, 2009, 11:22:22 AM
Quote from: Dragooon on February 09, 2009, 11:15:26 AM
Quote from: amg944 on February 09, 2009, 11:04:20 AM
Hi,

I tried the fix
"@Images not showing issue
Try this one
Open MGallery.php(This would be at the end)."

And it didn't work.
As a recap.
I was running fine on SMF 1.1.7 and SMF Media 1.5.2 with close to 3,000 pics loaded and Slideshow.
I upgraded to SMF 1.1.8 without problems.
I created another albums => no problems
I tried to load pics in the album => no pics would load
I uninstall Slideshow then Media 1.5.2
I installed Media 1.5.4 => thumbnails don't show, tried to run "Find errors" => no errors reported
I tried to regenerate thumbnails => error
"Error, file not found! (/homepages/17/d172373739/htdocs/forum/mgal_data/albums/Porsches_et_autres_belles_!/Dir_1/528__MG_1733_4_5_jpge604e555384b40a1ec6fd3ec0322ee4e_extjpg)"
Uninstall 1.5.4 then re-install 1.5.2 => same error

Please help! If you want an FTP access, I'll PM one.

The site is http://www.rennsport.ca/forum/index.php?action=mgallery

Tx.


Tried clearing your browser's cache? Can you enable guest access?
Yes, I cleared the cache and I sent you an email with the accesses.
Tx.

Eh..Your gallery works fine to me?
Your issue is not with the image's not displayed, you're gallery is screwed up as in mgal_data is not chmodded to 777 as well as its sub-albums and it is not able to create the album's folders. You ned to flush your gallery out and start all over again, make sure that you chmod mgal_data and its sub-folders to 777.

@qubbah - what are you talking about?
Well, I have an update.
Here's what I did after this post:
- deleted all my Albums (60 of them!)
- Uninstall Slideshow
- Uninstall Media 1.5.4
- Re-install Media 1.5.4
- Recreated about 10 Albums
- CHMODDed mgall and Sub dir to 777
- Loaded  about 1,000 pics
- Created 2 more albums
- Deleted these two albums
Then Paff no more thumbnails and the erorrs search gives me this message on almost all my file. 
The following errors were discovered when searching for errors

    * The physical file #12488, used with item #4347, is missing.
    * The physical thumbnail #12489, used with item #4347, is missing.
I tried the fix on Mgallery.php without success.

Anybody can help?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Kindred on February 09, 2009, 05:23:48 PM
Quote from: cwd1031 on February 09, 2009, 12:26:29 PM
I was hoping someone could point me in the right direction if possible. Love the mod and all the great work and features you guys continue to add, and support you give us.
I sometimes host large video files. Upwards of 150 megs. When you go to the gallery enter the video section i've made, and see the video you want. Sometimes on larger files it seems it's locking up. Is this because the video size is too large? Or do you think it's because the video is trying to auto play? If its autoplay, is there a way to stop this?  That way the person can decided if they want to play or download the video?  Any ideas to lead me in the right direction would be greatly appreciated  Thx Christian :)


Holy moly...   Web Videos should not be larger than 30MB!
You are running into bandwidth issues...   the vidoe plays faster than it can stream from your site.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: PfalzNacht on February 09, 2009, 05:25:03 PM
Just one question:

when i embed a video from youtube, the only thing i see is the link. Shouldn't i see the video instead? Or is this normal?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 09, 2009, 05:48:42 PM
Make sure Aeva is installed. This is a known issue in SMG 1.5.4 if Aeva is not installed. I'll get started on it later. If I don't forget. Aeva should always be installed anyway, if you're into streaming videos on your website. Which is why I do my best to use Aeva instead of SMG's internal functions whenever possible, eheh.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: PfalzNacht on February 09, 2009, 05:54:47 PM
Oh, many thanks.

I didn't know that aeva must be installed, but now everything is clear.

Thanks for this great mod.  ;D


PS: SMG works without any issue, everything works correct. *Thumbs up*
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 09, 2009, 06:28:54 PM
Quote from: mark7144 on February 09, 2009, 04:06:05 PM
akyhne: Did you create the smileys in your signature? Do you realise the wink is incorrect? The smile should be more prominent on the side of the face that has the closed eye, not the other way around - it's humanly impossible! :)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smf.e-debatten.dk%2Fimages%2FLightB_Smileys%2Fwink.gif&hash=aec212c9555f67f29e4fc5d9f84191fbcb3406b3)

My smileys can do anything ;) They are not human.

Edit: I just tried it. It is possible...

Yeah, they are part of the LightB and darkB mods you can find a link to in my signature.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 09, 2009, 06:56:05 PM
These are all the .css files in the themes/default/mgallery folder:

hs.css
.highslide-wrapper div {
font-family: Verdana, Helvetica;
font-size: 10pt;
}
.hs {
cursor: url(hs/zoomin.cur), pointer;
outline: none;
text-decoration: none;
}
.highslide-active-anchor img {
visibility: hidden;
}
.highslide-maincontent {
display: none;
}
.highslide-wrapper, .rounded-white {
background: white;
}
.highslide-image-blur {
}
.highslide-caption {
display: none;

border: 2px solid white;
border-top: none;
font-family: Verdana, Helvetica;
font-size: 10pt;
padding: 5px;
background-color: white;
}
.highslide-loading {
display: block;
color: black;
font-size: 8pt;
font-family: sans-serif;
font-weight: bold;
text-decoration: none;
padding: 2px;
border: 1px solid black;
background-color: white;

padding-left: 22px;
background-image: url(hs/loader.white.gif);
background-repeat: no-repeat;
background-position: 3px 1px;
}
a.highslide-full-expand {
background: url(hs/fullexpand.gif) no-repeat;
display: block;
margin: 0 10px 10px 0;
width: 34px;
height: 34px;
}


.highslide-html {
background-color: white;
}
.highslide-dimming {
background-color: black;
}
/* Styles for the popup */
.highslide-wrapper .highslide-html-content {
width: 400px;
padding: 5px 10px 10px 10px;
}
.highslide-wrapper .highslide-header {
padding-bottom: 5px;
}
.highslide-wrapper .highslide-header ul {
margin: 0;
padding: 0;
text-align: right;
}
.highslide-wrapper .highslide-header ul li {
display: inline;
padding-left: 1em;
}
.highslide-wrapper .highslide-header ul li.highslide-previous, .highslide-wrapper .highslide-header ul li.highslide-next {
display: none;
}
.highslide-wrapper .highslide-header a {
font-weight: bold;
color: gray;
text-transform: uppercase;
text-decoration: none;
}
.highslide-wrapper .highslide-header a:hover {
color: black;
}
.highslide-wrapper .highslide-header .highslide-move a {
cursor: move;
}
.highslide-wrapper .highslide-footer {
height: 11px;
}
.highslide-wrapper .highslide-footer .highslide-resize {
float: right;
height: 11px;
width: 11px;
background: url(hs/resize.gif);
}
.highslide-wrapper .highslide-body {
}
.highslide-move {
cursor: move;
}
.highslide-resize {
cursor: nw-resize;
}


style.css
.vam {
vertical-align: middle;
}
.mgra {
text-align: right;
}
.smgbutton_ok, .smgbutton_cancel {
font-size: 8pt;
line-height: 8pt;
border: 1px solid black;
padding: 3px 3px 3px 21px;
margin: 0;
background: #DEF url(../images/mgallery/accept.png) 1px 2px no-repeat;
}
.smgbutton_cancel {
background: #DEF url(../images/mgallery/cancel.png) 1px 2px no-repeat;
}
ul.pics {
padding: 0;
margin: 0 0 0 -8px;
}
ul.pics li {
display: inline;
overflow: visible;
float: left;
margin: 8px 0 0 8px;
text-align: center;
padding: 6px;
}
div.smg_extbox ul.pics li {
margin: 0;
}
div.smg_extbox {
padding: 8px;
text-align: center;
}
div.smg_extbox img.smg_ext {
padding: 4px;
border: 1px solid black;
}
.comments {
padding: 10px;
}
.comments:after {
clear: both;
content: ".";
display: block;
height: 0pt;
visibility: hidden;
}
#viewitem .info_list {
padding: 0;
margin: 0;
}
#viewitem .info_list li {
display: inline;
float: left;
width: 100%;
padding: 0 6px 3px 6px;
}
#viewitem h4 {
padding: 3px 6px 1px 6px;
}
.sort_options {
margin-top: 8px;
text-align: right;
padding: 6px;
}
.page_index {
padding: 6px;
}
.notice {
padding: 6px;
text-align: center;
width: 100%;
}
#albums .data {
padding: 6px;
}
#home .header {
padding: 6px;
}
div.item_heading {
padding: 6px;
vertical-align: middle;
text-align: center;
margin-top: 20px;
}
.item_heading a {
text-decoration: underline !important;
}
#home .recent_comments {
float: left;
width: 50%;
}
#home .random_comments {
float: right;
width: 50%;
}
#viewitem .info {
padding: 3px;
}
#viewitem td.info {
vertical-align: middle;
}
#viewitem .header {
padding: 6px;
}
#viewitem .comment_sort_options {
float: right;
}
#viewitem .page_index {
padding: 5px;
}
#itembox {
text-align: center;
padding: 16px 8px 0 8px;
}
td.mgabs img {
padding: 0 2px;
vertical-align: text-bottom;
}
td.mgabs a {
text-decoration: none;
}
.selected {
border-bottom: 2px dotted black;
}
#viewitem .images {
height: 20px;
}
#viewitem .images a {
margin-right: 4px;
font-weight: bold;
text-decoration: none;
line-height: 18px;
}
#viewitem .images img {
vertical-align: middle;
}
.text_margins a {
margin: 0 2px;
}
.mg_subtext, .mg_desc {
color: #666;
font-size: 0.85em;
line-height: 1.1em;
font-style: italic;
padding-top: 4px;
}
.unapproved_notice, .unapproved_yet {
background: #FEEE00;
text-align: center;
padding: 10px;
}
.unapproved_yet {
margin: 6px;
border: 2px dashed #cc3344;
background: #FFDCE0;
font-weight: bold;
}
.unapp {
background: #FFD0D0;
}
.mg_prev {
float: left;
text-align: left;
padding: 4px 4px 10px 4px
}
.mg_next {
float: right;
text-align: right;
padding: 4px 4px 10px 4px
}
.mg_large {
font-weight: bold;
font-size: 11pt;
letter-spacing: -0.5px;
}
.mg_pb4 {
padding-bottom: 4px;
}
.currentbutton {
font-weight: bold;
}
.mgc_main, .mgc_last_edit, .mgc_icons {
font-size: 8pt;
padding: 1px;
}
.mgc_post {
clear: both;
font-size: 9pt;
padding: 8px;
margin: 0;
}
.mgc_main {
border-bottom: 1px dotted #999;
margin: 5px 5px 1px 5px;
float: left;
}
.mgc_last_edit {
border-top: 1px dotted #999;
margin: 1px 5px 5px 5px;
font-style: italic;
}
.mgc_icons {
text-align: right;
margin: 5px 5px 1px 5px;
float: right;
}
#mg_coms .mgc_icons a {
text-decoration: none;
line-height: 18px;
}
#mg_coms .mgc_icons img {
vertical-align: middle;
}
.comment_preview {
color: #666;
border: 1px dashed #666;
margin: 8px 16px 0 16px;
padding: 8px;
font-size: 1em;
line-height: 1.4em;
}


style-up.css
#mu_items {
display: none;
}
#mu_items ul {
padding: 0;
margin: 0;
}
#mu_items ul li {
display: inline;
overflow: auto;
float: left;
margin-right: 8px;
border: 1px solid;
padding: 4px;
margin-top: 8px;
}
#mu_items_error {
display: none
}
#upload_form .progress {
background: white url(../images/mgallery/progress.png) no-repeat -250px 0;
margin-right: 0.5em;
}
#upload_form .progress2 {
background: white url(../images/mgallery/progress2.png) no-repeat -250px 0;
margin-right: 0.5em;
}
#upload_form .progress-text {
font-size: 0.9em;
font-weight: bold;
}
#upload_form {
padding: 10px 15px;
}
#current_list {
list-style: none;
}
#current_list li {
width: 420px;
display: inline;
border: 1px solid;
float: left;
padding: 6px;
margin: 10px;
}
#current_list li.file {
background: #D9DDE9;
}
#current_list li.file-uploading {
background: url(../images/mgallery/uploading.png) no-repeat 4px 4px;
background-color: #F9F7ED;
}
#current_list li.file-success {
background: url(../images/mgallery/tick.png) no-repeat 4px 4px;
}
#current_list li.file-failed {
background: url(../images/mgallery/failed.png) no-repeat 4px 4px;
}
#current_list li.file .file-name {
font-size: 1.2em;
margin-left: 44px;
display: block;
clear: left;
line-height: 40px;
height: 40px;
font-weight: bold;
}
#current_list li.file .file-size {
font-size: 0.9em;
line-height: 18px;
float: right;
margin-top: 2px;
margin-right: 6px;
}
#current_list li.file .file-info {
display: block;
margin-left: 44px;
font-size: 0.9em;
line-height: 20px;
}
#current_list li.file .file-remove {
clear: right;
float: right;
line-height: 18px;
margin-right: 6px;
}
#current_list li.file .file_error {
color: #FF0000;
text-align: center;
}
#current_list li.succ_item {
text-align: center;
border: 0px;
}


Which file and which value needs to be changed so that the text outlined in red in the attached screen shot will be darker, or so that the background will be darker?


-edit by Kindred-  PLEASE! use code tags, not quote tags

Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 09, 2009, 07:13:37 PM
Seems to be #current_list you are going to edit the different colors.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 09, 2009, 07:19:38 PM
// Overall background
#current_list li.file {
background: provideYourColor

// The filename properties
#current_list li.file .file-name {
color: provideYourColor

// The color of the filesize
#current_list li.file .file-size {
color: provideYourColor


Edit: The Remove link seems to just use your forums color. You should be able to change it by adding
#current_list a {
   color:provideYourColor
}

... where provideYourColor is the color you want.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 09, 2009, 07:22:58 PM
Quote from: akyhne on February 09, 2009, 07:19:38 PM
// Overall background
#current_list li.file {
background: provideYourColor

// The filename properties
#current_list li.file .file-name {
color: provideYourColor

// The color of the filesize
#current_list li.file .file-size {
color: provideYourColor

Cheers :)

Quote#current_list li.file {
   background: #202020;
}

did the trick nicely :)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: kopijun on February 09, 2009, 09:57:40 PM
Dragoon, you're amazing....Thank you very much....My problem with thumbnail and uploading images has gone....
Thank you very  much again.....
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Xavi-Nena on February 09, 2009, 10:54:13 PM
Quote from: Nao 尚 on February 09, 2009, 04:07:25 PM
As a sidenote--sorry, I don't use permissions a lot. It's more of Dragooon's territory so I'll leave it up to him if you don't find a solution in the meantime.

@mark> lol, you're right! Never tried that on my own face ;)

Thank you :) so far so good with my last update...i had to allow them to moderate the gallery in order for them to see it...strange.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Xavi-Nena on February 09, 2009, 10:55:31 PM
Quote from: akyhne on February 09, 2009, 06:28:54 PM
Quote from: mark7144 on February 09, 2009, 04:06:05 PM
akyhne: Did you create the smileys in your signature? Do you realise the wink is incorrect? The smile should be more prominent on the side of the face that has the closed eye, not the other way around - it's humanly impossible! :)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smf.e-debatten.dk%2Fimages%2FLightB_Smileys%2Fwink.gif&hash=aec212c9555f67f29e4fc5d9f84191fbcb3406b3)

haha now were all on here doing this...i agree it is possible :) sorry couldnt resist.

My smileys can do anything ;) They are not human.

Edit: I just tried it. It is possible...

Yeah, they are part of the LightB and darkB mods you can find a link to in my signature.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 10, 2009, 02:25:23 AM
@akyhne> there are only two pixels to change in your animated gif to make it anatomically possible ;)

Quote from: NenaGb on February 09, 2009, 10:54:13 PM
Thank you :) so far so good with my last update...i had to allow them to moderate the gallery in order for them to see it...strange.
You shouldn't have to do this -- and you shouldn't do this at all...
Can you pm me an account with admin access? as well as your URL?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 10, 2009, 03:44:53 AM
Quote from: amg944 on February 09, 2009, 05:01:42 PM
Quote from: Dragooon on February 09, 2009, 11:56:35 AM
Quote from: Dragooon on February 09, 2009, 11:46:39 AM
Quote from: amg944 on February 09, 2009, 11:22:22 AM
Quote from: Dragooon on February 09, 2009, 11:15:26 AM
Quote from: amg944 on February 09, 2009, 11:04:20 AM
Hi,

I tried the fix
"@Images not showing issue
Try this one
Open MGallery.php(This would be at the end)."

And it didn't work.
As a recap.
I was running fine on SMF 1.1.7 and SMF Media 1.5.2 with close to 3,000 pics loaded and Slideshow.
I upgraded to SMF 1.1.8 without problems.
I created another albums => no problems
I tried to load pics in the album => no pics would load
I uninstall Slideshow then Media 1.5.2
I installed Media 1.5.4 => thumbnails don't show, tried to run "Find errors" => no errors reported
I tried to regenerate thumbnails => error
"Error, file not found! (/homepages/17/d172373739/htdocs/forum/mgal_data/albums/Porsches_et_autres_belles_!/Dir_1/528__MG_1733_4_5_jpge604e555384b40a1ec6fd3ec0322ee4e_extjpg)"
Uninstall 1.5.4 then re-install 1.5.2 => same error

Please help! If you want an FTP access, I'll PM one.

The site is http://www.rennsport.ca/forum/index.php?action=mgallery

Tx.


Tried clearing your browser's cache? Can you enable guest access?
Yes, I cleared the cache and I sent you an email with the accesses.
Tx.

Eh..Your gallery works fine to me?
Your issue is not with the image's not displayed, you're gallery is screwed up as in mgal_data is not chmodded to 777 as well as its sub-albums and it is not able to create the album's folders. You ned to flush your gallery out and start all over again, make sure that you chmod mgal_data and its sub-folders to 777.

@qubbah - what are you talking about?
Well, I have an update.
Here's what I did after this post:
- deleted all my Albums (60 of them!)
- Uninstall Slideshow
- Uninstall Media 1.5.4
- Re-install Media 1.5.4
- Recreated about 10 Albums
- CHMODDed mgall and Sub dir to 777
- Loaded  about 1,000 pics
- Created 2 more albums
- Deleted these two albums
Then Paff no more thumbnails and the erorrs search gives me this message on almost all my file. 
The following errors were discovered when searching for errors

    * The physical file #12488, used with item #4347, is missing.
    * The physical thumbnail #12489, used with item #4347, is missing.
I tried the fix on Mgallery.php without success.

Anybody can help?
Make sure you also dumped the mgallery tables(They'll be prefixed with <your_prefix>_mgallery).Make sure to backup your DB before doing that.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: mark7144 on February 10, 2009, 04:46:34 AM
Quote from: akyhne on February 09, 2009, 06:28:54 PM
Quote from: mark7144 on February 09, 2009, 04:06:05 PM
akyhne: Did you create the smileys in your signature? Do you realise the wink is incorrect? The smile should be more prominent on the side of the face that has the closed eye, not the other way around - it's humanly impossible! :)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smf.e-debatten.dk%2Fimages%2FLightB_Smileys%2Fwink.gif&hash=aec212c9555f67f29e4fc5d9f84191fbcb3406b3)

My smileys can do anything ;) They are not human.

Edit: I just tried it. It is possible...

Yeah, they are part of the LightB and darkB mods you can find a link to in my signature.
You won't find many people who want a mentally retarded wink so I'd correct it if I was you.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 10, 2009, 05:34:02 AM
Quote from: mark7144 on February 10, 2009, 04:46:34 AM
You won't find many people who want a mentally retarded wink so I'd correct it if I was you.
That's not a very nice thing to say.

(And believe me, I'm starting to get the hang of it O:))
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: mark7144 on February 10, 2009, 05:37:05 AM
Quote from: Nao 尚 on February 10, 2009, 05:34:02 AM
That's not a very nice thing to say.
If that stupid wink emoticon is within a really decent package of smileys then I feel bad for akyhne if that is deterring people from downloading it. I'm just trying to help :)

Quote from: Nao 尚 on February 10, 2009, 05:34:02 AM
(And believe me, I'm starting to get the hang of it O:))
I'll believe it when I see it! :D
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: nosferatu on February 10, 2009, 05:54:18 AM
Strangely, this invisible link issue has come up again. Now back in work and the IE7 I have doesn't show the thumnail in the recent items list. However, Firefox does. I've cleared the IE browser history and reset the default settings in the advanced options panel. Perhaps the cache isn't being cleared properly as it works fine in Firefox and it worked last night at home on IE7 and Firefox.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 10, 2009, 07:47:12 AM
FTP access please?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: PfalzNacht on February 10, 2009, 07:56:56 AM
Is it possible that the rating goes from 1 to 10 instead 1 - 5. What have i to change and which files?

I want to use the gallery for a little picture competition.

Perhaps anybody can make an addon for the gallery?  ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 10, 2009, 08:17:17 AM
No, it's complicated. 1-5 is the most widely accepted rating system for Web 2.0 sites, AFAIK. And IMHO it's also the most logical.
"It sucks - I'm not too fond - It's okay - I like - I love"
What more do you need? You think people will mostly rate 4 or 5 when they like something, and they won't rate at all when they don't? Well, do you think it would change if it was a 1-10 rating system?
Check out the link in my sig (click on "scientific"), you'll see that a 1-5 rating system works just fine when people know how and why to rate in the first place.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: PfalzNacht on February 10, 2009, 08:46:12 AM
Thanks for the link, but i can't speak french!  ;D

I think i introduce my members how it works with the rating system, and then here we go!  :P

Thanks!  :)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 10, 2009, 08:50:22 AM
Quote from: Nao 尚 on February 10, 2009, 05:34:02 AM
That's not a very nice thing to say.

(And believe me, I'm starting to get the hang of it O:))

Ha ha ha, nice to hear ;)

How to behave in a forum: http://www.simplemachines.org/community/index.php?topic=291603.0  :P
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 10, 2009, 08:59:23 AM
Quote from: mark7144 on February 10, 2009, 05:37:05 AM
Quote from: Nao 尚 on February 10, 2009, 05:34:02 AM
That's not a very nice thing to say.
If that stupid wink emoticon is within a really decent package of smileys then I feel bad for akyhne if that is deterring people from downloading it. I'm just trying to help :)

Quote from: Nao 尚 on February 10, 2009, 05:34:02 AM
(And believe me, I'm starting to get the hang of it O:))
I'll believe it when I see it! :D

This is a bit off topic, isn't it. There's actually a topic for the mod. I guess you also think my cool (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smf.e-debatten.dk%2Fimages%2FLightB_Smileys%2Fcool.gif&hash=b2dda82efd73c9400b02afb156dbd74bf01b1604) is not political correct smoking cigarettes ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: mark7144 on February 10, 2009, 09:41:24 AM
Quote from: akyhne on February 10, 2009, 08:59:23 AM
This is a bit off topic, isn't it. There's actually a topic for the mod. I guess you also think my cool (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smf.e-debatten.dk%2Fimages%2FLightB_Smileys%2Fcool.gif&hash=b2dda82efd73c9400b02afb156dbd74bf01b1604) is not political correct smoking cigarettes ;)
Your emoticons are great, I'm just worried that you are not getting the most out of your hard work - that one single wink emoticon may deter someone from downloading the whole set.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 10, 2009, 10:13:25 AM
Quote from: The Crusader on February 10, 2009, 08:46:12 AM
Thanks for the link, but i can't speak french!  ;D
Music is the universal language!
(Plus, that site is the future of SMG, lol.)

@akyhne> excellent video, eheh ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 10, 2009, 11:03:43 AM
Quote from: The Crusader on February 09, 2009, 05:25:03 PM
Just one question:

when i embed a video from youtube, the only thing i see is the link. Shouldn't i see the video instead? Or is this normal?

I posted some fixes for:
- Videos not embedding at all when Aeva is not installed/enabled.
- Large YouTube thumbnails don't work.

http://smf-media.com/community/index.php?topic=477.msg4660#msg4660
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: ke4obt on February 10, 2009, 01:04:27 PM
As a follow-up to our little "hiccup" with the screen reader and SMG - if I'm using IE, the select files button doesn't show, BUT using the tab key to go through the page with the screen reader, it DOES work. So, it's just the thing of sighted people that have screen readers not being able to SEE the silly button in IE. :)
Flip figured out (while I was away) that it does work - as long as your speakers are on (I usually turn them off) and you know how to navigate through the page with the screen reader.
I'm using Serotek's System Access screen reading software, just for clarification.
I don't know about other screen readers, since I don't use them.

Thanks again,
Mickey
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Niagra on February 10, 2009, 01:49:08 PM
I'm sorry but I just do not have the time to read  123 pages of posts and really I don't understand why  the answers I need are not on the mod download page. 


First Thanks for this wonderful new gallery. 

Secondly, I need to convert my smf gallery lite 1.83. to this new gallery.  I have 1.17 smf forum currently. 

What do I need to make that happen.?

And what is this Aeva program? Do I need that too?

Please advise and thank you in advance.

Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: frx on February 10, 2009, 05:54:21 PM
....

Hi,

I've installed SMG 1.5.4 in a new site with TinyPortal and SMF 1.1.8.

I've searched in this topic for "Mass Upload Problem" and no result showed...

So... i'm trying to use mass upload but, after select the files and try to "press" the uplad button it doesn't work.
I'm using Firefox (latest version 3.0.6) and i've also tried in IE and it it's the same...
There's no error, it just don't start...

Yesterday i've upgraded javascript.
And i surf in sites with java...

I'm in a paid server (hostmonster).

Anyone has this problem??

F
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 10, 2009, 07:08:55 PM
Quote from: Niagra on February 10, 2009, 01:49:08 PM
I'm sorry but I just do not have the time to read  123 pages of posts and really I don't understand why  the answers I need are not on the mod download page. 
Because we never got around to writing a FAQ on that page.

QuoteSecondly, I need to convert my smf gallery lite 1.83. to this new gallery.  I have 1.17 smf forum currently. 

What do I need to make that happen.?
Well, that's precisely one of the rare things that are mentioned in the mod page, eh...

QuoteAnd what is this Aeva program? Do I need that too?
"That" Aeva program is one of the most downloaded SMF mods, lol.
Yes you need it if you're planning to offer serious support for embedding external videos (YouTube, etc.). It has many features such as showing videos in HD and/or widescreen, that SMG currently doesn't have (and will never have, because it's not designed to replace Aeva at all. It only uses parts of the Aeva code to provide basic functionality until you install Aeva.)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Me313 on February 10, 2009, 08:40:09 PM
hello..

i'm "mad" of this mod..not mad ..mad but mad in the term of i like it very much lol..thanks a lot for creating this valuable mod.

anyway..i have one problem still...:

XML Parsing Error: junk after document element
Location: http://www.mydomain.net/forum/index.php?action=mgallery;sa=mass;album=3;xml;upcook=YTo0OntpOjA7czoxOiIzIjtpOjE7czo0MDoiNTEyMWYzMWU2OTUwNDc1OGI3NjYzMjFiY2NlNDYyYTM3NjExZjRkMCI7aToyO2k6MTQyMzQ5NDc2NTtpOjM7aTowO30%3D
Line Number 15, Column 1:<div align="center" style="margin-top: 2ex;"><a href="javascript:history.go(-1)">Back</a></div>
^

that error came up after i submited files through mass upload..what i'm missing in here?

thanks guys.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: chrishicks on February 10, 2009, 10:04:55 PM
I have been reading this topic for what seems like a day. I'm going to guess my question has already been answered and I just missed it.

I just installed this and I still have Gallery Lite installed and was wondering where I would look to change the name for the Media Gallery button. I would like the original Gallery button to stay the same while I'd like this one to say "Media Gallery". I've just started modding my forum again after a very long break and I am having a difficult time remembering where things were located.

Thanks in advance.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Bobn on February 10, 2009, 10:07:03 PM
Hello,

Installed mod and admins can see it but no one else can. Any ideas?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 10, 2009, 10:07:47 PM
Did you enable the rights for each member group?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Bobn on February 10, 2009, 10:10:19 PM
Quote from: akyhne on February 10, 2009, 10:07:47 PM
Did you enable the rights for each member group?

I did now,, thanks  :-X

Hey can I embed just teh gallery in a web page perhaps using ssi or something? A direct link? Nice mod!!
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 10, 2009, 10:14:37 PM
Quote from: chrishicks on February 10, 2009, 10:04:55 PM
I have been reading this topic for what seems like a day. I'm going to guess my question has already been answered and I just missed it.

I just installed this and I still have Gallery Lite installed and was wondering where I would look to change the name for the Media Gallery button. I would like the original Gallery button to stay the same while I'd like this one to say "Media Gallery". I've just started modding my forum again after a very long break and I am having a difficult time remembering where things were located.

Thanks in advance.
I think it's in /Themes/default/languages/Modifications.yourlanguage.php
If not, it's in the uploaded SMG language file.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 10, 2009, 10:16:30 PM
Quote from: Bobn on February 10, 2009, 10:10:19 PM
Quote from: akyhne on February 10, 2009, 10:07:47 PM
Did you enable the rights for each member group?

I did now,, thanks  :-X

Hey can I embed just teh gallery in a web page perhaps using ssi or something? A direct link? Nice mod!!

You don't need SSI (though it's possible) to view items from an external source. You just have to remember when creating an album, wether it should be embeddable from external sources.
Under each image in the preview, you have different links to play with.

Edit: The setting is called "Allow guests" or something like that.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Bobn on February 10, 2009, 10:20:05 PM
Quote from: akyhne on February 10, 2009, 10:16:30 PM
Quote from: Bobn on February 10, 2009, 10:10:19 PM
Quote from: akyhne on February 10, 2009, 10:07:47 PM
Did you enable the rights for each member group?

I did now,, thanks  :-X

Hey can I embed just teh gallery in a web page perhaps using ssi or something? A direct link? Nice mod!!

You don't need SSI (though it's possible) to view items from an external source. You just have to remember when creating an album, wether it should be embeddable from external sources.
Under each image in the preview, you have different links to play with.

Edit: The setting is called "Allow guests" or something like that.

What I would like is to be able to break the album out of the smf page to display on our home page
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 10, 2009, 10:23:27 PM
I think there's a SSI script in the mod package somewhere. Never used it.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 10, 2009, 10:29:19 PM
I think it's MGalleryItem.php placed in your root. You can see an example of using it here: http://smf-media.com/community/index.php?topic=493.0
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Bobn on February 10, 2009, 10:38:52 PM
Quote from: akyhne on February 10, 2009, 10:29:19 PM
I think it's MGalleryItem.php placed in your root. You can see an example of using it here: http://smf-media.com/community/index.php?topic=493.0

That displays "Hacking attempt"
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: chrishicks on February 10, 2009, 10:43:32 PM
Quote from: akyhne on February 10, 2009, 10:14:37 PM
Quote from: chrishicks on February 10, 2009, 10:04:55 PM
I have been reading this topic for what seems like a day. I'm going to guess my question has already been answered and I just missed it.

I just installed this and I still have Gallery Lite installed and was wondering where I would look to change the name for the Media Gallery button. I would like the original Gallery button to stay the same while I'd like this one to say "Media Gallery". I've just started modding my forum again after a very long break and I am having a difficult time remembering where things were located.

Thanks in advance.
I think it's in /Themes/default/languages/Modifications.yourlanguage.php

Thanks. That was it.  I appreciate the help.

In case anyone else comes in looking for this here is the code you look for:

$txt['mgallery_gallery'] = 'Gallery';   

I just changed mine to: $txt['mgallery_gallery'] = 'Media Gallery';

Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 10, 2009, 10:49:36 PM
It would be more proper to call it SMG Gallery ;)

But why do you use both? Isn't there a converter for your old gallery?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 10, 2009, 10:51:13 PM
Quote from: Bobn on February 10, 2009, 10:38:52 PM
Quote from: akyhne on February 10, 2009, 10:29:19 PM
I think it's MGalleryItem.php placed in your root. You can see an example of using it here: http://smf-media.com/community/index.php?topic=493.0

That displays "Hacking attempt"

There are several examples on the link I gave you on how to use it:

Quote
global $sourcedir, $context, $txt, $galurl, $scripturl, $settings;

require_once($sourcedir . '/Subs-MGallery.php');
loadMGal_Settings();

if (loadlanguage('MGallery') == false)
  loadLanguage('MGallery', 'english');

$items = getMediaItems(0, 5, 'm.id_media DESC');

foreach ($items as $item)
   bla, bla, bla
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Bobn on February 10, 2009, 10:54:56 PM
Quote from: akyhne on February 10, 2009, 10:51:13 PM
Quote from: Bobn on February 10, 2009, 10:38:52 PM
Quote from: akyhne on February 10, 2009, 10:29:19 PM
I think it's MGalleryItem.php placed in your root. You can see an example of using it here: http://smf-media.com/community/index.php?topic=493.0

That displays "Hacking attempt"

There are several examples on the link I gave you on how to use it:

Quote
global $sourcedir, $context, $txt, $galurl, $scripturl, $settings;

require_once($sourcedir . '/Subs-MGallery.php');
loadMGal_Settings();

if (loadlanguage('MGallery') == false)
  loadLanguage('MGallery', 'english');

$items = getMediaItems(0, 5, 'm.id_media DESC');

foreach ($items as $item)
   bla, bla, bla

Sorry, Im not to good with php. I dont (think) I want to change the gallery that is linked from the forums appearance.

Any help (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.martinsvillehenrycountycarclub.com%2Fforum%2FSmileys%2Fyarex2%2Fgive_rose.gif&hash=34d99a7bc7c3186344623aed8b44a05cb6767f57) would be appreciated
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 10, 2009, 10:57:47 PM
Try this link: http://smf-media.com/community/index.php?topic=206.msg1241#msg1241

Or create an account at http://smf-media.com/ and ask there. There's a lot of skilled programmers who could help you there. Maybe what you request is already build.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 11, 2009, 04:16:57 AM
Quote from: akyhne on February 10, 2009, 10:49:36 PM
It would be more proper to call it SMG Gallery ;)
SMG = SMF Media Gallery...so no.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: amg944 on February 11, 2009, 11:28:02 AM
Quote from: Dragooon on February 10, 2009, 03:44:53 AM

Your issue is not with the image's not displayed, you're gallery is screwed up as in mgal_data is not chmodded to 777 as well as its sub-albums and it is not able to create the album's folders. You ned to flush your gallery out and start all over again, make sure that you chmod mgal_data and its sub-folders to 777.

Well, I have an update.
Here's what I did after this post:
- deleted all my Albums (60 of them!)
- Uninstall Slideshow
- Uninstall Media 1.5.4
- Re-install Media 1.5.4
- Recreated about 10 Albums
- CHMODDed mgall and Sub dir to 777
- Loaded  about 1,000 pics
- Created 2 more albums
- Deleted these two albums
Then Paff no more thumbnails and the erorrs search gives me this message on almost all my file. 
The following errors were discovered when searching for errors

    * The physical file #12488, used with item #4347, is missing.
    * The physical thumbnail #12489, used with item #4347, is missing.
I tried the fix on Mgallery.php without success.

Anybody can help?
Quote from: Dragooon on February 10, 2009, 03:44:53 AM
Make sure you also dumped the mgallery tables(They'll be prefixed with <your_prefix>_mgallery).Make sure to backup your DB before doing that.
Yes, I did drop all my mgallery DB.
So, I started from scratch with I.5.2 and I'll see how it goes.....

BTW, can I backup mgal directory and restore it if it crashes again???
Is it enough to recover???

BTW2, I'm willing to work with this Mod since it's a GREAT one and offers so much more than any other.

BTW3, Anybody wanting to use the slideshow in a french environment can use this:
Modify the file MGallery.french.php by copying
// Slideshow addon strings
$txt['mgallery_slideshow_config'] = 'Configuration du diaporama';
$txt['mgallery_slideshow'] = 'Diaporama';
$txt['mgallery_ss_duration'] = 'Durée';
$txt['mgallery_ss_duration_st'] = 'Nombre de secondes pour la transition';
$txt['mgallery_pause'] = 'Pause';
$txt['mgallery_resume'] = 'Reprendre';
$txt['mgallery_ss_finished'] = 'Le diaporama est terminé!<br /><br /><a href="%s">Recommencer</a><br /><a href="%s">Revenir à l\'album</a>';

before the end of the file to allow the french members to use the slideshow feature!

Tx.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 11, 2009, 01:10:02 PM
@amg> Unlike the English ones, French spelling rules require that a space (actually, half a space, but it's not easy to type that in...) is used prior to any punctuation mark that has two parts in it, such as "?", "!", ":", etc.
Alors, it's "Revenir à l'album", not "Retourner" and even less "Returner" ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Bugpac ™ on February 11, 2009, 04:27:22 PM
In 2.04 what is the permission for to access unseen area?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Bobn on February 11, 2009, 06:28:31 PM
Can anyone else suggest how I may show my gallery by itself on another web page of our site?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 11, 2009, 06:39:40 PM
Quote from: Bobn on February 11, 2009, 06:28:31 PM
Can anyone else suggest how I may show my gallery by itself on another web page of our site?

Just a qiuck test of one of the suggestions I gave you:


<?php
require("/mnt/your/path/SSI.php");


global 
$sourcedir$user_info$ID_MEMBER$context$txt$galurl$galurl2$scripturl$settings$db_prefix;

   require_once(
$sourcedir '/Subs-MGallery.php');
   
loadMGal_Settings();

   if(
loadlanguage('MGallery') == false)
      
loadLanguage('MGallery''english');
   
$items getMediaItems(07'm.id_media DESC');

echo 
'
<center><table>
<br />
      <div style="font-size=110%; font-weight: bold; line-height: 1.8em;" style="text-align:center;">Latest Gallery Pics</div><div class="smalltext" style="text-align: center; line-height: 1.4em;"><br /></div>
'
;
   foreach(
$items as $item)
      echo 
'

   <td>
   <div class="smalltext" style=" line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">
      <a href="'
,$galurl,'sa=item;id=',$item['id'],'">',$item['title'],'</a><br />
      <a href="'
,$galurl,'sa=item;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';thumb" alt="" /></a><br />
      '
,$txt['mgallery_views'],' : ',$item['views'],'<br />
      '
,$txt['mgallery_posted_by'],' : <a href="',$scripturl,'?action=profile;u=',$item['member_id'],'">',$item['member_name'],'</a><br />
      '
,$txt['mgallery_in_album'],' : <a href="',$galurl,'sa=viewalbum;id=',$item['id_album'],'">',$item['album_name'],'</a>
      '
,$item['is_new'] ? '<br /><img alt="" src="' $settings['images_url'] . '/' $context['user']['language'] . '/new.gif" border="0" />' '','
   </div>
   </td>'
;

echo 
'
   </tr>
</table></center>'



?>



I think you have to enable global cookies, but not sure about that. Depends if you are using the code in them same domain, or a sub-domain

It gives this result:
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: mark7144 on February 11, 2009, 06:58:41 PM
Quote from: Bobn on February 11, 2009, 06:28:31 PM
Can anyone else suggest how I may show my gallery by itself on another web page of our site?
I'm desperate for this SSI type function but at the moment there really isn't any decent code out there yet. There's a thread on this at the SMG forum, can you post your support?

http://smf-media.com/community/index.php?topic=68.0
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 11, 2009, 07:09:02 PM
That link is to another issue - how to have your mgallery folder elsewhere. What is your request?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: amg944 on February 11, 2009, 07:17:11 PM
Quote from: Nao 尚 on February 11, 2009, 01:10:02 PM
@amg> Unlike the English ones, French spelling rules require that a space (actually, half a space, but it's not easy to type that in...) is used prior to any punctuation mark that has two parts in it, such as "?", "!", ":", etc.
Alors, it's "Revenir à l'album", not "Retourner" and even less "Returner" ;)
Hi Nao,
Tx for the french lesson and to improve my site. Now I have to cut my spacebar in half...
Ciao.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: mark7144 on February 11, 2009, 07:24:12 PM
Quote from: akyhne on February 11, 2009, 07:09:02 PM
That link is to another issue - how to have your mgallery folder elsewhere. What is your request?
I have my main website and then I have my forum, I want SMG to show on a sub-page of my main website. So basically have the gallery look decent running off SSI.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 11, 2009, 07:26:56 PM
The whole gallery? I think that's not possible or at least a huge job to do. SMF Media is not build to run outside the SMF forum.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 11, 2009, 07:32:42 PM
Quote from: mark7144 on February 11, 2009, 07:24:12 PM
Quote from: akyhne on February 11, 2009, 07:09:02 PM
That link is to another issue - how to have your mgallery folder elsewhere. What is your request?
I have my main website and then I have my forum, I want SMG to show on a sub-page of my main website. So basically have the gallery look decent running off SSI.

simple solution: find a free flash gallery that will allow you to place it into your front page of the site ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 11, 2009, 09:29:20 PM
Nao or Dragooon:

Field 'exif' doesn't have a default value
File: C:\Program Files (x86)\EasyPHP 3.0\www\forum\Packages\temp\db_mgallery.php
Line: 407



getting this on a re-install..  :'(
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 11, 2009, 09:34:20 PM
Quote from: SmokyBlue on February 11, 2009, 09:29:20 PM
Nao or Dragooon:

Field 'exif' doesn't have a default value
File: C:\Program Files (x86)\EasyPHP 3.0\www\forum\Packages\temp\db_mgallery.php
Line: 407




getting this on a re-install..  :'(



simple solution: find a free flash gallery that works ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Bobn on February 11, 2009, 09:38:40 PM
Quote from: akyhne on February 11, 2009, 09:34:20 PM
Quote from: SmokyBlue on February 11, 2009, 09:29:20 PM
Nao or Dragooon:

Field 'exif' doesn't have a default value
File: C:\Program Files (x86)\EasyPHP 3.0\www\forum\Packages\temp\db_mgallery.php
Line: 407




getting this on a re-install..  :'(



simple solution: find a free flash gallery that works ;)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.martinsvillehenrycountycarclub.com%2Fforum%2FSmileys%2Fyarex2%2Fhaha.gif&hash=67f34f71d69b4987cf3542a95616a35198393258)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 11, 2009, 09:39:06 PM
i would say something, but then.. lmao.. im afraid i wont come back to this thread.

inserting a flash gallery for a mod that i want to show on smf and not my home page is what the goal is, but thanks akyhne..

next person that knows what the default value is please, without being a *****..

hmm you too bobn.. apparently you guys got that flash installed on your front page.. good to see you have free time.. why not go support your site eh??  O:)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 11, 2009, 09:40:29 PM
Quote from: SmokyBlue on February 11, 2009, 09:39:06 PM
i would say something, but then.. lmao.. im afraid i wont come back to this thread.

inserting a flash gallery for a mod that i want to show on smf and not my home page is what the goal is, but thanks akyhne..

next person that knows what the default value is please, without being a *****..

i must say, im no expert on php or ssi, but i still loled! :P
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 11, 2009, 09:41:28 PM
You gave the same stupid answer to a person who needed desperat help, right!
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 11, 2009, 09:42:35 PM
Quote from: akyhne on February 11, 2009, 09:41:28 PM
You gave the same stupid answer to a person who needed desperat help, right!

sense...this makes none... ???
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 11, 2009, 09:43:18 PM
For SmokyBlue it was.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 11, 2009, 09:44:11 PM
nopes i sure didnt.. you wanted a gallery on your front page, im presuming with the lack of explanation nor a link, etc., detailing what you wanted, i assumed, and you know what that means right?? ass+u=me, that its not apart of smf.. so you get the generic answer untill facts are sent..

or you could have just used the search function instead of the 2 beans racing for pole position inside that head eh?? for ssi functions.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 11, 2009, 09:44:57 PM
and link, lick my shoe. :P
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 11, 2009, 09:45:57 PM
Quote from: SmokyBlue on February 11, 2009, 09:44:57 PM
and link, lick my shoe. :P

to be honest i thought i was defending you lol XD
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 11, 2009, 09:47:37 PM
ROFLMGDAO ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 11, 2009, 09:49:22 PM
Quote from: SmokyBlue on February 11, 2009, 09:47:37 PM
ROFLMGDAO ;)
I am drunk btw... and my smg works fine.. lol.. i just follow this thread due to the rapidly changing nature of smg :P
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 11, 2009, 09:50:47 PM
/me IS LAUGHIN WAY TOO HARD..

NAO OR DRAGOOON PLEASE:

Quote from: SmokyBlue on February 11, 2009, 09:29:20 PM
Nao or Dragooon:

Field 'exif' doesn't have a default value
File: C:\Program Files (x86)\EasyPHP 3.0\www\forum\Packages\temp\db_mgallery.php
Line: 407




getting this on a re-install..  :'(


thanks link, but its been one of those days :)  the bipolar is up the adhd is down and the morroons are out tonight.. slides link another shot
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 11, 2009, 09:50:57 PM
SmokyBlue: Take some time and go back and read the last 10 posts or so. You gave a stupid answer to a person that needed help.
It's really not funny to be joked about when you are in desparate need of help. So I gave you back to show you could see it can be annoying.

All I'm trying to say is; read the previous posts before you answer without knowing what it is all about.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 11, 2009, 09:53:32 PM
Quote from: SmokyBlue on February 11, 2009, 09:50:47 PM
/me IS LAUGHIN WAY TOO HARD..

NAO OR DRAGOOON PLEASE:

Quote from: SmokyBlue on February 11, 2009, 09:29:20 PM
Nao or Dragooon:

Field 'exif' doesn't have a default value
File: C:\Program Files (x86)\EasyPHP 3.0\www\forum\Packages\temp\db_mgallery.php
Line: 407




getting this on a re-install..  :'(


thanks link, but its been one of those days :)  the bipolar is up the adhd is down and the morroons are out tonight.. slides link another shot

to be honest i can't be assed to read the last 10 posts as mr.wierd-syllable suggests..not a second time n e way... cheers all the same ^^
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 11, 2009, 09:54:54 PM
AND I GAVE YOU, akyhne, the answers i could..

my name is NOT Nao or Dragooon, I DONT RUN THIS MOD, but i have been around way longer than you..

had you been more specific, and yes like link, i follow the thread, due to Dragooon and Nao being friends of mine.

if you use the search, you will find your answer.

or dont search.. its been said over and over.  ;)

is ok Link.. now drink the shot and make everyone happy again!! LOL :P
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 11, 2009, 09:58:57 PM
SmokyBlue: I haven't been asking for help. I was helping another person out. Read the posts.

If I'm having trouble installing SMF, you don't tell me to install phpBB, right!
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 11, 2009, 10:01:09 PM
LinK187: You should be reading the posts too, before answering.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 11, 2009, 10:01:41 PM
Quote from: SmokyBlue on February 11, 2009, 09:54:54 PM
AND I GAVE YOU, akyhne, the answers i could..

my name is NOT Nao or Dragooon, I DONT RUN THIS MOD, but i have been around way longer than you..

had you been more specific, and yes like link, i follow the thread, due to Dragooon and Nao being friends of mine.

if you use the search, you will find your answer.

or dont search.. its been said over and over.  ;)

is ok Link.. now drink the shot and make everyone happy again!! LOL :P

no worries.. so many misunderstandings in text.. no tone of voice... no facial inflections.. but i took your advise.. i took the virtual shot.. and a few real ones my side.. i also love nao's view on things.. makes me laugh.. he also helps me greatly due to being on the same wave length... this akhyne dude seems to be taking great offense... i think i may fn myself in a flam when i wake up... lol love u guys...
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 11, 2009, 10:04:45 PM
QuoteThe whole gallery? I think that's not possible or at least a huge job to do. SMF Media is not build to run outside the SMF forum.


ok this is what i was referring to.. if you or anyone else doesnt like my suggestion, then you do not have to use it.

now unless you know of the issue with what im asking, please, again let Nao or Dragooon respond.

no biggie, Link.. will share my shine with ya.. then we both will be in the stew pot from what i see..

/me should just never ever offer help with anything else. it and i arent appreciated so laterz guys.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 11, 2009, 10:08:03 PM
Ok, I give up...
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 11, 2009, 10:31:30 PM
Here's so you can see what it was you commented about:

mark7144
Quote
I'm desperate for this SSI type function but at the moment there really isn't any decent code out there yet. There's a thread on this at the SMG forum, can you post your support?
http://smf-media.com/community/index.php?topic=68.0

akyhne
Quote
That link is to another issue - how to have your mgallery folder elsewhere. What is your request?

mark7144
Quote
I have my main website and then I have my forum, I want SMG to show on a sub-page of my main website. So basically have the gallery look decent running off SSI.

akyhne
Quote
The whole gallery? I think that's not possible or at least a huge job to do. SMF Media is not build to run outside the SMF forum.

SmokyBlue
Quote
simple solution: find a free flash gallery that will allow you to place it into your front page of the site

That was basically it, and you just got it all wrong, SmokyBlue.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 11, 2009, 10:49:10 PM
look, akyhne..

i did not.

either way, with either ssi or using another gallery, such as a flash gallery, would work, so now if you could drop this as the person hasnt commmented.

im sure that everyone would be gratefull..

if the person has still not worked it out, im sure by now, after reading the "2" options that was presented, they can and will get it sorted.

as for my issue, im sure when Dragooon or Nao gets back on, they can see it.. unless you want to argue some more or this?

its not about being right or wrong, there are too many ways of skinning a cat, and im not yours.  ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 11, 2009, 10:53:22 PM
@akhyne...it is possible to run this gallery outside of SMF provided there's a valid installation of SMF and SMF somewhere(See http://gallery.smf-media.com).

@Smokey - I am not sure why you are getting that error...from what are you upgrading?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 11, 2009, 10:55:59 PM
wasnt upgrading Dragoon.. i simply replaced the rc files with new ones, minus the packages folder and attempted to reinstall it..

not a klue..  :P

replaced fresh packages and sources.. then that showed up for the party  8)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 11, 2009, 10:56:57 PM
Dragooon: I'm not asking for help, mark7144 and smokey are. And yeah, I know SMF Gallery can run outside SMF via SSI. I even gave mark an example on how to do it.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 11, 2009, 10:58:25 PM
@Smokey...Uninstall old version and re-install the new one...thats the correct way of updated.

@akhyne..I know...It was just an answer to your comment that the gallery cannot run "standalone".
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 11, 2009, 11:00:53 PM
Quote from: Dragooon on February 11, 2009, 10:58:25 PM
@akhyne..I know...It was just an answer to your comment that the gallery cannot run "standalone".

That's news if it can. It still needs SMF, right?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 11, 2009, 11:01:54 PM
Yes it does...it just mimics being stand-alone, it really can't stand alone :P.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 11, 2009, 11:05:39 PM
I figured so. But what you are trying to say is that the whole gallery can run on a seperate page away from the forum with just a few calls? That would be great if it was so easy.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 11, 2009, 11:06:48 PM
Yes I just showed you an example...Although the SMF/SMG installs needs to be there on the same server.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 11, 2009, 11:08:14 PM
Quote from: Dragooon on February 11, 2009, 10:58:25 PM
@Smokey...Uninstall old version and re-install the new one...thats the correct way of updated.



this was the 1.5.4 Dragooon, unless you  have a newer one i dont know about.. all i did was drop my files to my local and then attempted to re install mods on fresh smf files.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 12, 2009, 12:46:51 AM
ok new install of the rc, and i get this:

Table 'house.smf_mgallery_files' doesn't exist
File: C:\Program Files (x86)\EasyPHP 3.0\www\newrc\db_mgallery.php
Line: 348


note: 64 bit, using easyphp 3.0

php info is 5.28

perhaps i need to downgrade the php??

also tried running it thru the browser to create and gave me same error..
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: KahneFan on February 12, 2009, 02:09:13 AM
I've noticed that lately (RC1 [possibly b4]), when I've uninstalled any mod and reinstalled it, I've had to manually drop the previous table or I would receive a very similar message to the message you have above. It's been on several mods, so I could see it on this as well.

(First back up) Try dropping that table (manually) in your db and then try reinstalling the mod. Then you can use your backed up data to reinsert into the "newly" create table.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 12, 2009, 02:34:15 AM
mmmmm.. i got it just before now..

and i did about the same as what you said Kahne..

bug??  >:( :o :P

or is it the php, due to it wont install local for me either..

like i said the php is 5.28 i can go up to 5.30 or back down to just 5 if i have to.. not sure but tomorrow is a new day.. whoohoo..  ;) :'(

i take that back.. it still wont create the table for php 5.28 so.. (new install)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 12, 2009, 03:04:06 AM
lol... 3 pages worth of messages for SMG tonight... Versus 2 messages in the Aeva topic. Lol, I really managed to kill Aeva by making it bug-free :D Dunno if I should be glad or not eheh.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 12, 2009, 03:19:49 AM
lol Nao.. i hear ya..

mmm i cant sleep.. so what ya think it is?? php too high or easyphp doesnt like my new touch pc or ima idiot??

roflmao.. you pick!!  :P

it wasnt throwing any errors on the main site, but local it doesnt want me to play with it >:( :)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 12, 2009, 03:33:26 AM
Why can't I always be around when there's a flame war going on, eh? ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 12, 2009, 03:40:52 AM
ROFL.. you turned your head Nao!!

shoulda been here!! hmm.. im still smokin'  O:)

forgot the latin for that but it goes like this: when you arent looking for it, thats when it happens.. i guess..   :P
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 12, 2009, 04:40:35 AM
Quote from: SmokyBlue on February 12, 2009, 03:40:52 AM
ROFL.. you turned your head Nao!!

shoulda been here!! hmm.. im still smokin'  O:)

forgot the latin for that but it goes like this: when you arent looking for it, thats when it happens.. i guess..   :P

i think the saying goes: $hitius hapensus... or something like that... i just woke up so thirsty i was coughing dust. You only missed a little fun nao. it's not like it was another @sh incident :P
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 12, 2009, 08:05:44 AM
Quote from: LinK187 on February 12, 2009, 04:40:35 AM
You only missed a little fun nao. it's not like it was another @sh incident :P

So you think it's funny insulting people for fun, huh! You are both SO close on being repported.

SmokyBlue made an unusable answer to a person that needed help. I did exactly the same to SmokyBlue to show that it can be annoying! And SmokyBlue felt somehow insulted for me being just as "fun" as he were!
And SmokyBlue didn't even read what was going on. You even answered back without reading what was going on.

I even don't know why you interfered in this. You say you like Nao for saying things as they are, instead of packing things up. But you seems to think that Nao like to insult people for fun, and so you do the same to other people because you think Nao is cool.

I think most of us are here because we are running a forum somehow. We also all (I hope) like to have order in our forums and see to that people behave. But it's not exactly whay you two are doing here, right.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: ttuu on February 12, 2009, 09:30:02 AM
when i uplode file i get this error:
An error happened during the upload process, please try again or contact the administrator.
i checked attributes to mgal_data directory is 777.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 12, 2009, 09:34:39 AM
Quote from: akyhne on February 12, 2009, 08:05:44 AM
Quote from: LinK187 on February 12, 2009, 04:40:35 AM
You only missed a little fun nao. it's not like it was another @sh incident :P

So you think it's funny insulting people for fun, huh! You are both SO close on being repported.

SmokyBlue made an unusable answer to a person that needed help. I did exactly the same to SmokyBlue to show that it can be annoying! And SmokyBlue felt somehow insulted for me being just as "fun" as he were!
And SmokyBlue didn't even read what was going on. You even answered back without reading what was going on.

I even don't know why you interfered in this. You say you like Nao for saying things as they are, instead of packing things up. But you seems to think that Nao like to insult people for fun, and so you do the same to other people because you think Nao is cool.

I think most of us are here because we are running a forum somehow. We also all (I hope) like to have order in our forums and see to that people behave. But it's not exactly whay you two are doing here, right.

You do that. Here's the reality of it all:

-I was drunk last night and moreso joking with smokey than you. You read this.
-You have misunderstood something somewhere because somehow I doubt she'd get upset if you were right.
-Nao will likely join in after your last comment.
-It was last night and it seemed to be dropped, please do leave it that way.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 12, 2009, 09:35:32 AM
Quote from: ttuu on February 12, 2009, 09:30:02 AM
when i uplode file i get this error:
An error happened during the upload process, please try again or contact the administrator.
i checked attributes to mgal_data directory is 777.


What is the max file size set to?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 12, 2009, 09:36:31 AM
Quote from: ttuu on February 12, 2009, 09:30:02 AM
when i uplode file i get this error:
An error happened during the upload process, please try again or contact the administrator.
i checked attributes to mgal_data directory is 777.
Make sure that the size of the file doesn't exceed the post_max_size or upload_max_filesize of your server.

@akhyne and link...take your discussions to PMs please, I don't want another war here.(And no I don't want comments on anything either).
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: ttuu on February 12, 2009, 09:58:59 AM
Quote from: LinK187 on February 12, 2009, 09:35:32 AM
Quote from: ttuu on February 12, 2009, 09:30:02 AM
when i uplode file i get this error:
An error happened during the upload process, please try again or contact the administrator.
i checked attributes to mgal_data directory is 777.


What is the max file size set to?
100024
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 12, 2009, 10:00:33 AM
Quote from: ttuu on February 12, 2009, 09:58:59 AM
Quote from: LinK187 on February 12, 2009, 09:35:32 AM
Quote from: ttuu on February 12, 2009, 09:30:02 AM
when i uplode file i get this error:
An error happened during the upload process, please try again or contact the administrator.
i checked attributes to mgal_data directory is 777.


What is the max file size set to?
100024

What about post_max_size and upload_max_filesize on your server?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: ttuu on February 12, 2009, 10:03:10 AM
when i check this?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 12, 2009, 10:12:27 AM
Quote from: Dragooon on February 12, 2009, 09:36:31 AM
@akhyne and link...take your discussions to PMs please, I don't want another war here.(And no I don't want comments on anything either).

I'm way to old to be offended and needs no apologies, never the less a forum shouldn't be tollerating phrases like these:

link187:
Quote
to be honest i can't be assed to read the last 10 posts as mr.wierd-syllable suggests

SmokyBlue:
Quote
ass+u=me
...and the morroons are out tonight...

This is not about me being offended, but to cut out that such comments should not be tollerated at all.

I know there's been a lot of fights in this topic... unfortunately... and I hate it as much as you do. But we really need a good tone in here.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 12, 2009, 10:45:07 AM
Can you take your discussions to PMs? You're doing the thing you said that should not happen here.

Quote from: ttuu on February 12, 2009, 10:03:10 AM
when i check this?
By a phpinfo file(What is a phpinfo() file? (http://docs.simplemachines.org/index.php?topic=479)).
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: ttuu on February 12, 2009, 11:06:43 AM
ok thanks.
post_max_size = 10 MB
upload_max_filesize = 8 MB

i tryed upload file 100 KB.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 12, 2009, 11:27:15 AM
Quote from: akyhne on February 12, 2009, 08:05:44 AM
So you think it's funny insulting people for fun, huh! You are both SO close on being repported.
Aw come on...
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 12, 2009, 12:37:11 PM
regardless it was due to how high the php was set..  ;)

easyphp 2.0 works the gallery just fine, while the newly upgraded version of it stutters like a kid when wanting a lollipop..  ;)

Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: jmil on February 13, 2009, 01:08:53 PM
Just tried to upgrade to 1.5.4v(SMF 1.1 .8 - Custom Theme, www.forums.midatlanticxriders.com and I receive the following text at the top of my forum Any Help?:


// SMF Media Gallery extra strings $txt['mgallery_gallery'] = 'Gallery'; $txt['mgallery_profile_sum'] = 'Summary'; $txt['mgallery_view_items'] = 'View items'; $txt['mgallery_view_coms'] = 'View comments'; $txt['mgallery_gotolink'] = 'More details...'; $txt['permissiongroup_mgallery'] = 'SMF Media Gallery'; $txt['permissiongroup_simple_mgallery'] = 'SMF Media Gallery'; $txt['permissionname_mgallery_access'] = 'Access Gallery'; $txt['permissionname_mgallery_moderate'] = 'Moderate Gallery'; $txt['permissionname_mgallery_manage'] = 'Administrate Gallery'; $txt['permissionname_mgallery_access_unseen'] = 'Access unseen area'; $txt['permissionname_mgallery_search'] = 'Search in Gallery'; $txt['permissionname_mgallery_download_item'] = 'Download items'; $txt['permissionname_mgallery_add_user_album'] = 'Add User Albums'; $txt['permissionname_mgallery_auto_approve_albums'] = 'Auto-approve User Albums'; $txt['permissionname_mgallery_add_videos'] = 'Add videos'; $txt['permissionname_mgallery_add_audios'] = 'Add audio files'; $txt['permissionname_mgallery_add_images'] = 'Add pictures'; $txt['permissionname_mgallery_rate_items'] = 'Rate items'; $txt['permissionname_mgallery_edit_own_com'] = 'Edit own comments'; $txt['permissionname_mgallery_report_com'] = 'Report comment'; $txt['permissionname_mgallery_edit_own_item'] = 'Edit own items'; $txt['permissionname_mgallery_comment'] = 'Comment in items'; $txt['permissionname_mgallery_report_item'] = 'Report items'; $txt['permissionname_mgallery_auto_approve_com'] = 'Auto-approve comments'; $txt['permissionname_mgallery_auto_approve_item'] = 'Auto-approve items'; $txt['permissionname_mgallery_multi_upload'] = 'Mass Upload'; $txt['permissionname_mgallery_viewprofile'] = 'View anyone\'s Gallery profile'; $txt['permissionname_mgallery_whoratedwhat'] = 'View who rated what'; $txt['cannot_mgallery_viewprofile'] = 'You cannot view Gallery profiles'; // End SMF Media Gallery strings

Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 13, 2009, 01:12:52 PM
Open MGallery.english.php in /Themes/default/languages in move ?> to the end.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: jmil on February 13, 2009, 01:20:58 PM
I am sorry Dragoon - I had the same issue when I did the initial install last time and fixed it while you were Replying - I feel stupid - But your response was UNREAL and quick!

All us members appreciate your dedication.

Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: jmil on February 13, 2009, 01:52:57 PM
Converting.

I am now trying to convert my SMF Gallery Lite to the new Gallery. I have ftp'ed "mgconverter_sgl" into the proper location.

What does it mean to run it in your Browser? (How come there is not an idiot Smilee to choose)

I had to clean my cache several times now it is working!
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: jmil on February 13, 2009, 04:57:46 PM
Can someone hep me modify my custom theme button for the gallery? I have not been active and I have the button showing, but I can not get it to match my current style. Any help would be appreciated. I attached my index.template.php

Site: www.forums.midatlanticxriders.com

UPDATE - After Several Tries I finally got it to work.


NICE Mod to all the involved!!!
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Amzen on February 14, 2009, 06:01:59 AM
Hello  :)

thanks for all your works in this mod, it's a very good one !

but i've a kind of probleme with the embed [smg id=*],
when i use it on a post, everything look ok, but when i want for exemple go back to the main page,
all the forum crash !
the only way to work it again is to come back with the browser and erase the post

here is the message when the server crash (in attachement to this message)

like you see i'm french language,

so i did the test in english language to have an english message,

but surprise, in this language no bug ! it's working, only the hourglass never stop.

but all the comunity are french language...

may you give me please a way to solve this probleme ?
i'm using the default theme with some mods (if you need the list ? but i didn't have any problemes during the installation, i tried to uninstall and install again, but same)

thanks

google translate for the message ->

   
Error encoding content

The page you are trying to view can not be displayed because it uses a type of compression disabled or not supported.

* Please contact the webmaster of the site to inform them of this problem.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 14, 2009, 06:15:17 AM
Is "Enable compressed output" checked in Admin -> Server settings? If so does disabling it helps?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: kyle007 on February 14, 2009, 06:49:42 AM
I have a problem, pls help :/

Everything works fine until i add a new gallery category... Suddenly all the default photo icon disappeared...

I mean, gallery category's icon parts are empty... Folder.png is still in its location (mgal_data/generic_images)

So help me :(
_____________________

Also how can i change this colour ? Yeah i know it's windowbg2,but i want to change it's class, i couldn't find the code in "MGallery.template" , could you show it ?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg11.imageshack.us%2Fimg11%2F4333%2F11562950ct4.gif&hash=f143e426b3467c6011e2999abbf79b8be837e5f3)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: ttuu on February 14, 2009, 02:15:17 PM
Quote from: ttuu on February 12, 2009, 11:06:43 AM
ok thanks.
post_max_size = 10 MB
upload_max_filesize = 8 MB

i tryed upload file 100 KB.
any news for my problam?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Amzen on February 14, 2009, 02:37:02 PM
Quote from: Dragooon on February 14, 2009, 06:15:17 AM
Is "Enable compressed output" checked in Admin -> Server settings? If so does disabling it helps?

works fine, thanks a lot ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Bugpac ™ on February 14, 2009, 05:06:27 PM
Quote from: Bugpac ™ on February 11, 2009, 04:27:22 PM
In 2.04 what is the permission for to access unseen area?

what does this do, access unseen area?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 14, 2009, 05:12:43 PM
Unseen area = that page where all of your unread items are listed. Just like "Unread posts" in SMF...
(I never thought it was a very interesting permission in the first place, though. I'd say everyone should be able to view that...)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: kyle007 on February 14, 2009, 06:58:46 PM
Any help ? :/

Quote from: kyle007 on February 14, 2009, 06:49:42 AM
I have a problem, pls help :/

Everything works fine until i add a new gallery category... Suddenly all the default photo icon disappeared...

I mean, gallery category's icon parts are empty... Folder.png is still in its location (mgal_data/generic_images)

So help me :(
_____________________

Also how can i change this colour ? Yeah i know it's windowbg2,but i want to change it's class, i couldn't find the code in "MGallery.template" , could you show it ?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg11.imageshack.us%2Fimg11%2F4333%2F11562950ct4.gif&hash=f143e426b3467c6011e2999abbf79b8be837e5f3)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Freakies on February 14, 2009, 07:04:16 PM
QuoteInternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, **edited** and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I get this error when trying to view Direct Link of a picture.

SMF Media Gallery 1.5.4
SMF 2.0 Beta 4

Any ideas?

Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 14, 2009, 07:05:32 PM
kyle007: windowbg2 is in your Default theme of your forum
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Freakies on February 14, 2009, 07:20:55 PM
Uh never mind. Found my answer here...

http://smf-media.com/community/index.php?topic=434.msg3464#msg3464

Quote from: dragoonWhat are the permissions for MGalleryItem.php in root of your SMF? Try chmodding them to 755 or even 777.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: ke4obt on February 14, 2009, 08:07:44 PM
I have a quick question. For the audio/video player, is there a way to change it to the multi-player.
That way, if someone wants to click on the first audio file and then be able to click the "next" button to go to the next audio file without having to go back in to the album and click on the next file, they can do that.
I looked at the website for the dewplayer and they have a "multi" version of it. I just wasn't sure if there was a way to change which player SMG uses.

Thanks in advance (as always),
Mickey
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: quietstorm on February 14, 2009, 09:21:49 PM
I have reverted back to SMF 1.18 from SMF 2.0RC1 because of a mod error!

When I did a fresh install for both SMF 1.18 and SMF Media Gallery, the link to the gallery did not show.  :(

Can someone show me how to edit the index template file to reflect a link to the gallery?  :)

The attached screenshot will show what I mean!

TIA
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 14, 2009, 09:34:40 PM
http://custom.simplemachines.org/mods/index.php?mod=1365

Click "Manual Install Instructions for SMF"
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 14, 2009, 11:50:34 PM
smf-media.com is more or less down, so I will post the bug here for now:

There's an error in the way you are treating language strings in 'Permissions' in admin center. I got nothing but strange letters for special characters.

EDIT: Forgot to mention it was when not using UTF-8
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: quietstorm on February 15, 2009, 12:02:06 AM
Quote from: akyhne on February 14, 2009, 09:34:40 PM
http://custom.simplemachines.org/mods/index.php?mod=1365

Click "Manual Install Instructions for SMF"

THANKS
Will do..maybe I can figure it out!!  :)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: quietstorm on February 15, 2009, 12:02:50 AM
Quote from: akyhne on February 14, 2009, 11:50:34 PM
smf-media.com is more or less down, so I will post the bug here for now:

There's an error in the way you are treating language strings in 'Permissions' in admin center. I got nothing but strange letters for special characters.

EDIT: Forgot to mention it was when not using UTF-8

UHHH??

You have lost me on this one!  :)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 15, 2009, 12:03:23 AM
nice new look for smf-media.com

Nao you and Dragooon did a great job, and thanks again for helping me with my issue.. i would have thought about it, i normally do fix my own, but ya know how that went.  ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 15, 2009, 12:04:37 AM
Quote from: quietstorm on February 15, 2009, 12:02:50 AM
Quote from: akyhne on February 14, 2009, 11:50:34 PM
smf-media.com is more or less down, so I will post the bug here for now:

There's an error in the way you are treating language strings in 'Permissions' in admin center. I got nothing but strange letters for special characters.

EDIT: Forgot to mention it was when not using UTF-8

UHHH??

You have lost me on this one!  :)

That was for Dragooon :)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 15, 2009, 12:06:54 AM
Quote from: quietstorm on February 15, 2009, 12:02:06 AM
Quote from: akyhne on February 14, 2009, 09:34:40 PM
http://custom.simplemachines.org/mods/index.php?mod=1365

Click "Manual Install Instructions for SMF"

THANKS
Will do..maybe I can figure it out!!  :)


Just look under ./Themes/default/index.template.php
It tells you what strings to search for, and wether you should either replace, add the new code before, or after the code.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 15, 2009, 12:16:32 AM
@akhyne...smf-media.com is fine?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 15, 2009, 12:21:26 AM
Look at the loadtime... and this is one of the fast loadings
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 15, 2009, 12:32:20 AM
i got:

Page created in 1.563 seconds with 15 queries.

hmm..  :o

but it does look good since the last i saw Dragooon..
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 15, 2009, 12:35:23 AM
I just got a 0.317 but it varies very a lot, smokey.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 15, 2009, 12:38:15 AM
Hm not sure whats going on with the VPS, it doesn't have any high load stuff on it AFAIK.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 15, 2009, 12:42:19 AM
The high loadtimes of SMF are usually because of a slow MySql server. By the way you also have a script error in your new theme.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 15, 2009, 12:46:21 AM
hmm there ya said it Dragooon.. im on a vbs and perhaps it has nothing to do with your site but with the others on the vps hosting along with you..

somebody is monkeying with a script!  ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 15, 2009, 01:07:16 AM
Quote from: akyhne on February 15, 2009, 12:42:19 AM
The high loadtimes of SMF are usually because of a slow MySql server. By the way you also have a script error in your new theme.
What error?

Quote from: SmokyBlue on February 15, 2009, 12:46:21 AM
hmm there ya said it Dragooon.. im on a vbs and perhaps it has nothing to do with your site but with the others on the vps hosting along with you..

somebody is monkeying with a script!  ;)
Its a VPS....I got no one else hosted on my VPS.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 15, 2009, 01:11:22 AM
'hide_prefixes' is not defined.


Edit:

SMF Media:
Connection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.


Are you rebooting ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 15, 2009, 01:13:29 AM
No I was restarting MySQL, it spectacularly failed.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 15, 2009, 01:17:26 AM
Well, it helped some way. Most loadtimes now say less than .2 seconds, but still a few on more than 2 seconds.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: kyle007 on February 15, 2009, 10:19:38 AM
I still couldn't get an answer to  my problem...  :/

When i create an album, and leave the icon selection empty, the album doesn't call the default photo image (mgal_data/generic_images/folder.png) So the icon tables of my albums are empty...

It worked fine, but suddenly this problem occured...

What should i do ?

Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 15, 2009, 10:23:43 AM
What does the code of the generated html say?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: kyle007 on February 15, 2009, 10:38:40 AM
Sorry but couldn't understand...
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 15, 2009, 10:42:27 AM
Goto your gallery where you have the problem with a missing icon. Rightclick in your browser and say yes to view the code. Copy all the code and attach it here as a txt file or similar.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: kyle007 on February 15, 2009, 10:48:04 AM
Ok, here is the code of a gallery...
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 15, 2009, 10:55:51 AM
I don't know what you see, but I get the image that says that the image is not within my reach (due to permissions). The link points to http://forum.hardwarena.com/index.php?action=mgallery;sa=media;id=20;icon which means that there should be a image and an icon of that image (the one you should see) available.

What do you see if you put http://forum.hardwarena.com/index.php?action=mgallery;sa=media;id=20;icon in your browser? The image is probably just lost for some reason.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: kyle007 on February 15, 2009, 11:03:12 AM
When i enter that link, it's totally blank, and the browser title says " index.php (GIF , 1x1 pixel) "
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 15, 2009, 11:20:22 AM
have you tried to run the gallery's maintenance?? what happens when you do that? :)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 15, 2009, 11:26:21 AM
... and what are your settings for preview images?
Max thumb width & Max thumb height.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Ranter on February 15, 2009, 01:55:10 PM
This is absolutely brilliant software.  Very, very well done.

Thank you!
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Joe N on February 15, 2009, 02:00:02 PM
Quote from: Ranter on February 15, 2009, 01:55:10 PM
This is absolutely brilliant software.  Very, very well done.

Thank you!

Glad you like it!
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: kyle007 on February 15, 2009, 02:08:02 PM
Quote from: SmokyBlue on February 15, 2009, 11:20:22 AM
have you tried to run the gallery's maintenance?? what happens when you do that? :)
Quote from: akyhne on February 15, 2009, 11:26:21 AM
... and what are your settings for preview images?
Max thumb width & Max thumb height.

I ran gallery's maintenance, found no problem... Thumb size is 150x130..

As i said, it was fine , no problem, until i create a new album... But i did nothing other than that.. Sunddenly the default folder.png images disappeared...As you can see , no problem at it's location...

http://forum.hardwarena.com/mgal_data/generic_images/folder.png

I'm gonna crazy, what may cause this stupid situation...
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 15, 2009, 02:10:20 PM
But your link doesn't point on that image. It points on the link I gave you.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: kyle007 on February 15, 2009, 02:15:47 PM
But it's always like that...It never has a link like "http://forum.hardwarena.com/mgal_data/generic_images/folder.png"

View the default folder.png's source on a SMF Media Gallery by right click... It shoult be as "http://www.sitename.com/index.php?action=mgallery;sa=media;id=20;icon"
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 15, 2009, 02:37:16 PM
I just realise that I'm actually having the same issue. As there's only a few albums in my forum that doesn't have an icon, I simply didn't notice.
But I know for sure that it have been working in 1.5.2.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: kyle007 on February 15, 2009, 02:59:05 PM
hah :) But it's really annoying... I even think to downgrade to 1.5.2... What's the difference, i couldn't see a changelog...

Or let's wait a while , wish Dragooon'd  show us a solution... :/
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 15, 2009, 03:00:00 PM
hmm well i have all my icons..  :o

i had to run the maintenance but i did manage the upgrade..
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 15, 2009, 03:03:42 PM
Ok, this is what the issue is:

In the db, table yourPrefix_mgallery_files there should be a id in column id_file with the values:

4    2799     folder.png    48    48     generic_images    0

That line is gone in my gallery, but is present in another forum gallery I have as testgallery. So it seems one of the upgrades I made from either 1.5.2 -> 1.5.3 or from 1.5.3 to 1.5.4 deleted that value.

kyle: My guess is that you upgraded the forum at some point, or maybe the bug is in all 1.5.4 versions.


EDIT: I just went to a third forum of mine that has only been running 1.5.4 and the row is present as it should be. So it seems the #4 row has been deleted during an upgrade.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 15, 2009, 03:15:56 PM
I inserted the row in my gallery and now got my folder.png thumb back.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: kyle007 on February 15, 2009, 03:18:21 PM
So what should i do, actually i don't understand much about db things.. :/
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 15, 2009, 03:35:56 PM
I'd rather wait to see what Dragooon says about it, than tell you what to do - even if it's a small change.

He might know of the bug and might have an easier solution. But just relax, the problem can be solved.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 15, 2009, 03:37:26 PM
It seems Dragooon is having a hard time. http://smf-media.com/ is down with the MySql server again.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 15, 2009, 03:44:29 PM
Having a hard time, too... I mean I'm starting to figure out that we implemented way too many little features into SMG, and it's making things so complicated...
To give you an idea -- I implemented the ability to keep file IDs and file names when regenerating thumbnails, and guess what? It took me two days to manage to make it work, *and* it's still a bit buggy so I have yet to commit my changes... In the meantime, I made other additions etc, which add up, and I can't commit anything at all until I'm done with the fixes.
Fun times!

Working on Aeva, even by myself, is more pleasant in retrospect.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 15, 2009, 03:52:17 PM
Quote from: akyhne on February 15, 2009, 03:03:42 PM
Ok, this is what the issue is:

In the db, table yourPrefix_mgallery_files there should be a id in column id_file with the values:

4    2799     folder.png    48    48     generic_images    0

That line is gone in my gallery, but is present in another forum gallery I have as testgallery. So it seems one of the upgrades I made from either 1.5.2 -> 1.5.3 or from 1.5.3 to 1.5.4 deleted that value.

kyle: My guess is that you upgraded the forum at some point, or maybe the bug is in all 1.5.4 versions.


EDIT: I just went to a third forum of mine that has only been running 1.5.4 and the row is present as it should be. So it seems the #4 row has been deleted during an upgrade.

if that was the case, then why are my folders showing up with no issues?? lol.. i dont know, but i do know i had to save a copy of the tables from the media gallery before the update, delete those tables and then install the mod, as if it were new, then i droped those tables and inserted the old ones..

like its said on smfh, i should have just cancelled out the db calls for it, and just replaced the files in the upgraded mode.. dont know..

i do know Nao and Dragooon work their fingers off on this one.. ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 15, 2009, 04:08:29 PM
It's a dangerous way you did it, but great it worked for you. I have no idea when or why I lost that row in the db. The way an album shows when having no album icon isn't something you would notice as there's not the usual "missing image"- icon that a browser usually shows.

Is Nao still in? I thought he "retired" from SMG and just helped out a little.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 15, 2009, 04:18:41 PM
Quote from: akyhne on February 15, 2009, 04:08:29 PM
Is Nao still in? I thought he "retired" from SMG and just helped out a little.
I'm still in... I promised I'd get back once the @sh story is dealt with, and it is, but it turns out to be harder than I thought, really. I've been mostly away for nearly 3 months, and the only things I've been doing are minor changes. I still consider myself a co-dev, but clearly not behaving like one right now.
Still--Aeva needs me more than SMG, for now. But we're getting close to the end.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 15, 2009, 04:32:10 PM
My "old" brain seems to be running on halt here. I can't figure out what's happening and not LOL. But glad to hear you support Dragooon - very glad indeed :)

And yeah I think it's way more important to get the issues of SMG solved than to add a lot of new functions. But still we are allowed to dream abot those few functions that are on our wishlist ;)

The mod is close to being perfect. Once again  - nice job ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Smoky "Rider" Blue on February 15, 2009, 04:59:34 PM
Quote from: akyhne on February 15, 2009, 04:08:29 PM
It's a dangerous way you did it, but great it worked for you. I have no idea when or why I lost that row in the db. The way an album shows when having no album icon isn't something you would notice as there's not the usual "missing image"- icon that a browser usually shows.


depending on what browser, the circumstances, and if the image is actually missing or not being called on.. ;)

as far as how i did it, i have been converting databases, merges, and dealing with extremely large databases and all the lovely issues with it.. dropping tables, i dont recommend for everyone.. one slip up and the data you try to save can be gone..  O:)

but i shouldnt have had to do that for the mod..
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: cleanfiles on February 16, 2009, 12:07:51 AM
Hey guys, I purchased the slideshow module and it works great. Very good indeed...... The only problem with it is it does not increase the view count of the images when images are viewed using the slideshow module. While this is not a problem with its functionality, it is not an accurate indication of the view count for the images.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: islam2hamy on February 16, 2009, 01:25:17 AM
first : thank you for this great mod .
Second :  i have found a problem with (Arabic) language ,
when i try to make a new album with name (إسلاميات) it is appear as (إسلاميا&) , the last later is missing ,
and when i try to make a new album with name (ألعاب لاند) it is appear as (ألعاب لا) , the last two later is missing ,

so , what is wrong ??
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 16, 2009, 03:53:55 AM
Sorry guys for the downtime on smf-media.com, I apparently got it up.

EDIT : I'll get it up soon(Apache screwed up this time).
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: mforum on February 16, 2009, 04:29:14 AM
yea, it worked for a while   :o

Good luck with it Dragooon !!  :(
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 16, 2009, 04:37:48 AM
Got it up, should be fine now :).
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: drakeone69 on February 16, 2009, 09:42:13 AM
I still can't get the Mass Upload Select Files button to work, I have no idea if I have a "screen reader" .. I thought that's what my eyes were .. lol

the upload button is clickable, but the Select Files is just pretty colored text.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: FUBAR on February 16, 2009, 06:05:24 PM
I tried running a search on this error but nothing came up..

8: Undefined variable: my
File: /home/xxx/public_html/forum/Themes/default/languages/MGallery.english.php (eval?)
Line: 1


Any idea what could be causing this?

Thanks in advance guys.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 16, 2009, 06:17:18 PM
Seems your Mgallery file is corrupted somehow. How's the start of the file?

It should look like this:
<?php

global $txt$scripturl;

// General tabs and titles
$txt['mgallery_title'] = 'Gallery';
$txt['mgallery_home'] = 'Home';
$txt['mgallery_admin'] = 'Admin';
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: FUBAR on February 16, 2009, 07:23:11 PM
I just noticed 1.5.4 was released so I have now upgraded and it went successfully with no errors, although I haven't seen anything in the error log yet.

I took a look at the /Sources/MGallery.php file and it looks nothing like what you have posted.

Am I looking in the right area?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 16, 2009, 07:27:01 PM
/home/xxx/public_html/forum/Themes/default/languages/MGallery.english.php
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: FUBAR on February 16, 2009, 08:38:32 PM
The beginning of that file looks like this..

<?php



global $txt$scripturl;



// General tabs and titles

$txt['mgallery_title'] = 'Gallery';

$txt['mgallery_home'] = 'Home';

$txt['mgallery_admin'] = 'Admin';


Just has extra spaces compared to what you posted but I don't think this would cause an error would it?

Thanks for the help.  ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 16, 2009, 08:42:48 PM
I don't know.. the text looks ok, but the double line breaks tells me something might be corrupted.

Did you try uninstalling and installing again? With a new downloaded package?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: time31415 on February 16, 2009, 09:13:34 PM
What a long thread! maybe it is best to make a new one?

Anyways, I've downloaded SMG and installed it. I thought everything was working fine, I could a User album/User Picture Gallery, but the link won't open properly so I can add images. Also it doesn't show my thumbnail.

It gives me this message when I click on it:

QuoteMethod Not Implemented

GET to /talk/index.php not supported.

Additionally, a 404 Not Found error was encountered while tring to use an ErrorDocument to handle the request.

What do I do?
I need help :(
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 16, 2009, 09:32:47 PM
Did you have errors when installing? What other mods did you install?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Akyhne on February 16, 2009, 09:41:29 PM
Seems it might be this error you are dealing with:
http://www.simplemachines.org/community/index.php?topic=34270
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: time31415 on February 16, 2009, 10:01:44 PM
it didn't say I had any errors when I was installing, everything seemed ok until I tried to view my pictures. That is how it is with the SMF Image Gallery as well. I had that installed but deleted it because it didn't work either.

Man this forum stuff is stressful :(

That doesn't really sound like my problem.. but maybe.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 17, 2009, 03:46:45 AM
Quote from: FUBAR on February 16, 2009, 06:05:24 PM
I tried running a search on this error but nothing came up..

8: Undefined variable: my
File: /home/xxx/public_html/forum/Themes/default/languages/MGallery.english.php (eval?)
Line: 1


Any idea what could be causing this?

Thanks in advance guys.
Its not related to this mod...Some other mod might be causing this.

Quote from: time31415 on February 16, 2009, 09:13:34 PM
What a long thread! maybe it is best to make a new one?

Anyways, I've downloaded SMG and installed it. I thought everything was working fine, I could a User album/User Picture Gallery, but the link won't open properly so I can add images. Also it doesn't show my thumbnail.

It gives me this message when I click on it:

QuoteMethod Not Implemented

GET to /talk/index.php not supported.

Additionally, a 404 Not Found error was encountered while tring to use an ErrorDocument to handle the request.

What do I do?
I need help :(
Ask your host, its a permission problem.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Kuzmitch on February 17, 2009, 07:11:13 PM
Hi all!

The question about smg BBC code. Is there any way to make text wrap to the next line for aligned images to the left (or none) instead of putting it on the right?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi43.tinypic.com%2F14sjfdg.jpg&hash=b3d2434be4a1a7bb38c07f4044822ba9f5756cc6)

Thanx in advance!
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 18, 2009, 01:59:40 AM
Well the [smg] tag is pretty much customized for blog (or blog-like) integration in the first place...
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Kuzmitch on February 18, 2009, 03:57:48 AM
Yes, but the div's which used by developer it seems like a little bit complicated for me (I've tryed to manage it it by myself).

I've also found that the align=none is similar to the align=center. How can we fix that?

Here is some illustrations:


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi41.tinypic.com%2Fb5487p.jpg&hash=a0f5764f04ce0488946bc4125bdc3d43a006f46b)


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi43.tinypic.com%2F351wi1x.jpg&hash=f43c2faaebd4eee1c195b443240fc8f9a8f5d361)


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi42.tinypic.com%2F16rtc2.jpg&hash=04ad052a4f50df3e4995ff836ebd8c4e30ee689a)


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi44.tinypic.com%2Fezjzuo.jpg&hash=7c0cb47b6f389fbd83e33e84126ad53bd0c9759f)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 18, 2009, 04:48:27 AM
When I implemented the tag, I had only two possibilities:
- either do a tag for "in the know" users, which basically just shows the pic and lets you do the rest yourself,
- or do a tag for n00bs that tries to guess the best possible use for people who'd like the thing to look good on their posts, without having to touch anything.

Basically, it was a hell of a hard thing to implement anyway. I wanted to do the fastest possible implementation and I think I did pretty well in that area. I also wanted to have a tag that was easy to customize, so I implemented all of the options and added the help file. A help file, imagine that! I hate writing help files and I still did it! In two languages, lol! Anyway--

What I'm trying to say is: if you think you have a better way of making the tag work, then feel free to share.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Kuzmitch on February 18, 2009, 05:25:47 AM
Hi Nao,

thanks for the fast reply!

I've finally cheated with the tag system :)  with the 2 additional choices:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi41.tinypic.com%2F4lg6c9.jpg&hash=f87d1c96d4557c2b4b4cf80287ca4cdc818d6be0)

Setting them reccomended for the basic users:

[url=http://forum.guitarplayer.ru/gallery.php?id=27][img]http://forum.guitarplayer.ru/gallery.php?id=27;thumb[/img][/url]

and

[url=http://forum.guitarplayer.ru/gallery.php?id=27][img]http://forum.guitarplayer.ru/gallery.php?id=27;preview[/img][/url]

It requires the small addition to the MGallery.template.php

echo '
<tr>
<td class="info smalltext">BBC код: миниатюра + увеличение до оригинального по клику <font color="red">(рекомендуется)</font></td><td class="info">
<input id="html_embed" type="text" size="60" value="', $item['type'] == 'image' ?
htmlspecialchars('[url=' . $boardurl . '/gallery.php?id=' . $item['id_media'] . '][img]' . $boardurl . '/gallery.php?id=' . $item['id_media'] . ';thumb[/img][/url]') :
htmlspecialchars(trim(preg_replace('/[\t\r\n]+/', ' ', $item['embed_object']))), '" onclick="return selectText(this);" readonly="readonly" />
</td>
</tr>
<tr>
<td class="info smalltext">BBC код: превью 640px + увеличение до оригинального по клику <font color="red">(рекомендуется)</font></td><td class="info">
<input id="html_embed" type="text" size="60" value="', $item['type'] == 'image' ?
htmlspecialchars('[url=' . $boardurl . '/gallery.php?id=' . $item['id_media'] . '][img]' . $boardurl . '/gallery.php?id=' . $item['id_media'] . ';preview[/img][/url]') :
htmlspecialchars(trim(preg_replace('/[\t\r\n]+/', ' ', $item['embed_object']))), '" onclick="return selectText(this);" readonly="readonly" />
</td>
</tr>


So I think the problem is solved. I've also renamed MGalleryItem.php to gallery.php to make the url a bit shorter for my personal needs.

Thanks again for the grat gallery mod!
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 18, 2009, 07:57:13 AM
I'm not too fond of using that system (it's the old one), but if it works for you...
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 18, 2009, 08:51:56 AM
Why not just use the normal tags built into the forum when making your post. It's not rocket science, i know i would never have bothered editing the source just to align something and already having the tags to do so. BTW the centered alignment picture you made up there is wrong. If the text was inside the (center)(/center) tags, it would also be vertically centered.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: cleanfiles on February 18, 2009, 07:37:42 PM
This gallery is by far the best gallery I have used so it's a credit to the developers, you have done well guys.
But your support leaves a lot to be desired I must say. I have read this entire thread and most posts at http://smf-media.com .
I find you both have very little patience and understanding for other people, and can be very rude. You both need to work on your attitude I'm afraid if you plan on getting anywhere in life...
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 18, 2009, 08:02:45 PM
Here we go again... >.>   <.<
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 18, 2009, 10:47:38 PM
Quote from: cleanfiles on February 18, 2009, 07:37:42 PM
This gallery is by far the best gallery I have used so it's a credit to the developers, you have done well guys.
But your support leaves a lot to be desired I must say. I have read this entire thread and most posts at http://smf-media.com .
I find you both have very little patience and understanding for other people, and can be very rude. You both need to work on your attitude I'm afraid if you plan on getting anywhere in life...
Thanks for your advice, but its really not easy to support this thing you know? Especially when one thing is answered 100 times and no one bothers to use something called as "search". Now if you have something better to say, say it otherwise we are not interested in hearing.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 19, 2009, 02:45:50 AM
Quote from: cleanfiles on February 18, 2009, 07:37:42 PM
This gallery is by far the best gallery I have used so it's a credit to the developers, you have done well guys.
Yeah we know. But we don't work for glory or anything like that so you can cut the crap.

QuoteBut your support leaves a lot to be desired I must say. I have read this entire thread and most posts at http://smf-media.com .
Like I'd believe that.
If you did, first of all you wasted your time. It's our curse to be forced to read everything. Not yours. If you did read everything, you would have posted your comments from time to time. So you're just screwing around and lying.

QuoteI find you both have very little patience and understanding for other people, and can be very rude.
So what? We've been working on this for months, not as a side job but as a real, unpaid fulltime job (I count Aeva in the lot), and so far, most of what we've got in return are rude messages from rude people who think we owe them because they chose to take 2 minutes and install our ******e.

Well, we don't care whether people install it or not. We made it, we're sharing it in the true spirit of free software (free both as in freedom and as in beer), but we don't have to support it. Still, we do it. Given the smashing success of our mod, we did NOT expect so many support messages. And we certainly didn't expect so many similar support questions (or feature requests) that come back, and come back, and come back. It's ALWAYS because of that. And if you had really read ALL of the messages in this topic and at smf-media.com (what, 10.000 posts in total?), you would know why we're getting tired of this. And you would be encouraging us, or even helping us, instead of criticizing like that.

So, what's your point?

QuoteYou both need to work on your attitude I'm afraid if you plan on getting anywhere in life...
Where do you think we want to go?
Personally, I couldn't care less about my image and how my attitude is perceived. I have very little patience when it comes to tech support. But tech support isn't my life. Tech support is only an unfortunate side-effect of something I happen to love doing (programming). And it's not about money. I'm pretty much as rude as I am when I'm paid or when I am not.

But what you're seeing here is only some part of me. So don't think you're better than I am because you're not in my shoes.
And really, do you think that, at 34, I haven't already been where I wanted to be in life?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: movingmagic on February 20, 2009, 03:36:41 AM
Hallo,

I too have to convert the ; characters in the url's to &.

Because mod security is on and I cannot disable it by .htaccess
My providers must do this due to hacking attempts.

I am almost done, but cannot find where the $galurl. is generated.
Where is that part of SMF MEDIA GALLERY done?

Because in $galurl there still are the ; characters

Thanks a lot.

Pieter
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 20, 2009, 03:43:46 AM
$galurl is loaded in loadMgal_Settings function of Subs-MGallery.php, but mod_security is a pretty bad mod IMO.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: movingmagic on February 20, 2009, 04:01:19 AM
Thanx a zillion!!!
I will tell my ISP that he sucks!!! with his stupid mod!!!!
;D
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Nao 尚 on February 20, 2009, 06:04:02 AM
Lol.
And I didn't know that mod_security had a problem with ";"...
Really, you should be using a page-wide replacement for that. --> QueryString.php and edit.
Okay, it's only for hardcore PHP programmers but still... Only a couple of lines would be needed.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: movingmagic on February 20, 2009, 06:40:48 AM
So I replaced ;id= with &id= everywhere I could find it.

STILL, when I want to edit an entry, the text with a photo, and I click the submit changes button,

Still the URL creates an ;id= at the end.

Where does that come from?

Almost everything works now,


Thanks

Pieter
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: LinK187 on February 20, 2009, 10:19:03 AM
Sounds like it would be easier and cheaper to switch hosts...
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 20, 2009, 10:20:51 AM
Quote from: LinK187 on February 20, 2009, 10:19:03 AM
Sounds like it would be easier and cheaper to switch hosts...
Indeed

And if its not a question(I don't see why), I recommend doing a preg_replace in obExit(Susb.php) or ob_sessionwrite(QueryString.php)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Jim_W08 on February 20, 2009, 11:30:38 PM
Hi this mod looks good, it works for default theme but not for my custom theme. I made manual updates to index.template which is only updated file in themes folder except for languages, made no difference. Any idea what I need to do to get this to work with my theme?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 20, 2009, 11:36:18 PM
Does your languages folder got Modifications.english.php?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Jim_W08 on February 21, 2009, 05:56:33 AM
Yes it does thanks, that lead me down the right path ..  :)
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Jim_W08 on February 21, 2009, 06:35:14 AM
I get "An Error Has Occurred!" from here http://store.smf-media.com/ wanting to try demo.
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Dragooon on February 21, 2009, 11:07:36 AM
I don't see any error? What do you want to try as a demo?
Title: Re: SMF Media Gallery (SMG) - 1.5.4 released
Post by: Ranter on February 21, 2009, 11:18:41 AM
I also get an error when I access
http://smf-media.com/community/index.php?action=mgallery;sa=slideshow;album=1
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Faintnogod.com%2Fimages%2F%2FAn_Error_Has_Occurred%2521-20090221-081810.jpg&hash=8f48ac118f5df49ccd825ac304832e70850a2fd5)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on February 21, 2009, 11:32:44 AM
SMG 1.5.5 released!

Changelog :
Version 1.5.5                                   February 21, 2009
-----------------------------------------------------------------
! Double-install check at install time wasn't working correctly
! Readfile was disabled in some hosts, added proper check to fallback to fopen/fread combo
! Fixed remote videos not embedding when AEVA was not installed
!* Improved (rather added) checks for permissions being messed up at mgal_data/albums or mgal_data
! When albums were deleted, the generic folder icon was also getting deleted if it was assigned to it
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: drakeone69 on February 21, 2009, 11:49:31 AM
I just installed the new 1.5.5 release
_____________


I had gotten the MASS UPLOAD button to work by removing my database entries and starting all over again.

I upgraded to 1.5.5 and the MASS UPLOAD button went back to not working.

I have flash/java/the kitchen sink installed and it isn't working. .

Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on February 21, 2009, 10:44:17 PM
Quote from: Dragooon on February 21, 2009, 11:32:44 AM
SMG 1.5.5 released!

Changelog :
Version 1.5.5                                   February 21, 2009
-----------------------------------------------------------------
! Double-install check at install time wasn't working correctly
! Readfile was disabled in some hosts, added proper check to fallback to fopen/fread combo
! Fixed remote videos not embedding when AEVA was not installed
!* Improved (rather added) checks for permissions being messed up at mgal_data/albums or mgal_data
! When albums were deleted, the generic folder icon was also getting deleted if it was assigned to it


Can I upgrade from 1.5.4 to 1.5.5 the same way I did with 1.5.3 to 1.5.4? By just replacing the smg files? Or is it just a few tweaks I can easily add to the existing files? I also had the mass upload problem and a .css modification I made and don't want to undo the work I did to make it work in the first place. I can't install via package manager due to it simply not working with this mod on my server.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on February 21, 2009, 10:46:26 PM
You can replace the files and run this query
UPDATE smf_mgallery_settings SET value = '1.1.5' WHERE name = 'version'
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on February 21, 2009, 11:07:06 PM
Quote from: Dragooon on February 21, 2009, 10:46:26 PM
You can replace the files and run this query
UPDATE smf_mgallery_settings SET value = '1.1.5' WHERE name = 'version'

Would running db_mgallery.php do the same thing as they query? I'm not too savvy with myphpadmin...
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on February 21, 2009, 11:09:57 PM
You just have to run the query in the SQL query window in phpMyadmin. Only thing you have to make sure is that you use the "smf_" prefix with your SMF instalation, and not a custom prefix.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on February 22, 2009, 03:21:54 AM
Dragooon, maybe we should do the version stuff in a separate file, lol... Just like I'm doing with Aeva in the admin file :) At least it avoids tampering with sql stuff!
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on February 22, 2009, 05:25:47 AM
Running db_mgallery.php would update the version number too....
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: micky_2556 on February 22, 2009, 09:51:40 AM
hello

i have this problem with smf media gallery

i have smf version 2

and i have the problem

whan i upload on it

it givw that error


Wrong value type sent to the database. Array of integers expected. (items)
Function: MGal_MultiUpload2
Apply Filter: Only show the errors from this file
File:.../Sources/MGallery-Sub.php
Line: 1418

what can i do to solve that



Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: ʟink on February 22, 2009, 01:24:10 PM
Ok, so after doing a fresh install of the RC1 files, and reinstalling the SMF Media Gallery mod, I get this when I try to upload anything:
Quote from: SMF Media GalleryAn error happened during the upload process, please try again or contact the administrator.
I never used to get this error before, and the mgal_data directory is 777'd. Any ideas? Thanks for any help you can give.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: micky_2556 on February 22, 2009, 05:45:28 PM
Quote from: linkgamer3 on February 22, 2009, 01:24:10 PM
Ok, so after doing a fresh install of the RC1 files, and reinstalling the SMF Media Gallery mod, I get this when I try to upload anything:
Quote from: SMF Media GalleryAn error happened during the upload process, please try again or contact the administrator.
I never used to get this error before, and the mgal_data directory is 777'd. Any ideas? Thanks for any help you can give.

this problem face me and it
the solve of it that

give 777 chimd to all gallery folders

and make shure that your the limite of your php upload
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: jmil on February 23, 2009, 01:21:49 PM
After a rocky start installing and converting this mod (All My Fault for the Rocky Start) I Really Like this Extension. Well done by the SMG Crew.

I have a couple requests for assitance and I did a complete search of the Thread first.

1. Is there a way to make the Albums Horizontal rather than Vertical. Say 3 Albums to a line?

2. How can I incorporate a Random Picture PHP Line for Simple Portal?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Soms on February 23, 2009, 04:09:49 PM
I am using the package parser to manually uninstall 1.5 RC 3.2 because I want to upgrade to 1.5.5 (I know I am a bit late). It says;     

*  mgallery will be deleted
*  mgallery will be deleted
 
I see one mgallery in Themes/default and this: MGallery-getid3 in the source directory. Are these the 2 files referred to above and is it safe to delete them?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: weightman on February 23, 2009, 04:53:30 PM
Is their support for converting SMF Gallery Pro under SMF 1.18? Or do I have to upgrade to SMF 2.0 RC1 first? I notice there is a gallery pro converter for SMF Beta 3 or something.

Thanks for the support.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on February 23, 2009, 07:33:02 PM
SMG will convert any kind of SGP gallery, whatever the version.

Today I decided to take a short break on Aeva to make sure my current work is in the right direction. I played some DQ5 and in the end I came back to SMG, lol. (Will go back to Aeva tomorrow.)

Here's what I've been working on...

- "Move item" feature now works for user albums -- an owner will be able to transfer items from one of their albums to another. Will need to reintegrate general albums into the mix, though.

- I'm working on redoing the thumbnail boxes to use tables instead of CSS. Oh, I'm already hearing it, "heresy! anarchy! what are you doing!", but really, I don't think anyone complained when I rewrote the item pages to use a full table-based layout instead of the CSS-based layout that was in place in v1.0.x.

As a result of switching to a table-based layout, I quickly managed to fix two annoying issues:
- [smg type=box] will correctly be aligned now. I believe there was a problem with text always appearing to the right of these boxes, even when no alignment was specified. Now it'll work as expected (i.e., align=none will no longer do it the same way as align=left). Also, left-aligned boxes will be shown next to each other, without any "stairs" effects.
- this was requested a lot :) "Recent items" will now always fill the maximum width available. You'll be able to specify how many items you want *per line*, instead of per page.

It's still a work in progress, but you can see it in action over at http://media.noisen.com/
I'm mainly waiting for Dragooon's go-ahead to keep working on it. And I still don't know which version of SMG will introduce these changes.

Ah, 1975th post... Year of my birth... Year of Ommadawn... Year of Harmonium's Fifth Season... Great times O:)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on February 23, 2009, 07:50:06 PM
Like it.. and don't mind the use of tables. You always know where they are ;)

At http://media.noisen.com/ I ca see you put "user albums" next to "albums". Never saw those two together in my gallery. New function of some kind? I really miss that people can always jump to "User albums" from the top gallery menu. As it is now, they have to go to the main gallery menu, then click on "User albums".
People are missing the point in my forum.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on February 23, 2009, 08:52:23 PM
Hey, just updated my test forum from 1.5.4 to 1.5.5 and I've got a problem.

At first I had the mass upload problem which was fixed by adding an .htaccess file to the forum root. After that the upload would finish, but once it did finish, now I get the error depicted in the attached screen shot. Before you ask, yes the permissions are 777.

When I updated from 1.5.3 to 1.5.4, I had the mass upload error, but after adding the .htaccess, it worked fine. Which is why this error is confusing me and I don't know what is causing it.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: weightman on February 24, 2009, 01:51:42 AM
Nao, installed and converted from SMF Gallery Pro- no problems. Is there any way to use SSI or something to display a random image from the gallery on my home page?

Thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on February 24, 2009, 03:31:12 AM
Quote from: akyhne on February 23, 2009, 07:50:06 PM
Like it.. and don't mind the use of tables. You always know where they are ;)
Yeah ;)

I wanted to ask everywhere first, because I know Dragooon is all for semantics, and I'm more old-school, so when we worked on v1.5, we often had small clashes on that ;)
He PMed me that he was okay with the change, so we're good. Thanks, Dragooon! (I'd never do such drastic changes without his approval.)
This will be in v1.6.

QuoteAt http://media.noisen.com/ I ca see you put "user albums" next to "albums". Never saw those two together in my gallery. New function of some kind? I really miss that people can always jump to "User albums" from the top gallery menu. As it is now, they have to go to the main gallery menu, then click on "User albums".
People are missing the point in my forum.
I don't get it... Can you be more specific? I don't see any difference compared to any other SMG install...
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on February 24, 2009, 04:08:37 AM
Nice to have you back on SMG for a bit, Nao! :D
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Soms on February 24, 2009, 04:12:58 AM
Quote from: Soms on February 23, 2009, 04:09:49 PM
I am using the package parser to manually uninstall 1.5 RC 3.2 because I want to upgrade to 1.5.5 (I know I am a bit late). It says;    

*  mgallery will be deleted
*  mgallery will be deleted
 
I see one mgallery in Themes/default and this: MGallery-getid3 in the source directory. Are these the 2 files referred to above and is it safe to delete them?

Sorry for the bump: Please is it safe to delete these two files?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on February 24, 2009, 07:22:33 AM
Quote from: Nao 尚 on February 24, 2009, 03:31:12 AM
I don't get it... Can you be more specific? I don't see any difference compared to any other SMG install...

Hmm, I thought you had changed something as your text for useralbums syas "Albums - User albums" where only "User albums" is linked.
In my forum I only see "User albums", but it might be because I have no "General album" set up.

My point is that I have been running SMG for more than a month now, I saw several (maybe 10) members being in the gallery in the "who's online", but all images have only been viewed 0-1 times.
So my point is that I think people are missing the point with the "User albums" and they may think it's only some kind of headline and not a link to click.
The only images that has been watched more than a few times are the "Latest images". If you click into one of those as a new user, you miss the point that there are also a lot of user albums avaliable.

So a link to "Uuser albums" in the mainmenu of the gallery might wake people up. And as mentioned I miss the link myself as a kind of quicklink.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on February 24, 2009, 08:05:04 AM
Quote from: akyhne on February 24, 2009, 07:22:33 AM
In my forum I only see "User albums", but it might be because I have no "General album" set up.
You got it.

QuoteMy point is that I have been running SMG for more than a month now, I saw several (maybe 10) members being in the gallery in the "who's online", but all images have only been viewed 0-1 times.
So my point is that I think people are missing the point with the "User albums" and they may think it's only some kind of headline and not a link to click.
Is your link obviously clickable? (i.e. underlined)

QuoteThe only images that has been watched more than a few times are the "Latest images".
We should enable this page to show all pics via page index links. We probably will... The homepage needs an overhaul for sure. I'm only getting started.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on February 24, 2009, 08:24:00 AM
Quote from: Nao 尚 on February 24, 2009, 08:05:04 AM
We should enable this page to show all pics via page index links. We probably will... The homepage needs an overhaul for sure. I'm only getting started.
Please have it so the home page can show the latest albums, please pretty please!!
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on February 24, 2009, 08:27:40 AM
Uh... Well I dunno... It's a whole new feature I guess... Easy to write but how should we put them in the layout, etc... It's harder to say.
Also, since Dragooon didn't add a "creation date" in the first place, I could only sort albums by: first item, and latest item. Just like for a topic... Which means, if an album is empty, it won't appear. Which is good, I think.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on February 24, 2009, 08:43:31 AM
Have it so the album's creation date is based on when the first picture was uploaded to it... I really think it's an essential feature to allow for the admin to list the latest albums in the gallery index. You can have it as another option along side latest pictures and comments.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on February 24, 2009, 08:45:54 AM
Quote from: Nao 尚 on February 24, 2009, 08:05:04 AM
Is your link obviously clickable? (i.e. underlined)

It is, and I'm running the default theme. So everything looks standard. The other day I told my bro to view some images from Legoland when he had the time. Next time I talked to him, he said there were only 5 images and none from Legoland. So I assume he just saw the 5 recent images on the main gallery page, and nothing more.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on February 24, 2009, 10:17:37 AM
QuoteSo my point is that I think people are missing the point with the "User albums" and they may think it's only some kind of headline and not a link to click.

I think this exactly. Everyone is seeing the general albums, but only a small fraction even know they can have their own. There really needs to be better distinction.

Also, any help with my problem on the prev page is much appreciated  8)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: videoman57 on February 24, 2009, 11:43:17 AM
I see that you are ambitious with more changes coming...I like your site...
BTW, those photos of the construction...adding tiling to floors etc in one of your galleries...is that your place...sure looks nice!
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on February 24, 2009, 12:22:34 PM
Quote from: videoman57 on February 24, 2009, 11:43:17 AM
I see that you are ambitious with more changes coming...I like your site...
BTW, those photos of the construction...adding tiling to floors etc in one of your galleries...is that your place...sure looks nice!
Uh... Are you talking to me?
If yes -- nope, that's from a friend's in Brittany. I'll be going there soon, so I can check on whether the "housework" is finished, eheh.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on February 24, 2009, 12:49:00 PM
Ok, so I created a new album on my test board and it works fine now. However, I'm unable to delete the other album that was having the problem. I made sure the folder permissions were 777 and it won't delete no matter what? Any ideas?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on February 24, 2009, 12:55:07 PM
Sorry, no idea...

@everyone> could someone make a bug report to the SMG bug tracker, and sum up the complete list of suggestions made for the homepage? That would be nice... Otherwise I'll get lost easily. Thanks. (Or at least, post it here in a single post.)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on February 24, 2009, 01:02:47 PM
suggestions made for the homepage? Frontpage of SMG in ones forum? Or in general of the SMG mod?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on February 24, 2009, 01:16:28 PM
The frontpage stuff, yeah... Needs to be put all in one place.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: holeski on February 24, 2009, 01:45:41 PM
We are still having some major problems after months with the gallery working correctly. First Admins had no control over albums unless they where the ones who made them. Unable to move any photos from one album to another and now everything has just started to disappear leaving dead links. Please any suggestions? I have spent countless hours uploading photos now for them to disappear for no seen reason.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: weightman on February 24, 2009, 01:58:20 PM
Nao, I agree about the user albums. They are kind of buried. Personally, I would like to move them to the general albums but you can't seem to do it. When I click "move" in the user album, it just refreshes the page. Also, is there any possibility of using ssi to show a random shot from the gallery on our home page or the latest shot?

Thanks. Another great mod.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on February 24, 2009, 02:34:13 PM
Weightman: There's no idea in moving the user albums as they would then just be general albums and not user albums. About the not working "move" function, it is my understanding that this is solved and will be part of the next release.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on February 24, 2009, 11:00:24 PM
Quote from: akyhne on February 24, 2009, 02:34:13 PM
Weightman: There's no idea in moving the user albums as they would then just be general albums and not user albums. About the not working "move" function, it is my understanding that this is solved and will be part of the next release.

What he's getting at is that barely anyone noticed the capability of making one's own user album due to the link being camouflages and almost looking like a title. I think it would be better if general and user album links were more in your face noticeable so the majority of users would actually notice and use them.

To be honest, the only reason I noticed the link is because I installed the mod and had to figure out how to use it.

@nao: how can i manually delete an album?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on February 25, 2009, 06:35:01 AM
Quote from: Nao 尚 on February 24, 2009, 01:16:28 PM
The frontpage stuff, yeah... Needs to be put all in one place.

I'll get things started, can people add to the list so it grows until everything is on there. (Nao, apologies in advance, I know you'll hate me for all the other stuff I added)

Gallery Index Requests

1. Link to 'User Albums' on the home page needs to look more like a link, currently first impressions suggest it is the title of the gallery index.

2. Just like 'Recent pictures', there should be 'Recent albums' to show the last X number of albums created. As there is no creation date for albums, you should use the date of the first picture uploaded to the album.

3. Have it so we can show the top rated images and most viewed images in the gallery index.

4. Option to show 'User albums' on the gallery index instead of 'General Albums'.

Other Requests

1. Correct the link tree so that it includes the user album of the picture you are viewing.

2. Allow User Albums to be moved into General Albums. That way you can better organise everything, like have each general album represent a year, and inside you have all the user albums that are relevant to that year. (Big ask, might as well mention though)

3. Fix issue with .zip files not unloading pictures into the gallery (been reported by lots of people now, including myself).

4. When an unapproved album is submitted or an image/comment is reported, have it send out a notification to the moderators in the same way the SMF "Report to moderator" feature does currently.

5. Don't show 'Mass Upload' button to the admin when he is unable to use it on User Albums he does not own.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Özgür on February 25, 2009, 06:52:47 AM
I think this is necessary only..
QuoteWhen an unapproved album is submitted and/or an image/comment is reported, have it send out a notification to the moderators in the same the SMF "Report to moderator" feature does currently.

I have a small suggestion. Album index and item page meta description (<meta desc=>) should be album description and item description.

And I like media.noisen.com new style. Its very nice look in ie6-7/ff/opera/chrm..
Small question. media.noisen.com mp3player  gonna be in the new version? Or    
Is it just there will be special.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on February 25, 2009, 07:37:04 AM
Quote from: Özgür´ on February 25, 2009, 06:52:47 AM
And I like media.noisen.com new style. Its very nice look in ie6-7/ff/opera/chrm..
Yeah but I still haven't figured out a few things...
- Do I show everything in one "block", as in SMF Gallery, i.e. no border around thumbnail boxes, they're all together with one single-color background?
- Do I use one table per thumbnail box, or one table for all thumbnail boxes in a block? (The current SMG uses one div per thumbnail box, the current Noisen uses one table for all boxes) --> All in all, using one table per box will make the boxes behave like in SMG 1.5, with its pros and cons. Using one table for all is better overall, but you need to specify how many items you want per line, which might break your layout if you take something too large.
Etc...

QuoteSmall question. media.noisen.com mp3player  gonna be in the new version? Or Is it just there will be special.
No, it'll be in the next version. It's actually a customized JW Player. I decided to use it for two reasons: (1) the release of Flash 10 fixed all issues that JW Player had when playing mp3 files with weird encoding/bitrates/frequency, (2) version 4.3 (released after SMG 1.5 was developed) reintroduces a feature that was only in early JW Player versions: saving the current volume in a cookie. Which is definitely *great* when you browse through many sound files and you want them all to be at minimum or maximum volume.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Özgür on February 25, 2009, 08:04:27 AM
Quote
- Do I show everything in one "block", as in SMF Gallery, i.e. no border around thumbnail boxes, they're all together with one single-color background?
Actually I think that this is not very important.
Because we'll be able to remove css with background and border. No significant differences between the two I think. So I have no idea about it.

Quote- Do I use one table per thumbnail box, or one table for all thumbnail boxes in a block? (The current SMG uses one div per thumbnail box, the current Noisen uses one table for all boxes) --> All in all, using one table per box will make the boxes behave like in SMG 1.5, with its pros and cons. Using one table for all is better overall, but you need to specify how many items you want per line, which might break your layout if you take something too large.

I think that would be better is in the form of tables.   
- these problems do not look different browsers. (I hate ie(especially 6) but many users used this..)
- choose how many items in each line can be very good.
- And i don't like semantic codes.. =)

Quote
No, it'll be in the next version.
This super news.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on February 26, 2009, 04:57:56 PM
How can I delete an album server side (as in not via the forum) ?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on February 26, 2009, 09:13:19 PM
I have a member who sees the gallery perfectly but when they go to upload they use the mass upload, select the files and then once they click "upload" nothing happens. It just sits there.

Please help me.

I actually have a couple who have the same problem. They can select the files to mass upload but when they hit upload nothing happens.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on February 26, 2009, 09:23:06 PM
Quote from: Harvester on February 26, 2009, 09:13:19 PM
I have a member who sees the gallery perfectly but when they go to upload they use the mass upload, select the files and then once they click "upload" nothing happens. It just sits there.

Please help me.

Open up a note pad. Place the following code in it:
SecFilterEngine Off
SecFilterScanPOST Off


save the file as ".htaccess"

Upload it to your forum root.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on February 26, 2009, 09:34:20 PM
I was hopeful and tried the .htaccess file but once it was placed in the root directory of my forums everyone got a 500 error and couldnt reach my site any longer.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on February 26, 2009, 09:36:21 PM
Odd. Was it just a regular user or everyone having the mass upload problem?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on February 26, 2009, 09:40:03 PM
They are global moderators who are having this problem... I have tried it on both my laptop and my pc... as global mod and as admin and it works fine for me. I have also used both IE and FIrefox and it works for me too.

I have the global mods permissions set with a check in everything but moderate gallery, administrate gallery and create user gallery and autoapprove usergallery.   

Is there some sort of flash or java update they need? could it be firewall related? or something of the like... I find it odd that it works fine for me on all my pcs but not for these two members.... Ive been trying to find out how it works from more members but its kind of late and I cant get in touch with many at the moment.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on February 26, 2009, 09:45:58 PM
Quote from: Harvester on February 26, 2009, 09:40:03 PM
They are global moderators who are having this problem... I have tried it on both my laptop and my pc... as global mod and as admin and it works fine for me. I have also used both IE and FIrefox and it works for me too.

I have the global mods permissions set with a check in everything but moderate gallery, administrate gallery and create user gallery and autoapprove usergallery.  

Is there some sort of flash or java update they need? could it be firewall related? or something of the like... I find it odd that it works fine for me on all my pcs but not for these two members.... Ive been trying to find out how it works from more members but its kind of late and I cant get in touch with many at the moment.

I would find out if they have something in common and focus on that. Operating system, browser, security software, networking hardware, isp, etc...
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on February 26, 2009, 09:50:35 PM
got a 3rd member to try it for me.. he too cant upload... status bars sit at 0%  he is running vista 64bit.. he is going to try it on his laptop wich is reg vista
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on February 26, 2009, 09:53:10 PM
Quote from: Harvester on February 26, 2009, 09:50:35 PM
got a 3rd member to try it for me.. he too cant upload... status bars sit at 0%  he is running vista 64bit.. he is going to try it on his laptop wich is reg vista

I'm running vista ultimate x64 myself.. any problem I had was fixed by the .htaccess file and was irrelevant to my os.

Also when you test the mass upload, are you selecting more than 1 file to test with?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on February 26, 2009, 10:07:56 PM
ok they all can all upload a single file.. but mass upload doesnt work. clicking the upload button doesnt do anything when they try mass upload.. and yes they are using a couple files at a time when using mass upload

Its almost as if the "upload" button isnt even functioning.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on February 26, 2009, 10:10:54 PM
I'm not sure really... Have Nao take a look.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on February 27, 2009, 03:02:14 AM
Again--- Mass upload problems:

1/ Does the upload even START? Yes-- See 2. No-- See a & b.
    a- is Flash + Javascript enabled at all? Yes--continue. No--enable them.
    b- do you use different domains/subdomains? No--no luck. Yes--use the crossdomain.xml method.
2/ Does the upload start but stall at 100%
- try the mod_security fix. If it doesn't work--no luck.

In this case, it's (1), and I guess solution b. So it's a 1b -> crossdomain.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: wilsy on February 27, 2009, 04:54:01 AM
Quote from: Harvester on February 26, 2009, 09:34:20 PM
I was hopeful and tried the .htaccess file but once it was placed in the root directory of my forums everyone got a 500 error and couldnt reach my site any longer.

Lol, me too.

This was working fine for me as well on a previous version of the gallery.

This will get sorted, mine is on a test site and theres quite a bit of time before it goes live so no rush for me.  IMO it's well worth waiting for.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: wilsy on February 27, 2009, 05:07:02 AM
Quote from: wilsy on February 27, 2009, 04:54:01 AM
Quote from: Harvester on February 26, 2009, 09:34:20 PM
I was hopeful and tried the .htaccess file but once it was placed in the root directory of my forums everyone got a 500 error and couldnt reach my site any longer.

Lol, me too.

This was working fine for me as well on a previous version of the gallery.

This will get sorted, mine is on a test site and theres quite a bit of time before it goes live so no rush for me.  IMO it's well worth waiting for.

This was my situation: -

1/ Does the upload even START? No-- See a & b.
    a- is Flash + Javascript enabled at all? Yes--continue
    b- do you use different domains/subdomains? No--no luck.

I just stopped by at Nao and Dragooons site and there was a post there from someone who altered his settings in SMF from http://www.yoursite.com/forum to http://yoursite.com/forum and the mass upload started working.

I thought it sounded a bit odd but tried it on mine. Mine was actually set at http://yoursite.com/forum which was the reverse of the OP's situation but changed mine to http://www.yoursite.com/forum and yes, you've guessed it - problem solved!! ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: micky_2556 on February 27, 2009, 05:31:00 AM


Posts: 68


View Profile Online
   
   
Re: SMF Media Gallery (SMG) - 1.5.5 released
« Reply #2643 on: February 22, 2009, 09:51:40 AM »
   
Reply with quoteQuote Modify messageModify Remove this messageRemove
hello

i have this problem with smf media gallery

i have smf version 2

and i have the problem

whan i upload on it

it givw that error


Wrong value type sent to the database. Array of integers expected. (items)
Function: MGal_MultiUpload2
Apply Filter: Only show the errors from this file
File:.../Sources/MGallery-Sub.php
Line: 1418

what can i do to solve that
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on February 27, 2009, 09:56:14 AM
Nao, any idea when you might have a new release with some of the stuff you are working on? A couple of weeks, a couple of months?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on February 27, 2009, 10:13:21 AM
by crossdomain what do you mean? I have my site at www.mysite.com/forums/  and I have my gallery installed in the default directory from that point. I dont believe I am using different domains/subdomains unless I am misunderstanding what you are calling crossdomain.

Quote from: Nao 尚 on February 27, 2009, 03:02:14 AM
Again--- Mass upload problems:

1/ Does the upload even START? Yes-- See 2. No-- See a & b.
    a- is Flash + Javascript enabled at all? Yes--continue. No--enable them.
    b- do you use different domains/subdomains? No--no luck. Yes--use the crossdomain.xml method.
2/ Does the upload start but stall at 100%
- try the mod_security fix. If it doesn't work--no luck.

In this case, it's (1), and I guess solution b. So it's a 1b -> crossdomain.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on February 27, 2009, 10:52:43 AM
Quote from: wilsy on February 27, 2009, 05:07:02 AM
1/ Does the upload even START? No-- See a & b.
    a- is Flash + Javascript enabled at all? Yes--continue
    b- do you use different domains/subdomains? No--no luck.

I thought it sounded a bit odd but tried it on mine. Mine was actually set at http://yoursite.com/forum which was the reverse of the OP's situation but changed mine to http://www.yoursite.com/forum and yes, you've guessed it - problem solved!! ;)
Just like I said--- different subdomains ;) ("www" and empty subdomain.)

@mark> I don't know... I'm quite busy on Aeva right now so I won't get back on SMG before next week or the week after. Don't expect any major update until mid-March, really.

@Harvester> Really... Do a search!!
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on February 27, 2009, 11:56:24 AM
ok.. then i am not using any different domains or subdomains... so why would crossdomain help me?

Also, it works perfectly on my two PCs.. I can mass upload all day long.

It just seems to be a few members that cant... I have asked 5 members to test it out and out of those 5... 5 cant do mass upload...

one of them reinstalled Java but it didnt help her. I have flash banners on my site and they can all see those.. so I assumed that they have flash enabled.

do you think its java related?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on February 27, 2009, 11:58:33 AM
I have a few general questions about this mod also...

max album size... I am assuming the number in the settings is bytes... how large can this number safely be? also, the amount of files in an album... how large can this safely be. Can I set this to a few hundred and be good?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Joe N on February 27, 2009, 11:59:06 AM
Hi

I am using smf 1.1.8.

Which would be the best one for me?

SMFMediaGallery-1.5.3.zip (488KB) [474] 
SMFMediaGallery-1.5.4.zip (488KB) [1164] 
SMFMediaGallery-1.5.5.zip
SMFMediaGallery-1.5.1.zip (486KB) [503] 
SMFMediaGallery-1.5.2.zip (511KB) [832]

Thanks
Joe
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on February 27, 2009, 12:01:50 PM
Quote from: WBA Dude on February 27, 2009, 11:59:06 AM
Hi

I am using smf 1.1.8.

Which would be the best one for me?

SMFMediaGallery-1.5.3.zip (488KB) [474] 
SMFMediaGallery-1.5.4.zip (488KB) [1164] 
SMFMediaGallery-1.5.5.zip
SMFMediaGallery-1.5.1.zip (486KB) [503] 
SMFMediaGallery-1.5.2.zip (511KB) [832]

Thanks
Joe

1.5.5 Seeing as it's the newest version with the most bug fixes lol. Look on the mod page and it shows you that it's compatible with smf1.1.8 .
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on February 27, 2009, 12:03:52 PM
Harvester, don't you think it would help if you posted the link to your mass upload page...?
That way, we can debug the javascript calls...

Also, did you give the proper rights to their membergroups?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Joe N on February 27, 2009, 12:06:15 PM
Quote from: LinK187 on February 27, 2009, 12:01:50 PM
Quote from: WBA Dude on February 27, 2009, 11:59:06 AM
Hi

I am using smf 1.1.8.

Which would be the best one for me?

SMFMediaGallery-1.5.3.zip (488KB) [474] 
SMFMediaGallery-1.5.4.zip (488KB) [1164] 
SMFMediaGallery-1.5.5.zip
SMFMediaGallery-1.5.1.zip (486KB) [503] 
SMFMediaGallery-1.5.2.zip (511KB) [832]

Thanks
Joe

1.5.5 Seeing as it's the newest version with the most bug fixes lol. Look on the mod page and it shows you that it's compatible with smf1.1.8 .

Yes it is!
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on February 27, 2009, 12:29:20 PM
Quote from: Nao 尚 on February 27, 2009, 12:03:52 PM
Harvester, don't you think it would help if you posted the link to your mass upload page...?
That way, we can debug the javascript calls...

Also, did you give the proper rights to their membergroups?

here is where they are accessing the mass upload  http://thebassholes.com/e107_plugins/smf/smf.php?action=mgallery;sa=album;id=2

Would it help if I PMd you my sites address and admin login information so you could see if I am doing something wrong?

Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Joe N on February 27, 2009, 12:31:30 PM
Hi

I installed all the versions of it but this happened

Installations actions for "SMF Media Gallery":
Installing this package will perform the following actions:
Type   Action   Description
1.   Execute Code   db_mgallery.php   
2.   Execute Modification   ./index.php   Test successful
3.   Execute Modification   ./Sources/Subs.php   Test successful
4.   Execute Modification   ./Sources/Load.php   Test successful
5.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
6.   Execute Modification   ./Themes/default/index.template.php   Test failed
7.   Execute Modification   ./Sources/Who.php   Test successful
8.   Execute Modification   ./Sources/Profile.php   Test successful
9.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful
10.   Execute Modification   ./Themes/default/languages/Modifications.english-utf8.php   Skipping file
11.   Execute Modification   ./Themes/default/languages/Modifications.french.php   Skipping file
12.   Extract Tree   ./Sources   
13.   Extract Tree   ./Themes   
14.   Extract Tree   ./mgal_data   
15.   Extract File   ./MGalleryItem.php

What should I do?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on February 27, 2009, 12:33:00 PM
Quote from: WBA Dude on February 27, 2009, 12:31:30 PM
Hi

I installed all the versions of it but this happened

Installations actions for "SMF Media Gallery":
Installing this package will perform the following actions:
Type   Action   Description
1.   Execute Code   db_mgallery.php   
2.   Execute Modification   ./index.php   Test successful
3.   Execute Modification   ./Sources/Subs.php   Test successful
4.   Execute Modification   ./Sources/Load.php   Test successful
5.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
6.   Execute Modification   ./Themes/default/index.template.php   Test failed
7.   Execute Modification   ./Sources/Who.php   Test successful
8.   Execute Modification   ./Sources/Profile.php   Test successful
9.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful
10.   Execute Modification   ./Themes/default/languages/Modifications.english-utf8.php   Skipping file
11.   Execute Modification   ./Themes/default/languages/Modifications.french.php   Skipping file
12.   Extract Tree   ./Sources   
13.   Extract Tree   ./Themes   
14.   Extract Tree   ./mgal_data   
15.   Extract File   ./MGalleryItem.php

What should I do?

Procede and then manually edit the index.template.php using the parser on the mod page.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Joe N on February 27, 2009, 12:42:07 PM
Quote from: LinK187 on February 27, 2009, 12:33:00 PM
Quote from: WBA Dude on February 27, 2009, 12:31:30 PM
Hi

I installed all the versions of it but this happened

Installations actions for "SMF Media Gallery":
Installing this package will perform the following actions:
Type   Action   Description
1.   Execute Code   db_mgallery.php   
2.   Execute Modification   ./index.php   Test successful
3.   Execute Modification   ./Sources/Subs.php   Test successful
4.   Execute Modification   ./Sources/Load.php   Test successful
5.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
6.   Execute Modification   ./Themes/default/index.template.php   Test failed
7.   Execute Modification   ./Sources/Who.php   Test successful
8.   Execute Modification   ./Sources/Profile.php   Test successful
9.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful
10.   Execute Modification   ./Themes/default/languages/Modifications.english-utf8.php   Skipping file
11.   Execute Modification   ./Themes/default/languages/Modifications.french.php   Skipping file
12.   Extract Tree   ./Sources   
13.   Extract Tree   ./Themes   
14.   Extract Tree   ./mgal_data   
15.   Extract File   ./MGalleryItem.php

What should I do?

Procede and then manually edit the index.template.php using the parser on the mod page.

Whats the parser?



Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on February 27, 2009, 12:45:00 PM
Quote from: WBA Dude on February 27, 2009, 12:42:07 PM
Quote from: LinK187 on February 27, 2009, 12:33:00 PM
Quote from: WBA Dude on February 27, 2009, 12:31:30 PM
Hi

I installed all the versions of it but this happened

Installations actions for "SMF Media Gallery":
Installing this package will perform the following actions:
Type   Action   Description
1.   Execute Code   db_mgallery.php   
2.   Execute Modification   ./index.php   Test successful
3.   Execute Modification   ./Sources/Subs.php   Test successful
4.   Execute Modification   ./Sources/Load.php   Test successful
5.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
6.   Execute Modification   ./Themes/default/index.template.php   Test failed
7.   Execute Modification   ./Sources/Who.php   Test successful
8.   Execute Modification   ./Sources/Profile.php   Test successful
9.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful
10.   Execute Modification   ./Themes/default/languages/Modifications.english-utf8.php   Skipping file
11.   Execute Modification   ./Themes/default/languages/Modifications.french.php   Skipping file
12.   Extract Tree   ./Sources   
13.   Extract Tree   ./Themes   
14.   Extract Tree   ./mgal_data   
15.   Extract File   ./MGalleryItem.php

What should I do?

Procede and then manually edit the index.template.php using the parser on the mod page.

Whats the parser?

http://custom.simplemachines.org/mods/index.php?action=parse
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Joe N on February 27, 2009, 12:45:26 PM
Quote from: LinK187 on February 27, 2009, 12:45:00 PM
Quote from: WBA Dude on February 27, 2009, 12:42:07 PM
Quote from: LinK187 on February 27, 2009, 12:33:00 PM
Quote from: WBA Dude on February 27, 2009, 12:31:30 PM
Hi

I installed all the versions of it but this happened

Installations actions for "SMF Media Gallery":
Installing this package will perform the following actions:
Type   Action   Description
1.   Execute Code   db_mgallery.php   
2.   Execute Modification   ./index.php   Test successful
3.   Execute Modification   ./Sources/Subs.php   Test successful
4.   Execute Modification   ./Sources/Load.php   Test successful
5.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
6.   Execute Modification   ./Themes/default/index.template.php   Test failed
7.   Execute Modification   ./Sources/Who.php   Test successful
8.   Execute Modification   ./Sources/Profile.php   Test successful
9.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful
10.   Execute Modification   ./Themes/default/languages/Modifications.english-utf8.php   Skipping file
11.   Execute Modification   ./Themes/default/languages/Modifications.french.php   Skipping file
12.   Extract Tree   ./Sources   
13.   Extract Tree   ./Themes   
14.   Extract Tree   ./mgal_data   
15.   Extract File   ./MGalleryItem.php

What should I do?

Procede and then manually edit the index.template.php using the parser on the mod page.

Whats the parser?

http://custom.simplemachines.org/mods/index.php?action=parse

That link doesn't work
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on February 27, 2009, 12:45:57 PM
Quote from: WBA Dude on February 27, 2009, 12:45:26 PM
Quote from: LinK187 on February 27, 2009, 12:45:00 PM
Quote from: WBA Dude on February 27, 2009, 12:42:07 PM
Quote from: LinK187 on February 27, 2009, 12:33:00 PM
Quote from: WBA Dude on February 27, 2009, 12:31:30 PM
Hi

I installed all the versions of it but this happened

Installations actions for "SMF Media Gallery":
Installing this package will perform the following actions:
Type   Action   Description
1.   Execute Code   db_mgallery.php   
2.   Execute Modification   ./index.php   Test successful
3.   Execute Modification   ./Sources/Subs.php   Test successful
4.   Execute Modification   ./Sources/Load.php   Test successful
5.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
6.   Execute Modification   ./Themes/default/index.template.php   Test failed
7.   Execute Modification   ./Sources/Who.php   Test successful
8.   Execute Modification   ./Sources/Profile.php   Test successful
9.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful
10.   Execute Modification   ./Themes/default/languages/Modifications.english-utf8.php   Skipping file
11.   Execute Modification   ./Themes/default/languages/Modifications.french.php   Skipping file
12.   Extract Tree   ./Sources   
13.   Extract Tree   ./Themes   
14.   Extract Tree   ./mgal_data   
15.   Extract File   ./MGalleryItem.php

What should I do?

Procede and then manually edit the index.template.php using the parser on the mod page.

Whats the parser?

http://custom.simplemachines.org/mods/index.php?action=parse

That link doesn't work

Goto the mod page and chose manual install instructions for 1.1.8 .
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Özgür on February 27, 2009, 12:48:10 PM
Please do not quote all messages :/
No need to use half a page for single-line message =)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on February 27, 2009, 01:12:25 PM
Wow, a pyramid...
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: jmil on February 27, 2009, 02:55:01 PM

I have a couple requests for assitance and I did a complete search of the Thread first.

1. Is there a way to make the Albums Horizontal rather than Vertical. Say 3 Albums to a line?

2. How can I incorporate a Random Picture PHP Line for Simple Portal?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Kindred on February 27, 2009, 04:38:36 PM
I've posted ezportal code over on smf-media...    thayt should also work in simpleportal.

As for changing the layout, you will have to modify the template.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: jmil on February 27, 2009, 05:20:30 PM
Thanks Kindred - I will look it up. AS for changing the Template - I can do that - Just not sure where to start at LOL. Some hacking It is I guess unless someone else has tried!
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Jim_W08 on February 27, 2009, 06:11:26 PM
I have 1.5.5 installed no problems, tried uploading small avi file with non standard resolution 532x297 and it gave this error ..

Fatal error: Call to a member function getWidth() on a non-object in /home/forum/Sources/Subs-MGallery.php on line 1867

Any ideas why this might be?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on February 27, 2009, 11:54:16 PM
Can I have that AVI file? You can e-mail me(See my profile).
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: jaru on February 28, 2009, 02:12:48 PM
I don't know if this was reported before but I was having a problem with an specific user who was unable to upload images to his user created galleries.
I suspected it was something he was uploading, maybe the avatar or something, and when I tried to delete his album ALL MY mgal_data folder was deleted, all the pictures of my users!
I was lucky I had a backup of that, only a couple of new albums were lost.
then I discovered that when that user created al album, in the server the folder was not getting created, so that is why it was giving pictures upload errors, and then I discovered that this whole problem might have to do with the Album name.

the album was something like this:    user / vacations

I think that "/" with the spaces was giving the error and that is why the folder was not getting created on the server and that is why when I tried to delete the album all my mga-data folder got deleted.
I am using SMG-1.5.3 and the mgal_data and all its contents have 777 permissions

do you have any idea how to correct or prevent this?



by the way, I had the error of the folder icon not showing up on the albums with no custom icon, and I corrected it following this information:
http://www.simplemachines.org/community/index.php?topic=260821.msg1934021#msg1934021 (http://www.simplemachines.org/community/index.php?topic=260821.msg1934021#msg1934021)
thank you for the tip
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on February 28, 2009, 10:25:34 PM
You really should upgrade to 1.5.5. It has better stability over that folder issue.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on February 28, 2009, 10:43:56 PM
Dragoon, is it possible for me to delete an album server side. Like without loging into the forum.

The reason I ask is because on my test forum (http://www.londonbass.com/beta), the first album created can no longer be uploaded to. Produces a contact admin error every time. On my live forum (http://www.londonbass.com), the update works perfect--no problems at all. On my test forum I cannot delete that album, however a new album i created works perfect.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: FireFreezer on March 01, 2009, 08:16:06 AM
Quote from: Modifications.german.php
// SMF Media Gallery extra strings
$txt['mgallery_gallery'] = 'Fotoalbum';
$txt['mgallery_profile_sum'] = 'Inhalt';
$txt['mgallery_view_items'] = 'Dateien ansehen';
$txt['mgallery_view_coms'] = 'Kommentare ansehen';
$txt['mgallery_gotolink'] = 'Mehr Einzelheiten...';
$txt['permissiongroup_mgallery'] = 'SMF Media Gallery';
$txt['permissiongroup_simple_mgallery'] = 'SMF Media Gallery';
$txt['permissionname_mgallery_access'] = 'Zugriff auf Fotoalbum';
$txt['permissionname_mgallery_moderate'] = 'Fotoalbum moderieren';
$txt['permissionname_mgallery_manage'] = 'Fotoalbum administrieren';
$txt['permissionname_mgallery_access_unseen'] = 'Ansicht der neuen Dateien';
$txt['permissionname_mgallery_search'] = 'Suche im Fototalbum';
$txt['permissionname_mgallery_download_item'] = 'Dateien herunterladen';
$txt['permissionname_mgallery_add_user_album'] = 'Anwenderalbum hinzufügen';
$txt['permissionname_mgallery_auto_approve_albums'] = 'Anwenderalben automatisch bestätigen';
$txt['permissionname_mgallery_add_videos'] = 'Videos hinzufügen';
$txt['permissionname_mgallery_add_audios'] = 'Musikdateien hinzufügen';
$txt['permissionname_mgallery_add_images'] = 'Bilder hinzufügen';
$txt['permissionname_mgallery_rate_items'] = 'Dateien bewerten';
$txt['permissionname_mgallery_edit_own_com'] = 'Eigene Kommentare bearbeiten';
$txt['permissionname_mgallery_report_com'] = 'Kommentar melden';
$txt['permissionname_mgallery_edit_own_item'] = 'Eigene Dateien bearbeiten';
$txt['permissionname_mgallery_comment'] = 'Dateien kommentieren';
$txt['permissionname_mgallery_report_item'] = 'Dateien melden';
$txt['permissionname_mgallery_auto_approve_com'] = 'Kommentare automatisch Bestätigen';
$txt['permissionname_mgallery_auto_approve_item'] = 'Dateien automatisch bestätigen';
$txt['permissionname_mgallery_multi_upload'] = 'mehrfaches Hochladen';
$txt['permissionname_mgallery_viewprofile'] = 'Jedes Fotoalbum-Profil ansehen';
$txt['permissionname_mgallery_whoratedwhat'] = 'Ansehen wer wie bewertet hat';
$txt['cannot_mgallery_viewprofile'] = 'Du kannst Fotoalbum-Profile nicht ansehen';
// End SMF Media Gallery strings
Quote from: Modifications.german-utf8.php
// SMF Media Gallery extra strings
$txt['mgallery_gallery'] = 'Fotoalbum';
$txt['mgallery_profile_sum'] = 'Inhalt';
$txt['mgallery_view_items'] = 'Dateien ansehen';
$txt['mgallery_view_coms'] = 'Kommentare ansehen';
$txt['mgallery_gotolink'] = 'Mehr Einzelheiten...';
$txt['permissiongroup_mgallery'] = 'SMF Media Gallery';
$txt['permissiongroup_simple_mgallery'] = 'SMF Media Gallery';
$txt['permissionname_mgallery_access'] = 'Zugriff auf Fotoalbum';
$txt['permissionname_mgallery_moderate'] = 'Fotoalbum moderieren';
$txt['permissionname_mgallery_manage'] = 'Fotoalbum administrieren';
$txt['permissionname_mgallery_access_unseen'] = 'Ansicht der neuen Dateien';
$txt['permissionname_mgallery_search'] = 'Suche im Fototalbum';
$txt['permissionname_mgallery_download_item'] = 'Dateien herunterladen';
$txt['permissionname_mgallery_add_user_album'] = 'Anwenderalbum hinzuf&#252;gen';
$txt['permissionname_mgallery_auto_approve_albums'] = 'Anwenderalben automatisch best&#227;tigen';
$txt['permissionname_mgallery_add_videos'] = 'Videos hinzuf&#252;gen';
$txt['permissionname_mgallery_add_audios'] = 'Musikdateien hinzuf&#252;gen';
$txt['permissionname_mgallery_add_images'] = 'Bilder hinzuf&#252;gen';
$txt['permissionname_mgallery_rate_items'] = 'Dateien bewerten';
$txt['permissionname_mgallery_edit_own_com'] = 'Eigene Kommentare bearbeiten';
$txt['permissionname_mgallery_report_com'] = 'Kommentar melden';
$txt['permissionname_mgallery_edit_own_item'] = 'Eigene Dateien bearbeiten';
$txt['permissionname_mgallery_comment'] = 'Dateien kommentieren';
$txt['permissionname_mgallery_report_item'] = 'Dateien melden';
$txt['permissionname_mgallery_auto_approve_com'] = 'Kommentare automatisch Best&#227;tigen';
$txt['permissionname_mgallery_auto_approve_item'] = 'Dateien automatisch best&#227;tigen';
$txt['permissionname_mgallery_multi_upload'] = 'mehrfaches Hochladen';
$txt['permissionname_mgallery_viewprofile'] = 'Jedes Fotoalbum-Profil ansehen';
$txt['permissionname_mgallery_whoratedwhat'] = 'Ansehen wer wie bewertet hat';
$txt['cannot_mgallery_viewprofile'] = 'Du kannst Fotoalbum-Profile nicht ansehen';
// End SMF Media Gallery strings
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: naturalwoman on March 01, 2009, 08:26:58 AM
Could not find the gallery installation

this is the message i get when i add the block for smf gallery. i installed everything correctly

http://valeriemorrison.net/messageboards/

how do i get a random picture to show up. i marked the gallery for guest viewing. thanks. i'm loving the portal so far

EDIT
I was not using smf lite, but smf media gallery version. it's working now with my portal. i won't bother converting if that's at all possible.   thanks. resolved.

Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on March 01, 2009, 10:32:58 AM
FireFreezer: Why do you use entities in a utf-8 file? You really don't have to use entities at all.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 01, 2009, 11:24:31 AM
It would seem that this originally came from a developer's lack of thorough knowledge about encoding several years ago (which can be understandable -- even PHP 5 isn't too good at handling UTF8), and no one cared to question the established routine after that.

So, until a few months ago, this was SMF's recommended way of doing this, even for non-UTF8 files, as long as anything wasn't in the basic 128 first characters of the ASCII code. I think it helped that I practically forced my French update (including accented characters) onto them eheh.

I would however recommend being careful with some characters. For instance, my website uses ISO-8859-15 which has support for the € character. But the default French language files are in ISO-8859-1. In a case such as this one, € should be encoded as &euro; to make sure everything works. (This is from memory, so I can't assure you it's completely true.)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on March 01, 2009, 11:33:38 AM
Well, all language packs (western at least) are using the same method. So it should work.

I made several translation packages for several mods as you know, and complete SMF 1.1.4-> as well as 2.0 without the use of entities, except where SMF (Compuart) specifies we should do it. No errors at all.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: FireFreezer on March 01, 2009, 11:36:24 AM
Quote from: akyhne on March 01, 2009, 10:32:58 AMFireFreezer: Why do you use entities in a utf-8 file? You really don't have to use entities at all.

well... i had problems in past without using entities and seen that others using them too... since then i'm using them to be SURE to get the right result.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 01, 2009, 11:56:52 AM
Quote from: akyhne on March 01, 2009, 11:33:38 AM
I made several translation packages for several mods as you know, and complete SMF 1.1.4-> as well as 2.0 without the use of entities, except where SMF (Compuart) specifies we should do it. No errors at all.
Actually, and IIRC, accented characters can be used even in these places ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Stef001 on March 01, 2009, 03:28:49 PM
Hello,

Thanks for this great gallery.
I have one question.
I have two forums and chaired the members tables.
I have at forum1 the gallery.
Is it possible to have the same gallery at forum two.
So that when i post any picture in forum2, that its also posted in forum1.
And the same when i post any picture in forum1 that its also posted in forum2.

Thanks.

Stef.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 01, 2009, 04:28:50 PM
How do you share the members table in the first place?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on March 01, 2009, 04:52:06 PM
Nao, did you see the request list I posted a few days ago or did you choose to ignore it?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Stef001 on March 01, 2009, 04:58:39 PM
Quote from: Nao 尚 on March 01, 2009, 04:28:50 PM
How do you share the members table in the first place?

I have changed in forum2 in Sources the {db_prefix}members in smf_members

I did that for more tables.

Stef.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 01, 2009, 04:59:19 PM
Lol mark, I'm not sure I like that tone of yours..... Especially when I *did* reply O:)

@Normally> and it actually works?! lol²...
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Stef001 on March 01, 2009, 05:21:00 PM
Quote from: Nao 尚 on March 01, 2009, 04:59:19 PM
@Normally> and it actually works?! lol²...

Yes it works, the users can switch between the forums, no problem.
Is it possible to doe the same for the gallery?

Stef.

Update:
I have chaired the database tables the same way.
Installed the gallery on the second forum.
changed in admin the Data directory path to the first forum and it work like a charmed.

Perfect.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on March 01, 2009, 06:28:33 PM
Quote from: Nao 尚 on March 01, 2009, 04:59:19 PM
Lol mark, I'm not sure I like that tone of yours..... Especially when I *did* reply O:)
No tone intended, just an innocent question. I still can't see where you acknowledged the list I posted, sorry if I'm going blind.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 01, 2009, 11:33:29 PM
ok LOVE this mod BUT I just checked my forum error log and i have 11,000+ PAGES of errors and 99.99% of those pages are from this mod.

The errors all look like this:

Quote
8: Undefined index: mgal_total_comments
File: /home1/thebassh/public_html/bassin-forums/Sources/Load.php
Line: 1114

and this:

Quote
8: Undefined index: mgal_total_items
File: /home1/thebassh/public_html/bassin-forums/Sources/Load.php
Line: 1113


Please help right away.

thank you
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 02, 2009, 03:50:14 AM
You seem to missing an edit in Load.php. Modify it to make sure it has all the edits.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 02, 2009, 04:20:49 AM
Quote from: mark7144 on March 01, 2009, 06:28:33 PM
Quote from: Nao 尚 on March 01, 2009, 04:59:19 PM
Lol mark, I'm not sure I like that tone of yours..... Especially when I *did* reply O:)
No tone intended, just an innocent question. I still can't see where you acknowledged the list I posted, sorry if I'm going blind.

Found it.

No time to deal with SMG now.

And let's be clear: how can you expect me to read a list that you *edited in* one hour after you posted a short message? It's not like some warning message is going to appear to me saying, "Hey Nao! You should read back that message from last page! Mark added some stuff in it, and he wants you to read it!!"
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 02, 2009, 10:58:52 AM
Quote from: Dragooon on March 02, 2009, 03:50:14 AM
You seem to missing an edit in Load.php. Modify it to make sure it has all the edits.

Originally I used the parser on the mods page on the mod site to edit the file so I was pretty sure that all the edits were in the file Load.php that should be in it. However, I know I have made stupid mistakes in the past so I double checked the file to see if it had all the edits in should. It does. Every edit that should be in it is.

The only difference I saw was the spacing of code in the area that mem.lastLogin, mem.karmaGood, mem.mgal_total_items, mem.mgal_total_comments,   gets placed. There is a whole paragraph of mem. items. does spacing matter there?


also it looks like my code is doubled in one area...

if ($set == 'normal')
{
$select_columns = "
IFNULL(lo.logTime, 0) AS isOnline, IFNULL(a.ID_ATTACH, 0) AS ID_ATTACH, a.filename, a.attachmentType, mem.referrals_no, mem.referrals_hits, mem.referred_by, mem.referred_on,
mem.signature, mem.personalText, mem.location, mem.gender, mem.avatar, mem.ID_MEMBER, mem.memberName,
mem.realName, mem.emailAddress, mem.hideEmail, mem.dateRegistered, mem.websiteTitle, mem.websiteUrl,
mem.birthdate, mem.memberIP, mem.memberIP2, mem.ICQ, mem.AIM, mem.YIM, mem.MSN, mem.posts, mem.lastLogin,
mem.karmaGood, mem.ID_POST_GROUP, mem.karmaBad, mem.lngfile, mem.ID_GROUP, mem.timeOffset, mem.showOnline,
mem.buddy_list, mg.onlineColor AS member_group_color, IFNULL(mg.groupName, '') AS member_group,
pg.onlineColor AS post_group_color, IFNULL(pg.groupName, '') AS post_group, mem.is_activated, mem.money,
IF(mem.ID_GROUP = 0 OR mg.stars = '', pg.stars, mg.stars) AS stars" . (!empty($modSettings['titlesEnable']) ? ',
mem.usertitle' : '');
$select_tables = "
LEFT JOIN {$db_prefix}log_online AS lo ON (lo.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}attachments AS a ON (a.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}membergroups AS pg ON (pg.ID_GROUP = mem.ID_POST_GROUP)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = mem.ID_GROUP)";
}
elseif ($set == 'profile')
{
$select_columns = "
IFNULL(lo.logTime, 0) AS isOnline, IFNULL(a.ID_ATTACH, 0) AS ID_ATTACH, a.filename, a.attachmentType, mem.referrals_no, mem.referrals_hits, mem.referred_on, mem.referred_by,
mem.signature, mem.personalText, mem.location, mem.gender, mem.avatar, mem.ID_MEMBER, mem.memberName,
mem.realName, mem.emailAddress, mem.hideEmail, mem.dateRegistered, mem.websiteTitle, mem.websiteUrl,
mem.birthdate, mem.ICQ, mem.AIM, mem.YIM, mem.MSN, mem.posts, mem.lastLogin, mem.karmaGood, mem.mgal_total_items, mem.mgal_total_comments,
mem.karmaBad, mem.memberIP, mem.memberIP2, mem.lngfile, mem.ID_GROUP, mem.ID_THEME, mem.buddy_list, mem.pm_ignore_list,
mem.pm_email_notify, mem.timeOffset" . (!empty($modSettings['titlesEnable']) ? ', mem.usertitle' : '') . ",
mem.timeFormat, mem.secretQuestion, mem.is_activated, mem.additionalGroups, mem.smileySet, mem.showOnline,
mem.totalTimeLoggedIn, mem.ID_POST_GROUP, mem.notifyAnnouncements, mem.notifyOnce, mem.notifySendBody,
mem.notifyTypes, lo.url, mg.onlineColor AS member_group_color, IFNULL(mg.groupName, '') AS member_group,
pg.onlineColor AS post_group_color, IFNULL(pg.groupName, '') AS post_group,
IF(mem.ID_GROUP = 0 OR mg.stars = '', pg.stars, mg.stars) AS stars, mem.money, mem.passwordSalt";
$select_tables = "
LEFT JOIN {$db_prefix}log_online AS lo ON (lo.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}attachments AS a ON (a.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}membergroups AS pg ON (pg.ID_GROUP = mem.ID_POST_GROUP)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = mem.ID_GROUP)";
}



should my code have two of the
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 02, 2009, 11:00:55 AM
didnt finish my reply above because the site just wouldnt cooperate and let me preview or post for a long time... kepttiming out..

anyway....


should there be two identical paragraphs as shown above in my code? or did I somehow get dupe code in there?


I think I found my error... I didnt replace a.filename, a.attachmentType,
with a.filename, a.attachmentType, mem.mgal_total_items, mem.mgal_total_comments, in the load.php file.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 02, 2009, 11:03:42 AM
also, when I link to images from the gallery using either the BBC Embed Code or using the Direct Link inside IMG tags I get some members who cant view the images. They just get red X's

Also, I posted a wmv file to the gallery and then used the BBC Embed Code to place that video into a post. Some could see it, but some had to allow active X and it also seems that firefox users were crashing when they tried to view it.   Any thoughts?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on March 02, 2009, 05:21:51 PM
Quote from: Nao 尚 on March 02, 2009, 04:20:49 AM
And let's be clear: how can you expect me to read a list that you *edited in* one hour after you posted a short message?
Sorry if that is the case but from what I remember, the original contents of that post was my big list, the edit made an hour after was simply a spelling mistake. I don't recall posting anything other than a list, what was the "short message" you are referring to? Maybe that will jog my memory if your recollection is correct.

We are both talking about this post (http://www.simplemachines.org/community/index.php?topic=260821.msg1949852#msg1949852), right?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 02, 2009, 05:30:54 PM
Yes we're talking about that post. And no I never saw it in the first place.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 02, 2009, 11:55:10 PM
Im not understanding what is happening here... I am trying to upload .wmv videos to my gallery. I have the max file size set to 10240kb and my max size of a directory is set to 1000000000 with a max of 400 files allowed.
I have been uploading jpgs averaging between 50 and 700k with no problems. I have also upload several videos that are 1meg or smaller with no problems. Now I am trying to upload two videos   one is just shy of 5meg and one is shy of 3meg but everytime i try to upload them I get "An error happened during the upload process, please try again or contact the administrator. "

I checked, double checked and triple checked my settings but I cant see any setting that may be causing this error. Please help. I have a TON of videos to upload from the recent event I attended and if I cant upload videos of this size I am royally screwed.

Thank you
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on March 03, 2009, 12:09:56 AM
It's likely a limitation set by your host.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 03, 2009, 12:19:10 AM
Quote from: LinK187 on March 03, 2009, 12:09:56 AM
It's likely a limitation set by your host.

I highly doubt that. I have unlimited storage space and unlimited bandwidth. I can upload files of any size to my server without a problem. largest I have uploaded to date has been 500 meg. I wouldnt think a 5 meg file would give me any problems. I will call and check with my host right now though.

I just tried to upload a file 1987kb and it went no problem.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on March 03, 2009, 12:21:44 AM
Quote from: Harvester on March 03, 2009, 12:19:10 AM
Quote from: LinK187 on March 03, 2009, 12:09:56 AM
It's likely a limitation set by your host.

I highly doubt that. I have unlimited storage space and unlimited bandwidth. I can upload files of any size to my server without a problem. largest I have uploaded to date has been 500 meg. I wouldnt think a 5 meg file would give me any problems. I will call and check with my host right now though.

I just tried to upload a file 1987kb and it went no problem.

True, but when you uploaded that 500mb file it was likely via ftp. Through the forum could be interpreted as a different user with different permissions/quotas...
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 03, 2009, 12:24:00 AM
nope just got off phone with host and they say they have no limitations so it is definitely something with the gallery itself.

I have no idea what it could be within the gallery though. I know very little about code. All I know is I definitely need to be able to upload videos of some substantial size to the gallery. I am messing with 5 meg vids now but I have some vids that I know once i edit them and save them they will more than likely be in the area of 25+ megs.

Please help me fix this so the gallery will let me upload large files.

Thank you
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 03, 2009, 12:25:02 AM
Quote from: LinK187 on March 03, 2009, 12:21:44 AM
the forum could be interpreted as a different user with different permissions/quotas...

I dont understand? I will check but how woudl I phrase that question  to my host without them telling me "thats something you need to take up with SMF"
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on March 03, 2009, 12:29:59 AM
Quote from: Harvester on March 03, 2009, 12:25:02 AM
Quote from: LinK187 on March 03, 2009, 12:21:44 AM
the forum could be interpreted as a different user with different permissions/quotas...

I dont understand? I will check but how woudl I phrase that question  to my host without them telling me "thats something you need to take up with SMF"

To be honest, I don't even know if it's a reality. I was just thinking about how executables work in windows, many are run by the system, while others by users. The users and the system have diff permissions. So I surmised that since the forum itself was performing the action, that maybe different permissions apply even tho your host has given your ftp user account unlimited permissions.
I'm really just scrounging for an answer really. Dragoon or Nao would be able to confirm my hypothesis tho...
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 03, 2009, 12:32:12 AM
I am on the phone with my host again now and tehy have found a limit of 2meg in the php.ini they are going to increase it for me. I am hoping thats all it is. I will let you know the outcome. :)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on March 03, 2009, 12:34:51 AM
Quote from: Harvester on March 03, 2009, 12:32:12 AM
I am on the phone with my host again now and tehy have found a limit of 2meg in the php.ini they are going to increase it for me. I am hoping thats all it is. I will let you know the outcome. :)

What did i tell ya :P
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 03, 2009, 12:38:17 AM
Youre the man Link! Thats what it was. They increased the limit in my php.ini to 12megs and my files upload no problem now :D

Thank you very much. :D
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on March 03, 2009, 12:44:44 AM
Quote from: Harvester on March 03, 2009, 12:38:17 AM
Youre the man Link! Thats what it was. They increased the limit in my php.ini to 12megs and my files upload no problem now :D

Thank you very much. :D

If you have unlimited storeage? Why not set it to a ridiculously large size?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 03, 2009, 12:52:27 AM
12 is max in php the woman I spoke to thought. she wasnt really sure so we juststuck with 12 for now.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on March 03, 2009, 12:55:35 AM
Quote from: Harvester on March 03, 2009, 12:52:27 AM
12 is max in php the woman I spoke to thought. she wasnt really sure so we juststuck with 12 for now.

I remember reading something about this many pages back. I find it hard to believe 12mb is the limit. Nao or Dragoon should be able to advise you in more detail.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 03, 2009, 01:38:27 AM
Quote from: LinK187 on March 03, 2009, 12:29:59 AM
To be honest, I don't even know if it's a reality. I was just thinking about how executables work in windows, many are run by the system, while others by users. The users and the system have diff permissions. So I surmised that since the forum itself was performing the action, that maybe different permissions apply even tho your host has given your ftp user account unlimited permissions.
I'm really just scrounging for an answer really. Dragoon or Nao would be able to confirm my hypothesis tho...
I have no idea what you're talking about, lol :D Just woke up.
But I see it was just about the php.ini stuff, not surprising ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: ffingers on March 03, 2009, 01:41:19 AM
please help....

i just switched over hosting....everything was working fine prior to the switch...now, none of my images show up and i am getting the no xxx for xxx error....

i read through and saw the mgallery.php fix but downloaded 1.5.5 which had the fix and i am still getting the error...

i can SEE the files on my host, yet for some reason SMG can't see the files....where do i go next...please...i can't reinstall all the pics i have uploaded as they have come from a wide variety of people...
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 03, 2009, 02:18:48 AM
Quote from: ffingers on March 03, 2009, 01:41:19 AM
i just switched over hosting....everything was working fine prior to the switch...now, none of my images show up and i am getting the no xxx for xxx error....
What?

Quotei can SEE the files on my host, yet for some reason SMG can't see the files....where do i go next...please...i can't reinstall all the pics i have uploaded as they have come from a wide variety of people...
Are you sure the data folder is correctly set in the SMG admin area?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: ffingers on March 03, 2009, 10:56:41 AM
Sorry Nao, was typing late last night...

when i try to regenerate thumbnails...figured i would give that a shot...i get this

QuoteError, file not found! (/home/ffingers/public_html/albums/My_first_bike/Dir_1/8_P0007202_JPGdbcca2c1cae5e1024168cc74f232f929_extjpg)

If i "find errors" i get this...

QuoteThe following errors were discovered when searching for errors

    * The physical file #1564, used with item #535, is missing.

for pretty much every image....

now i have checked to see if the above file path is correct and sure enough, the path is correct AND the file is there...i am completely baffled as to how things aren't showing up...

EDIT: i am pretty handy with mysql so if it's a matter of checking if values changed, let me know, i have no problem hopping into phpmyadmin and checking on values....

the only thing i can think is maybe the counter which i am assuming is the primary id got messed up, but i don't know...
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 03, 2009, 11:19:59 AM
What is the value for Admin > Gallery > Settings > Data directory path? What are the subfolders in your forum's root?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Soms on March 03, 2009, 11:31:43 AM
Please can I get a reply/guidance regarding this? http://www.simplemachines.org/community/index.php?topic=260821.msg1948040#msg1948040
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 03, 2009, 12:24:23 PM
I am not sure if this is already possible or not for 1.1.8 but if it isnt i think it would make a great addition....

RIght now as it is, my users must go to the gallery to see if there are any new images or videos.
I think it would be great if there couldbe some sort of notice about how many new images or videos have been added to the gallery since their last visit or on that day or that week (whichever makes more sense)
I think it would be good if this was uptop next to "read new posts since your last visit" or if it was down below the forum near the calender event section.

Even better i Think would be is if near the calender event section down at the bottom.

I through together a quick illustration of what I am speaking of...

something like this I think would be great. thumbnail size and wording of course are just for the purpose of this example.

Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on March 03, 2009, 12:27:07 PM
Quote from: Harvester on March 03, 2009, 12:24:23 PM
I am not sure if this is already possible or not for 1.1.8 but if it isnt i think it would make a great addition....

RIght now as it is, my users must go to the gallery to see if there are any new images or videos.
I think it would be great if there couldbe some sort of notice about how many new images or videos have been added to the gallery since their last visit or on that day or that week (whichever makes more sense)
I think it would be good if this was uptop next to "read new posts since your last visit" or if it was down below the forum near the calender event section.

Even better i Think would be is if near the calender event section down at the bottom.

I through together a quick illustration of what I am speaking of...

something like this I think would be great. thumbnail size and wording of course are just for the purpose of this example.



I like this idea as well.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on March 03, 2009, 12:50:35 PM
http://smf-media.com/community/index.php?topic=602.0
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on March 03, 2009, 12:56:41 PM
Quote from: akyhne on March 03, 2009, 12:50:35 PM
http://smf-media.com/community/index.php?topic=602.0

I just see talk. No coding instructions or downloads.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 03, 2009, 01:05:07 PM
Quote from: Harvester on March 03, 2009, 12:24:23 PM
I am not sure if this is already possible or not for 1.1.8 but if it isnt i think it would make a great addition....
Well, there's the "unseen" area already.

And as for adding code to the home page: no, no, no and no. We might do it in SMG 2.0 which will be SMF 2.0-only (and SMF 2 allows you to install theme changes automatically in your preferred themes), but not before.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 03, 2009, 01:12:01 PM
Quote from: LinK187 on March 03, 2009, 12:56:41 PM
Quote from: akyhne on March 03, 2009, 12:50:35 PM
http://smf-media.com/community/index.php?topic=602.0

I just see talk. No coding instructions or downloads.

me too.. how do we get this mod of yours. This is exactly what I am looking for I believe.

nevermind I found the download for it here: http://smf-media.com/community/index.php?topic=602.0
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on March 03, 2009, 01:26:40 PM
You have to be logged in to download the file.

Edit: and aparently to see the images.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 03, 2009, 01:27:38 PM
Quote from: akyhne on March 03, 2009, 01:26:40 PM
You have to be logged in to download the file.

Edit: and aparently to see the images.

thank you :D
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on March 03, 2009, 01:31:32 PM
It's just showing the last 7 images, nothing else. Making an unseen list could be hundrets - if not thousends of files depending on peoples last visit.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 03, 2009, 01:44:45 PM
Quote from: akyhne on March 03, 2009, 01:31:32 PM
It's just showing the last 7 images, nothing else. Making an unseen list could be hundrets - if not thousends of files depending on peoples last visit.

Great that will work just fine :D

I know SLeepy has a parser but I will be darned if i can find it. Any idea where it is?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Soms on March 03, 2009, 01:46:37 PM
Quote from: Harvester on March 03, 2009, 01:44:45 PM
I know SLeepy has a parser but I will be darned if i can find it. Any idea where it is?

http://resourcez.biz/PackageParser/index.php
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 03, 2009, 02:03:52 PM
thank you very much for the parser link.

I installed the mod and it works just like I wanted! Great job! thank you all :)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Soms on March 03, 2009, 02:32:35 PM
Quote from: Harvester on March 03, 2009, 02:03:52 PM
thank you very much for the parser link.

No problems. I just hope someone, anyone would answer my question.   :-[
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on March 03, 2009, 02:34:16 PM
Quote from: Harvester on March 03, 2009, 02:03:52 PM
thank you very much for the parser link.

I installed the mod and it works just like I wanted! Great job! thank you all :)

What's the link to it? (if you're referring to the one about showing recent gallery items on front page...)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: ffingers on March 03, 2009, 04:48:22 PM
thanks Nao and Dragoon, i figured it out, it was a combination of both messed up paths and moving of the host...

long story short, it was ALL user error (as it most likely always is)....i thought i had tried the path i had before, but obviously it was one combination i hadn't tried (my new host has a few different ways to designate the SAME path...yeah i know)....

also the images were all trashed, but i hadn't realized that because SMG does not leave the extension as .jpg but rather removes the extension in a way, that FTP clients like mozilla that autodetect whether to use ascii or binary will determine the images to be ascii thus messing up the images...so i transferred them again in binary and now all is well...

sorry for the mix up...it was late last night when i was doing my host transition...
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 04, 2009, 01:28:47 AM
question:

Is there anyway to set it so that I can make it so specific general albums can not be uploaded to by anyone but me or specific user groups? I want my members to be able to upload to all the general albums but a couple of them. Those couple I want only myself and my staff to be able to upload to BUT I want everyone to be able to view those albums and its contents.

Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 04, 2009, 03:29:43 AM
Quote from: Harvester on March 04, 2009, 01:28:47 AM
question:

Is there anyway to set it so that I can make it so specific general albums can not be uploaded to by anyone but me or specific user groups? I want my members to be able to upload to all the general albums but a couple of them. Those couple I want only myself and my staff to be able to upload to BUT I want everyone to be able to view those albums and its contents.


No but I do got plans for per-album permissions.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on March 04, 2009, 10:14:50 AM
Quote from: Dragooon on March 04, 2009, 03:29:43 AM
No but I do got plans for per-album permissions.
Great news :)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 04, 2009, 10:22:34 AM
As for myself, I'm trying to resume work on SMG. It's tough. What I basically want is to be done with all of my thumbnail/preview changes from last month, which I never got to commit because they were flawed. Well, they still are... :(
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on March 04, 2009, 11:54:18 AM
I'm really looking forward to your changes to the gallery home page Nao :D
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 04, 2009, 12:08:12 PM
Well I'm not working on that for now... I want to finish what I started last month, really.

Finally got one through: http://media.noisen.com/item/662/ - http://media.noisen.com/item/671/
As you can see, audio & video items now have a *preview*, in addition to a thumbnail. That means, if you upload a large thumbnail, the thumbnail will be the same size as all other thumbnails, but a full-size version of the thumbnail will also be stored as a preview.

I also fixed a bug where, whenever you would force a new thumbnail manually, the actual physical file for the previous thumbnail wasn't actually deleted. I never noticed that until today :(

Tonight or tomorrow, I will attempt to put an end to my misery regarding the rewriting of the "regenerate" feature. I would like it to stop deleting my custom thumbnails, lol. I thought I'd fixed it, and then I relaunched a regen session and it still disappeared. Eheh.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on March 04, 2009, 01:42:59 PM
Keep us updated, looking forward to the next version, this gallery mod is going to make a big impact on my website when I properly launch it with SSI.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 04, 2009, 05:21:01 PM
Mark, are your Aeva problems fixed? Last time we talked, you had some trouble with it... Didn't you?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on March 04, 2009, 05:51:17 PM
No problems with Aeva... I removed your '| Powered by Aeva' and manually put "Video embedding by AEVA" in the footer. I don't like the idea that your mod could do something to my SSI website. That's not a complaint, just prefer to have more control.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 05, 2009, 01:42:59 AM
I truly love this mod! It installed easily and it works flawlessly. Ever since I installed it in my 1.1.8 I have done nothing but play with it.

This mod goes perfectly with it too: http://smf-media.com/community/index.php?topic=602.0   You wont see the download link though unless you register and login. The mod is literally two lines of code added to your theme index.template.php and a single file uploaded to your source directory.

Great job Nao and Dragoon. Thank you for this excellent mod!
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 05, 2009, 02:02:02 AM
Quote from: mark7144 on March 04, 2009, 05:51:17 PM
No problems with Aeva... I removed your '| Powered by Aeva' and manually put "Video embedding by AEVA" in the footer. I don't like the idea that your mod could do something to my SSI website. That's not a complaint, just prefer to have more control.
You didn't ask for permission to do the changes, AFAIK. Then that's a breach of licence. And the copyright note MUST be on all pages that use Aeva, even SSI.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on March 05, 2009, 04:04:34 AM
Quote from: Nao 尚 on March 05, 2009, 02:02:02 AM
Quote from: mark7144 on March 04, 2009, 05:51:17 PM
No problems with Aeva... I removed your '| Powered by Aeva' and manually put "Video embedding by AEVA" in the footer. I don't like the idea that your mod could do something to my SSI website. That's not a complaint, just prefer to have more control.
You didn't ask for permission to do the changes, AFAIK. Then that's a breach of licence. And the copyright note MUST be on all pages that use Aeva, even SSI.
Speak to my lawyers.

I've put it on my SSI website now ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: asma on March 06, 2009, 12:50:53 AM
Can someone help me..? my gallery link not work see this link

http://snapmalaysia.com/MGalleryItem.php?id=33

My SMF v1.1.8  with default red theme
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: asma on March 06, 2009, 12:53:01 AM
How can i fix this problem..?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 06, 2009, 12:58:21 AM
Why are you bumping your question after 3 minutes?

Make sure MgalleryItem.php is chmodded to 777.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: asma on March 06, 2009, 01:07:18 AM
Have change MgalleryItem.php is chmodded to 777.  And also not work sir...

http://snapmalaysia.com/MGalleryItem.php?id=33
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 06, 2009, 01:11:01 AM
Contact your host, possibly a safe mode issue.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: asma on March 06, 2009, 01:16:57 AM
Thanks dragoon..
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 06, 2009, 05:02:16 AM
Quote from: asma on March 06, 2009, 12:50:53 AM
Can someone help me..? my gallery link not work see this link

http://snapmalaysia.com/MGalleryItem.php?id=33
Try using the [smg] tag instead...
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Propaganistas on March 06, 2009, 10:26:12 AM
Hello,

I just installed SMG, and I love it.
But I've got one problem: thumbnails are not showing up in IE, whilst the the space they are normally displayed is clickable. Viewing an item on its own is working, just the thumbnails seem to not be generated in IE.

Any idea what this is causing?

Thanks in advance,
Propa
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 06, 2009, 01:51:22 PM
hmm

This was working beautifully for me however when I use the img tags around the direct link for images from my gallery in a post they are now showing up as the red x's
Even posts that i made a week ago that were working fine are all now red x's

Im not sure what has changed between now and then. I havent done anything differently. I t ried logging out and back in but that didnt seem to matter.

Pleease help me.

Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 06, 2009, 01:54:41 PM
by the way, smf-id tags seem to work.

I checked the permissions on all the albums and they were 755 so I set them to 777 that didnt seem to matter though.

MGalleryItem is also set to 777

EDIT:  I just tried Firefox and with Firefox there isnt even a red X its just blank with no indication whatsoever that an image should be there.


Contacted host.. Safe Mode is Off

also, checked this on the other 4 computers in my house, and they all are showing same results.

I am completely baffled. This mod was working perfectly a couple days ago and i hadnt changed a thing between then and now.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 06, 2009, 02:39:38 PM
I think I know whats happening.

I have a bridge installed on my site and the bridge changed the main url of my forum... the gallery is ignoring that change and trying to use the non-bridged url and that is causing problems.

I have no clue what to do because the developer of the bridge has disappeared and he was using my site as a live test site and installed my bridge himself.

but I am still baffled why it was working fine for a week.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 06, 2009, 02:59:58 PM
ok heres whats going on...

when I use the direct lnk it gives me a url like this:

http://mysites.com/myforums/MGalleryItem.php?id=413

when I use the BBC Embed it links to the image and this is the url to this image:

http://mysite.com/e107_plugins/smf/smf.php?action=mgallery;sa=media;id=421;preview


somewhere, in some file, the mod is ignoring the change that the bridge makes for the direct images and it is trying to use the wrong url to my forums and all its mods... but when it uses the smg-id tag  it is getting the correct URL for my forums....

so my question is.. where is your mod getting my forums url from and how can I make it so  that it seems the proper url to my forum in all cases? I really need to know how to do this on my own because I am working towards getting the bridge removed and when that day comes I will have to know how to make sure all my mods see the new url

When I hover over the thumbnails in the gallery, the url shown in the lower right in IE is the correct url to the image:

http://mysite.com/e107_plugins/smf/smf.php?action=mgallery;sa=item;id=394

but in the box "Direct Link" it is showing the incorrect URL.
http://mysites.com/myforums/MGalleryItem.php?id=394

Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 06, 2009, 03:23:17 PM
@Harvester> I have no idea what you're talking about :D I'm a bit tired...

I finally took some courage and spent my day finishing implementing many fixes and new features. It's a 164kB commit, w00t. These will all be in SMG 1.6. I guess its release shouldn't be too far away now. mforum, and all of our brilliant testers ---> please test rev 755 as much as you can! ;) Mostly video (both embedded & local) & audio files, and forcing thumbnails. There are probably some bugs remaining here and there. You have no idea how much of the code I rewrote, lol ;)

Anyway, beta testers will be glad to finally be able to play audio files with JW Player just like I've been doing over at Noisen.com for some time now, eheh.

Here's a quick changelog, it's a bit messy but I'm sure this will be of interest to some of you:

+ Added preview generation for manual thumbnail uploads. They're used as larger thumbnails in JW FLV Player, as well as for thumbnail regeneration.
* Replaced Dewplayer with JW FLV Player for audio files, and added Revolt plugin for spectrum analyzer goodness, as well as support for preview pictures inside the audio player
* Rewrote most of the regeneration code, to preserve file IDs and make sure not to delete any files that shouldn't be. Believe it or not, it got so complicated at one point that it made me stop working on SMG for weeks. Ouch.
! Improved compatibility with Aeva 6.0's embedded titles and such (which is what I'd been working on in the meantime, if you didn't get it.)
* Reuploading items now also preserves file IDs for thumbnails and previews. (MGallery.php)
* Rewrote thumbnail boxes to use table-based layouts because tables rock and that's it. (Plenty of files.)
+ Added "max items per line" to go with the table-based layout. (db_mgallery.php, MGallery-Admin.php, Subs-MGallery.php)
! Made sure Aeva videos are center-aligned. (style.css)
! focustype and xposuretime Exif entries weren't properly saved. (MGallery-Admin.php)
+ Added ability for authors to move their items between user albums. WIP: need to implement general albums as well. (MGallery-Sub.php, MGallery.php)
! Don't show "Click here for full size" when we're not showing a picture, uh...
! Plenty of fixes in thumbnail box code (did you even know you needed them?)
! Fixed num_comments error in item pages when the only comment was unapproved
* Cleaned up/shortened/optimized an awful lot of code as usual
* Updated French translation
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on March 06, 2009, 03:40:27 PM
Are you thinking of implementing "Recent Albums" in 1.6 or at all?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 06, 2009, 03:44:05 PM
Quote from: Nao 尚 on March 06, 2009, 03:23:17 PM
@Harvester> I have no idea what you're talking about :D I'm a bit tired...


honestly.. neither do I LOL!

This has me so confused! The mod was working perfectly a few days ago and i made no changes to anything on my site other than to upload images and videos.

I will try to explain better...

When I use the "Direct Link" in between Img Tags [img]DirectLink[/img] I get red X's now.

BBC Embed still works fine and shows the thumbnail.

when I copy the "Direct Link" from my image in my gallery and paste it into the address bar of my browser I get:

QuoteInternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

However,  the BBC Embed code works fine.

The only difference I notice between the two is that the BBC Embed referrences the url of my website as it is changed by the bridge I have in place (I have a bridge that bridges e107 and SMF) .... the direct link uses a different url... a url that is no longer valid because of the modifications the bridge does.

Look at the difference between the two different urls that the gallery is utilizing...

BBC Embed image uses this url: http://thebassholes.com/e107_plugins/smf/smf.php?action=mgallery;sa=media;id=390;preview

Direct Link uses this url: http://thebassholes.com/bassin-forums/MGalleryItem.php?id=394

notice the top url shows the changes to my forum t hat the bridge has made. The bottom url, for the direct link, does not.

For some reason the BBC Embed is "fetching" (if that is the correct term) the correct URL for my forums and all mods on it but the Direct Link is not.

Did I make more sense that time? Its hard to describe something when you dont truly understand it ;)

Edit:  I can upload a file to my server and use the natural path to it for IMG tags it will show just fine

http://www.thebassholes.com/bassin-forums/help_images/BBC-Embed-Code.jpg between IMG tags displays an image perfectly on my site.

Please help
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 06, 2009, 04:17:28 PM
until I get an answer to the above issue I will stick with using the BBC EMbed code....


but... how can I make t he size of the preview that is seen once they click the thumbnail that the BBC Embed Code places in the posts.

Clicking the thumbnail brings up a bigger picture but I would still like the image that is brought up to be larger.. Id want it to be 800x800 max size. I am guessing there is somewhere to change that in some file in the mod?

Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 06, 2009, 05:17:56 PM
@mark> you have no pity for that little guy who kills himself on the task on Aeva and SMG, don't you? O:)

@Harvester> you SHOULD stick to the bbc tag really... There's no reason for using the other one on your own site. And I don't understand your new question either, lol. There is currently no way to show the larger version of a picture with a lightbox. I do plan to add a link to the larger version, though.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 06, 2009, 05:45:32 PM
Quote from: Nao 尚 on March 06, 2009, 05:17:56 PM
And I don't understand your new question either, lol.


LOL its ok

Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on March 06, 2009, 06:17:07 PM
Quote from: Nao 尚 on March 06, 2009, 05:17:56 PM
@mark> you have no pity for that little guy who kills himself on the task on Aeva and SMG, don't you? O:)
So what's the answer to my question? :D
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 06, 2009, 06:17:49 PM
Pretty much!
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on March 06, 2009, 06:25:07 PM
Quote from: mark7144 on March 06, 2009, 06:17:07 PM
So what's the answer to my question? :D
Quote from: Nao 尚 on March 06, 2009, 06:17:49 PM
Pretty much!
*confused*
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on March 06, 2009, 06:53:08 PM
Well, if you need a beta tester, please add me.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: drakeone69 on March 06, 2009, 07:16:21 PM
I cannot upload files any larger than 8.5mb

I have my php.ini set to 24m

I have SMG set even higher max size of directory = 16000047
Max file size in KB = 3200000

and beyond that I'm not sure why it won't allow me to upload files larger than 8.5mb I've tested everything up to that, and it works, .. everything beyond that .. just reloads the UPLOAD page again but blank... and oddly no forum errors.. ? confusing as all get out.
I already spoke with my hosting (1and1) and they concluded that it was a 3rd party issue lol ;) I mean like damn I haven't even been to the first or second party yet.. :P

any ideas folks?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on March 06, 2009, 09:30:25 PM
Is it the same with the mass upload?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: berrylife on March 06, 2009, 10:29:01 PM
i havent read all 141 pages but i havent found any anwers to the problem i have. ive installed 1.1.8. it wont let me instal the gallery 1.5.5, but i can install 5.2 - but i get a load of code at the top of the page and no gallery tab to click!

please help!

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi547.photobucket.com%2Falbums%2Fhh470%2Fmic8310%2Fgallery.jpg&hash=dc4db764ee81d17cee6de85c95a175b5aeeae2ca)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on March 06, 2009, 10:30:27 PM
Quote from: berrylife on March 06, 2009, 10:29:01 PM
i havent read all 141 pages but i havent found any anwers to the problem i have. ive installed 1.1.8. it wont let me instal the gallery 1.5.5, but i can install 5.2 - but i get a load of code at the top of the page and no gallery tab to click!

please help!

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi547.photobucket.com%2Falbums%2Fhh470%2Fmic8310%2Fgallery.jpg&hash=dc4db764ee81d17cee6de85c95a175b5aeeae2ca)

Manual install 1.5.5 :)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: drakeone69 on March 06, 2009, 11:26:46 PM
Quote from: drakeone69 on March 06, 2009, 07:16:21 PM
I cannot upload files any larger than 8.5mb

I have my php.ini set to 24m

I have SMG set even higher max size of directory = 16000047
Max file size in KB = 3200000

and beyond that I'm not sure why it won't allow me to upload files larger than 8.5mb I've tested everything up to that, and it works, .. everything beyond that .. just reloads the UPLOAD page again but blank... and oddly no forum errors.. ? confusing as all get out.
I already spoke with my hosting (1and1) and they concluded that it was a 3rd party issue lol ;) I mean like damn I haven't even been to the first or second party yet.. :P

any ideas folks?
Quote from: akyhne on March 06, 2009, 09:30:25 PM
Is it the same with the mass upload?

mass upload won't work at all for anything..

...

Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on March 06, 2009, 11:30:05 PM
Quote from: drakeone69 on March 06, 2009, 11:26:46 PM
Quote from: drakeone69 on March 06, 2009, 07:16:21 PM
I cannot upload files any larger than 8.5mb

I have my php.ini set to 24m

I have SMG set even higher max size of directory = 16000047
Max file size in KB = 3200000

and beyond that I'm not sure why it won't allow me to upload files larger than 8.5mb I've tested everything up to that, and it works, .. everything beyond that .. just reloads the UPLOAD page again but blank... and oddly no forum errors.. ? confusing as all get out.
I already spoke with my hosting (1and1) and they concluded that it was a 3rd party issue lol ;) I mean like damn I haven't even been to the first or second party yet.. :P

any ideas folks?
Quote from: akyhne on March 06, 2009, 09:30:25 PM
Is it the same with the mass upload?

mass upload won't work at all for anything..

...



add SecFilterEngine Off
SecFilterScanPOST Off
to the .htaccess file in the forum root. May not fix the first issue, but should fix the mass upload problem.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: drakeone69 on March 07, 2009, 04:43:13 AM
QuoteInternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

That's right folks, an error ontop of an error..

I tried doing the whole..
SecFilterEngine Off
SecFilterScanPOST Off to the .htaccess file in the forum root. May not fix the first issue, but should fix the mass upload problem.

and I got the above error message...
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: SergeantAsh on March 07, 2009, 06:37:42 AM
Quote from: drakeone69 on March 06, 2009, 11:26:46 PM
Quote from: drakeone69 on March 06, 2009, 07:16:21 PM
I cannot upload files any larger than 8.5mb

I have my php.ini set to 24m7

I have SMG set even higher max size of directory = 16000047
Max file size in KB = 3200000

and beyond that I'm not sure why it won't allow me to upload files larger than 8.5mb I've tested everything up to that, and it works, .. everything beyond that .. just reloads the UPLOAD page again but blank... and oddly no forum errors.. ? confusing as all get out.
I already spoke with my hosting (1and1) and they concluded that it was a 3rd party issue lol ;) I mean like damn I haven't even been to the first or second party yet.. :P

any ideas folks?
Quote from: akyhne on March 06, 2009, 09:30:25 PM
Is it the same with the mass upload?

mass upload won't work at all for anything..

...



This may not help fix your issue, but I had the same problem with mass upload which I resolved by changing my PS server settings from Mod_PHP (with XCache) 5.x to standard PHP 5.x? May not help, but just an idea.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: sheryltoo on March 07, 2009, 06:12:26 PM
I tried to read through some of the pages since I didn't find anything when doing a search so if this has been asked, I'm sorry.
I just installed this mod on RC1 but the menu for the links are all showing as red x's.
Sheryl
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: gffb on March 07, 2009, 07:52:23 PM
I am getting problems adding mp3 files. I have tried either individual or the mass upload and get an error on both, it says to contact the admin as there has been a problem. But the mass upload shows 100% progress

Upload folder is 777
here is php file.
[PHP]

Got this sorted.....as I have php4 and php5 the php.ini file should of been named php5.ini



;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 30     ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 30M      ; Maximum amount of memory a script may consume (8MB)

; Maximum allowed size for uploaded files.
upload_max_filesize = 200M

; Default timeout for socket based streams (seconds)
default_socket_timeout = 240

; Maximum size of POST data that PHP will accept.
post_max_size = 200M
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: gffb on March 07, 2009, 09:33:25 PM
Just a thought, would it be possible to have the player pop-out when you click play so that you can listen to music while browsing the site, rather than just have to stay on that page, or even better maybe a block that has all the added files in a pop-out player or something.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 08, 2009, 03:57:36 AM
Quote from: gffb on March 07, 2009, 07:52:23 PM
I am getting problems adding mp3 files. I have tried either individual or the mass upload and get an error on both, it says to contact the admin as there has been a problem. But the mass upload shows 100% progress
You fix is 3 posts above yours................................  :P
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Kreator on March 08, 2009, 04:34:33 AM
I have a slight problem. Whenever I try to upload my videos to the gallery they are fine with an .avi extension
( apart from my Browser (Chrome) not being able to see them!)
but if I use .divx  the Gallery chucks it out, I also use "avea" which seems to prefer .divx , as if I post the video direct to the server and link from within the forum there is no problem.

If I change the divx encoded movie to .avi in Gallery then it accepts it, but the old wmv player is shown and the divx one is not.

   It is annoying as chrome will not see anything with an avi extension, but will with divx

Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 08, 2009, 05:51:03 AM
It's not "avea" it's Aeva. ¬_¬
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Kreator on March 08, 2009, 06:03:24 AM
Excuse my spelling  and abbreviation of " Automatically Embed Video Audio" AEVA, But that does not answer or recommend  a solution to the problem.


Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Propaganistas on March 08, 2009, 06:33:24 AM
Quote from: Propaganistas on March 06, 2009, 10:26:12 AM
Hello,

I just installed SMG, and I love it.
But I've got one problem: thumbnails are not showing up in IE, whilst the the space they are normally displayed is clickable. Viewing an item on its own is working, just the thumbnails seem to not be generated in IE.

Any idea what this is causing?

Thanks in advance,
Propa

bump
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 08, 2009, 07:35:22 AM
@Kreator> I would answer if I had a direct link to test.

@Propaganistas> Same answer...
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Propaganistas on March 08, 2009, 09:03:45 AM
Quote from: Nao 尚 on March 08, 2009, 07:35:22 AM
@Propaganistas> Same answer...
Can I pm you containing account details? It seems guests can't view the gallery, even when they have the appropriate permissions..
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: jmil on March 08, 2009, 09:33:43 AM
I have a permissions Question: I would like "User Albums" to have the permission selection that "Regular Guests" can view or not view. Right now you can only select "Guests". The user albums are really good and our members are using them for posting pics in their links, but now we are getting alot of albums of basic dumb stuff (used to link Pictures), then they have albums which are intended to be viewed. I have looked everywhere in the Permissions but cant seem to find it! Am I missing this - Or that permission does not exist.

Second Question: Anyway to have a Gallery Icon in the Members Profile like the "Personal Message", "website", "AIM", etc...
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on March 08, 2009, 09:37:47 AM
Quote from: jmil on March 08, 2009, 09:33:43 AM
Second Question: Anyway to have a Gallery Icon in the Members Profile like the "Personal Message", "website", "AIM", etc...

Where should it point to? Members can have several galleries.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: drakeone69 on March 08, 2009, 10:06:12 AM
Quote from: drakeone69 on March 06, 2009, 07:16:21 PM
I cannot upload files any larger than 8.5mb

I have my php.ini set to 24m

I have SMG set even higher max size of directory = 16000047
Max file size in KB = 3200000

and beyond that I'm not sure why it won't allow me to upload files larger than 8.5mb I've tested everything up to that, and it works, .. everything beyond that .. just reloads the UPLOAD page again but blank... and oddly no forum errors.. ? confusing as all get out.
I already spoke with my hosting (1and1) and they concluded that it was a 3rd party issue lol ;) I mean like damn I haven't even been to the first or second party yet.. :P

any ideas folks?

I am still having this problem @ .... http://www.mindmankind.com
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: jmil on March 08, 2009, 10:43:33 AM
Quote from: akyhne on March 08, 2009, 09:37:47 AM
Quote from: jmil on March 08, 2009, 09:33:43 AM
Second Question: Anyway to have a Gallery Icon in the Members Profile like the "Personal Message", "website", "AIM", etc...

Where should it point to? Members can have several galleries.

My recommendation would be to that single users Owner album list that are listed as public.

You can already see ALL of the users albums - I just would like it to point to that individuals User albums.

Right now when you select User Albums from the main page - you see all of them.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 08, 2009, 10:49:16 AM
Quote from: drakeone69 on March 08, 2009, 10:06:12 AM
I am still having this problem @ .... http://www.mindmankind.com
Are you sure your php.ini settings are correct?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on March 08, 2009, 10:59:03 AM
Quote from: jmil on March 08, 2009, 10:43:33 AM
Quote from: akyhne on March 08, 2009, 09:37:47 AM
Quote from: jmil on March 08, 2009, 09:33:43 AM
Second Question: Anyway to have a Gallery Icon in the Members Profile like the "Personal Message", "website", "AIM", etc...

Where should it point to? Members can have several galleries.

My recommendation would be to that single users Owner album list that are listed as public.

You can already see ALL of the users albums - I just would like it to point to that individuals User albums.

Right now when you select User Albums from the main page - you see all of them.

If you are using SMF 2.0, you can create a custom profile field that can do the trick... I guess.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: jmil on March 08, 2009, 11:08:22 AM
Sorry 1.1.8!
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on March 08, 2009, 11:12:16 AM
There's a mod for 1.1.8 that adds custom profile fields as well. But the mod is no longer supported.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: sheryltoo on March 08, 2009, 11:52:34 AM
I'm still looking for some help on images not showing and maybe I didn't ask my question correctly so I'm going to try and ask again, along with adding something else I discovered.

After installing this mod on RC1, I noticed the images for all the links in the gallery weren't showing. Just red x's.
This morning I checked my error log on my host site and found all these errors:

File does not exist: /home/XXX/public_html/XXX/Themes/default/images/mgallery/user.png
File does not exist: /home/xxx/public_html/xxx/Themes/default/images/mgallery/magnifier.png
File does not exist: /home/xxx/public_html/xxx/Themes/default/images/mgallery/eye.png
File does not exist: /home/xxx/public_html/xxxThemes/default/images/mgallery/cog.png
File does not exist: /home/xxx/public_html/xxx/Themes/default/images/mgallery/house.png
File does not exist: /home/xxx/public_html/xxxThemes/default/mgallery/script.js
File does not exist: /home/xxxpublic_html/xxx/Themes/default/mgallery/style.css

In checking the folder for my smf files under default/images, I see there isn't a folder for mgallery.
How do I get this folder or how do I fix this problem?
Sheryl
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on March 08, 2009, 11:59:40 AM
The easiest way would probably just be to uninstall the mod and then install it again.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 08, 2009, 12:28:59 PM
Quote from: jmil on March 08, 2009, 09:33:43 AM
Second Question: Anyway to have a Gallery Icon in the Members Profile like the "Personal Message", "website", "AIM", etc...
Switch to SMF2 and you'll have a full menu entry.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: sheryltoo on March 08, 2009, 02:21:50 PM
I uninstalled this mod and reinstalled it and it didn't help.
I'm still missing the image folder.
Sheryl
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Kreator on March 08, 2009, 02:56:18 PM
link to our gallery... 
http://www.animanon.com/Forum/index.php?action=mgallery


Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 08, 2009, 03:06:29 PM
Direct link to a mov page please?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Kreator on March 08, 2009, 03:15:02 PM
http://www.animanon.com/Forum/index.php?topic=1040.0

I take it a movie page

Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: magarto on March 08, 2009, 05:33:48 PM
All my photos and pictures, but a very few ones, have been deleted.
I remove only one album using the panel and all the files have been removed and i had no backups.
In the log errors i have the following:

Apply Filter: Only show the error messages of this member  Mariete  Reverse chronological order of list  Hoy a las 16:22:45
Apply Filter: Only show the error messages of this IP address 87.217.63.221    Apply Filter: Only show the error messages of this session 38e13b4231d894d46938841f19a96da0
  Apply Filter: Only show the errors of this type Type of error: General
Apply Filter: Only show the error messages of this URL http://salsamadrid.org/index.php?pretty;action=admin&amp;area=mgallery;sa=albums;do=delete;id=77;sesc
Apply Filter: Only show the errors with the same message
2: unlink(/home2/salsamad/public_html/mgal_data//albums/viviendo_en_las_islas/Dir_1/634_thumb_Imagen_183_jpg762818367230bbb2d77f94a9a5383412_extjpg) [<a href='function.unlink'>function.unlink</a>]: Permission denied
Apply Filter: Only show the errors from this file
Archivo: /home2/salsamad/public_html/Sources/Subs-Package.php
Línea: 1481


But with different files... those files were the only that were not removed, but the error is the same in http://salsamadrid.org/index.php?pretty;action=admin&amp;area=mgallery;sa=albums;do=delete;id=77;sesc

Ohh my god, i cannot beleive it!!!
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: magarto on March 08, 2009, 07:13:34 PM
I have just restored most files due to my hosting company had backups but please, check the error in 1.5.4 because when you remove a album it takes a lot of time and then, most files and albums get removed.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: jmil on March 08, 2009, 07:15:42 PM
Quote from: Nao 尚 on March 08, 2009, 12:28:59 PM
Quote from: jmil on March 08, 2009, 09:33:43 AM
Second Question: Anyway to have a Gallery Icon in the Members Profile like the "Personal Message", "website", "AIM", etc...
Switch to SMF2 and you'll have a full menu entry.

That is I guess the only way - I will have to wait until out of beta though!
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 08, 2009, 07:28:09 PM
Quote from: Kreator on March 08, 2009, 03:15:02 PM
http://www.animanon.com/Forum/index.php?topic=1040.0

I take it a movie page
Does anyone have a problem with this plugin?

@magarto> Safe mode eh? What did you do that triggered the unlink function? Trying to replace a picture? Regen thumbs?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Soms on March 08, 2009, 07:35:11 PM
I have the likes of these errors in the log every time someone goes to the gallery. The installation went fine.
Quote8: Undefined index: child_level
File: /mnt/web4/21/50/51458650/htdocs/Sources/Subs-MGallery.php
Line: 1195

8: Undefined index: child_level
File: /mnt/web4/21/50/51458650/htdocs/Sources/MGallery.php
Line: 816


Additionally, I get this;
QuoteThere was a error in your query
/mnt/web4/21/50/51458650/htdocs/Sources/MGallery-Sub.php
733
album
This happens when I tried to delete a nameless and empty file I found In the album section. Btw, the file in question refuses to delete!
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: drakeone69 on March 08, 2009, 09:51:16 PM
Quote from: Nao 尚 on March 08, 2009, 10:49:16 AM
Quote from: drakeone69 on March 08, 2009, 10:06:12 AM
I am still having this problem @ .... http://www.mindmankind.com
Are you sure your php.ini settings are correct?

Yes I'm absolutely certain they are.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 09, 2009, 05:37:21 AM
Quote from: Propaganistas on March 08, 2009, 06:33:24 AM
Quote from: Propaganistas on March 06, 2009, 10:26:12 AM
Hello,

I just installed SMG, and I love it.
But I've got one problem: thumbnails are not showing up in IE, whilst the the space they are normally displayed is clickable. Viewing an item on its own is working, just the thumbnails seem to not be generated in IE.

Any idea what this is causing?

Thanks in advance,
Propa

bump
Okay...

- Viewed under Opera and IE8: no problems
- Viewed under IE8 in Compatibility Mode (= IE7): no thumbnails in SMG homepage
- Viewed general album: no thumbnails
- Viewed user album with 800x120 pics (the Ranger one is the basis of my long-running desktop wallpaper, lol): no problems

So, since the 800x120 thumbs do appear (and all thumbnails appear if you type their URL directly, e.g. http://www.ecto.nl/forum/index.php?action=mgallery;sa=media;id=13;thumb), I can only guess that this is a CSS problem.
SMG 1.6 changes the way thumbnails are shown (table-based instead of div-based), I can only guess that there's a chance it will fix your problem.
In the meantime, tell your users to ditch stupid IE or at least switch to IE8! ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Propaganistas on March 09, 2009, 05:43:23 AM
Ok, thanks for your time Nao!

I'm looking forward to SMG 1.6 :)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on March 09, 2009, 05:54:03 AM
ETA on 1.6?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Fishmizzle on March 09, 2009, 06:10:59 AM
SMF 1.1.8
SMG 1.5.5
Theme: EndlessMC

Ok, I have searched high and low for the answer to my problem. Everyone seems to be getting there theme buttons up and running and I just cant figure out why my theme style just wont apply to my "Gallery" button.

I have replaced the code with pretty much every resolved code I have found in this topic, with no luck. I am attaching a screenshot of what I mean as well as my index.template.php file if somebody could PLEASE take a look at it and modify it as necessary.

Thanks in advance and your help is greatly appreciated.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 09, 2009, 07:23:12 AM
Quote from: mark7144 on March 09, 2009, 05:54:03 AM
ETA on 1.6?
If it were only up to me, I'd launch it in beta right now...
It's not like it's completely done, but I could live with 1.6 being in beta for a few weeks. It wouldn't be as hectic a rhythm as the 1.5 beta anyway. It pretty much killed me and Dragooon. I think we're both afraid of starting another beta session. Yet, it wouldn't be as dramatic. So I think we should go beta now. My heavy work period on Aeva is pretty much over, and I didn't do much this weekend, I can take it now.

Oh, BTW, the mod site is broken, so nobody can upload new versions... (I had to release Aeva 6.0.67 over at noisen.com, where a grand total of 3 people downloaded it... Lol!)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: ianus on March 09, 2009, 07:34:47 AM
@Fishmizzle                         
You are currently using table-tags instead of list-tags

Try this:


    // The [calendar]!
    if ($context['allow_calendar'])
    echo '<li', $current_action == 'calendar' ? ' class="current_page"' : '', '><a href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a></li>';

    // [SMF Media Gallery]
    if (allowedTo('mgallery_access'))
    echo '<li', $current_action == 'mgallery' ? '2' : '' , '"><a href="', $scripturl, '?action=mgallery"><span>' , $txt['mgallery_gallery'] , '</span></a></li>';

    // the [member] list button
    if ($context['allow_memberlist'])
    echo '<li', $current_action == 'mlist' ? ' class="current_page"' : '', '><a href="', $scripturl, '?action=mlist"><span>' , $txt[331] , '</span></a></li>';



Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on March 09, 2009, 08:20:54 AM
Quote from: Nao 尚 on March 09, 2009, 07:23:12 AM
So I think we should go beta now.
:D
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 09, 2009, 09:35:51 AM
Here are my plans....
Get per-album permissions done
Put it up on closed beta testing
Release an open beta(And complete the beta process, BTW...it won't be hectic if you won't add features under this process)
Get the final version out

ETA? Before 2037.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 09, 2009, 10:05:21 AM
Quote from: Dragooon on March 09, 2009, 09:35:51 AM
Release an open beta(And complete the beta process, BTW...it won't be hectic if you won't add features under this process)
TBH, the only feature(s) I'm looking to add these days is everything I'd need to convert Foxprog to the SMG system, so I'll be focusing on a few points and that's all...
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on March 09, 2009, 10:32:37 AM
I'll ask this again as I don't remember getting an answer last time, is the 'Recent Albums' feature request being considered for 1.6?

That's basically the one feature request I care the most about and I've seen many people also show an interest for it.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 09, 2009, 10:58:10 AM
I told you, I don't know. I plan to severely overhaul the index, but I haven't decided how it will look like. I need to find a solution with user albums, too.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on March 09, 2009, 11:33:30 AM
Oh fair enough.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 09, 2009, 11:38:52 AM
Would you want these albums to have their icon next to them?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on March 09, 2009, 12:35:16 PM
Quote from: Nao 尚 on March 09, 2009, 11:38:52 AM
Would you want these albums to have their icon next to them?
Yes absolutey :)

The way I would try and setup my gallery home page is to start with a single row of "Recent Pictures" and then use the rest of the page to list all the "Recent Albums" with their icons to the left.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 09, 2009, 01:04:29 PM
Well that would make for a very large index page, potentially...
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Özgür on March 09, 2009, 01:16:51 PM
What it will contain the first v1.6? (So all the features)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 09, 2009, 02:32:38 PM
I already posted a partial changelog a few days ago.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Soms on March 09, 2009, 05:26:42 PM
Sorry to bump this. Will you please see if you could help. I have 1300 error log pages today alone. I have read most of the previous pages, but the answer is not there.

Quote from: Soms on March 08, 2009, 07:35:11 PM
I have the likes of these errors in the log every time someone goes to the gallery. The installation went fine.
Quote8: Undefined index: child_level
File: /mnt/web4/21/50/51458650/htdocs/Sources/Subs-MGallery.php
Line: 1195

8: Undefined index: child_level
File: /mnt/web4/21/50/51458650/htdocs/Sources/MGallery.php
Line: 816


Additionally, I get this;
QuoteThere was a error in your query
/mnt/web4/21/50/51458650/htdocs/Sources/MGallery-Sub.php
733
album
This happens when I tried to delete a nameless and empty file I found In the album section. Btw, the file in question refuses to delete!
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 09, 2009, 05:32:04 PM
Old version of SMG?

Complex user album child structure?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Soms on March 09, 2009, 05:38:33 PM
Thanks Nao

I am using 1.5.5.  The user album child structure is just the same like, for example, on the forum boards. Maybe I should just  elevate the child albums to full albums?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 09, 2009, 05:40:03 PM
Yes, at least while waiting for a fix. Make sure you don't have more than one sublevel. (One is fine, I believe.)
If it's not good enough, then put them all as top-level. (Can do it via phpMyAdmin if there's no option in SMG -- can't remember and I'm off to bed anyway.)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: drakeone69 on March 09, 2009, 05:43:48 PM
Quote from: drakeone69 on March 08, 2009, 10:06:12 AM
Quote from: drakeone69 on March 06, 2009, 07:16:21 PM
I cannot upload files any larger than 8.5mb

I have my php.ini set to 24m

I have SMG set even higher max size of directory = 16000047
Max file size in KB = 3200000

and beyond that I'm not sure why it won't allow me to upload files larger than 8.5mb I've tested everything up to that, and it works, .. everything beyond that .. just reloads the UPLOAD page again but blank... and oddly no forum errors.. ? confusing as all get out.
I already spoke with my hosting (1and1) and they concluded that it was a 3rd party issue lol ;) I mean like damn I haven't even been to the first or second party yet.. :P

any ideas folks?

I am still having this problem @ .... http://www.mindmankind.com

Yes I'm absolutely certain my php.ini is set correctly.
I've also had my hosting company look it over.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Soms on March 09, 2009, 05:46:25 PM
Thanks. I'll try and elevate everything to top level. I'll see if there is the option to do that via SMG. I am not comfortable with phpMyAdmin though. I'll keep you posted.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 09, 2009, 05:49:17 PM
Quote from: drakeone69 on March 09, 2009, 05:43:48 PM
Yes I'm absolutely certain my php.ini is set correctly.
But what is it set to? Lol.

OK, gone now!
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: drakeone69 on March 09, 2009, 05:51:25 PM
Quote from: Nao 尚 on March 09, 2009, 05:49:17 PM
Quote from: drakeone69 on March 09, 2009, 05:43:48 PM
Yes I'm absolutely certain my php.ini is set correctly.
But what is it set to? Lol.

OK, gone now!

Dude.. IT"S WRITTEN IN THE POST YOU JUST QUOTED... (Reading helps)

24M
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on March 09, 2009, 07:42:18 PM
Quote from: Nao 尚 on March 09, 2009, 01:04:29 PM
Well that would make for a very large index page, potentially...
Not if you use page links and/or have a setting to choose the maximum number of recent albums to show.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 09, 2009, 11:19:22 PM
Quote from: drakeone69 on March 09, 2009, 05:51:25 PM
Quote from: Nao 尚 on March 09, 2009, 05:49:17 PM
Quote from: drakeone69 on March 09, 2009, 05:43:48 PM
Yes I'm absolutely certain my php.ini is set correctly.
But what is it set to? Lol.

OK, gone now!

Dude.. IT"S WRITTEN IN THE POST YOU JUST QUOTED... (Reading helps)

24M
Linking to a phpinfo page will help.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Fishmizzle on March 10, 2009, 03:03:02 AM
Quote from: ianus on March 09, 2009, 07:34:47 AM
@Fishmizzle                         
You are currently using table-tags instead of list-tags

Try this:


    // The [calendar]!
    if ($context['allow_calendar'])
    echo '<li', $current_action == 'calendar' ? ' class="current_page"' : '', '><a href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a></li>';

    // [SMF Media Gallery]
    if (allowedTo('mgallery_access'))
    echo '<li', $current_action == 'mgallery' ? '2' : '' , '"><a href="', $scripturl, '?action=mgallery"><span>' , $txt['mgallery_gallery'] , '</span></a></li>';

    // the [member] list button
    if ($context['allow_memberlist'])
    echo '<li', $current_action == 'mlist' ? ' class="current_page"' : '', '><a href="', $scripturl, '?action=mlist"><span>' , $txt[331] , '</span></a></li>';



@ianus

I can't thank you enough! After slight modification, the code is finally correct. Thank you so much.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 10, 2009, 03:49:08 AM
Quote from: drakeone69 on March 09, 2009, 05:51:25 PM
Dude.. IT"S WRITTEN IN THE POST YOU JUST QUOTED... (Reading helps)
You're acting like you know what you're talking about and then you patronize me, even when I'm spending time trying to help everyone here.

I was asking for your upload settings in your php.ini file. Not for the filename. Do I hear "moron"? Sounds a lot like it at least.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: tfs on March 10, 2009, 05:57:26 PM
Is the Mass Upload option working?  When I click on "Select files" nothing happens.  As far as I know my broser is capable (Flash/etc).

Ver 1.5.5
SMF 2/RC1
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 10, 2009, 06:55:39 PM
Are you using several subdomains? (Just having "www.mysite.com" somewhere and "mysite.com" elsewhere is enough to break it.)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Soms on March 10, 2009, 07:08:42 PM
Quote from: Nao 尚 on March 09, 2009, 05:40:03 PM
Yes, at least while waiting for a fix. Make sure you don't have more than one sublevel. (One is fine, I believe.)
If it's not good enough, then put them all as top-level.

Every file is top-level now and the errors have disappeared. Thanks a lot.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 11, 2009, 05:29:18 AM
Would be even cooler if you told me what the structure looked like when it didn't work ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: tfs on March 11, 2009, 12:09:31 PM
Quote from: Nao 尚 on March 10, 2009, 06:55:39 PM
Are you using several subdomains? (Just having "www.mysite.com" somewhere and "mysite.com" elsewhere is enough to break it.)

Sorry, I'm not sure if your reply was to me or not.  Regarding Mass Upload not working.  Can you reiterate?

Technically, I'm running under a ub-domain.  http://mysite.someoneelsessite.com

This is temporary while my own host moves me from a Win machine to a Linux machine.

Note, when I click on the "Select Files" link I see that I get an IE indicator on the statusbar that says "Done, but with errors on page."  Perhaps this is my own problem with Flash or something like that...
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: tripl3r on March 11, 2009, 12:15:00 PM
Cant seem to upload using mass upload or single, realyl dont know why all my permissions etc I believe to be allowed, any know of any issues?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 11, 2009, 12:34:21 PM
@tfs> then apply the crossdomain.xml solution.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: jmil on March 11, 2009, 01:24:34 PM
I am re posting this because I combined it with 2 questions - which 1 is resolved :

I have a permissions Question: I would like "User Albums" to have the permission selection that "Regular Guests" can view or not view. Right now you can only select "Guests". The user albums are really good and our members are using them for posting pics in their links, but now we are getting alot of albums of basic dumb stuff (used to link Pictures), then they have albums which are intended to be viewed. I have looked everywhere in the Permissions but cant seem to find it! Am I missing this - Or that permission does not exist.

If you are confused - basically - I mean Regular members should be able to make Private albums (Of Course Moderators/Admin can look) but not accessable to other Regular Members.


Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Soms on March 11, 2009, 01:27:02 PM
Quote from: Nao 尚 on March 11, 2009, 05:29:18 AM
Would be even cooler if you told me what the structure looked like when it didn't work ;)

Sorry about that. The clue was in your earlier reply/help.
Quote from: Nao 尚 on March 09, 2009, 05:40:03 PM
Make sure you don't have more than one sub-level.

I had one file with 4 sub-levels. Those were mine. So I just deleted the sub levels and re-uploaded them as top-level files. So I guess the user album child structure was causing the errors.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 11, 2009, 01:35:53 PM
Yes that's definitely something we'll have to look into. Dragooon, are you reading? ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 11, 2009, 01:37:54 PM
I can't think that how it will screw up. I'm out of ideas.....were they user albums or general albums?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Tiribulus on March 11, 2009, 05:15:08 PM
This may not be the greatest time for this, but do you guys know why I would get a blank page when clicking on the gallery button in the admin CP? No errors in the log. The gallery works, also does it with the default theme. Just blank page and done on the bottom. I get this when trying to delete a user or when someone tries to register as well. Last confirmation click and blank page no changes. I don't which is chicken or which is egg or even for sure if they're related necessarily, but you would think they are somehow.
Thanks,
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Tiribulus on March 11, 2009, 06:56:25 PM
This a duplicate post from my thread about the other related issue which was not directly linked to any MOD including this one, sorry:


This code:

        // Protect the person who started the forum

       if ($users == 1 or @in_array(1, $users))
              fatal_error('You\'re not allowed to delete the administrator.');


spanning additional lines 1120 - 1123 in the subs-member.php file was causing it. It's the little piece I mentioned above that somebody came up with to prevent unauthorized deletion of account #1. It was for an older version of SMF and I should have known better, but not seeing any problems I left it there.

I found parsing issue references to viewmembers on line 1120 of that file in the Apache error log and used KDIFF to check it against an original copy. Removed that code and all APPEARS to be well. Fixed the mgallery admin issue as well.
Thanks again guys.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 11, 2009, 07:05:59 PM
Interesting!
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: zagrom on March 11, 2009, 09:19:03 PM
I got this installed and almost working, my problem is
that users cant get into there profile unless I remove this
bit of code form the "Profile,php"

function mgallery($memID)
{
global $sourcedir;
require_once($sourcedir . '/MGallery-Sub.php');
MGal_Profile_Summary($memID);
}
function mgalitems($memID)
{
global $sourcedir;
require_once($sourcedir . '/MGallery-Sub.php');
MGal_Profile_ViewItems($memID);
}
function mgalcoms($memID)
{
global $sourcedir;
require_once($sourcedir . '/MGallery-Sub.php');
MGal_Profile_ViewComs($memID);
}


w/o this code they can get back in, but some functions
are missing, I am on a heavy moded 1.1.8 forum

I will attach my profile.php (before installation)
If you think this is something else feel free to tell me as
I am clueless
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Soms on March 12, 2009, 03:43:01 AM
Quote from: Dragooon on March 11, 2009, 01:37:54 PM
I can't think that how it will screw up. I'm out of ideas.....were they user albums or general albums?

General albums. I have not tried the same structure with the user albums. Should I?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 12, 2009, 03:49:32 AM
@Soms I cannot get it to reproduce actually....I went in 10 levels deep and its fine. I'll do some rigid testing some time after.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Me313 on March 16, 2009, 07:07:16 AM
what i'm missing in here?

i could not get icon for albums to appear,
i could upload files,but files did not appear properly and when i tried to download a file its saying file could not be found,
mass upload, upload the file but no button to submit the file into albums appear after finishing the upload.


take a look at here:

http://www.islamunity.net/forum/index.php?action=mgallery;sa=item;id=2

I've tried my best to fix them but....failed :(
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 16, 2009, 07:14:54 AM
Whats the permission for mgal_data and its subdirectories?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Me313 on March 16, 2009, 07:16:25 AM
thanks for the reply

its 777
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 16, 2009, 07:20:28 AM
Does it have an albums directory? What are its sub-folders.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Me313 on March 16, 2009, 07:24:04 AM
am sorry..i didnt get you..albums directory like how? forgive me :(
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Me313 on March 16, 2009, 07:25:21 AM
and now i got this error when trying to donwload the file i upload for test

Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/islamunity.net/httpdocs/forum/Sources/MGallery.php on line 1644
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 16, 2009, 07:52:07 AM
Bad server, change server.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on March 16, 2009, 12:01:52 PM
Hurry up and release 1.6  O:)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 16, 2009, 12:52:31 PM
As if that helps with anything.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on March 16, 2009, 06:12:18 PM
Quote from: Dragooon on March 16, 2009, 12:52:31 PM
As if that helps with anything.
I've now made a major impact on the release date of 1.6, mission successful.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Xavi-Nena on March 16, 2009, 06:22:30 PM
Anyone that has the slideshow feature know how to feature a slideshow w/in a TP block? I know you have to purchase it in addition to the freeware but I am curious if anyone out there has done this with their slideshow if they have purchased it and if so please PM me with details....

that was the whole reason I went and got the slideshow feature for the small fee...to display it on my home page .... only come to find out that this is NOT even an option with slideshow....I dont need a slideshow if you can only view it in the gallery and not on other areas of the board where you can implement the slideshow code....

Thanks in advance
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 17, 2009, 12:59:20 AM
Quote from: mark7144 on March 16, 2009, 06:12:18 PM
Quote from: Dragooon on March 16, 2009, 12:52:31 PM
As if that helps with anything.
I've now made a major impact on the release date of 1.6, mission successful.
You do realise you're not helping with anything? The more you ask, the happier I'll be to delay it.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 17, 2009, 04:25:43 AM
Quote from: Dragooon on March 17, 2009, 12:59:20 AM
You do realise you're not helping with anything? The more you ask, the happier I'll be to delay it.
Except that I won't be ;)
But I agree that Mark tends to fit the common saying, "I give my hand, you take my arm."
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on March 17, 2009, 05:21:45 AM
Quote from: Dragooon on March 17, 2009, 12:59:20 AM
Quote from: mark7144 on March 16, 2009, 06:12:18 PM
Quote from: Dragooon on March 16, 2009, 12:52:31 PM
As if that helps with anything.
I've now made a major impact on the release date of 1.6, mission successful.
You do realise you're not helping with anything? The more you ask, the happier I'll be to delay it.
You take me far too seriously, I was just jesting. Take as long as you want :)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Me313 on March 17, 2009, 12:47:43 PM
Quote from: Nao 尚 on March 16, 2009, 07:52:07 AM
Bad server, change server.

thank you for the respond..can you clarify it?i mean tell me what the server need so that SMG could work properly.

Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 17, 2009, 02:25:19 PM
First off, I suppose you're in so-called "safe mode"?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Me313 on March 17, 2009, 08:11:56 PM
no...the server is not in safe mod..as the server man said.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: sweetooo.baba on March 18, 2009, 05:54:15 AM
i installed this Mod ......

SMF Gallery not showing at Main page

How i Get it at Main Page
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 18, 2009, 06:22:01 AM
What do you mean? Link?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: sweetooo.baba on March 18, 2009, 06:33:33 AM
Quote from: Dragooon on March 18, 2009, 06:22:01 AM
What do you mean? Link?

yes

link to gallery......
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 18, 2009, 06:35:20 AM
Huh?
I asked the meaning of your question and a link to your gallery.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: sweetooo.baba on March 18, 2009, 06:50:22 AM
opps

Sorry my Englsih is Not so Good :D

www.itmasti.net

I try to say

I installed SMF gallery And Give Permissions to All

But frm Where Members and Guests Can see This

Even I m Admin

I also cant see this
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 18, 2009, 07:03:18 AM
Have you ever installed a mod in your life?
If not -- start learning, or don't use a custom theme.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Jez on March 18, 2009, 09:06:44 AM
Perhaps I'm having a similar problem as sweetooo due to our inexperience.

There's so many pages to read through in this thread to see whether my problem has already been addressed. If it has, apologies!

I've successfully installed SMF Media Gallery 1.5.5. (Im running SMF 1.1.8. The gallery configuration tab is present in the admin panel, and is working fine. I created a gallery and uploaded a pic with no problems.
My issue is that there is no gallery tab at the top of the main page for myself or members to click on. Any ideas how I can fix this? When I change my theme over to the default core theme, I can see the tab there, and it appears to work, but in my custom theme, its missing. Is there a pathway of some kind I need to set via file manager in my cpanel, or an adjustment in my index template I've yet to make?

I hope you guys can help! :-[

Jez
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 18, 2009, 09:28:36 AM
Search for adding a tab in custom themes, you'll get plenty of results.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: sweetooo.baba on March 18, 2009, 10:03:54 AM
Quote from: Nao 尚 on March 18, 2009, 07:03:18 AM
Have you ever installed a mod in your life?
If not -- start learning, or don't use a custom theme.

:p u must be kidding.....



I installed lot of modz............

i  m using custom theme

Now tell me Clearly .Where we Find........Gallery Link at the main page
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 18, 2009, 10:32:06 AM
Quote from: Dragooon on March 18, 2009, 09:28:36 AM
Search for adding a tab in custom themes, you'll get plenty of results.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: sweetooo.baba on March 18, 2009, 10:46:46 AM
Quote from: Dragooon on March 18, 2009, 10:32:06 AM
Quote from: Dragooon on March 18, 2009, 09:28:36 AM
Search for adding a tab in custom themes, you'll get plenty of results.

Can u Give Me Link ?

Link plz :)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 18, 2009, 10:56:10 AM
Searching makes your life better as well as others.
How do you add custom tabs to the Core (default) theme menu? (http://docs.simplemachines.org/index.php?topic=564)

Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 18, 2009, 10:58:08 AM
Quote from: sweetooo.baba on March 18, 2009, 10:46:46 AM
Can u Give Me Link ?

Link plz :)
We don't own Link. Zelda does.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: sweetooo.baba on March 18, 2009, 12:20:38 PM
Quote from: Dragooon on March 18, 2009, 10:56:10 AM
Searching makes your life better as well as others.
How do you add custom tabs to the Core (default) theme menu? (http://docs.simplemachines.org/index.php?topic=564)

but i have Custom theme
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Immortalk on March 18, 2009, 12:22:13 PM
Please creater of this mod or who can help me out,

I installed the package and now I dont know what to do. Please help me out it will be much appreciated.

EDIT:

I use v1.8 in my forum.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 18, 2009, 12:30:12 PM
You don't need to do anything after that.....you just need to just add the button in your theme.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Immortalk on March 18, 2009, 12:33:48 PM
upload it to your forum's root where SSI.php and index.php exists.

Do i need to do that and how can i add the button?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 18, 2009, 12:37:08 PM
No.

Search the forums for the button, I answered this in the same page.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Immortalk on March 18, 2009, 12:44:20 PM
I used search thing to search it but I still couldnt find it... Atleast give me a link or explain please? Thats would be much appreciated.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 18, 2009, 12:45:26 PM
Basically, you find the button code and copy it and change it. Do this, attach your theme's index.template.php here or ask in your theme's thread.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Immortalk on March 18, 2009, 12:54:49 PM
Can you explain more clearly?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 18, 2009, 01:13:35 PM
Oh, what is it today? Is it N00b Day? Or a silly prank?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Ranter on March 18, 2009, 04:36:48 PM
Today one of my users discovered what seems to be an opportunity for improvement in SMF  Media Gallery 1.5.5.

I have it installed and working as expected on an SMF 1.1.8 instance.  The user had uploaded a new graphic image file, copied the BBC embed code, then pasted it into a reply in an existing thread.  The embedded thumbnail appeared as expected in the post preview, but attempting to post her reply failed, producing a dire warning about database errors.

I was able to replicate the error by attempting to use the same BBC  embed code in a quick reply.  I saw a valid preview, posting produced the same database error message.

Looking at the error message I noted that it included a portion of the title of the post, but that the title was truncated at the location of an apostrophe character (single quote) in the word "Won't" in the title of the topic.

I aborted my attempt to reply, reloaded the topic in my browser, modified the topic by removing the perfectly legitimate apostrophe character from the contraction "Won't" in the title, and thereafter I was able to include the BBC embed code of the previously uploaded image.

The topic in question is here:
http://aintnogod.com/atheist/index.php/topic,3144.0.html

At least in my instance of SMF as modded, it seems SMG 1.5.5 has difficulty adding an embedded gallery graphic to an existing topic that has a single quote character in the topic title.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 18, 2009, 04:58:45 PM
Can anyone reproduce this in SMF 1.1.8?
I never had this problem with SMF 2...
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 19, 2009, 02:55:32 AM
OK it reproduces in 1.1.8.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 19, 2009, 03:12:27 AM
Uh... OK... But I don't have any 1.1.8 around... And it's my code... Ahh, the agony!
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Immortalk on March 19, 2009, 05:04:12 AM
Thank you very much for the help Dragooon but I need another last help. When i try to create a new album it says 'The required file isnt created, please make mgal_data and mgal_data/albums to 777

How can i fix that? need your help very much  :(
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: neil h on March 19, 2009, 05:07:57 AM
Quote from: Immortalk on March 19, 2009, 05:04:12 AM
Thank you very much for the help Dragooon but I need another last help. When i try to create a new album it says 'The required file isnt created, please make mgal_data and mgal_data/albums to 777

How can i fix that? need your help very much  :(

Go on to your server by using filezilla or any other FTP client and change the CHMOD permissions of those files to 777.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Immortalk on March 19, 2009, 05:09:13 AM
I tried that but it didnt work, another solution please?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 19, 2009, 05:09:47 AM
Announcing SMF Media Gallery 1.6 (http://smf-media.com/community/index.php?topic=701.0)

Quote from: Immortalk on March 19, 2009, 05:09:13 AM
I tried that but it didnt work, another solution please?
Ask your host then.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Immortalk on March 19, 2009, 05:10:32 AM
Host? what do you mean? isnt ftp my host?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 19, 2009, 05:12:16 AM
Host as in whom you're hosting your site with.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 19, 2009, 05:36:29 AM
Quote from: Dragooon on March 19, 2009, 02:55:32 AM
OK it reproduces in 1.1.8.
Arg... Spent an hour or so reinstalling stuff to get this to reproduce...

And of course, it didn't <_< (with v1.6, which has only few changes in the SMG tag area.)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 19, 2009, 06:06:39 AM
It doesn't works for me in 1.1.8 with the latest revision. I entered the topic as Test's and body as [smg id=1]
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 19, 2009, 06:53:14 AM
Oh... The title! Lol, I thought it was in the body. Okay good, I'll have a look then.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 19, 2009, 07:28:04 AM
Dragooon? I managed to trace it back to the problem.

The SMG tag calls loadMgal_settings() to retrieve the contents of $mgalSettings which is needed for later.
In turn, loadMGal_settings() will, on SMF1 only, call this in MGalCompat():

$_POST = stripslashes__recursive($_POST);

I'm guessing this is the reason for the crash (and indeed it no longer crashes when I comment that line out). $_POST['subject'] is supposed to be htmlspecialchars'ed at this point.

So I'm leaving it as is for now -- I'm leaving you with the responsibility to check whether that line should be left out or not because I didn't write this function and I can't say for sure why it's done. Maybe MGalCompat() should be skipped altogether when called from within smg_show_thumbnail() or something?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 19, 2009, 07:42:19 AM
I'll take care of it later.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 19, 2009, 09:40:20 AM
Quote from: Dragooon on March 19, 2009, 07:42:19 AM
I'll take care of it later.
I see you submitted a fix...
It still doesn't tell what the stripslashes stuff is there for, lol ;)

I modified the fix to be a bit shorter and more logical. (MGalCompat() didn't need an extra parameter, did it?)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 19, 2009, 09:41:26 AM
It was for a bug that was appearing in SMF 1.1 having slashes behind quotes.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 19, 2009, 10:19:07 AM
Oh yeah... That one, eheh.

Oh, while I have you there...

rev 786
* Moved all per-album permission strings from install-*.xml to MGallery language files
! Don't show "null" when asked for number of members in the guest group... Just say nothing (MGallery-Admin.php)
! Fixed undefined id that broke links in per-album permissions (MGallery.template.php)

Uh no you're gone already. Oh, who cares anyway ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Immortalk on March 19, 2009, 01:13:17 PM
Thats really bad. I changed all of these files' CHMOD to 777 but it still doesnt work. Please someone help!
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Immortalk on March 19, 2009, 03:48:56 PM
Sorry for the double post, is there any way to solve this problem?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Soms on March 20, 2009, 02:40:28 PM
I have used the search function to filter through all the pages. I could not find any related question/answer. Sometimes when a user places a new picture in his gallery, it shows the quote here as the posted date!
QuotePosted   01 January 1970, 01:00:00

Please how can this be rectified?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Kindred on March 20, 2009, 06:58:55 PM
Soms,

I suspect that is not a problem with the gallery, but a problem with the user's picture.
if you have "Use EXIF data as post date" turned on, then the system will take whatever the Photo's EXIF data is.

Yes, this means if they have screwed up their camera's date function, it could say 1970.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Xavi-Nena on March 20, 2009, 09:27:38 PM
I hate to sound redundant but I am willing to donate to help get the code mod needed to display created slideshows in TP blocks and articles.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 20, 2009, 10:41:37 PM
Well I can't do it because of lack of time, if someone else does it then I'm fine.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Soms on March 21, 2009, 06:59:11 AM
Quote from: Kindred on March 20, 2009, 06:58:55 PM
Soms,

I suspect that is not a problem with the gallery, but a problem with the user's picture.
if you have "Use EXIF data as post date" turned on, then the system will take whatever the Photo's EXIF data is.

Yes, this means if they have screwed up their camera's date function, it could say 1970.

Thanks for that.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: SgtMic on March 21, 2009, 01:44:53 PM
I have the latest version of SMG.

Is there a fix for this yet?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on March 21, 2009, 03:47:18 PM
Quote from: SgtMic on March 21, 2009, 01:44:53 PM
I have the latest version of SMG.

Is there a fix for this yet?

I didn't notice if it was still there, but that css error was at there from 1.5.2
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: SgtMic on March 21, 2009, 04:14:50 PM
Quote from: akyhne on March 21, 2009, 03:47:18 PM
Quote from: SgtMic on March 21, 2009, 01:44:53 PM
I have the latest version of SMG.

Is there a fix for this yet?

I didn't notice if it was still there, but that css error was at there from 1.5.2

I still have it with the newest version. Was there a fix for the older version?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on March 21, 2009, 04:22:04 PM
not as far as I know.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: SgtMic on March 21, 2009, 06:18:43 PM
Bummer.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on March 21, 2009, 06:34:54 PM
Hey guys... since smf did their server switchermaroo I haven't received topic replies. I just thought today, wtf, no replies in smg? So i came and checked it out and sure enough I had like 7 pages to catch up on.

Here's the posts I would have made tho:

Quote from: NaoWe don't own Link. Zelda does.

Somebody need rescuing?

Quote from: RanterToday one of my users discovered what seems to be an opportunity for improvement in SMF Media Gallery 1.5.5.

I have it installed and working as expected on an SMF 1.1.8 instance. The user had uploaded a new graphic image file, copied the BBC embed code, then pasted it into a reply in an existing thread. The embedded thumbnail appeared as expected in the post preview, but attempting to post her reply failed, producing a dire warning about database errors.

I was able to replicate the error by attempting to use the same BBC embed code in a quick reply. I saw a valid preview, posting produced the same database error message.

Looking at the error message I noted that it included a portion of the title of the post, but that the title was truncated at the location of an apostrophe character (single quote) in the word "Won't" in the title of the topic.

I aborted my attempt to reply, reloaded the topic in my browser, modified the topic by removing the perfectly legitimate apostrophe character from the contraction "Won't" in the title, and thereafter I was able to include the BBC embed code of the previously uploaded image.

The topic in question is here:
http://aintnogod.com/atheist/index.php/topic,3144.0.html

At least in my instance of SMF as modded, it seems SMG 1.5.5 has difficulty adding an embedded gallery graphic to an existing topic that has a single quote character in the topic title.

I have experienced this. The error you received was "hacking attempt" right? For some reason posting a ' in the topic title causes this. I've yet to figure out why :\
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 22, 2009, 12:33:00 AM
That issue was fixed in the SVN. It will make it in 1.5.6 or 1.6 b1.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: SgtMic on March 22, 2009, 01:30:49 AM
Quote from: Dragooon on March 22, 2009, 12:33:00 AM
That issue was fixed in the SVN. It will make it in 1.5.6 or 1.6 b1.

How about the .gif issue in admin?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: KahneFan on March 22, 2009, 01:43:14 AM
Could it be possible to allow user optioned ratings? For example, if I have users who want to post pics, but don't want them rated, they can choose so. And if other members want their pics rated, they can choose so. (upon loading a pic)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 22, 2009, 01:55:14 AM
Quote from: SgtMic on March 22, 2009, 01:30:49 AM
Quote from: Dragooon on March 22, 2009, 12:33:00 AM
That issue was fixed in the SVN. It will make it in 1.5.6 or 1.6 b1.

How about the .gif issue in admin?
I'll look at it, it has been on the bugtracker but I never got a change to look at it.

Quote from: KahneFan on March 22, 2009, 01:43:14 AM
Could it be possible to allow user optioned ratings? For example, if I have users who want to post pics, but don't want them rated, they can choose so. And if other members want their pics rated, they can choose so. (upon loading a pic)
Hm I can probably look at it, don't think its hard.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: KahneFan on March 22, 2009, 02:20:43 AM
Quote from: Dragooon on March 22, 2009, 01:55:14 AM
Hm I can probably look at it, don't think its hard.

Thanks for the quick reply. That would be great :D
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Xavi-Nena on March 22, 2009, 11:53:37 AM
Apply Filter: Only show the error messages of this URL  http://corsotalk.com/index.php?action=tpadmin;sa=blocks
Apply Filter: Only show the errors with the same message
2: Invalid argument supplied for foreach()
File: /home/anypupco/public_html/a-corsotalk/Themes/default/languages/MGallery.english.php (main sub template - eval?)
Line: 2773

Im getting this error in my error log...any suggestions? Im attaching file in question.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 22, 2009, 12:12:57 PM
Its a TP issue not SMG issue.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Kyrsten on March 23, 2009, 05:30:30 AM
I have tried to install this mod and now I am having problems.

I uploaded all of the files for version 1.5.5 then as instructed on manual instructions page for SMF version 2.0 RC1 which is what I am using for the forums, I edited the files with the code indicated where it was indicated and now I am getting the following error when I try to access my forum to actually complete the install itself:

Parse error: syntax error, unexpected ';', expecting ')' in /home/collwod0/public_html/smf/Sources/Subs.php on line 3865

This is what the code looks like at that section according to the php editor to locate the correction section of lines:

'logout' => array(
'title' => $txt['logout'],
'href' => $scripturl . '?action=logout;%1$s=%2$s',
'show' => !$user_info['is_guest'],
'sub_buttons' => array(
),
'is_last' => true,
),
$load_menu_js = false;
// Now we put the buttons in the context so the theme can use them.
$menu_buttons = array();
foreach ($buttons as $act => $button)


line #3865 is the $load_menu line speicifcally

I am sure the fix is something easy to someone who is very familiar with php but I am quite the newbie to say the least so any help is appreciated!
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 23, 2009, 05:43:12 AM
Use this code
         'logout' => array(
            'title' => $txt['logout'],
            'href' => $scripturl . '?action=logout;%1$s=%2$s',
            'show' => !$user_info['is_guest'],
            'sub_buttons' => array(
            ),
            'is_last' => true,
         ),
);
      $load_menu_js = false;
      // Now we put the buttons in the context so the theme can use them.
      $menu_buttons = array();
      foreach ($buttons as $act => $button)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Kyrsten on March 23, 2009, 05:47:42 AM
Thank you for your reply.  I did exactly that and replaced the code now I get this message:

Parse error: syntax error, unexpected ';', expecting ')' in /home/collwod0/public_html/smf/Sources/Subs.php on line 3865

and this is what the code now looks like:

         'logout' => array(
            'title' => $txt['logout'],
            'href' => $scripturl . '?action=logout;%1$s=%2$s',
            'show' => !$user_info['is_guest'],
            'sub_buttons' => array(
            ),
            'is_last' => true,
         ),
);
      $load_menu_js = false;
      // Now we put the buttons in the context so the theme can use them.
      $menu_buttons = array();
      foreach ($buttons as $act => $button)


line 3865 is now );


I also tried inserting an extra blank line after the ); as I notice that is how it is in the virgin upgrade file and that did not help either.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 23, 2009, 05:50:58 AM
Can you post the whole function?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Kyrsten on March 23, 2009, 05:58:27 AM
Quote from: Dragooon on March 23, 2009, 05:50:58 AM
Can you post the whole function?

arg every time I try to reply with the entire code I get this message from the forums here:

Fatal error: Maximum execution time of 30 seconds exceeded in /home/sites/simplemachines.org/security/Sources/Load.php(199) : runtime-created function on line 3
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Kyrsten on March 23, 2009, 06:01:23 AM
Did I follow the install steps incorrectly?  Should I have uploaded the files, then installed the mod, then manually edited the code in the files as instructed?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 23, 2009, 06:01:56 AM
Don't post the whole file, post only the function. Make sure to avoid <?php and ?> tags. Or attach it.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Kyrsten on March 23, 2009, 06:03:45 AM

// All the buttons we can possible want and then some, try pulling the final list of buttons from cache first.
if (($buttonData = cache_get_data('menu_buttons-' . implode('_', $user_info['groups']) . '-' . $user_info['language'], $cacheTime)) === null || time() - $cacheTime <= $modSettings['settings_updated'])
{
$buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
),
'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
),
),
'search' => array(
'title' => $txt['search'],
'href' => $scripturl . '?action=search',
'show' => $context['allow_search'],
'sub_buttons' => array(
),
),
'admin' => array(
'title' => $txt['admin'],
'href' => $scripturl . '?action=admin',
'show' => $context['allow_admin'],
'sub_buttons' => array(
'featuresettings' => array(
'title' => $txt['modSettings_title'],
'href' => $scripturl . '?action=admin;area=featuresettings',
'show' => allowedTo('admin_forum'),
),
'packages' => array(
'title' => $txt['package'],
'href' => $scripturl . '?action=admin;area=packages',
'show' => allowedTo('admin_forum'),
),
'errorlog' => array(
'title' => $txt['errlog'],
'href' => $scripturl . '?action=admin;area=logs;sa=errorlog;desc',
'show' => allowedTo('admin_forum') && !empty($modSettings['enableErrorLogging']),
),
'permissions' => array(
'title' => $txt['edit_permissions'],
'href' => $scripturl . '?action=admin;area=permissions',
'show' => allowedTo('manage_permissions'),
),
),
),
'moderate' => array(
'title' => $txt['moderate'],
'href' => $scripturl . '?action=moderate',
'show' => $context['allow_moderation_center'],
'sub_buttons' => array(
'modlog' => array(
'title' => $txt['modlog_view'],
'href' => $scripturl . '?action=moderate;area=modlog',
'show' => !empty($modSettings['modlog_enabled']),
),
'poststopics' => array(
'title' => $txt['mc_unapproved_poststopics'],
'href' => $scripturl . '?action=moderate;area=postmod;sa=posts',
'show' => $modSettings['postmod_active'],
),
'attachments' => array(
'title' => $txt['mc_unapproved_attachments'],
'href' => $scripturl . '?action=moderate;area=attachmod;sa=attachments',
'show' => $modSettings['postmod_active'],
),
'reports' => array(
'title' => $txt['mc_reported_posts'],
'href' => $scripturl . '?action=moderate;area=reports',
'show' => true,
),
),
),
'profile' => array(
'title' => $txt['profile'],
'href' => $scripturl . '?action=profile',
'show' => $context['allow_edit_profile'],
'sub_buttons' => array(
'summary' => array(
'title' => $txt['summary'],
'href' => $scripturl . '?action=profile',
'show' => true,
),
'account' => array(
'title' => $txt['account'],
'href' => $scripturl . '?action=profile;area=account',
'show' => allowedTo(array('profile_identity_any', 'profile_identity_own', 'manage_membergroups')),
),
'profile' => array(
'title' => $txt['forumprofile'],
'href' => $scripturl . '?action=profile;area=forumprofile',
'show' => allowedTo(array('profile_extra_any', 'profile_extra_own')),
),
),
),
'pm' => array(
'title' => $txt['pm_short'],
'href' => $scripturl . '?action=pm',
'show' => $context['allow_pm'],
'sub_buttons' => array(
'pm_read' => array(
'title' => $txt['pm_menu_read'],
'href' => $scripturl . '?action=pm',
'show' => allowedTo('pm_read'),
),
'pm_send' => array(
'title' => $txt['pm_menu_send'],
'href' => $scripturl . '?action=pm;sa=send',
'show' => allowedTo('pm_send'),
),
),
),
'calendar' => array(
'title' => $txt['calendar'],
'href' => $scripturl . '?action=calendar',
'show' => $context['allow_calendar'],
'sub_buttons' => array(
'view' => array(
'title' => $txt['calendar_menu'],
'href' => $scripturl . '?action=calendar',
'show' => allowedTo('calendar_post'),
),
'post' => array(
'title' => $txt['calendar_post_event'],
'href' => $scripturl . '?action=calendar;sa=post',
'show' => allowedTo('calendar_post'),
),
),
'mgallery' => array(
'title' => $txt['mgallery_gallery'],
'href' => $scripturl . '?action=mgallery',
'show' => allowedTo('mgallery_access'),
'sub_buttons' => array(),
),
'mlist' => array(
'title' => $txt['members_title'],
'href' => $scripturl . '?action=mlist',
'show' => $context['allow_memberlist'],
'sub_buttons' => array(
'mlist_view' => array(
'title' => $txt['mlist_menu_view'],
'href' => $scripturl . '?action=mlist',
'show' => true,
),
'mlist_search' => array(
'title' => $txt['mlist_search'],
'href' => $scripturl . '?action=mlist;sa=search',
'show' => true,
),
),
),
'login' => array(
'title' => $txt['login'],
'href' => $scripturl . '?action=login',
'show' => $user_info['is_guest'],
'sub_buttons' => array(
),
),
'register' => array(
'title' => $txt['register'],
'href' => $scripturl . '?action=register',
'show' => $user_info['is_guest'],
'sub_buttons' => array(
),
'is_last' => true,
),
         'logout' => array(
            'title' => $txt['logout'],
            'href' => $scripturl . '?action=logout;%1$s=%2$s',
            'show' => !$user_info['is_guest'],
            'sub_buttons' => array(
            ),
            'is_last' => true,
         ),
);

      $load_menu_js = false;
      // Now we put the buttons in the context so the theme can use them.
      $menu_buttons = array();
      foreach ($buttons as $act => $button)
if (!empty($button['show']))
{
$button['active_button'] = false;

// Make sure the last button truely is the last button.
if (!empty($button['is_last']))
{
if (isset($last_button))
unset($menu_buttons[$last_button]['is_last']);
$last_button = $act;
}

// Go through the sub buttons if there are any.
if (!empty($button['sub_buttons']))
foreach ($button['sub_buttons'] as $key => $subbutton)
{
if (empty($subbutton['show']))
unset($button['sub_buttons'][$key]);
}

// If this still has some sub buttons then we need to tell the template to load the menu javascript file.
if (!empty($button['sub_buttons']))
$load_menu_js = true;

$menu_buttons[$act] = $button;
}
$buttonData = array($menu_buttons, $load_menu_js);

if (!empty($modSettings['cache_enable']) && $modSettings['cache_enable'] >= 2)
cache_put_data('menu_buttons-' . implode('_', $user_info['groups']) . '-' . $user_info['language'], $buttonData, $cacheTime);
}

list($context['menu_buttons'], $context['load_menu_js']) = $buttonData;

// Logging out requires the session id in the url.
if (isset($context['menu_buttons']['logout']))
$context['menu_buttons']['logout']['href'] = sprintf($context['menu_buttons']['logout']['href'], $context['session_var'], $context['session_id']);

// Figure out which action we are doing so we can set the active tab.
// Default to home.
$current_action = 'home';

if (isset($context['menu_buttons'][$context['current_action']]))
$current_action = $context['current_action'];
elseif ($context['current_action'] == 'search2')
$current_action = 'search';
elseif ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';
elseif ($context['current_action'] == 'register2')
$current_action = 'register';
elseif (in_array($context['current_action'], array('login2', 'reminder')))
$current_action = 'login';

$context['menu_buttons'][$current_action]['active_button'] = true;

// Only load the menu javascript stuff when we have to.
$context['load_menu_js'] = false;

if (!$user_info['is_guest'] && $context['user']['unread_messages'] > 0 && isset($context['menu_buttons']['pm']))
$context['menu_buttons']['pm']['title'] .= ' [<strong>'. $context['user']['unread_messages'] . '</strong>]';
}

// Generate a random seed and ensure it's stored in settings.
function smf_seed_generator()
{
global $modSettings;

// Never existed?
if (empty($modSettings['rand_seed']))
{
$modSettings['rand_seed'] = microtime() * 1000000;
updateSettings(array('rand_seed' => $modSettings['rand_seed']));
}

if (@version_compare(PHP_VERSION, '4.2.0') == -1)
{
$seed = ($modSettings['rand_seed'] + ((double) microtime() * 1000003)) & 0x7fffffff;
mt_srand($seed);
}

// Change the seed.
updateSettings(array('rand_seed' => mt_rand()));
}



lines 3670 thru 3933


could it be a php.ini problem??

I am running OSCommerce on the site, but it is seperated in its own folder away from smf, and it seems to have no issues this far
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 23, 2009, 06:04:04 PM
Quote from: Dragooon on March 22, 2009, 01:55:14 AM
Quote from: KahneFan on March 22, 2009, 01:43:14 AM
Could it be possible to allow user optioned ratings? For example, if I have users who want to post pics, but don't want them rated, they can choose so. And if other members want their pics rated, they can choose so. (upon loading a pic)
Hm I can probably look at it, don't think its hard.
With 1.6: create a user album, create a permission profile where readers can't rate pics. Upload your pics there. Doesn't seem that hard to me...

@Exif problem: to-do: do not store Exif date if it's < 1971. I hardly see how a picture taken back in 1970 could have a Exif date anyway ;) Unless it's been entered manually...
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 24, 2009, 01:50:59 PM
rev 8000
! If Exif year is set to 1970, it's broken, so skip Exif date

--> here's hoping this will fix the Exif problem...?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 24, 2009, 01:56:13 PM
8000? Last time I checked we were up to 798...how many commits you made?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 24, 2009, 02:51:11 PM
I meant 800, lol... Got a bit carried away it seems 8)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: sheryltoo on March 24, 2009, 05:16:52 PM
Quote from: Immortalk on March 19, 2009, 05:04:12 AM
When i try to create a new album it says 'The required file isnt created, please make mgal_data and mgal_data/albums to 777

How can i fix that? need your help very much  :(

I too am having this problem and my folders are all set to 777.
I read one of the responses that said to contact your host on this but what exactly am I suppose to tell my host?
I installed this mod on two different site and one is working and another one keeps giving me that chmod error when I try and create an album.

I've tried uninstalling and reinstalling the mod a couple times. I even tried deleting the mgal_data folder and all it's contents and uploaded a new folder and content to my site, making the permissions 777, but that didn't help.
What exactly does my host have to do to make this work on a second site?
Sheryl
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: L'AltroWeb on March 24, 2009, 11:30:35 PM
Hi! I've upload over 500 images (with mass upload) in my gallery but at 90% it will be interrupt and after some minutes i've refreshed my pages.
Over 60images isn't present.
Now if i re upload all images i receive all duplicated or it insert only new images?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 25, 2009, 01:46:55 AM
Quote from: sheryltoo on March 24, 2009, 05:16:52 PM
Quote from: Immortalk on March 19, 2009, 05:04:12 AM
When i try to create a new album it says 'The required file isnt created, please make mgal_data and mgal_data/albums to 777

How can i fix that? need your help very much  :(

I too am having this problem and my folders are all set to 777.
I read one of the responses that said to contact your host on this but what exactly am I suppose to tell my host?
I installed this mod on two different site and one is working and another one keeps giving me that chmod error when I try and create an album.

I've tried uninstalling and reinstalling the mod a couple times. I even tried deleting the mgal_data folder and all it's contents and uploaded a new folder and content to my site, making the permissions 777, but that didn't help.
What exactly does my host have to do to make this work on a second site?
Sheryl
Is this a fresh install? What errors does it says?

Quote from: Dark-Wolf on March 24, 2009, 11:30:35 PM
Hi! I've upload over 500 images (with mass upload) in my gallery but at 90% it will be interrupt and after some minutes i've refreshed my pages.
Over 60images isn't present.
Now if i re upload all images i receive all duplicated or it insert only new images?
Can you link to a phpinfo file?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: L'AltroWeb on March 25, 2009, 05:55:38 AM
Quote from: Dragooon on March 25, 2009, 01:46:55 AM
Can you link to a phpinfo file?
Yes: http://darkwolf.altervista.org/forum/info.php
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 25, 2009, 05:59:46 AM
Is that a standard phpinfo with
<?php
phpinfo
();
?>

?
If no create one with that.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: L'AltroWeb on March 25, 2009, 06:04:21 AM
Quote from: Dragooon on March 25, 2009, 05:59:46 AM
Is that a standard phpinfo with
<?php
phpinfo
();
?>

?
If no create one with that.
yes i've changed only title ;)
I've maked now a virgin phpinfo(): http://darkwolf.altervista.org/script/info2.php
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 25, 2009, 06:10:31 AM
Uh you should ask your host for the values of post_max_size and upload_max_filesize, it doesn't defines them there.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: L'AltroWeb on March 25, 2009, 06:29:19 AM
Quote from: Dragooon on March 25, 2009, 06:10:31 AM
Uh you should ask your host for the values of post_max_size and upload_max_filesize, it doesn't defines them there.
I've this value defined in my htaccess:
# av:PHP-upload
php_value upload_max_filesize 10M
php_value post_max_size 10M
php_value max_input_time 300
# PHP-upload
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 25, 2009, 06:30:30 AM
Any file above 10 MB you might be trying to upload? Or something that took more than 300 seconds.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: L'AltroWeb on March 25, 2009, 06:37:16 AM
Quote from: Dragooon on March 25, 2009, 06:30:30 AM
Any file above 10 MB you might be trying to upload? Or something that took more than 300 seconds.
All small files (150/200k) but in total over 80MB of files.
I don't know the reason but simply i've see all locked to 90%.
Isn't a great problem, my question is if media gallery can upload duplicate or not :)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 25, 2009, 06:42:44 AM
SMG can upload duplicate, it won't be a problem(Unless uploading duplicate is the problem).
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: sheryltoo on March 25, 2009, 07:43:23 AM
Quote from: Dragooon on March 25, 2009, 01:46:55 AM
Quote from: sheryltoo on March 24, 2009, 05:16:52 PM
Quote from: Immortalk on March 19, 2009, 05:04:12 AM
When i try to create a new album it says 'The required file isnt created, please make mgal_data and mgal_data/albums to 777

How can i fix that? need your help very much  :(

I too am having this problem and my folders are all set to 777.
I read one of the responses that said to contact your host on this but what exactly am I suppose to tell my host?
I installed this mod on two different site and one is working and another one keeps giving me that chmod error when I try and create an album.

I've tried uninstalling and reinstalling the mod a couple times. I even tried deleting the mgal_data folder and all it's contents and uploaded a new folder and content to my site, making the permissions 777, but that didn't help.
What exactly does my host have to do to make this work on a second site?
Sheryl
Is this a fresh install? What errors does it says?


This is the error I get after I try to create a user album:
An Error Has Occurred!
This album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums is chmodded to 777 

Here's the error that shows up in my error log:

http://subdomain.domainname.com/index.php?action=mgallery;sa=mya;do=add 
This album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums is chmodded to 777


Both albums are chmodded to 777.

Here's the steps I took to try and get this installed:
First of all, I had this installed on my site when I was running 1.1.7 and it worked.
When I upgraded to SMF 2.0 RC1, I uninstalled all my mods including this one.
I then tried to install it again with a newer version from the one that was previously installed and all seemed to look ok except it tried to recreate an empty folder I had on 1.1.7 but the folder icon showed as a red x.
I deleted the folder since there wasn't anything in it, and tried to create a new folder and that's when the chmod errors started.

I checked my permissions and they were set correctly so I uninstalled everything, including the tables and tried to install the mod again but still got the chmod error.

I tried changing the permissions to 755 but that didn't help.
So I deleted all the folders attached with this mod and tried to just install the folders again to see if that would help.
The mgal_data folder wasn't set to 777 so I tried to change the permissions and got an error saying that operation wasn't permitted.
I couldn't change any permissions for the included folders so I submitted a ticket to my host and they fixed the permission problem only it didn't help with this mod's problem.
I'm still getting an error saying my files aren't chmodded properly but they are.

I don't know what else to try.
Sheryl
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 25, 2009, 07:49:31 AM
OK So mgal_data isn't set to 777 and when trying to do so it says operation not permitted? Contact your host.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: sheryltoo on March 25, 2009, 08:32:07 AM
QuoteI couldn't change any permissions for the included folders so I submitted a ticket to my host and they fixed the permission problem only it didn't help with this mod's problem


QuoteOK So mgal_data isn't set to 777 and when trying to do so it says operation not permitted? Contact your host.

See above. I did that already, changed the permissions to 777, but  it didn't get rid of the error saying my folders aren't chmodded correctly. They are all "now chmodded too 777" after my host fixed the permission problem.
Sheryl


Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 25, 2009, 08:37:22 AM
What are the sub-folders in mgal_data?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: asma on March 25, 2009, 10:46:47 AM
Hi, mr dragooon, after i install the gallery, i get this error... help me please..

Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (latin1_general_ci,IMPLICIT) for operation 'ifnull'
File: /home/duniccom/public_html/Sources/Subs-MGallery.php
Line: 3365

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.8, while your database is at version 1.1.5. The above error might possibly go away if you execute the latest version of upgrade.php.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: sheryltoo on March 25, 2009, 12:35:47 PM
Quote from: Dragooon on March 25, 2009, 08:37:22 AM
What are the sub-folders in mgal_data?

album_icons
albums
generic_images
tmp

And then an index file: index.php
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 25, 2009, 12:40:40 PM
OK What are there permissions and what are the folder inside albums?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: sheryltoo on March 25, 2009, 01:32:36 PM
Quote from: Dragooon on March 25, 2009, 12:40:40 PM
OK What are there permissions and what are the folder inside albums?
The permissions are all set to 777.  The index.php file is set to 0644
The only thing inside albums is another index.php file set to 0666
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 25, 2009, 01:44:55 PM
Hm so you get that error when trying to add an album correct? If so it should work....
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 25, 2009, 03:26:37 PM
Quote from: Dragooon on March 25, 2009, 06:42:44 AM
SMG can upload duplicate, it won't be a problem(Unless uploading duplicate is the problem).
But it won't recognize duplicates for what they are and toss them away.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: kichu on March 26, 2009, 01:10:38 AM
Am using TinyPortal, i want to Display Top Posters of Media Gallery in Blocks ... Can u help me :) thx
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 26, 2009, 03:27:01 AM
ok got a new problem it seems...

I am trying to upload a 54meg video to my gallery.   I have the max file size set to 104000 my max directory size is set to 104000000
my php.ini is set to allow me to upload a max file size of 64meg

however, everytime i try to upload the 54meg video... it acts like it may be doing it then 10 mins or so later i just gives me "page can not be displayed" error and nothing more.

Whats happening and how do I fix this?

Please help
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 26, 2009, 04:18:05 AM
Apache's timing out.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Harvester on March 26, 2009, 11:08:25 AM
What do I do to fix that? or what do I tell my host to do to get them to fix it?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 27, 2009, 02:27:56 PM
smf-media.com has been down for over a day for me... Is it only for me?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on March 27, 2009, 02:36:23 PM
It has been working fine for me?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: sheryltoo on March 27, 2009, 03:02:43 PM
Quote from: Dragooon on March 25, 2009, 01:44:55 PM
Hm so you get that error when trying to add an album correct? If so it should work....
Sorry I'm just getting back to you but I guess something happened to my notifications on this topic.

Yes, that is correct. When I try and create an album I get the error saying I can't because it thinks mgal_data and ablums isn't chmodded correctly so any ideas on how I can get this to work or am I plain out of luck?
Sheryl
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on March 27, 2009, 03:21:24 PM
Quote from: Dragooon on March 27, 2009, 02:36:23 PM
It has been working fine for me?
Well, I guess there's a routing problem between my ISP and your host then.
Hopefully it'll be resolved soon...
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on March 27, 2009, 05:30:05 PM
I was there several times today. No issues.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: madinmex on March 27, 2009, 09:56:43 PM
I would like to auto approve albums and photos for all above New members (newbies) I have tried all that I can see but am still getting no where. Can some one (please) point me in the right direction. 

I've been though all the pages, maybe I have missed it (Sorry if I have)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on March 27, 2009, 10:01:59 PM
Admin -> Permissions -> [YourNoNewbieGroup] ... as I recall.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: madinmex on March 28, 2009, 12:15:15 AM
Thanks akyhne

All I have is (below)    Now if I change the regular members it includes newbies as well  or are you telling me something else that I cannot fathom. Sorry if I am misunderstanding.  Many thanks (still trying)  :'(


Guests (?) 
Regular Members (?)    
Administrator
Global moderator  (?)    
Moderator (?)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on March 28, 2009, 08:30:58 AM
Regular Members are the same as what you call newbies. It's the standard group people will be members of, when they sign into your forum.

So you need to add an extra group for people that should have special rights to the gallery.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: stevefdl on March 28, 2009, 12:16:02 PM
I just installed the gallery last night.

A member posted a new gallery with 10 images. As administrator, I was able to approve the gallery, but can't approve the 10 images. When I click on approve, nothing happens.

Any thoughts?

My Global Mods are setup to approve and administrate, but the same thing happens for them.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: mark7144 on March 28, 2009, 04:51:36 PM
Quote from: Nao 尚 on March 27, 2009, 03:21:24 PM
Quote from: Dragooon on March 27, 2009, 02:36:23 PM
It has been working fine for me?
Well, I guess there's a routing problem between my ISP and your host then.
Hopefully it'll be resolved soon...
Or it could be your ISP's DNS servers are crap which is fairly common. Just use OpenDNS, that should fix your problem.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on March 28, 2009, 06:00:51 PM
Upload of large files produces errors in SMF 1.1.8 (SMG 1.5.5):

SMF 1.1.8: "An error happened during the upload process, please try again or contact the administrator"

SMF 2.0 RC1: No issues.

Both forums are running on the same server with the same php.ini settings. I have no cache enhancements on my hosts server.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Akyhne on March 28, 2009, 06:27:50 PM
... and I can't play back videos in the SMF 1.1.8 forum. It shows that it prepares the video, plays a second (no video), and then stops as it was done.
It's any kind of video format.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: barnic on March 30, 2009, 04:58:53 AM
Hello,
sorry for my bad english.

SMF 2.0 RC1

when I click in "apply mod", my browser (IE, FireFox, Chrome) don't finish the job.
I wait...and wait...and wait.......but nothing happens.

I think the problem is during the execution of db_mgallery.php.

Before this problem I've another error.
It was unable to create the tables in my DB.
So I created manually by export/import sql from another smf forum when it works fine.

my question:
the "db_mgallery.php" file works only into the DB?
if yes......can you post only the sql code?
thanks

Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: LinK187 on March 30, 2009, 05:22:16 PM
Quote from: barnic on March 30, 2009, 04:58:53 AM
Hello,
sorry for my bad english.

SMF 2.0 RC1

when I click in "apply mod", my browser (IE, FireFox, Chrome) don't finish the job.
I wait...and wait...and wait.......but nothing happens.

I think the problem is during the execution of db_mgallery.php.

Before this problem I've another error.
It was unable to create the tables in my DB.
So I created manually by export/import sql from another smf forum when it works fine.

my question:
the "db_mgallery.php" file works only into the DB?
if yes......can you post only the sql code?
thanks



Install manually. After you copy/modify the appropriate files. Run db_mgallery.php from your browser. :)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: buxx on March 30, 2009, 05:59:00 PM
Nice mod, love to play with it, but just two simple questions.
1 - Is there a help file available, i can only find this topic, but i do not think this is very readable when i look for and answer.
2 - While setting the permissions for my usergroups the tekst before the checkboxes is nog there, see screenshot, so it is is a bit difficult to set everything okay.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fb2.s3.p.quickshareit.com%2Ffiles%2Fafbeelding299adb.png&hash=c5e0e6a5a48466affdfd4b8d568d303d6475ed2e)
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Soms on March 30, 2009, 06:13:19 PM
Quote from: buxx on March 30, 2009, 05:59:00 PM
Nice mod, love to play with it, but just two simple questions.
1 - Is there a help file available, i can only find this topic, but i do not think this is very readable when i look for and answer.
2 - While setting the permissions for my usergroups the tekst before the checkboxes is nog there, see screenshot, so it is is a bit difficult to set everything okay.

You have to make a copy of MGallery.english.php and rename the copy to MGallery.dutch.php. Check that the appropriate texts in Modifications.english.php are also translated to Dutch in the Modifications.dutch.php file. You can find all of these files in Themes/default/languages/
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: sheryltoo on March 30, 2009, 07:17:15 PM
I searched this topic for the problem I'm having but didn't find anything so I hope I'm not duplicating something.

After several days and attempts to get this mod to work on my site, I finally succeeded only why is it that my album descriptions are showing with html codes?

When ever I typed something in the description box, it shows up with starting and ending html tags.
For instance, my first sentence shows this at the beginning of it <p>
and then ends with the ending paragraph tag, </p>.
I didn't use any html tags so why do they keep showing up?
Sheryl
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: pheasant_plucker on April 01, 2009, 04:30:14 PM
Call me stupid but I have looked and looked for the coppermine convertor and can't find it  ??? Does it still exist because I want to convert to SMG, after running some trials I'm extremely impressed with it!

Gerry
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Shaden on April 01, 2009, 04:50:22 PM
Hi Sheryl,

May I ask how you solved your permission issues when trying to create a gallery? I'm having the same issues. I have worked around it by downgrading to 1.5.4, but I would like to use the latest version.

Thanks,

Aaron

Quote from: sheryltoo on March 30, 2009, 07:17:15 PM
After several days and attempts to get this mod to work on my site, I finally succeeded only why is it that my album descriptions are showing with html codes?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Chris@houseofgreybook on April 01, 2009, 04:54:00 PM
Hey all...so eager to try this mod out, but I think my karma mod is interfearing with it. In the installer, ./Sources/Load.php is failing in the second replacement which is
Find mem.last_login, mem.karma_good,
Replace mem.last_login, mem.karma_good, mem.mgal_total_items, mem.mgal_total_comments,


Line 961 of the Load.php file reads:
mem.birthdate, mem.icq, mem.aim, mem.yim, mem.msn, mem.posts, mem.last_login, mem.karma_good, mem.skype, mem.karma_disabled,

Can I go ahead and make that replacement manually without running into errors?

Thanks for the leg up,
CS
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: sheryltoo on April 01, 2009, 05:17:28 PM
Quote from: Usenet Guy on April 01, 2009, 04:50:22 PM
Hi Sheryl,

May I ask how you solved your permission issues when trying to create a gallery? I'm having the same issues. I have worked around it by downgrading to 1.5.4, but I would like to use the latest version.

Thanks,

Aaron


I think my problem all stemmed from the fact that for some reason I lost the ability to change some permissions on my files in cpanel.
I "think" I know what caused that problem but since I'm not absolutely sure, I don't want to place any blame.
In any event, even though my files showed the right permission, I was getting an error saying they weren't chmodded right.
I tried to uninstall it and reinstall it a couple times and had no luck.
When I uninstalled it, I didn't remove the files that didn't remove themselves with the uninstall.
So after doing this a couple times, I decided to manually remove anything that pertained to this mod and then try reinstalling it.
When I did, my mgal_data folder didn't have the right permission and this time I couldn't change it to all 7's.
I had to contact my host to fix this.
I was then able to change my permissions but I still got the same chmod error.
After thinking about this for a few days, I decided to see what would happen if I once again unistalled everything and reinstalled the mod thinking that perhaps things didn't really go right on account of not being able to change some permissions and it seemed to do the trick.

Do you have any problems changing permissions on any files or folders in cpanel? If you do, you might have the same problem as me.
BTW, do you have any portals installed?
Sheryl
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Chris@houseofgreybook on April 01, 2009, 05:52:13 PM
Ok so I went ahead with the install...now only Admins can see the Gallery button on the nav bar at the top. I chekced through the setting and made sure Privacy was set to everyone, but no dice. Any shove in the right direction would be apprciated.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on April 02, 2009, 01:28:11 AM
Quote from: Chris@houseofgreybook on April 01, 2009, 05:52:13 PM
Ok so I went ahead with the install...now only Admins can see the Gallery button on the nav bar at the top. I chekced through the setting and made sure Privacy was set to everyone, but no dice. Any shove in the right direction would be apprciated.
Make sure permissions are correctly set for membergroups.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Chris@houseofgreybook on April 02, 2009, 01:47:49 AM
Worked like a charm. Thanks for the quick reply.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: pheasant_plucker on April 02, 2009, 10:48:01 AM
No news on the coppermine convertor?

Gerry
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Dragooon on April 02, 2009, 11:19:19 AM
Quote from: pheasant_plucker on April 02, 2009, 10:48:01 AM
No news on the coppermine convertor?

Gerry
What? It is on the SMG page....look at mod's description to know how to use it.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: buxx on April 03, 2009, 07:18:26 PM
Quote from: Soms on March 30, 2009, 06:13:19 PM
Quote from: buxx on March 30, 2009, 05:59:00 PM
Nice mod, love to play with it, but just two simple questions.
1 - Is there a help file available, i can only find this topic, but i do not think this is very readable when i look for and answer.
2 - While setting the permissions for my usergroups the tekst before the checkboxes is nog there, see screenshot, so it is is a bit difficult to set everything okay.

You have to make a copy of MGallery.english.php and rename the copy to MGallery.dutch.php. Check that the appropriate texts in Modifications.english.php are also translated to Dutch in the Modifications.dutch.php file. You can find all of these files in Themes/default/languages/

To bad, this did not work. Any other option?
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Özgür on April 03, 2009, 07:33:53 PM
Quote from: buxx on April 03, 2009, 07:18:26 PM
Quote from: Soms on March 30, 2009, 06:13:19 PM
Quote from: buxx on March 30, 2009, 05:59:00 PM
Nice mod, love to play with it, but just two simple questions.
1 - Is there a help file available, i can only find this topic, but i do not think this is very readable when i look for and answer.
2 - While setting the permissions for my usergroups the tekst before the checkboxes is nog there, see screenshot, so it is is a bit difficult to set everything okay.

You have to make a copy of MGallery.english.php and rename the copy to MGallery.dutch.php. Check that the appropriate texts in Modifications.english.php are also translated to Dutch in the Modifications.dutch.php file. You can find all of these files in Themes/default/languages/

To bad, this did not work. Any other option?

You can use Load Standard Language (http://custom.simplemachines.org/mods/index.php?mod=615) modification.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: PRaDiUS on April 05, 2009, 02:39:24 AM
Love the mod. I have a need to add many General Albums, but I don't want the page for my media gallery to be a mile long. Is there any way to seperate the General Albums into pages? Like 1, 2, 3, 4, ..11. Maybe have it list 10 General Albums per page? If there is a way to do this, I have overlooked it.

Thanks so much.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: Nao 尚 on April 05, 2009, 03:43:42 AM
I think it does.....? Well at least User Albums do.
Title: Re: SMF Media Gallery (SMG) - 1.5.5 released
Post by: PRaDiUS on April 05, 2009, 03:54:42 AM
Quote from: Nao 尚 on April 05, 2009, 03:43:42 AM
I think it does.....? Well at least User Albums do.

I know, I don't understand why it does not do it for General Albums aswell. Especially since they are on the front page of the media gallery. If there is any way to fix this manually by adding in some script, I'd love to do so if someone knows how.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 05, 2009, 10:20:40 AM
SMF Media Gallery 1.5.6 released!

From the changelog
Version 1.5.6     April 5, 2009
-----------------------------------------------------------------
! Added preventive fix for Aeva 6.0 (embedded videos wouldn't be centered.)
! Exif data fixes
! User albums with child albums were screwing up pagination count
! Using BBC with apostrophes in title can screw up post in SMF 1
! Don't show HTML embed code if it uses SWFObject
+ Add "User albums" link to linktree if viewing a user album's index
! Fixed Quicktime support
! If Exif year is set to 1970, it's broken, so skip Exif date
! WMV player for Windows triggered an "access denied" error for everyone, apparently because it completely ignores cookies
! Fixed potential undefined error in embed object code
! Wmv files embedded via [smg] would always autoplay
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on April 05, 2009, 12:19:47 PM
Sweet man, but in the next update can you make it so instead of general albums being one page a mile long - seperate general albums into pages of 10 albums per page? That would make this perfect.

Quote from: Dragooon on April 05, 2009, 10:20:40 AM
SMF Media Gallery 1.5.6 released!

From the changelog
Version 1.5.6     April 5, 2009
-----------------------------------------------------------------
! Added preventive fix for Aeva 6.0 (embedded videos wouldn't be centered.)
! Exif data fixes
! User albums with child albums were screwing up pagination count
! Using BBC with apostrophes in title can screw up post in SMF 1
! Don't show HTML embed code if it uses SWFObject
+ Add "User albums" link to linktree if viewing a user album's index
! Fixed Quicktime support
! If Exif year is set to 1970, it's broken, so skip Exif date
! WMV player for Windows triggered an "access denied" error for everyone, apparently because it completely ignores cookies
! Fixed potential undefined error in embed object code
! Wmv files embedded via [smg] would always autoplay

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 05, 2009, 12:48:44 PM
That might be in 1.6, not in 1.5.7(If it ever comes out). I might look into implementing it.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 05, 2009, 01:52:57 PM
It'll be in 1.6 Beta at best.

Dragooon, you forgot to include this in the changelog... v1.5.6 = rev 806, right?

Rev 806
! Moved a block code within the core Subs.php file to fix audio/video embeds no longer working. (install-1.1.xml, install-2.0.xml, both branches)

Could be "! Audio/video embeds wouldn't play when using the smg tag"
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: ttuu on April 05, 2009, 08:36:18 PM
u can add watermark for this mod?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 06, 2009, 01:46:31 AM
If someone is willing to pay for a mod, yes.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: ttuu on April 06, 2009, 09:03:39 AM
Quote from: Nao 尚 on April 06, 2009, 01:46:31 AM
If someone is willing to pay for a mod, yes.
Some?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 06, 2009, 09:52:36 AM
Some what?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: ttuu on April 06, 2009, 11:57:40 AM
How much money?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on April 06, 2009, 12:05:21 PM
Manually updating from 1.5.5 to 1.5.6 would be as easy as uploading and overwriting the mgallery folder in the theme folder and then running db_mgallery.php ? Or is there more to this particular update than the past 3...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 06, 2009, 02:46:49 PM
@ttuu> Considering it's a new feature and a lot of work and I'm not interested in doing it -- at least $200. That's a feature in SGP which is worth $50, so if you can get everyone who requested that feature (a dozen users?) to shell out $20, you're done, I'll do it.

@LinK87> I made a last minute change in the install files to fix support for video/audio in [smg] tags, so you'll have to uninstall/reinstall.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: ttuu on April 06, 2009, 04:00:49 PM
Quote from: Nao 尚 on April 06, 2009, 02:46:49 PM
@ttuu> Considering it's a new feature and a lot of work and I'm not interested in doing it -- at least $200. That's a feature in SGP which is worth $50, so if you can get everyone who requested that feature (a dozen users?) to shell out $20, you're done, I'll do it.
Okay. I am willing to pay 20 dollars for it. If there is anyone else who wants will write.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Tiribulus on April 06, 2009, 06:51:22 PM
I just talked to my wife who is very protective of her botanical photography and while I know how to do watermarking already, I'll pitch in 20 if we get enough contributors. Better do it quick though, pretty soon 200+ American dollars may not get you a candy bar  >:(
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Bugpac ™ on April 06, 2009, 09:42:46 PM
I have a watermark on my gallery now, All tho i keep getting referer errors, I may have interest in contributing, tho i would hate to see it free afterwards...

Anyhow i just upgraded to 1.5.6 I am still running smf 2.0 beta 4, In the  "List user albums" I can not seem to delete an album, it just go's back to the Albums/toggle all.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Tiribulus on April 07, 2009, 12:16:43 AM
OK, either I am really missing or have misunderstood something or I have a problem with my install of this mod now.
When I go into an item and click on move under the assumption that I'm going to get options for moving that item to other albums, I instead get as the only option the moving of the entire album and that only to my one general album. The dropdown has only that one option and the dialog says moving album. (please see attachment) It doesn't seem like you should be able to move an album into another album anyway.

I did have v.1.5.5 on the server though not installed. I uninstalled 1.5.6 deleted both, redownloaded 1.5.6 and installed it all with no errors in the install dialog.

After the install, the gallery works fine overall as before, but the move function has not changed.

Also have these errors in the forum log though nothing showed up during the install:

http://gregnmary.gotdns.com:8080/index.php?action=packages;sa=install2;package=SMFMediaGallery-1.5.6.zip
8: Undefined index: mgallery_gallery
File: /srv/www/htdocs/Themes/bright_forest_110/index.template.php
Line: 819

http://gregnmary.gotdns.com:8080/index.php?action=packages;sa=install;package=SMFMediaGallery-1.5.6.zip;sesc
8: Undefined index: mgallery_gallery
File: /srv/www/htdocs/Themes/bright_forest_110/index.template.php
Line: 819

http://gregnmary.gotdns.com:8080/index.php?action=packages;sa=browse
8: Undefined index: mgallery_gallery
File: /srv/www/htdocs/Themes/bright_forest_110/index.template.php
Line: 819

http://gregnmary.gotdns.com:8080/index.php?action=packages;sa=uninstall2;package=SMFMediaGallery-1.5.6.zip
2: unlink(MGallery.french.php): No such file or directory
File: /srv/www/htdocs/Sources/Subs-Package.php
Line: 1047

http://gregnmary.gotdns.com:8080/index.php?action=packages;sa=uninstall2;package=SMFMediaGallery-1.5.6.zip
2: unlink(MGallery.english.php): No such file or directory
File: /srv/www/htdocs/Sources/Subs-Package.php
Line: 1047

http://gregnmary.gotdns.com:8080/index.php?action=packages;sa=uninstall2;package=SMFMediaGallery-1.5.6.zip
2: unlink(MGallery.template): No such file or directory
File: /srv/www/htdocs/Sources/Subs-Package.php
Line: 1047

http://gregnmary.gotdns.com:8080/index.php?action=packages;sa=uninstall2;package=SMFMediaGallery-1.5.6.zip
8: Undefined index: destination
File: /srv/www/htdocs/Sources/Subs-Package.php
Line: 971


I have literally been over every single edit for a manual install and they are all intact, even for my theme. I manually copied all the files from the package to their respective locations as well.
Again, the gallery works fine overall as before, but the move function has not changed. It doesn't matter if I try it as admin, even for a gallery I started as Admin, or under my wife's account for one's she owns. I don't see a permission specific to this function.

It's possible I just spent 15 minutes composing this tedious post for nothing because the errors are inconsequential and I'm just missing a setting somewhere, but I'm thinking not. Oh yeah, I also scoured this topic for something similar, but couldn't find anything.
Thank yooooo for reading this long post and any input.

EDIT: I saw this + Added ability for authors to move their items between user albums. WIP: need to implement general albums as well. (MGallery-Sub.php, MGallery.php) in your changelog several pages back, but also saw at the smg site a thread where a guy was saying that he had this same issue and you answered that the ability to move between user albums wasn't implemented yet as of that build. I'm assuming that the changelog entry above is in response to that.

BTW, this would be a great function, but isn't the end of the world and no errors have returned since the reinstall so don't take an inordinate amount of time on it for me unless it's something simple for you that's lost on me.
Thanks again.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on April 07, 2009, 12:26:00 PM
Quote from: Nao 尚 on April 06, 2009, 02:46:49 PM
@ttuu> Considering it's a new feature and a lot of work and I'm not interested in doing it -- at least $200. That's a feature in SGP which is worth $50, so if you can get everyone who requested that feature (a dozen users?) to shell out $20, you're done, I'll do it.

@LinK87> I made a last minute change in the install files to fix support for video/audio in [smg] tags, so you'll have to uninstall/reinstall.

Sighs, guess I schedule this update for one of my days off work.

Also, this weekend my host updated to mod_security2. Which royally fu(ked up my site. I was working with them for over a day on this. The solution was to comment out these 2 lines on my .htaccess:

SecFilterEngine Off
SecFilterScanPOST Off


and they added this one:

AddType application/x-httpd-php5 .php

As well they had to change all the folder permissions to 755 and file permissions to 644. As well they had to redo the ownerships.

At this point I thought the problems had been solved but I now have a new problem. Today someone tried to upload a file that was 17ish mb(largest to date but i have max set to 200mb). It timed out. I tried to upload it myself and got the same result with both a single file upload and mass upload. I've read about similar problems in this thread but wasn't able to track one down (at least not without scavenging for an extended period of time). What was the solution(s) for this issue?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 08, 2009, 11:13:09 AM
A 17MB upload might just not be possible, because even if you got post_max_size/upload_max_filesize > 17M apache might time out.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: quietstorm on April 08, 2009, 11:52:40 AM
Hello..

I am trying to install SMF Media Gallery on my site. The install went well but Nao on their site told me I also "need the PHP extension for ffmpeg to be installed, too"!
I asked.. "Where and how go about doing this?"  and his answer was"google".

Can someone plz tell me how to do this and do not give me an answer like Nao did on their site!

We are/were newbies at one time or another..so go easy on me and others that need help with this too!  :)

TIA

btw..
Plz accept my apology if this has been asked before
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on April 08, 2009, 11:54:00 AM
Quote from: Dragooon on April 08, 2009, 11:13:09 AM
A 17MB upload might just not be possible, because even if you got post_max_size/upload_max_filesize > 17M apache might time out.

Are those .htaccess values? Or my values in the smg options? Or other? If so where can i check to see what they are set to and how are the values changed?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 08, 2009, 12:00:16 PM
Quote from: quietstorm on April 08, 2009, 11:52:40 AM
Can someone plz tell me how to do this and do not give me an answer like Nao did on their site!
Holy crap, just type "php ffmpeg" on Google and don't start with that! It's the FIRST link that comes up!
We were all n00bs at one point yeah, but the first thing we learn is to use Google when we need to know something!
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: quietstorm on April 08, 2009, 12:13:45 PM
Quote from: Nao 尚 on April 08, 2009, 12:00:16 PM
Holy crap, just type "php ffmpeg" on Google and don't start with that! It's the FIRST link that comes up!
We were all n00bs at one point yeah, but the first thing we learn is to use Google when we need to know something!

THANKS...
but I want to share something with you, if I can!
I am a disabled veteran with minor brain damage and SOMETIMES that thinker does not work
like it should and I need the "extra" help.
So.. I will just have to wait until a miracle drug is out there to help me with that and ALL the other ailments I have that is associated with it!
HAVE A GOOD DAY!!
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on April 08, 2009, 12:23:00 PM
Quote from: quietstorm on April 08, 2009, 12:13:45 PM
Quote from: Nao 尚 on April 08, 2009, 12:00:16 PM
Holy crap, just type "php ffmpeg" on Google and don't start with that! It's the FIRST link that comes up!
We were all n00bs at one point yeah, but the first thing we learn is to use Google when we need to know something!

THANKS...
but I want to share something with you, if I can!
I am a disabled veteran with minor brain damage and SOMETIMES that thinker does not work
like it should and I need the "extra" help.
So.. I will just have to wait until a miracle drug is out there to help me with that and ALL the other ailments I have that is associated with it!
HAVE A GOOD DAY!!

Holy rocket science batman:

see the first result in a google search: Click Here (http://www.google.com/search?q=php+ffmpeg&rls=com.microsoft:*&ie=UTF-8&oe=UTF-8&startIndex=&startPage=1)

Or if you can't for some reason: http://ffmpeg-php.sourceforge.net/
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: SergeantAsh on April 08, 2009, 02:28:52 PM
For your information only, think I found a bug  8) I upgraded to the latest version 1.5.6 and now users are receiving this error when trying to access their own profile:

Fatal error: Cannot redeclare mgallery() (previously declared in /home/usera/www.********.com/Sources/Profile.php:2930) in /home/usera/www.********.com/Sources/Profile.php on line 2954
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 08, 2009, 02:29:35 PM
Thats not a bug, you had a double install. Remove the duplicate code.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: SergeantAsh on April 08, 2009, 02:36:06 PM
Quote from: Dragooon on April 08, 2009, 02:29:35 PM
Thats not a bug, you had a double install. Remove the duplicate code.

Many thanks Dragoon, removing the duplicate block solved, I guess the previous 1.5.5 uninstall didn't remove the chunk of code yet it reported the uninstall as successful without any failure. Keep up the good work both of you.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on April 08, 2009, 02:54:03 PM
Quote from: @sh on April 08, 2009, 02:36:06 PM
Quote from: Dragooon on April 08, 2009, 02:29:35 PM
Thats not a bug, you had a double install. Remove the duplicate code.

Many thanks Dragoon, removing the duplicate block solved, I guess the previous 1.5.5 uninstall didn't remove the chunk of code yet it reported the uninstall as successful without any failure. Keep up the good work both of you.

@ash: Was likely your custom theme. Package manager won't undo manual edits.

@dragoon: were you able to read my reply on page 153? If so what's your response?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: TomW on April 09, 2009, 11:02:37 PM
I manually installed the mod version 1.5.6 in smf version 1.1.8 and the single upload function does not work properly.  It appears to be working, but the file size is 0 in the db, and is 1 byte smaller than the file being uploaded.  I have tried using bbc tags in a post on the main board, and the file appears empty.  The jpeg file appears fine on my computer.  Therefore the file is being corrupted in the upload.  I do not have FFMPEG, GD2, ImageMagick, IMagick, or MagickWand installed on my server.  phpinfo shows that I am way below the max size limitations; I am testing with a file smaller than 100k.  Also, I have Simple Image Shack, and Advanced Image Upload, and both work fine.  Also I can upload using the file attachment and it works fine.  What could be the problem ?  Can someone help please ?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: tfs on April 10, 2009, 12:18:21 AM
I'm using 1.5.6 on SMF 2.0/RC1

I have 3 top level folders defined.  Photos, Music & Video.  Under Photos I have a few sub folders defined.  I have edited a couple of them to have icons other than the default, but I'd like to return them to the default icon.  I couldn't find a way to do that.

So I downloaded "folder.png" (right click - save as) and then uploaded that as the icon file for the first of the two custom icon folders, which worked.  But now I can't get the last one with a custom icon to change.  No matter what I do it uses the custom icon, which is simply one of the photos that are inside of the folder.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: tfs on April 10, 2009, 11:06:34 AM
Quote from: tfs on April 10, 2009, 12:18:21 AM
I'm using 1.5.6 on SMF 2.0/RC1
So I downloaded "folder.png" (right click - save as) and then uploaded that as the icon file for the first of the two custom icon folders, which worked.  But now I can't get the last one with a custom icon to change.  No matter what I do it uses the custom icon, which is simply one of the photos that are inside of the folder.

It looks like I got it to work.  After loggin in this morning I see that it had changed to the last one I tried to upload, and apparently was cached.  So instead of the default icon, it has a copy of the default that I uploaded.  It would be a nice addition to put a "reset to default" option for the icon.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Blinker on April 10, 2009, 12:09:28 PM
How can I change the look of the comment, report, delete and move popup boxes?

I use a dark custom theme and the light grey background with black text doesn't really work.

I'm pretty sure I need to edit the style.css file in the mgallery folder in my custom theme, but it's not particularly obvious what to edit.

I've attached screenshots of the comments box from default and custom theme.

Any ideas?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Özgür on April 10, 2009, 03:27:13 PM
All codes in hs.css (in themes/default/mgallery/hs.css)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Blinker on April 10, 2009, 11:00:51 PM
Thanks Özgür`, I'll have a play around with that file.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Blinker on April 11, 2009, 01:37:37 AM
Quote from: Özgür´ on April 10, 2009, 03:27:13 PMAll codes in hs.css (in themes/default/mgallery/hs.css)

Have played around a bit. Still not exactly sure which parts of the code affect the popup boxes for comment, report etc.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Jez on April 11, 2009, 05:28:34 AM
Hi folks.

I've installed medica gallery 1.5.6, however when I try to apply mod, I get this message- "Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager."

Can anyone advise what files I need to change to writable?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 11, 2009, 06:14:00 AM
There's a FTP setting in your Packages area, I believe. Enter your FTP data there.
You're probably using PHP safe mode so you'd best wait for SMG 1.6 which will also add FTP compatibility because it creates folders itself, and will meet the same issues as SMF itself.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: madfiddler on April 11, 2009, 03:44:35 PM
Hey,

Great mod!

Are there any plans to have the option for the mod to post to a catagory with details of newly uploaded files?

Cheers,

m
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 11, 2009, 03:49:44 PM
1257th such request.
Use the "Unseen area" feature to see new uploads and new comments.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: www.SergioMora.net on April 11, 2009, 04:10:24 PM
I just install the SMF Media Gallery 1.5.6 and I can only see the GALLERY button on defualt theme. I using fresh installs of everything smf 1.1.8 and new tinyportal. Can I get my gallery buttons to show up on all themes? Did I miss something important? Please direct me to a similar situation for troubleshooting so I may make the necesarry changes thank you :)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: TomW on April 11, 2009, 04:30:47 PM
All mods are designed for the default theme; this has been stated at least 1 gazillion times by the mod authors.  If you are not using the default theme, it is up to you to make the changes that affect your theme.  For SMF Media Gallery, the only file that you need to worry about is index.template.php; everything else is in the standard folders.  If you look at the manual install instructions for this file, you should be able to determine how to change your index.template.php.  I have also seen that the theme authors are also willing to help in some cases.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Sudhakar Arjunan on April 11, 2009, 07:10:03 PM
Hi Author,

After many month of try, Everything installed properly for me.

Now am using mgallery in my forum.

Converted all my album from vbgamer45's Gallery to our new mgallery.

thanks for this excellent mod with excellent update.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Xavi-Nena on April 12, 2009, 04:43:14 PM
Quote from: NenaGb on March 20, 2009, 09:27:38 PM
I hate to sound redundant but I am willing to donate to help get the code mod needed to display created slideshows in TP blocks and articles.

bump ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Darkness_ on April 13, 2009, 04:08:32 PM
is it possible to give the gallery a different theme ?
If so how ?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on April 13, 2009, 05:43:08 PM
You mean like a different theme from the forum?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on April 13, 2009, 09:13:25 PM
http://rgxbox.com/index.php?action=mgallery (http://rgxbox.com/index.php?action=mgallery)

It is allowing my members to create user albums and add things to them.
But it is not listing the user albums created by them.
It is only showing the user albums made by Admins.
Auto-approve everything is turned on, so these user albums should be appearing on the list.
However, they are not and I do not understand why.
It shows the pictures users posted into these albums under Recent Items.

I can search for the images and find them.
I can click on the album from the item and view the album that way...
Any idea why it is not showing the user created albums here...

http://rgxbox.com/index.php?action=mgallery;sa=vua (http://rgxbox.com/index.php?action=mgallery;sa=vua)


Like for example... User "ThaKiLLa" has alot of user albums, and it shows alot of them.
But this link below is one of a few of his user albums that are now showing up on user albums page in the gallery.

http://rgxbox.com/index.php?action=mgallery;sa=album;id=102 (http://rgxbox.com/index.php?action=mgallery;sa=album;id=102)

Whatever it is... it seems to be affecting all members.
I'm stumped. Hopefully I am just overlooking something.
Thanks for any help you can give!

UPDATE: I completely uninstalled and then reinstalled the gallery and still the same problem...
It was working fine yesterday. Also, it seems that when I the Admin add a new user album it shows up on the list.
(you will see empty user album labeled "test" that i just made)

But I had given my friend ThaKilla admin ability, so he is an admin also.
So if when I add an album it shows up then.. shouldn't his also?
I have double checked all admin config. and everything seems in order.

Have too many user albums been created? Have too many items been added to the gallery?
What would cause user albums to be successfully created -  but not listed in the gallery?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: tridirk on April 13, 2009, 11:28:03 PM
I can't get my pictures visible?

Everything is there, converted the Gallery Lite (Thanks for the converter) but, even when I upload test images...  Can't view them?

My Imagick Magic and Wand are a "No" also?  What to be done?

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 14, 2009, 01:55:43 AM
Quote from: tridirk on April 13, 2009, 11:28:03 PM
I can't get my pictures visible?

Everything is there, converted the Gallery Lite (Thanks for the converter) but, even when I upload test images...  Can't view them?

My Imagick Magic and Wand are a "No" also?  What to be done?


Do the converted image show up? What happens when you run Admin > Gallery > Maintenance > Find Errors.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on April 14, 2009, 07:53:29 AM
Quote from: Dragooon on April 14, 2009, 01:55:43 AM
Do the converted image show up? What happens when you run Admin > Gallery > Maintenance > Find Errors.

Is my problem not helpable?

Ok, so I have now uninstalled v1.5.6 and installed 1.5.5

My user albums are now showing up in the gallery, however.. the user album section is not showing 15 albums per page like its supposed to...

Currently my gallery thinks there are 4 pages, but...

Page 1 lists (15) albums
Page 2 lists (9) albums
Page 3 lists (1) album
Page 4 lists (2) albums

Obviously something is not right there.... What should I do?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on April 14, 2009, 10:40:26 AM
Ok so I think I solved that problem for now by uninstalling v1.5.6 and installing previous v1.5.5

You should look into v1.5.6 because there is most definitely something wrong within the script that was causing user albums not to show up in the gallery.

I tried a fresh install of 1.5.6 for a second and third time before reverting back to v1.5.5, so that is how I know the problem is in 1.5.6... somewhere.

So I'm guessing there was a reason for 1.5.6's release, what was wrong with v1.5.5...
Anything I should be looking for?

After you have corrected this problem, I will definitely update back to current.
But in the meantime, people should know about the user album bug in v1.5.6
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: tridirk on April 14, 2009, 11:22:19 AM
Quote from: Dragooon on April 14, 2009, 01:55:43 AM
Quote from: tridirk on April 13, 2009, 11:28:03 PM
I can't get my pictures visible?

Everything is there, converted the Gallery Lite (Thanks for the converter) but, even when I upload test images...  Can't view them?

My Imagick Magic and Wand are a "No" also?  What to be done?


Do the converted image show up? What happens when you run Admin > Gallery > Maintenance > Find Errors.
I get no errors.  Like I said, the converter worked great!  I have two forums, and one is a new install (not converted) www.conejotennis.com/smf (http://www.conejotennis.com/smf)  and the pics don't appear.  The other I haven't finished the custom theme modifications but even on the default the pictures don't appear?

Attached is a screen of the latter.
www.clanmostwanted.com/smf
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 14, 2009, 11:33:44 AM
Quote from: PRaDiUS on April 14, 2009, 10:40:26 AM
You should look into v1.5.6 because there is most definitely something wrong within the script that was causing user albums not to show up in the gallery.
IIRC, Dragooon applied a few fixes to 1.5.6 to allow splitting user albums more consistently between pages.
If you have a problem with this, then maybe he did something wrong. I don't have lots of user albums so I can't test myself. Ask Dragooon.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on April 14, 2009, 11:53:26 AM
What you said definitely makes sense, hopefully Dragooon can shed some light on this matter.

Quote from: Nao 尚 on April 14, 2009, 11:33:44 AM
IIRC, Dragooon applied a few fixes to 1.5.6 to allow splitting user albums more consistently between pages.
If you have a problem with this, then maybe he did something wrong. I don't have lots of user albums so I can't test myself. Ask Dragooon.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: jaru on April 14, 2009, 01:14:30 PM
First of all Thank you Dragooon and Nao for all the great work you've done so far with the gallery code.

I've been using the gallery since version 1.5.3 and some of the issues are solved now.

I just moved my entire site to another host, I think I fixed everything to make the transition process possible.
and also I updated the gallery version by uninstalling the ver 1.5.3 and installing 1.5.6
all went OK except the links to the images.
when I activate the links to the images and I go the links, it gives me a
"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request
."
i am not quite sure what might be the cause.
the link to my gallery is this one:

http://guanacosplay.org/foro/index.php?action=mgallery

an example of the issue can be seen here:

this is a direct link for an image:
http://guanacosplay.org/foro/MGalleryItem.php?id=570

I will appreciate any hint or help you can give me regarding this issue.

thank you in advance.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 14, 2009, 01:51:40 PM
No errors here!
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Sudhakar Arjunan on April 14, 2009, 01:55:03 PM
After converting all the images from vbgamers gallery to MGallery.

I have removed all permission of members and other to post in gallery.

So all were started posting images and comments on MGallery.

But when i type my website on Google. I have the Gallery page on top which yield me many visits to old gallery.

So i have enable the view permission for Guest to visit gallery. Since i do not want them to show any error message.

Now i need to point all users who come to gallery to mgallery automatically.

Help me out.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Tiribulus on April 14, 2009, 03:38:21 PM
I don't know how long ago we're talking about here, but you may need to give Google time to re-index your site
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Darkness_ on April 14, 2009, 03:44:07 PM
Quote from: akyhne on April 13, 2009, 05:43:08 PM
You mean like a different theme from the forum?

The forum another theme and www.xxxx.com/forum/index.php?action=mgallery another theme

tried it with SSI_theme but it didn't work maybe because the codes are of the earlier versions of smf
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Kindred on April 14, 2009, 05:03:22 PM
A.SK,   You can set a 301 redirect in your .htaccess file.

Darkness...    not easily.  The Gallery takes the user's theme from the main SMF.   It obviously CAN be done, but would require coding on your part.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: jaru on April 14, 2009, 06:01:51 PM
Quote from: jaru on April 14, 2009, 01:14:30 PM
First of all Thank you Dragooon and Nao for all the great work you've done so far with the gallery code.

I've been using the gallery since version 1.5.3 and some of the issues are solved now.

I just moved my entire site to another host, I think I fixed everything to make the transition process possible.
and also I updated the gallery version by uninstalling the ver 1.5.3 and installing 1.5.6
all went OK except the links to the images.
when I activate the links to the images and I go the links, it gives me a
"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request
."
i am not quite sure what might be the cause.
the link to my gallery is this one:

http://guanacosplay.org/foro/index.php?action=mgallery

an example of the issue can be seen here:

this is a direct link for an image:
http://guanacosplay.org/foro/MGalleryItem.php?id=570

I will appreciate any hint or help you can give me regarding this issue.

thank you in advance.

I just changed the permissions of MGalleryItem.php to 755 and issue resolved.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: tridirk on April 15, 2009, 11:28:55 AM
Quote from: tridirk on April 14, 2009, 11:22:19 AM
Quote from: Dragooon on April 14, 2009, 01:55:43 AM
Quote from: tridirk on April 13, 2009, 11:28:03 PM
I can't get my pictures visible?

Everything is there, converted the Gallery Lite (Thanks for the converter) but, even when I upload test images...  Can't view them?

My Imagick Magic and Wand are a "No" also?  What to be done?


Do the converted image show up? What happens when you run Admin > Gallery > Maintenance > Find Errors.
I get no errors.  Like I said, the converter worked great!  I have two forums, and one is a new install (not converted) www.conejotennis.com/smf (http://www.conejotennis.com/smf)  and the pics don't appear.  The other I haven't finished the custom theme modifications but even on the default the pictures don't appear?

Attached is a screen of the latter.
www.clanmostwanted.com/smf
Bumped.. sorry not to be pushy, but I would like to get this fixed if possible?  Thanks in advance for your help.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 15, 2009, 11:44:47 AM
is mgal_data and all of its sub-directories/files chmodded to 777?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: tridirk on April 15, 2009, 12:08:09 PM
Quote from: Dragooon on April 15, 2009, 11:44:47 AM
is mgal_data and all of its sub-directories/files chmodded to 777?
I am sure I have... attached is a screen of it via Filezilla.

and the pictures unshown have a path of http://clanmostwanted.com/smf/index.php?action=mgallery;sa=media;id=511;thumb
and
http://clanmostwanted.com/smf/index.php?action=mgallery;sa=media;id=512;preview
does the path seem correct?

Oh.. and why do the items ImageMagick: No (IMagick: No - MagickWand: No) not work?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 15, 2009, 12:12:41 PM
@ImageMagick - Thats pretty normal, most server doesn't have it.

Can we have a link to phpinfo.php? (What is a phpinfo() file? (http://docs.simplemachines.org/index.php?topic=479))
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: tridirk on April 15, 2009, 12:37:23 PM
Quote from: Dragooon on April 15, 2009, 12:12:41 PM
@ImageMagick - Thats pretty normal, most server doesn't have it.

Can we have a link to phpinfo.php? (What is a phpinfo() file? (http://docs.simplemachines.org/index.php?topic=479))
Thanks...

Here is the link for both sites.

One, is a converted site (clanmostwanted) and the other a new install site (conejotennis)

http://clanmostwanted.com/smf/phpinfo.php

and

http://conejotennis.com/smf/phpinfo.php

Reading the knowledge base of my shared hosting server provider (ImageMagick-it is installed on my servers. The path to its binaries is: "/usr/local/bin"). whatever that means?

Thanks;
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Sudhakar Arjunan on April 15, 2009, 12:38:30 PM
Quote from: Tiribulus on April 14, 2009, 03:38:21 PM
I don't know how long ago we're talking about here, but you may need to give Google time to re-index your site

So far i should have to wait or make gallery to be viewable by guest.

Thats what i am doing now.

Quote from: Kindred on April 14, 2009, 05:03:22 PM
A.SK,   You can set a 301 redirect in your .htaccess file.

Darkness...    not easily.  The Gallery takes the user's theme from the main SMF.   It obviously CAN be done, but would require coding on your part.

Any Detailed idea of it kindred.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Kindred on April 15, 2009, 01:09:16 PM
http://www.tamingthebeast.net/articles3/spiders-301-redirect.htm
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Sudhakar Arjunan on April 15, 2009, 02:00:00 PM
Quote from: Kindred on April 15, 2009, 01:09:16 PM
http://www.tamingthebeast.net/articles3/spiders-301-redirect.htm

Hi Kindred,

Thanks for an reference, Check what i have used .

RewriteEngine on
RewriteCond %{QUERY_STRING} ^action=gallery$
RewriteRule ^/index.php$ http://discuss.itacumens.com/index.php?action=mgallery [L,R=301]

But its not working when i store on my.htaccess file.

Do i have to restart my server to get updated or will it automatically get updated.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Darkness_ on April 15, 2009, 06:57:11 PM
Quote from: Kindred on April 14, 2009, 05:03:22 PM
A.SK,   You can set a 301 redirect in your .htaccess file.

Darkness...    not easily.  The Gallery takes the user's theme from the main SMF.   It obviously CAN be done, but would require coding on your part.

can't it be something like at the board theme.
that the setting will override the user setting?
maybe in mgallery.template.php ?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on April 16, 2009, 03:37:24 PM
Hey guys I have some helpful info as well as a question/problem:

Helpful info is that when setting ones php.ini file not only will you need to set the max file size but the max input time and max execution time otherwise the max file size is irrelevant. I had to adjust these today because a user was trying to upload a large file but it was failing.

However I've only resolved this for a single file upload. The mass upload is what I'm having a problem with. It shows the progress bars going up to 100% but going way to fast based on my max upload speed and the file size. Once it hits 100% the browser crashes. Does mass upload work that much differently after one clicks on upload/submit?

Any help is much appreciated :)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on April 16, 2009, 03:57:53 PM
Ok Mr Dragooon, I have been trying to get help with this MOD from you for the last 3 days - to NO avail. If the problem is over your head, or just too complicated to figure out... Hell, just say so. I quoted a post this morning where both myself and your co-developer said the issue was something that should be looked into. That quoted post has since been deleted while I was at work today. I really just don't understand why you are ducking and dodging me. Please step up your game, be a man, and acknowledge this problem. Silence is NOT a solution to ANY problem. Thank you, SIR.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 16, 2009, 04:53:35 PM
If you're going to start accusing Dragooon of deleting posts when we have neither the desire, nor the admin rights to do so, you're certainly going to make friends here.

The sm.org site was down most of the day and they lost thousands of posts (most of what was sent today). Frak, they even lost files sent, including mod updates. (I had to re-upload my Footnotes update. I'm not happy but I suspect the smf team isn't either.)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on April 16, 2009, 04:56:20 PM
Nao, any thoughts on my prev post?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on April 16, 2009, 05:04:54 PM
I never said I suspected any certain person had deleted it. I just noted that it had been.
Like I said, I have been at work all day so I had no idea SMF had been down --- my apologies.
I'm not trying to make friends --- just find an answer to the problem. That is all.
I was more then nice three days ago, this is just down right frustrating watching other problems acknowledged because they are easy fixes.
I feel like I am being thrown under the rug simply because my issue is different in nature.

Quote from: Nao 尚 on April 16, 2009, 04:53:35 PM
If you're going to start accusing Dragooon of deleting posts when we have neither the desire, nor the admin rights to do so, you're certainly going to make friends here.

The sm.org site was down most of the day and they lost thousands of posts (most of what was sent today). Frak, they even lost files sent, including mod updates. (I had to re-upload my Footnotes update. I'm not happy but I suspect the smf team isn't either.)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: tridirk on April 16, 2009, 05:29:16 PM
Quote from: tridirk on April 15, 2009, 12:37:23 PM
Quote from: Dragooon on April 15, 2009, 12:12:41 PM
@ImageMagick - Thats pretty normal, most server doesn't have it.

Can we have a link to phpinfo.php? (What is a phpinfo() file? (http://docs.simplemachines.org/index.php?topic=479))
Thanks...

Here is the link for both sites.

One, is a converted site (clanmostwanted) and the other a new install site (conejotennis)

http://clanmostwanted.com/smf/phpinfo.php

and

http://conejotennis.com/smf/phpinfo.php

Reading the knowledge base of my shared hosting server provider (ImageMagick-it is installed on my servers. The path to its binaries is: "/usr/local/bin"). whatever that means?

Thanks;

Bump....

If I am being pest let me know.  I am just anxious to get this working.  Looks like a great addition.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Darkness_ on April 16, 2009, 06:33:44 PM
Quote from: Darkness_ on April 15, 2009, 06:57:11 PM
Quote from: Kindred on April 14, 2009, 05:03:22 PM
A.SK,   You can set a 301 redirect in your .htaccess file.

Darkness...    not easily.  The Gallery takes the user's theme from the main SMF.   It obviously CAN be done, but would require coding on your part.

can't it be something like at the board theme.
that the setting will override the user setting?
maybe in mgallery.template.php ?

someone?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Owdy on April 16, 2009, 06:53:33 PM
This MOD totally ROCKS! I installed it in my SMF 2.0 just 2 seconds. After that, converted my Coppermine in another 2 seconds. Thank you authors!  :)  http://foorumi.hoitajat.net/index.php?action=mgallery
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Owdy on April 16, 2009, 07:30:50 PM
How can i delete user albums? Or disable them?

edit: issue #2, after installing this mod, quick edit works only in default theme. Any ideas why? If i click that modify_inline.gif icon, it loads that animation but nohing happends.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 17, 2009, 12:54:25 AM
Quote from: Owdy on April 16, 2009, 07:30:50 PM
How can i delete user albums? Or disable them?

edit: issue #2, after installing this mod, quick edit works only in default theme. Any ideas why? If i click that modify_inline.gif icon, it loads that animation but nohing happends.
Admin > Albums. Are you completely sure the inline editing bug is due to SMG? What happens if you try uninstalling it?

Quote from: PRaDiUS on April 16, 2009, 03:57:53 PM
Ok Mr Dragooon, I have been trying to get help with this MOD from you for the last 3 days - to NO avail. If the problem is over your head, or just too complicated to figure out... Hell, just say so. I quoted a post this morning where both myself and your co-developer said the issue was something that should be looked into. That quoted post has since been deleted while I was at work today. I really just don't understand why you are ducking and dodging me. Please step up your game, be a man, and acknowledge this problem. Silence is NOT a solution to ANY problem. Thank you, SIR.
I am not forced to help you. It is completely my will whether to help or not, if I wish I can completely abandon this mod and let it rust. As far as your issues go, do you see those albums under Admin > Albums? Do they appear under Submissions > Albums?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Owdy on April 17, 2009, 01:11:57 AM
Quote from: Dragooon on April 17, 2009, 12:54:25 AM
Admin > Albums.
There are only regular albums, not user albums.

Another strange issue happend after installing this mod. If im logged in and look boardindex, FF got this error:
QuoteThe page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
If i disable compressed output, it works. This happends only in boardindex and with my own theme. Weird.

edit: i uninstalled this mod and that FF error with compressed output is gone, but quick edit is still broken. So i cant use compressed output with this mod. :D
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 17, 2009, 01:16:35 AM
Quote from: Owdy on April 17, 2009, 01:11:57 AM
Quote from: Dragooon on April 17, 2009, 12:54:25 AM
Admin > Albums.
There are only regular albums, not user albums.

Another strange issue happend after installing this mod. If im logged in and look boardindex, FF got this error:
QuoteThe page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
If i disable compressed output, it works. This happends only in boardindex and with my own theme. Weird.
There would be a link for showing user albums under the About, Settings etc links. Actually SMG is known to have some issues with compression. Unfortunately, I never got to solve them.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 17, 2009, 01:22:51 AM
@PRaDiUS - OK After some looking, can you try these code changes? Make sure to install SMG 1.5.6
Open MGallery-SUb.php
Find
$request = $mgalFunc['db_query']('
SELECT
a.id_album, a.name, a.album_of AS id_member, a.approved, IFNULL(mem.realName, a.member_name) AS member_name,
a.num_items, a.passwd, a.icon, a.description, a.parent
FROM {db_prefix}mgallery_albums AS a
LEFT JOIN {db_prefix}members AS mem ON (mem.ID_MEMBER = a.album_of)
WHERE {_query_see_album}
AND a.type = {string:type}' . (!mgalAllowedTo('moderate') ? '
AND (a.approved = 1 OR a.album_of = ' . $user_info['id'] . ')' : '') . '
ORDER BY a.album_of ASC, {string:sort_by} {string:sort_order}
LIMIT {int:start},{int:per_page}',
array('type' => 'user', 'sort_by' => $sort_by, 'sort_order' => $sort_order, 'start' => $start, 'per_page' => $per_page),__FILE__,__LINE__);
$context['mgallery_user_albums'] = array();
while ($row = $mgalFunc['db_fetch_assoc']($request))
{
$context['mgallery_user_albums'][$row['id_album']] = $row;
$context['mgallery_user_albums'][$row['id_album']]['icon'] = !empty($row['icon']) && $row['icon'] > 0 ? '<img alt="" src="'.$galurl.'sa=media;id='.$row['id_album'].';icon" />' : '';
// Sub user-albums
$sub_albums = array();
if ($mgalSettings['show_sub_albums_on_index'] == '1') {
$sub_user_albums = $mgalFunc['db_query']('
SELECT a.id_album, a.name, a.approved
FROM {db_prefix}mgallery_albums AS a
WHERE a.parent = {int:parent}' . (!mgalAllowedTo('moderate') ? '
AND (a.approved = 1 OR a.album_of = ' . $user_info['id'] . ')' : '') . '
AND {_query_see_album}',
array('parent' => $row['id_album']),__FILE__,__LINE__);
while ($sub = $mgalFunc['db_fetch_assoc']($sub_user_albums))
$sub_albums[] = $sub['id_album'];
$mgalFunc['db_free_result']($sub_user_albums);
}
$context['mgallery_user_albums'][$row['id_album']]['sub_albums'] = $sub_albums;
$context['mgallery_user_albums'][$row['id_album']]['description'] = $mgalFunc['parse_bbc']($row['description']);
}
$mgalFunc['db_free_result']($request);

Replace with
// Load all the user albums..
getAlbums(false, true, false, false, 0, 'a.type = \'user\'');

// Another query for sorintg...
$request = $mgalFunc['db_query']('
SELECT
a.id_album
FROM {db_prefix}mgallery_albums AS a
WHERE {_query_see_album}
AND a.type = {string:type}' . (!mgalAllowedTo('moderate') ? '
AND (a.approved = 1 OR a.album_of = ' . $user_info['id'] . ')' : '') . '
AND a.child_level = 0
ORDER BY a.album_of ASC, {string:sort_by} {string:sort_order}
LIMIT {int:start}, {int:per_page}',
array('type' => 'user', 'sort_by' => $sort_by, 'sort_order' => $sort_order, 'start' => $start, 'per_page' => $per_page),__FILE__,__LINE__);
$context['mgallery_user_albums'] = array();
while ($row = $mgalFunc['db_fetch_assoc']($request))
$context['mgallery_user_albums'][$row['id_album']] = $context['mgallery_albums'][$row['id_album']];
$mgalFunc['db_free_result']($request);


Open Subs-MGallery.php
Find
a.approved, a.directory, a.icon, f.filesize, f.width, f.height, a.a_order
Replace with
a.approved, a.directory, a.icon, f.filesize, f.width, f.height, a.a_order, a.passwd
Find
'order' => $row['a_order'],
'overall_total' => 0,

Add after

'passwd' => $row['passwd'],


Open MGallery.template.php
Find
function smg_show_sub_albums($alb)
{
global $context, $galurl, $settings, $txt, $mgalFunc;

$ret = '';
foreach ($context['mgallery_user_albums'][$alb]['sub_albums'] as $sub_album)
{
$album = &$context['mgallery_user_albums'][$sub_album];
$ret .= smg_locked_album($album['passwd'], $album['id_album'], $album['id_member'], $album['num_items'] . ' ' . $txt['mgallery_items'])
. ' <a href="' . $galurl.'sa=album;id=' . $album['id_album'] . '"' . (!$album['approved'] ? ' class="unapp"' : '') . '>' . $album['name'] . '</a>';
if (!empty($album['sub_albums']))
$ret .= ' (' . smg_show_sub_albums($album['id_album']) . ')';
$ret .= ', ';
}
return rtrim($ret, ', ');
}

function template_mgallery_viewUserAlbums()
{
global $txt, $context, $scripturl, $galurl;

// The Albums!
echo '
<div class="catbg item_heading">', $context['show_general_albums_link'] ? '
<b><a href="'.$galurl.'">'.$txt['mgallery_albums'].'</a></b> -' : '', '
<b>'.$txt['mgallery_user_albums'].'</b>
</div>';

echo '
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="tborder">
<tr class="windowbg">
<td colspan="4">',$txt['mgallery_pages'], ': ', $context['mgallery_page_index'],'</td>
</tr>
<tr class="titlebg2">
<td width="8%">',$txt['mgallery_icon'],'</td>
<td>',$txt['mgallery_name'],'</td>
<td>',$txt['mgallery_items'],'</td>
</tr>';

$current_owner = 0;
foreach ($context['mgallery_user_albums'] as $album)
{
if (!empty($album['parent']))
continue;
if ($album['id_member'] != $current_owner)
{
$current_owner = $album['id_member'];
echo '
<tr class="catbg item_heading">
<td colspan="3">', $txt['mgallery_owner'], ': ', smg_profile($album['id_member'], $album['member_name']), '</td>
</tr>';
}
echo '
<tr class="windowbg">
<td align="center">',$album['icon'], '</td>
<td', !$album['approved'] ? ' class="unapp"' : '', '>
<div class="mg_large"><a href="'.$galurl.'sa=album;id='.$album['id_album'].'">'.$album['name'].'</a>',
smg_locked_album($album['passwd'], $album['id_album'], $album['id_member']), '</div>
<div class="mg_desc">'.$album['description'].'</div></td>
<td>'.$album['num_items'].'</td>
</tr>';
if (!empty($album['sub_albums']))
echo '
<tr class="windowbg"><td colspan="4">', $txt['mgallery_sub_albums'], ': ', smg_show_sub_albums($album['id_album']), '</td></tr>';
}
echo '
</table>';
}


Replace with
function smg_show_sub_albums($alb)
{
global $context, $galurl, $settings, $txt, $mgalFunc;

$ret = '';
foreach ($context['mgallery_albums'][$alb]['sub_albums'] as $sub_album)
{
$album = &$context['mgallery_albums'][$sub_album];
$ret .= smg_locked_album($album['passwd'], $album['id'], $album['owner']['id'], $album['num_items'] . ' ' . $txt['mgallery_items'])
. ' <a href="' . $galurl.'sa=album;id=' . $album['id'] . '"' . (!$album['approved'] ? ' class="unapp"' : '') . '>' . $album['name'] . '</a>';
if (!empty($album['sub_albums']))
$ret .= ' (' . smg_show_sub_albums($album['id_album']) . ')';
$ret .= ', ';
}
return rtrim($ret, ', ');
}

function template_mgallery_viewUserAlbums()
{
global $txt, $context, $scripturl, $galurl;

// The Albums!
echo '
<div class="catbg item_heading">', $context['show_general_albums_link'] ? '
<b><a href="'.$galurl.'">'.$txt['mgallery_albums'].'</a></b> -' : '', '
<b>'.$txt['mgallery_user_albums'].'</b>
</div>';

echo '
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="tborder">
<tr class="windowbg">
<td colspan="4">', $txt['mgallery_pages'], ': ', $context['mgallery_page_index'], '</td>
</tr>
<tr class="titlebg2">
<td width="8%">', $txt['mgallery_icon'], '</td>
<td>', $txt['mgallery_name'], '</td>
<td>', $txt['mgallery_items'], '</td>
</tr>';

$current_owner = 0;
foreach ($context['mgallery_user_albums'] as $album)
{
if ($album['id_member'] != $current_owner)
{
$current_owner = $album['id_member'];
echo '
<tr class="catbg item_heading">
<td colspan="3">', $txt['mgallery_owner'], ': ', smg_profile($album['owner']['id'], $album['owner']['name']), '</td>
</tr>';
}
echo '
<tr class="windowbg">
<td align="center">', $album['icon']['src'], '</td>
<td', !$album['approved'] ? ' class="unapp"' : '', '>
<div class="mg_large"><a href="'.$galurl.'sa=album;id='.$album['id'].'">'.$album['name'].'</a>',
smg_locked_album($album['passwd'], $album['id'], $album['owner']['id']), '</div>
<div class="mg_desc">'.$album['description'].'</div></td>
<td>'.$album['num_items'].'</td>
</tr>';
if (!empty($album['sub_albums']))
echo '
<tr class="windowbg"><td colspan="4">', $txt['mgallery_sub_albums'], ': ', smg_show_sub_albums($album['id']), '</td></tr>';
}
echo '
</table>';
}


This should help fix the issue.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Owdy on April 17, 2009, 01:25:24 AM
Quote from: Dragooon on April 17, 2009, 01:16:35 AM
There would be a link for showing user albums under the About, Settings etc links.
Yeah, this was my own themes fault. Found those.


QuoteActually SMG is known to have some issues with compression. Unfortunately, I never got to solve them.
I just dont understand why this happends only with my own theme, not with default.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: mattchewone on April 17, 2009, 07:23:34 AM
5.   Execute Modification   ./Sources/Load.php   Test failed
   1.   Replace   ./Sources/Load.php   Test successful
   2.   Replace   ./Sources/Load.php   Test failed

What does this mean and how can i fix it?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Owdy on April 17, 2009, 11:11:37 AM
Okay what this MOD does to database? Now my Ajax chat is also broken. Opera gives error:

XML parsing failed: syntax error (Line: 3, Character: 0)

Reparse document as HTML
Error:XML declaration not at beginning of document
Specification:http://www.w3.org/TR/REC-xml/
  1:
  2:
  3: <?xml version="1.0" encoding="UTF-8"?>
  4: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  5: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fi" lang="fi" dir="ltr">
  6:
^
I havent touch that script for months.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 17, 2009, 11:40:34 AM
Owdy - Can you send me admin access? It only creates tables and modifies the member table.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Owdy on April 17, 2009, 11:53:58 AM
Sorry Dragoon, i dont know you, i cant trust admin acces to strangers. Okay, so after installing this mod my Chat is broken, message quick edit is broken (http://www.simplemachines.org/community/index.php?topic=305189.0). I unistalled this mod and upgraded to latest DEV edition, didnt help. :(
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 17, 2009, 11:58:04 AM
Quote from: Owdy on April 17, 2009, 11:53:58 AM
Sorry Dragoon, i dont know you, i cant trust admin acces to strangers. Okay, so after installing this mod my Chat is broken, message quick edit is broken (http://www.simplemachines.org/community/index.php?topic=305189.0). I unistalled this mod and upgraded to latest DEV edition, didnt help. :(
Thats fine, I can understand. I replied to your topic.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 17, 2009, 12:07:49 PM
Quote from: Owdy on April 17, 2009, 11:53:58 AM
Sorry Dragoon, i dont know you, i cant trust admin acces to strangers.
Given how much your server seems to be broken, what worse could he do to it? ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 17, 2009, 12:20:57 PM
Quote from: Nao 尚 on April 17, 2009, 12:07:49 PM
Quote from: Owdy on April 17, 2009, 11:53:58 AM
Sorry Dragoon, i dont know you, i cant trust admin acces to strangers.
Given how much your server seems to be broken, what worse could he do to it? ;)
Wipe the DB out?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Owdy on April 17, 2009, 12:25:52 PM
This is fixed. I dont understand how, but it was my themes Modifications.finnish-utf8.php http://www.simplemachines.org/community/index.php?topic=305189.msg2020053#msg2020053

Quote from: Nao 尚 on April 17, 2009, 12:07:49 PM
Quote from: Owdy on April 17, 2009, 11:53:58 AM
Sorry Dragoon, i dont know you, i cant trust admin acces to strangers.
Given how much your server seems to be broken, what worse could he do to it? ;)
My server is fine thank you. This isnt personally to anyone, but i dont give admin acces to my site to people i dont know. You can do that if you want ;)


edit: chat is fixed also. So it wasnt this mods fault, it was my own language modifications.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Sudhakar Arjunan on April 17, 2009, 02:40:31 PM
Quote from: Owdy on April 17, 2009, 12:25:52 PM
This is fixed. I dont understand how, but it was my themes Modifications.finnish-utf8.php http://www.simplemachines.org/community/index.php?topic=305189.msg2020053#msg2020053

Quote from: Nao 尚 on April 17, 2009, 12:07:49 PM
Quote from: Owdy on April 17, 2009, 11:53:58 AM
Sorry Dragoon, i dont know you, i cant trust admin acces to strangers.
Given how much your server seems to be broken, what worse could he do to it? ;)
My server is fine thank you. This isnt personally to anyone, but i dont give admin acces to my site to people i dont know. You can do that if you want ;)


edit: chat is fixed also. So it wasnt this mods fault, it was my own language modifications.


Great owdy,

you have fixed it. Great.

Could we have a link to see your forum.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 17, 2009, 05:51:49 PM
Quote from: Dragooon on April 17, 2009, 12:20:57 PM
Wipe the DB out?
If you did that, you would definitely qualify for that coffee making job we were talking about the other day  O:)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on April 18, 2009, 11:04:12 AM
Hey, thanks bro!
There was no way I was going to figure that out on my own.
My forum would be dull and boring without SMG!
So, thanks again!


Quote from: Dragooon on April 17, 2009, 01:22:51 AM
@PRaDiUS - OK After some looking, can you try these code changes? Make sure to install SMG 1.5.6
Open MGallery-SUb.php
Find
$request = $mgalFunc['db_query']('
SELECT
a.id_album, a.name, a.album_of AS id_member, a.approved, IFNULL(mem.realName, a.member_name) AS member_name,
a.num_items, a.passwd, a.icon, a.description, a.parent
FROM {db_prefix}mgallery_albums AS a
LEFT JOIN {db_prefix}members AS mem ON (mem.ID_MEMBER = a.album_of)
WHERE {_query_see_album}
AND a.type = {string:type}' . (!mgalAllowedTo('moderate') ? '
AND (a.approved = 1 OR a.album_of = ' . $user_info['id'] . ')' : '') . '
ORDER BY a.album_of ASC, {string:sort_by} {string:sort_order}
LIMIT {int:start},{int:per_page}',
array('type' => 'user', 'sort_by' => $sort_by, 'sort_order' => $sort_order, 'start' => $start, 'per_page' => $per_page),__FILE__,__LINE__);
$context['mgallery_user_albums'] = array();
while ($row = $mgalFunc['db_fetch_assoc']($request))
{
$context['mgallery_user_albums'][$row['id_album']] = $row;
$context['mgallery_user_albums'][$row['id_album']]['icon'] = !empty($row['icon']) && $row['icon'] > 0 ? '<img alt="" src="'.$galurl.'sa=media;id='.$row['id_album'].';icon" />' : '';
// Sub user-albums
$sub_albums = array();
if ($mgalSettings['show_sub_albums_on_index'] == '1') {
$sub_user_albums = $mgalFunc['db_query']('
SELECT a.id_album, a.name, a.approved
FROM {db_prefix}mgallery_albums AS a
WHERE a.parent = {int:parent}' . (!mgalAllowedTo('moderate') ? '
AND (a.approved = 1 OR a.album_of = ' . $user_info['id'] . ')' : '') . '
AND {_query_see_album}',
array('parent' => $row['id_album']),__FILE__,__LINE__);
while ($sub = $mgalFunc['db_fetch_assoc']($sub_user_albums))
$sub_albums[] = $sub['id_album'];
$mgalFunc['db_free_result']($sub_user_albums);
}
$context['mgallery_user_albums'][$row['id_album']]['sub_albums'] = $sub_albums;
$context['mgallery_user_albums'][$row['id_album']]['description'] = $mgalFunc['parse_bbc']($row['description']);
}
$mgalFunc['db_free_result']($request);

Replace with
// Load all the user albums..
getAlbums(false, true, false, false, 0, 'a.type = \'user\'');

// Another query for sorintg...
$request = $mgalFunc['db_query']('
SELECT
a.id_album
FROM {db_prefix}mgallery_albums AS a
WHERE {_query_see_album}
AND a.type = {string:type}' . (!mgalAllowedTo('moderate') ? '
AND (a.approved = 1 OR a.album_of = ' . $user_info['id'] . ')' : '') . '
AND a.child_level = 0
ORDER BY a.album_of ASC, {string:sort_by} {string:sort_order}
LIMIT {int:start}, {int:per_page}',
array('type' => 'user', 'sort_by' => $sort_by, 'sort_order' => $sort_order, 'start' => $start, 'per_page' => $per_page),__FILE__,__LINE__);
$context['mgallery_user_albums'] = array();
while ($row = $mgalFunc['db_fetch_assoc']($request))
$context['mgallery_user_albums'][$row['id_album']] = $context['mgallery_albums'][$row['id_album']];
$mgalFunc['db_free_result']($request);


Open Subs-MGallery.php
Find
a.approved, a.directory, a.icon, f.filesize, f.width, f.height, a.a_order
Replace with
a.approved, a.directory, a.icon, f.filesize, f.width, f.height, a.a_order, a.passwd
Find
'order' => $row['a_order'],
'overall_total' => 0,

Add after

'passwd' => $row['passwd'],


Open MGallery.template.php
Find
function smg_show_sub_albums($alb)
{
global $context, $galurl, $settings, $txt, $mgalFunc;

$ret = '';
foreach ($context['mgallery_user_albums'][$alb]['sub_albums'] as $sub_album)
{
$album = &$context['mgallery_user_albums'][$sub_album];
$ret .= smg_locked_album($album['passwd'], $album['id_album'], $album['id_member'], $album['num_items'] . ' ' . $txt['mgallery_items'])
. ' <a href="' . $galurl.'sa=album;id=' . $album['id_album'] . '"' . (!$album['approved'] ? ' class="unapp"' : '') . '>' . $album['name'] . '</a>';
if (!empty($album['sub_albums']))
$ret .= ' (' . smg_show_sub_albums($album['id_album']) . ')';
$ret .= ', ';
}
return rtrim($ret, ', ');
}

function template_mgallery_viewUserAlbums()
{
global $txt, $context, $scripturl, $galurl;

// The Albums!
echo '
<div class="catbg item_heading">', $context['show_general_albums_link'] ? '
<b><a href="'.$galurl.'">'.$txt['mgallery_albums'].'</a></b> -' : '', '
<b>'.$txt['mgallery_user_albums'].'</b>
</div>';

echo '
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="tborder">
<tr class="windowbg">
<td colspan="4">',$txt['mgallery_pages'], ': ', $context['mgallery_page_index'],'</td>
</tr>
<tr class="titlebg2">
<td width="8%">',$txt['mgallery_icon'],'</td>
<td>',$txt['mgallery_name'],'</td>
<td>',$txt['mgallery_items'],'</td>
</tr>';

$current_owner = 0;
foreach ($context['mgallery_user_albums'] as $album)
{
if (!empty($album['parent']))
continue;
if ($album['id_member'] != $current_owner)
{
$current_owner = $album['id_member'];
echo '
<tr class="catbg item_heading">
<td colspan="3">', $txt['mgallery_owner'], ': ', smg_profile($album['id_member'], $album['member_name']), '</td>
</tr>';
}
echo '
<tr class="windowbg">
<td align="center">',$album['icon'], '</td>
<td', !$album['approved'] ? ' class="unapp"' : '', '>
<div class="mg_large"><a href="'.$galurl.'sa=album;id='.$album['id_album'].'">'.$album['name'].'</a>',
smg_locked_album($album['passwd'], $album['id_album'], $album['id_member']), '</div>
<div class="mg_desc">'.$album['description'].'</div></td>
<td>'.$album['num_items'].'</td>
</tr>';
if (!empty($album['sub_albums']))
echo '
<tr class="windowbg"><td colspan="4">', $txt['mgallery_sub_albums'], ': ', smg_show_sub_albums($album['id_album']), '</td></tr>';
}
echo '
</table>';
}


Replace with
function smg_show_sub_albums($alb)
{
global $context, $galurl, $settings, $txt, $mgalFunc;

$ret = '';
foreach ($context['mgallery_albums'][$alb]['sub_albums'] as $sub_album)
{
$album = &$context['mgallery_albums'][$sub_album];
$ret .= smg_locked_album($album['passwd'], $album['id'], $album['owner']['id'], $album['num_items'] . ' ' . $txt['mgallery_items'])
. ' <a href="' . $galurl.'sa=album;id=' . $album['id'] . '"' . (!$album['approved'] ? ' class="unapp"' : '') . '>' . $album['name'] . '</a>';
if (!empty($album['sub_albums']))
$ret .= ' (' . smg_show_sub_albums($album['id_album']) . ')';
$ret .= ', ';
}
return rtrim($ret, ', ');
}

function template_mgallery_viewUserAlbums()
{
global $txt, $context, $scripturl, $galurl;

// The Albums!
echo '
<div class="catbg item_heading">', $context['show_general_albums_link'] ? '
<b><a href="'.$galurl.'">'.$txt['mgallery_albums'].'</a></b> -' : '', '
<b>'.$txt['mgallery_user_albums'].'</b>
</div>';

echo '
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="tborder">
<tr class="windowbg">
<td colspan="4">', $txt['mgallery_pages'], ': ', $context['mgallery_page_index'], '</td>
</tr>
<tr class="titlebg2">
<td width="8%">', $txt['mgallery_icon'], '</td>
<td>', $txt['mgallery_name'], '</td>
<td>', $txt['mgallery_items'], '</td>
</tr>';

$current_owner = 0;
foreach ($context['mgallery_user_albums'] as $album)
{
if ($album['id_member'] != $current_owner)
{
$current_owner = $album['id_member'];
echo '
<tr class="catbg item_heading">
<td colspan="3">', $txt['mgallery_owner'], ': ', smg_profile($album['owner']['id'], $album['owner']['name']), '</td>
</tr>';
}
echo '
<tr class="windowbg">
<td align="center">', $album['icon']['src'], '</td>
<td', !$album['approved'] ? ' class="unapp"' : '', '>
<div class="mg_large"><a href="'.$galurl.'sa=album;id='.$album['id'].'">'.$album['name'].'</a>',
smg_locked_album($album['passwd'], $album['id'], $album['owner']['id']), '</div>
<div class="mg_desc">'.$album['description'].'</div></td>
<td>'.$album['num_items'].'</td>
</tr>';
if (!empty($album['sub_albums']))
echo '
<tr class="windowbg"><td colspan="4">', $txt['mgallery_sub_albums'], ': ', smg_show_sub_albums($album['id']), '</td></tr>';
}
echo '
</table>';
}


This should help fix the issue.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 18, 2009, 12:18:15 PM
Did it actually fix?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on April 18, 2009, 03:13:26 PM
So far, so good! I've messed with everything and it seems error free. I've only made a couple new user albums since I made the change. But it seems to be counting them and adding them in the correct order now.

One thing I noticed is that after I made the change... You know how in user albums section it will show the users name then the albums said user has made underneath their name. Like...

ThaKiLLa
- Album 1
- Album 2
- etc.
PRaDiUS
- Album 1
- Album 2
- etc.

Since the names have been removed the list now goes...

- Album 1
- Album 2
- etc.
- Album 1
- Album 2
- etc.

But, I actually like it better this way. Because I have it set up so that only moderators can add user albums - to show screenshots of new xbox games... and it does not really matter to my members which moderator added them. So this works out great for me.

Example here - http://rgxbox.com/index.php?action=mgallery;sa=vua (http://rgxbox.com/index.php?action=mgallery;sa=vua)

Bottom line is, I like it better this way by not listing the user names on the user album index.
And so far it seems to be counting the albums and adding them correctly.


Thank you very much!

Oh, where can I go into the script and change the name "user albums" to "Game Albums"?
I was assuming somewhere in the source Subs, but I can't find it.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 18, 2009, 03:35:10 PM
Mgallery.english.php in languages folder.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 18, 2009, 06:09:53 PM
Good job on your work on SMG these days, Dragooon! (You know what I mean. I don't have time to test it myself but it's nice to see you're back in full gear!)
I'm working hard on Noisen, too -- more specifically, on setting up my playlist system which I will then do my best to re-use as faithfully as possible in SMG.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: tridirk on April 18, 2009, 11:57:37 PM
Well try as I might... I couldn't get it to work on either of my two forums.  So I uninstalled it.

I'll check back in a few months and maybe you will have an idiot proof version for guys like me that aren't code experts.

Thanks....again for your time.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 19, 2009, 01:57:15 AM
Quote from: tridirk on April 18, 2009, 11:57:37 PM
Well try as I might... I couldn't get it to work on either of my two forums.  So I uninstalled it.

I'll check back in a few months and maybe you will have an idiot proof version for guys like me that aren't code experts.

Thanks....again for your time.
What were your issues?

Quote from: Nao 尚 on April 18, 2009, 06:09:53 PM
Good job on your work on SMG these days, Dragooon! (You know what I mean. I don't have time to test it myself but it's nice to see you're back in full gear!)
I'm working hard on Noisen, too -- more specifically, on setting up my playlist system which I will then do my best to re-use as faithfully as possible in SMG.
Thanks, good luck with your work.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on April 19, 2009, 12:30:24 PM
Quote from: mattchewone on April 17, 2009, 07:23:34 AM
5.   Execute Modification   ./Sources/Load.php   Test failed
   1.   Replace   ./Sources/Load.php   Test successful
   2.   Replace   ./Sources/Load.php   Test failed

What does this mean and how can i fix it?

Procede but edit those files that failed manually.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: tridirk on April 19, 2009, 02:13:24 PM
Quote from: Dragooon on April 19, 2009, 01:57:15 AM
Quote from: tridirk on April 18, 2009, 11:57:37 PM
Well try as I might... I couldn't get it to work on either of my two forums.  So I uninstalled it.

I'll check back in a few months and maybe you will have an idiot proof version for guys like me that aren't code experts.

Thanks....again for your time.
What were your issues?

Pictures wouldn't show, either by the conversion from Gallery lite or a new install.  We had several posts back and forth about it.  I posted some screen shots...etc.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 19, 2009, 03:10:18 PM
Quote from: tridirk on April 19, 2009, 02:13:24 PM
Quote from: Dragooon on April 19, 2009, 01:57:15 AM
Quote from: tridirk on April 18, 2009, 11:57:37 PM
Well try as I might... I couldn't get it to work on either of my two forums.  So I uninstalled it.

I'll check back in a few months and maybe you will have an idiot proof version for guys like me that aren't code experts.

Thanks....again for your time.
What were your issues?

Pictures wouldn't show, either by the conversion from Gallery lite or a new install.  We had several posts back and forth about it.  I posted some screen shots...etc.
Anything when you run Maintenance > Find errors? What are the permissions of mgal_data folder and MGallery.php? And where wouldn't the pictures show?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Darkness_ on April 19, 2009, 03:17:16 PM
is it possible with SSI to give smg another theme then the forum?
if it is,  could someone tell me how?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: amlucent on April 19, 2009, 06:13:30 PM
I hope this is the thread for some support for SMG, if not please dont roast me  :D.   

I have a SMF 2.0 rc1 site with SMG 1.5.4 that was working beautifully only my webhost was fail.. so to make a long story short, I have moved my site to a new webhost that is much better only I purchased an extra domain name (same name only a .net instead of .com) while I am waiting on my name transfer.   Also my home folder name on the new server is different than the old (one character less).

so I uninstalled all mods.  copied all files to the new host.  imported the database. Ran "repair_settings.php". then I reinstalled all the mods.  All the gallery entries are there... only no images are ever displayed (I have tried using SMG 1.5.4 and 1.5.6 and same results with either one).

here is a link so that you can see what I am saying. 

http://gwgoodolddays.net/forums/index.php?action=mgallery (http://gwgoodolddays.net/forums/index.php?action=mgallery)  no thumbnails, no pictures.

Is it possible it is looking for the pictures/thumbnails in the wrong location (because my user name on the webhost is different) due to the move?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 19, 2009, 06:28:49 PM
It says "File not found" when you try to download the files directly by their URL...
You probably entered a wrong address for your mgal_data folder?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: amlucent on April 19, 2009, 06:48:49 PM
Quote from: Nao 尚 on April 19, 2009, 06:28:49 PM
It says "File not found" when you try to download the files directly by their URL...
You probably entered a wrong address for your mgal_data folder?

where/how do I change that?

I knew you guys could figure it out in about 2 minutes
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 19, 2009, 07:19:54 PM
Uh well in the SMG admin area, there's a place in the general settings where you set the target folder for your albums...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: amlucent on April 19, 2009, 07:44:20 PM
Sometimes my stupidity amazes even me!

Thanks so much Nao!  Issue solved.
Title: No Link button to Gallery
Post by: JBHolden on April 20, 2009, 12:20:36 AM
Can anyone help with this problem? I am using 1.1.8 and I recently added the SMF Gallery Lite 2.0.5. I'm also using a theme called REDSIS. The problem is that I do not have a link button on my tool bar to direct members to the new gallery. If I revert back to the default theme the link is there though.  I have no idea how to edit the files in my theme. If someone could give me REALLY good instructions on how to do this or possibly help me do it I would really apprreciate it. Thanks!
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: TomW on April 20, 2009, 10:18:05 AM
JBHolden, you need to edit the index.template.php file, plus you must edit modifications.english.php if there is a separate version for REDSIS.  Editing modifications.english.php is very simple; you simply cut and past the changes to the end of the file, before the '?>'.  Index.template.php can be more difficult.  Ask the theme author for assistance.  If they are unable, I'm sure that someone else could help you.  Attach the file to a post.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: JBHolden on April 20, 2009, 12:37:23 PM
Tom,
I tried asking the theme author but they don't speak english so that's out. Though you say this is simple I still don't feel comfortable doing it unless I had more specific instructions with some examples. How do I find these files to edit them and do I need a special program to do the edits?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Tiribulus on April 20, 2009, 01:09:18 PM
You find the matching sections in the files of the same name for your theme and duplicate those edits there. Use something like Notepad++ which is free and takes 30 seconds to install on a Windows box.

If you plan on doing a fair degree of modding of your forum this is something worth learning in my opinion. The further from default the site gets the more improvised surgery is likely to become necessary. The key is to ALWAYS backup your files before doing the edits. That way even if you were to botch the thing beyond all hope all you have to do is copy back the one before the edits and you're back in business.

Seriously, stuff like this not that hard, like everybody is telling you, once you get the hang of it and as long as you keep backups the danger is minimal.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Xavi-Nena on April 21, 2009, 01:05:04 AM
Forgive me  if this has been answered but I cannot find it in here, how can I display the albums horizontally instead of vertically?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 21, 2009, 02:10:40 AM
Quote from: NenaGb on April 21, 2009, 01:05:04 AM
Forgive me  if this has been answered but I cannot find it in here, how can I display the albums horizontally instead of vertically?
I am not sure but you'll need some serious recoding there.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: kevjkel on April 21, 2009, 04:02:29 AM
Hi
Everytime I try and click on my gallery albums i get this error:
Method Not Implemented  :-[

GET to /index.php not supported.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Ive tried uninstalling gallery lite and reinstalling Media gallery, but i have the same error on both mods only whe i want to view the gallery pics.
Ive contacted my Host and they said:

Hello Sir,

There is a problem with your script. GET parameter works perfectly on server, but your script doesn't accept it for unknown reasons. We have hundreds of customers using GET without problems on same server
I will be pleased to answer any additional questions you may have.

Is there any way i can sort this script. GET parameter out?

Many thanks for your help

P.S i have limited php knowledge, but im willing to give anything a try.

SMF 1.1.8
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 21, 2009, 04:09:34 AM
Do you have mod_security enabled?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 21, 2009, 05:49:31 AM
Definitely mod_security.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: kevjkel on April 21, 2009, 06:05:01 AM
Thanks for the reply! :D
Where do i go see if i have mod security enabled? In the control panel?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 21, 2009, 06:25:55 AM
Use phpinfo(What is a phpinfo() file? (http://docs.simplemachines.org/index.php?topic=479)) or ask your host.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: kevjkel on April 21, 2009, 07:10:11 AM
I created phpinfo.php with this code:<?php phpinfo(); ?>
I placed in my website base folder, and point my browser (firefox) to it.
I then get this error: Warning: phpinfo() has been disabled for security reasons in /home/zaparen/public_html/phpinfo.php on line 1 :(
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 21, 2009, 07:22:18 AM
Your host definitly doesn't know anything about security. Ask your host.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: kevjkel on April 21, 2009, 07:29:14 AM
Thanks, will do.
But i still dont understand how to get mod security disabled. After getting the phpinfo.ini to work what then?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: kevjkel on April 21, 2009, 07:45:49 AM
OK my host has done that for me. It lookd like my mod_security2 is enabled
Look:
Apache Version    Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.9
Apache API Version    20051115
Server Administrator    [email protected]
Hostname:Port    zaparentforum.com:0
User/Group    nobody(99)/99
Max Requests    Per Child: 10000 - Keep Alive: on - Max Per Connection: 100
Timeouts    Connection: 10 - Keep-Alive: 2
Virtual Server    Yes
Server Root    /usr/local/apache
Loaded Modules    core mod_authn_file mod_authn_default mod_authz_host mod_authz_groupfile mod_authz_user mod_authz_default mod_auth_basic mod_include mod_filter mod_log_config mod_logio mod_env mod_expires mod_headers mod_unique_id mod_setenvif mod_ssl prefork http_core mod_mime mod_status mod_autoindex mod_asis mod_info mod_suexec mod_cgi mod_negotiation mod_dir mod_actions mod_userdir mod_alias mod_rewrite mod_so mod_auth_passthrough mod_bwlimited mod_fpcgid mod_php5 mod_security2

Do i ask my host to disable it?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: kevjkel on April 21, 2009, 07:55:42 AM
More develpments:

My host says:

Hello,

We can not disable it (mod_security2), but if mod_security will cause any problems for you, you will get "406 error". I don't see this error on your site, what means it's not related to this module

Should you need additional assistance, have further questions, comments or concerns, please do not hesitate to contact us again.


I dont know what else to do HELP! >:(

This is my error msg:
Method Not Implemented  :-[
GET to /index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 21, 2009, 08:25:08 AM
It is definitely a mod_security error. Ask your host to disable it for you.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: kevjkel on April 21, 2009, 09:07:11 AM
Ok i got it sorted.
So my host refused to disable my mod_security2. This http://www.smfhacks.com/index.php?topic=3389.msg16119#msg1 (http://www.smfhacks.com/index.php?topic=3389.msg16119#msg1) worked PERFECT for me when using SMF MEDIA GALLERY.

Thankyou for all your help as it was a mod_security2 issue!
:) :) :) :) :) :)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: buckshot on April 21, 2009, 09:24:35 AM
I have just installed SMG on my site running SMF 2.0 RC1 with TinyPortal 2.2

The problems I have experienced are as follows.
The installation worked fine, no problems.
Then I tried to create an album and got an error message.
It turned out that the installation had not created the album folder in the mgal_data folder.

I created the folder but still problems.

I could now created an album but not upload any pictures.
I got an white screen with a file error message.

Then I started to read this thread and found that it might me a problem with to many sub folders.
I then tried to move the mgal_data folder and reconfigure the settings - data directory path.

Now it got even worse.

I then decided to uninstall and reinstall the package.

Even this is now impossible since it complains that "You cannot download or install new packages because the Packages directory or one of the files in it are not writable! "
And that is not true since all files are set to 777.

What do I do?
I want this to work since it would have been a great feature for my users.

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 21, 2009, 09:31:52 AM
First of all remove all the albums, delete mgal_data and then upload a new one from the gallery's package and chmod all the files/folders to 777. Then make sure Packages directory is chmodded to 777.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 21, 2009, 09:41:38 AM
Quote from: kevjkel on April 21, 2009, 09:07:11 AM
Ok i got it sorted.
So my host refused to disable my mod_security2. This http://www.smfhacks.com/index.php?topic=3389.msg16119#msg1 (http://www.smfhacks.com/index.php?topic=3389.msg16119#msg1) worked PERFECT for me when using SMF MEDIA GALLERY.

Thankyou for all your help as it was a mod_security2 issue!
:) :) :) :) :) :)
Told ya ;)

So, ";id" would be the cause for these crashes...? How weird! What's wrong with this?
That's a lot of changes you would have to make. Hopefully you use a file-wide search & replace ;)

Dragooon, should we change these? I'm thinking no...
I have no idea why SMF itself is working for you, though. Would it be due to something in the headers or the $_GET or $_POST variables?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: buckshot on April 21, 2009, 09:42:18 AM
Done!
Still the same problem!

I would be happy to give you rights to go in and have a look.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 21, 2009, 11:03:22 AM
Did you try the .htaccess solution?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: buckshot on April 21, 2009, 11:39:01 AM
Ehh..
I am afraid I have no clue about that solution..

Could you please enlighten me?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 21, 2009, 01:03:09 PM
...the solution that is written down in bold right after you finish installing SMG..................... <ahah>

..........................do people read warnings we show on screen? because if they don't, I'll have to remember not to write them...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: buckshot on April 21, 2009, 01:11:33 PM
Sorry... I missed that...
I am no guru on this I am afraid..

Any chanse you could help me get it running?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 21, 2009, 01:22:43 PM
http://tinyurl.com/dn8bzk
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: buckshot on April 21, 2009, 02:01:42 PM
Well. I have checked and the mod_security is not enabled on my server.
Do I still need to do this?

I can not un-install the module either and start from the beginning...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: quiz_modder on April 21, 2009, 06:12:41 PM
Any way to handle these errors better when a member is removed - I assume that is why the error is occurring. Perhaps have a maintenance task that cleans up or have I missed one that does this?

Thanks

index.php?action=mgallery;sa=item;id=2065
Apply Filter: Only show the errors with the same message
512: loadMemberContext(): member id 666 not previously loaded by loadMemberData()
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: buckshot on April 22, 2009, 01:36:54 AM
Just to summarize the problem I have.

I can not create any "general album" since i then get the error "This album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums is chmodded to 777 "

This is NOT a valid error since my mgal_data folder and sub folders IS set to 777.
I HAVE tried to delete the mgal_data folder and upload a new from the installation pack. Same problem.

There is NOT any mod_security enabled on my server.
The server is NOT in php safe mode.

As it looks everything is as it should. But I can not get it to work.
I have read the whole thread and it seems some people have had the same issue but there is no telling how they got it to work.

Can ANYONE help me out?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 22, 2009, 03:51:58 AM
Is mgal_data/albums also 777?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: buckshot on April 22, 2009, 04:27:05 AM
Quote from: Dragooon on April 22, 2009, 03:51:58 AM
Is mgal_data/albums also 777?

Yes.
All files in the mgl_data folder is set to 777

if it helps I could give you rights to have a look.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 22, 2009, 05:06:22 AM
Are you using a custom theme? (lol)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: buckshot on April 22, 2009, 05:13:49 AM
Yes..

Do it have such an impact that it wont work??

I HAVE tried to unistall the mod.
Then change to the "core" theme, then install the package again.
Same thing... NOT WORKING..
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 22, 2009, 05:49:08 AM
Quote from: buckshot on April 22, 2009, 05:13:49 AM
Yes..

Do it have such an impact that it wont work??
Yes.
http://smf-media.com/community/index.php?topic=778.0
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: buckshot on April 22, 2009, 05:53:03 AM
I understand this.

But have I messed something up that bad I will never get it to work?
I DID unistall the mod and REinstalled it on the default theme but still no luck.

And to clearify... I have issues with creating album... I have not yet come to the upload part

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 22, 2009, 05:56:50 AM
Are you sure the data directory path is correct? Check in Admin > Gallery > Settings.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: buckshot on April 22, 2009, 06:11:17 AM
I sure think so..

if I look in the settings it is: /domains/aggma.com/public_html/forum/mgal_data
And if I look in a FTP Client the path is: /domains/aggma.com/public_html/forum/mgal_data

It is a Unix system so it means the actual path is /usr/home/alltkul/domains/aggma.com/public_html/forum/mgal_data
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: buckshot on April 22, 2009, 06:25:37 AM
SOLVED!

I inserted the FULL path in the settings and now it works fine!
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 22, 2009, 07:18:15 AM
^_^.....Great then.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: buckshot on April 22, 2009, 07:25:35 AM
Yes.. Thanks a lot to you guys!

But now there is just a slight matter.
The pictures gets stacked on top in a vertical row in the albums.
Not in a horizontal plane as you have on your website.

Is this something that can be altered?

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 22, 2009, 07:29:05 AM
Have you made sure to copy the mgallery folder from default theme to your theme? And that mgallery folder has all the contents like in the archive?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: buckshot on April 22, 2009, 07:43:59 AM
Sorry!..

Now it works PERFECT!!

A great Mod guys! And most of all... GREAT support
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 22, 2009, 08:42:51 AM
Quote from: Dragooon on April 22, 2009, 07:29:05 AM
Have you made sure to copy the mgallery folder from default theme to your theme? And that mgallery folder has all the contents like in the archive?
Wasn't this problem fixed long ago? Why are we using a function to retrieve the target mgallery folder otherwise?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: C.A.T on April 22, 2009, 08:55:29 PM
Quote from: buckshot on April 22, 2009, 01:36:54 AM
Just to summarize the problem I have.

I can not create any "general album" since i then get the error "This album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums is chmodded to 777 "

This is NOT a valid error since my mgal_data folder and sub folders IS set to 777.
I HAVE tried to delete the mgal_data folder and upload a new from the installation pack. Same problem.

There is NOT any mod_security enabled on my server.
The server is NOT in php safe mode.

As it looks everything is as it should. But I can not get it to work.
I have read the whole thread and it seems some people have had the same issue but there is no telling how they got it to work.

Can ANYONE help me out?

Please can you tell me if you fixed this problem and if so..HOW?? It's driving me nuts!! Many thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: JBHolden on April 22, 2009, 10:12:35 PM
Using SMF Media Gallery Lite. How do I set it up so each member has their own folder instead of everybody's pictures being all together?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Kindred on April 22, 2009, 11:33:33 PM
allow users permissions to create user albums
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 23, 2009, 12:41:28 AM
Quote from: JBHolden on April 22, 2009, 10:12:35 PM
Using SMF Media Gallery Lite. How do I set it up so each member has their own folder instead of everybody's pictures being all together?
SMF Media Gallery Lite? What? Are you sure you're using the correct thing...

Quote from: C.A.T on April 22, 2009, 08:55:29 PM
Quote from: buckshot on April 22, 2009, 01:36:54 AM
Just to summarize the problem I have.

I can not create any "general album" since i then get the error "This album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums is chmodded to 777 "

This is NOT a valid error since my mgal_data folder and sub folders IS set to 777.
I HAVE tried to delete the mgal_data folder and upload a new from the installation pack. Same problem.

There is NOT any mod_security enabled on my server.
The server is NOT in php safe mode.

As it looks everything is as it should. But I can not get it to work.
I have read the whole thread and it seems some people have had the same issue but there is no telling how they got it to work.

Can ANYONE help me out?

Please can you tell me if you fixed this problem and if so..HOW?? It's driving me nuts!! Many thanks
Make sure that it has correct ownership. Have you checked for mod_security and safe_mode via phpinfo(Yes I've read your comments about them)? And is the data directory path correct under Admin > Gallery > Settings?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Baloch on April 23, 2009, 09:57:29 AM
Is there any option to restrict my member to not upload images more then 1.5 M.B?

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 23, 2009, 10:10:03 AM
Admin > Gallery > Settings > Maximum file size.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Baloch on April 24, 2009, 04:44:28 AM
Quote from: Dragooon on April 23, 2009, 10:10:03 AM
Admin > Gallery > Settings > Maximum file size.

This option is controlling individual photo/item.

I want to set quota of each and every member.
means if member "x" uploaded 20 pictures of 5 MB and his quota is 5 MB too then he must have to ask to the admin for further uploading quota.


as we have seen in flicker or some other image hosting sites.

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 24, 2009, 04:58:36 AM
In SMG 2.0 it is possible on per-membergroup/per-album basis. But per-member is not possible, it'll be too much of a overkill.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 24, 2009, 06:17:39 AM
You could simply create a membergroup just for that user.

Which makes me think-- which membergroup is taken into account, when some user is present in TWO membergroups?
Let's say he's in membergroup "Pic Masters", which has a big quota on pics but small quota on audio/video, and in membergroup "Media Masters", which has a big quota on audio/video but small quota on pictures. Will they end up with big quotas in pics/audio/video, or something else? Lol.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 24, 2009, 06:26:00 AM
Quote from: Nao 尚 on April 24, 2009, 06:17:39 AM
You could simply create a membergroup just for that user.

Which makes me think-- which membergroup is taken into account, when some user is present in TWO membergroups?
Let's say he's in membergroup "Pic Masters", which has a big quota on pics but small quota on audio/video, and in membergroup "Media Masters", which has a big quota on audio/video but small quota on pictures. Will they end up with big quotas in pics/audio/video, or something else? Lol.
All the quotas are taken into consideration, and which ever is the biggest in each field is used.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 24, 2009, 06:37:20 AM
Good, good :) I see you thought of everything, eheh.

Oh, btw: I've updated the description for converters on the mod page, to make it shorter and more up to date. However I don't have access to your post on the first page so I can't update it there as well. So you might want to update it.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atheo on April 24, 2009, 10:33:02 AM
Hello,

I don't know if this has been asked yet or not but I am getting upload errors everytime I try to use the mass upload feature. I am able to upload individual files just fine but the mass upload does nothing but process then return an error. Please help. I love this mod!

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 24, 2009, 11:33:14 AM
Disable mod_security and/or check the location setting for your SMG data folder.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Sarlat on April 24, 2009, 11:35:58 AM
There is an error in mgconverter_sgl.php

When you use it for comments (step 4) you got :
QuoteThe database value you're trying to insert does not exist: id_album

That happen when you had delete some comments and then ID_COMMENT miss some number (ie : 1, 2, 4, 8, 9...).

Line 435 find :

$mgalFunc['db_insert'](
'{db_prefix}mgallery_comments',

replace by

if ($row['id_cat'])
$mgalFunc['db_insert'](
'{db_prefix}mgallery_comments',
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atheo on April 24, 2009, 11:55:32 AM
Quote from: Nao 尚 on April 24, 2009, 11:33:14 AM
Disable mod_security and/or check the location setting for your SMG data folder.

Nao was this @ me? If so...how do I do this?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 24, 2009, 01:43:10 PM
@Sarlat> How come this could happen?
Could you test by simply changing the LEFT JOIN to a INNER JOIN in the query before line 435?
I don't think there's any harm in doing this, and it'll ensure all data returned will have an id_album.

@Atheo> Yes, and --> did you read the text that appeared after you installed? I didn't write it for fun, you know :P
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Sudhakar Arjunan on April 24, 2009, 01:52:37 PM
Hi Author,

I need to change the path of existing gallery mod to mgallery mod.

Since i have tried changing .httaccess.

I dont see the gallery is redirected to mgallery.

Help me out.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Sarlat on April 24, 2009, 03:01:31 PM
Quote from: Nao 尚 on April 24, 2009, 01:43:10 PM
@Sarlat> How come this could happen?
Could you test by simply changing the LEFT JOIN to a INNER JOIN in the query before line 435?
Because someone did not think about this possibilitie...  ::)

see pb with $last_com
$request = convert_query('
SELECT MAX(id_comment)
FROM {db_prefix}mgallery_comments',
array(),__FILE__,__LINE__);
list($last_com) = $mgalFunc['db_fetch_row']($request);

and
FROM {db_prefix}gallery_comment AS c
LEFT JOIN {db_prefix}gallery_pic AS p ON (p.ID_PICTURE = c.ID_PICTURE)
WHERE ID_COMMENT > {int:last_com}

Then when numbers don't follow : error.

Inner is worth, step4 never finish.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 24, 2009, 06:55:41 PM
I don't understand a word of what you're saying.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atheo on April 24, 2009, 07:08:45 PM
"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request."

That is what I get when creating the .htaccess file

Now what?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Darkness_ on April 24, 2009, 07:23:52 PM
Quote from: Darkness_ on April 19, 2009, 03:17:16 PM
is it possible with SSI to give smg another theme then the forum?
if it is,  could someone tell me how?

Asked it several times but no answer.
is there really nobody that even tries to help me out of this?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Kindred on April 24, 2009, 07:48:25 PM
I think the basic answer is "NO" Darkness...


more specifically, it may be POSSIBLE, but not without custom coding on your part.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 24, 2009, 07:55:31 PM
@Atheo> Did you check your data folder location first?

@Darkness_> It's safe to assume you can't. I don't use multiple themes myself so I wouldn't even know where to start to implement this.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atheo on April 24, 2009, 08:04:09 PM
I don't know what you want me to check it for. If you mean the permissions then its 755.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Darkness_ on April 24, 2009, 09:17:35 PM
isn't it possible to do it with ssi_theme?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Kindred on April 24, 2009, 10:13:44 PM
Darkness,

As we have said, it is POSSIBLE, but will require additional coding on your part.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Darkness_ on April 24, 2009, 10:39:26 PM
if I could i would.
Someone who can help me with this?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: tridirk on April 24, 2009, 10:44:10 PM
Quote from: Dragooon on April 19, 2009, 03:10:18 PM
Quote from: tridirk on April 19, 2009, 02:13:24 PM
Quote from: Dragooon on April 19, 2009, 01:57:15 AM
Quote from: tridirk on April 18, 2009, 11:57:37 PM
Well try as I might... I couldn't get it to work on either of my two forums.  So I uninstalled it.

I'll check back in a few months and maybe you will have an idiot proof version for guys like me that aren't code experts.

Thanks....again for your time.
What were your issues?

Pictures wouldn't show, either by the conversion from Gallery lite or a new install.  We had several posts back and forth about it.  I posted some screen shots...etc.
Anything when you run Maintenance > Find errors? What are the permissions of mgal_data folder and MGallery.php? And where wouldn't the pictures show?
no errors when I ran the maintenance check.  The permissions were all set and changed, I posted a screen shot of that.  The pictures did not appear, the spaces where the pictures were, were red x's until they tried to load and then even the red x's disappeared.  Thanks for the mod, looked  great on the sites I visited that had it installed. But as I said, I was unable to get it to work.  Not blaming the mod, I am sure I just don't understand well enough how to finalize the install.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 25, 2009, 12:44:39 AM
Quote from: tridirk on April 24, 2009, 10:44:10 PM
Quote from: Dragooon on April 19, 2009, 03:10:18 PM
Quote from: tridirk on April 19, 2009, 02:13:24 PM
Quote from: Dragooon on April 19, 2009, 01:57:15 AM
Quote from: tridirk on April 18, 2009, 11:57:37 PM
Well try as I might... I couldn't get it to work on either of my two forums.  So I uninstalled it.

I'll check back in a few months and maybe you will have an idiot proof version for guys like me that aren't code experts.

Thanks....again for your time.
What were your issues?

Pictures wouldn't show, either by the conversion from Gallery lite or a new install.  We had several posts back and forth about it.  I posted some screen shots...etc.
Anything when you run Maintenance > Find errors? What are the permissions of mgal_data folder and MGallery.php? And where wouldn't the pictures show?
no errors when I ran the maintenance check.  The permissions were all set and changed, I posted a screen shot of that.  The pictures did not appear, the spaces where the pictures were, were red x's until they tried to load and then even the red x's disappeared.  Thanks for the mod, looked  great on the sites I visited that had it installed. But as I said, I was unable to get it to work.  Not blaming the mod, I am sure I just don't understand well enough how to finalize the install.
Do you have mod_security or php safe_mode enabled?

Quote from: Darkness_ on April 24, 2009, 09:17:35 PM
isn't it possible to do it with ssi_theme?
SSI isn't even loaded in normal mgallery pages...So no. But it is possible by modifying other parts, as Kindred said, It'll require some custom coding at your part.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Harvester on April 25, 2009, 01:52:44 AM
Hello,

When I embed images in my posts using the BBC Embed Code I feel the thumbnails are too small and that the larger image once you click on the thumbnail is also too small.

How can I change the size of both? I've been searching through the code but I cant find where you set this. Please help me change this?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Baloch on April 25, 2009, 01:54:08 AM
Quote from: Dragooon on April 24, 2009, 04:58:36 AM
In SMG 2.0 it is possible on per-membergroup/per-album basis. But per-member is not possible, it'll be too much of a overkill.
is that compatable for smf 1.1.8?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 25, 2009, 01:55:55 AM
Quote from: Baloch on April 25, 2009, 01:54:08 AM
Quote from: Dragooon on April 24, 2009, 04:58:36 AM
In SMG 2.0 it is possible on per-membergroup/per-album basis. But per-member is not possible, it'll be too much of a overkill.
is that compatable for smf 1.1.8?

When it will be released, yes.

Quote from: Harvester on April 25, 2009, 01:52:44 AM
Hello,

When I embed images in my posts using the BBC Embed Code I feel the thumbnails are too small and that the larger image once you click on the thumbnail is also too small.

How can I change the size of both? I've been searching through the code but I cant find where you set this. Please help me change this?
You can change the thumbnail's size in Admin > Gallery > Settings.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Harvester on April 25, 2009, 03:32:15 AM
Quote from: Dragooon on April 25, 2009, 01:55:55 AM
You can change the thumbnail's size in Admin > Gallery > Settings.

oh yah... great.  thank you :)

now how do I change what size the image (placed with the bbc embed code) opens up to once the thumbnail is clicked on the posts?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 25, 2009, 03:45:22 AM
Max preview width and height under the thumbnail options.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Harvester on April 25, 2009, 06:17:48 AM
Quote from: Dragooon on April 25, 2009, 03:45:22 AM
Max preview width and height under the thumbnail options.


If I change that does it not affect already posted images and thumbnails?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 25, 2009, 06:23:38 AM
No. But you can run a regenerate.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 25, 2009, 07:37:44 AM
It's best to wait for v2.0 if you want to regenerate thumbnails.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Harvester on April 25, 2009, 05:10:47 PM
ok will do, boss. :D

thank you for helping me for now though :D

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: 3wasef on April 25, 2009, 06:35:35 PM
Quote from: Nao 尚 on April 25, 2009, 07:37:44 AM
It's best to wait for v2.0 if you want to regenerate thumbnails.

Wow, this mean we will get the new release v. soon, Exciting  :D


Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: chrisb on April 26, 2009, 02:19:13 AM
when i install the following mod for sources /load.php.

i will get errors on the page, so i have taken this off now.

/Sources/Load.php

What could be causing these issues, and i would like someone to have a look for me please

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 26, 2009, 05:49:08 AM
Quote from: 3wasef on April 25, 2009, 06:35:35 PM
Quote from: Nao 尚 on April 25, 2009, 07:37:44 AM
It's best to wait for v2.0 if you want to regenerate thumbnails.

Wow, this mean we will get the new release v. soon, Exciting  :D
No, v2 won't be released before this summer. It'll be entering beta in May, though. Hopefully.

It simply means that regenerating all thumbnails in the current release will create a "gap" in file IDs because they're not kept, and minor issues within subfolders. It can be done with, of course, but I spent some time rewriting the whole function to make sure it worked fine, so I'd say, now that we're less than a month away from entering beta, maybe this user should wait.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: NooNYUki on April 27, 2009, 02:16:48 AM
 :-[ uh i give up.. i was digging this thread to look for similar problem and fix..
i found one but I can't understand how the fix works..
this is my error.

Method Not Implemented

GET to /testpage/index.php not supported.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at testpage.projectnoir.net Port 80

i can create album. But when I press that album link the above message shows up.
i've also changed chmoded my mgal_data and albums to 777. I'm testing this out on default theme. Is there any other files/folders that i need to change permissions??

I've also created .htaccess file as instructed.

my smf is 1.1.8.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 27, 2009, 04:16:26 AM
Quote from: NooNYUki on April 27, 2009, 02:16:48 AM
:-[ uh i give up.. i was digging this thread to look for similar problem and fix..
You didn't dig hard enough.
Search for "disable mod_security .htaccess" on Google.
The same is also explained in SMG itself, when you install it. It's in the post-install readme.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: NooNYUki on April 27, 2009, 04:23:02 AM
Hi Nao
Thanks for your reply. I already had the .htaccess file as instructed in the page that shows up after installation of this mod. Now my error is 501 method not implemented error.
Any idea? I'm quite new to smf and other forum softwares.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 27, 2009, 05:10:54 AM
What does your admin setting say about SMG's data folder location?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: NooNYUki on April 27, 2009, 05:47:50 AM
/home/projec32/public_html/testpage/testpage/mgal_data

Is that what you mean? this is the value in admin panel's configuration> gallery> data directory path

By the way, I tried the fix I found in page 158 (or somewhere around there) which directs to this page. http://www.smfhacks.com/index.php?topic=3389.msg16119#msg1
I wanna know what is the relevant file for Sources/Gallery2.php of that solution in SMG?
I tried default/mgalleryitem.php and it works but i think i ll still need to fix the sources part but I have no idea which file I should fix.
Thanks again for your patience.  :P
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: everwake on April 27, 2009, 06:06:08 AM
hello!

i have a problem with mgallery 1.5.6

i can't create folder from admin panel! and i can't see the pics from my albums!

my smf version is 2.0RC1

ERROR

This album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums is chmodded to 777


but all files and folders is chmodded to 777!


error log

file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/var/www/vhosts/clanwars.gr/mgal_data/albums/lineage2) is not within the allowed path(s): (/var/www/vhosts/clanwars.gr/httpdocs:/tmp)

File: /var/www/vhosts/clanwars.gr/httpdocs/Sources/Subs-MGallery.php
Line: 785


line 785 in subs-mgallery.php


while (file_exists($new_path_to_album))


my phpinfo
www.clanwars.gr/phpinfo.php (http://www.clanwars.gr/phpinfo.php)

thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 27, 2009, 07:31:13 AM
Is open_basedir enabled? if so try disabling it.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atheo on April 27, 2009, 10:18:31 AM
Quote from: Atheo on April 24, 2009, 10:33:02 AM
Hello,

I don't know if this has been asked yet or not but I am getting upload errors everytime I try to use the mass upload feature. I am able to upload individual files just fine but the mass upload does nothing but process then return an error. Please help. I love this mod!

Ok, I have asked already but everyone kind of ignored me so here goes again. I am unable to mass upload. Only thumbnails upload and not full images. This sucks since I really enjoy this mod.

Someone help?   I am using SMF 2RC1 with only PortaMX installed so far. I have permissions for all the gallery related paths. I keep getting the little red triangle telling me larger pics could not upload.

Thanks for your help!
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 27, 2009, 11:33:25 AM
Quote from: Atheo on April 27, 2009, 10:18:31 AM
Quote from: Atheo on April 24, 2009, 10:33:02 AM
Hello,

I don't know if this has been asked yet or not but I am getting upload errors everytime I try to use the mass upload feature. I am able to upload individual files just fine but the mass upload does nothing but process then return an error. Please help. I love this mod!

Ok, I have asked already but everyone kind of ignored me so here goes again. I am unable to mass upload. Only thumbnails upload and not full images. This sucks since I really enjoy this mod.

Someone help?   I am using SMF 2RC1 with only PortaMX installed so far. I have permissions for all the gallery related paths. I keep getting the little red triangle telling me larger pics could not upload.

Thanks for your help!
How large are those images? Are they over your upload_max_filesize?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atheo on April 27, 2009, 11:47:57 AM
You know I didn't even check that. How can I change the max upload size?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 27, 2009, 11:50:30 AM
See phpinfo.php to know that(What is a phpinfo() file? (http://docs.simplemachines.org/index.php?topic=479)). Ask your host to change the values if you need to.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atheo on April 27, 2009, 12:08:48 PM
So there is nothing more from here then?

Its hard to imagine a host as popular as hostmonster having upload sizes so low but I'll give it a try.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 27, 2009, 12:49:38 PM
Hostmonster is a really crappy overseller host. You should look into the phpinfo for upload_max_filesize and post_max_size.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on April 27, 2009, 04:14:42 PM
Quote from: Atheo on April 27, 2009, 12:08:48 PM
So there is nothing more from here then?

Its hard to imagine a host as popular as hostmonster having upload sizes so low but I'll give it a try.

Dragoon's right, and it's nothing to do with how good a host is. They seem to all have low max file size settings.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atheo on April 27, 2009, 06:06:09 PM
I found out how to get it done. While they may stink at some things I have never had a problem with their tech support. They walked me through everything just fine.

I appreciate everyone's help on my question. Thank you.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atheo on April 27, 2009, 09:29:50 PM
Hello,

Amazing mod!

Is there a way to change user albums to general albums? thank you
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: NooNYUki on April 27, 2009, 10:03:47 PM
Quote from: NooNYUki on April 27, 2009, 05:47:50 AM
/home/projec32/public_html/testpage/testpage/mgal_data


By the way, I tried the fix I found in page 158 (or somewhere around there) which directs to this page. http://www.smfhacks.com/index.php?topic=3389.msg16119#msg1
I wanna know what is the relevant file for Sources/Gallery2.php of that solution in SMG?
I tried default/mgalleryitem.php and it works but i think i ll still need to fix the sources part but I have no idea which file I should fix.
Thanks again for your patience.  :P
That one solved my problem.. I fixed several files that have url passing with ';id' value to '&id' and now my gallery is up and running!!

Now I've another question. When I upload an image that has 728 width, it shows up like 628 or sometimes 704. Is there something wrong? I want to have 728 width for a particular reason. When an image is uploaded, does SMG resize it? And if so, is there a way I can fix it?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Tiribulus on April 27, 2009, 11:10:07 PM
There's settings related to maximum file params in the control panel and for resizing as well if that's what you're asking.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: NooNYUki on April 27, 2009, 11:14:39 PM
actually i tried all of them. Just that I'm puzzled why the actual dimension doesn't show up while the file width 728 px is within the maximum width 1024.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atheo on April 27, 2009, 11:15:11 PM
Is there capability to change a user album to a general album please?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: tfs on April 28, 2009, 02:13:55 AM
Gallery was working great, but now all of a sudden I can't upload.

SMF 2.0 RC1
Media Gallery 1.5.6

It was working great.  I've uploaded lots of files.  Suddenly now when I try to upload anything I get an error...

"An error happened during the upload process, please try again or contact the administrator."

This happens with single upload and also with mass upload.  Public albums and user albums.  Logged in an admin or regular user.  I haven't really changed anything on the forum, which makes this very confusing.  The error is displayed to the user and also in the SMF error log.

Checking my server control center it says I've got >100 gigs available space.  File permissions on mgal_data and all folders under it are 755.  I really haven't changed anything.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 28, 2009, 02:35:54 AM
Quote from: Atheo on April 27, 2009, 11:15:11 PM
Is there capability to change a user album to a general album please?
No, there is no GUI for that.

Quote from: tfs on April 28, 2009, 02:13:55 AM
Gallery was working great, but now all of a sudden I can't upload.

SMF 2.0 RC1
Media Gallery 1.5.6

It was working great.  I've uploaded lots of files.  Suddenly now when I try to upload anything I get an error...

"An error happened during the upload process, please try again or contact the administrator."

This happens with single upload and also with mass upload.  Public albums and user albums.  Logged in an admin or regular user.  I haven't really changed anything on the forum, which makes this very confusing.  The error is displayed to the user and also in the SMF error log.

Checking my server control center it says I've got >100 gigs available space.  File permissions on mgal_data and all folders under it are 755.  I really haven't changed anything.
Are the files bigger than upload_max_filesize? mgal_data should be 777 as well as all folders inside it. Is the path to it correct?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: tfs on April 28, 2009, 03:10:26 AM
Quote from: Dragooon on April 28, 2009, 02:35:54 AMAre the files bigger than upload_max_filesize? mgal_data should be 777 as well as all folders inside it. Is the path to it correct?

upload_max_filesize is 20M 20M

I'm just trying to upload small images as tests.  They've ranged from 15k gifs to 4 meg MP3's.  The paths have not been changed, and Media Gallery works fine for viewing all the existing files.  I changed the whole mgal_data branch to 777 and the problem persisted.  Unfortunately I inadvertently chmodded all the files to 777 as well.  I'm not positive what all the files were set at, so I'm restoring the mgal_data folder right now from my last backup from two days ago.

Perhaps an uninstall and reinstall might be in order?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 28, 2009, 04:33:54 AM
@Altheo> Don't bump a question more than once a day.

@Dragooon> Shouldn't we turn all of these ;id into &id?

@NooN> Only reasons for resizing are: (1) your file is bigger than the max filesize allowed (check your admin settings), (2) the file is taller than the max height allowed. (Same comment.)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atheo on April 28, 2009, 05:29:52 AM
Nobody bumped anything. I simply asked a question that does not seem to have an answer. My bad.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: richyp on April 28, 2009, 06:47:07 AM
Hi I just installed this and while everything seemed to be ok and I manage to access the settings and change permission I cannot access the Gallery and get this message: "A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again."

going in via: website.com/forum/mgal_data

forum is 1.1.8  ::)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 28, 2009, 07:07:08 AM
You cannot access the gallery through the folder. You have to use ?action=mgallery.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on April 28, 2009, 07:13:24 AM
Quote from: tfs on April 28, 2009, 03:10:26 AM
Quote from: Dragooon on April 28, 2009, 02:35:54 AMAre the files bigger than upload_max_filesize? mgal_data should be 777 as well as all folders inside it. Is the path to it correct?

upload_max_filesize is 20M 20M

I'm just trying to upload small images as tests.  They've ranged from 15k gifs to 4 meg MP3's.  The paths have not been changed, and Media Gallery works fine for viewing all the existing files.  I changed the whole mgal_data branch to 777 and the problem persisted.  Unfortunately I inadvertently chmodded all the files to 777 as well.  I'm not positive what all the files were set at, so I'm restoring the mgal_data folder right now from my last backup from two days ago.

Perhaps an uninstall and reinstall might be in order?

Ask your host if they've recently updated to mod_security2. This totally fu(ked up my site and I had to take a number of steps to make it work proper again. I believe my prev post talked about it.

http://www.simplemachines.org/community/index.php?topic=260821.msg2018697#msg2018697

As well all folders must be 755 and all files 644.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atheo on April 28, 2009, 12:02:30 PM
Hello again,

I'm almost there with this mod but I have some more questions.

1.) Why is my admin name the only one to see the gallery button in the menu and how do I fix that?

2.) Are there membergroup permissions for gallery? If I wanted only select people to have their own albums how could I do that? (if I have overlooked something I apologize)

3.) I want to make sure I have this right, the general albums are only seen by the poster and the user albums by everyone correct?

Thank you guys for your time and great mod!
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on April 28, 2009, 12:27:21 PM
1) Admin -> Permissions
2) Admin -> Permissions
3) general albums are for everyone - user albums can be private (password protected)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Tiribulus on April 28, 2009, 12:34:53 PM
You'll find this for each membergroup:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fgregnmary.gotdns.com%2Fpix%2Fsmfmgcp.jpg&hash=faab2c60a37420fdf29b815d9fd4ad6cda1d72c2)
And like the other guy said, users can password protect their galleries. As far as I know access to the gallery at large should allow access to general albums and unprotected user albums. You may just not have permissions granted to anybody at this point which means only admins can see anything.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Rumboogy on April 28, 2009, 07:11:42 PM
I just installed this on SMF 2.0 RC1. The install went fine, however I am getting this error when I try to create a "general album".

An Error Has Occurred!
This album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums is chmodded to 777


And of course that generates an error in my error log (see below).

Yes, I have check my CHMOD and both are set to 777. I also did a phpinfo.php and my open_basedir option is also disabled.

Any suggestions as to what is going on...I see that someone else had this same problem a few days ago, but I didn't see a direct reply to his question.

Thanks for any help...I would like to try this gallery out.

Wally
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 29, 2009, 03:47:19 AM
Quote from: Atheo on April 28, 2009, 05:29:52 AM
Nobody bumped anything. I simply asked a question that does not seem to have an answer. My bad.
Sure. You post at 3am (France)/6am (India) and ask the same question again two hours later. As if we're gonna be able to answer you in that timeframe, lol. So not only you don't even ask yourselves who you're talking to (just click on any profile and you'll see *their* local time), but you think it's worth bumping the topic after only 2 hours when the rule for the simplemachines.org site is 24 hours...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PAPABEAR on April 29, 2009, 08:01:39 AM
Thanks for the nice mod!
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 29, 2009, 10:09:43 AM
Quote from: Rumboogy on April 28, 2009, 07:11:42 PM
I just installed this on SMF 2.0 RC1. The install went fine, however I am getting this error when I try to create a "general album".

An Error Has Occurred!
This album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums is chmodded to 777


And of course that generates an error in my error log (see below).

Yes, I have check my CHMOD and both are set to 777. I also did a phpinfo.php and my open_basedir option is also disabled.

Any suggestions as to what is going on...I see that someone else had this same problem a few days ago, but I didn't see a direct reply to his question.

Thanks for any help...I would like to try this gallery out.

Wally
Are you sure there is a data directory in the path defined under Admin > Gallery > Settings(config). And if it has a albums sub-directory ALSO chmodded to 777?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atheo on April 29, 2009, 11:10:06 AM
I cant tell you how little I  care who you are. This is your mod?? I dont need it. Its not like you answer peoples questions directly anyway.

Dont worry...I wont be back.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 29, 2009, 11:17:41 AM
Blah blah. "Do what I say, not what I do", eh?
Go annoy someone else then.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Gurbet_42 on April 29, 2009, 06:30:40 PM
Hi Nao, I have a problem, have downloaded this mod and is very nice but I can download small files 200 kb and video but not a little larger filer.Når I want to download some large files comes a blank page.Have also problems with mas upload, it will not load opp.Have received help from Ozgur but he could load without problem but it can not jeg.what can the problem be?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atheo on April 30, 2009, 02:05:09 AM
Nao doesnt answer questions...only mocks and ridicules...you have to get into your phpconfig on cpanel, select PHP5 (Single php.ini), then check the two boxes below that area and then click "install php.ini master file"

navigate to that file and you will find settings that need adjusted

Code (find) Select
; Maximum size of POST data that PHP will accept.
post_max_size =64M


Code (replace) Select
; Maximum size of POST data that PHP will accept.
post_max_size = xxxM


Where xxx is at least double what you have.

Code (find) Select
; Maximum allowed size for uploaded files.
upload_max_filesize = 64M


Code (replace) Select
; Maximum allowed size for uploaded files.
upload_max_filesize = 128M

Consider the size of your files for this amount.

There is also a variable in the gallery "settings" area that reads "Max file size (KB)"
I changed this amount too to a very large number and all is well.

This seems to be a common error that nobody is looking at or helping with.

Good luck!
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on April 30, 2009, 04:47:35 AM
Quote from: Atheo on April 30, 2009, 02:05:09 AM
Nao doesnt answer questions...only mocks and ridicules...
Oh, that's defamation isn't it? You're implying that all of these months of answering support questions here amount to nothing just because I didn't answer *your* question (which I couldn't answer anyway because I was *sleeping*!)

Allow me to repeat: "lol".
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Malo76 on April 30, 2009, 04:58:18 AM
Quote from: Rumboogy on April 28, 2009, 07:11:42 PM
I just installed this on SMF 2.0 RC1. The install went fine, however I am getting this error when I try to create a "general album".

An Error Has Occurred!
This album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums is chmodded to 777


And of course that generates an error in my error log (see below).

Yes, I have check my CHMOD and both are set to 777. I also did a phpinfo.php and my open_basedir option is also disabled.

Any suggestions as to what is going on...I see that someone else had this same problem a few days ago, but I didn't see a direct reply to his question.

Thanks for any help...I would like to try this gallery out.

Wally

I have the same problem. Can somebody help me?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 30, 2009, 06:51:20 AM
Quote from: Malo76 on April 30, 2009, 04:58:18 AM
Quote from: Rumboogy on April 28, 2009, 07:11:42 PM
I just installed this on SMF 2.0 RC1. The install went fine, however I am getting this error when I try to create a "general album".

An Error Has Occurred!
This album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums is chmodded to 777


And of course that generates an error in my error log (see below).

Yes, I have check my CHMOD and both are set to 777. I also did a phpinfo.php and my open_basedir option is also disabled.

Any suggestions as to what is going on...I see that someone else had this same problem a few days ago, but I didn't see a direct reply to his question.

Thanks for any help...I would like to try this gallery out.

Wally

I have the same problem. Can somebody help me?
Is the data directory path correct? Is the directory having a subdirectory called as "albums"? Are they both chmodded to 777? Is open_basedir, mod_security(2) enabled?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on April 30, 2009, 07:12:59 AM
Quote from: Atheo on April 30, 2009, 02:05:09 AM
Nao doesnt answer questions...only mocks and ridicules...you have to get into your phpconfig on cpanel, select PHP5 (Single php.ini), then check the two boxes below that area and then click "install php.ini master file"

navigate to that file and you will find settings that need adjusted

Code (find) Select
; Maximum size of POST data that PHP will accept.
post_max_size =64M


Code (replace) Select
; Maximum size of POST data that PHP will accept.
post_max_size = xxxM


Where xxx is at least double what you have.

Code (find) Select
; Maximum allowed size for uploaded files.
upload_max_filesize = 64M


Code (replace) Select
; Maximum allowed size for uploaded files.
upload_max_filesize = 128M

Consider the size of your files for this amount.

There is also a variable in the gallery "settings" area that reads "Max file size (KB)"
I changed this amount too to a very large number and all is well.

This seems to be a common error that nobody is looking at or helping with.

Good luck!

Even if Nao were awake he would have ignored you due to the answer being posted several times. Also in addition to adjusting the max file size variables. You will also have to change the max upload time and max execution time. Otherwise the value of the max upload size will be irrelevant.

As well with php 5, all folders must be 755 and all files must be 644.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 30, 2009, 07:29:21 AM
Quote from: Atheo on April 30, 2009, 02:05:09 AM
Nao doesnt answer questions...only mocks and ridicules...you have to get into your phpconfig on cpanel, select PHP5 (Single php.ini), then check the two boxes below that area and then click "install php.ini master file"
And you should also learn to respect people. You posted the same question twice in 2 hours, thus you were ignored. I(And Nao I believe) do not like people trying to bump there questions just to have an answer...especially so frequently.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: richyp on April 30, 2009, 11:21:21 AM
Quote from: Dragooon on April 28, 2009, 07:07:08 AM
You cannot access the gallery through the folder. You have to use ?action=mgallery.

Hi, Thanks for the reply

Ok no problem I've found this, but is it not possible for the user to access this link via their profile under Gallery?

All that my users can see is 'summary', 'view items' and 'view comments', surely there should be a 'home' link in here? or am i missing something?

Thanks;

Rich

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on April 30, 2009, 11:50:40 AM
Quote from: richyp on April 30, 2009, 11:21:21 AM
Quote from: Dragooon on April 28, 2009, 07:07:08 AM
You cannot access the gallery through the folder. You have to use ?action=mgallery.

Hi, Thanks for the reply

Ok no problem I've found this, but is it not possible for the user to access this link via their profile under Gallery?

All that my users can see is 'summary', 'view items' and 'view comments', surely there should be a 'home' link in here? or am i missing something?

Thanks;

Rich


Uh there should be a tab in the main tab bar. In case you're running SMF 1.1 with a custom theme, you should look into adding the tab manually.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Hellan Bach on May 01, 2009, 05:09:47 AM
Hi Dragooon,
i updated to the latest version of smf gallery yesterday, ( uninstalled the old version and installed the new) and since then i am getting this error message any ideas how to fix it?
"Not Acceptable
An appropriate representation of the requested resource /main/index.php could not be found on this server."

i know the main/index.php exists, so im not sure whats causing this?
any help would be great, i know your busy.
Thanks
Hellan

P.s i use smf 1.1.8 if that helps any
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on May 01, 2009, 05:28:48 AM
Do you have mod_security enabled?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Hellan Bach on May 01, 2009, 05:32:37 AM
uhmmm i'm not sure what that is so probably not? ( sorry im a total newby to mods etc)

thats for the quick reply, where would i find that to check?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Hellan Bach on May 01, 2009, 06:19:12 AM
I think i have found it, in the mod/install settings? what do you reccomend it be set to?
sorry for all the questions and thanks for being patient with me
Hellan
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on May 01, 2009, 07:08:57 AM
mod_security has nothing to do with mod/install settings. Ask your host about it, it is an apache module.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Hellan Bach on May 01, 2009, 07:14:07 AM
oh ok thank you for the help
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Hellan Bach on May 01, 2009, 09:42:30 AM
does this error mean anything at all?
Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_bwlimited/1.4 PHP/5.2.9 Server at herpuniverse.com Port 80

and i asked my host and yes the mod_security is installed /enabled

sorry for all the questions you have been really helpfull so far i just want to get this great mod up and running again, my members love it.

Thanks again
Hellan
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Gurbet_42 on May 03, 2009, 09:46:30 AM
Quote from: Gurbet_1907 on April 29, 2009, 06:30:40 PM
Hi Nao, I have a problem, have downloaded this mod and is very nice but I can download small files 200 kb and video but not a little larger filer.Når I want to download some large files comes a blank page.Have also problems with mas upload, it will not load opp.Have received help from Ozgur but he could load without problem but it can not jeg.what can the problem be?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on May 03, 2009, 10:06:29 AM
Quote from: Gurbet_1907 on May 03, 2009, 09:46:30 AM
Quote from: Gurbet_1907 on April 29, 2009, 06:30:40 PM
Hi Nao, I have a problem, have downloaded this mod and is very nice but I can download small files 200 kb and video but not a little larger filer.Når I want to download some large files comes a blank page.Have also problems with mas upload, it will not load opp.Have received help from Ozgur but he could load without problem but it can not jeg.what can the problem be?
Are the files larger than upload_max_filesize in phpinfo? What is a phpinfo() file? (http://docs.simplemachines.org/index.php?topic=479)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: mattchewone on May 03, 2009, 01:52:27 PM
Dragoon is there a way to make this so that it gives the user an IMG code. So they can use the gallery/site to host there images and link them in to forums?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on May 03, 2009, 03:14:00 PM
Quote from: mattchewone on May 03, 2009, 01:52:27 PM
Dragoon is there a way to make this so that it gives the user an IMG code. So they can use the gallery/site to host there images and link them in to forums?

This is a natural feature. All gallery items provide 3 links. Local tag, direct, and embed.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 03, 2009, 03:34:53 PM
(IIRC the MGalleryItem.php file needs to be present in the root folder if you want to be able to use the IMG tag with it.)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Gurbet_42 on May 03, 2009, 06:43:26 PM
Quote from: Dragooon on May 03, 2009, 10:06:29 AM
Quote from: Gurbet_1907 on May 03, 2009, 09:46:30 AM
Quote from: Gurbet_1907 on April 29, 2009, 06:30:40 PM
Hi Nao, I have a problem, have downloaded this mod and is very nice but I can download small files 200 kb and video but not a little larger filer.Når I want to download some large files comes a blank page.Have also problems with mas upload, it will not load opp.Have received help from Ozgur but he could load without problem but it can not jeg.what can the problem be?
Are the files larger than upload_max_filesize in phpinfo? What is a phpinfo() file? (http://docs.simplemachines.org/index.php?topic=479)

post_max_size   12M   12M

upload_max_filesize   12M   12M
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on May 03, 2009, 08:00:30 PM
Quote from: Gurbet_1907 on May 03, 2009, 06:43:26 PM
Quote from: Dragooon on May 03, 2009, 10:06:29 AM
Quote from: Gurbet_1907 on May 03, 2009, 09:46:30 AM
Quote from: Gurbet_1907 on April 29, 2009, 06:30:40 PM
Hi Nao, I have a problem, have downloaded this mod and is very nice but I can download small files 200 kb and video but not a little larger filer.Når I want to download some large files comes a blank page.Have also problems with mas upload, it will not load opp.Have received help from Ozgur but he could load without problem but it can not jeg.what can the problem be?
Are the files larger than upload_max_filesize in phpinfo? What is a phpinfo() file? (http://docs.simplemachines.org/index.php?topic=479)

post_max_size   12M   12M

upload_max_filesize   12M   12M

be sure to increase max execution time and one other i forget to do with max time of something...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 03, 2009, 08:13:55 PM
I don't think execution time has anything to say. Mine is 30 seconds in several forums on different servers, and all that had mattered to me was post_max_size & upload_max_filesize.

But ok, it's worth a try.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Harvester on May 04, 2009, 06:57:44 AM
I just made a post on my site and put 12 BBC embed codes in that post. After I hit submit, at the bottom of the post it placed this:

[Limit reached]
[Limit reached]


It appears that somewhere there is a limit set for how many images can be embedded in a post. Where is this set at? Id like to change it from 10 to 12
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Harvester on May 04, 2009, 07:04:03 AM
nevermind I found it in Layout :D
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: The_Wii_Nes_Boy on May 04, 2009, 09:20:58 AM
System keeps adding wrong date at random on mass uploads! Any idea as to why it doing this?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 04, 2009, 09:40:20 AM
Random = 1970?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: mattchewone on May 04, 2009, 10:36:38 AM
Quote from: Nao 尚 on May 03, 2009, 03:34:53 PM
(IIRC the MGalleryItem.php file needs to be present in the root folder if you want to be able to use the IMG tag with it.)

How would this be done?

LinK187 - This is a natural feature. All gallery items provide 3 links. Local tag, direct, and embed. ( Which one of those can you use on other forums not just the one the gallery is installed on)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 04, 2009, 12:05:38 PM
Quote from: mattchewone on May 04, 2009, 10:36:38 AM
How would this be done?
By doing nothing. It's there by default. You'd just remove it if you don't want the img bbcode to be posted on item pages.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: mattchewone on May 04, 2009, 12:27:41 PM
Quote from: Nao 尚 on May 04, 2009, 12:05:38 PM
Quote from: mattchewone on May 04, 2009, 10:36:38 AM
How would this be done?
By doing nothing. It's there by default. You'd just remove it if you don't want the img bbcode to be posted on item pages.

What i would like is where it gives the links to add in to the forum. I would like there to be another one which can be copied and pasted in to external forums. Much like photobucket.

Thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 04, 2009, 12:49:11 PM
Well, there already is.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: mattchewone on May 04, 2009, 01:37:35 PM
Quote from: Nao 尚 on May 04, 2009, 12:49:11 PM
Well, there already is.

Which one is it? Does it display the image in that external forum as an image and not just as a link?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on May 04, 2009, 01:55:13 PM
The Direct link supplied can be used to display it on an external forum.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: mattchewone on May 04, 2009, 01:59:04 PM
Quote from: Dragooon on May 04, 2009, 01:55:13 PM
The Direct link supplied can be used to display it on an external forum.

It only works with [img ] tags. Is there any way to include IMG tags in the link so the users can simply copy the entire link with IMg tags in to another forum.

Thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on May 04, 2009, 04:17:41 PM
Quote from: mattchewone on May 04, 2009, 01:59:04 PM
Quote from: Dragooon on May 04, 2009, 01:55:13 PM
The Direct link supplied can be used to display it on an external forum.

It only works with [img ] tags. Is there any way to include IMG tags in the link so the users can simply copy the entire link with IMg tags in to another forum.

Thanks

Holy rocket science batman!

[img]http://your.direct.link.here/einstein[/img]
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: mattchewone on May 04, 2009, 05:28:55 PM
sorry have I missed something?

Just asking for some help I'm not an expert
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on May 04, 2009, 06:03:33 PM
Quote from: mattchewone on May 04, 2009, 05:28:55 PM
sorry have I missed something?

Just asking for some help I'm not an expert

Here is a direct link to a gallery item on my site: http://londonbass.com/forum/MGalleryItem.php?id=393

Look below the image and you will see 3 links to copy: bbc tag, embed code, and a direct link.

Every item in a smg gallery has these links. How you missed this, I have no idea. Sorry if I sound rude but it's an obvious feature.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: The_Wii_Nes_Boy on May 04, 2009, 07:08:15 PM
Quote from: Nao 尚 on May 04, 2009, 09:40:20 AM
Random = 1970?
Ok not that random, I think the earliest date I've seen is 2003. Anyways it's sometihng between every 8 - 10 item uploaded itn enters a random date.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on May 05, 2009, 01:41:03 AM
Quote from: The_Wii_Nes_Boy on May 04, 2009, 07:08:15 PM
Quote from: Nao 尚 on May 04, 2009, 09:40:20 AM
Random = 1970?
Ok not that random, I think the earliest date I've seen is 2003. Anyways it's sometihng between every 8 - 10 item uploaded itn enters a random date.
Are they photos from camera? Is "Use Exif datetime for upload date if available" enabled under Admin > Gallery > Settings?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 05, 2009, 01:59:24 AM
Dragooon, the setting is on by default (because I love it).
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: The_Wii_Nes_Boy on May 05, 2009, 02:04:07 AM
No they are art work, is it still possible that the images have Exif data? I'm more than happy to turn off Exif as I don't really need it.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 05, 2009, 02:12:07 AM
You can disable the option per-album. Yes, any pic can have Exif data I guess. Although less likely for non-camera pics. Depends on the program used.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: The_Wii_Nes_Boy on May 05, 2009, 02:22:59 AM
OK thanks for the info, I've just disabled Exif all together as I don't require it. I'll see if it makes a difference.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on May 05, 2009, 02:28:46 AM
Make sure to also disable that single feature under config as well.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 05, 2009, 02:43:33 AM
It'd be best to keep it on in case someone creates an album with holiday pics ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: The_Wii_Nes_Boy on May 05, 2009, 02:48:11 AM
It's done but in the process of checking thing out I noticed something else!

HTML embed code: <img src="http://twnb-worldofstuff.com/MGalleryItem.php?id=1063" alt="" />
Direct link: http://twnb-worldofstuff.com/MGalleryItem.php?id=1063

None of these links work!! This is the correct direct link>>  http://twnb-worldofstuff.com/index.php?action=mgallery;sa=item;id=1063
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on May 05, 2009, 02:51:58 AM
Make sure MGalleryItem.php is chmodded to 777.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: The_Wii_Nes_Boy on May 05, 2009, 02:57:18 AM
Set to 777 but I'm still getting the internal server error.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: mattchewone on May 05, 2009, 03:58:58 AM
Quote from: LinK187 on May 04, 2009, 06:03:33 PM
Quote from: mattchewone on May 04, 2009, 05:28:55 PM
sorry have I missed something?

Just asking for some help I'm not an expert

Here is a direct link to a gallery item on my site: http://londonbass.com/forum/MGalleryItem.php?id=393

Look below the image and you will see 3 links to copy: bbc tag, embed code, and a direct link.

Every item in a smg gallery has these links. How you missed this, I have no idea. Sorry if I sound rude but it's an obvious feature.

I dont think you quite understand.

I would like it so that when users copy the direct link, paste it in to another forum it comes up as an image not a link. In order for this it needs to have [ IMG] tags embedded into the link. Im not sure how it would be done which is why i am asking.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on May 05, 2009, 04:07:32 AM
Just put the link in [img] tags.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: mattchewone on May 05, 2009, 04:17:10 AM
Quote from: Dragooon on May 05, 2009, 04:07:32 AM
Just put the link in [img] tags.

If it was just for me then it wouldnt be a problem but because i would like it so that users can also 'host' there images on the forum it wouldnt be practical for then to always have to add [IMG] tags when pasting the link in to another forum.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on May 05, 2009, 07:24:03 AM
Quote from: mattchewone on May 05, 2009, 04:17:10 AM
Quote from: Dragooon on May 05, 2009, 04:07:32 AM
Just put the link in [img] tags.

If it was just for me then it wouldnt be a problem but because i would like it so that users can also 'host' there images on the forum it wouldnt be practical for then to always have to add [IMG] tags when pasting the link in to another forum.

Advise your nubs to use embed and anyone else who knows how to use forums will already know they need to use img tags due to it being a standard forum functionality that isn't just limited to smf forums.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: mattchewone on May 05, 2009, 12:53:30 PM
Doesnt matter i just wont bother with a gallery.

I was simply asking if it could be done or how it could be done so i could do i and i get rude comments from yourself. Which i was not aiming my question to!

So what you are saying is that, the thousands of users i know on forums when the upload an image to photobucket and they copy the direct link to there forum the sit there and go through the 10/20 or so pictures and add an IMG tag. I think not which is why Photobucket already has it built in so you copy the whole link inc IMG tags.

Also not being rude but im sure most people arent that clued up on tags and it being a standard function.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on May 05, 2009, 12:57:41 PM
You can do that with a simple template edit, its nothing out of the world.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on May 05, 2009, 12:59:57 PM
Quote from: mattchewone on May 05, 2009, 12:53:30 PM
Doesnt matter i just wont bother with a gallery.

I was simply asking if it could be done or how it could be done so i could do i and i get rude comments from yourself. Which i was not aiming my question to!

So what you are saying is that, the thousands of users i know on forums when the upload an image to photobucket and they copy the direct link to there forum the sit there and go through the 10/20 or so pictures and add an IMG tag. I think not which is why Photobucket already has it built in so you copy the whole link inc IMG tags.

Also not being rude but im sure most people arent that clued up on tags and it being a standard function.

Well seeing as you run a forum, would it not be reasonable to assume your users would know the common tags? Not using the mod simply because of that would be illogical. If yer hell bent on it tho, just find the line of code that produces the direct link and add tags to it.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: mattchewone on May 05, 2009, 01:03:00 PM
Quote from: Dragooon on May 05, 2009, 12:57:41 PM
You can do that with a simple template edit, its nothing out of the world.

Thank you. I must admit im a complete noob at this though so a little guidance as to where i would look would be magical.

Thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: tfs on May 05, 2009, 04:57:36 PM
Dragoon, Nao, do you have any feedback on this thread?  Thanks.

http://www.simplemachines.org/community/index.php?topic=308424.0 (http://www.simplemachines.org/community/index.php?topic=308424.0)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Joe N on May 06, 2009, 06:54:21 AM
Just installed this. No errors. Fine

Really Like it. Its so fast!

Joe
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: The_Wii_Nes_Boy on May 06, 2009, 07:00:30 AM
Quote from: The_Wii_Nes_Boy on May 05, 2009, 02:48:11 AM
It's done but in the process of checking thing out I noticed something else!

HTML embed code: <img src="http://twnb-worldofstuff.com/MGalleryItem.php?id=1063" alt="" />
Direct link: http://twnb-worldofstuff.com/MGalleryItem.php?id=1063

None of these links work!! This is the correct direct link>>  http://twnb-worldofstuff.com/index.php?action=mgallery;sa=item;id=1063

Managed to fix this problem! Mgal_data permission wan't set right
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: dmilojevic on May 06, 2009, 07:55:57 AM
Hi there!

I was trying to find answers to my questions but with no success unfortunately. Therefore, please let me ask them here.
Is it possible to comment an album? Not only particular images, but the entire album.

Does Max files in a directory and Max size of a directory means how many pictures or KiloBytes can you put inside one album?

Thank you very much in advance.

Thank you for such a great mod.

Best regards,
--
Dejan Milojevic
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 06, 2009, 08:17:15 AM
Max files in a directory = How many files can there be in a directory
Max size of a directory = size in Kb
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: mattchewone on May 06, 2009, 04:53:19 PM
Dragoon can you tell me where i can find the part i need to adjust to include the IMG tags please.

Many Thanks

Matt
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Chipfryer on May 07, 2009, 11:25:19 AM
Absolutely a thorough well done on this Mod.
Excellent stuff.

Thank you.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: TommyJoe on May 07, 2009, 05:00:49 PM
OK, stupid question. I have checked everywhere and find no answer.

on thumbnails I get a "Sorry you are not allowed to view this file, Make sure you are connected to the server"

but if I click on the thumbnails, the pictures comes up and I can also use the zoom function to make it the allowed
size.

Some body want to help save what is left of my hair?

Thanks.

SMF Version: SMF 2.0 RC1     PHP Version: 5.2.8
FFMPEG:
GD2: bundled (2.0.34 compatible)
ImageMagick: ImageMagick 6.4.8 2009-01-07 Q16 http://www.imagemagick.org (IMagick: - MagickWand: )
SMF Media Gallery 1.5.6 © SMF-Media.com
Installed on: Today at 12:36:20 PM
Installed version: 1.5.6    Latest version: 1.5.6
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 07, 2009, 05:04:21 PM
Try clear your browser cache.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: TommyJoe on May 07, 2009, 05:25:12 PM
Quote from: akyhne on May 07, 2009, 05:04:21 PM
Try clear your browser cache.

Thanks sir, I did that and in IE I now have all red x's and in FF I have nothing.

if this makes any sense?  www.tarponspringsforums.com
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 07, 2009, 05:30:24 PM
Hmm, red X'es for thumbs, preview and full images are ok. Think you are going to wait on Dragooon or Nao for this one.

What did you set Max thumb width and height to?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: TommyJoe on May 07, 2009, 05:44:34 PM
Quote from: akyhne on May 07, 2009, 05:30:24 PM
Hmm, red X'es for thumbs, preview and full images are ok. Think you are going to wait on Dragooon or Nao for this one.

What did you set Max thumb width and height to?

I have changed them from 100h x100w all the way up to 500h x 500w. and makes no difference!

Thanks for the suggestions tho sir!
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 07, 2009, 05:48:21 PM
Just remember that when you make the changes, you have to upload new images to see if anything changed. By the way was the changes saved? Try go back and test.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: TommyJoe on May 07, 2009, 06:03:55 PM
Quote from: akyhne on May 07, 2009, 05:48:21 PM
Just remember that when you make the changes, you have to upload new images to see if anything changed. By the way was the changes saved? Try go back and test.

Well I am not sure what I did, but I started at 500x500 and went down by 100 each time, went to maintenance and regenerated the
thumbnails, it did nothing until I got all the way down to 100x100 and regenerated them, then it worked.

I guess my next question would be does SMF settings for the thumbnails in post matter? I wouldn't really think so, but it is set to 120x120.

Just strange, but it now works.

Thanks for the prodding to try all that! I guess sometimes if you roll a rock over you might find ;D a flat side!
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 07, 2009, 06:11:59 PM
I think you may have some kind of cache feature enabled that messes things up.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on May 07, 2009, 11:16:39 PM
Try running Gallery > Maintenance > Find errors.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Enders on May 08, 2009, 01:10:13 AM
Is there a way to add more extensions? I have some "game replays" that I want people to upload, but it forbid them from doing so.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on May 08, 2009, 01:47:02 AM
In next version, yes.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: kingkingston on May 08, 2009, 06:49:26 AM
Can someone tell me why this works in mozilla but not IE ?
http://wewantsport.com/index.php?action=mgallery;sa=item;id=34

Also in the next version will there be  a place where you can add Windows media files,the same as adding justin.tv ?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on May 08, 2009, 12:03:10 PM
Quote from: kingkingston on May 08, 2009, 06:49:26 AM
Can someone tell me why this works in mozilla but not IE ?
http://wewantsport.com/index.php?action=mgallery;sa=item;id=34

Also in the next version will there be  a place where you can add Windows media files,the same as adding justin.tv ?

I can't give you an answer, but I can verify that I'm getting the same thing with ie8 vs ff3 . Also I'm pretty sure you can upload windows media files already.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: kingkingston on May 08, 2009, 06:29:11 PM
Quote from: LinK187 on May 08, 2009, 12:03:10 PM
Quote from: kingkingston on May 08, 2009, 06:49:26 AM
Can someone tell me why this works in mozilla but not IE ?
http://wewantsport.com/index.php?action=mgallery;sa=item;id=34

Also in the next version will there be  a place where you can add Windows media files,the same as adding justin.tv ?

I can't give you an answer, but I can verify that I'm getting the same thing with ie8 vs ff3 . Also I'm pretty sure you can upload windows media files already.
how would i add a windows media file from a site to mine ? like a mms one because you have this message "to have Or Embed URL (remote videos)" and when i go to add a windows mms link it doesn't work
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 08, 2009, 06:40:04 PM
Quote from: kingkingston on May 08, 2009, 06:29:11 PM
a windows mms link...

What's that? You can attach .wmv videos like you attach images.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: kingkingston on May 08, 2009, 07:32:25 PM
Quote from: akyhne on May 08, 2009, 06:40:04 PM
Quote from: kingkingston on May 08, 2009, 06:29:11 PM
a windows mms link...

What's that? You can attach .wmv videos like you attach images.
A windows link isn't from a show or clip you have downloaded,it's from tv on the net for example,a show from a site like this http://wwitv.com/stream/b5305.asx,with this mod http://custom.simplemachines.org/mods/index.php?mod=1375 i can post these kinds of shows in the forum but i want to be able to post them in the gallery which i can't
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Chipfryer on May 09, 2009, 07:38:22 AM
Hi there.
I just have a couple of problems, nothing major really since I'm testing this, many thanks.

When installing I got the message error /sources/ManagePermissions would not load. I think that was the directory? Anyway it installed and ran fine with no hitches.

I moved smf over from a testing/folder area to find that thumbnails were missing from YouTube videos.

Also when I try to upload a gif I get:
An Error Has Occurred!
An error happened during the upload process, please try again or contact the administrator.

I've checked folder permissions and ownerships. (Unix) all appear to be fine.
On maintenance section I ran everything and found no errors.

Any ideas and/or help please?
Many thanks again.

SMF 1.1.8
Mods:
Ultimate Profile
Profile Music
Load Standard Language
plus the usual SMF app updates.

Thanks again.

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Chipfryer on May 09, 2009, 07:46:48 AM
Sorry for the cross post. The thumb for a YouTube video is missing from this location. How do, no where do I add that please?

http://www.mysite/forum/index.php?action=mgallery;sa=media;id=6;thumb
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: dmilojevic on May 09, 2009, 02:43:23 PM
Quote from: akyhne on May 06, 2009, 08:17:15 AM
Max files in a directory = How many files can there be in a directory
Max size of a directory = size in Kb
Thank you for the answer.
Do you happen to know the answer to the first question as well? Is it possible to comment the album as a whole?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: chrisb on May 09, 2009, 09:05:04 PM
When i install this into my Forum, i get the following error,

Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/cxtxtsju/public_html/forum/Sources/Load.php on line 1043

i have uploaded the file for review as well, to see what could be causing these issues,

this is the coding causing these issues
         
'mgallery' => array(
         'total_items' => $profile['mgal_total_items'],
         'total_comments' => $profile['mgal_total_comments'],
      ),
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: chrisb on May 09, 2009, 09:52:49 PM
disgreard the last post as i have now fixed the issues

An Error Has Occurred!
Cannot find proper destination on the server, please contact your administrator

when trying to upload images to the gallery
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: chrisb on May 09, 2009, 10:06:05 PM
When users add the image to the gallery, Is it auto approve or the moderator need to approve  and will it show up the top of the forum, where i have the following at present.

Images waiting approval: 0
Images reported: 0
Comments waiting approval: 0
Comments reported: 0

Also i have a banner called Recent Pictures at the top of the forum, this was working in SMF Gallery, But will this work for the SMF media gallery now, or do i have make a couple changes to the files.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: The_Wii_Nes_Boy on May 10, 2009, 09:47:56 AM
Is the there any way to intergrate this with Fustrate's "Advanced Reputation System"?

Where and what whould be the necassery edits required? 
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on May 10, 2009, 10:09:52 AM
In what kind of integration.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: The_Wii_Nes_Boy on May 10, 2009, 02:25:53 PM
Quote from: Dragooon on May 10, 2009, 10:09:52 AM
In what kind of integration.

I'd like to give people reputation points for uploading pics to the gallery if it's possible.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Chipfryer on May 10, 2009, 02:44:27 PM
I'd like an answer to a question posed.  :)
No matter I'll delete it and install it on a test site to see where the folder/permission problem lies.

Many thanks.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Andythescientist on May 11, 2009, 11:31:05 AM
When i try and un install the mod i get the following error appearing in the log constantly..

8: Undefined index: mgallery_gallery
File: /home/enlight/public_html/ee/boards/Sources/MGallery-Admin.php
Line: 2449

No one has used the mod, except for me, i started a gallery as a test, but removed this gallery but now can't take the gallery off. I've tried checking all the maintenance things, no errors etc..

Any ideas?

PS 1.1.8 running latest mod version

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PrideDragon on May 11, 2009, 06:43:43 PM
i have problem when upload video:

Fatal error: Call to undefined method ffmpeg_frame::resize() in /home/maro/public_html/Sources/Subs-MGallery.php on line 1880

Why??
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on May 11, 2009, 07:58:14 PM
Quote from: Andythescientist on May 11, 2009, 11:31:05 AM
When i try and un install the mod i get the following error appearing in the log constantly..

8: Undefined index: mgallery_gallery
File: /home/enlight/public_html/ee/boards/Sources/MGallery-Admin.php
Line: 2449

No one has used the mod, except for me, i started a gallery as a test, but removed this gallery but now can't take the gallery off. I've tried checking all the maintenance things, no errors etc..

Any ideas?

PS 1.1.8 running latest mod version



Use the parser on the mod page and uninstall manually.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: duder673 on May 11, 2009, 08:42:00 PM
I am wondering if anyone has found a good way to integrate this into your forums?

I am thinking that having the "recently added" at the top of the forum Index would help catch the eye of the users and encourage more videos to be posted.

As far as I can see, when I installed this, it seems to be an entirely separate part of the site, that doesn't even have a button on the navigation menu to show it to users.

Anyone have any ideas or links to sites with something of this nature already functional?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on May 11, 2009, 09:27:56 PM
Quote from: duder673 on May 11, 2009, 08:42:00 PM
I am wondering if anyone has found a good way to integrate this into your forums?

I am thinking that having the "recently added" at the top of the forum Index would help catch the eye of the users and encourage more videos to be posted.

As far as I can see, when I installed this, it seems to be an entirely separate part of the site, that doesn't even have a button on the navigation menu to show it to users.

Anyone have any ideas or links to sites with something of this nature already functional?

If you have a custom theme you will have to edit your custom index.template.php for the button to be added to the menu bar. As for recent uploads, they are shown in the gallery section.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 11, 2009, 09:30:30 PM
There are several modifications to show recent items on the frontpage. Here's one of them: http://smf-media.com/community/index.php?topic=602.0
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: chinaren on May 11, 2009, 11:01:19 PM
Hi!  I'm currently using SMF gallery, so that's installed as well.  My forum is 1.1.8

I like the look of this one tho, so installed it. 

The first image I uploaded works fine in all areas.   :D

However, for any subsequent image, whilst it seems to work for the smg code, the url code isn't working!   :o  It simply doesn't show the picture when I wrap the url in a [img]


If I post and click on the bare image link, it comes up with this error:

QuoteInternal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.




As I often link to pics in my gallery from outside the forum, I'd like to be able to do this! 

Any ideas?  Sorry if you've dealt with this one before, I've looked through some of these pages, but there's 167 of them!!!!


On a slightly related topic: 

If I convert my current SMF gallery, will the URLs remain the same? I have a lot of externally links pointing to the URLs, and wouldn't want to break them. ::)


Another Question (sorry).

Is there anyway to get the image to show full size?  (No thumbnail).


Some info about my settings:

SMF Version: SMF 1.1.8   PHP Version: 5.2.9
FFMPEG: No
GD2: Yes bundled (2.0.34 compatible)
ImageMagick: No (IMagick: No - MagickWand: No)


Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: dmilojevic on May 12, 2009, 01:24:12 AM
Guys,

Is it possible that nobody knows/wants to answer such a simple question if somebody can comment on the whole album and not only on the particular images?  ???
This is the third time I ask, and I'm a little bit embarased because I'm forced to anoy people by asking this many times.

Please?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Kindred on May 12, 2009, 09:20:43 AM
Quote from: dmilojevic on May 12, 2009, 01:24:12 AM
if somebody can comment on the whole album and not only on the particular images?  ???

No.

Quote from: chinaren on May 11, 2009, 11:01:19 PM
If I convert my current SMF gallery, will the URLs remain the same? I have a lot of externally links pointing to the URLs, and wouldn't want to break them. ::)

No...    changing software essentially means changing urls.

Quote from: chinaren on May 11, 2009, 11:01:19 PM
Another Question (sorry).
Is there anyway to get the image to show full size?  (No thumbnail).

Not that I know if.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: chinaren on May 12, 2009, 09:32:25 AM
lol.  Thanks for the answers Kindred!  (Even if they aren't the ones I was hoping for!)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Chipfryer on May 12, 2009, 09:57:24 AM
I've solved my problem. I had to Chown directories and stupid me did not create albums from within the apps admin panel.

Thanks anyway.
Cheers.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 12, 2009, 10:32:45 AM
Quote from: Kindred on May 12, 2009, 09:20:43 AM
Quote from: chinaren on May 11, 2009, 11:01:19 PM
If I convert my current SMF gallery, will the URLs remain the same? I have a lot of externally links pointing to the URLs, and wouldn't want to break them. ::)

No...    changing software essentially means changing urls.
Except if you're using Pretty URLs and you update its filter to point to mgallery instead of gallery.  8)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: duder673 on May 12, 2009, 05:06:46 PM
I used the mod that allows users to see the recently added videos on the Board Index, only now there is 1 too many and it creates and entirely new row and only uses one spot :(

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi42.tinypic.com%2F1zl7ucp.png&hash=6d26f6300aaf501cf6004a8be44c5eefddf3684e)

Is there a way to take one off ?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 12, 2009, 05:09:03 PM
One to many?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: duder673 on May 12, 2009, 05:12:27 PM
Quote from: akyhne on May 12, 2009, 05:09:03 PM
One to many?
Yes, if there were 1 less, there would only be one row and it wouldn't look out of place like it does.  (Look at the picture I posted)

There are two rows, only there is only 1 thumbnail in the second row.
It will ALWAYS be like that too, because it allows the 7 most recent, when the 6 most recent would fit perfectly with no second row to make it look dumb.

EDIT: it is because my theme is different I am guessing.  I just don't know what file to even look in to change it.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 12, 2009, 05:25:14 PM
So how many do you want? What resolution are your users running? Are they running widescreen? Does some of them reguarly change screen size?
There's no chance for you to hit the right number of images.... well yeah, so it suits you. There's an option in the mod where you can change how many pictures are shown.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: duder673 on May 12, 2009, 05:30:40 PM
Quote from: akyhne on May 12, 2009, 05:25:14 PM
So how many do you want? What resolution are your users running? Are they running widescreen? Does some of them reguarly change screen size?
There's no chance for you to hit the right number of images.... well yeah, so it suits you. There's an option in the mod where you can change how many pictures are shown.

Okay, I think I located it in "Subs-Mgallery-mod.php"

But I cannot find that on my server.  I want 6, could you please tell me how to change this?


*EDIT: ahh well, I reinstalled it after editing the package.  Then I found it on the server, lol.

Cheers anyway.  A big thank you to the creators of the SMF Gallery and Mgallery.  Excellent work!

I almost learned Drupal for something just like this that would have taken me a lot more time to skin and integrate.  Thanks again.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 12, 2009, 05:54:53 PM
Is it my mod you are using? Then uninstall the mod and delete it from your server. Unzip the mod, edit  Subs-Mgallery-mod.php line 11.

It says: $items = getMediaItems(0, 7, 'm.id_media DESC');

Change 7 to whatever you want... just concider different users have different screensize. You can't hit a number that suits everyone.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 12, 2009, 05:58:15 PM
Quote from: duder673 on May 12, 2009, 05:30:40 PM
*EDIT: ahh well, I reinstalled it after editing the package.  Then I found it on the server, lol.

Cheers.. ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: tofo on May 12, 2009, 06:14:23 PM
Hi,

basically this is one of the most useful mods here for SMF. I'd only like to request some modification to this mod.

First of all, the mass upload is nice to have, I'd rather welcome the choice to use either a single upload or the mass upload, controlled within the admin panel. The next one is to be able to specify the extensions allowed to be uploaded.

Not much, however, I could provide a deal. This mod lacks on a translation to German. Since I'm native, I could do this. Therefore you may think about my two requests. :D

Regards, Thomas
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 12, 2009, 06:45:14 PM
There is a german translation available
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 13, 2009, 05:47:13 AM
Quote from: tofo on May 12, 2009, 06:14:23 PM
Hi,

basically this is one of the most useful mods here for SMF. I'd only like to request some modification to this mod.

First of all, the mass upload is nice to have, I'd rather welcome the choice to use either a single upload or the mass upload, controlled within the admin panel.
You can allow mass upload per-membergroup.
As for single uploads, can't disable them, because they're also the Edit page. You want to be able to edit your pages, right? Update the file / description / tags / thumbnails...

QuoteThe next one is to be able to specify the extensions allowed to be uploaded.
Hardcode them into the source files...
I added a dozen (or more) new extensions in SMG 2.0 when I implemented the Documents feature. Which is basically the first step to a full-blown download manager. (Did I say too much? :P)

QuoteNot much, however, I could provide a deal. This mod lacks on a translation to German. Since I'm native, I could do this. Therefore you may think about my two requests. :D
Have you looked into the translations over at smf-media.com?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nas187 on May 13, 2009, 08:05:58 AM
I've installed the mod but it wont show up in the navigation bar where it should say ''Gallery'' Any Idea how I could get a link there? It does show up with the default SMF theme

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 13, 2009, 08:09:32 AM
You have to add the button manually in custom themes.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nas187 on May 13, 2009, 08:20:45 AM
Quote from: akyhne on May 13, 2009, 08:09:32 AM
You have to add the button manually in custom themes.

Any tips on how to do that?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 13, 2009, 08:42:27 AM
It has been posted a lot of times. Look at http://custom.simplemachines.org/mods/index.php?mod=1365, choose your SMF gallery version, then choose your SMF version and hit the "parse" button. It gives you a lot of code. Look for the code that should be inserted in index.template.php. That's your button code.
It may have to be edited to your custom theme, depending on how it looks.

A link to your forum, your SMF and SMF Gallery version is always a help for those you ask for support.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: tofo on May 13, 2009, 09:40:23 AM
Quote from: Nao 尚 on May 13, 2009, 05:47:13 AM
Quote from: tofo on May 12, 2009, 06:14:23 PM
Hi,

basically this is one of the most useful mods here for SMF. I'd only like to request some modification to this mod.

First of all, the mass upload is nice to have, I'd rather welcome the choice to use either a single upload or the mass upload, controlled within the admin panel.
You can allow mass upload per-membergroup.
As for single uploads, can't disable them, because they're also the Edit page. You want to be able to edit your pages, right? Update the file / description / tags / thumbnails...

Well, of course I'd like to be able to update my uploads, but I can't see the point where the connection is from mass uploads and updating an uploaded image. It was only a suggestion that in the admin panel there should be at least a setting to restrict the amount of images uploaded at the same time. "1" would then make it to a single upload. Currently someone can upload tons of images with one upload. Never have seen such a feature anywhere else.

Quote from: Nao 尚 on May 13, 2009, 05:47:13 AM
Quote from: tofo on May 12, 2009, 06:14:23 PM
The next one is to be able to specify the extensions allowed to be uploaded.
Hardcode them into the source files...
I added a dozen (or more) new extensions in SMG 2.0 when I implemented the Documents feature. Which is basically the first step to a full-blown download manager. (Did I say too much? :P)
Hardcoding is one way to do it, to have a better mod giving you the full blast to modify and customize your board without hacking sources is the other way.

Quote from: Nao 尚 on May 13, 2009, 05:47:13 AM
Quote from: tofo on May 12, 2009, 06:14:23 PM
Not much, however, I could provide a deal. This mod lacks on a translation to German. Since I'm native, I could do this. Therefore you may think about my two requests. :D
Have you looked into the translations over at smf-media.com?
[/quote]
I did, I only see Turkish, Italian, Russian, 2x Spanish, Dansih and Greek there. No German translation so far as I see.

Regards, Thomas
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nas187 on May 13, 2009, 09:40:47 AM
Uhm yeah sorry for not giving enough information the first time. The gallery is up and I informed my community members to use the default SMF theme to see the gallery.

Now I have got an other problem, members reported that they cant even see the button saying gallery, me and another administrator can see it and what not.

This is a link to my forum (http://cogaming.serverffs.com)
Forum verison: 1.1.8
Version: SMF Media Gallery 1.5.6

UPDATE:
I followed your instruction and checked the parse, now I got to this

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ffiles.uploadffs.com%2Fe%2F50dcec85%2Fadmin.PNG&hash=e854cafdd73374e6cde38bb36846b8ec4552eca4)

Only I don't know how to get it perfectly
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: tofo on May 13, 2009, 09:42:12 AM
Quote from: akyhne on May 12, 2009, 06:45:14 PM
There is a german translation available

Where, haven't found it ...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: DirtRider on May 13, 2009, 10:21:32 AM
PAID feature Request

I know that asking for additional feature on this mod is a bone of contention. However I would like to run this on my main forum in place of the gallery I already have. However I need a feature added before I can do this and I am willing to pay for it.

This is what I need - When something new is added to the gallery I need it to post a thread in a specified forum area for that new upload like this

Quote from: jmv2006 on July 19, 2008, 07:03:46 AM
Thruxton TCMoto-4

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ftriumphtalk.com%2Fgallery%2F0%2F8_19_07_08_7_03_46_1.jpg&hash=20671dfffb6afecdc486e12169456b6d80ae272e)

http://triumphtalk.com/index.php?action=gallery;sa=view;id=385

Please let me know if this would be possible and at what price
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 13, 2009, 10:31:37 AM
Quote from: tofo on May 13, 2009, 09:42:12 AM
Quote from: akyhne on May 12, 2009, 06:45:14 PM
There is a german translation available

Where, haven't found it ...

Seems it was never uploaded to the download section. It was not packed, I did it for you... it's not tested, but should work.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nas187 on May 13, 2009, 10:37:21 AM
Quote from: akyhne on May 13, 2009, 10:31:37 AM
Quote from: tofo on May 13, 2009, 09:42:12 AM
Quote from: akyhne on May 12, 2009, 06:45:14 PM
There is a german translation available

Where, haven't found it ...

Seems it was never uploaded to the download section. It was not packed, I did it for you... it's not tested, but should work.

Hey Akyhne, could you please check out my post I really could use your help  O:)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 13, 2009, 10:41:04 AM
What help? I attached the german package in my previous post... http://www.simplemachines.org/community/index.php?topic=260821.msg2057796#msg2057796
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 13, 2009, 03:24:39 PM
Quote from: DirtRider on May 13, 2009, 10:21:32 AM
PAID feature Request

I know that asking for additional feature on this mod is a bone of contention. However I would like to run this on my main forum in place of the gallery I already have. However I need a feature added before I can do this and I am willing to pay for it.

This is what I need - When something new is added to the gallery I need it to post a thread in a specified forum area for that new upload like this
Hmm... 'kay, I'm taking the option on this, I'll do it for money. You'll probably have to ask other users to help you with the payment because I'm not too cheap though. But there are only two programmers who could do it quickly and efficiently, and one of them isn't on the topic today.  O:)
I think I can work on it next Friday. Should give time to discuss what you need exactly, what you're willing to pay for, etc.

Quote from: jmv2006 on July 19, 2008, 07:03:46 AM
Please let me know if this would be possible and at what price
It depends on what you need, really.

Here's what I could do: each new album automatically creates a new topic in a specific board you set up.
Every time an item is posted to the album, the topic's first message is updated with a list of the latest thumbnails (or all thumbnails if there aren't that many items in the first place) and a link to the album page. A new post is also added, with a preview (not a thumbnail) of the item, and a link to the item.
One could also determine whether they want these topics to be locked, ie can people comment on them or not?

Is this how you envision it?
I could also update the smg tag so that it could be used to show a list of thumbnails based on an album ID. Like, [smg album=12 limit=50 sort=id order=desc] would show the last 50 thumbs in album #12. Not sure about sort and order. Album and limit would be done though. So I just need to insert a single smg tag in the topic's first message and be done with it (no need to update it).
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nas187 on May 13, 2009, 08:58:52 PM
Quote from: akyhne on May 13, 2009, 10:41:04 AM
What help? I attached the german package in my previous post... http://www.simplemachines.org/community/index.php?topic=260821.msg2057796#msg2057796

German package?

I meant help with this:

Quote from: Nas187 on May 13, 2009, 09:40:47 AM
Uhm yeah sorry for not giving enough information the first time. The gallery is up and I informed my community members to use the default SMF theme to see the gallery.

Now I have got an other problem, members reported that they cant even see the button saying gallery, me and another administrator can see it and what not.

This is a link to my forum (http://cogaming.serverffs.com)
Forum verison: 1.1.8
Version: SMF Media Gallery 1.5.6

UPDATE:
I followed your instruction and checked the parse, now I got to this

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ffiles.uploadffs.com%2Fe%2F50dcec85%2Fadmin.PNG&hash=e854cafdd73374e6cde38bb36846b8ec4552eca4)

Only I don't know how to get it perfectly
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Özgür on May 13, 2009, 09:02:22 PM
Attach your index.template.php for post.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nas187 on May 13, 2009, 09:09:54 PM
I've attached my index.template.php
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Özgür on May 13, 2009, 09:17:36 PM
find
  // [SMF Media Gallery]
if (allowedTo('mgallery_access'))
echo ($current_action == 'mgallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mgallery' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mgallery">' , $txt['mgallery_gallery'] , '</a>
</td>' , $current_action == 'mgallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


replace
  // [SMF Media Gallery]
if (allowedTo('mgallery_access'))
echo '<li', $current_action == 'mgallery' ? ' id="active"' : '', '><a href="', $scripturl, '?action=mgallery"><span>' , $txt['mgallery_gallery'] , '</span></a></li>';
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nas187 on May 13, 2009, 09:27:37 PM
Quote from: Özgür´ on May 13, 2009, 09:17:36 PM
find
  // [SMF Media Gallery]
if (allowedTo('mgallery_access'))
echo ($current_action == 'mgallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mgallery' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mgallery">' , $txt['mgallery_gallery'] , '</a>
</td>' , $current_action == 'mgallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


replace
  // [SMF Media Gallery]
if (allowedTo('mgallery_access'))
echo '<li', $current_action == 'mgallery' ? ' id="active"' : '', '><a href="', $scripturl, '?action=mgallery"><span>' , $txt['mgallery_gallery'] , '</span></a></li>';


Haha! It worked !! Thanks for the help Özgür your the best :D

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ffiles.uploadffs.com%2F1%2F0f9b154d%2Fepicwin244.jpg&hash=4be96ce2d3058235fa5c5e59524fd39d008d465e)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: DirtRider on May 13, 2009, 10:56:05 PM
Quote from: Nao 尚 on May 13, 2009, 03:24:39 PM
Here's what I could do: each new album automatically creates a new topic in a specific board you set up.
Every time an item is posted to the album, the topic's first message is updated with a list of the latest thumbnails (or all thumbnails if there aren't that many items in the first place) and a link to the album page. A new post is also added, with a preview (not a thumbnail) of the item, and a link to the item.
One could also determine whether they want these topics to be locked, ie can people comment on them or not?

Is this how you envision it?
I could also update the smg tag so that it could be used to show a list of thumbnails based on an album ID. Like, [smg album=12 limit=50 sort=id order=desc] would show the last 50 thumbs in album #12. Not sure about sort and order. Album and limit would be done though. So I just need to insert a single smg tag in the topic's first message and be done with it (no need to update it).

Yes this sound more or less what we would want I just need to discuss it with my forum staff as well. Could you give me a price on this before I take it to them please  ;D
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 14, 2009, 02:16:04 AM
Quote from: DirtRider on May 13, 2009, 10:56:05 PM
Yes this sound more or less what we would want I just need to discuss it with my forum staff as well. Could you give me a price on this before I take it to them please  ;D
For these features... I'd say around half a day of work... If everything goes well, uh uh. My daily rates are $200. So I'll say $100 and it's fair enough. That's the equivalent of 2 copies of SMF Gallery Pro, right? Just get some people to split it with you.

Now please just tell me if your friends agree on my suggestions. I've thought about it overnight and I still think it's the best implementation I could come up with.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Antechinus on May 14, 2009, 02:54:01 AM
Got a strange error here. When I try to up a file I get this:

Error, file not found! (/home/cofexm/public_html/SMF2Test/mgal_data/albums/First_test_album/Dir_1/7_beerwench_jpg4a9b6affbc2a58e87d301724372773a9_extjpg)

File is way under the size limit. Path to mgal_data is correct. Permission on First_test_album/Dir_1 is 755 (which is what the mod created it as). All folders above that are 777.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 14, 2009, 03:06:17 AM
Hopefully we get v2 beta out soon... Maybe it'll fix some issues like that... Ha.
I'm pretty sure the only thing left to do is to write the changelog ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Antechinus on May 14, 2009, 03:17:43 AM
Rofl. Damned changelogs. You get the thing out, I'll find the bugs. :D
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on May 14, 2009, 05:06:30 AM
Quote from: Antechinus on May 14, 2009, 03:17:43 AM
Rofl. Damned changelogs. You get the thing out, I'll find the bugs. :D
You'll find the bugs?!?!? NOOO!

Quote from: Antechinus on May 14, 2009, 02:54:01 AM
Got a strange error here. When I try to up a file I get this:

Error, file not found! (/home/cofexm/public_html/SMF2Test/mgal_data/albums/First_test_album/Dir_1/7_beerwench_jpg4a9b6affbc2a58e87d301724372773a9_extjpg)

File is way under the size limit. Path to mgal_data is correct. Permission on First_test_album/Dir_1 is 755 (which is what the mod created it as). All folders above that are 777.
All files and folder under mgal_data including itself should be 777. So the directory structure looks good?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Antechinus on May 14, 2009, 05:13:47 AM
Well that would be the problem then. The script creates the album Dir_1 folder as 755. If you need it to be 777 it would be better to code the script so it created the folder as 777. That way you don't have to go and reset the permissions before you can use the thing.

Now I'm going to have to run a custom script every time I want to create a new album, because my server has php running as a module and it sets the new album folders to the nobody user at 755, which means I can't do a thing with them unless I write a custom script and load that to root before running it to force a change of permissions. Bit of a bugger innit. :P
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on May 14, 2009, 05:15:37 AM
Quote from: Antechinus on May 14, 2009, 05:13:47 AM
Well that would be the problem then. The script creates the album Dir_1 folder as 755. If you need it to be 777 it would be better to code the script so it created the folder as 777. That way you don't have to go and reset the permissions before you can use the thing.

Now I'm going to have to run a custom script every time I want to create a new album, because my server has php running as a module and it sets the new album folders to the nobody user at 755, which means I can't do a thing with them unless I write a custom script and load that to root before running it to force a change of permissions. Bit of a bugger innit. :P
AFAIK it creates them as 777...It might be your server restricting it.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Antechinus on May 14, 2009, 05:38:54 AM
Maybe. It's a bastard of a server for sure. 
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: DirtRider on May 14, 2009, 05:43:28 AM
Quote from: Nao 尚 on May 14, 2009, 02:16:04 AM
Quote from: DirtRider on May 13, 2009, 10:56:05 PM
Yes this sound more or less what we would want I just need to discuss it with my forum staff as well. Could you give me a price on this before I take it to them please  ;D
For these features... I'd say around half a day of work... If everything goes well, uh uh. My daily rates are $200. So I'll say $100 and it's fair enough. That's the equivalent of 2 copies of SMF Gallery Pro, right? Just get some people to split it with you.

Now please just tell me if your friends agree on my suggestions. I've thought about it overnight and I still think it's the best implementation I could come up with.

Ok this sounds good to me now I just need to drum up a few more people that may be interested in this. I have started a new thread here for those that may be interested http://www.simplemachines.org/community/index.php?topic=310396.new#new (http://www.simplemachines.org/community/index.php?topic=310396.new#new)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 14, 2009, 07:42:06 AM
I'll try to start work on it today. I have to finish implementing an Ajax icon list for board privacies on noisen, and if I have some time left, I'll work on improving the smg tag to accept full albums (or id lists), for starters.
I don't know yet the extent of what I'll do, and I don't know if it'll be offered in the package, or as a fair-priced plugin. Fact is, the whole thing is colliding with the existing plugin I'm working on (media playlists), tentatively called "Foxy mod" because the goal is to emulate my Foxprog music discovery blog ;) When I say "fair priced", I mean "not $5, but not $20 either".
So maybe both features (playlists & notifications) will end up in the same plugin. I'll be asking for Dragooon's opinion on this.

PS: as you can see, I prefer to talk money in the open. I don't much like hiding stuff like that from the public. I'm not comfortable with asking for any money so it's probably a way for me to look for users' understanding before I start doing it ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: DirtRider on May 14, 2009, 07:50:03 AM
Yeah I agree with that as well so we all know where we stand on this. The only thing that worries me what if we get no other takers on the feature  :o
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 14, 2009, 08:41:45 AM
$100 -> the feature is for you to use. I may include part of it in SMG for free, and use part of the rest for my Foxy mod.
No bucks -> the feature will be entirely included in the the Foxy mod, which you'll be free to buy.

I figured I'd do this if no one else's interested in helping with the $100.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: DirtRider on May 14, 2009, 08:44:21 AM
Ok but so far we have not had many takers on this feature. What will the Foxy mod cost ?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 14, 2009, 08:50:30 AM
I'm thinking $19.98* with all features.

* not including my discussing it. But talking about it is only worth 2 cents, as the saying goes.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: DirtRider on May 14, 2009, 09:07:56 AM
Ok just so I understand fully the Foxy mod will then just be a plug-in for (SMG) costing US $20. This plug-in will include the features I am requesting. If so I will have one please  :D
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 14, 2009, 09:18:41 AM
Well, you could simply find at least 4 other people willing to buy it then :P
Then, gather the $100 and you're getting a new feature that everyone else gets for free and can thank you for.

Lol, why am I to think this isn't how it's going to happen? <g>
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: DirtRider on May 14, 2009, 09:44:43 AM
LOL yeah you are right there, so the Foxy pluging will do it for me then  :D
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 14, 2009, 10:02:17 AM
But it won't be out before months... As opposed to doing it right now ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: DirtRider on May 14, 2009, 10:46:50 AM
That is ok I can wait for it then. I would imagine it will be a PayPal transaction.

Just a few other issues. I am using SMF Gallery Pro right now and I know you have a converter for this. However when I did try it out quite some time back (on my test site) I hit some type of error (for the life of me I cannot remember what it was now). At the time we did speak and you said it was easy to fix but I never really worried about it at the time as I was only a test as the feature I needed was not in your version (The one we are discussing now). So I assume we would be able to convert with no problems  :D
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 14, 2009, 11:34:53 AM
Quote from: Nao 尚 on May 14, 2009, 07:42:06 AM
I'm not comfortable with asking for any money so it's probably a way for me to look for users' understanding before I start doing it ;)

You can do my garten for that price! Doesn't come any cheaper than that.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 14, 2009, 12:21:34 PM
@Akyhne> ?

@DirtRider> Yes, PayPal. And I assure you that it would have been it you'd taken my original offer... At least it would have given me a reason to do it and finish it early. :P Now, since I don't like the idea of asking people for money, I may postpone the mod again, lol.

I'll start work on it this weekend at the latest, though. I just finished my other project of the week (implementing boards hidden to anyone else that isn't in the board owner's friends list.)

I don't remember your converter problem, all I can say is: converting your SGP won't break it. SMG doesn't touch SGP at all. You can have both galleries up and running alongside.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: DirtRider on May 14, 2009, 12:42:42 PM
Well if we can drum up a bit of support maybe we can still look at the original offer, I sure would like that :D If I install this gallery I will drop SGP at the same time  :D
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: TheDisturbedOne on May 14, 2009, 06:13:34 PM
For 2.0 RC1:
It says that I can't make an album because my files aren't 777, and all the files are 777.  SMG works fine on my other board (1.1.8 running 1.5.5).
Running 1.5.6
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: chrisb on May 15, 2009, 07:46:52 AM
is there a way you can change permissions on  the gallery i have installed on the forum, so i can choose who will have what permission on the gallery.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Kindred on May 15, 2009, 08:45:10 AM
on an individual user basis?  no.

on a membergroup basis, yes. look in the smf admin > permissions
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 15, 2009, 09:25:31 AM
@TheDisturbed> Try chmodding them to 0755 instead. (Not my area of expertise really-- just read something about that today.)

@Kindred> Per-user album access is a new feature in SMG2 (I added it this week and it works just fine :)).
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: casp3r on May 15, 2009, 09:44:44 AM
Talking of SMG2, any idea when it will be released?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on May 15, 2009, 09:52:57 AM
Quote from: casp3r on May 15, 2009, 09:44:44 AM
Talking of SMG2, any idea when it will be released?
I hope we did :P. I'm looking on getting the thing done as soon as possible and submitting it to the mod site.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Kindred on May 15, 2009, 10:23:29 AM
hey Nao... :)    I know it's in SMG2...     but since that's not released yet, my comment stands :P
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 15, 2009, 12:20:16 PM
We need to do these first:
- Put out a complete changelog (which is hard enough, because we can't really use the svn changelogs, as they're often conflicting with SMG 1.5 updates)
- Finish features that are currently being implemented. I don't know about Dragooon's, but I have a couple of the fire for now. One of them being really a tough one.
- As Dragooon would like to start SMG2 on a clean slate, we'll have it thoroughly reviewed by the SMF mod team before it's available for download. Good luck to them, as it's really become a HUGE pile of complicated code since v1.0... The overcomplicated stuff is thanks to me, lol.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on May 15, 2009, 12:24:05 PM
Quote from: Nao 尚 on May 15, 2009, 12:20:16 PM
We need to do these first:
- Put out a complete changelog (which is hard enough, because we can't really use the svn changelogs, as they're often conflicting with SMG 1.5 updates)
- Finish features that are currently being implemented. I don't know about Dragooon's, but I have a couple of the fire for now. One of them being really a tough one.
- As Dragooon would like to start SMG2 on a clean slate, we'll have it thoroughly reviewed by the SMF mod team before it's available for download. Good luck to them, as it's really become a HUGE pile of complicated code since v1.0... The overcomplicated stuff is thanks to me, lol.
Thats pretty much it. I also need to fix up a few compatibility issues as well as make sure it is fine in SMF 1.1, add some help docs and a few bits here 'n' there.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on May 15, 2009, 12:49:29 PM
Quote from: Kindred on May 15, 2009, 10:23:29 AM
hey Nao... :)    I know it's in SMG2...     but since that's not released yet, my comment stands :P

As a temporary measure, you could create a new group for that particular user(s).
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on May 15, 2009, 12:51:28 PM
SMG 2 has no per-user permissions. It, however, has per-album, per-membergroup based permissions.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Goodman854 on May 15, 2009, 01:00:40 PM
Great error in premmisions now it wont unsstall says ur date base is messed and now my FTP is saying every thing in Packages isn't  777'ed and now I'm frigged! HELP!
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on May 15, 2009, 01:02:24 PM
Quote from: goodman854 on May 15, 2009, 01:00:40 PM
Great error in premmisions now it wont unsstall says ur date base is messed and now my FTP is saying every thing in Packages isn't  777'ed and now I'm frigged! HELP!
Fatal error : Cannot help, not enough information.

1) Spellings
2) Grammar
3) Not enough information, you need to tell us what is wrong and whats messed up with permissions.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: TheDisturbedOne on May 15, 2009, 03:36:05 PM
Quote from: Nao 尚 on May 15, 2009, 09:25:31 AM
@TheDisturbed> Try chmodding them to 0755 instead. (Not my area of expertise really-- just read something about that today.)
Didn't work either.  I may just wait until SMG2 gets released and try to see if that works.

Quote from: Dragooon on May 15, 2009, 01:02:24 PM
Quote from: goodman854 on May 15, 2009, 01:00:40 PM
Great error in premmisions now it wont unsstall says ur date base is messed and now my FTP is saying every thing in Packages isn't  777'ed and now I'm frigged! HELP!
Fatal error : Cannot help, not enough information.

1) Spellings
2) Grammar
3) Not enough information, you need to tell us what is wrong and whats messed up with permissions.
http://instantrimshot.com/
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: tfs on May 15, 2009, 03:50:36 PM
Dragoon, Nao:

As long as you're talking about 2.0, let me insert a suggestion/request.

When people arrive at the Media Gallery, they're just not seeing the thing at the top which directs them in the two different directions of albums and user albums.

Albums - User albums 

I have trouble remembering where to find it myself because it just blends in.  Could you add a User Albums shortcut to where you currently have "Home - Search - My Albums?"
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 15, 2009, 06:13:42 PM
Quote from: Dragooon on May 15, 2009, 12:51:28 PM
SMG 2 has no per-user permissions. It, however, has per-album, per-membergroup based permissions.
Still-- per-user album access. Which is enough for me. Permissions are more or less related to moderation features. Most people will want to fine-tune who can view their pictures, rather than who can modify them. I think ;)
Per-user permissions would be overkill, obviously. Even SMF itself doesn't do it. (This is when membergroups enter the game.)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: chrisb on May 15, 2009, 07:45:04 PM
i cant find the permission on my permissons tab, how do i fix it to make it work
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: chrisb on May 16, 2009, 09:05:02 AM
When the Forum Admins log in they are able to see the gallery link and able to view the gallery, But when the other memebers log on to the forum they are not seeing this and when i have checked the permissions, i cant see it installed and there is a block there as and no wording and not sure what is causing these issues
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: TheDisturbedOne on May 16, 2009, 09:42:05 AM
Which theme and forum version are you using?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Goodman854 on May 16, 2009, 09:51:51 AM
Quote from: Dragooon on May 15, 2009, 01:02:24 PM
Quote from: goodman854 on May 15, 2009, 01:00:40 PM
Great error in premmisions now it wont unsstall says ur date base is messed and now my FTP is saying every thing in Packages isn't  777'ed and now I'm frigged! HELP!
Fatal error : Cannot help, not enough information.

Not enough information, you need to tell us what is wrong and whats messed up with permissions.
When I installed this mod it said.... ERROR (DO NOT INSTALL MOD) because error in the Modify permissions. I Try'd to manually edit it which turned out to be a bad idea because now when I uninstalled it... every things still there but only me the admin can see it.
So now when I went to reinstall it, It says that I can't becasuse the file is not Chmoded to 777.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Kindred on May 16, 2009, 10:24:04 AM
Quote from: chrisb on May 16, 2009, 09:05:02 AM
When the Forum Admins log in they are able to see the gallery link and able to view the gallery, But when the other memebers log on to the forum they are not seeing this and when i have checked the permissions, i cant see it installed and there is a block there as and no wording and not sure what is causing these issues

I suspect that either a) you are not using english or b) your theme (incorrectly) has its own copy of some of the language files.

Make sure that the language strings are correctly installed, per the manual installation instructions.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: TheDisturbedOne on May 16, 2009, 10:28:02 AM
Quote from: Kindred on May 16, 2009, 10:24:04 AM
Quote from: chrisb on May 16, 2009, 09:05:02 AM
When the Forum Admins log in they are able to see the gallery link and able to view the gallery, But when the other memebers log on to the forum they are not seeing this and when i have checked the permissions, i cant see it installed and there is a block there as and no wording and not sure what is causing these issues

I suspect that either a) you are not using english or b) your theme (incorrectly) has its own copy of some of the language files.

Make sure that the language strings are correctly installed, per the manual installation instructions.
English as opposed to utf8.
You can change the language in Admin-Server Settings.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Skargon on May 16, 2009, 11:12:16 AM
I just started receiving an error message today when attempting to view my profile (anyone elses profile)

Fatal error: Cannot redeclare mgallery() (previously declared in /forums/Sources/Profile.php:3091) in /forums/Sources/Profile.php on line 3115

Any ideas?

Using 1.1.8
Custom Theme
http://www.dragonfen.net/forums/index.php

MGallery has been installed for about 3 days now, and this just recently happened.   No errors in error log.

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on May 16, 2009, 11:19:23 AM
Quote from: Skargon on May 16, 2009, 11:12:16 AM
I just started receiving an error message today when attempting to view my profile (anyone elses profile)

Fatal error: Cannot redeclare mgallery() (previously declared in /forums/Sources/Profile.php:3091) in /forums/Sources/Profile.php on line 3115

Any ideas?

Using 1.1.8
Custom Theme
http://www.dragonfen.net/forums/index.php

MGallery has been installed for about 3 days now, and this just recently happened.   No errors in error log.


On Profile.php there will be 2 declarations of mgallery function. Remove one of them.

@goodman854 - I still take that as an insult. And I never insulted you, I couldn't understand a thing you said because of those 3 totally valid reasons. And if it says it can't because of it not being chmodded to 777, then chmod it to 777? You still didn't tell us the exact error message you get.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Skargon on May 16, 2009, 11:42:15 AM
That worked, thanks.

For some reason, it looks like all the mgallery info that was put in the profile.php decided to duplicate itself.

Got rid of the duplicate of it all, and I can access the profiles again.  :D
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: SlammedDime on May 16, 2009, 03:32:41 PM
goodman has earned a 3 day post ban.

This will not be tolerated on the boards.  Take it to PM if you have problems with each other.

This will not continue in this topic.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on May 16, 2009, 04:14:38 PM
I want populate my gallery but i've see some problem with bmp (bitmap) files.
It show really badly :(
Now i want test to convert all images in jpg.
PS: if i delete an album i delete also all objects?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: mattchewone on May 16, 2009, 05:08:08 PM
Dragoon, would you be able to please tell me the file that i would need to edit in order to add a another direct link bar on the info part under the image and which part i would need to edit in order to add IMG tags automatically to the link.

Thank you so much

Matt
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 16, 2009, 05:20:30 PM
@matt> MGallery.template.php

Quote from: Dark-Wolf on May 16, 2009, 04:14:38 PM
PS: if i delete an album i delete also all objects?
Yes. Although I'm not sure everything is deleted -- items that's for sure, but permissions etc, I'm not so sure. Worth mentioning.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on May 16, 2009, 05:27:13 PM
Quote from: Nao 尚 on May 16, 2009, 05:20:30 PM
Quote from: Dark-Wolf on May 16, 2009, 04:14:38 PM
PS: if i delete an album i delete also all objects?
Yes. Although I'm not sure everything is deleted -- items that's for sure, but permissions etc, I'm not so sure. Worth mentioning.
Thanks :)
Any notice for bitmap files?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 16, 2009, 05:28:27 PM
Not really. I try to stay away from that crappy file format as soon as possible.
Do yourself a favor and launch a batch conversion to PNG (or JPG). You'll save a lot of disk space.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on May 16, 2009, 05:35:25 PM
Ok thanks :)
OT (have you a good software to simply convert all files)?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 16, 2009, 07:51:40 PM
Try this: http://www.google.dk/search?&q=batch+convert+bmp+to+jpg&meta=&aq=f&oq=
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: chrisb on May 16, 2009, 07:51:05 PM
Quote from: TheDisturbedOne on May 16, 2009, 09:42:05 AM
Which theme and forum version are you using?

I am using version 1.1.8 and custom theme i have created
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Özgür on May 16, 2009, 07:57:14 PM
@chrisb, Can you upload ../Sources/ManagePermissions.php
What re you using language?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on May 16, 2009, 09:32:02 PM
@akyhne: Thanks :)
-
New problem:
I've put 2 sub-album in one album with only 10files.
All is ok but from some strange reason now i can't see the 10images.
Wallpaper //10images
--otheralbum1 //more images
--otheralbum2 //more images
i've test to run maintenance ecc but without great results (and with more errors).
Now i've delete this Wallpaper album and i want test to import from localhost backup.
Is there any way to export an album from localhost (with comment and all data) and import in my site?
-
Ok, i've successfully imported manually from sql backup :)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on May 16, 2009, 11:33:30 PM
Wow...a lot more action has been there than I expected, is this topic cursed or anything? :P. Thanks Kat and SlammedDime for keeping things under control.

Quote from: Dark-Wolf on May 16, 2009, 09:32:02 PM
@akyhne: Thanks :)
-
New problem:
I've put 2 sub-album in one album with only 10files.
All is ok but from some strange reason now i can't see the 10images.
Wallpaper //10images
--otheralbum1 //more images
--otheralbum2 //more images
i've test to run maintenance ecc but without great results (and with more errors).
Now i've delete this Wallpaper album and i want test to import from localhost backup.
Is there any way to export an album from localhost (with comment and all data) and import in my site?
-
Ok, i've successfully imported manually from sql backup :)
Hm thats funny, can you link us to the album? What you are saying is that the 10 images under the albums suddenly disappeared?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: tfs on May 17, 2009, 02:07:03 AM
Quote from: Dark-Wolf on May 16, 2009, 05:35:25 PM
Ok thanks :)
OT (have you a good software to simply convert all files)?

Irfanview will do what you're looking for, and last I checked it was still free.  Batch conversion of BMP to JPG, which will save massive amounts of disk space.  The conversion must be done before you upload to Media Gallery.  Once you upload them as BMP you'll have to just delete those and upload the new JPG's.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Amacythe on May 17, 2009, 02:11:16 AM
I hate asking this again, but there seem to be quite a few non-support related posts ... would someone please clean up this topic again... and STAY ON TOPIC.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: chrisb on May 17, 2009, 03:12:11 AM
Quote from: chrisb on May 16, 2009, 07:51:05 PM
Quote from: TheDisturbedOne on May 16, 2009, 09:42:05 AM
Which theme and forum version are you using?

I am using version 1.1.8 and custom theme i have created

I have started fresh again and i was able to get this to work and now have resolved my issues
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: don_Vito on May 17, 2009, 10:30:20 AM
I have a problem with mass upload of items to SMG which installed on my forum.

Steps:
1) in album click mass upload;
2) select a few items to upload (jpg photos in my example);
3) click 'Upload' link;
4) upload process is starting.

Result: after first item is uploaded, uploading of other items stops. Moreover, the first itme is not actually uploaded to gallery. See screenshot attached.

Version:

Installed version: 1.5.6
SMF Version: SMF 1.1.8     PHP Version: 5.2.9
FFMPEG: No
GD2: Yes bundled (2.0.34 compatible)
ImageMagick: No (IMagick: No - MagickWand: No)

Browser: FF3, Google Chrome, IE7. Javascript is ON.

How can I resolve this annoying problem?

Thanks in advance for any help!
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 17, 2009, 10:47:06 AM
Is mod_security installed?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: don_Vito on May 17, 2009, 12:03:04 PM
Quote from: Nao 尚 on May 17, 2009, 10:47:06 AM
Is mod_security installed?

It seems so. Phpinfo displays mod_security2 as loaded module.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 17, 2009, 02:34:42 PM
Then you know what to do ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on May 17, 2009, 02:37:37 PM
In case you don't, you need to get rid of it(IOW, ask your host).
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Soms on May 17, 2009, 03:06:07 PM
Quote from: don_Vito on May 17, 2009, 10:30:20 AM
Result: after first item is uploaded, uploading of other items stops. Moreover, the first itme is not actually uploaded to gallery.

Guys, maybe this is not always the main problem? From my own experience, the firewall (in my case Zone Alarm) can also cause this issue. I used to have this problem too. And since I couldn't be bothered to get in touch with my hosting provider, I just uploaded the files manually one by one. Then I turned Zone Alarm cookie control off, cleaned the cache, tried mass upload again. Voilà, it worked!
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: don_Vito on May 17, 2009, 03:21:55 PM
Quote from: Dragooon on May 17, 2009, 02:37:37 PM
In case you don't, you need to get rid of it(IOW, ask your host).

I have turned it off in .htaccess file using this code:

<IfModule mod_security.c>
   # Turn off mod_security filtering.  SMF is a big boy, it doesn't need its hands held.
   SecFilterEngine Off

   # The below probably isn't needed, but better safe than sorry.
   SecFilterScanPOST Off
</IfModule>


...but it didn't help me. :(
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 17, 2009, 03:51:26 PM
Try with just the two SecFilter* lines, nothing else.

@Soms> Really...? :-/
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: don_Vito on May 18, 2009, 02:29:17 AM
Tried with two lines in .htaccess:

SecFilterEngine Off
SecFilterScanPOST Off


Forum is not loaded after that.

Does it mean, that host doesn't allow to disable mod_security?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on May 18, 2009, 02:30:30 AM
Quote from: don_Vito on May 18, 2009, 02:29:17 AM
Tried with two lines in .htaccess:

SecFilterEngine Off
SecFilterScanPOST Off


Forum is not loaded after that.

Does it mean, that host doesn't allow to disable mod_security?

Ask them.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on May 18, 2009, 07:23:20 AM
Hi!
One more question please:
Is there any way to make an albun with "adult" (no real porn, but eg naked woman wallpaper) contents available also for guests but with a disclaimer for accept (if You're over18yo) or exit (if You Aren't)?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Tiribulus on May 18, 2009, 11:16:04 AM
Let's try it here :-\

I couldn't find any reference to this in this thread and it's not a real big deal, but on the mass upload page the browse button has transformed itself into a plain white box. It works, it's just blank. If you get a chance or happen to know why this might be the case could you pretty please (how was that ;D) lemme know what to do?
Thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 18, 2009, 11:24:44 AM
It could be worse. The box could be pink with bright yellow stripes.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Tiribulus on May 18, 2009, 11:45:22 AM
You're a troubled man, your shrink must've told you that by now :P
Pink would not match my theme at all

EDIT: This is an issue with this install of Firefox somehow on this machine. Doesn't happen on my other computers so it isn't a problem with SMG. Nonetheless, your encouraging "glass half full" comment has made my day more livable. 8)
Thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: primetime on May 18, 2009, 04:49:31 PM
can you link images from photobucket in this MOD or do all images need to be uploaded?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 19, 2009, 01:31:05 AM
Quote from: primetime on May 18, 2009, 04:49:31 PM
can you link images from photobucket in this MOD or do all images need to be uploaded?
They need to be uploaded.
I understand your point but there are currently no plans to let users do this.
It could be done, technically, via en embed, but I haven't looked into this.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Jarowit on May 19, 2009, 05:39:44 AM
Hi,

I am attempting to covert to SMf and SMF Gallery from Joomla & PhpBB.  I will not be converting any databases , i will just re-upload everything.  My new site is HERE (http://gunbad.com/index.php).

I installed everything without a problem but later I could not figure out how to access the gallery.  After reading this ( and few other ) forums I found that you need to hand-code the new button in the theme itself if you are not using the default theme -  a little surprising but ok.

I tried all the instructions about where to paste what code ( there is few different instructions on a couple of different forums around the net ) but none of them worked.  I always get a template error afterward and have to FTP the original file back onto the server.

I'am using :
SMF Version : SMF 2.0 RC1
MOD : SimplePortal 2.2.1
Gallery : SMF Gallery Lite 2.0.5
Theme : DeviantSMF

Can anyone help me with getting the menu button for the gallery to show ?

PS : I followed instructions in earlier post in this thread and it did not work.



Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Kindred on May 19, 2009, 06:54:33 AM
1- with smf 2.0, you should not have to manually code theme changes.
2- this is the support topic for SMF Media Gallery (SMG), NOT SMF Gallery Lite.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 19, 2009, 07:21:02 AM
Yeah... Wrong topic.

@Jarowit> If you intend to keep SMF Gallery Lite, please edit your permissions... I've been able to edit your album description without even being logged in, lol.
http://gunbad.com/index.php?action=gallery
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LinK187 on May 19, 2009, 09:56:36 AM
Quote from: Jarowit on May 19, 2009, 05:39:44 AM
Hi,

I am attempting to covert to SMf and SMF Gallery from Joomla & PhpBB.  I will not be converting any databases , i will just re-upload everything.  My new site is HERE (http://gunbad.com/index.php).

I installed everything without a problem but later I could not figure out how to access the gallery.  After reading this ( and few other ) forums I found that you need to hand-code the new button in the theme itself if you are not using the default theme -  a little surprising but ok.

I tried all the instructions about where to paste what code ( there is few different instructions on a couple of different forums around the net ) but none of them worked.  I always get a template error afterward and have to FTP the original file back onto the server.

I'am using :
SMF Version : SMF 2.0 RC1
MOD : SimplePortal 2.2.1
Gallery : SMF Gallery Lite 2.0.5
Theme : DeviantSMF

Can anyone help me with getting the menu button for the gallery to show ?

PS : I followed instructions in earlier post in this thread and it did not work.





For manual install/uninstall instructins for any mod, use the parser on the download page for the mod.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Jarowit on May 19, 2009, 10:26:05 AM

Thank you for your help guys.   

I changed the permissions - wowza, thnx for dat.

I didn't realize that you still have to do anything manually when installing a package, thnx, I will read the instruction on download site.

I tried to download this gallery first but I kept getting errors, so no go.

Sorry for posting in the wrong forum, I tried to fix this for over 4 hours and was dead tired.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 19, 2009, 10:40:07 AM
Quote from: Jarowit on May 19, 2009, 10:26:05 AM
I didn't realize that you still have to do anything manually when installing a package, thnx, I will read the instruction on download site.

You normally don't have to, but if you are using a custom theme made by a user not involved in SMF, the program doesn't stand a chance to guess if your custom theme is editable in the right way.
SMF 2.x Has the ability to test and install if the test is successfull in every theme.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Jarowit on May 19, 2009, 12:28:16 PM
I now have both galleries installed, all the changes as per instructions done and neither one shows up on the menu.

This is pretty discouraging.

UPDATE : It would seem that it was a problem with the template.  I am currently searching for a new one that actually works...

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: primetime on May 19, 2009, 12:47:28 PM
Quote from: Nao 尚 on May 19, 2009, 01:31:05 AM
Quote from: primetime on May 18, 2009, 04:49:31 PM
can you link images from photobucket in this MOD or do all images need to be uploaded?
They need to be uploaded.
I understand your point but there are currently no plans to let users do this.
It could be done, technically, via en embed, but I haven't looked into this.

ok.. that would be a great feature imo. Thank you for the reply. :)

Prime
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on May 19, 2009, 12:51:11 PM
Quote from: Jarowit on May 19, 2009, 12:28:16 PM
I now have both galleries installed, all the changes as per instructions done and neither one shows up on the menu.

This is pretty discouraging.

UPDATE : It would seem that it was a problem with the template.  I am currently searching for a new one that actually works...


Both? You need to manually add the button in the theme.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: TheDisturbedOne on May 19, 2009, 04:31:51 PM
All templates on the theme site work ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: ianus on May 23, 2009, 05:26:53 AM
Quote from: Sabre™ on May 21, 2009, 11:26:02 PM
Quote from: primetime on May 19, 2009, 12:47:28 PM
Quote from: Nao 尚 on May 19, 2009, 01:31:05 AM
Quote from: primetime on May 18, 2009, 04:49:31 PM
can you link images from photobucket in this MOD or do all images need to be uploaded?
They need to be uploaded.
I understand your point but there are currently no plans to let users do this.
It could be done, technically, via en embed, but I haven't looked into this.

ok.. that would be a great feature imo. Thank you for the reply. :)

Prime
X2

I like to point to a discussion about external embed and my request to embed only from specific and decent free image-hosting services.

The discussion Upload via External URL (http://smf-media.com/community/index.php?topic=339) can be found over at smf-media.com.

My personal point of view and my request can be found there also Show via free image host (imageshack etc.. (http://smf-media.com/community/index.php?topic=664.0).

In short, the main argument against external embed is the possibility of traffic stealing.
I think, that the opposite is verisimilar.
If embed is allowed only from a small amount of free image- hosting sites, it is impossible to steal traffic.
Let me name MediaWiki (http://www.mediawiki.org/wiki/MediaWiki)-software as an example. (Manual:$wgAllowExternalImagesFrom (http://www.mediawiki.org/wiki/Manual:$wgAllowExternalImagesFrom))
#$wgAllowExternalImagesFrom = array( 'http://127.0.0.1/', 'http://my.imageshack.us/' );

To drive this further, there are mods to upload and embed (here (http://custom.simplemachines.org/mods/index.php?mod=1669), here (http://custom.simplemachines.org/mods/index.php?mod=1639)), only upload (here (http://custom.simplemachines.org/mods/index.php?mod=134)) and a bunch of mods to thumbnail / enlarge images.
Some of them are causing problems because of js incompatibility or because they can't handle intended behavior if the image is a link and an admin have to handle a bunch of mods instead of one (gallery).

Please don't blame me for bringing up this discussion again, but I think this feature is worth to be discussed.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 23, 2009, 06:04:19 AM
Okay... You're making your point :P
One of the problems is that these sites often offer various links... The picture itself... An HTML page with a preview... An HTML page with the full picture... A preview link... Sometimes a direct link to the picture... I'm not sure I like the idea of having to go through all of these and extract the actual image URL. That's my main point. Also, should we make a preview picture out of it? (ie, download it, resize it to both preview and thumbnail, or just resize it to thumbnail?)
So many things to do... So little time.

But we're clearly in a timeframe where new features can be added. I know from experience that I rather enjoy adding new features from time to time, at the same time as I'm fixing bugs in previous features. Dragooon prefer to have a "stable" release and a "beta" release where he'll put the new features, but the bug fixes must be put into both releases so it's really, really annoying to keep maintaining two versions at the same time. It's something Dragooon and I have difficulty agreeing upon -- the Aeva philosophy and the SMG philosophy ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: ianus on May 23, 2009, 10:08:51 AM
Thanks for your patience with me (and in this case). It's really appreciated.
As mentioned in the smf-media thread, I don't want to steal your time and if time is the reason not to write this feature, I will keep my mouth shut.


I think that imageshack offer all the options you named, to display images.

On the other hand, I need only one kind of link to embed an image into a post.
I have an example thread (http://www.firopolis.de/forum/index.php/topic,2751.0.html).
To show the thumbnails:
http://img7.imageshack.us/my.php?image=zoomer11689044.th.jpg
To show the full image (per se), it's only necessary to get rid of the ,,th" at the end of the link.
To make it fullsize: Highslide mod (http://custom.simplemachines.org/mods/index.php?mod=1450) and as far as I know, something similar is already in the SMG.

From my (greenly) point of view, it can't be so complicated.

I know that you show a tendency to make every possible code embeddable...
...than it could get complicated.
When a simple
http://img7.imageshack.us/my.php?image=zoomer11689044.th.jpg is the only way, than it might be easier.
You have a thumb as preview and some js could do the rest.

Well... we can talk about an upload feature also.  :-X
http://reg.imageshack.us/content.php?page=developerpublic

In any case, I am finished with this and will not ask again. Hopefully you can enjoy the nice weather and don't have a "real life stress test".
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on May 23, 2009, 09:40:45 PM
Getting this error in my log whenever someone clicks to view on user albums.

Error Log:
Quote
PRaDiUS       Today at 09:31:25 PM
IP address 98.166.155.6      3c29a14400dd0879c6628fb9cd556989
URL http://rgxbox.com/index.php?action=mgallery;sa=vua
8: Undefined index: id_member
File: /hermes/bosweb/web125/b1258/sl.rgxbox/public_html/Themes/default/MGallery.template.php (eval?)
Line: 829

any idea what would be causing this or how i can fix it?
MGallery.template.php is attached.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Özgür on May 24, 2009, 01:52:45 AM
Quote from: PRaDiUS on May 23, 2009, 09:40:45 PM
Getting this error in my log whenever someone clicks to view on user albums.

Error Log:
Quote
PRaDiUS       Today at 09:31:25 PM
IP address 98.166.155.6      3c29a14400dd0879c6628fb9cd556989
URL http://rgxbox.com/index.php?action=mgallery;sa=vua
8: Undefined index: id_member
File: /hermes/bosweb/web125/b1258/sl.rgxbox/public_html/Themes/default/MGallery.template.php (eval?)
Line: 829

any idea what would be causing this or how i can fix it?
MGallery.template.php is attached.
Please run this code in phpmyadmin.
INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);
And try again. This seems like to other problem not smg.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on May 24, 2009, 11:46:52 AM
where exactly do i go in phpmyadmin to run that code?
I am slow and have no idea how to do it. Thanks.

Quote from: Özgür´ on May 24, 2009, 01:52:45 AM
Quote from: PRaDiUS on May 23, 2009, 09:40:45 PM
Getting this error in my log whenever someone clicks to view on user albums.

Error Log:
Quote
PRaDiUS       Today at 09:31:25 PM
IP address 98.166.155.6      3c29a14400dd0879c6628fb9cd556989
URL http://rgxbox.com/index.php?action=mgallery;sa=vua
8: Undefined index: id_member
File: /hermes/bosweb/web125/b1258/sl.rgxbox/public_html/Themes/default/MGallery.template.php (eval?)
Line: 829

any idea what would be causing this or how i can fix it?
MGallery.template.php is attached.
Please run this code in phpmyadmin.
INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);
And try again. This seems like to other problem not smg.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 24, 2009, 12:16:09 PM
There's a link in the top called sql as I remember. Clicking it will open a popup window. Just provide the code there.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on May 24, 2009, 12:29:20 PM
Quote from: akyhne on May 24, 2009, 12:16:09 PM
There's a link in the top called sql as I remember. Clicking it will open a popup window. Just provide the code there.

Thank you! I found it right away and added it with no problems.
Unfortunately, it doesn't seem to have solved the problem. Ideas anyone?


This is where the problem seems to be occuring from in mgallery.template.php
Quote
Line 826 $current_owner = 0;
Line 827   foreach ($context['mgallery_user_albums'] as $album)
Line 828   {
Line 829      if ($album['id_member'] != $current_owner)
Line 830    {
Line 831         $current_owner = $album['id_member'];

Quote from: PRaDiUS on May 23, 2009, 09:40:45 PM
Getting this error in my log whenever someone clicks to view on user albums.

Error Log:
Quote
PRaDiUS       Today at 09:31:25 PM
IP address 98.166.155.6      3c29a14400dd0879c6628fb9cd556989
URL http://rgxbox.com/index.php?action=mgallery;sa=vua
8: Undefined index: id_member
File: /hermes/bosweb/web125/b1258/sl.rgxbox/public_html/Themes/default/MGallery.template.php (eval?)
Line: 829

any idea what would be causing this or how i can fix it?
MGallery.template.php is attached.

Quote from: Özgür´ on May 24, 2009, 01:52:45 AM
Please run this code in phpmyadmin.
INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);
And try again. This seems like to other problem not smg.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 24, 2009, 03:00:54 PM
Pradius, don't forget to make your copyright notice readable... Black on black isn't going to work for us...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Sabre™ on May 24, 2009, 05:08:01 PM
[Any ideas peeps? :-/ ] (http://www.simplemachines.org/community/index.php?topic=260821.msg2071880#msg2071880)

@ PRaDiUS
You insert that code into phpmyadmin as prescribed above, then go to your forum and do the actions that usually bring up your error.
Quote from: PRaDiUS on May 23, 2009, 09:40:45 PM
Getting this error in my log whenever someone clicks to view on user albums.
Now go to your error log and copy the error here if it is now different, or to the appropriate thread if the error shows it is another modification causing it.

Then go back to phpmyadmin and run this line
DELETE FROM smf_settings WHERE variable = 'disableTemplateEval';
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on May 24, 2009, 05:33:49 PM
Ok, did that. Seems to be still the same error showing up.

Error currently showing in log:
Quote
PRaDiUS       Today at 05:31:57 PM
IP address 98.166.155.6      3c29a14400dd0879c6628fb9cd556989
URL http://rgxbox.com/index.php?action=mgallery;sa=vua
8: Undefined index: id_member
File: /hermes/bosweb/web125/b1258/sl.rgxbox/public_html/Themes/default/MGallery.template.php (eval?)
Line: 829

Quote from: Sabre™ on May 24, 2009, 05:08:01 PM
[Any ideas peeps? :-/ ] (http://www.simplemachines.org/community/index.php?topic=260821.msg2071880#msg2071880)

@ PRaDiUS
You insert that code into phpmyadmin as prescribed above, then go to your forum and do the actions that usually bring up your error.
Quote from: PRaDiUS on May 23, 2009, 09:40:45 PM
Getting this error in my log whenever someone clicks to view on user albums.
Now go to your error log and copy the error here if it is now different, or to the appropriate thread if the error shows it is another modification causing it.

Then go back to phpmyadmin and run this line
DELETE FROM smf_settings WHERE variable = 'disableTemplateEval';
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Kindred on May 24, 2009, 07:02:43 PM
pradius,

The (eval?) comment at the end of the error message indicates that that error is not actually occuring in that file, it just happens to be triggered by that line of code.  With that in mind, there is likely another issue with someone else that happens to be brought to light by the Mgallery code...   so pasting mgallery code will serve no purpose.

The SQL that they gave you is to turn off the eval, so that you get the ACTUAL location of the error. If you are still seeing (eval?) then you did not run the SQL code...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on May 24, 2009, 07:47:23 PM
You are right, after I run the code (eval?) dissapears. But the error still looks essentially the same to me. Here is as it stands right now.

Quote
PRaDiUS       Today at 07:45:03 PM
IP address 98.166.155.6      3c29a14400dd0879c6628fb9cd556989
URL http://rgxbox.com/index.php?action=mgallery;sa=vua
8: Undefined index: id_member
File: /hermes/bosweb/web125/b1258/sl.rgxbox/public_html/Themes/default/MGallery.template.php
Line: 829

what does this mean? is there somewhere else I should be looking?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Kindred on May 24, 2009, 09:46:31 PM
PRaDiUS,   Please set the copyrights on your forum into a readable font color.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on May 25, 2009, 12:03:34 AM
I can read them perfectly. Navy blue is the color of all links on my page.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Loginsvarios on May 26, 2009, 04:00:07 PM
First of all congratulations for this great mod... and sorry for my English level (I'm from Spain).

Is there a way to lock upload when needed on general Albums, so the users can view the items but no upload new ones?

I mean like a thread in a forum.
Everyone can post on it, but when the Admin/Moderator close it no one can add a single post while still can view its contents.

It's possible edit somewhere in SMG to do something like this?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 26, 2009, 05:16:59 PM
I don't think it is possible without shutting down uploading on all general albums.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on May 26, 2009, 07:48:31 PM
I've gone thru and tried as many different things as I can think of.
Still can't get this error to go away. Got to be something I am overlooking.

Quote
PRaDiUS       Today at 07:45:03 PM
IP address 98.166.155.6      3c29a14400dd0879c6628fb9cd556989
URL http://rgxbox.com/index.php?action=mgallery;sa=vua
8: Undefined index: id_member
File: /hermes/bosweb/web125/b1258/sl.rgxbox/public_html/Themes/default/MGallery.template.php
Line: 829

This is where the problem seems to be occuring from in mgallery.template.php

Quote
Line 826 $current_owner = 0;
Line 827   foreach ($context['mgallery_user_albums'] as $album)
Line 828   {
Line 829      if ($album['id_member'] != $current_owner)
Line 830    {
Line 831         $current_owner = $album['id_member'];

Is it possible that I could remove or bypass part of that code there?
Or is there a way I can correct the problem from within the script?
I am officially stumped.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on May 26, 2009, 08:02:21 PM
Hi!
I've found more error in error log:
72.14.199.8    Visitatore  2: Invalid argument supplied for foreach()
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=post-rss.0 Oggi alle 01:29:03
72.14.199.8 Visitatore 8: Undefined index: boardnews
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=post-rss.0 Oggi alle 01:29:03
72.14.199.8 Visitatore 2: Invalid argument supplied for foreach()
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=news-atom.0 Oggi alle 01:07:27
72.14.199.8 Visitatore 8: Undefined index: boardnews
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=news-atom.0 Oggi alle 01:07:27
72.14.199.8 Visitatore 2: Invalid argument supplied for foreach()
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=news-rss.0 Oggi alle 01:00:59
72.14.199.8 Visitatore 8: Undefined index: boardnews
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=news-rss.0 Oggi alle 01:00:59
72.14.199.8 Visitatore 2: Invalid argument supplied for foreach()
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=post-rss.0 Ieri alle 22:28:58
72.14.199.8 Visitatore 8: Undefined index: boardnews
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=post-rss.0 Ieri alle 22:28:58
72.14.199.8 Visitatore 2: Invalid argument supplied for foreach()
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=news-atom.0 Ieri alle 22:05:31
72.14.199.8 Visitatore 8: Undefined index: boardnews
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=news-atom.0 Ieri alle 22:05:31
72.14.199.8 Visitatore 2: Invalid argument supplied for foreach()
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=news-rss.0 Ieri alle 22:00:29
72.14.199.8 Visitatore 8: Undefined index: boardnews
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=news-rss.0 Ieri alle 22:00:29
72.14.199.8 Visitatore 2: Invalid argument supplied for foreach()
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=post-rss.0 Ieri alle 19:28:46
72.14.199.8 Visitatore 8: Undefined index: boardnews
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=post-rss.0 Ieri alle 19:28:45
72.14.199.8 Visitatore 2: Invalid argument supplied for foreach()
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=news-atom.0 Ieri alle 19:04:50
72.14.199.8 Visitatore 8: Undefined index: boardnews
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=news-atom.0 Ieri alle 19:04:50
72.14.199.8 Visitatore 2: Invalid argument supplied for foreach()
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=news-rss.0 Ieri alle 19:00:15
72.14.199.8 Visitatore 8: Undefined index: boardnews
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=news-rss.0
and this:66.249.71.17    Visitatore  2: Invalid argument supplied for foreach()
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=post-rss.0 Oggi alle 01:36:23
66.249.71.17 Visitatore 8: Undefined index: boardnews
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=post-rss.0 Oggi alle 01:36:23
66.249.71.17 Visitatore 2: Invalid argument supplied for foreach()
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=post-rss.0 Oggi alle 01:36:22
66.249.71.17 Visitatore 8: Undefined index: boardnews
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=post-rss.0 Oggi alle 01:36:22
66.249.71.17 Visitatore 2: Invalid argument supplied for foreach()
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=presentatevi-qui!!.0&sort=starter Ieri alle 21:42:09
66.249.71.17 Visitatore 8: Undefined index: boardnews
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=presentatevi-qui!!.0&sort=starter Ieri alle 21:42:09
66.249.71.17 Visitatore 2: Invalid argument supplied for foreach()
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=presentatevi-qui!!;topic=benvenuti!.20 Ieri alle 21:41:25
66.249.71.17 Visitatore 8: Undefined index: boardnews
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=presentatevi-qui!!;topic=benvenuti!.20 Ieri alle 21:41:25
66.249.71.17 Visitatore 2: Invalid argument supplied for foreach()
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=presentatevi-qui!!;topic=salve-a-tutti-t162.0&msg=853 Ieri alle 21:26:56
66.249.71.17 Visitatore 8: Undefined index: boardnews
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=presentatevi-qui!!;topic=salve-a-tutti-t162.0&msg=853 Ieri alle 21:26:56
66.249.71.17 Visitatore 2: Invalid argument supplied for foreach()
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=presentatevi-qui!!;topic=salve-a-tutti-t162.0&msg=854 Ieri alle 21:26:40
66.249.71.17 Visitatore 8: Undefined index: boardnews
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=presentatevi-qui!!;topic=salve-a-tutti-t162.0&msg=854 Ieri alle 21:26:40
66.249.71.17 Visitatore 2: Invalid argument supplied for foreach()
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=presentatevi-qui!!;topic=salve-a-tutti-t162.0&msg=851 Ieri alle 21:26:23
66.249.71.17 Visitatore 8: Undefined index: boardnews
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=presentatevi-qui!!;topic=salve-a-tutti-t162.0&msg=851 Ieri alle 21:26:23
66.249.71.17 Visitatore 2: Invalid argument supplied for foreach()
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=presentatevi-qui!!;topic=salve-a-tutti-t162.0&msg=850 Ieri alle 21:24:44
66.249.71.17 Visitatore 8: Undefined index: boardnews
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=presentatevi-qui!!;topic=salve-a-tutti-t162.0&msg=850 Ieri alle 21:24:44
66.249.71.17 Visitatore 2: Invalid argument supplied for foreach()
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=presentatevi-qui!!;topic=ben-trovati-!.msg665 Ieri alle 19:59:20
66.249.71.17 Visitatore 8: Undefined index: boardnews
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=presentatevi-qui!!;topic=ben-trovati-!.msg665 Ieri alle 19:59:20
66.249.71.17 Visitatore 2: Invalid argument supplied for foreach()
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=presentatevi-qui!!.20&sort=replies Ieri alle 19:58:29
66.249.71.17 Visitatore 8: Undefined index: boardnews
File: /membri/darkwolf/forum/Themes/default/languages/MGallery.italian.php (main sub template - eval?)
Linea: 15
?pretty;board=presentatevi-qui!!.20&sort=replies
both ip are related to google crawler.
Any idea to fix?
I've put in attachments my MGallery.italian.php  :)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: X8oD on May 26, 2009, 10:49:20 PM
Ok i get a couple odd errors.

I have issues Uploading JPG and PNG files that are "too big" but not file size.....

I can take an image approx 1300 pixels [width or height) save it as a GIF and it uploads fine, Save it as a JPG and i get a 500 Internal server error. Same with a Png. I have my max width/height allowed at 2000. I found a happy medium around 1250 pixels.

the Odd part comes, I can take the Max allowed via settings (set at 2000 as stated above), and go to lets say 5000, and that same file with the same name and same size will Internal server error out. Put it back to 2000, and the file works fine.

I can Increase the saved quality of the JPG to increase the file size, and it uploads. But i change the width beyond 1250 and error 500.

I can, how ever, Upload Gif files of any size, MP3's of any size [to the set file size] and soo n so forth.

im not sure if this is my host, or the software. Any idea?

odd error, eh? lol
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 27, 2009, 03:02:53 AM
@x> server issue.

@dark-wolf> it's not in that file. When it says "eval?", it says it's not sure the error was there. If it's not, then it's probably in "index.template.php". Obviously your error is not SMG-related so please ask somewhere else.

@pradius> just put a @ in front of the $album call.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on May 27, 2009, 03:39:53 AM
Quote from: Nao 尚 on May 27, 2009, 03:02:53 AM
@dark-wolf> it's not in that file. When it says "eval?", it says it's not sure the error was there. If it's not, then it's probably in "index.template.php". Obviously your error is not SMG-related so please ask somewhere else.
Thanks Nao!
I saw that were related to MGallery.italian.php and thought it was a problem of gallery  :-[
I've maked a new topic:topic=313494.msg2080088#msg2080088 (http://www.simplemachines.org/community/index.php?topic=313494.msg2080088#msg2080088)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 27, 2009, 07:33:13 AM
@Sabre> I still don't know about your problem, you know... ;)

@Dark Wolf> This is a common issue with SMF. "eval?" isn't very self-explained. We often end up with bug reports that are unrelated to SMG or Aeva.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: richyp on May 27, 2009, 11:41:45 AM
Quote from: Dragooon on May 17, 2009, 02:37:37 PM
In case you don't, you need to get rid of it(IOW, ask your host).

Hi Dragoon,
we too are suffering timeouts/freezing with upload, I contacted the host and they confirmed that they do not use mod_security.

Any other suggestions?

KR

Richy
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 27, 2009, 12:11:49 PM
Dragooon is offline for the week.
I suppose you made sure this is not a problem with the php.ini max file/upload size variables either?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: CrazyCreator on May 27, 2009, 05:38:39 PM
Hello,
i have installed the SMF 2.0 RC1-1 and the new SMF 1.5.6 when i upload a pic or embed a video i become a white page without error, just white page. and the video or the pic is not uploaded.

what ist wrong???
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on May 27, 2009, 06:30:00 PM
Nao, thanks.
Which part of this is actually calling for the album?
I just wanna be sure that I put this @ symbol in the right place so that I don't mess it up.

Quote
Line 826 $current_owner = 0;
Line 827   foreach ($context['mgallery_user_albums'] as $album)
Line 828   {
Line 829      if ($album['id_member'] != $current_owner)
Line 830    {
Line 831         $current_owner = $album['id_member'];

Since the error is coming from line 829, does that mean the album is being called from there?
and would that mean the correct line of code would be..

if (@$album['id_member'] != $current_owner) or...
if @ ($album['id_member'] != $current_owner) ,err...

I just don't have a clue what I'm doing here. Haha.
After I am told one time then I will know forever. Thank you.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Joe N on May 28, 2009, 03:20:43 AM
Are you going to update this to the latest version?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 28, 2009, 05:00:17 AM
Quote from: PRaDiUS on May 27, 2009, 06:30:00 PM
Nao, thanks.
Which part of this is actually calling for the album?
I just wanna be sure that I put this @ symbol in the right place so that I don't mess it up.
Line 829... @$album
It simply means "don't tell me if there's an error."
It doesn't fix the error. It just ignores it.

@Joe N> You mean the latest version of SMF...? It's compatible with all current versions.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Sabre™ on May 28, 2009, 05:11:44 AM
Well...   after posting my problem multiple times, then removing it to re~post, for some reason I am being ignored here, so I will no longer clog your thread :)

All the best.

regards
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Joe N on May 28, 2009, 06:10:42 AM
Quote from: Nao 尚 on May 28, 2009, 05:00:17 AM
Quote from: PRaDiUS on May 27, 2009, 06:30:00 PM


@Joe N> You mean the latest version of SMF...? It's compatible with all current versions.

Oh ok
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Joe N on May 28, 2009, 06:11:11 AM
Only because you modified it!

It wasn't earlier  ::)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 28, 2009, 06:13:55 AM
@Sabre> I never ignored you. I said long ago that if I didn't reply a message, that's because I don't know what to reply (or someone else is already helping).

@Joe N> Just because it doesn't say "Compatible with SMF 1.1.9" doesn't mean it isn't. It just means the mod author hasn't updated the mod page to click the checkbox that says 1.1.9.
I didn't change anything in SMG. I just reuploaded the three SMG converters earlier this morning because I was trying to compile a list of changes for SMG2 and I realized the SMG2 folder's converters weren't on the mod site (while they *should* have been, since they're not using SMG2 features at all.) I used the opportunity to click the boxes where needed, obviously.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Joe N on May 28, 2009, 06:15:03 AM
Quote from: Nao 尚 on May 28, 2009, 06:13:55 AM
@Joe N> Just because it doesn't say "Compatible with SMF 1.1.9" doesn't mean it isn't. It just means the mod author hasn't updated the mod page to click the checkbox that says 1.1.9.
I didn't change anything in SMG. I just reuploaded the three SMG converters earlier this morning because I was trying to compile a list of changes for SMG2 and I realized the SMG2 folder's converters weren't on the mod site (while they *should* have been, since they're not using SMG2 features at all.) I used the opportunity to click the boxes where needed, obviously.

Oh ok
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on May 28, 2009, 06:16:30 AM
@Nao: i use the TinyPortal block from smf-media in my site but how i can exclude one specific gallery(ID) from this block?
PS: is possible to upload (more) images via ftp?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: cryptoknight on May 28, 2009, 08:12:26 AM
I'm trying to get this to work.

I've got it installed, configured an album, set security on it, and uploaded an image to it.

But only admins can see the gallery link.  And I don't see a setting to enable the gallery so regular users can see it.  The only security config I can find is per gallery, and I have set the gallery to permit registered users in particular groups to see it.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: casp3r on May 28, 2009, 08:17:09 AM
Go to the permissions section of admin, select regular members and you should see overall permissions for the gallery.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 28, 2009, 09:43:04 AM
@dark> you can exclude a gallery by, err... I don't remember. I know it can be done, lol. Just browse around the hack blocks over at smf-media.com...

ftp: yes it's possible. No, not for now. It's a feature in SMG2. It's the first feature that was written specifically for SMG2, months ago. Been frustrating not being able to offer it to users, especially since it didn't require that many changes to the code, but that's Dragooon's choice. :P
I actually used it to import my Foxprog audio library to SMG format earlier this month.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on May 28, 2009, 10:19:00 AM
Ok Nao thanks :)
-
Edit: i've found solution here: http://smf-media.com/community/index.php?topic=121.msg4335#msg4335
-
Then if i want disable album id 2 i can put:
   $items = getMediaItems(0, 5, 'RAND()', false, array(2));
or:
   $items = getMediaItems(0, 5, 'RAND()', true, array(1,3,4,5,6,7,8,9));
i'm right?
-
PS: this is my actual block (without table, centered, and with 3images separated by <hr />) :)
global $sourcedir, $context, $txt, $galurl, $scripturl, $settings;

require_once($sourcedir . '/Subs-MGallery.php');
loadMGal_Settings();

if (loadlanguage('MGallery') == false)
  loadLanguage('MGallery', 'english');

$items = getMediaItems(0, 3, 'RAND()');

  echo '
      <hr />';
foreach ($items as $item)
  echo '
      <div class="smalltext" style="text-align: center; line-height: 1.4em; border: 0; padding: 2px;">
      <a href="',$galurl,'sa=item;id=',$item['id'],'">',$item['title'],'</a><br />
      <div style="padding: 2px 0;">
      <a href="',$galurl,'sa=item;id=',$item['id'],'" title="',$item['title'],'">
      <img alt="',$item['title'],'" src="',$galurl,'sa=media;id=',$item['id'],';thumb" /></a>
      </div>
      ',$txt['mgallery_views'],': ',$item['views'],'<br />
      ',$txt['mgallery_posted_by'],': <a href="',$scripturl,'?action=profile;u=',$item['poster_id'],'">',$item['poster_name'],'</a><br />
      ',$txt['mgallery_in_album'],': <a href="',$galurl,'sa=album;id=',$item['id_album'],'">',$item['album_name'],'</a>
      ',$item['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','</div><hr />
      ';
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: kolt on May 28, 2009, 08:38:45 PM
Hello, Is it possible having a random or last video in the portal?

I mean a plugin that can show it in the portal side bar.

Thanks in advance
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 28, 2009, 08:43:16 PM
For Tiny Protal there's a mod at their site or at smf-media.com. I would be surprised if that isn't also the case for Simple Portal.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: kolt on May 28, 2009, 08:55:03 PM
Yes I see It, sorry for not been cleare, because I wanted to be sure that if existed.

I use mkportal, do you think if is it possible for that?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on May 28, 2009, 10:36:18 PM
Hi!
i've included highslide effect (wamp, local server) in block with all info like [smg *] tag:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg15.imageshack.us%2Fimg15%2F7465%2Fblockmodj.gif&hash=567b9672c757b173eae8b8ed8df61ba83ba76137)
all works fine except time function (see screenshot) any idea to fix? :)
---
Fixed: -> ',$item['time'],'
---
PS: this is full (beta) code:

global $sourcedir, $context, $txt, $galurl, $scripturl, $settings;

require_once($sourcedir . '/Subs-MGallery.php');
loadMGal_Settings();
mgalAddHeaders();

if (loadlanguage('MGallery') == false)
  loadLanguage('MGallery', 'english');

$items = getMediaItems(0, 3, 'RAND()');


  echo '
      <hr />';
foreach ($items as $item)
  echo '
      <div class="smalltext" style="text-align: center; line-height: 1.4em; border: 0; padding: 2px;">
      <a href="',$galurl,'sa=item;id=',$item['id'],'">',$item['title'],'</a><br />
      <div style="padding: 2px 0;">
      <a href="',$galurl,'sa=media;id=',$item['id'],'" title="',$item['title'],'" class="hs" onclick="return hs.expand(this);">
      <img alt="',$item['title'],'" src="',$galurl,'sa=media;id=',$item['id'],';thumb" class="smg_ext" border="0" /></a>
      </div>
      <img style="width: 10px; height: 10px;" alt="" src="' . $settings['images_smg'] . '/graph.gif" /> ',$txt['mgallery_views'],': ',$item['views'],'<br />
      <img style="width: 10px; height: 10px;" alt="" src="' . $settings['images_smg'] . '/comment.gif" /> ',$txt['mgallery_comments'],': ',$item['comments'],'<br />
      ',$txt['mgallery_posted_by'],' <a href="',$scripturl,'?action=profile;u=',$item['poster_id'],'">',$item['poster_name'],'</a><br />
      <img style="width: 10px; height: 10px;" alt="" src="' . $settings['images_smg'] . '/clock.gif" />
      ',$item['time'],'<br />
      ',$txt['mgallery_in_album'],' <a href="',$galurl,'sa=album;id=',$item['id_album'],'">',$item['album_name'],'</a>
      ',$item['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','</div><hr />
      ';

-
Edit: now u can test directly in my site :)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on May 28, 2009, 10:57:58 PM
Quote from: Nao 尚 on May 28, 2009, 05:00:17 AM
Quote from: PRaDiUS on May 27, 2009, 06:30:00 PM
Nao, thanks.
Which part of this is actually calling for the album?
I just wanna be sure that I put this @ symbol in the right place so that I don't mess it up.
Line 829... @$album
It simply means "don't tell me if there's an error."
It doesn't fix the error. It just ignores it.

Alright. Thanks bro. I'll do that for now.
Is there no way I can correct the problem at this time?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: littenburg on May 28, 2009, 11:05:37 PM
is there any way to embed picture from other sites, like you do with the video? because i have had several complaints form users not liking the fact they have to save the image to their computer, then upload it all over again...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: mattchewone on May 29, 2009, 02:20:44 AM
Nao/Dragoon,

Are you able to help me with finding the right file i need to edit in order to add a duplicate of 'Direct Link' and add IMG tags in the box?

Thanks so much
Matt
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 29, 2009, 02:45:19 AM
@Pradius> I couldn't know what your problem is without looking at your code...

@littenburg> This has been asked for several times already. I'll probably implement it sometimes in the future. It shouldn't be too hard to make. Just a small Aeva bypass at two places and I'm done. Please remind me next week if I haven't announced it's done. I'm currently busy on the Foxy! SMG mod and adding commissioned sites to Aeva.

@matt> MGallery.template.php
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: ianus on May 29, 2009, 06:49:44 AM
Quote from: kolt on May 28, 2009, 08:38:45 PM
Hello, Is it possible having a random or last video in the portal?
I mean a plugin that can show it in the portal side bar.

Quote from: Akyhne on May 28, 2009, 08:43:16 PM
For Tiny Protal there's a mod at their site or at smf-media.com. I would be surprised if that isn't also the case for Simple Portal.

You are right. For Simple Portal (2.2) there is a "already build in" block for the Gallery.
Admin -> SimplePortal -> Blocks -> Add Block and then choose "Gallery"
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 29, 2009, 09:36:00 AM
@Pradius> I had another look at your board -- it's still showing the copyright footers in black over a black background. When are you planning to make them visible?

@ianus> SMF Gallery or SMF Media Gallery?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on May 29, 2009, 09:47:11 AM
@nao: Please can you answer to my precedent question? :-[
http://www.simplemachines.org/community/index.php?topic=260821.msg2082382#msg2082382
-
Quote from: Dark-Wolf on May 28, 2009, 10:19:00 AM
Then if i want disable album id 2 i can put:
   $items = getMediaItems(0, 5, 'RAND()', false, array(2));
or:
   $items = getMediaItems(0, 5, 'RAND()', true, array(1,3,4,5,6,7,8,9));
i'm right?...
I've try this:   $items = getMediaItems(0, 5, 'RAND()', false, array(2));but i receive error 500.
Works fine if i use    $items = getMediaItems(0, 5, 'RAND()', true, array(1,3,4,5,6,7,8,9));but, if is possible, i want disable one album and not enable all except one (otherwise is necessary to edit block code every time i make a new album) :(
--
PS: in your opinion is ok the code with highslide?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: rgecy on May 29, 2009, 10:15:19 AM
I wanted to know if there is a way to show the number of new images posted since your last visit on the Gallery tab like SMF does for your Messages.   

For example:  Gallery(11)

Thanks,

RGecy
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: ianus on May 29, 2009, 11:01:40 AM
Quote from: Nao 尚 on May 29, 2009, 09:36:00 AM
@ianus> SMF Gallery or SMF Media Gallery?

I have SimplePortal (http://simpleportal.net/index.php?action=forum) and SMF Media Gallery (http://smf-media.com/) installed.
Right thread imho  ;D

Don't know if SP grab pictures from SMF Gallery also or if the block-script is able to detect other Galleries in general.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on May 29, 2009, 11:46:03 AM
Quote from: Nao 尚 on May 29, 2009, 02:45:19 AM
@Pradius> I couldn't know what your problem is without looking at your code...

Ok, here is mgallery.template and index.template.
If you need me to put up any of my source files for you to see then let me know.
I am pretty sure the root of the problem is in here somewhere thou.
Thanks for taking a look.

;D
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Özgür on May 29, 2009, 11:54:30 AM
Quote from: Dark-Wolf on May 29, 2009, 09:47:11 AM
@nao: Please can you answer to my precedent question? :-[
http://www.simplemachines.org/community/index.php?topic=260821.msg2082382#msg2082382
-
Quote from: Dark-Wolf on May 28, 2009, 10:19:00 AM
Then if i want disable album id 2 i can put:
   $items = getMediaItems(0, 5, 'RAND()', false, array(2));
or:
   $items = getMediaItems(0, 5, 'RAND()', true, array(1,3,4,5,6,7,8,9));
i'm right?...
I've try this:   $items = getMediaItems(0, 5, 'RAND()', false, array(2));but i receive error 500.
Works fine if i use    $items = getMediaItems(0, 5, 'RAND()', true, array(1,3,4,5,6,7,8,9));but, if is possible, i want disable one album and not enable all except one (otherwise is necessary to edit block code every time i make a new album) :(
--
PS: in your opinion is ok the code with highslide?
If you want to exclude cats you can use this
$excludecats = '35,12,30';
$items = getMediaItems(0, 5, 'RAND()', true, array(), 'm.album_id NOT IN (' . $excludecats . ')');

Or only one cat
$includecats = '35';
$items = getMediaItems(0, 5, 'RAND()', true, array(), 'm.album_id IN (' . $includecats . ')');

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: littenburg on May 29, 2009, 12:20:49 PM
OK, i love this mod, it is a great idea, except for the fact that one day it works, by not working, i mean it always comes up with errors when uploading pictures, then the next it doesnt, i have reinstalled it several times, each time, having to delete the tables from the database, and redoing all the settings. I have done it probably 6 times now, because it can't seem to stay working. im completely uninstalling it again. maybe i will bring it back for the 7th time...but thankyou for a great mod idea:)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on May 29, 2009, 12:47:45 PM
Quote from: Özgür´ on May 29, 2009, 11:54:30 AM
If you want to exclude cats you can use this
$excludecats = '35,12,30';
$items = getMediaItems(0, 5, 'RAND()', true, array(), 'm.album_id NOT IN (' . $excludecats . ')');

Or only one cat
$includecats = '35';
$items = getMediaItems(0, 5, 'RAND()', true, array(), 'm.album_id IN (' . $includecats . ')');

Thank'u very very much :)
but i think is no plus necessary an empty true array()
like this is ok? :)
$items = getMediaItems(0, 3, 'RAND()', 'm.album_id NOT IN (5)');
No, i've test now and not work.
Work fine with this :)
$items = getMediaItems(0, 3, 'RAND()', true, array(), 'm.album_id NOT IN (1,2,7)');
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: zorro18 on May 29, 2009, 04:38:38 PM
Hi,

I have installed SMG 1.5.6 on SMF 2.0 RC 1-1. Everything went on well. But when I try to upload a pic into the gallery, i can see this following parse error message.
Quote
Parse error: syntax error, unexpected T_ELSE in /home7/andhraco/public_html/forum/Sources/Subs-Graphics.php on line 227

I have attached the subs_graphics.php. If you can please look into this, it will be sincerely appreciated.

Thanks in advance.

P.S: my site url is www.andhraconnect.com

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on May 29, 2009, 05:40:05 PM
Hi!
I've found a problem with Album Id=1.
I can't put or move in it any file :(
All others album works fine except 1.
I've test to run maintenance and all seems to be ok :|
It seems to be in read only but i've test also to put 777 permission to mgal_data folder.
Any idea to fix?
-
Edit: i've delete album id1 (moved only 7images to temp album) and i've recreated it.
After of this i've moved without error all precedent images ;)
Now is ok but i don't have understood the problem :|
-
PS: i've put now more images (about 140 with Mass Upload) in this new album but more files have a really strange date (more of this plus old of my site)
eg: 16 May 2006, 11:21:31 http://darkwolf.altervista.org/forum/mgallery/?sa=item;id=965;sort=2
And many other value: http://darkwolf.altervista.org/forum/mgallery/?sa=album;id=12;start=135
(Last seven with more views is the old images, all others as been upload tonight) :(
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 30, 2009, 08:06:50 AM
Your problem with the dates are probably that you set the gallery to give the files date by file information, and not by upload date.
Check your admin settings.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 30, 2009, 08:33:05 AM
Yes, by default SMG will use the exif date when uploading. This was my decision -- I think it's more logical to see the date when a picture was shot, rather than the date it was added, especially since the default sort order is by ID -- ie the latest picture uploaded can have an older date, it'll still show up in first position.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on May 30, 2009, 10:28:49 AM
Ok thanks :)
But for me is strange this value.
if i upload an image now, IMHO, is best to result Posted by DarkWolf - Today and not Posted by DarkWolf - May 16, 2006 (my forum not exist in 2006) :|
I've test to disable exif but i see ever old date.
I can't find other setting to see right date value (upload date).
-
@Nao: for problem with "read only" album have any notice?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 30, 2009, 10:51:54 AM
http://www.yoursite.com/index.php?action=admin;area=mgallery;sa=settings
... 5th option.

Showing or hiding the Exif options, has nothing to do with your problem.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 30, 2009, 11:10:42 AM
Quote from: Dark-Wolf on May 30, 2009, 10:28:49 AM
@Nao: for problem with "read only" album have any notice?
?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on May 30, 2009, 12:33:53 PM
Quote from: Nao 尚 on May 29, 2009, 02:45:19 AM
@Pradius> I couldn't know what your problem is without looking at your code...

Ok, here is mgallery.template and index.template.
If you need me to put up any of my source files for you to see then let me know.
I am pretty sure the root of the problem is in here somewhere thou.
Thanks for taking a look.

;D

Quote from: Nao 尚 on May 29, 2009, 09:36:00 AM
@Pradius> I had another look at your board -- it's still showing the copyright footers in black over a black background. When are you planning to make them visible?

I don't know. That Kindred guy was raising a stink about them too. I then pointed out to him that nowhere in the terms does it say copyright links have to be visible. It only says that they must remain intact and unaltered. Nither of which I have violated. Then he said well it is "implied" that they should be visible but he was going to talk to admins of SMF about it and find out. So, I have not heard back from SMF yet. But if they show me where in the terms it says "visible" or "readable", then I will gladly change them.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on May 30, 2009, 01:55:00 PM
You should be glad to change them to give credit where credit is due -- not glad to change them because it is mandatory...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on May 30, 2009, 01:58:42 PM
Quote from: Akyhne on May 30, 2009, 10:51:54 AM
http://www.yoursite.com/index.php?action=admin;area=mgallery;sa=settings
... 5th option.

Showing or hiding the Exif options, has nothing to do with your problem.
Thanks :)
I've disabled it but old (already upload) images still maintain exif date :|
Quote from: Nao 尚 on May 30, 2009, 11:10:42 AM
Quote from: Dark-Wolf on May 30, 2009, 10:28:49 AM
@Nao: for problem with "read only" album have any notice?
?
Sorry, this: http://www.simplemachines.org/community/index.php?topic=260821.msg2084599#msg2084599
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 30, 2009, 02:08:04 PM
Yer, your currently uploaded files won't change. They are still uploaded using the old setting.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on May 30, 2009, 03:59:33 PM
I don't mind giving credit at all.. So long as it doesn't compromise the look of my forum. I would gladly add a copyright links page where I could list everyones links in one place out of the way... but these links appear everywhere and so the way that they look affects my entire forum. Because they are everywhere, at the bottom of every page. I guess the best way to explain how I feel would be... If my forum were a human face, then these links would be pimples and everytime I look in the mirror I just want to smear makeup all over them. Haha. SMF Hacks offers paid removal of their copyright links. I would gladly pay money to rid myself of these. Although, I just looked a second ago and white is the color I am using for my linktree... I suppose I could make those links at the bottom white instead of navy blue and it wouldn't look terribly bad... I guess. Since you have been helpful and friendly to me about the whole matter. Thing is, how do I change the color of just those links at the bottom without changing the color of all my links? There is a place in the stylesheet to change the color of the linktree. I don't see where to change the color of copyright links in the stylesheet. If I attached my files, could you make them white and attach them back up for me to download? What files would I need to attach?

Quote from: Nao 尚 on May 30, 2009, 01:55:00 PM
You should be glad to change them to give credit where credit is due -- not glad to change them because it is mandatory...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: cartpauj on May 30, 2009, 08:24:22 PM
How can I change the text guests see when I've prevented their access to the gallery?  It currently says something like..."Sorry, but you are not allowed to access the gallery."
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on May 30, 2009, 08:34:42 PM
Mgallery.english.php... why do you want to change it?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: cartpauj on May 30, 2009, 08:38:59 PM
Thanks! I just want it to say something more along the lines of "Sorry but you must log in before accessing the gallery."
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: DirtRider on June 01, 2009, 04:57:26 AM
I did try searching for this in the thread but the SMF search came up with nothing.

SMF 1.1.9 new installation

Mods

Mod Name     Version     
1.    SMF Media Gallery    1.5.6    
2.    TinyPortal    1.083    
3.    Aeva ~ Auto-Embed Video & Audio    6.9.99    

When I have the SMF Gallery installed and you need to go to your profile it gives the following error


Fatal error: Cannot redeclare mgallery() (previously declared in /home/forum/public_html/Sanctuary/Sources/Profile.php:3010) in /home/forum/public_html/Sanctuary/Sources/Profile.php on line 3034


I uninstalled the package and it was back to normal. However when I installed it again I also noticed that on the uninstall it did not remove the gallery from the menu and has now added a second gallery option to the menus. The error once again occurred on the new install



Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on June 01, 2009, 06:56:18 AM
Cannot redeclare mgallery() means that it has been declared already, hence was put into the code twice, which means double install.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: DirtRider on June 01, 2009, 09:19:21 AM
Quote from: Akyhne on June 01, 2009, 06:56:18 AM
Cannot redeclare mgallery() means that it has been declared already, hence was put into the code twice, which means double install.

I cannot remember installing it twice when this error occurred. However I deleted the whole thing and started over and now it worked thanks  ;D
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: richyp on June 01, 2009, 12:15:59 PM
Quote from: Nao 尚 on May 27, 2009, 12:11:49 PM
Dragooon is offline for the week.
I suppose you made sure this is not a problem with the php.ini max file/upload size variables either?

Hi,
I have the max filesize set at 2048kb, people on the forum are reporting issues with much smaller sizes, I have replicated the issue with images just 200kb or less.

???
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Lonewood on June 01, 2009, 11:31:43 PM
I have one members on my forum reporting that they cannot upload photos to either their user album or any of the general albums.  This issue was reported publicly and no other member has mentioned having similar problems - I have checked and I can upload properly and a number of other members are uploading new photos so it appears to be a very isolated problem.  Just cannot work out where the problem is.

When this member tries to upload a photo, she gets this error message:

Forbidden
You don't have permission to access /forum/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/1.3.41 Server at aussiesapphire.com.au Port 80


She can create a new user album ok - cant upload anything to it.  Only 49 images in her album so not near the file limit - tried a range of images but all well under the size limits.  She can comment normally.

I am not seeing anything in the error log but a newbie so could easily be missing something.
I am running SMF 1.1.9 and using the default theme. 
My url is www.aussiesapphire.com.au/forum
Not many mods installed - Media Gallery 1.5.6, Tiny Portal 1.0.75, SMF Links, Tagging, "Are You Human" - nothing too fancy.

This one has me stumped!!   I love this mod and all my members love it - there is almost as much activity on the gallery as the whole forum because it offers lots of interactivity to my members.  BUT, this particular member is one of my most active and so I'd really love to be able to fix up this problem for her.

Can anyone point me in the right direction please?

cheers Leah
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Lonewood on June 02, 2009, 02:43:27 AM
Further to my message just above...

I think this problem might be solved by a very simple answer.  I think my member might have been using exclamation marks in the file name of the images she was trying to upload.  Didnt think to check this with her.  Will advise further if turns out not to be the answer but I'm pretty sure problem is solved.

cheers
Leah
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 02, 2009, 03:28:44 AM
Exclamation marks? Strange...

Can you ask her if she's using a third-party firewall software? Such as ZoneAlarm?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Sudhakar Arjunan on June 02, 2009, 04:27:21 AM
On Topics , i could see the thumb. Which is off very small in size.

How could i increase the size  both height and width.

( Increase the size of thumb on topics )
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 02, 2009, 04:43:00 AM
Uh... Increase the size of thumbs in general ;)
Or use previews instead of thumbs (type=preview). You can even use them by default. Oh wait, maybe that's just in SMG2...

Oh my, SMG2 is so much ahead of SMG1 in every way... :-/ When will we get to release it?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on June 02, 2009, 04:54:55 AM
Quote from: Nao 尚 on June 02, 2009, 04:43:00 AM
Oh my, SMG2 is so much ahead of SMG1 in every way... :-/ When will we get to release it?
Not until you come on MSN.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Sudhakar Arjunan on June 02, 2009, 05:16:41 AM
Quote from: Nao 尚 on June 02, 2009, 04:43:00 AM
Uh... Increase the size of thumbs in general ;)
Or use previews instead of thumbs (type=preview). You can even use them by default. Oh wait, maybe that's just in SMG2...

Oh my, SMG2 is so much ahead of SMG1 in every way... :-/ When will we get to release it?

on smf settings page,

changed Max thumb width = 1020 and Max thumb height = 1020.

But  no change on topics
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: LadyC on June 02, 2009, 12:45:28 PM
one of my admins posted her personal albums in the general category instead of as a user album. i've tried everything i can think of, but can't figure out how to move it from general to users. is it possible?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 02, 2009, 02:48:37 PM
@Dragooon> Over my dead body! :P
@ASK> Use the Regenerate Thumbnails feature in admin...
@LadyC> Yes it is. Unless it's only in SMG2... I'm not sure.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on June 02, 2009, 05:52:12 PM
Hi!
I've maked a "test" gallery with password but i've see than i can't see image icon if first i don't use password to access in this album.
Is there any way to force icon and maintain password?
And/Or is there any way to don't show a specific album in recent images list?
-
Maybe with a mod in this line (MGallery-Sub.php)?
-
// Load recent items
$context['mgallery_member']['recent_items'] = getMediaItems(0, $mgalSettings['recent_item_limit'], 'm.time_added DESC', true, array(), 'm.ID_MEMBER = '. $memID);

-
Thanks in advance, DarkWolf :)
-
PS: i've also put two small mod to make album icon click-able ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Thenewguy2009 on June 02, 2009, 08:27:40 PM
When I installed this mod, I get this stuff on the top of my forum.  I have done manual edits and everything.  Does anyone know what may cause this?

// SMF Media Gallery extra strings $txt['mgallery_gallery'] = 'Gallery'; $txt['mgallery_profile_sum'] = 'Summary'; $txt['mgallery_view_items'] = 'View items'; $txt['mgallery_view_coms'] = 'View comments'; $txt['mgallery_gotolink'] = 'More details...'; $txt['permissiongroup_mgallery'] = 'SMF Media Gallery'; $txt['permissiongroup_simple_mgallery'] = 'SMF Media Gallery'; $txt['permissionname_mgallery_access'] = 'Access Gallery'; $txt['permissionname_mgallery_moderate'] = 'Moderate Gallery'; $txt['permissionname_mgallery_manage'] = 'Administrate Gallery'; $txt['permissionname_mgallery_access_unseen'] = 'Access unseen area'; $txt['permissionname_mgallery_search'] = 'Search in Gallery'; $txt['permissionname_mgallery_download_item'] = 'Download items'; $txt['permissionname_mgallery_add_user_album'] = 'Add User Albums'; $txt['permissionname_mgallery_auto_approve_albums'] = 'Auto-approve User Albums'; $txt['permissionname_mgallery_add_videos'] = 'Add videos'; $txt['permissionname_mgallery_add_audios'] = 'Add audio files'; $txt['permissionname_mgallery_add_images'] = 'Add pictures'; $txt['permissionname_mgallery_rate_items'] = 'Rate items'; $txt['permissionname_mgallery_edit_own_com'] = 'Edit own comments'; $txt['permissionname_mgallery_report_com'] = 'Report comment'; $txt['permissionname_mgallery_edit_own_item'] = 'Edit own items'; $txt['permissionname_mgallery_comment'] = 'Comment in items'; $txt['permissionname_mgallery_report_item'] = 'Report items'; $txt['permissionname_mgallery_auto_approve_com'] = 'Auto-approve comments'; $txt['permissionname_mgallery_auto_approve_item'] = 'Auto-approve items'; $txt['permissionname_mgallery_multi_upload'] = 'Mass Upload'; $txt['permissionname_mgallery_viewprofile'] = 'View anyone\'s Gallery profile'; $txt['permissionname_mgallery_whoratedwhat'] = 'View who rated what'; $txt['cannot_mgallery_viewprofile'] = 'You cannot view Gallery profiles'; // End SMF Media Gallery strings
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on June 02, 2009, 08:30:28 PM
@ Nao

I need to know how to change the color of those copyright links without effecting the color of the other forum links. White will go good with my blue background and your links will be more readable. I would still like to keep the other links of my forum Navy Blue however, so I need to know how to/where to change the color of those copyright links without effecting the other forum links. Also, I am still getting that albumid error. I will attach it again if you would like to see it from my view. I have searched the net high and low for answers, tried a few things and I just can't seem to get rid of it. Thanks.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on June 02, 2009, 08:31:41 PM
Thenewguy2009: Search error in your Modifications.english.php
Maybe you have forgot to close with
?> ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on June 02, 2009, 08:36:23 PM
@Pradius:
I don't know if you can (legal notice) but i think is here:
Open Subs-MGallery.php
Search:

function mgallery_copyright()
{
global $mgalSettings;
// IT IS ILLEGAL TO MODIFY/REMOVE THIS FUNCTION OR NOT INCLUDE THIS ON THE PAGE WITHOUT WRITTEN PERMISSION FROM THE AUTHOR
// DO NOT MODIFY/REMOVE THIS FUNCTION UNLESS YOU GOT WRITTEN PERMISSION FROM THE AUTHOR OR YOU BOUND TO A LEGAL OFFENSE
echo 'SMF Media Gallery ',$mgalSettings['version'],' &copy; <a href="http://smf-media.com" target="_blank">SMF-Media.com</a>';
}
and change this:
echo 'SMF Media Gallery ',$mgalSettings['version'],' &copy; <a href="http://smf-media.com" target="_blank">SMF-Media.com</a>';to something like this (for entire copy):
echo '<span style="color: red;">SMF Media Gallery ',$mgalSettings['version'],' &copy; <a href="http://smf-media.com" target="_blank">SMF-Media.com</a></span>';
or (if you want change only link): echo 'SMF Media Gallery ',$mgalSettings['version'],' &copy; <a href="http://smf-media.com" target="_blank" style="color: red">SMF-Media.com</a>';
PS: not tested and, i repeat, see legal notice before apply.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on June 02, 2009, 09:04:02 PM
i tried changing the color thru style in the html but i guess the info in stylesheet is overriding it somehow because links are remaining the same color.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on June 02, 2009, 09:17:10 PM
Quote from: PRaDiUS on June 02, 2009, 09:04:02 PM
i tried changing the color thru style in the html but i guess the info in stylesheet is overriding it somehow because links are remaining the same color.
test a ctrl+f5 or send me a link to test :)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Thenewguy2009 on June 02, 2009, 09:29:38 PM
Dark-Wolf

He he...you were right! Thank you so much!
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Thenewguy2009 on June 02, 2009, 09:43:17 PM
ONe more question....if you have smf shop is there a way to give points to people that upload a photo or comment a photo like on smf gallery lite?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on June 02, 2009, 09:49:48 PM
Quote from: Thenewguy2009 on June 02, 2009, 09:29:38 PMHe he...you were right! Thank you so much!
:)
Quote from: Thenewguy2009 on June 02, 2009, 09:43:17 PMONe more question....
Sorry, i don't know smf shop :|
---
Edit: to delete an album from recent (and random) i've edit this (Sources/MGallery.php):
// Load up some side stuff, only when required
$context['recent_items'] = array();
$context['recent_comments'] = array();
$context['random_items'] = array();
$context['random_comments'] = array();

if (!empty($mgalSettings['recent_item_limit']) && $mgalSettings['recent_item_limit'] > 0)
$context['recent_items'] = getMediaItems(0, $mgalSettings['recent_item_limit'], 'm.id_media DESC');
if (!empty($mgalSettings['random_item_limit']) && $mgalSettings['random_item_limit'] > 0)
$context['random_items'] = getMediaItems(0, $mgalSettings['random_item_limit'], 'RAND()');
if (!empty($mgalSettings['recent_comments_limit']) && $mgalSettings['recent_comments_limit'] > 0)
$context['recent_comments'] = getMediaComments(0, $mgalSettings['recent_comments_limit']);
if (!empty($mgalSettings['random_comments_limit']) && $mgalSettings['random_comments_limit'] > 0)
$context['random_comments'] = getMediaComments(0, $mgalSettings['random_comments_limit'], true);
to this: // Load up some side stuff, only when required
$context['recent_items'] = array();
$context['recent_comments'] = array();
$context['random_items'] = array();
$context['random_comments'] = array();

if (!empty($mgalSettings['recent_item_limit']) && $mgalSettings['recent_item_limit'] > 0)
$context['recent_items'] = getMediaItems(0, $mgalSettings['recent_item_limit'], 'm.id_media DESC', true, array(), 'm.album_id NOT IN (13)');
if (!empty($mgalSettings['random_item_limit']) && $mgalSettings['random_item_limit'] > 0)
$context['random_items'] = getMediaItems(0, $mgalSettings['random_item_limit'], 'RAND()', true, array(), 'm.album_id NOT IN (13)');
if (!empty($mgalSettings['recent_comments_limit']) && $mgalSettings['recent_comments_limit'] > 0)
$context['recent_comments'] = getMediaComments(0, $mgalSettings['recent_comments_limit'], true, array(), 'm.album_id NOT IN (13)');
if (!empty($mgalSettings['random_comments_limit']) && $mgalSettings['random_comments_limit'] > 0)
$context['random_comments'] = getMediaComments(0, $mgalSettings['random_comments_limit'], true, array(), 'm.album_id NOT IN (13)');
It seems to work fine but i'm not sure if is a good way this :(
(i've simply add: "', true, array(), 'm.album_id NOT IN (13)');" to all without know)
-
Especially i can't understood difference from
      $context['recent_comments'] = getMediaComments(0, $mgalSettings['recent_comments_limit']);and      $context['random_comments'] = getMediaComments(0, $mgalSettings['random_comments_limit'], true);(final , true)
Please confirm me if is ok or not :)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 03, 2009, 01:36:34 AM
@pradius> add this to your style.css file:

#footerarea a { color: white !important; }

@thenewguy> Points? What?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: TheDisturbedOne on June 03, 2009, 01:49:19 AM
Quote from: Thenewguy2009 on June 02, 2009, 09:43:17 PM
ONe more question....if you have smf shop is there a way to give points to people that upload a photo or comment a photo like on smf gallery lite?
Nope, that would be up to vbgamer45, since it is an addition to SMFshop not SMG
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Jakki on June 03, 2009, 04:46:39 PM
I'm having an issue with the albums.  I started a new web site

www.roundablock.com/rc1-1 (http://www.roundablock.com/rc1-1)
the only mods I have installed are
Simpleportal 2.2
Hacksshout box
And the gallery mod

I installed without errors made my folders (albums) but when I try to upload a picture I get this error.

Parse error: syntax error, unexpected T_ELSE in /home/*******/public_html/rc1-1/Sources/Subs-Graphics.php on line 227

Any idea?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on June 03, 2009, 05:58:33 PM
Quote from: Nao 尚 on June 03, 2009, 01:36:34 AM
@pradius> add this to your style.css file:

#footerarea a { color: white !important; }

@Nao

Awesome! That worked like a charm.  Still have memberid error in mgallery.template.php
You can refer to my previous post(s) on the error or I can re-post the error and attach files.
How do I fix this?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on June 03, 2009, 11:19:21 PM
In reference to: http://www.simplemachines.org/community/index.php?topic=260821.msg2091024#msg2091024
It continue to work fine but this album and it's elements is still present in: search; sa=mgallery and sa=mgalitems :(
Is there any way to hidden from all an specific album (simply to protect users) but maintain accessible?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: rgecy on June 04, 2009, 12:07:32 AM
Quote from: rgecy on May 29, 2009, 10:15:19 AM
I wanted to know if there is a way to show the number of new images posted since your last visit on the Gallery tab like SMF does for your Messages.   

For example:  Gallery(11)

Thanks,

RGecy

Never got an answer on this question and just wanted to follow up.  It would be a great feature to be able to see if there are new images without having to go into the Gallery.

Thanks,

RGecy
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 04, 2009, 08:17:27 AM
Quote from: rgecy on June 04, 2009, 12:07:32 AM
Never got an answer on this question and just wanted to follow up.  It would be a great feature to be able to see if there are new images without having to go into the Gallery.
It would be technically possible but I'm not eager to do that.
Just post a link to the Unseen Area. At least you're one click away to the latest uploads ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: littleone on June 04, 2009, 10:06:02 AM
Quote from: TheDisturbedOne on June 03, 2009, 01:49:19 AM
Quote from: Thenewguy2009 on June 02, 2009, 09:43:17 PM
ONe more question....if you have smf shop is there a way to give points to people that upload a photo or comment a photo like on smf gallery lite?
Nope, that would be up to vbgamer45, since it is an addition to SMFshop not SMG

Actually thats not true.  It would have to the SMG that codes this feature in.  SMF Shop wouldn't need to be touched to make this happen.  SMF Gallery has it as a feature that if the shop is installed, then tokens or points (whatever they are called on an individuals forum) are awarded for uploads and comments....and they was a feature that came in SMF Gallery and required nothing on the part of the Shop and was done before VBgamer took over the Shop mod.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 04, 2009, 12:31:54 PM
So what? We should add support for his mod?

But what's the point?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atheo on June 04, 2009, 01:25:39 PM
I've searched this thread and get only one result, the first reply on this page. How do you delete albums? Thanks.

**EDIT
Nevermind I found it.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: [email protected] on June 04, 2009, 07:28:56 PM
Hi Everybody,

I have some problems with the MediaGallery. Actually you might figure out really quick, that it is actually a problem with the databank, but it only occurs in context with the gallery.
Ok, I have the following situation:

I do owe some webspace and an url, I am allowd to have 2 mysql databanks and I'm running a forum with the Media Gallery. It works just fine. (I just switched recently from SMF Gallery to the SMF Media Gallery).

Now I installed a second forum in a subfolder. I opened the second databank, set everything up and everything works. Next I install the media gallery without any trouble. I open up a new album, pick a picture to upload and when I click upload, I get an empty page. The picture is on the server ( my ftp client displays it all right) but not in the album. The same if I pick the multiple file upload. I can pick the files, click upload and after the first image, the scripts gets stucked somehow. the first picture is again on the server, but no in the gallery. If I remove this image, and click upload again, the next one is uploaded, but again it gets stucked.

It seems like there is some problem with puting them into the database, but everything else works... There are entries in the database, even the album is display properly. And with the exact same settings the other forum works fine. I have reinstalled the forum and mod about 20 times, tried my old version and updated it to 1.1.9, but nothing will work.
If I install the SMF Gallery, I do have the same problems. Any ideas? Are there principle problems with to galleries at the same hoster?

Thanks for any help in advance

Jocheh
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: MUSTAfaINE on June 05, 2009, 04:28:42 AM
This album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums is chmodded to 777

i ve this error but my chmods are already 777, i couldnt understand the problem & i need this mod
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 05, 2009, 04:39:59 AM
Try 0755 instead.
Also make sure PHP safe mode isn't enabled.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: MUSTAfaINE on June 05, 2009, 10:20:15 AM
what is the php safe mode how can i check it
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: MrMorph on June 05, 2009, 12:07:54 PM
Great mod this, really impressed by it :)

One thing - when I try and upload an MP3 I get :

An error happened during the upload process, please try again or contact the administrator.

The file is smaller than Max file size...

Using SMF 1.1.9 and default theme.

Cheers

Eidt: should note that I am using Abyss Webserver on a local machine - maybe I am missing some package to process MP3's ?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: cme1st2302 on June 05, 2009, 12:11:37 PM
I have a few questions:

1) Can I create the users albums as the admin?
2) Does anyone know how to convert from Gallery2 to SMF Media Gallery?
3) How Do I make sub-albums?

Thanks in advance,
Chris
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 05, 2009, 01:04:47 PM
@musta> Google is your friend.

@MrMorph> What are you php.ini settings for max upload size?

@cme> (1) I don't think so. (2) Convert Gallery2 to something else (I think there's a G2->Coppermine converter around), and convert the resulting database to SMG. (3) Create an album and select the album you want to make it a child of...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: cme1st2302 on June 05, 2009, 01:12:04 PM
Thanks for the help Nao 尚!!!  I will give it a shot tonight.

Chris
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: MrMorph on June 05, 2009, 01:47:50 PM
@MrMorph> What are you php.ini settings for max upload size?

Ahhh!

It was 2M, so I increased it and now it works.

Many thanks, that was very clever and well worked out  :)

By the way, http://smf-media.com/ appears to be down...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atheo on June 06, 2009, 12:46:08 AM
Where is, or where should, php.ini be located?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 06, 2009, 05:17:18 AM
DTC.

And Google is your friend.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: ArkServer on June 06, 2009, 08:03:58 AM
I was wondering if anyone can edit my theme to work with the mod? I can't seem to fix it for my theme. the link is: http://www.engineeringserver.com/forum/ i can zip the theme if you want to help me to edit the theme :D
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on June 06, 2009, 09:35:18 AM
@Nao & Dragooon

Can't get this error to go away. Got to be a way to fix this.

Here is the error I am getting...

Quote
PRaDiUS       Today at 07:45:03 PM
IP address 98.166.155.6      3c29a14400dd0879c6628fb9cd556989
URL http://rgxbox.com/index.php?action=mgallery;sa=vua
8: Undefined index: id_member
File: /hermes/bosweb/web125/b1258/sl.rgxbox/public_html/Themes/default/MGallery.template.php
Line: 829

Error is somewhere in here...

Quote
Line 826 $current_owner = 0;
Line 827   foreach ($context['mgallery_user_albums'] as $album)
Line 828   {
Line 829      if ($album['id_member'] != $current_owner)
Line 830    {
Line 831         $current_owner = $album['id_member'];

Mgallery.template and index.template attached.

Thank you.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: kingkingston on June 06, 2009, 01:28:34 PM
Quote from: ArkServer on June 06, 2009, 08:03:58 AM
I was wondering if anyone can edit my theme to work with the mod? I can't seem to fix it for my theme. the link is: http://www.engineeringserver.com/forum/ i can zip the theme if you want to help me to edit the theme :D
if im not mistaken,shouldn't you just need to use the package manager and it works straight away,no edits required,that's what's great about this mod.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: ArkServer on June 06, 2009, 02:35:41 PM
Quote from: kingkingston on June 06, 2009, 01:28:34 PM
Quote from: ArkServer on June 06, 2009, 08:03:58 AM
I was wondering if anyone can edit my theme to work with the mod? I can't seem to fix it for my theme. the link is: http://www.engineeringserver.com/forum/ i can zip the theme if you want to help me to edit the theme :D
if im not mistaken,shouldn't you just need to use the package manager and it works straight away,no edits required,that's what's great about this mod.

yes it works fine on the default theme but not in the custom one. ;(
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: ethankcvds on June 06, 2009, 02:40:37 PM
Quote from: ArkServer on June 06, 2009, 08:03:58 AM
I was wondering if anyone can edit my theme to work with the mod? I can't seem to fix it for my theme. the link is: http://www.engineeringserver.com/forum/ i can zip the theme if you want to help me to edit the theme :D

By the looks of things you need to upgrade SMF.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 06, 2009, 06:45:22 PM
Quote from: ArkServer on June 06, 2009, 02:35:41 PM
Quote from: kingkingston on June 06, 2009, 01:28:34 PM
Quote from: ArkServer on June 06, 2009, 08:03:58 AM
I was wondering if anyone can edit my theme to work with the mod? I can't seem to fix it for my theme. the link is: http://www.engineeringserver.com/forum/ i can zip the theme if you want to help me to edit the theme :D
if im not mistaken,shouldn't you just need to use the package manager and it works straight away,no edits required,that's what's great about this mod.

yes it works fine on the default theme but not in the custom one. ;(
If using SMF2, there's a checkbox to enable installation in another mod.
If using SMF1, you just need to add a single line of code to your index template so that it'll show the SMG link. Big deal. O:)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on June 06, 2009, 06:49:30 PM
Quote from: Nao 尚 on June 06, 2009, 06:45:22 PM
If using SMF2, there's a checkbox to enable installation in another mod.

You mean in another theme ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: ArkServer on June 07, 2009, 05:42:12 AM
Quote from: Nao 尚 on June 06, 2009, 06:45:22 PM
Quote from: ArkServer on June 06, 2009, 02:35:41 PM
Quote from: kingkingston on June 06, 2009, 01:28:34 PM
Quote from: ArkServer on June 06, 2009, 08:03:58 AM
I was wondering if anyone can edit my theme to work with the mod? I can't seem to fix it for my theme. the link is: http://www.engineeringserver.com/forum/ i can zip the theme if you want to help me to edit the theme :D
if im not mistaken,shouldn't you just need to use the package manager and it works straight away,no edits required,that's what's great about this mod.

yes it works fine on the default theme but not in the custom one. ;(
If using SMF2, there's a checkbox to enable installation in another mod.
If using SMF1, you just need to add a single line of code to your index template so that it'll show the SMG link. Big deal. O:)

is that the only edit? i thought i also saw some profile template edits etc.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 07, 2009, 07:09:50 AM
Quote from: PRaDiUS on June 06, 2009, 09:35:18 AM
@Nao & Dragooon

Can't get this error to go away. Got to be a way to fix this.

Here is the error I am getting...

Quote
PRaDiUS       Today at 07:45:03 PM
IP address 98.166.155.6      3c29a14400dd0879c6628fb9cd556989
URL http://rgxbox.com/index.php?action=mgallery;sa=vua
8: Undefined index: id_member
File: /hermes/bosweb/web125/b1258/sl.rgxbox/public_html/Themes/default/MGallery.template.php
Line: 829

Error is somewhere in here...

Quote
Line 826 $current_owner = 0;
Line 827   foreach ($context['mgallery_user_albums'] as $album)
Line 828   {
Line 829      if ($album['id_member'] != $current_owner)
Line 830    {
Line 831         $current_owner = $album['id_member'];

Mgallery.template and index.template attached.

Thank you.

      if (!empty($album['id_member']) && $album['id_member'] != $current_owner)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: ArkServer on June 07, 2009, 07:28:09 AM
Well nvm my previous posts, i've added the gallery link in the index. I have another 'problem' though. I noticed is that the right stats (top album) width is too long.
http://www.engineeringserver.com/forum/profiles/happyface-u1.html;sa,mgallery
Is there a way to move it below the image? Thanks!

I also have another question, how can i show the recent images that are uploaded in the index of my site?

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: [email protected] on June 07, 2009, 12:18:11 PM
Quote from: [email protected] on June 04, 2009, 07:28:56 PM
Hi Everybody,

I have some problems with the MediaGallery. Actually you might figure out really quick, that it is actually a problem with the databank, but it only occurs in context with the gallery.
Ok, I have the following situation:

I do owe some webspace and an url, I am allowd to have 2 mysql databanks and I'm running a forum with the Media Gallery. It works just fine. (I just switched recently from SMF Gallery to the SMF Media Gallery).

Now I installed a second forum in a subfolder. I opened the second databank, set everything up and everything works. Next I install the media gallery without any trouble. I open up a new album, pick a picture to upload and when I click upload, I get an empty page. The picture is on the server ( my ftp client displays it all right) but not in the album. The same if I pick the multiple file upload. I can pick the files, click upload and after the first image, the scripts gets stucked somehow. the first picture is again on the server, but no in the gallery. If I remove this image, and click upload again, the next one is uploaded, but again it gets stucked.

It seems like there is some problem with puting them into the database, but everything else works... There are entries in the database, even the album is display properly. And with the exact same settings the other forum works fine. I have reinstalled the forum and mod about 20 times, tried my old version and updated it to 1.1.9, but nothing will work.
If I install the SMF Gallery, I do have the same problems. Any ideas? Are there principle problems with to galleries at the same hoster?

Thanks for any help in advance

Jocheh

Hi,

nobody replied so far. Probably I can get more help if I give more input.

I already figured out, that it works if the files I upload are smaller than 612 kb. But my image limit is way above. There is also no error message, the page just stays blank... So this makes an problem with the databank more unlikely.

Does this gives any of you a clou???

If the url and an account would help, please let me know.


Please help me

Jochen


EDIT: it does not just depend on the size. some files just work, some wont. I cannot be the filename, because if I resize it to 20% it works, to 30% it wont. but still it won't exceed any max values...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 07, 2009, 01:14:38 PM
What are your php.ini upload values?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: [email protected] on June 07, 2009, 01:24:30 PM
where do I find them? or where do I find the php.ini???
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: [email protected] on June 07, 2009, 01:26:04 PM
and by the way, the files on the server are called like
8_Brust_jpgea7f759145b240541155aa033f383215_extjpg

if this gives any further information...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Harvester on June 07, 2009, 02:27:09 PM
I have a trusted and valued member who gets an error when he tries to post a BBC embed code in his posts... the message he gets says "hacking attempt"


when I try to post the same image in the same thread I get this:

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 Recent Fishing Trip...Part 3', 1, 255), SUBSTRING('[smg id=809]', 1, 65534), S' at line 4
File: /home/.sites/28/site1/web/bassin-forums/Sources/Subs-Post.php
Line: 1536

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.9, while your database is at version 1.1.1. The above error might possibly go away if you execute the latest version of upgrade.php.

It only happens on this one SPECIFIC thread. I can make a new thread and post the image with the bbc embed code with no problem. I can also post it to other boards no problems...

whats the deal?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atheo on June 07, 2009, 03:01:39 PM
Quote from: [email protected] on June 07, 2009, 01:24:30 PM
where do I find them? or where do I find the php.ini???

For me I had to create it through phpconfig in cPanel. Change from PHP5 to PHP5 (single php.ini).  It will appear in your root then google how to change maxupload size.

If that doesn't work contact your host they may not allow you to change max upload size or have another way.

**EDIT** I should also say that when you make the change the file created might be called something different, like for me it was called php.ini.default. I just copied it and edited the copy.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: [email protected] on June 07, 2009, 03:53:10 PM
ok, I'll try, but it works on my other forum quite well. It is on the same server, just in another directory (the one in /html, the new one in /html/subdir ...) I checked with both the same data bank (and another sub pre fix or what ever) and in a separate data bank
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 07, 2009, 06:27:48 PM
Quote from: Harvester on June 07, 2009, 02:27:09 PM
It only happens on this one SPECIFIC thread. I can make a new thread and post the image with the bbc embed code with no problem. I can also post it to other boards no problems...

whats the deal?
That's because you have a single quote in your topic's subject. Try to remove it and it'll work.
It's not a SMG bug, it's related to SMF.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Blinker on June 07, 2009, 11:14:55 PM
Yeah Harvester I can confirm what Nao is saying, the same thing happened on my board a while back because the topic had an apostrophe in it's title.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: jaru on June 08, 2009, 10:15:44 AM
somebody can help me.
when I change the max thumb size no changes are made when showing them.
I checked in the DB and the value is getting changed correctly but while displaying the gallery, the thumbs are the same size, no changes on them.
I think some css were changed while modding the site, any ideas how to correct this?




Nevermind, I just needed to regenarate the thumbs, thank you

SOLVED
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: teh_Krall on June 08, 2009, 12:42:25 PM
Quote from: zorro18 on May 29, 2009, 04:38:38 PM
Hi,

I have installed SMG 1.5.6 on SMF 2.0 RC 1-1. Everything went on well. But when I try to upload a pic into the gallery, i can see this following parse error message.
Quote
Parse error: syntax error, unexpected T_ELSE in /home7/andhraco/public_html/forum/Sources/Subs-Graphics.php on line 227
http://www.simplemachines.org/community/index.php?action=verificationcode;vid=post;rand=a9f5ef9c83e4944415aa8367bdd3f628;sound
I have attached the subs_graphics.php. If you can please look into this, it will be sincerely appreciated.

Thanks in advance.

P.S: my site url is www.andhraconnect.com

Did you figure out the problem?

I get the same error when trying to attach a picture larger then 5KB in a forum post. PHP says the site can accept up to 8MB attachments, but they aren't running version 5 of PHP yet.

I'm running the latest SMG version and SMF 2.0 RC1

EDIT: I fixed it with Trekkie101's replacement sub-graphics.php file http://www.simplemachines.org/community/index.php?topic=311987.0 (http://www.simplemachines.org/community/index.php?topic=311987.0)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Harvester on June 08, 2009, 01:45:47 PM
SMF Support desk says it is not an SMF issue but an SMG issue.

QuoteApparently it's a SMG issue,so you should better ask it there again (in mod's support topic)

I did remove the quote and it works fine now, but this issue should be corrected because people should be able to use quotes in the threads subject line and still be able to use SMG BBC Code.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 08, 2009, 03:02:28 PM
Let me guess... You're using an outdated version of SMG plus an outdated version of SMF.
Don't expect us to update them for you...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: lampidona on June 08, 2009, 04:00:34 PM
Hello!! I have a problem with SGM and I don't know why because everything has gone perfect with the installation etc and I have the newest smf version 1.1.9. My problem is that only me (administrator) can see the gallery in the forum. Noone else can. Not even at their profiles. I gave all the rights but nothing happened. I use another theme but I changed to the default theme and it was the same.
It seems that it works only for the admins. What I did wrong?  :(.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: ArkServer on June 08, 2009, 04:24:33 PM
Quote from: lampidona on June 08, 2009, 04:00:34 PM
Hello!! I have a problem with SGM and I don't know why because everything has gone perfect with the installation etc and I have the newest smf version 1.1.9. My problem is that only me (administrator) can see the gallery in the forum. Noone else can. Not even at their profiles. I gave all the rights but nothing happened. I use another theme but I changed to the default theme and it was the same.
It seems that it works only for the admins. What I did wrong?  :(.

besides setting up permissions did you granted all membergroups to access the album?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on June 08, 2009, 06:06:21 PM
Quote from: Nao 尚 on June 07, 2009, 07:09:50 AM
      if (!empty($album['id_member']) && $album['id_member'] != $current_owner)

Holy crap bro you are god! Worked like a charm. Thank ya so very much!
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: lampidona on June 09, 2009, 03:35:58 AM
Quote from: ArkServer on June 08, 2009, 04:24:33 PM
Quote from: lampidona on June 08, 2009, 04:00:34 PM
Hello!! I have a problem with SGM and I don't know why because everything has gone perfect with the installation etc and I have the newest smf version 1.1.9. My problem is that only me (administrator) can see the gallery in the forum. Noone else can. Not even at their profiles. I gave all the rights but nothing happened. I use another theme but I changed to the default theme and it was the same.
It seems that it works only for the admins. What I did wrong?  :(.

besides setting up permissions did you granted all membergroups to access the album?

Ooooopsss!!!  :-[ :-[... How silly someone can be if he is tired?.... I searced everything (even the .php files) except the ...obvious! Of course this was the problem  :P... Thank you very much!  :D :D
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: MUSTAfaINE on June 09, 2009, 03:45:37 AM
can anyone send me the database of albums, i ll add the albums at database, please send me one..
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: TommyJoe on June 09, 2009, 01:22:16 PM
Multiple forums, one gallery database?
Is there a simple way to do this? I already have albums on tow different forums
and would like to duplicate them on each board. Without adding another directory
to take up megs of room for the second.

Suggestions?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Kindred on June 09, 2009, 05:46:28 PM
not easily done....
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: MissyNL on June 10, 2009, 08:46:51 AM
oke... maybe stupid question... but where do i enable FFMPEG ? Because it says FFMPEG was found on this server, its features will be used for video files. If enabled, it will be used to create thumbnails and show extra info.

Also when i click Regenerate video thumbnails  in maintenance tab... it "says" it generates thumbnails for all the uploaded items...
but afther it's done.. i do not see thumbnails for the embedded video's..

what can i do?


Is there also a way where i can disable showing the subalbums on the indexpage in the gallery?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on June 10, 2009, 09:28:48 AM
FFMPEG is automatically used, you don't need to enable it. What sites are the embedded videos from?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: [email protected] on June 10, 2009, 09:40:39 AM
Quote from: [email protected] on June 07, 2009, 12:18:11 PM
Quote from: [email protected] on June 04, 2009, 07:28:56 PM
Hi Everybody,

I have some problems with the MediaGallery. Actually you might figure out really quick, that it is actually a problem with the databank, but it only occurs in context with the gallery.
Ok, I have the following situation:

I do owe some webspace and an url, I am allowd to have 2 mysql databanks and I'm running a forum with the Media Gallery. It works just fine. (I just switched recently from SMF Gallery to the SMF Media Gallery).

Now I installed a second forum in a subfolder. I opened the second databank, set everything up and everything works. Next I install the media gallery without any trouble. I open up a new album, pick a picture to upload and when I click upload, I get an empty page. The picture is on the server ( my ftp client displays it all right) but not in the album. The same if I pick the multiple file upload. I can pick the files, click upload and after the first image, the scripts gets stucked somehow. the first picture is again on the server, but no in the gallery. If I remove this image, and click upload again, the next one is uploaded, but again it gets stucked.

It seems like there is some problem with puting them into the database, but everything else works... There are entries in the database, even the album is display properly. And with the exact same settings the other forum works fine. I have reinstalled the forum and mod about 20 times, tried my old version and updated it to 1.1.9, but nothing will work.
If I install the SMF Gallery, I do have the same problems. Any ideas? Are there principle problems with to galleries at the same hoster?

Thanks for any help in advance

Jocheh

Hi,

nobody replied so far. Probably I can get more help if I give more input.

I already figured out, that it works if the files I upload are smaller than 612 kb. But my image limit is way above. There is also no error message, the page just stays blank... So this makes an problem with the databank more unlikely.

Does this gives any of you a clou???

If the url and an account would help, please let me know.


Please help me

Jochen


EDIT: it does not just depend on the size. some files just work, some wont. I cannot be the filename, because if I resize it to 20% it works, to 30% it wont. but still it won't exceed any max values...

Ok, it works now and it seems like there is a little bug around.

The problem was that I had a subdomain linked to my new forum.

My original forum is at www.myforum.de and the domain is linking to my servers "/".  The new forum had an url like subdomain.myforum.de and this was linking to "/folder_new_forum" . In SMF I set my Forum URL to subdomain.myforum.de and the SMF Folder to /srv/www/htdocs/username/html/folder_new_forum .

The entire forum worked fine, just the upload of files to the Gallery was not working (at some step blank screen, the file was on the server with a different name but with full size).
I can't say why, I didn't checked the php-source, but the gallery works only without this subdomain thing. You can only use subfolders -> set Forum URL to www.myforum.de/folder_new_forum .

Probably you guys can figure out what is going on there and fix the bug. I just set the url to www.myforum.de/folder_new_forum and thats fine.

Thanks for the reading and help so far

Jochen

PS: If you need any further information about the problem, please let me know, I will provide it as accurate as I can.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: MissyNL on June 10, 2009, 10:33:10 AM
Quote from: Dragooon on June 10, 2009, 09:28:48 AM
FFMPEG is automatically used, you don't need to enable it. What sites are the embedded videos from?

well.. from photobucket, vidiac, even youtube...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: cthulhumythos on June 11, 2009, 03:41:43 PM
Hey, great mod, thank you! Installed on smf 2.0 rc1. mod_security enabled on server. attempted htaccess workaround but get server error as the later mod security has disabled the htaccess workaround, so that is not really viable anymore as a solution. I went through all files and did a replace on ;id with &id, but then going into the gallery would still not display files, some kind of loop causing endless loading. The same code works locally in wamp so does mod_security also affect some other part of the process?

I searched this thread like mad... Thanks for any thoughts.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: MissyNL on June 11, 2009, 05:58:44 PM
Feature request : :)  I would like to have the option that when a member submits a photo / video that when i see the list in the admin, that i can see in what map the member has uploaded the photo / video. Sometimes i have a list of 50 photo's and now i have to click them one by one to see in what album the photo has been uploaded to ...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: PRaDiUS on June 11, 2009, 07:04:39 PM
Feature Request(s) for SMG 2.0:
---------------------------------------------

*Add an "SMG" button to the forum message editor to better integrate SMG with SMF. Button could input something like [smg][/smg] then just put the gallery items number inbetween. Right now the two just feel kinda like separate entities when they should be working together.

*Add option to make user albums public. I think users would more enjoy their albums if other users could also add to them. This would also cut down on the number of user albums being made about the same subjects, containing the same material. If users see that another user has already made a folder for "Action Movies" or "Halo 3" then they could just add what they would like to share into the album another user has already created rather than making another seperate album about the same thing.

*Add categories to user albums. After a while there are so many user albums that it just kinda sucks to navigate through them all. Admins could create categories and users could choose which category they wanted their album listed in. I think this would improve the navigation of SMG by 110%.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: nopity4u on June 12, 2009, 02:04:12 AM
The Mass Upload function seems to stall and not upload any images. Any idea what this may be because of?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: nopity4u on June 12, 2009, 05:21:50 AM
No one around to comment? This is particularly strange. I have no idea what's going on. I'd PM Dragooon, but as most mod authors, they explicitly ignore PM's for support.

EDIT: Okay, it's working now... Why is it that I have to set my domain name back to my original account URL which is not that of my domain name?

Apparently, if you install SMF before you're able to give it your proper domain name, it's going to go screwy with this gallery. if I set my server settings to
host884.gatorhost.com/~mypage/ all is working.

If I set it to the domain name which points to the site, the gallery ceases to accept mass uploads, but other parts of the gallery work fine.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: MUSTAfaINE on June 12, 2009, 07:31:37 AM
Quote from: TommyJoe on June 09, 2009, 01:22:16 PM
Multiple forums, one gallery database?
Is there a simple way to do this? I already have albums on tow different forums
and would like to duplicate them on each board. Without adding another directory
to take up megs of room for the second.

Suggestions?

yes i think if i learn the how i ll write the albums database i can do my albums please anyone send us a album database file
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on June 12, 2009, 07:36:45 AM
Quote from: MUSTAfaINE on June 12, 2009, 07:31:37 AM
yes i think if i learn the how i ll write the albums database i can do my albums please anyone send us a album database file
Album database file? What do you mean by that? You can add albums from the GUI in ACP.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: nopity4u on June 12, 2009, 07:50:06 AM
Sorry to reply again, but I thought I'd share the issue I have and the resolution that I found.

If you're noticing that you're having problems uploading files (Especially via mass upload) You'll need to check a few things.

The first thing is, if you installed your forum -before- your dns propagated and therefore your SMF install defaults to your default URL..

Something like blah123.myhostingcompany.com/~myname

What you'll need to do is open up (After DNS is properly resolving) Settings.php in your public_html root and change the forum path to your new domain "http://www.whateveritis.com"

Also, you'll need to go into your themes and layouts and reset all themes so that they're now pointing correctly to the new domain. Apparently, this DOES affect Gallery in some way, shape or form. I've been battling with it all morning and this fixed it.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Robin1989 on June 12, 2009, 08:53:05 AM
hey i just installed SMG and i have come across an issue

in the various tabs like the settings etc it doesnt show a link to each settings page but a broken image

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg.skitch.com%2F20090612-pt5kenm5np74qpp73e31syf2ym.preview.jpg&hash=6d864b48ef638c39e51748d647869954b23d8946) (http://skitch.com/robin1989/buhjf/shades)
Click for full size (http://skitch.com/robin1989/buhjf/shades) - Uploaded with plasq (http://plasq.com)'s Skitch (http://skitch.com)

but the image file it seems to be trying to link to is http://www.acidmods.com/forum/Themes/AcidMods/images/   where there is no image file?

Any help would be welcomed
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Kindred on June 12, 2009, 08:55:56 AM
nopity...

Well, that would be something that you should have done anyway...   in order to work properly, SMF itself needs to be configured properly....   and if, for some reason, you have told SMF one thing and then gone and changed things around, it is no wonder that various bits were not working properly.

in other words, if you have your forum set up correctly, additions like the Gallery here will work properly. If it is not set up properly, then you can not claim that there is a bug in either smf or the gallery, since it was the misconfiguration that was causing the issue.

Robin,

As with any mod on 1.1.x, you will have to manually install portions into your alternate themes.  This includes image files.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Robin1989 on June 12, 2009, 09:12:51 AM
im on 2.0 RC1-1 and when installing SMG there was no option to install parts in other themes like there is with other mods i have used.
the reason i say it was an issue is because on another forum i run i have it installed and it works fine on themes and it isnt images there its a hyperlinked text
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: cthulhumythos on June 12, 2009, 11:36:14 AM
after switching to all &id from ;id to get this plugin working on a mod_security 2+ enabled server and discovering that wasnt enough i modified the whole template and database/filehandling structure and have it happily working on a mod_s2 environment. Thanks for a great mod, i really dig it!

On the ms thing: I dont really feel that disabling mod_security for one mod is right. I can look at my mod security logs in whm and see daily hack/bot/spam attempts thwarted by it. If the whole forum can run inside mod_security shouldnt the plugins too?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: nopity4u on June 12, 2009, 12:49:37 PM
Quote from: Kindred on June 12, 2009, 08:55:56 AM
nopity...

Well, that would be something that you should have done anyway...   in order to work properly, SMF itself needs to be configured properly....   and if, for some reason, you have told SMF one thing and then gone and changed things around, it is no wonder that various bits were not working properly.

in other words, if you have your forum set up correctly, additions like the Gallery here will work properly. If it is not set up properly, then you can not claim that there is a bug in either smf or the gallery, since it was the misconfiguration that was causing the issue.

Robin,

As with any mod on 1.1.x, you will have to manually install portions into your alternate themes.  This includes image files.

While I agree with what you're saying fully, I never claimed there was a bug, I was just curious why it was not working. SMF and every other mod (Upwards of 15 or so) worked flawlessly, I had actually had the domain pointed correctly shortly after it propagated. Where the problem seemed to have been at, was with the actual theme settings needing to be reset for the new URL, which is a bit out of the way and certainly not noticeable to those who would assume that setting the site directory to your domain name would accomplish this.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 12, 2009, 05:03:10 PM
Quote from: cthulhumythos on June 12, 2009, 11:36:14 AM
after switching to all &id from ;id to get this plugin working on a mod_security 2+ enabled server and discovering that wasnt enough i modified the whole template and database/filehandling structure and have it happily working on a mod_s2 environment. Thanks for a great mod, i really dig it!

On the ms thing: I dont really feel that disabling mod_security for one mod is right. I can look at my mod security logs in whm and see daily hack/bot/spam attempts thwarted by it. If the whole forum can run inside mod_security shouldnt the plugins too?
What needs to be done to make it compatible?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: MUSTAfaINE on June 13, 2009, 07:10:03 AM
Quote from: Dragooon on June 12, 2009, 07:36:45 AM
Quote from: MUSTAfaINE on June 12, 2009, 07:31:37 AM
yes i think if i learn the how i ll write the albums database i can do my albums please anyone send us a album database file
Album database file? What do you mean by that? You can add albums from the GUI in ACP.

i cant add albums at smf administaration panel, i ll look the albums database file and i ll write mine albums to database please send me yours albums database zip..
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Kindred on June 13, 2009, 08:33:16 AM
ah.... robin,   I suspect it may be because this mod does not use an IMAGE for that....     so, it IS a theme problem (even on 2.0) because your theme is looking for an image, but this mod just installs as text (since the default and most themes build the menus as text)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: cthulhumythos on June 13, 2009, 12:08:48 PM
Quote from: Nao 尚 on June 12, 2009, 05:03:10 PM
Quote from: cthulhumythos on June 12, 2009, 11:36:14 AM
after switching to all &id from ;id to get this plugin working on a mod_security 2+ enabled server and discovering that wasnt enough i modified the whole template and database/filehandling structure and have it happily working on a mod_s2 environment.
What needs to be done to make it compatible?

It was a quick and dirty workaround as i didnt have time to reverse engineer all the stuff going on. I am not a heavily skilled php'er but i can make my way around. I stopped it from obfuscating the extensions of the files, changed its renaming convention and the respective database entry method for that. Then i went around and made it present all content through normal html as opposed to using the php handling for presentation, as somewhere inside the handler there is another trigger that was causing something(ms2?) to loop indefinitely in my environ. Used a pile of ifs according to mediatype/extension (for now just in template until i get a chance to do it properly) and replaced your flash objects code for my own audio players for the respective types. I have not fully worked out what to do with your message icon system, i just disabled that for now, i will sort that today at some point... Everything works great, i tested it every way possible. Mass uploader, all of it. Thanks again!
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: nopity4u on June 14, 2009, 06:44:01 PM
Here's a quick suggestion for SMG. Sometimes you may want users to be able to have auto-approved uploads but only auto approved if it's in their personal albums. Maybe make it so that if "Auto Approve User Album" is selected it will also auto approve personal items to their personal albums only, and not to the other galleries if "Auto Approve Items" is unchecked.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 14, 2009, 07:32:05 PM
@cthulhu> Then I guess the only way I can make SMG compatible with mod_security is to actually have to install it myself on a mod_security enabled server...?

Could you share your updated (working) files with me? Maybe I could apply most of the changes, so that you could at least reduce the number of edits required for you when you upgrade to SMG2.

@nopity> You'll have to see Dragooon for that. If it weren't for him, there would be no permissions at all. I think I officially dislike any permission system ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Harvester on June 15, 2009, 01:19:38 AM
hmm

My Gallery was working fine.

I logged onto my site  tonight and 3 images that i could see earlier this evening were now just red X's.

I ran maintenance and it said that the files associated with items weree missing. I tried a few things and in the end I decided to just delete that specific album and recreate it.

Well I deleted it and now I cant create any albums. I keep getting this error:

QuoteThis album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums is chmodded to 777

mgal_data and  mgal_data/albums are 777 


I have SMF 1.1.9 and I am using SMG 1.5.6
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Urbanite on June 15, 2009, 04:16:54 AM
I have already spent 4 hours going around in circles on this, I am trying to permit a "board moderator" access to administer the gallery. There is no membergroup for moderators in the Gallery Privacy Membergroups Settings, only guests, regular members and global moderators, can I not have a moderator that is set at board level administer the gallery too, or what have I missed?

V2 RC 1-1
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 15, 2009, 07:06:32 AM
@Harvester> Are you in PHP safe mode?
Also try chmodding to 0644 or 0755.
Urbanite, you can only give *member groups* such permissions as moderate or administrate (administer?) your gallery.
Just create a custom member group for gallery mods...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Urbanite on June 15, 2009, 08:37:22 AM
Thanks Nao, posting the question on here would have been time better spent!  :D
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: TauTau on June 15, 2009, 09:58:24 AM
I searched this (mega-)thread, but couldn't find anything helpful.
I'm running my site with german-utf8 usually, installation of SMG worked fine on SMF 1.1.9, but as long as I don't switch the language to english I'm missing the configuration Link to SMG in the Admin area as well as I don't see any text when editing permissions. When I switch to english everything is ok, but I'd prefer to run the site in german ;)  I installed the german language file from this thread SMGGerman-1.5.2.zip which contains ISO and UTF-8 files as it seems, but still no dice. I got these error messages in the log when runninng german-utf8:

Quote8: Undefined index: mgallery_gallery
Datei: /var/www/web4/web/smf/Themes/default/languages/TPShout.german-utf8.php (main_above sub template - eval?)
Zeile: 589

8: Undefined index: mgallery_gallery
Datei: /var/www/web4/web/smf/Sources/MGallery-Admin.php
Zeile: 2449

any ideas?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: totaltutankoll on June 15, 2009, 11:17:46 AM
Quote from: Harvester on June 15, 2009, 01:19:38 AM
hmm

My Gallery was working fine.

I logged onto my site  tonight and 3 images that i could see earlier this evening were now just red X's.

I ran maintenance and it said that the files associated with items weree missing. I tried a few things and in the end I decided to just delete that specific album and recreate it.

Well I deleted it and now I cant create any albums. I keep getting this error:

QuoteThis album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums is chmodded to 777

mgal_data and  mgal_data/albums are 777 


I have SMF 1.1.9 and I am using SMG 1.5.6
i have another version of the forum but get the same message ::) my chmode is set to 777
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Harvester on June 15, 2009, 11:23:33 AM
ok my host said he turned php safe-mode on. he says thats with php safe-mode off the server is less secure.  he said he will turn my php safe-mode off if thats what I need.

this program doesnt work with php safemode on?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on June 15, 2009, 11:27:08 AM
Quote from: Harvester on June 15, 2009, 11:23:33 AM
ok my host said he turned php safe-mode on. he says thats with php safe-mode off the server is less secure.  he said he will turn my php safe-mode off if thats what I need.

this program doesnt work with php safemode on?
If a server is properly configured, it doesn't need safemode. And no it doesn't as safemode conflicts with this.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: thatguy on June 15, 2009, 03:20:16 PM
Hello, I am using SMF 1.1.9 and SMG 1.5.6. Whenever I upload a photo I get this error:

Allaire State Park 039.jpg
Allaire State Park 039.jpg - An error happened during the upload process, please try again or contact the administrator.

No matter what photo or video. I am using the default template.

or, I get this one:

An Error Has Occurred!
An error happened during the upload process, please try again or contact the administrator.

Thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Özgür on June 15, 2009, 03:56:35 PM
@thatguy are you using multi-upload or single upload?
Are you try chmod 777 ?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: thatguy on June 15, 2009, 03:59:01 PM
OK, I can't do that right now. At work. I have to chmod the upload folder to 777? Thanks very much, I'll do that when I get home. I have tried single and multi upload.


Thank you.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Özgür on June 15, 2009, 05:49:56 PM
If same with single and multi upload, you need chmod 777 to mgal_data and all subfolders.
You're welcome (:
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: thatguy on June 15, 2009, 05:53:38 PM
OK, I chmod'ed the entire folder this plugin resides in and I still can't upload anything. Anyone have any idea what is going on here? Should I uninstall the plug in or something and start over? I have already gone in and done the maintenance thing. I still get this error when uploading a single file:

An error happened during the upload process, please try again or contact the administrator.

Or, doing a mass upload generates this error. See attached.

Thank you.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Özgür on June 15, 2009, 05:58:25 PM
Can you try small file from 2 mb?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: thatguy on June 15, 2009, 06:08:37 PM
Quote from: [Daydreamer] on June 15, 2009, 05:58:25 PM
Can you try small file from 2 mb?

I most certainly can, brb. And thank you.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 15, 2009, 06:10:54 PM
Quote from: Harvester on June 15, 2009, 11:23:33 AM
this program doesnt work with php safemode on?
SMG1 doesn't. SMG2 adds a Safe Mode FTP feature that allows you to tweak a file and add ftp settings so that your files will be uploaded through FTP instead of PHP. That way, PHP Safe Mode can be enabled. I didn't test the feature much, but it should work.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: thatguy on June 15, 2009, 06:13:15 PM
Quote from: [Daydreamer] on June 15, 2009, 05:58:25 PM
Can you try small file from 2 mb?

I think I got it. It was a config problem and nothing more. Much thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Skargon on June 15, 2009, 06:24:45 PM
Hey, I'm having no problems creating albums, or uploading photos one-by-one, but when I try to do a mass upload, it doesn't work.

The "Select Files" works, and it gives me the information on all the files, but when I press the "Upload" button.... nothing happens.

It doesn't freeze my computer or give errors, it just is like the button is inoperable.

Any ideas?

SMF 1.1.9

**Edit**  I did read most of this thread (it's large) and noticed someone with a similar issue.  I checked the configurations they specified, and it does not seem to be the problem
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Özgür on June 15, 2009, 06:34:26 PM
Quote from: thatguy on June 15, 2009, 06:13:15 PM
Quote from: [Daydreamer] on June 15, 2009, 05:58:25 PM
Can you try small file from 2 mb?

I think I got it. It was a config problem and nothing more. Much thanks

You need increase to upload_max_filesize and post_max_size. If your host support it, you can try add new httaccess rule.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: TauTau on June 16, 2009, 04:05:26 AM
Quote from: TauTau on June 15, 2009, 09:58:24 AM
I searched this (mega-)thread, but couldn't find anything helpful.
I'm running my site with german-utf8 usually, installation of SMG worked fine on SMF 1.1.9, but as long as I don't switch the language to english I'm missing the configuration Link to SMG in the Admin area as well as I don't see any text when editing permissions. When I switch to english everything is ok, but I'd prefer to run the site in german ;)  I installed the german language file from this thread SMGGerman-1.5.2.zip which contains ISO and UTF-8 files as it seems, but still no dice. I got these error messages in the log when runninng german-utf8:

Quote8: Undefined index: mgallery_gallery
Datei: /var/www/web4/web/smf/Themes/default/languages/TPShout.german-utf8.php (main_above sub template - eval?)
Zeile: 589

8: Undefined index: mgallery_gallery
Datei: /var/www/web4/web/smf/Sources/MGallery-Admin.php
Zeile: 2449

any ideas?

Still the same problem, can't find the cause. I searched the english and german language files for a definition of mgallery_gallery, but there is none in both (I thought maybe it's just missing in the german file). I copied the english language file and named it german-utf8, switched theme to default, still the same. No dice what the problem is here...

Edit: Found it. Those definitions have to be in Modifications.german-utf8.php. I just copied them over and will translate them later, but I still got a question: When or how is that file generated? I want to be safe for future updates so I'd like to understand a bit on how that stuff works...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: DonnaMarie on June 16, 2009, 09:37:38 AM
Has anyone seen this error and and ideas on what to do to fix it?  I am on v. 1.1.9

Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation 'ifnull'
File: /home/westatla/public_html/forum/Sources/Subs-MGallery.php
Line: 3370

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.9, while your database is at version 1.1.8. The above error might possibly go away if you execute the latest version of upgrade.php.Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation 'ifnull'
File: /home/westatla/public_html/forum/Sources/Subs-MGallery.php
Line: 3370
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: German_AC on June 16, 2009, 01:31:09 PM
Hi, is there any way the gallery pick up pictures from post automatically?

Thanks.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 16, 2009, 02:23:12 PM
?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: German_AC on June 16, 2009, 02:36:22 PM
Sorry about my english.

What I m trying to do is to create galleries that can pick pictures from users posts. I have a car forum, and users show their rides in posts. Well, the idea is to create a gallerie using those pictures automatically, without user participation.

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 16, 2009, 02:59:56 PM
This would create a lot of issues. What if a user posts a pic that shouldn't be put in the gallery? Etc...
Too much hassle for not much I'd say.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: thatguy on June 16, 2009, 03:27:52 PM
Hey folks, after playing around with this mod I still can't upload any file bigger then 1 MB I looked around in the settings and everything is set to WELL above 1 MB, there is nothing to indicate that I missed something somewhere. I am sure I overlooked something, I just don't know what.

Much thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 16, 2009, 07:28:19 PM
php.ini settings?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: thatguy on June 16, 2009, 07:49:08 PM
Quote from: Nao 尚 on June 16, 2009, 07:28:19 PM
php.ini settings?

I'm looking, where would that be? Thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 16, 2009, 07:55:11 PM
Google. Upload-related variables.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: thatguy on June 16, 2009, 07:56:46 PM
Quote from: Nao 尚 on June 16, 2009, 07:55:11 PM
Google. Upload-related variables.

OK but where is the ini file for smg located?

Thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: thatguy on June 16, 2009, 07:59:52 PM
So, I get where your coming from. I have to install PHP 5 in CPanel?

Thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: thatguy on June 16, 2009, 08:20:10 PM
Quote from: LinK187 on April 30, 2009, 07:12:59 AM
Quote from: Atheo on April 30, 2009, 02:05:09 AM
you have to get into your phpconfig on cpanel, select PHP5 (Single php.ini), then check the two boxes below that area and then click "install php.ini master file"

navigate to that file and you will find settings that need adjusted

Code (find) Select
; Maximum size of POST data that PHP will accept.
post_max_size =64M


Code (replace) Select
; Maximum size of POST data that PHP will accept.
post_max_size = xxxM


Where xxx is at least double what you have.

Code (find) Select
; Maximum allowed size for uploaded files.
upload_max_filesize = 64M


Code (replace) Select
; Maximum allowed size for uploaded files.
upload_max_filesize = 128M

Consider the size of your files for this amount.

There is also a variable in the gallery "settings" area that reads "Max file size (KB)"
I changed this amount too to a very large number and all is well.

This seems to be a common error that nobody is looking at or helping with.

Good luck!

Even if Nao were awake he would have ignored you due to the answer being posted several times. Also in addition to adjusting the max file size variables. You will also have to change the max upload time and max execution time. Otherwise the value of the max upload size will be irrelevant.

As well with php 5, all folders must be 755 and all files must be 644.

Unfortunately I do not have the option to configure PHP 5, all I can do is turn it on or off.  Here is the php.ini file that I found. I don't have any of the options mentioned in that post though, like I said on or off, that's all.

register_global = Off

[Zend]
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.2.6
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.2.6
zend_optimizer.version=3.2.6
zend_extension = /usr/local/ioncube/ioncube_loader_lin_4.4.so

zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

Thank you once again for your replies.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Özgür on June 16, 2009, 09:29:37 PM
If you don't have any server or VPS, so you don't have directly access php.ini. So if you don't have access, you an try httaccess solution.
Open your main .htaccess file, and add this

php_value post_max_size 8M
php_value upload_max_filesize 8M
if don't work, you must say this issue to your host provider.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: thatguy on June 16, 2009, 09:34:39 PM
Quote from: [Daydreamer] on June 16, 2009, 09:29:37 PM
If you don't have any server or VPS, so you don't have directly access php.ini. So if you don't have access, you an try httaccess solution.
Open your main .htaccess file, and add this

php_value post_max_size 8M
php_value upload_max_filesize 8M
if don't work, you must say this issue to your host provider.

This is what what I was told when I enabled PHP 5.

Warning: If you have any custom .htaccess content, it will no longer work and you will have to re-add the content. The content will be backed up to a timestamped .htaccess file if you required any content from it.

If you use FrontPage extensions, they will cease to function as they add content to your .htaccess file which will be renamed.


Will this conflict with anything you mentioned to me in your post?

Thanks once again for everyone's help.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: thatguy on June 17, 2009, 08:36:50 AM
Good morning. I edited the PHP.ini file and they told me in addition to that, to create a custom htaccess file with this info in it: suPHP_ConfigPath_/home/username/public_html/ with the "username" field being replaced by my cpanel user name. When I did that it took my site down with:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Once I deleted that file, the site came right back but with editing the PHP ini file I still can't upload files larger then 1 MB.

I am sorry to dominate the discussion here, it is not my intention to do that. I have been doing the things that everyone was nice enough to suggest and I appreciate it. I have included some screen shots of my SMF gallery settings, to see if I have something misconfigured.

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: thatguy on June 17, 2009, 09:42:03 AM
Done! It works! I'll not darken the doorstep of this topic for some time!

Thanks to everyone for the helpful tips
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 17, 2009, 09:57:26 AM
So, what was the problem?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: thatguy on June 17, 2009, 10:17:07 AM
Quote from: Nao 尚 on June 17, 2009, 09:57:26 AM
So, what was the problem?

The problem was directly related to the php.ini file, as was mentioned here by you and others. I did what was suggested here and edited that file but there was also a php info file that needed to be created that probably was mentioned to me but I overlooked it. Also, my syntax was wrong in editing the php.ini. It was also suggested that I create an htaccess file but when I did that it took the website down.

Uploading single files works fine now, no matter the size, I just have to figure out why I can't upload mass files.

I willingly admit I am not a coder by any means but I can usually follow directions when given them and make things work given a reference point to go by. So it made no sense to me why the suggestions mentioned here worked for others but not for me. This is an extremely useful mod and I am glad I have it working on my site.

Thanks again for all the help. Hopefully, you won't hear from me for a while since I dominated the topic here for a bit. LoL
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: redsc on June 20, 2009, 05:59:16 PM
Hello.

I have installed the Gallery Mod some time back I uninstalled it and said uninstalled sucsefual and moved from my forum.

How ever in members permissions you can still controll the permissions.

Im getting arround 15000 error logs a day and ive been told that its due to this MOD.

Please can you help ?

JUst some of the error logs are here.

http://www.simplemachines.org/community/index.php?topic=318321.msg2115927#msg2115927

please can someone help to resolve the problem.

thanks.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: thatguy on June 21, 2009, 06:33:17 AM
How can I specify the video size in the gallery page? For example, I uploaded a video that was 1920x1080. It works fine but I wanted to have it sized in the page to something like 800x600 or 640x480 so that it wouldn't break the template. I don't know if it is specified in the php.ini file or index.html or index.php. I am using SMF 1.19 and Simple Media Gallery.

Also, will the scaled video keep its aspect ratio?

Thank You.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: scvoyager on June 21, 2009, 04:34:05 PM
You need to resize the video before you install it. Here is a free converter that I use. http://www.any-video-converter.com/products/for_video_free/
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: scvoyager on June 21, 2009, 04:42:36 PM
I'm having a problem with installing gallery icon pictures and also icons for videos. Has anyone else come across this problem?

In future releases is their going to be a batch upload system like SMF Pro in were we can ftp a file to the server and then do a upload from the gallery? This works well with Pro and gets around the problems of php.ini limits.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: radioninty on June 22, 2009, 06:58:43 AM
Hi

I'm running SMF 1.1.9 with TP 1b4.

I've tried installing SMF Media Gallery 1.5.6, it installed fine, however whenever I try and do anything within the gallery I get this error message -

Method Not Implemented

GET to /SMF/index.php not supported.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Any ideas?

Thanks in advance.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: thatguy on June 22, 2009, 08:10:23 AM
Thank you, I'll try that.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: rolltidega on June 22, 2009, 08:23:18 AM
I am trying to get the menu option along the top to show up in the PS-Black theme.  The gallery is working but I cannot figure out how to get the Gallery option to show up properly along the top menu bar using the same fonts and such that the PS-Black theme uses.  Has anyone set this up?  Any help would be great!  Thanks....
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: nopity4u on June 22, 2009, 10:39:59 AM
Quote from: rolltidega on June 22, 2009, 08:23:18 AM
I am trying to get the menu option along the top to show up in the PS-Black theme.  The gallery is working but I cannot figure out how to get the Gallery option to show up properly along the top menu bar using the same fonts and such that the PS-Black theme uses.  Has anyone set this up?  Any help would be great!  Thanks....

Here is an index.template.php with the menu item inserted. This assumes you haven't done any other edits to your index.template.php file.
Since I'm not a coder (And you should do it regardless) backup any files you replace.

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: rolltidega on June 22, 2009, 11:09:17 AM
Perfect.  That did the trick!  Thanks!

Quote from: nopity4u on June 22, 2009, 10:39:59 AM
Quote from: rolltidega on June 22, 2009, 08:23:18 AM
I am trying to get the menu option along the top to show up in the PS-Black theme.  The gallery is working but I cannot figure out how to get the Gallery option to show up properly along the top menu bar using the same fonts and such that the PS-Black theme uses.  Has anyone set this up?  Any help would be great!  Thanks....

Here is an index.template.php with the menu item inserted. This assumes you haven't done any other edits to your index.template.php file.
Since I'm not a coder (And you should do it regardless) backup any files you replace.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: [email protected] on June 22, 2009, 05:40:55 PM
 >:(  I am afraid I am not finding the answer in searching the forums, although it may be already answered....

I had installed the SMG 1.1.9 and got it configured...really like it.  Had it running for about two days while playing with it...created albums, got pics and stuff uploaded, etc.

Today, all the thumbs and pics were gone. (just red x's).  Not sure why, but was playing with other mods....

I tried removing and reapplying the mod, but now everytime I try to add anything (albums, pics, etc) I get the message that chmod777 is required for mgal_data and albums dirs.

I try to reset the chmod, but can only get 776...probably a server limitation...but it worked before...?!?

any help would be greatly appreciated!

BTW when re applying the mod, the /themes/default/index.template.php fails 'inspection'....
is this why it is not installing correctly?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 23, 2009, 10:04:18 AM
@redsc> That's not here either. Are you talking about SMF Media Gallery or SMF Gallery?

@scvoyager> It's already in SMG2, and has been for several months now. The first beta will be out this week.

@radioninty> Is mod_security enabled? Disable it.

@donk> Is PHP Safe mode enabled? Disable it or wait for SMG2.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: [email protected] on June 23, 2009, 10:38:30 AM
thanks NAO.

I am not sure where to enale/disable php safe mode.  I have my smf and smg on a hosted server with Network Solutions, so I fear this may not be something wtihin my control...

Thank you for the reply, and will watch for SMG2~!

BTW, the gallery Lite works fine..if it is relevent.

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Sel_888 on June 23, 2009, 11:26:38 AM
SMF 2.0RC1-1

K... I WAS using SMF gallery PRo...

Installed Media Gallery 1.5.6
Ran mgconverter_sgp.php

The conversion 'appeared' to have gone to plan, and went to the new gallery, and all the albums, views, comments, etc are THERE... just ...

THERE ARE NO IMAGES!!!

Now... I have NOT uninstalled the galleryPRO yet... kinda scared to until I know that this one is functioning properly.

Am I jumping the gun?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Sel_888 on June 23, 2009, 12:48:26 PM
Alrighty-then....

Not ONLY do I not have ANY images showing up in Media Gallery (though I still have all the images showing in SMF Gallery PRO)...

I now cannot upload any images in my new installed 1.5.6 media gallery.
I get an error : ...
QuoteCannot find proper destination on the server, please contact your administrator

What's going on?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 23, 2009, 01:22:36 PM
@donk> I don't think SGL has any complex directory structure -- ie it doesn't create sub-sub-folders so it's safe from safe mode, if I may say. It was either "get rid of the folder structure" or "implement ftp upload" like SMF does. I chose the latter.

@sel> You're not helping, by disabling SMG access to guests...
Anyway, have you checked your gallery folder? Does it exist? Is it correctly configured in the SMG admin area? Does it have the right permissions? Are the files physically present in it?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Sel_888 on June 23, 2009, 01:42:53 PM
Quote@sel> You're not helping, by disabling SMG access to guests...
Anyway, have you checked your gallery folder? Does it exist? Is it correctly configured in the SMG admin area? Does it have the right permissions? Are the files physically present in it?

:o :o sorry... will go in and check permissions etc!
UMmmmm, physically present? I don;'t know what you exactly mean by that...
I thought that the converter was supposed to do that. how exactly would I go about getting them PHYSICALLY in the folder? do I just FTP them over from the other gallery?

Were you trying to check out the site?
I have a test membername that you can use (I could pm it to you if you so wish)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Sel_888 on June 23, 2009, 02:12:24 PM
OK.... found ONE major problem.....

It was pointing to the wrong file path from when I had it installed a long time ago on a different server.... but I had changed it now to the proper one... and STILL no images showing,
PLUS... I cannot upload a new test one...
QuoteCannot find proper destination on the server, please contact your administrator
I am going to dump the cache for the forum and hopefully THAT might help... but I am still perplexed on why it won't show my photos from the other gallery that I supposedly 'converted'...

weird....  :-[

Oh... and changed the permissions, so you can try to check it out now......
(its the FIRST gallery button, not the second...)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 23, 2009, 03:42:39 PM
I would recomment that you point the SMG data folder to the default, then uninstall SMG, then remove all related folders, then reinstall SMG and re-run the conversion script.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Sel_888 on June 23, 2009, 04:57:47 PM
Quote from: Nao 尚 on June 23, 2009, 03:42:39 PM
I would recomment that you point the SMG data folder to the default, then uninstall SMG, then remove all related folders, then reinstall SMG and re-run the conversion script.

OK... really confused now.
I have the SMG folder as what it installs with...
Quote/home/ln888/public_html/forum/mgal_data
now what do you mean by all related folders.....

the rest I understand....... so...
I will try to uninstall and reinstall and run conversion.
will keep you posted...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Sel_888 on June 23, 2009, 05:13:36 PM
RESOLVED!!!I am pleased to say that it was MY FAULT with this whole conversion thingie!!!WOW, who would have thunk it that it would have installed with all your old settings that you had in over 6 months ago.I had to get rid of it (SMG) because the server I was using (aplus.net) was very NOT COMPATIBLE with it, so I had to use alternatives.Now that I am on a new hostserver (hostgator) I wanted it back again, since I really hate the layout of GalleryPRO, But I never would have thought that installing SMG would install with my old paths that were with the other server... and since I didn't realise that before running the converter, all the images were sent to an invalid path.So, after uninstalling and reinstalling along with making sure the paths were right... the converter worked perfectly!Thanks for the help!toodles! 8) :D
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 23, 2009, 06:35:43 PM
:)

I'm not a big fan of the SMF Gallery layout either, from what I could see.
Doesn't mean I'm happy with SMF Media Gallery's either, though. But I always manage to postpone my reworking, and add a few things here and there instead, as time goes by...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: dansmark on June 24, 2009, 10:10:47 AM
I've installed "SMFMediaGallery-1.5.6.zip".
It has been installed successfully.
Where is the tab, or link to upload/view the images?

I have nothing on my site suggesting the is a gallery, and in new topics, there isn't an option for a gallery.

I have a topic in SMF2.0 RC 1.1 for help on image upload problems.

Thanks!
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 24, 2009, 11:13:50 AM
Are your permissions correctly set?
Are you using SMF1 or SMF2?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: dansmark on June 24, 2009, 02:03:48 PM
Quote from: Nao 尚 on June 24, 2009, 11:13:50 AM
Are your permissions correctly set?
Are you using SMF1 or SMF2?

I'm using SMF2.

As far as I know the permissions are ok.
Are there any other folders that need write access (other than the standard SMF2 installation files and folders?).
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atoa on June 24, 2009, 04:03:42 PM
i have all the folder and files from galery 777 (forum, mgal_data and the files on mgal_data) and i stil getting the "This album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums is chmodded to 777" Error when i try to create and Album

I'm usign SMF 2.0R1-1
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 25, 2009, 02:39:38 AM
Aroa, try with other chmod such as 0755 or 0644. Some servers are restrictive about that.
Also, are you in safe mode?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: MrMorph on June 25, 2009, 08:36:55 AM
I searched this thread unsuccessfully.  I was just wondering if there is a setting so that when the images get enlarged that the browser in the background gets darkened out.  Cheers, great product too btw :)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atoa on June 25, 2009, 10:49:31 AM
No permission worked.

I don't know how to set safe mod, but i think i'm not '-'

There is any incompatibilty with pretty url or AjaxIntegration Chat?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atoa on June 25, 2009, 02:30:11 PM
Quote from: DragoonSometimes due to server's errors they are created as files. They are supposed to be directoryes(albums, generic_images, album_icons, tmp). Upload the whole mgal_data directory from the package again to your server.
I found that on the SMG forum but also didn't worked.

I tried v1.5.4 and it worked fine, so i suppose the problem is with some of the updates of v1.5.5
I will wait til v2.0 to update an use the 1.5.4 for now.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: batto on June 25, 2009, 03:27:55 PM
Sorry for my english

SMF Media Galley has a RRS (syndication) of lasts pics for albums??
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 25, 2009, 03:51:02 PM
Quote from: batto on June 25, 2009, 03:27:55 PM
Sorry for my english

SMF Media Galley has a RRS (syndication) of lasts pics for albums??
No.
But SMG2 (upcoming) + my Foxy! add-on has a notification feature that you can tweak into showing a RSS feed for albums. It's not out-of-the-box but it's doable.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: batto on June 25, 2009, 05:18:31 PM
Thanks, when  it's available SMG2?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Neverhurry on June 25, 2009, 06:04:41 PM
hi, i am using smf 1.1.9 and SMG 1.5.6, but i found out that the gallery button only shows to admin, i tried my best to search, but i didn't find what i need. any suggestion? thanks.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Özgür on June 25, 2009, 06:06:39 PM
Quote from: batto on June 25, 2009, 05:18:31 PM
Thanks, when  it's available SMG2?

When its ready :)

Quote from: neverhurry on June 25, 2009, 06:04:41 PM
hi, i am using smf 1.1.9 and SMG 1.5.6, but i found out that the gallery button only shows to admin, i tried my best to search, but i didn't find what i need. any suggestion? thanks.
You must be give permission for your usergroups.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Neverhurry on June 25, 2009, 06:08:47 PM
thank you very much, i found it!!!
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: batto on June 25, 2009, 06:15:32 PM
Quote from: [Daydreamer] on June 25, 2009, 06:06:39 PM
Quote from: batto on June 25, 2009, 05:18:31 PM
Thanks, when  it's available SMG2?

When its ready :)


XD ok

sorry, but i need this function soon ^^x
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Neverhurry on June 25, 2009, 06:19:50 PM
but i am puzzled at so many permission options, should i give all of them to forum members? what is the normal choses? anyone knows?

i suppose that forum members can not be given such permissions as "Moderate Gallery, Administrate Gallery or Access unseen area", right?

thanks!

QuoteAccess Gallery     
   Moderate Gallery    
   Administrate Gallery    
   Access unseen area    
   Search in Gallery    
   Download items    
   Add User Albums    
   Auto-approve User Albums    
   Add videos    
   Add audio files    
   Add pictures    
   Rate items    
   Edit own comments    
   Report comment    
   Edit own items    
   Comment in items    
   Report items    
   Auto-approve comments    
   Auto-approve items    
   Mass Upload    
   View anyone's Gallery profile    
   View who rated what
View who rated what
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 25, 2009, 06:20:54 PM
Well we've been working hard on SMG2 for months and months... You certainly can wait until we feel it's ready. It'll probably be out this weekend but then again we announced that several times these last few weeks... Although now we do have a complete changelog ready for release.

Otherwise if you're in such a hurry, use a bridge to Gallery2 or Coppermine, and then convert to SMG2 when it's out. Or sum'thin'.

@neverhurry> Of course you should give guests the ability to administer and moderate your gallery. It'll be a lot of fun I'm sure :) Sort of like a Wikipedia, only without an "undo" button eheh.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: batto on June 25, 2009, 06:27:20 PM
A lot of Thanks!!!

Sorry, i need this Rss of gallerys for a project with a important colaboration in September

PD: Coppermine has RSS latest images?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Neverhurry on June 25, 2009, 06:41:02 PM
Nao, thanks, you seem to have good mood tonight. :)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Sel_888 on June 26, 2009, 12:15:13 AM
SMG2  :o :o :o ?!!

sounds cool!!!

Looking forward to when it comes out.

Nao - by all means WAIT to release it until alllllllllllll (or most you can find) bugs are out.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Lighting_site on June 26, 2009, 12:52:09 AM
What is ''Access unseen area''?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 26, 2009, 02:10:54 AM
Unseen area is basically the same as the "Unread posts" link in SMF -- only, you see the un-viewed items, rather than the unread topics.
We already asked around and decided to settle on that "Unseen" term, even though it sounds strange.
Maybe with the Foxy! mod I'll get around to completely disable that link (effectively merging it with the unread posts feature, really.)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on June 26, 2009, 02:18:57 AM
Quote from: Sel_888 on June 26, 2009, 12:15:13 AM
SMG2  :o :o :o ?!!

sounds cool!!!

Looking forward to when it comes out.

Nao - by all means WAIT to release it until alllllllllllll (or most you can find) bugs are out.
Nyah...we'll have plenty of them for you.

To think of it, RSS/XML feeds is something that hasn't been added. I'll try to add it before SMG 2 goes RC.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 26, 2009, 03:52:32 AM
@batto> Basically, either use some other gallery software, or use SMF2+Foxy! and add some code that will link to a RSS feed for the topic associated to the current album.
Are you looking into doing a RSS feed for *all* albums at once, or one RSS feed *per album*? (ie for new items posted to that album)

@Dragooon> RSS feed is possible via Foxy!, really. But feel free to add it for the common SMG if you'd like. I just don't think it's a priority really...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: batto on June 26, 2009, 04:21:39 AM
thanks nao, i need two options

already i test CPG with bridge to SMF... but i wait for SMG2 ;)

PD: What is foxy!?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Neverhurry on June 26, 2009, 06:21:09 AM
hi, anybody can tell me where is the delete button for an unwanted album, i searched and searched and can not find it. thanks. i am using SMG 1.5.6 in SMF 1.1.9.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 26, 2009, 07:07:24 AM
@neverhurry> you can only delete albums through the admin area.

@batto> Foxy! is my non-free mod for SMG. Since Dragooon has been getting all donations for SMG (which I have no problem with), I figured I needed to have my own donation system otherwise I'd just quit SMG once and for all. (I have a hard time giving my girlfriend any good reason as to why I've been working 8 hours a day for nearly a year on something that doesn't bring me a dime.)

Foxy! adds:
- playlists (ie selections of items that any user can create and show -- currently implementing this, will be finished by next week hopefully)
- Flash player improvements (including full integration of playlists into a Flash slideshow -- been working on that for a long time)
- linked topics, ie any album can spawn a new topic (in a board of your choice), locked or not (your choice, again), which will automatically post any new posted item. The first message in the topic has a complete playthrough of the album, and any subsequent message has a list of recently posted items (one message per item if you're using single upload form, one message for a session of mass upload if you're using mass upload.)

It's all been under demonstration at http://fox.noisen.com (hence the add-on's name.)

It also adds many internal tweaks that I made to SMG itself.
I'd like to use the opportunity to say I'm a bit lost with my playlist terminology. I'm reaching the limits of my knowledge of English here. I couldn't find a better name for the Flash player's list of items that is controlled by Javascript, but at the same time these lists can be of different types: album (or multiple albums), item (or multiple items), and playlists (multiple items selected by a playlist owner). This is giving me a headache...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: batto on June 26, 2009, 07:16:38 AM
Thanks, i have no problem with mods non-free, if this mods do i want: rss of latest images on a gallery in a SMF forum for outer websites
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 26, 2009, 08:53:42 AM
Latest images hmm...?
I don't know. Probably best with a proper RSS implementation I guess.
Or, you might want to tell your users to publish their linked topics in a single, specific board (maybe I can add a "locker" in my feature set). Then you just publish a RSS feed to that specific board.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atoa on June 26, 2009, 02:29:22 PM
This mod is really making me upset...
With v1.5.4 i cant add images and give an erro that don't point the problem just say something like "an erros occured, contact the administration".
with v1.5.6 i can't add albums and images, but it's say that cant find the path.

I noticed that the SMG doesn't creat the folder for the albuns.
I chose this mod beucase SMF Gallery Lite 2.0 doesn't have a sub album support, but this one only giving me problems...

What maker me more upset is that i'm doing everything right and it still don't work.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 26, 2009, 02:40:15 PM
Quote from: Atoa on June 26, 2009, 02:29:22 PM
This mod is really making me upset...
Then... don't use it?

QuoteWhat maker me more upset is that i'm doing everything right and it still don't work.
Doing everything right isn't enough. Your server has to be cooperative. A gallery mod isn't like a BBC mod. It involves a lot of permissions that are needed on the server to create files, etc. Either mod_security or PHP safe mode can screw it up.
If it's safe mode, just wait for the release of SMG2 and use the safe mode fix.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: CiQ on June 27, 2009, 04:02:37 AM
hello.
Quote from: Error logloadMemberContext(): member id {id_of_deleted_user} not previously loaded by loadMemberData()
fix this issue please.
thanks.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 27, 2009, 05:25:01 AM
Well, it's great to have the error message.....

Of course we can't do anything further without the rest of the details...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: CiQ on June 27, 2009, 05:45:55 AM
This error appears if i browse pictures (index.php?action=mgallery;sa=item;id=xxx) uploaded by deleted_user.
Simple, user upload any photo in gallery and i delete him.
smf1.1.9
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: batto on June 27, 2009, 06:32:46 AM
thank you for all, i am test now with CPG bridge on SMF ^^x
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Soms on June 27, 2009, 06:46:47 AM
It is triggered when a member has been deleted. If this member has posted some images in the gallery and you click on the images, the system attempts to load the information about the now non-existent member. Of course SMG will not find this information. Hence the error message.
QuoteloadMemberContext(): member id {id_of_deleted_user} not previously loaded by loadMemberData()
But I can imagine this can be an irritation if you have a large board where members come and go all the time.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 27, 2009, 11:25:27 AM
Hmm... Then I guess it should be fixed, yeah.
Did you try running the maintenance task that fixes errors? Maybe there's something for it over there...
Title: Gallery Button?
Post by: KendalNicole on June 27, 2009, 03:47:04 PM
     I have installed the media gallery mod to my site, facepaintchat.com, and it appears to be working, but there is no button to access it with. I believe it is because I am using a different theme, (NB), because I went back to the core theme and everything was fine, reinstalled NB and no button for the gallery. Can anyone point me in the right direction? I'm pretty new to SMF as a whole, and pretty much no code writing/ modifing abilities.
     I have seen this mod on other sites and it looks great!! I'm hoping it will be compatitable with this theme.

Thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: MrMorph on June 27, 2009, 04:04:44 PM
When I edit a photo and upload a new one to replace it the preview thumbnail and the preview pictures do not change.  But when I click on the preview I do get the image that I had used to replace it.

Any fix for this apart from regenerating them through admin ?  Cheers.

Edit : okay forget that - I found I needed to refresh the page to see the alterations.  Would be cool if it could be made to do this automatically though.  hehe.

Such a great mod this, I really like it, thank you  :D
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: CiQ on June 27, 2009, 04:05:05 PM
Quote from: Nao 尚 on June 27, 2009, 11:25:27 AM
Hmm... Then I guess it should be fixed, yeah.
Did you try running the maintenance task that fixes errors? Maybe there's something for it over there...
Checking for errors is done. No errors found!
Without results.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 27, 2009, 06:30:35 PM
Dragooon?

@mrmorph> Doing this would require to refresh pretty much all pictures in all albums...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Mack450 on June 27, 2009, 08:32:54 PM
Doesn't seem to allow members to access the gallery. Works fine for admins though. But not quests or members.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Thenewguy2009 on June 27, 2009, 08:38:36 PM
mack- make sure you have your membergroups permission set for them to view the forum. 
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Mack450 on June 27, 2009, 09:04:27 PM
I check that....dont see anything regarding the gallery
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Thenewguy2009 on June 27, 2009, 09:09:35 PM
oh its there admin cp->permissions -> select your membergroups (regular users, guests, etc) you will see it in there.  You ahve to tick the boxes that give them access. 
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Mack450 on June 27, 2009, 09:40:56 PM
That is where I looked....nothing in there.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Thenewguy2009 on June 27, 2009, 09:48:52 PM
did you have a clean install?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: ceewee on June 28, 2009, 06:37:58 AM
I'm loving it ! ;-)  Chapeau! (hat off to you!)

Only thing I would like to see is a downloadlimiter/day and a uploadquota(total)
if possible per membergroup.
I'm willing to "donate" $$ for that addition..
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: KendalNicole on June 28, 2009, 07:29:52 AM
We installed this on our site facepaintchat.com so our users could each have individual galleries to post their face painting photos in.  We don't see any buttons for them click on in their individual user profiles, so they can add photos.  How do we get this mod to work?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 28, 2009, 09:26:23 AM
@ceewee> Total upload quota might end up in the mod in the future. Download limiter, I don't know.
@Kendal> Membergroup permissions.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: ceewee on June 29, 2009, 07:48:56 AM
Quote from: Nao 尚 on June 28, 2009, 09:26:23 AM
@ceewee> Total upload quota might end up in the mod in the future. Download limiter, I don't know.
............
I had download limiter for attachments made for $ for me, http://www.simplemachines.org/community/index.php?topic=316728.0;all , perhaps that can help?
Now found out smf119 uses unusable/unbackupable encryptinghash for attachments.
Hope you keep filename and extension in the hash!?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: psynx on June 29, 2009, 12:54:28 PM
i installed this mod in my dilber mc theme and i got this error:

ERROR
The requested URL could not be retrieved

While trying to retrieve the URL: http://asp.isgreat.org//index.php?action=packages;sa=install2;package=SMFMediaGallery-1.5.6.zip

The following error was encountered:

    * Zero Sized Reply

Squid did not receive any data for this request.


anywayz, i install it manually using the parser. im using smf version 1.1.9 and manually installed the 1.5.6 media gallery. after installing manually i got another error whenever i click the 'gallery' link in my admin panel. this is the error:

Table 'b7_3679961_37774.smf_mgallery_settings' doesn't exist
File: /home/vol9/byethost7.com/b7_3679961/asp.isgreat.org/htdocs/Sources/Subs-MGallery.php
Line: 979


please help me fix this pls? i can not go to the settings for the gallery.


Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 29, 2009, 01:27:35 PM
You forgot to run the db_install.php file.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: psynx on June 29, 2009, 01:44:00 PM
is it included in the zip file? tell me where to upload the files please? i mean the where i can find the db.install.php and how to run it? sorry for my noob question.

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on June 29, 2009, 05:25:13 PM
Upload the file to your root, then browse to it. Most of these files won't give a message, but only a blank page. But the db values will be created. After loading it, it should be done.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 29, 2009, 06:13:40 PM
db_install will give a summary of what it did. We're not that wicked really ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on June 29, 2009, 06:18:15 PM
Ahh, so that's where the long message is created, when you install SMG.. ;)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Kindred on June 29, 2009, 08:21:46 PM
I will also note, from that error message, that psynx has an extra / in his url setting.

Change your board url to be http://asp.isgreat.org ...  not http://asp.isgreat.org/
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: psynx on June 30, 2009, 09:39:20 AM
will anyone please point me where is the db.install.php file? so i could try it. how do i upload the db.install.php file in my root folder if i do not have the file. pls? thanks
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on June 30, 2009, 09:42:49 AM
The file is in the SMG package.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: psynx on June 30, 2009, 09:47:56 AM
Aeva is another mods, right? so you mean the file db.install.php is there? i went to Aeva package and did not find the db.install.php file

Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on June 30, 2009, 09:51:40 AM
sorry... the SMG package...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: psynx on June 30, 2009, 09:56:58 AM
i checked the package files and there isn't a db.install.php file
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Akyhne on June 30, 2009, 10:00:08 AM
It must be the db_mgallery.php file, as I can tell.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on June 30, 2009, 10:00:21 AM
Its db_install.php not db.install.php....
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: psynx on June 30, 2009, 10:03:47 AM
oh! now it is working! :) :) :)

thanks a lot.

the file is db_mgallery.php. :)

huh! im so dumb.  :P
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: psynx on June 30, 2009, 10:56:19 AM
mass upload not working.

i upload several images using mass upload and it is not working. there isn't any msg about errors. and also i have to keep clicking 'upload', i thought it will do auto upload to all images i have selected. but i have to click 'upload' for each images in order to upload it. the worst thing is after i have done uploading all of the images, i went to mgallery home page and my album is empty. so that means no image was uploaded.

i've created .htaccess on my root directory and add those required code but no use
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: scruffeone on June 30, 2009, 12:24:21 PM
I just d/l'd the 1.5.6 and attempted the install via the interface and received an error on a filetest for the ManagePermissions.php file.  in looking at the exploded package, I find that the file is not included in it.  Is this done on purpose?  ???
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 30, 2009, 12:37:06 PM
This is an SMF file, not an SMG file... If it's not in your board's Sources folder, then your SMF install is corrupt.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: scruffeone on June 30, 2009, 12:41:24 PM
 :D Thanks for your quick reply!!  I realized that after I made the post.  It looks like it may be a file modification permission issue.  Unfortunately I can't make the modification manually where I am now, so I'll attempt it later.   BTW, this is probably a dum question, but since I like your mod so much, I looked at your other (Aeva) mod, can I run both on my board, or will this one suffice for both functions? 

Thanks again!!
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: psynx on June 30, 2009, 12:55:32 PM
Quote from: psynx on June 30, 2009, 10:56:19 AM
mass upload not working.

i upload several images using mass upload and it is not working. there isn't any msg about errors. and also i have to keep clicking 'upload', i thought it will do auto upload to all images i have selected. but i have to click 'upload' for each images in order to upload it. the worst thing is after i have done uploading all of the images, i went to mgallery home page and my album is empty. so that means no image was uploaded.

i've created .htaccess on my root directory and add those required code but no use

need answer pls?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: ShadoWind on June 30, 2009, 03:49:19 PM
I'm trying to incorporate the code that's found in the parse section for the index.php which are the following:

// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).

Add Before
// SMF MGallery Changes
if (isset($_REQUEST['action']) && isset($_REQUEST['area']) && $_REQUEST['action'] == 'admin' && $_REQUEST['area'] == 'mgallery')
{
require_once($sourcedir . '/MGallery-Admin.php');
return 'MGal_admin_init';
}
// End SMF MGallery changes


and

'mlist' => array('Memberlist.php', 'Memberlist'),

Add Before
'mgallery' => array('MGallery.php', 'MGallery_init'),

The only problem is that both codes that need to be found in there aren't found. I take it this means that I have to upload the other files that I've added the relevant code to for the related code to appear in the index.php file which I'd be able to check via the Admin option.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: tfs on June 30, 2009, 05:36:10 PM
Quote from: Nao 尚 on June 25, 2009, 06:20:54 PM
Well we've been working hard on SMG2 for months and months... You certainly can wait until we feel it's ready. It'll probably be out this weekend but then again we announced that several times these last few weeks... Although now we do have a complete changelog ready for release.

DROOL!!!  I know I know.... when it's ready.  :)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on June 30, 2009, 06:24:19 PM
Oh, I'm hoping this week... The Foxy! mod is ready for release really, and I'm only waiting for the first public beta of SMG2 to start offering it.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: thatguy on June 30, 2009, 06:46:26 PM
Hello, I am trying to upload some video files to put in my gallery all 5 are 93 MB's each. My PHP.INI fille states upload_max_filesize = 500M as well as post_max_size = 500M. The biggest file I have been able to load is about 27 MB's. Is there anything else I can add to the php.ini file to get files larger then 27 MB's to upload? I included a screenshot of my gallery settings.

Thank You.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: jameskeaton on June 30, 2009, 10:36:12 PM
I have installed SMF Media Gallery on SMF 1.1.9 and I am having a couple problems.  I can create albums, but I can upload.  I get this error in the web browser when I click the Submit button..."Error, file not found! (/home/a8707938/public_html/forum/mgal_data/albums/blah/Dir_1/17_ttr50left_JPGd1ae5356c02e9e88dac8bfc975330339_extjpg)"

And after going to my error reporting on SMF I got this error..."2: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for /home/a8707938/public_html/forum/mgal_data/tmp/ttr50left.JPG
File: /home/a8707938/public_html/forum/Sources/Subs-MGallery.php
Line: 2126"

And here is my Subs-MGallery.php file lines 2120 - 2130...
2120
2121     function getFileSize()
2122     (
2123          if ($this->media_type() == 'image')
2124          (
2125               if ($this->image_handler == 1)
2126                    return filesize($this->src);
2127               elseif ($this->image_handler == 2)
2128                    return $this->imagick->getImageSize();
2129               elseif ($this->image_handler == 3)
2130                    return MagickGetImageSize($this->magick);

I am too new to see a problem.  The file I am trying to upload is under 70kb.  Thanks for all of your help.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: jameskeaton on July 01, 2009, 07:09:17 AM
Anyone have an idea?  I kept looking at this and can't find the problem.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on July 01, 2009, 09:48:42 AM
@thaguy> I don't know.
@jameskeaton> I don't know. (PHP Safe mode?)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: jameskeaton on July 01, 2009, 10:25:58 AM
PHP Safe Mode?  What is that?

I am a super noob.  Thanks for your response.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atoa on July 01, 2009, 11:14:53 AM
The thumbnails boxes have the width of the biggest image on the row.
I want to know where in the code i can set fixed width for the thumbnails box.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi258.photobucket.com%2Falbums%2Fhh257%2Fatoa%2Fimg25-2.png&hash=2d41380350387b7c5b5da159b0071d962b017e02)

I want all thumbs boxes to have the same width same width, no matter of the content width, so i can avoid blank space like the one marked on green in the image.

@jameskeaton
It's an internal configuration of your server. if you don't own the server, ask for the host admin to turn off the php safe mode
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on July 01, 2009, 01:24:04 PM
@Atoa> Use SMG2 when it gets out. I changed the layout to do just that.

@Everyone> I'm pleased to announce that I'm finally done with the Foxy! add-on! All features I planned to implement are now live and kickin'! You can see it in action over at http://media.noisen.com (click on "Playlists" next to the Albums tabs) in Gallery context, and http://fox.noisen.com in "board + smg tag + linked topics" context (which is even cooler).
It will be available from day 1, as soon as the SMG2 public beta is released.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: jameskeaton on July 01, 2009, 01:41:59 PM
php safe mode is off
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: IdanC on July 01, 2009, 04:20:08 PM
Quote from: thatguy on June 30, 2009, 06:46:26 PM
The biggest file I have been able to load is about 27 MB's.

I wish! my biggest problem is i can't upload anything bigger than 7mb! it's horrible...

is there anyway to upload a file to the server and connect it to SMG afterwards?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: asifnur on July 01, 2009, 05:45:54 PM
im keep on getting probs here :(

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

how can i solve this?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Thenewguy2009 on July 01, 2009, 05:59:16 PM
asifur, manual install.

Did you install the package already? If you did, just uload those attachments and Ill recode it for you. 
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: kingkingston on July 01, 2009, 06:23:23 PM
Quote from: Nao 尚 on July 01, 2009, 01:24:04 PM
@Atoa> Use SMG2 when it gets out. I changed the layout to do just that.

@Everyone> I'm pleased to announce that I'm finally done with the Foxy! add-on! All features I planned to implement are now live and kickin'! You can see it in action over at http://media.noisen.com (click on "Playlists" next to the Albums tabs) in Gallery context, and http://fox.noisen.com in "board + smg tag + linked topics" context (which is even cooler).
It will be available from day 1, as soon as the SMG2 public beta is released.

Wow fantastic work Nao,it looks great
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: tfs on July 01, 2009, 06:30:03 PM
Quote from: IdanC on July 01, 2009, 04:20:08 PM
Quote from: thatguy on June 30, 2009, 06:46:26 PM
The biggest file I have been able to load is about 27 MB's.

I wish! my biggest problem is i can't upload anything bigger than 7mb! it's horrible...

is there anyway to upload a file to the server and connect it to SMG afterwards?

They say that Mgal2 will have this ability.  Until then you can try this... copied from my post at http://smf-media.com/community/index.php?topic=863.0

I've gotten around this by uploading a small "dummy" file in place of the actual video.  This dummy can be just a few bytes in size, created with notepad or whatever.  If your 200 MB video file is named BigVideo.WMV then name your dummy file BigVideo.WMV and upload it.  You can then FTP to your mgal_data folder and see what the actual online name of the file becomes (by default MediaGallery gives it a cryptic name), and then FTP your real video into its place.

The size of the file will show up incorrectly in MediaGallery, but you can easily fix that by going into the database using PhpMyAdmin and fixing it.  I don't recall the table/field name but it's fairly self evident when you get in there.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: jameskeaton on July 01, 2009, 09:17:58 PM
I guess I am going to uninstall, and try to find a gallery that compares.  I guess I just have one of those problems that someone would have to look at to solve it.  Thanks for your help guys, seriously.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: asifnur on July 02, 2009, 12:41:23 AM
Quote from: Thenewguy2009 on July 01, 2009, 05:59:16 PM
asifur, manual install.

Did you install the package already? If you did, just uload those attachments and Ill recode it for you.
ya  i installed the pacage allrdy
wat attachements u tlking bout?
and after i install package only admins can see it :(
and i maunal installed the Load.php and mangepermissions.php
please help dude :)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atoa on July 02, 2009, 06:57:36 AM
@nao
BTW.: any chance to have .rar/.zip support for the gallery?
I would like to create an "packages" section.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on July 02, 2009, 02:43:37 PM
ra/zip support is already built in (ie upload a zip file with pics and it uploads them all.)
archive support (ie upload a zip and it stays as a zip) is built into SMG2.

Dragooon... Any plans to release any time soon?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: asifnur on July 02, 2009, 04:45:55 PM
Quote from: asifnur on July 02, 2009, 12:41:23 AM
Quote from: Thenewguy2009 on July 01, 2009, 05:59:16 PM
asifur, manual install.

Did you install the package already? If you did, just uload those attachments and Ill recode it for you.
ya  i installed the pacage allrdy
wat attachements u tlking bout?
and after i install package only admins can see it :(
and i maunal installed the Load.php and mangepermissions.php
please help dude :)
so ny help?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: IdanC on July 02, 2009, 05:37:20 PM
Quote from: tfs on July 01, 2009, 06:30:03 PM
Quote from: IdanC on July 01, 2009, 04:20:08 PM
Quote from: thatguy on June 30, 2009, 06:46:26 PM
The biggest file I have been able to load is about 27 MB's.

I wish! my biggest problem is i can't upload anything bigger than 7mb! it's horrible...

is there anyway to upload a file to the server and connect it to SMG afterwards?

They say that Mgal2 will have this ability.  Until then you can try this... copied from my post at http://smf-media.com/community/index.php?topic=863.0

I've gotten around this by uploading a small "dummy" file in place of the actual video.  This dummy can be just a few bytes in size, created with notepad or whatever.  If your 200 MB video file is named BigVideo.WMV then name your dummy file BigVideo.WMV and upload it.  You can then FTP to your mgal_data folder and see what the actual online name of the file becomes (by default MediaGallery gives it a cryptic name), and then FTP your real video into its place.

The size of the file will show up incorrectly in MediaGallery, but you can easily fix that by going into the database using PhpMyAdmin and fixing it.  I don't recall the table/field name but it's fairly self evident when you get in there.

wow! works great!
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: tfs on July 02, 2009, 05:48:45 PM
Quote from: IdanC on July 02, 2009, 05:37:20 PM
wow! works great!

Cool.  Though as I said, version 2 should take care of this issue.  I'm so anxious to get a peek at version 2 that I can hardly stand it.  :)  I think that tonight I'll install a virgin forum or two to get ready for some testing.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: psynx on July 02, 2009, 05:52:46 PM
hello,

i have simple portal mod and this latest 1.5.6 gallery

my guess can not see the images from my gallery to the gallery block on my portal. i have checked permission to guess but still they can not access the gallery page and view images of the gallery block on my portal. and also whenever my guess opens the http://asp.isgreat.org/index.php?action=mgallery there is no images. but when i am login, i can see the images i downloaded and the images shown in my gallery block on my simple portal
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Dragooon on July 03, 2009, 01:16:05 AM
Quote from: Nao 尚 on July 02, 2009, 02:43:37 PM
ra/zip support is already built in (ie upload a zip file with pics and it uploads them all.)
archive support (ie upload a zip and it stays as a zip) is built into SMG2.

Dragooon... Any plans to release any time soon?
At your command.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: kingkingston on July 03, 2009, 01:52:14 AM
Will the next one have a better way of adding vids and clips and shows from other sites ?,i couldn't add windows mms files like the way i wanted to,just like the justintv ones where you just put the address in and it works straight away.Just wondering lads. :)
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: asifnur on July 03, 2009, 02:49:53 AM
y no 1 answering my problem? :(
also i dont think it works for 1.1.9
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on July 03, 2009, 06:48:11 AM
Hi!
I've send more images in the last day in my gallery (now over 3000).
Now i can't run Check for extra files otherwise i receive error 500 (i think is caused by overload).
All others maintenance Tasks works fine without problem.
Any idea to fix?
-
PS: what is the reason that are present extra files?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on July 03, 2009, 06:49:50 AM
Quote from: Dragooon on July 03, 2009, 01:16:05 AM
Quote from: Nao 尚 on July 02, 2009, 02:43:37 PM
ra/zip support is already built in (ie upload a zip file with pics and it uploads them all.)
archive support (ie upload a zip and it stays as a zip) is built into SMG2.

Dragooon... Any plans to release any time soon?
At your command.
ASAP!
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Atoa on July 03, 2009, 11:52:38 AM
Quote from: Nao 尚 on July 02, 2009, 02:43:37 PM
ra/zip support is already built in (ie upload a zip file with pics and it uploads them all.)
archive support (ie upload a zip and it stays as a zip) is built into SMG2.

Dragooon... Any plans to release any time soon?
So it's just a matter of "turn on" it... good.

Just a suggestion for v2.0

An way to set the max upload with mass upload.
Some times people upload 100+ images, and i want to limit them to a max of 10/upload.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on July 03, 2009, 12:02:49 PM
Hmm... I guess it would have to be made by Javascript. And I'm sure neither of us wants to delve into that. We both have war wounds because of JS ;)

I would suggest you educate your users about not taking up all of the space you offer them...
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: L'AltroWeb on July 03, 2009, 07:00:48 PM
@Nao: any info for maintenance-check extra files and error 500?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on July 04, 2009, 01:51:53 AM
Ask Dragooon, he wrote that part and I never looked into it I think.
Title: browser is stuck when clicking a link while loaded
Post by: IdanC on July 04, 2009, 02:52:30 PM
hi, i use smf 1.1.9 and smg 1.5.6.

if a user try to click any link (home, comment, etc.) while an audio file is being loaded, the browser does not respond until loading is finished. even clicking stop on the player does not help.

i couldnt find any comments about this issue, and i tested it with a few computers and a few browser, all got the same error...

i tried replacing the native dewplayer with another, but no success...

any ideas?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Bigguy on July 04, 2009, 04:54:31 PM
I was wondering. I installed this on my personal home server and for some reason it won't show pics at all. I'm pretty sure the server has all that is required to show images as they show in attachments on the forum. What would the reason be or what are some possible things I can check to get this to work. I am running the latest version of the mod and SMF.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Nao 尚 on July 05, 2009, 04:35:46 AM
@idanc> this is because your server or your browser is limiting itself to one active stream per server (or user). This is usually fixed by changing your server setup. Ask your host.
@bigguy> no idea. SMG2 b1 will be released today (that's an announcement :)), try installing it.
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: Bigguy on July 05, 2009, 11:42:49 AM
Ok I will give it a try.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Dragooon on July 05, 2009, 12:02:42 PM
SMF Media Gallery 2.0 beta 1 released!

Link to announcement (http://smf-media.com/community/index.php?topic=947.0).
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Bigguy on July 05, 2009, 12:23:06 PM
See screenshot. It should still show images though shouldn't it
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 05, 2009, 01:19:30 PM
Well then you have a configuration problem... Personal server = do you access it through the Internet or your local IP?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Bigguy on July 05, 2009, 01:29:26 PM
through the internet. I have to use the port number in the url though (8080) Would that be the problem. ???
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 05, 2009, 01:49:08 PM
Yes... It is very, very likely. I never looked into supporting URLs with port numbers, and neither did Dragooon I believe. It still might not be the reason, though, but I can't help further without admin+ftp access to your website...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Shades. on July 05, 2009, 05:15:34 PM
Just installed this on a new host with ffmpeg support and tried to upload a video and recieved this error:

Fatal error: Call to undefined method ffmpeg_frame::resize() in /home/*****/public_html/Sources/Subs-MGallery.php on line 1880
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Chaos Dragon on July 05, 2009, 06:42:55 PM
I am getting these errors in the SMF Error Logs.

http://thecommentzone.com/forum/index.php?action=admin;area=packages;sa=uninstall;package=SMFMediaGallery-1.5.6.zip;pid=46
8: Undefined index: destination
File: /home/user/public_html/domian/forum/Sources/Subs-Package.php
Line: 1273


http://thecommentzone.com/forum/index.php?action=profile;area=theme;updated
8: Undefined index: mgal_total_items
File: /home/user/public_html/domian/forum/Sources/Load.php
Line: 1315


http://thecommentzone.com/forum/index.php?action=profile;area=theme;save
8: Undefined index: mgal_total_comments
File:/home/user/public_html/domian/forum/Sources/Load.php
Line: 1316

these errors are with SMF Media Gallery 1.5.6

How can I fix this.....Also when I go to the Gallery admin things aren't what they should be...Comments will not show, submissions do not show etc. Images below.
As you will also notice the nav bar looks kinda messed up.
Looked through the file and all codes are there.
What can i do to resolve this?

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: gbsothere on July 05, 2009, 07:29:27 PM
This thread title specifies 2.0 beta, so if I'm meant to post this elsewhere, please excuse the post and point me in the right direction.

I just installed SMG 1.5.6 on SMF 1.1.9. When I try to create an album, I get this error:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwhereitestmystuff.com%2Fmgerror.jpg&hash=45c8b159007fdd65d2a5214fac8e2e253976596b)

The thing is, my server tech tells me that both mgal_data and mgal_data/albums are chmodded to 777 and that the directory path is also correct.  Could someone suggest another reason I might be getting this error?

Thanks!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Chaos Dragon on July 05, 2009, 07:35:10 PM
Quote from: gbsothere on July 05, 2009, 07:29:27 PM
This thread title specifies 2.0 beta, so if I'm meant to post this elsewhere, please excuse the post and point me in the right direction.

I just installed SMG 1.5.6 on SMF 1.1.9. When I try to create an album, I get this error:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwhereitestmystuff.com%2Fmgerror.jpg&hash=45c8b159007fdd65d2a5214fac8e2e253976596b)

The thing is, my server tech tells me that both mgal_data and mgal_data/albums are chmodded to 777 and that the directory path is also correct.  Could someone suggest another reason I might be getting this error?

Thanks!

Just a suggestion....Try chmod 755 or 644 and see what happens.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: gbsothere on July 05, 2009, 07:45:01 PM
Quote from: Chaos Dragon on July 05, 2009, 07:35:10 PM

Just a suggestion....Try chmod 755 or 644 and see what happens.


Thanks, Chaos Dragon!   I just tried that but I'm still getting the error.  I ran repair_setting.php, just in case the server tech was wrong about the directory paths, as well, but they're correct. 

I'm stumped (which is my usual state of mind).    :)

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Chaos Dragon on July 05, 2009, 07:48:34 PM
Quote from: gbsothere on July 05, 2009, 07:45:01 PM
Quote from: Chaos Dragon on July 05, 2009, 07:35:10 PM

Just a suggestion....Try chmod 755 or 644 and see what happens.


Thanks, Chaos Dragon!   I just tried that but I'm still getting the error.  I ran repair_setting.php, just in case the server tech was wrong about the directory paths, as well, but they're correct. 

I'm stumped (which is my usual state of mind).    :)

No problem....It just happened to be the case with me when I first installed the Gallery.....Got same error but since I know my host uses suPHP I went and checked those and they were chmod of 666 instead or 755 or 644...Well just keep your post up i am sure some one will help//
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: asifnur on July 05, 2009, 08:21:40 PM
when ever i try to install i always get this 2 errors :(
see the screenshot
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Chaos Dragon on July 05, 2009, 08:35:37 PM
Quote from: asifnur on July 05, 2009, 08:21:40 PM
when ever i try to install i always get this 2 errors :(
see the screenshot

that pretty much means that another mod you have installed has altered the code enough to where installing another mod using the same code line is not able to find it due to the alteration.
What you will need to do is manually install it.
Go to the mod site and at the bottom of the file download there is a Manual modification area. Pick your version Parse it and it will give you all the files and modifications you will need.
Just find the two files that are failing manually add the codes then once you have done that go ahead an finish installing.

Hope this helps.....
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: asifnur on July 05, 2009, 08:47:30 PM
i did it stull doesnt work

i also have the other galleryy installed too.. its the image gallery (SMF Gallery Lite)

is it causing the prob?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Chaos Dragon on July 05, 2009, 08:56:21 PM
I believe your  problem may be is you need to download and install the converter pack. You will find those in the mod site (http://custom.simplemachines.org/mods/index.php?mod=1365).
Don't qoute me on that......But here is a qoute from the mod site.....
QuoteThree converters are available for making your evaluation of SMG easier. You can run SMG along with another gallery, they will not conflict with each other.

Requirements

    * A working Coppermine (bridged with SMF), SMF Gallery Lite or SMF Gallery Pro installation to convert from.
    * A working fresh SMF Media Gallery installation (it should be fully functional) on the same forum. Will only work on SMF Media Gallery 1.5 and later versions.


How to convert
Download the desired file (mgconverter_*.php), and upload it to your forum's root where the SSI.php and index.php files are located.
Run it from your browser.
Follow the steps on screen, it should do the conversion by itself.

Note: this will wipe out preexisting SMF Media Gallery items, if there are any. However, your Coppermine or SMF Gallery will remain unaffected before and after the conversion.

mgconverter_cpg.php - Coppermine to SMF Media Gallery converter

What it converts

    * Items
    * Albums (user and general)
    * Comments


Note: this is only tested with CPG 1.4.x

mgconverter_sgl.php - SMF Gallery Lite to SMF Media Gallery converter
mgconverter_sgp.php - SMF Gallery Pro to SMF Media Gallery converter

What it converts

    * Items
    * Categories
    * Comments
    * Reports


Note: it is certified for use with SMF Gallery Lite 1.9 and the equivalent SMF Gallery Pro version, and theoretically should also convert later versions as well.

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: gbsothere on July 05, 2009, 09:46:51 PM
Well.....   I ran the converter and I got this:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwhereitestmystuff.com%2Fweirderror.jpg&hash=58fd45ebb7acf7cdf423c04c90408ed05df85ab6)

Think this might be related, somehow, to my other error (a few posts back)?



ETA: 

And another error, when I tried to upload an image after converting:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwhereitestmystuff.com%2Fweirderror2.jpg&hash=3ddb13cac25850e0815cac701547fd5cd278c18a)



Since I'm the administrator, I'm not too optimistic.   *grin*

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: asifnur on July 05, 2009, 10:12:40 PM
dude3 here wat i did

i converted gallery lite to mgallery but gallery lite still come up wtg?


so do i install the package after i conver? cuz i tried it 2
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Chaos Dragon on July 06, 2009, 12:15:36 AM
I am getting errors in my SMF error log for these functions which it is considering as undefined.

'mgallery' => array(
==>1315:'total_items' => $profile['mgal_total_items'],
==>1316: 'total_comments' => $profile['mgal_total_comments'],
1317: ),


How can I fix this because it is kinda messing up things in the admin section for the gallery.
There are comments and submissions but it does not show them and also have some SCREEN SHOTS (http://www.simplemachines.org/community/index.php?topic=260821.msg2145289#msg2145289) in an earlier post.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 06, 2009, 04:08:24 AM
@Chaos> Your errors are due to your mod being incorrectly installed. You will have to fix your installation manually (in Load.php I believe.)

@asifnur> Gallery Lite is not from the same author. SMG is not related to it. We added a convertor for convenience, but it doesn't remove SGL (and we refuse to do that). We believe people should be able to compare both gallery systems and keep whichever they like best. Ideally, vbgamer45 would also make a SMG->SGL converter, so anyone could always convert their gallery to the alternative system, but I'm unsure he's interested in that, and obviously I'm not going to spend time on that.

@gbso> What is your target folder for gallery data? You probably entered a dummy folder that won't work, so basically SMG is uploading to nothingness... Also, regarding your chmod problem, you probably are using safe mode -- make sure you're using SMG2 and use the MGallerySafeMode.php workaround.

@asifnur²> As for your installation problem, yes, one of your current mods is conflicting with SGL, but it is most likely not SGL, since SMG is designed to be compatible with an existing SGL/SGP install. What you can do is simply proceed with the installation and finish it manually (i.e. apply the Load.php and ManagePermissions.php changes by yourself, based on the manual parsing given on the mod page.)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Chaos Dragon on July 06, 2009, 04:27:26 AM
Actually it wasn't that at all it was the chmod. It was set at 666 and and not 755 which it should be. Get that with every install I noticed. Everything I install gets chmod 666 or 777.
So far since i did that the error hasn't shown in the logs...lets hope it stays that way...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 06, 2009, 05:38:58 AM
So that's a server configuration issue... I do have this on my own server when I upload files by FTP (according to their extension, they get chmodded to different values... Which also change over time, lol). chmod can be affected by the file owner (see chown). That's what MGallerySafeMode.php is for, too -- change the file owner by forcing an FTP upload of the file, rather than a PHP upload.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Bigguy on July 06, 2009, 07:01:50 AM
I can give you admin access later if your around. As its a home server somethings don't work like ftp.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: gbsothere on July 06, 2009, 07:52:40 AM
Quote from: Nao 尚 on July 06, 2009, 04:08:24 AM

@gbso> What is your target folder for gallery data? You probably entered a dummy folder that won't work, so basically SMG is uploading to nothingness... Also, regarding your chmod problem, you probably are using safe mode -- make sure you're using SMG2 and use the MGallerySafeMode.php workaround.


*just staring at this because I'm clueless*

My "target folder", Nao 尚?  I didn't intentionally create a dummy folder, but I suppose one may have been created, anyway.  Would this have happened during installation, or would this have been when I tried to create an album?  (I never got that far, though.) 

Can you explain to a novice what you mean by "safe mode"?  I didn't use SMG 2.0 because of the bug warning on the download page and didn't feel competent, so I downloaded 1.5.6.  Should have I have gone with 2? 

*feeling like a cyber Helen Keller* 
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 06, 2009, 08:08:40 AM
php safe mode: search Google... ahem.
Anyway.
If you don't remember changing a folder, look at smg's admin area if you can find an "mgaldata" entry in it. If yes, make sure this folder does exist (by ftp) and make sure it's in the correct location.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: gbsothere on July 06, 2009, 08:31:31 AM
Quote from: Nao 尚 on July 06, 2009, 08:08:40 AM
php safe mode: search Google... ahem.
Anyway.
If you don't remember changing a folder, look at smg's admin area if you can find an "mgaldata" entry in it. If yes, make sure this folder does exist (by ftp) and make sure it's in the correct location.



I'd better install that "Let Me Google That For You" mod, first.    :D

Thanks, Nao 尚.    I'm off to check.


Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: psynx on July 06, 2009, 09:17:44 AM
mass upload doesn't work?

how do i make it work?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 06, 2009, 09:25:42 AM
Read the docs and this topic...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Joe N on July 06, 2009, 09:41:20 AM
Quote from: Nao 尚 on July 06, 2009, 09:25:42 AM
Read the docs and this topic...

Link Would be helpful to the doc :D
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Dragooon on July 06, 2009, 10:05:36 AM
Quote from: Nao 尚 on July 06, 2009, 09:25:42 AM
Read the docs and this topic...
*Ahem*...Docs aren't public yet. I plan on completing before SMG goes RC so that I don't have to keep updating them from time to time.

Quote from: psynx on July 06, 2009, 09:17:44 AM
mass upload doesn't work?

how do i make it work?
Does normal upload work with the same file? Do you have mod_security enabled? Have you tried implementing crossdomain.xml?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: psynx on July 06, 2009, 10:09:36 AM
normal upload is ok. i can add image doing normal upload. one image at a time.

but mass upload doesn't work.

mod_security? i duno. would you guide me where this mod_security? and how do i enable it.

crossdomain.xml? i duno. help me also with it pls?

sorry, i am not so familiar with the files in mgallery.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Dragooon on July 06, 2009, 10:14:31 AM
Use google search, they are not related to SMG. They are server configurations.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: psynx on July 06, 2009, 10:41:11 AM
i'll try that later. thnx.

anyway, i still have another concern.

how do i hide the title that is showing above the image?

and also i want to hide the filename from poster information, item info.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 06, 2009, 11:33:02 AM
You can't. This is some basic ergonomy stuff. As people get to know SMG across different websites, they come to expect basic functionality to be there everywhere. Don't deprive them from that. All you can hide is in the SMG2 > admin > settings > layout area.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: tfs on July 06, 2009, 11:48:54 AM
Has anyone updated a large gallery to 2.0 B1 yet?  Just wondering.  It's awfully tempting, but for now I'm using a test install.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: kingkingston on July 06, 2009, 12:32:14 PM
What kind of lists can you put video's and clips from,does it have the same list as Aeva or is it unlimited ?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Shades. on July 06, 2009, 01:42:51 PM
Quote from: BoZilla on July 05, 2009, 05:15:34 PM
Just installed this on a new host with ffmpeg support and tried to upload a video and recieved this error:

Fatal error: Call to undefined method ffmpeg_frame::resize() in /home/*****/public_html/Sources/Subs-MGallery.php on line 1880
Can someone help me with the above error please? THX!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 06, 2009, 02:00:19 PM
@bozilla> Ask Dragooon by PM.
@kingston> Can you be more specific? What do you mean?
@tfs> Uh, a lot of people have done it... Including http://passion-xbmc.org/mgallery/ which has 18.000 entries + smg2 + foxy!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: tfs on July 06, 2009, 02:09:36 PM
Quote from: Nao 尚 on July 06, 2009, 02:00:19 PM@tfs> Uh, a lot of people have done it... Including http://passion-xbmc.org/mgallery/ which has 18.000 entries + smg2 + foxy!

OK, I'll start running the big backup and maybe update later today/tonight.  I haven't seen any update instructions.  I'm guessing it's a uninstall/reinstall rather than install over 1.5.6?
Title: white screen with embeded url
Post by: IdanC on July 06, 2009, 02:49:57 PM
hi all,

great mod, but on both versions (156 & 2b1) i get a white screen when i try adding an item with a youtube video url. adding an item with a file from my computer works great.

i tried doing it with a fresh installation of smf, and everything works great. so it's probably a wrong setting issue or a conflict in my normal installation. yet - i couldn't find anything so i come to you.

any ideas?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: kingkingston on July 06, 2009, 03:06:39 PM
Quote from: Nao 尚 on July 06, 2009, 02:00:19 PM
@bozilla> Ask Dragooon by PM.
@kingston> Can you be more specific? What do you mean?
@tfs> Uh, a lot of people have done it... Including http://passion-xbmc.org/mgallery/ which has 18.000 entries + smg2 + foxy!

Embed URL (remote videos),in this box what sites can you embed from ?,i was wondering if you can embed video's and clips from as many sites as you can with aeva ?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: asifnur on July 06, 2009, 04:47:21 PM
Quote from: Nao 尚 on July 06, 2009, 04:08:24 AM


@asifnur²> As for your installation problem, yes, one of your current mods is conflicting with SGL, but it is most likely not SGL, since SMG is designed to be compatible with an existing SGL/SGP install. What you can do is simply proceed with the installation and finish it manually (i.e. apply the Load.php and ManagePermissions.php changes by yourself, based on the manual parsing given on the mod page.)
yes i tried to do it myself... but doesnt work
well my main prob is  iignored the 2 errors then i tried like to chnge the permissions for groups to see it but only admins can not any other groups...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 06, 2009, 06:24:56 PM
@idanc> is aeva installed at all?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: S.Nieves on July 06, 2009, 06:35:40 PM
When a guest is viewing my homepage they see this in the gallery. Is there a way to fix the cose so that guest can also view this? Here is the php code I am using.

global $sourcedir, $context, $txt, $galurl, $scripturl, $settings;

require_once($sourcedir . '/Subs-MGallery.php');
loadMGal_Settings();

if (loadlanguage('MGallery') == false)
  loadLanguage('MGallery', 'english');

$items = getMediaItems(0, 7, 'RAND() DESC');

echo '
<table border="0">
  <tr>';

foreach ($items as $item)
  echo '
    <td>
      <div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">
      <a href="http://www.doggeekz.com/',$galurl,'sa=item;id=',$item['id'],'">',$item['title'],'</a><br />
      <a href="http://www.doggeekz.com/',$galurl,'sa=item;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';thumb" /></a><br />
      ',$txt['mgallery_views'],': ',$item['views'],'<br />
      ',$txt['mgallery_posted_by'],': <a href="http://www.doggeekz.com/',$scripturl,'?action=profile;u=',$item['poster_id'],'">',$item['poster_name'],'</a><br />
      ',$txt['mgallery_in_album'],': <a href="http://www.doggeekz.com/',$galurl,'sa=album;id=',$item['id_album'],'">',$item['album_name'],'</a>
      ',$item['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
      </div>
    </td>';
echo '
  </tr>
</table>';




Sorry you are not allowed to view this file. Make sure you are connected to the server.

http://www.doggeekz.com
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: ArkServer on July 06, 2009, 07:04:08 PM
is it possible to set up the permissions that guests can only see the preview image instead of the entire image?
I have rather large images and i don't want guests to leech them.

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 07, 2009, 03:25:33 AM
I'm afraid not.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: qubbah on July 07, 2009, 11:20:11 AM
after upgrade.. the youtube video only show the url... doesnt show thumbnail and cant play... i have make a maintenance but its still not show and not play...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 07, 2009, 05:10:20 PM
Im not sure when it happened.. BUT... i can no longer do mass uploads. I was once able to.

The last time I did a mass upload I was....
1. on a different server
2. on the older version of SMG

When I click on mass upload, I can select the files I want to upload. The files then load the page and each file has its own status bar... BUT... when I click on upload, nothing happens. It just sits there. My IE shows no activity in it's status bar either.

Please help me resolve this. I have 100's of images to upload and one at a time is not going to be a feasible option.

Thank you, Jared
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: thatguy on July 07, 2009, 05:12:45 PM
Now when uploading single files, I get this error:

Cannot find proper destination on the server, please contact your administrator

And when using mass upload I get this error:

Leno_Jaywalking.wmv
Leno_Jaywalking.wmv - An error happened during the upload process, please try again or contact the administrator.

It gets to 100% then returns that error.

Thank you.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 07, 2009, 06:00:29 PM
@harvester> crossdomain.xml fix, look for that in this topic or elsewhere...
@thatguy> this is due to createAlbumSubDir() returning an error, meaning the subfolder wasn't created. Make sure PHP Safe Mode is disabled, or use the Safe Mode fixer.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 07, 2009, 06:53:29 PM
Just did a search in this topic for crossdomain.xml and only result I returned was the post where you just told me to search for it lol

Can you please help me find it? "elsewhere" is extremely vague
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 08, 2009, 05:59:43 AM
Google search, then... or over at smf-media.com
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Blinker on July 08, 2009, 06:07:57 AM
Nao and Dragoon - just wanted to let you know I've upgraded to 2.0b1. Uninstall of 1.5.6 went fairly smoothly (a few minor errors requiring manual edits) and install of 2b1 went very well (again, a couple of small edits).

The new version is awesome!!!!! I'm loving it. The layout is 1000% nicer looking on my dark theme. All the items have a nice white frame around them now which was noticeably absent before.

Per album permissions are great as my members don't have to password anymore.

Love the previous/next preview strip too.

I'm sure there's more to discover as well, I just wanted to say congrats on a job very well done and thank you for all your hard work, it's very much appreciated. :)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 08, 2009, 06:20:04 AM
Thanks!
And you haven't seen the Foxy! add-on yet :D
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: thatguy on July 08, 2009, 08:15:27 AM
Quote from: Nao 尚 on July 07, 2009, 06:00:29 PM
@harvester> crossdomain.xml fix, look for that in this topic or elsewhere...
@thatguy> this is due to createAlbumSubDir() returning an error, meaning the subfolder wasn't created. Make sure PHP Safe Mode is disabled, or use the Safe Mode fixer.

Thank you much for help, if I turn safe mode off will the directory be created automatically or will I have to create it my self?

Thanks
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 08, 2009, 08:50:02 AM
I think it'll be created automatically...
Or you could use the fixer file, as I said. Then you don't have to disable it.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Blinker on July 08, 2009, 11:05:15 AM
Quick question guys: how can I change the name of the button in my menu tab from 'Gallery' to 'Media Gallery'?

Nevermind, I found it.

In modifications.english.php, I changed $txt['mgallery_gallery'] = 'Gallery'; to $txt['mgallery_gallery'] = 'Media Gallery';

That's the correct way isn't it? It worked, I just want to make sure it's not going to cause any problems
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 08, 2009, 03:00:30 PM
ok I have uploaded a file named crossdomain.xml to my root folder on my server...

the file contains

<?xml version="1.0"?>
   <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
   <cross-domain-policy>
   <allow-access-from domain="www.mydomain.com" />
   </cross-domain-policy>


I have also placed the mgallery folder in my custom themes folder


I still can not mass upload

Please help me fix this?

Thank you
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 08, 2009, 03:02:35 PM
does this mod require an htaccess file??
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 08, 2009, 04:11:23 PM
no need for htaccess.
crossdomain needs you to put all of the subdomains you use for your site into the file... Meaning the main URL and the gallery URL etc... www.something.com, something.com and *.something.com are a minimum.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: IdanC on July 08, 2009, 05:23:36 PM
enjoying ever bit of the new version!

the strange thing is that i have'nt came across any bugs yet! u sure it's a beta?!  ;)

seriously considering loading it to my live environment (http://mila.fm).

anyone done it yet?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: thatguy on July 08, 2009, 05:31:18 PM
Thank for everyone's helpful advice but the upload feature of this mod no longer works. I have turned off safe mode in the php.ini file and I still can not upload even the smallest of files. Small files used to work and now that no longer does for some reason.

Thanks all.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 08, 2009, 05:50:14 PM
@idanc> Well, there have been few bugs reported so far, we'll release a new beta later, but these are really tidbits, like a typo here and there etc... Apparently it's solid enough, yes. You may use it on a live environment, of course. Don't forget to update it everytime a new version is released.

@thatguy> try...using...the...safe mode fixer... It does stuff by ftp, so even if it's not a safe mode issue... at least it's an alternate way of doing it i guess.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 08, 2009, 10:22:14 PM
Quote from: Nao 尚 on July 08, 2009, 04:11:23 PM
no need for htaccess.
crossdomain needs you to put all of the subdomains you use for your site into the file... Meaning the main URL and the gallery URL etc... www.something.com, something.com and *.something.com are a minimum.

ok... I did that... didnt fix my problem...

what else could be causing this to not work?

As I said earlier... it did work before I switched to my new host and before I upgraded  to the latest version of SMG
I am using SMF 1.1.9 by the way.

Please help me fix this. I've got a ton of timely stuff to upload
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Dragooon on July 09, 2009, 01:27:11 AM
Can you post your exact crossdomain.xml, without removing/editing any part that you got on your server.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 09, 2009, 02:42:44 AM
And post a link to your gallery, too......
Title: Re: browser is stuck when clicking a link while loaded
Post by: IdanC on July 09, 2009, 05:54:26 AM
Quote from: IdanC on July 04, 2009, 02:52:30 PM
if a user try to click any link (home, comment, etc.) while an audio file is being loaded, the browser does not respond until loading is finished. even clicking stop on the player does not help.

Quote from: Nao 尚 on July 05, 2009, 04:35:46 AM
@idanc> this is because your server or your browser is limiting itself to one active stream per server (or user). This is usually fixed by changing your server setup. Ask your host.

actually i found that your (precious) aeva mod solves the problems.

the Indians at godaddy weren't much help...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 09, 2009, 08:09:01 AM
Uh... How does it solve it?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 09, 2009, 11:29:51 AM
Here you go:

<?xml version="1.0"?>
   <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
   <cross-domain-policy>
   <allow-access-from domain="www.thebassholes.com" />
   <allow-access-from domain="thebassholes.com" />
   <allow-access-from domain="*.thebassholes.com" />
   </cross-domain-policy>


http://www.thebassholes.com/e107_plugins/smf/smf.php?action=mgallery


Thank you guys
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 09, 2009, 11:31:42 AM
like I said it was working...

if I had to guess what was wrong I would say it had to do some with me doing the crossdomain wrong or some setting my new host has in the PHP.ini?  but I have no clue
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 09, 2009, 01:26:59 PM
Switching to a different host is by no means a trivial operation.
Their server configuration can be totally different and screw up your software.
Mostly, it's php safe mode or mod_security that gets in the way of mass upload. Both of these are set on the server itself, so you can only pray that your host will disable them.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: MissyNL on July 09, 2009, 03:41:38 PM
hello :)

I now have an other site where i use this awsome mod :)

The thing is.. i use it to host only my own images.... 
I thought that i had done the correct settings, by disabling the SMG mod for all members, so that they did not see the gallery button and giving the members acces in within the album permission setting, so that they could still see the images.

Welll... the result was not only that the members did not see the images, it also resulted in daily received mails, that there was an SMF Database Error.

So... i thought.. well.. why not ask how i can make the button disapear for the members and that it is only shown to the Admin? Like the admin controle button??

So... does anybody know i can do this?

Thank you!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: heinandar on July 09, 2009, 04:45:20 PM
Hello  all
I'm using ultimate Profile mod and

How can i show my media from smf media gallery   in media box of ultimate profile

Eg. I upload some.mp3 in smg. I want to show that mp3 in Ultimate profile.
Embeded code work in forum.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Özgür on July 09, 2009, 06:05:39 PM
Use the [smg] ? Or purchase the playlist plugin.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 09, 2009, 09:12:16 PM
What should I tell my host to do or check for concerning mod_security? Im on a dedicated server so whatever needs to be done can be done and will be done.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 10, 2009, 03:06:25 AM
You can disable it via htaccess... RTFM :P
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 10, 2009, 08:17:38 AM
Quote from: Nao 尚 on July 10, 2009, 03:06:25 AM
You can disable it via htaccess... RTFM :P

so are you saying that mod_security needs to be disabled for this mod to work?  is that safe? can it be disabled another way other than with htaccess? my server cant use htaccess files due to how my host has it set up.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 10, 2009, 08:18:22 AM
by the way... what is RTFM??
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: IdanC on July 10, 2009, 08:38:21 AM
Quote from: Nao 尚 on July 09, 2009, 08:09:01 AM
Uh... How does it solve it?

as i said, if a user plays a clip, the entire site is not responsive until the loading is finished. try this for example -
http://test.glz.fm/index.php?action=mgallery;sa=item;id=5

but, when i put the url to the same clip, and aeva uses it's player, things are better.

it is still a problem cause users can't upload via ftp and therefore can't do this trick.
but i'm counting on them uploading clips that are small enough, so they'll load quickly.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 10, 2009, 08:45:44 AM
@harvester> It depends on what you consider to be safe. If your host only has mod_security and doesn't care about the rest, then you're not safe at all, whether mod_security is enabled or not. Same as for PHP Safe Mode really... If your host won't let you setup a htaccess file, then they suck horribly. Switch to some actual host that doesn't take its customers for morons.
RTFM = Read the friggin' manual ;)
Anyone ever used Google? That's a cool website... You should use it sometimes :)

@idanc> very odd...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: genuinelytaylor on July 10, 2009, 03:26:07 PM
I got this after I uninstalled:

Fatal error: Call to undefined function DisplayFieldPostsPictures() in /home/genuinel/public_html/Sources/Load.php(1730) : eval()'d code on line 390

Please help quickly!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: shiver on July 10, 2009, 07:06:01 PM
Great Mod!!

One problem I'm having though is a custom template issue.. It seems no matter what I do, I can't get the "add new album" buttons to show after clicking "My Albums?!?

I've got everything else working perfectly within this template except this.

Oh... also the buttons that are suppose to show at the top of the "Moderation" page aren't showing, I'm assuming the same template problem is at fault.


Can anyone tell me where/what file(s) need editing?


Many thanks
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Dragooon on July 11, 2009, 12:37:28 AM
Quote from: genuinelytaylor on July 10, 2009, 03:26:07 PM
I got this after I uninstalled:

Fatal error: Call to undefined function DisplayFieldPostsPictures() in /home/genuinel/public_html/Sources/Load.php(1730) : eval()'d code on line 390

Please help quickly!
This is not related to SMG.

Quote from: shiver on July 10, 2009, 07:06:01 PM
Great Mod!!

One problem I'm having though is a custom template issue.. It seems no matter what I do, I can't get the "add new album" buttons to show after clicking "My Albums?!?

I've got everything else working perfectly within this template except this.

Oh... also the buttons that are suppose to show at the top of the "Moderation" page aren't showing, I'm assuming the same template problem is at fault.


Can anyone tell me where/what file(s) need editing?


Many thanks
MGallery.template.php is responsible for all the templates of SMG, does it work with the default theme and the original template?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: asifnur on July 11, 2009, 02:47:24 AM
mmm i think i found my problem

where do i add this code in my load.php?

"   if (empty($ID_MEMBER) && isset($_COOKIE[$cookiename]))"

cuz i cant find it any where i was manually editing then i saw i cant find tht code can any one tell where i add it ?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: asifnur on July 11, 2009, 02:53:51 AM
hey guys can any 1 see my load.php and fix it up like my whole bunch of codes are missing!
if u want it tell me
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: mark7144 on July 11, 2009, 07:27:47 PM
Nao/Dragon, I have two question, well suggestions, for the next version:

1) Would you consider having the latest album feature grab a thumbnail from each album so it shows it next to the album name? So basically it would like the 'User Albums' page but would be ordered by the last uploaded.

2) Would you have it so that it can list all albums based on date of upload but have it paginated based on how many you choose to show on each page?

Congratulations on 2.0 :)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Lighting_site on July 11, 2009, 08:08:47 PM
I have this error on 2.0 1 beta.

8: Undefined index: Make
Archivo: /home/content/p/a/b/pablofgc/html/elder/chadow/blackro/forums/Sources/MGallery-Exif.php
Línea: 492

How can I fix it?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: asifnur on July 11, 2009, 10:18:47 PM
Quote from: asifnur on July 11, 2009, 02:53:51 AM
hey guys can any 1 see my load.php and fix it up like my whole bunch of codes are missing!
if u want it tell me
24 hours passed .. no anser pls help
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: sneijder23 on July 12, 2009, 08:03:01 AM
Hello,
my problem is that the content where the images are visualized remains but wide of the head (pic1) ,like I can adjust it?
Upon entering to see an image the footer is seen equal (pic2)

,thanks.

PIC1
(https://www.simplemachines.org/community/index.php?action=dlattach;topic=323579.0;attach=106486;image)

PIC2
(https://www.simplemachines.org/community/index.php?action=dlattach;topic=323579.0;attach=106488;image)

PD:with mozilla firefox is visualized well but with IE is seen like the image
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Blinker on July 12, 2009, 08:26:56 AM
Hi guys

Apologies if this has been answered before but how do I stop quote marks (" ") in comments etc showing up with &quot; in place of the quote marks?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: lash on July 12, 2009, 03:36:33 PM
Hi there,

encountering a problem on the beta,

been trying to get around this for the past 4 hours. but am out of options.


the albums i've created are only visible to myself [ admin ] and the regular members.  the members that i have assigned to other groups do not get to see the albums even if they are set to see them in permissions.

1 way i found to "solve" it, is to make those other groups either MODERATE or ADMINISTRATE the albums - but i don't want them to either moderate nor administrate,

i only need them to SEE and COMMENT the albums.

any solution for this? glad for any help :)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: exner2009 on July 12, 2009, 07:00:33 PM
This Is A very cool mod , but after installing it works fine on the default template but not the classic yabb theme which i use. There is no button showing on the theme board, how can i fix this , any help would be apprecited.

http://prairiewind.hostei.com/forum/index.php
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Kindred on July 12, 2009, 08:07:28 PM
as with any other mod, this mod only installs in the default theme. You will have to apply the changes manually to your custom themes.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: kingkingston on July 12, 2009, 09:21:07 PM
Quote from: exner2009 on July 12, 2009, 07:00:33 PM
This Is A very cool mod , but after installing it works fine on the default template but not the classic yabb theme which i use. There is no button showing on the theme board, how can i fix this , any help would be apprecited.

http://prairiewind.hostei.com/forum/index.php
you have to create the button
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: asifnur on July 12, 2009, 10:37:19 PM
Quote from: asifnur on July 11, 2009, 02:47:24 AM
mmm i think i found my problem

where do i add this code in my load.php?

"   if (empty($ID_MEMBER) && isset($_COOKIE[$cookiename]))"

cuz i cant find it any where i was manually editing then i saw i cant find tht code can any one tell where i add it ?
---------------------------------
hey guys can any 1 see my load.php and fix it up like my whole bunch of codes are missing!
if u want it tell me

here my load.php
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: asifnur on July 13, 2009, 10:41:48 PM
ok so i installed 1.5.6 smf media gallery ut having one problem..
i uplaoded a music but i can download it but i cant hear it wats the problem can any 1 tell me?
and look at the pic i attached
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: sneijder23 on July 14, 2009, 05:07:50 PM
the suport that give for this mod in this topic or in it official page is 0
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Kindred on July 14, 2009, 06:25:45 PM
???

Support is given both here and at smf-media.com
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: kingkingston on July 14, 2009, 10:52:39 PM
Any idea why justin.tv video's can be embeded on mozilla but not IE,when you watch them on firefox they show but on IE they come up with this

Invalid error code 1337
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Dragooon on July 15, 2009, 11:12:53 AM
Quote from: kingkingston on July 14, 2009, 10:52:39 PM
Any idea why justin.tv video's can be embeded on mozilla but not IE,when you watch them on firefox they show but on IE they come up with this

Invalid error code 1337
I guess it may be an issue on their side, since AEVA only uses their embed code.

Quote from: sneijder23 on July 14, 2009, 05:07:50 PM
the suport that give for this mod in this topic or in it official page is 0
Uh what?

Quote from: asifnur on July 13, 2009, 10:41:48 PM
ok so i installed 1.5.6 smf media gallery ut having one problem..
i uplaoded a music but i can download it but i cant hear it wats the problem can any 1 tell me?
and look at the pic i attached
Does it work in default theme? What version of FireFox is that? Do you have Adobe Flash Player installed?

Quote from: asifnur on July 12, 2009, 10:37:19 PM
Quote from: asifnur on July 11, 2009, 02:47:24 AM
mmm i think i found my problem

where do i add this code in my load.php?

"   if (empty($ID_MEMBER) && isset($_COOKIE[$cookiename]))"

cuz i cant find it any where i was manually editing then i saw i cant find tht code can any one tell where i add it ?
---------------------------------
hey guys can any 1 see my load.php and fix it up like my whole bunch of codes are missing!
if u want it tell me

here my load.php
It seems fine.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: asifnur on July 15, 2009, 04:16:33 PM

[/quote]
Does it work in default theme? What version of FireFox is that? Do you have Adobe Flash Player installed?
[/quote]

im using default theme+ newest firefox + adobe flash player

i'll pm u my site how bout tht dude?
can u like see it or u dont want to?
i cant give u my files if u wanan chk the codes and ******?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: FMETALX on July 16, 2009, 07:35:59 AM
Hello, I was curious if it is possible to import files from one smf gallery to another? One of my sites had the database ruined, and I was curious if there was anyway to save the old images. I tried downloading them to my hd and doing the following -

I changed this:
Quote from: Straight from FTP416_800-by-600-77805-20051014001138_jpg1d4e7b060dd8012755ae44f18dac2674_extjpg

to this:
Quote from: After I changed it416_800-by-600-77805-20051014001138_jpg1d4e7b060dd8012755ae44f18dac2674_ext.jpg

However, that didn't seem like it worked because all my images ended up looking like this:



I also tried using a batch file to change them all to .png and that REALLY didn't work lol. Any ideas?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 16, 2009, 09:43:33 AM
Quote from: sneijder23 on July 14, 2009, 05:07:50 PM
the suport that give for this mod in this topic or in it official page is 0
And as a language moderator, your mastery of English is quite impressive too.

So, I was on a 5-day trip to Holland, I just came back and I'm being criticized for taking my first days off since March. On a free job. Good spirit, guys!

Seriously, that's precisely this kind of stupid message that draws me away from community work. For one cool guy/gal who appreciates the work and/or helps me with me, there are 10 bozos like this one who make me want to stay away from SMG/Aeva even longer.

I'm hereby resigning from any tech support on this topic. I won't be available for questions on SMG. Any PMs about SMG will be trashed immediately.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Soms on July 16, 2009, 01:36:19 PM
Quote from: Nao 尚 on July 16, 2009, 09:43:33 AM
Seriously, that's precisely this kind of stupid message that draws me away from community work. For one cool guy/gal who appreciates the work and/or helps me with me, there are 10 bozos like this one who make me want to stay away from SMG/Aeva even longer.

I'm hereby resigning from any tech support on this topic. I won't be available for questions on SMG. Any PMs about SMG will be trashed immediately.

Hey Nao, I don't agree with your maths either! I think it is the other way round. For every 10 cool guys/gals who appreciate your work, there is 1 complete bozo who is a pain in the ass. The problem as I see it is that the 1 bozo spoils the fun for everyone else. And you take the bozos too seriously.

I really hope you'll consider because most of us appreciate the work you do on this and the AEVA mod. I think Dragoon is cool too.

PS. (and this is way off topic!) If I knew you were in Holland, I would have invited you over for a drink.  :D  I hope you had a nice time. 
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: mark7144 on July 16, 2009, 02:35:16 PM
I agree with Soms.

It's a shame the good guys are punished for what the bad guys do.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 16, 2009, 05:36:53 PM
Quote from: Soms on July 16, 2009, 01:36:19 PM
Hey Nao, I don't agree with your maths either! I think it is the other way round. For every 10 cool guys/gals who appreciate your work, there is 1 complete bozo who is a pain in the ass. The problem as I see it is that the 1 bozo spoils the fun for everyone else. And you take the bozos too seriously.
The other issue is that these bozos often happen to have a SMF Team badge next to their account name... Talk about a family... :-/

QuotePS. (and this is way off topic!) If I knew you were in Holland, I would have invited you over for a drink.  :D  I hope you had a nice time.
Hmm I couldn't sleep correctly for several days (I missed my good old bed), but it's a fine country. Visited Amsterdam for a day, and then we stayed at a friend's in the Rotterdam suburbs for a couple of days.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Kindred on July 16, 2009, 09:34:22 PM
Hey... I'm not a bozo!   maybe a ronald or a blinko....
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: kingkingston on July 16, 2009, 11:02:45 PM
Can we have a list of what site's we can embed from because im not sure if all sites are supported :)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Richmedia on July 16, 2009, 11:24:43 PM
I hope that I have a simple question, I tried searching with no results, maybe I wasn't phrasing it correctly. 197 pages is a lot of thread to wade through.

I installed SMF Media Gallery a couple of months ago (SMF 1.19) and the basic install went without a hitch. Created a few general albums, custom icons, user albums, etc. Love all of the nifty features, especially the simple embedding and familiar commenting.

Here's the problem: I can't get video to upload, it tries for a while and then kicks back to the original add an item text editor/submit panel and it's blank. I'm not getting any error codes (unless they're in the error logs, I'll look in a minute) either. I've set the maximum file size to nearly 40 MBs, and a 5 MB video won't upload. Nothing fancy, just regular AVI or QuickTime .mov files. Embedded video works fine, as do pictures, although the largest that I've tried was around 700kb.

Permissions for the mgal_data directory were set at 755, I changed them to 777 with no change. Has anyone ran into this before?

thanks!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: asifnur on July 16, 2009, 11:58:54 PM
Quote from: Richmedia on July 16, 2009, 11:24:43 PM
I hope that I have a simple question, I tried searching with no results, maybe I wasn't phrasing it correctly. 197 pages is a lot of thread to wade through.

I installed SMF Media Gallery a couple of months ago (SMF 1.19) and the basic install went without a hitch. Created a few general albums, custom icons, user albums, etc. Love all of the nifty features, especially the simple embedding and familiar commenting.

Here's the problem: I can't get video to upload, it tries for a while and then kicks back to the original add an item text editor/submit panel and it's blank. I'm not getting any error codes (unless they're in the error logs, I'll look in a minute) either. I've set the maximum file size to nearly 40 MBs, and a 5 MB video won't upload. Nothing fancy, just regular AVI or QuickTime .mov files. Embedded video works fine, as do pictures, although the largest that I've tried was around 700kb.

Permissions for the mgal_data directory were set at 755, I changed them to 777 with no change. Has anyone ran into this before?

thanks!

i think ur hvin my problem idk...

but guys no 1 helped fro thus prb
"ok so i installed 1.5.6 smf media gallery ut having one problem..
i uplaoded a music but i can download it but i cant hear it wats the problem can any 1 tell me?
"
look at this img

http://smf-media.com/community/index.php?action=dlattach;topic=1002.0;attach=678;image
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Richmedia on July 17, 2009, 12:10:48 AM
Quote from: Richmedia on July 16, 2009, 11:24:43 PM
I hope that I have a simple question, I tried searching with no results, maybe I wasn't phrasing it correctly. 197 pages is a lot of thread to wade through.

I installed SMF Media Gallery a couple of months ago (SMF 1.19) and the basic install went without a hitch. Created a few general albums, custom icons, user albums, etc. Love all of the nifty features, especially the simple embedding and familiar commenting.

Here's the problem: I can't get video to upload, it tries for a while and then kicks back to the original add an item text editor/submit panel and it's blank. I'm not getting any error codes (unless they're in the error logs, I'll look in a minute) either. I've set the maximum file size to nearly 40 MBs, and a 5 MB video won't upload. Nothing fancy, just regular AVI or QuickTime .mov files. Embedded video works fine, as do pictures, although the largest that I've tried was around 700kb.

Permissions for the mgal_data directory were set at 755, I changed them to 777 with no change. Has anyone ran into this before?

thanks!

Update:

I did find two error codes in the admin area.

8: Undefined index: gallery_shop_commentadd
File: /home/Forums/Themes/default/languages/MGallery.english.php (settings sub template - eval?)
Line: 1318

8: Undefined index: gallery_shop_picadd
File: /home/Forums/Themes/default/languages/MGallery.english.php (settings sub template - eval?)
Line: 1317

Any clues?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Akyhne on July 17, 2009, 03:02:32 AM
Quote from: Nao 尚 on July 16, 2009, 09:43:33 AM
And as a language moderator, your mastery of English is quite impressive too.
Language moderators are not translators or nessescarily involved in anything English related. They are "only" moderators of their native language boards. So they just need to be able to speak their own language properly ;)
Title: Re: SMF Media Gallery (SMG) - Album List
Post by: Bobzr on July 17, 2009, 04:19:23 AM
I have just installed SMG 1.5.6 on SMF 1110 and TP 104 and I think it's a great mod to use hands in hands with TP. But there's something I don't know whether it's a bug or am I missing something. I've imported more than 100 albums from Coppermine and they all show in ONE single page! no "next" "back" buttons! I searched diffrent forums but I couldn't find anything on this matter. Can anyone using SMG shed some light?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 17, 2009, 05:21:41 AM
@kingkingston> Install Aeva and you can embed from any site in its list...
@akyhne> Yeah, GravuTrad has the same problem with English, only he's a nice fellow, he doesn't post on a topic to pick on the mod owners because they've been away for a couple of days... I was told a few months ago that anyone with a SMF badge should try and follow the Team guideline.
@rich> check your php.ini max upload settings
@rich²> gallery_shop_* is not related to SMG... Probably SMF Gallery Lite or Pro. Uninstall it.
@bobzr> url.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Richmedia on July 17, 2009, 06:30:01 AM
Quote from: Nao 尚 on July 17, 2009, 05:21:41 AM

@rich> check your php.ini max upload settings
@rich²> gallery_shop_* is not related to SMG... Probably SMF Gallery Lite or Pro. Uninstall it.

I wondered about that "shop" thing too. I'll check the php.ini

thanks
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 18, 2009, 04:45:48 AM
Im running SMF 1.1.10

I have 1.5.6 SMG installed

Im trying to install 2.0b1

in my packages window it shows 2.0b1 as being an "older version" and gives no link to "[Apply Mod]"  only links are to [list Files] and [Delete]



Also, I just tried to upload a video to 1.5.6 that is about 95meg. After about an hour of what looked like a successful upload in progress... my screen refreshed and it showed the blank upload screen with no text in any of the fiields and no file selected... the file i was uploading was nowhere to be found. My max upload in my php.ini is set to 128meg...

what would cause this?

please help[/list]
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Kindred on July 18, 2009, 05:14:14 AM
well, you have to uninstall 1.5.6 first....
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: FMETALX on July 18, 2009, 08:07:41 PM
I know you have alot to do but if you get the time could you look into this problem (http://www.simplemachines.org/community/index.php?topic=260821.msg2161653#msg2161653)? I also wanted to say this is my favorite SMF Mods! Good work :)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 19, 2009, 02:00:11 AM
Generally speaking, no answer = I don't know. And I don't know. Probably a corrupted hard drive, too...?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Jyohan on July 19, 2009, 02:24:25 PM
Hi on install I get "4.   Execute Modification   ./Sources/Load.php              Test failed"  I read that I have to add something to the load.php but I have very little experience doing this so I don't know what to add or where to add it in the file. can anyone give me a hand?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: asifnur on July 20, 2009, 04:37:42 PM
when ever i try uninstalling smg 2.0b1
i get this error
8: Undefined index: destination
File:/Sources/Subs-Package.php
Line: 971

??
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: madinmex on July 21, 2009, 08:04:50 AM
Maybe someone else has worked this out (please)

I wish for all guests and members to view the gallery. I would like to restrict newbies to viewing rather than adding an album or posting to a general album.

I would also like to allow regular members to upload with self approval as at this moment in time as I am the only regulator.

The problem is that under permissions newbies fall into the same category as regular members which is 'all for one and one for all'.

I am using 2.RC1.2. Does any one use something similar and if so how do you set the permission ?  I've tried membergroups, permissions etc but cannot find the answer.

Sorry if I've missed something obvious  ;)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: ethankcvds on July 21, 2009, 08:15:18 AM
Quote from: madinmex on July 21, 2009, 08:04:50 AM
Maybe someone else has worked this out (please)

I wish for all guests and members to view the gallery. I would like to restrict newbies to viewing rather than adding an album or posting to a general album.

I would also like to allow regular members to upload with self approval as at this moment in time as I am the only regulator.

The problem is that under permissions newbies fall into the same category as regular members which is 'all for one and one for all'.

I am using 2.RC1.2. Does any one use something similar and if so how do you set the permission ?  I've tried membergroups, permissions etc but cannot find the answer.

Sorry if I've missed something obvious  ;)

It's already there. admin>members>permissions>General Permissions
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Kindred on July 21, 2009, 08:24:40 AM
note: apply the permissions to the POST COUNT based groups rather than the general members group
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 21, 2009, 10:01:33 AM
What changes?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 21, 2009, 11:11:13 AM
Quote from: Kindred on July 18, 2009, 05:14:14 AM
well, you have to uninstall 1.5.6 first....

Where can I find instructions on how to uninstall it?
or
do I just use the [uninstall] "button" in the admin>packages panel? will this remove my galleries and all the images and videos members and myself have uploaded?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: ethankcvds on July 21, 2009, 11:38:03 AM
Quote from: Harvester on July 21, 2009, 11:11:13 AM
Quote from: Kindred on July 18, 2009, 05:14:14 AM
well, you have to uninstall 1.5.6 first....

Where can I find instructions on how to uninstall it?
or
do I just use the [uninstall] "button" in the admin>packages panel? will this remove my galleries and all the images and videos members and myself have uploaded?

Just hit uninstall. I would make a copy of the folder just in case it decides to delete it(to be on the safe side.)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: madinmex on July 21, 2009, 01:34:33 PM
Quote from: Kindred on July 21, 2009, 08:24:40 AM
note: apply the changes to the POST COUNT based groups rather than the general members group

Thanks Kindred, finally managed it at long last  :)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: asifnur on July 22, 2009, 06:57:13 PM
Quote from: asifnur on July 20, 2009, 04:37:42 PM
when ever i try uninstalling smg 2.0b1
i get this error
8: Undefined index: destination
File:/Sources/Subs-Package.php
Line: 971

??
can any1 help ???
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: ethankcvds on July 22, 2009, 07:15:40 PM
Quote from: asifnur on July 22, 2009, 06:57:13 PM
Quote from: asifnur on July 20, 2009, 04:37:42 PM
when ever i try uninstalling smg 2.0b1
i get this error
8: Undefined index: destination
File:/Sources/Subs-Package.php
Line: 971

??
can any1 help ???

It's a bug with SMF's package manager it happens with other mods also.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: plusev on July 22, 2009, 08:59:11 PM
I installed the MOD on 2 RC1.2 and encountered the following install errors:

6. Execute Modification ./Sources/Load.php Test failed
  1. Replace ./Sources/Load.php Test failed
  2. Replace ./Sources/Load.php Test failed
  3. Add After ./Sources/Load.php Test successful
  4. Add Before ./Sources/Load.php Test successful

I did the replacing and adding, cleared cache and still the same. Please advise. Thx
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: asifnur on July 22, 2009, 10:40:29 PM
Quote from: ethankcvds on July 22, 2009, 07:15:40 PM
Quote from: asifnur on July 22, 2009, 06:57:13 PM
Quote from: asifnur on July 20, 2009, 04:37:42 PM
when ever i try uninstalling smg 2.0b1
i get this error
8: Undefined index: destination
File:/Sources/Subs-Package.php
Line: 971

??
can any1 help ???

It's a bug with SMF's package manager it happens with other mods also.
so how i uninstall it ?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: ethankcvds on July 22, 2009, 11:33:11 PM
@asifnur Just uninstall it like you normally would(You may have to click uninstall twice ignore the errors about failed files.).

@plusev Which version of SMG?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: plusev on July 23, 2009, 08:49:28 AM
2.0 beta 1 released

I ended up having to upload a back up of load.php - the one I posted cause a 500 server error. See anything wrong with it?

Thx
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: ethankcvds on July 23, 2009, 10:07:04 AM
Find:// SMF Media Gallery if (isset($_REQUEST['upcook'])) $_COOKIE[$cookiename] = base64_decode(urldecode($_REQUEST['upcook']));

replace with:
// SMF Media Gallery
if (isset($_REQUEST['upcook'])) $_COOKIE[$cookiename] = base64_decode(urldecode($_REQUEST['upcook']));
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: plusev on July 23, 2009, 10:25:53 AM
Still getting the same install and DB errors.

Thx
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: ethankcvds on July 23, 2009, 10:38:23 AM
Those lines of code are already in your load.php. Just ignore them and hit install.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: plusev on July 23, 2009, 10:46:57 AM
It did install. In the Gallery About I have this:

Server information and installed modules
SMF Version: SMF 2.0 RC1.2 PHP Version: 5.2.0-8+etch13
FFMPEG:  x
GD2:  2.0 or higher
ImageMagick: x (IMagick: x - MagickWand: x)

Is this OK?
Thx
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: asifnur on July 23, 2009, 07:43:01 PM
Quote from: ethankcvds on July 22, 2009, 11:33:11 PM
@asifnur Just uninstall it like you normally would(You may have to click uninstall twice ignore the errors about failed files.).

@plusev Which version of SMG?
ethan if i click uniinstall a white page with the error comes up s o ya
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: asifnur on July 23, 2009, 07:43:54 PM
-edit-- its fixed :)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: TheListener on July 23, 2009, 10:06:44 PM
When approving a members photos the banner was bright yellow.

Can this be changed to a colour which is more pleasing to the eye?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: ianus on July 24, 2009, 01:26:59 AM
Quote from: TheListener on July 23, 2009, 10:06:44 PM
When approving a members photos the banner was bright yellow.

Yes, horrid, isn't it?

You can change the style.css which comes with this mod.
Path: /Themes/default/mgallery/style.css
or the path to your custom theme if you have installed the mod there also.

Search for
Quote.unapproved_notice
and change the color(s) to fit your needs.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: TheListener on July 24, 2009, 10:31:16 AM
Thanks Ianus.

All I need now is a guinea pig er I mean member to test it.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 24, 2009, 12:17:18 PM
ok I uninstalled 1.5.6 and installed 2 with no problems at all. Everything seems to work fine (except no mass upload still) however I do not see where I can use FTP to mass upload. How do I access that?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: ethankcvds on July 24, 2009, 12:40:25 PM
@plusev  If you can access everything the gallery installed then yes everything is fine.

@Harvester When you went to use Mass Upload after Selecting the files did you click on the Upload option and then the Submit button on the bottom? If you did that extract 2.0 Beta 1 and take a look at MGallerySafeMode.php to use FTP.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 24, 2009, 12:57:13 PM
oh ok ... I see what you are speaking of

I always wondered... when you enter pw and username in a php file like that... what prevents someone from just reading that file and gaining access?

by the way, where does the edit MGallerySafeMode.php go once I edit it?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: ethankcvds on July 24, 2009, 01:09:58 PM
Quote from: Harvester on July 24, 2009, 12:57:13 PM
oh ok ... I see what you are speaking of

I always wondered... when you enter pw and username in a php file like that... what prevents someone from just reading that file and gaining access?

by the way, where does the edit MGallerySafeMode.php go once I edit it?

1.PHP has a way of telling Whither or not it should be displayed or not. <?php echo 'Hello World!'?> <-Displayed <?php $_GET["User_name"]; ?><- Won't display unless you put an echo in there.
2. Anywhere.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 24, 2009, 01:15:05 PM
Quote from: ethankcvds on July 24, 2009, 01:09:58 PM
Quote from: Harvester on July 24, 2009, 12:57:13 PM
oh ok ... I see what you are speaking of

I always wondered... when you enter pw and username in a php file like that... what prevents someone from just reading that file and gaining access?

by the way, where does the edit MGallerySafeMode.php go once I edit it?

1.PHP has a way of telling Whither or not it should be displayed or not. <?php echo 'Hello World!'?> <-Displayed <?php $_GET["User_name"]; ?><- Won't display unless you put an echo in there.

ooo ok cool! thank you for the explanation :D
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 24, 2009, 01:15:46 PM
QuoteOnce you entered your FTP account information, rename the file to
something smart, go to the Admin > SMG > Settings area, and enter
the absolute file path to this new file. You're good to go.

I dont see where to input this info...

the only place I see a path is my "Data directory path"
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: ethankcvds on July 24, 2009, 01:53:07 PM
Quote from: Harvester on July 24, 2009, 01:15:46 PM
QuoteOnce you entered your FTP account information, rename the file to
something smart, go to the Admin > SMG > Settings area, and enter
the absolute file path to this new file. You're good to go.

I dont see where to input this info...

the only place I see a path is my "Data directory path"

I was looking at that also. Now I'm looking at the files to see what I can find there.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 24, 2009, 04:44:11 PM
Quote from: ethankcvds on July 24, 2009, 01:53:07 PM
Quote from: Harvester on July 24, 2009, 01:15:46 PM
QuoteOnce you entered your FTP account information, rename the file to
something smart, go to the Admin > SMG > Settings area, and enter
the absolute file path to this new file. You're good to go.

I dont see where to input this info...

the only place I see a path is my "Data directory path"

I was looking at that also. Now I'm looking at the files to see what I can find there.

any luck yet?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: ethankcvds on July 24, 2009, 06:13:24 PM
Yeah I think I figured out where the problem is at when your in the settings area there should be a place to put the location of where the MGallerySafeMode.php is supposed to be, but its no there from what I'm seeing of the code.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 24, 2009, 08:26:54 PM
maybe dragoon or nao can clear this up for us :D
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Soms on July 25, 2009, 05:36:01 AM
I have finally upgraded to SMF Media Gallery (SMG) - 2.0 beta 1. Now I keep getting these in the error log every time someone visits the forum. I woke up this day to find 2000 pages (!) of these.  Did I miss something?

Quote2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument
File: /mnt/web4/21/50/51458650/htdocs/Sources/BoardIndex.php
Line: 293

And this
Quote8: Undefined index: view_only_boards
File: /mnt/web4/21/50/51458650/htdocs/Sources/BoardIndex.php
Line: 293
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: ethankcvds on July 25, 2009, 08:00:21 AM
Quote from: Soms on July 25, 2009, 05:36:01 AM
I have finally upgraded to SMF Media Gallery (SMG) - 2.0 beta 1. Now I keep getting these in the error log every time someone visits the forum. I woke up this day to find 2000 pages (!) of these.  Did I miss something?

Quote2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument
File: /mnt/web4/21/50/51458650/htdocs/Sources/BoardIndex.php
Line: 293

And this
Quote8: Undefined index: view_only_boards
File: /mnt/web4/21/50/51458650/htdocs/Sources/BoardIndex.php
Line: 293

Did you recently uninstall any other mods?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Soms on July 25, 2009, 11:30:52 AM
Quote from: ethankcvds on July 25, 2009, 08:00:21 AM
Did you recently uninstall any other mods?

No. The only only one I uninstalled was the previous version of SMG.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: ethankcvds on July 25, 2009, 11:52:59 AM
Quote from: Soms on July 25, 2009, 11:30:52 AM
No. The only only one I uninstalled was the previous version of SMG.

The second one is an error with the view only boards mod.
The first I'm sure has something to do with an other mod also.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Soms on July 25, 2009, 01:33:32 PM
Do you think SMG permission system is conflicting with an existing mod or set of permissions?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 25, 2009, 11:44:24 PM
just installed SMG 2 on SMF 1.1.10 yesterday... cant vote on any items any longer. I can drop down to select the vote but when I hit vote nothing happens.

dont knwo if any of the following info helps but....

IE7's status bar says "Error on Page."

I see no errors in my Forum Error Log.




Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 25, 2009, 11:56:15 PM
Also, any chance on getting some help getting the FTP feature to work? I edited the proper php file... but see nowhere to enter the path so SMG knows.

When I go to FTP I see all my albums in the drop down... but when I highlight one and click "Submit" it does nothing and then errors are generated in the forum error log.

the errors generated are:

2: mysql_real_escape_string() expects parameter 2 to be resource, null given
File: /..../..../.../...../...../myforums/Sources/Subs-MGallery-Vital.php
Line: 328

and

8: Undefined variable: connection
File: /..../..../.../...../...../myforums/Sources/Subs-MGallery-Vital.php
Line: 328

im guessing these have to do with the fact that SMG doesnt know where my php with the user and pw for my ftp are located?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 26, 2009, 02:25:59 AM
That's a bug I fixed in beta 2. See smf-media.org.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: ultide on July 26, 2009, 07:22:00 AM
hi...
how to show recent images on board index ?
Also random images on index.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Kindred on July 26, 2009, 07:42:15 AM
ultide....  try using search?   It's been answered a few times both here and on smf-media.org.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 26, 2009, 11:48:58 AM
People are never happy. They complain about one thing, and then when we do it, other people will complain. Never going to end...

How about we remove all of your painfully uploaded pictures everytime you uninstall SMG to upgrade it?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 26, 2009, 11:58:42 AM
Quote from: Nao 尚 on July 26, 2009, 02:25:59 AM
That's a bug I fixed in beta 2. See smf-media.org.

Where? which post/thread discusses this bug and the fix to it?

Ive been searching smf-media.com for a long time now this morning and I can not find anything that addresses the problem I reported in my previous post.

Im guessing I am using the wrong search criteria on smf-media.com   

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 26, 2009, 12:07:35 PM
Quote from: robone on July 26, 2009, 11:31:52 AM
I managed to find all the files. I would have thought that when one uninstalls a mod it would remove all presence of itself.

Cheers

ugh! Bite your tongue!

That would make upgrading a ROYAL pain and it would mean losing all the images/videos that have already been uploaded to the SMG's mgal_data folder. That would suck!

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Soms on July 26, 2009, 12:19:08 PM
Nao (or Dragoon) can you offer any wisdom about this (http://www.simplemachines.org/community/index.php?topic=260821.msg2175560#msg2175560)?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Rockz on July 26, 2009, 01:16:01 PM
I just installed SMG for the first time.  I set up a test gallery as Admin and set permissions both for access through SMF as well as the relevant permissions for the gallery under SMG.

Now when I log in as a member that should have permission to view the gallery, I am unable to see anything.  I do get the Gallery button on the menu at the top, but clicking that just brings up an empty screen with the Stats button.  It does show Total Albums: 1, but I can't see the actual album.

Thoughts on what I might be overlooking? 

Thanks.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 26, 2009, 05:42:48 PM
@soms> it's not a SMG bug. And I said I'm no longer willing to support SMG. I'm still reading the topic but I'm only planning to answer messages that show I'm clearly at fault (bug on my side, etc.)
@harvester> click on my name (on smf-media), then "show attachments"... That should be the latest one, obviously. I'm only saying this because it's definitely the thing to do on all boards when you're looking for an attachment by a particular person.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: PRaDiUS on July 26, 2009, 11:42:02 PM
do we know when beta 2 is coming? and is this beta safe that i should install it on my forum or would i be better off sticking with 1.5.6 for now?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: TheListener on July 26, 2009, 11:47:33 PM
Pradius I use SMF Media Gallery 2.0 beta 1

and love it.

The staff and members do too.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 27, 2009, 12:50:11 AM
ok updated using smg2b files that you posted today Nao

no more errors in my forum error log

BUT

I still dont see where to define my absolute file path as it directs me to within the MGallerySafeMode.php

Quote// Once you entered your FTP account information, rename the file to
// something smart, go to the Admin > SMG > Settings area, and enter
// the absolute file path to this new file. You're good to go.

I also still can not rate any images in the gallery.

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 27, 2009, 02:27:05 AM
If you don't see the text box (in the security settings), then it means your server is NOT in Safe Mode... And you don't need the file!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 27, 2009, 04:10:30 AM
Quote from: Nao 尚 on July 27, 2009, 02:27:05 AM
If you don't see the text box (in the security settings), then it means your server is NOT in Safe Mode... And you don't need the file!

any idea why I cant get FTP to work  then?

What should happen when I go to the FTP tab in the admin panel of SMG and I select a folder from the drop down? or when I click submit?
currently nothing happens.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 27, 2009, 07:47:25 AM
FTP import has nothing to do with safe mode.
I didn't write the FTP import code though, so you'll have to ask Dragooon about it. Both of us are really more comfortable with the functions we wrote by ourselves (given that SMG is such a complicated piece of...)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Kindred on July 27, 2009, 07:52:56 AM
I just used FTP to upload about 200 files.

using your ftp program, go to the ftp folder in mgal_data
using your ftp programs, load all of the images for a single directory

in gallery admin, go to ftp and select a folder (all of the image files that you just uploaded should be listed)
click proceed.

All of those files are moved into the chosen folder and thumbnails generated.

You can now load files into the ftp directory for the next folder... or edit the uploaded images
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 27, 2009, 01:34:27 PM
Awesome! Thank you Kindred! Worked perfectly!

I had no idea how to use the FTP feature.

Is there a manual for SMG or someplace that I can read how the features work?

There are several things Im not 100% sure about that Id like to read up on.... though the FTP feature was the biggest.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Harvester on July 27, 2009, 11:14:41 PM
I created 55 new folders on my pc, one for each state plus japan, mexico, south africa, italy and canada. I was hoping I could then just go to FTP and upload all the folders to a parent folder and save myself a lot of work.

Sadly I was mistaken

Is there anyway to upload a folder via FTP? or is that something not possible yet?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Kindred on July 28, 2009, 01:17:33 AM
as far as I know, the system will take any FILES in the ftp directory and allow you to place them in any gallery folder.

It will not create a folder structure or anything like that... just the image files.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Dragooon on July 28, 2009, 02:17:49 AM
Actually you're wrong there Kindred, it'll show you the whole folder structure and allow you to select the album for each folder.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 28, 2009, 02:42:57 AM
Yeah, you can simply select the contents of a subfolder and direct it to an already created album. I did it for Foxprog. Importing many albums at a time. Dragooon did a good job on that. But it won't create the albums automatically, nope.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Soms on July 28, 2009, 03:28:30 AM
Quote from: Soms on July 26, 2009, 12:19:08 PM
Nao (or Dragoon) can you offer any wisdom about this (http://www.simplemachines.org/community/index.php?topic=260821.msg2175560#msg2175560)?

Never mind. Problem solved!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Kindred on July 28, 2009, 09:08:32 AM
wow.... neat.   that IS a good job.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Soms on July 28, 2009, 10:10:48 AM
Quote from: ethankcvds on July 25, 2009, 11:52:59 AM
The second one is an error with the view only boards mod.
The first I'm sure has something to do with an other mod also.

Quote from: Kindred on July 28, 2009, 09:08:32 AM
wow.... neat.   that IS a good job.

Kindred I take it you were referring to my very detailed post.  ;D  The problem was one I inadvertently created. I operate 2 SMF forums. While manually installing the latest SMG, I mistakenly adapted the changes to the wrong load.php file. I finally figured what I did wrong and righted this.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 28, 2009, 10:21:59 AM
(I think he was referring to our posts, actually.)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Kindred on July 28, 2009, 01:44:29 PM
yup, I was complimenting Dragoon on an impressive job with the ftp upload capability which handily bypasses any issues that I was having with mass upload and importing 2300 files from Gallery2 into SMG>
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Soms on July 28, 2009, 02:25:15 PM
Quote from: Kindred on July 28, 2009, 01:44:29 PM
yup, I was complimenting Dragoon on an impressive job with the ftp upload capability which handily bypasses any issues that I was having with mass upload and importing 2300 files from Gallery2 into SMG>

I second that.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: tfs on July 29, 2009, 06:47:29 PM
Quote from: Soms on July 28, 2009, 02:25:15 PM
Quote from: Kindred on July 28, 2009, 01:44:29 PM
yup, I was complimenting Dragoon on an impressive job with the ftp upload capability which handily bypasses any issues that I was having with mass upload and importing 2300 files from Gallery2 into SMG>

I second that.

I third it!  This has easily quadrupled the speed in which I can move mass quantities of data to the gallery.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Bruno36 on July 30, 2009, 06:48:53 AM
Hello!

When I want to manage the gallery I receive an error

Could not load template 'MGallery.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: kingkingston on July 30, 2009, 12:06:51 PM
Quote from: Bruno36 on July 30, 2009, 06:48:53 AM
Hello!

When I want to manage the gallery I receive an error

Could not load template 'MGallery.
Ah Bruno i must complement you on your movie
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: qubbah on July 30, 2009, 03:02:59 PM
i have check all the permission... but my regular member still cant add and item... can help?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: ultide on July 30, 2009, 11:34:20 PM
sir
i want to add recent and random images from gallery to my custom php page.

so,what should i do???

which codes should be included,where etc...

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: JBHolden on July 31, 2009, 12:11:13 AM
Can you guys help me? I have SMF 1.1.10 and SMF Media Gallery 1.5.6. The problem exists when I try to upload mpg video to the gallery. I keep getting the error message below after about 4 bars on the progress bar. I'm trying to upload videos in the 28 to 50 meg range and I've already changed my max file size to much higher than that. A friend told me that the connection to the server was reset while the page was loading but I don't have that much technical knowledge to try and fix this myself. Here's the message:

Internet Explorer cannot display the webpage

Most likely causes:
You are not connected to the Internet.
The website is encountering problems.
There might be a typing error in the address.

What you can try:
Diagnose Connection Problems

More information

This problem can be caused by a variety of issues, including:

Internet connectivity has been lost.
The website is temporarily unavailable.
The Domain Name Server (DNS) is not reachable.
The Domain Name Server (DNS) does not have a listing for the website's domain.
If this is an HTTPS (secure) address, click Tools, click Internet Options, click Advanced, and check to be sure the SSL and TLS protocols are enabled under the security section.

For offline users

You can still view subscribed feeds and some recently viewed webpages.
To view subscribed feeds

Click the Favorites Center button , click Feeds, and then click the feed you want to view.

To view recently visited webpages (might not work on all pages)

Thanks for any help!
John


Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Bruno36 on July 31, 2009, 02:30:46 AM
Quote from: kingkingston on July 30, 2009, 12:06:51 PM
Quote from: Bruno36 on July 30, 2009, 06:48:53 AM
Hello!

When I want to manage the gallery I receive an error

Could not load template 'MGallery.
Ah Bruno i must complement you on your movie

   
I is not understood
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Dragooon on July 31, 2009, 02:44:49 AM
Quote from: Bruno36 on July 31, 2009, 02:30:46 AM
Quote from: kingkingston on July 30, 2009, 12:06:51 PM
Quote from: Bruno36 on July 30, 2009, 06:48:53 AM
Hello!

When I want to manage the gallery I receive an error

Could not load template 'MGallery.
Ah Bruno i must complement you on your movie

   
I is not understood
Make sure the gallery files are properly extracted. There should be MGallery.template.php in default theme's folder.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Bruno36 on July 31, 2009, 03:22:00 AM
   
Thank you very much it works
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 31, 2009, 05:03:49 AM
@jbholden> If you're using SMG2 and are an admin, please use the FTP import option for very large files. At least it's a 100% guarantee that it'll work.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: ultide on July 31, 2009, 10:43:54 AM
Quote from: ultide on July 30, 2009, 11:34:20 PM
sir
i want to add recent and random images from gallery to my custom php page.

so,what should i do???

which codes should be included,where etc...

can u help....
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Minare on July 31, 2009, 11:20:23 AM
ı use this for random

But In this code, I have excluded some cats, it is :

$excludecats = '62,8,48,7,6,50,45,46,9,69,36';


The code I use:

global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;

   require_once($sourcedir . '/Subs-MGallery.php');
   loadMGal_Settings();

   if(loadlanguage('MGallery') == false)
      loadLanguage('MGallery', 'english');
$excludecats = '62,8,48,7,6,50,45,46,9,69,36';
  $items = getMediaItems(0, 6, 'RAND()', true, array(), 'm.album_id NOT IN (' . $excludecats . ')');

echo '

<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<br />
      <div style="font-size=110%; font-weight: bold; line-height: 1.8em;" class="titlebg" colspan="2"><center> Medyadan Enstantaneler </center></div><div class="smalltext" style="text-align: center; line-height: 1.4em;"></div>
';
   foreach($items as $item)
      echo '

   <td class="windowbg2">

   <div class="smalltext" style=" line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">
  <a href="',$galurl,'sa=item;id=',$item['id'],'" title="' , $item['desc'] , '"><img height="90" alt="" src="',$galurl,'sa=media;id=',$item['id'],';thumb" alt="" /></a><br />
      ',$txt['mgallery_views'],' : ',$item['views'],'<br />
   </div>
   </td>';

echo '
   </tr>
</table>';


Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: qubbah on July 31, 2009, 11:30:13 AM
Quote from: qubbah on July 30, 2009, 03:02:59 PM
i have check all the permission... but my regular member still cant add and item... can help?

anobody can help me...?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: techbot on July 31, 2009, 11:45:00 AM
Minare, forgive the newbness here, does that block of code just go into a new block or is it hard coded into the index template somewhere?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Dragooon on July 31, 2009, 11:52:40 AM
Quote from: qubbah on July 31, 2009, 11:30:13 AM
Quote from: qubbah on July 30, 2009, 03:02:59 PM
i have check all the permission... but my regular member still cant add and item... can help?

anobody can help me...?
SMG Version? Are you sure that local album permission is correct? Check for the "Default" permission profile, and make sure that the album is assigned to it.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: qubbah on July 31, 2009, 02:42:34 PM
Quote from: Dragooon on July 31, 2009, 11:52:40 AM
Quote from: qubbah on July 31, 2009, 11:30:13 AM
Quote from: qubbah on July 30, 2009, 03:02:59 PM
i have check all the permission... but my regular member still cant add and item... can help?

anobody can help me...?
SMG Version? Are you sure that local album permission is correct? Check for the "Default" permission profile, and make sure that the album is assigned to it.

TQ.. solved..
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Soms on July 31, 2009, 04:12:29 PM
QuoteloadMemberContext(): member id XXX not previously loaded by loadMemberData()

I think this might be worth looking into when you guys do the next update. It has been reported before. This happens when a member has been deleted. If this member still has pictures the gallery and one clicks on it, you get this error in your log.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on July 31, 2009, 06:32:54 PM
I don't know what I can say. I'm not familiar with that aspect of the code, and as for Dragooon I'm not sure what's his current position towards SMG itself -- I've been asking him to release beta 2 for weeks now (he promised he'd release early & often, as soon as we'd have some stuff ready for testing really...), and apparently he no longer reads his own board -- there's a large backlog of topics to comment on, really.

Dragooon, if you read this... Get up!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Minare on July 31, 2009, 06:46:05 PM
Quote from: techbot on July 31, 2009, 11:45:00 AM
Minare, forgive the newbness here, does that block of code just go into a new block or is it hard coded into the index template somewhere?


I added this code to boardindex.temp and it works here : http://www.minare.net/forum/index.php

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: LHW on August 01, 2009, 04:33:48 PM
I'm not sure if this has been mentioned or suggested before, so I'm going to apologize right off the bat if it has.  Sorry.  If it has, just ignore this...

We just installed v2b1 (on SMF v1.1.10) and absolutely love it!  Haven't run into any problems at all, and it's likely going to be even more popular than Aeva.  However, unless we missed a setting somewhere, it doesn't seem to tell you that there are new files unless you actually enter the Gallery.  We were wondering if it'd be possible to add something similar to the way the PM system lets you know you have new PMs...

On the Main Menu Button, have it display "GALLERY [xx]" to tell you xx amount of files are new to you in the Gallery.

No big deal if it can't be done.  Just wanted to pass the suggestion along.

Again, I apologize if it's been mentioned already.  You guys rock!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: sangwe11 on August 01, 2009, 04:50:41 PM
I am working on a mod to split the gallery for my subdomain mod.

Basically, the mod splits the forum into subdomains, say a subdomain for each game series on the site.

I also want it to split the download and gallery section, so I don't get downloads and gallery images from one subdomain in another subdomain.

I got the category split working, but I need to do the same for recent and random items / comments.

However, I am not sure where to find the function I need to edit.

Thanks.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on August 02, 2009, 01:18:35 AM
Quote from: Lord High Warlock on August 01, 2009, 04:33:48 PM
We just installed v2b1 (on SMF v1.1.10) and absolutely love it!  Haven't run into any problems at all, and it's likely going to be even more popular than Aeva.
Yeah I guess so... It's more impressive at least. (I'm only saying that because I wrote both, uh.)
Too bad it doesn't have a hundredth of Aeva's popularity over here. No idea why... Sometimes I'm actually thinking of merging SMG and Aeva together into some über-mod that would do everything including the laundry.

QuoteHowever, unless we missed a setting somewhere, it doesn't seem to tell you that there are new files unless you actually enter the Gallery.  We were wondering if it'd be possible to add something similar to the way the PM system lets you know you have new PMs...
Nah. Anything that changes stuff in the SMF core files, I leave up to Dragooon. And he doesn't seem to be working on SMG these days. Haven't seen him commit something serious for the last few months. I'm actually releasing Beta 2 without him today...

You can still get the latest gallery pics to show up somewhere on your theme with a hack... I'm doing it on http//noisen.com for instance.

QuoteOn the Main Menu Button, have it display "GALLERY [xx]" to tell you xx amount of files are new to you in the Gallery.
Go over to the Unseen area if that's what you want to show... You can add a direct link to it...
Still, calculating the number of unseen pics is quite taxing I think... I'm not sure it can be shown on every page like that...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on August 02, 2009, 01:19:22 AM
Quote from: sangwe11 on August 01, 2009, 04:50:41 PM
I got the category split working, but I need to do the same for recent and random items / comments.

However, I am not sure where to find the function I need to edit.
......What?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: LHW on August 02, 2009, 04:44:56 AM
Quote from: Nao 尚 on August 02, 2009, 01:18:35 AM
QuoteOn the Main Menu Button, have it display "GALLERY [xx]" to tell you xx amount of files are new to you in the Gallery.
Go over to the Unseen area if that's what you want to show... You can add a direct link to it...
Still, calculating the number of unseen pics is quite taxing I think... I'm not sure it can be shown on every page like that...

Hmmm, good idea.  I didn't think of that.  Thanks for the tip!  ;D
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on August 02, 2009, 05:14:58 AM
(Man, am I really getting away with such a cheap answer? Lol!)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: ArkServer on August 02, 2009, 07:01:46 AM
Hi i've created a passworded personal album but the folder image doesn't show up. Is it possible to show the thumbnail image even if the album is password protected?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on August 02, 2009, 07:47:44 AM
No.
The usual answer: if you're putting adult contents in your album, and you password-protect it to avoid children seeing it, they'll still be able to see the album's icon which may or may not be adult oriented...
Etc.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: ArkServer on August 02, 2009, 08:17:29 AM
Quote from: Nao 尚 on August 02, 2009, 07:47:44 AM
No.
The usual answer: if you're putting adult contents in your album, and you password-protect it to avoid children seeing it, they'll still be able to see the album's icon which may or may not be adult oriented...
Etc.

I dont have an adult album. My site if about software development and i'm currently working on adding an implementation collision detection alghoritm to be added to my game engine but i only want people that are part of the project to be able to access it and see the screenshots of the current build, i want to show a thumbnail instead of the default folder image. That said,  I have little php experience so i'm not sure if it's easy to do, Thanks anyway, awesome mod.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: LHW on August 02, 2009, 08:18:35 AM
Quote from: Kindred on July 27, 2009, 07:52:56 AM
I just used FTP to upload about 200 files.

using your ftp program, go to the ftp folder in mgal_data
using your ftp programs, load all of the images for a single directory

in gallery admin, go to ftp and select a folder (all of the image files that you just uploaded should be listed)
click proceed.

All of those files are moved into the chosen folder and thumbnails generated.

You can now load files into the ftp directory for the next folder... or edit the uploaded images

I followed this procedure, and it seemed to work fine.  Then I checked the error log and found these:

http://{domain path}/index.php?action=admin;area=mgallery;sa=ftp;sesc
2: mysql_real_escape_string() expects parameter 2 to be resource, null given
File: /{server path}/Sources/Subs-MGallery-Vital.php
Line: 328

http://{domain path}/index.php?action=admin;area=mgallery;sa=ftp;sesc
8: Undefined variable: connection
File: /{server path}/Sources/Subs-MGallery-Vital.php
Line: 328


Both were displayed twice (a total of 4 errors) each time I used the FTP option to add files to a Gallery.

SMF is v1.1.10, and SMG is v2.0b1.

By the way, adding the server timeout/pause when adding lots of files via FTP was very considerate programming.  Nice job!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: sangwe11 on August 02, 2009, 08:22:31 AM
Quote from: Nao 尚 on August 02, 2009, 01:19:22 AM
Quote from: sangwe11 on August 01, 2009, 04:50:41 PM
I got the category split working, but I need to do the same for recent and random items / comments.

However, I am not sure where to find the function I need to edit.
......What?

basically, i need to modify the function that generates the recent items/comments list for the gallery

but i cant find it
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on August 02, 2009, 09:31:14 AM
Uh it's not a function, it's simply inside mgallery_home() or something in MGallery.php ... Then it's shown through the template.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: sangwe11 on August 02, 2009, 09:38:28 AM
Quote from: Nao 尚 on August 02, 2009, 09:31:14 AM
Uh it's not a function, it's simply inside mgallery_home() or something in MGallery.php ... Then it's shown through the template.

Where the code for the recent and random item / comments lists are, there is this function

smg_item_list($context['recent_items'])
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Nao 尚 on August 02, 2009, 10:19:49 AM
I don't have the rights to edit the first message in the topic (and thus its title), but SMG 2.0 beta 2 is officially available.

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

Version 2.0 beta 2                                 August 2, 2009
-----------------------------------------------------------------

Regular, cool additions:

+ Added "clear thumbnail names" setting in admin's SMG security area, which allows you to show an album's thumbnails using
  the thumbnail's direct URL, saving your server the cost of a PHP call (which goes through the SMF initialization process),
  if you don't mind letting your users be able to share the URL to your thumbnails with anyone.
+ Added a pre-written .htaccess solution to the mod_security problem. It only needs to be found by the swf file itself,
  so let's just put it in the mgallery folder and let mod_security do its work on the rest...
+ Added "next" variables to admin area settings, allowing the page to show "Kb", "pixels" or "%" values next to text boxes
+ Rewrote homepage's "Recent Items" feature to allow users to browse through all files uploaded to the gallery, and choose a sort order for them
* When showing 5 thumbnails in the previous/next section on item pages, clicking on the arrows will now
  go to the previous/next page of thumbnails, instead of just going to the next visible thumbnail
* Comment box and report box's textareas will now always fit the resizable window if Highslide is enabled

Related to Foxy! add-on:

! "details" setting in smg tag for Foxy! add-on was always empty
+ Added "no_name" details setting for linked topics (topics are *usually* showing a title already, right?)

The big whoops:

! Search results number was always set to 1, which limited them to one page
! Hidden albums were broken when applying the setting to a general album. In addition to fixing this, I also removed the warning text
  which usually shows up on hidden albums, because really the only people that won't be able to view them are the guests.

Small change, aka Pocket money:

* Added ability to specify several permissions in albumsAllowedTo, just in case...
* Show the preview picture for audio files inside the player when outside the item page, to save some space
* Allowed every membergroup to be checked regardless of the scenario (Dragooon's only contribution to this beta -- where are you gone, Dragooon?! -- Nao)
! Potential undefined index in Exif code (not our fault :P)
! array_string database type wouldn't work because $connection wasn't initialized
+ Added a short routine that automatically renames thumbnail files to prevent users from guessing the full file's URL.
  This is only a dirty implementation -- if you have thousands of thumbnails around, please don't enable the "clear thumbnails"
  option as it might crash your server when renaming them all in a single process.
* Added a generic sortbox function for use in Recent Items as well as album listings
! Don't show the area for action icons in album pages if user can't see any of these icons
* Updated prev/next code to show direct thumbnail URLs if this setting is enabled
! Fixed an unclosed div when disabling Javascript
! A typo would break CSS validation
* Slightly updated homepage layout

Things left to do:

@ To do: debug the file deletion area -- seems like everything's not deleted when using clear filenames and deleting an item
@ To do: add a "URL to gallery files" setting in admin area, instead of trying to guess it from the data_dir_path setting
         (because of folder aliases, it might not be in the same apparent path as $boarddir -- was the case for me)
@ To do: will need to rename "Recent Items" to something more generic or change it according to the current sort order...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: Kindred on August 02, 2009, 10:35:38 AM
Hi Nao,

I updated the first post for you. :) The only thing I changed was the version of SMG.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: Blinker on August 02, 2009, 10:50:01 AM
Hey Nao,

Great work as per usual. Upgraded to 2b2 without much fuss and everything seems to be working fine.

Just wanted to alert you to a VERY minor issue: the copyright notice at the bottom of the gallery is still showing 2b1. (SMF Media Gallery 2.0 beta 1). The same goes for the admin area 'about' section (Installed version: 2.0 beta 1     Latest version: 2.0 beta 1)

If I come across any more glitches I'll let you know. In the grand scheme of things if that's the worst of it then you're doing well. :)

Great job on an already fantastic mod!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 1 released
Post by: tfs on August 02, 2009, 10:50:31 AM
Quote from: Nao 尚 on August 02, 2009, 10:19:49 AM
SMG 2.0 beta 2 is officially available.

Nao, thanks for keeping things going for SMG!  I have an update question regarding Foxy and Slideshow.  I want to verify that those two should be uninstalled (in any order) before uninstalling SMG, is that correct?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: Nao 尚 on August 02, 2009, 11:10:58 AM
@kindred> Thanks!
@blinker> Ah, yes indeed. I've reuploaded a new version of the package with the version change. Forgot the one in db_mgallery.php. Hopefully there aren't any others left... This is the first time I'm committing a version of SMG by myself, i'ts bound to happen. As for the About section, I can't do anything about it -- I don't have FTP access to smf-media.com so I can't update the version number over there.
@tfs> I think you have to uninstall Slideshow but I'm not sure. There is no need, however, to reinstall Foxy!, since it doesn't touch any of SMG's code.

Re: Dragooon being away -- got hold of him today, he said he's lost interest in SMG so I guess I'll be on my own to finish version 2 (please send your donations to paypal at kyodai.com lol :P). Hopefully he can fix his permission profile bugs when he finds some time because I'm not touching these even with a ten-foot pole.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: Akyhne on August 02, 2009, 11:15:42 AM
Quote from: Nao 尚 on August 02, 2009, 11:10:58 AM
Re: Dragooon being away -- gold hold of him today, he said he's lost interest in SMG so I guess I'll be on my own to finish version 2
Not great news :-\
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: sangwe11 on August 02, 2009, 11:16:08 AM
Quote from: Nao 尚 on August 02, 2009, 09:31:14 AM
Uh it's not a function, it's simply inside mgallery_home() or something in MGallery.php ... Then it's shown through the template.

Where the code for the recent and random item / comments lists are, there is this function

smg_item_list($context['recent_items'])
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: paulfrance on August 02, 2009, 12:07:57 PM
hello to all
I have an error message when i try to upload a video
Fatal error: Call to undefined method ffmpeg_frame::resize() in /home/tubeycom/public_html/malesblackgay.com/forum/Sources/Subs-MGallery-Vital.php on line 1014
Can you help me please
Thanks to all
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: Nao 尚 on August 02, 2009, 12:50:09 PM
@akyhne> it will depend on him.
@sangwe> it frigging depends on what you want to do with it...
@paulfrance> what is your version of ffmpeg? Try to disable it (or php-ffmpeg or ffmpeg-php, can't remember) if you can.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: paulfrance on August 02, 2009, 01:09:28 PM
Nao thanks for your answer i am on shared hosting and i can't disable it :(
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: sangwe11 on August 02, 2009, 01:17:54 PM
Quote from: Nao 尚 on August 02, 2009, 12:50:09 PM
@akyhne> it will depend on him.
@sangwe> it frigging depends on what you want to do with it...
@paulfrance> what is your version of ffmpeg? Try to disable it (or php-ffmpeg or ffmpeg-php, can't remember) if you can.

Basically, I want to limit the catagories that the recent / random items and comments gets the list from, so that it will work with my subdomain mod.

I managed to limit the catagories shown, depending on the subdomain your at, but you dont really want an item in the recent / random lists that not in any of your catagories on that subsite, but in a seperate catagory on a seperate subsite.

Another note, i'm using the 1.5.6 version (2.0 didnt work well with my server at all for some reason =/)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: Shades. on August 02, 2009, 01:25:11 PM
I found a yes/no field in the gallery admin that has no explanation/option. See attachment for better detail. ???
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: Shades. on August 02, 2009, 01:30:07 PM
Also their is no field to fill in beside "upload_max_filesize" and "post_max_size". See attachment!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: Petee on August 02, 2009, 02:38:16 PM
I cant seem to rate items with this new Beta version.  The dropdown menu is there, but nothing happens when clicking the Rate It! button.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: Minare on August 02, 2009, 03:12:54 PM
Thank you for the updates!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: Nao 尚 on August 02, 2009, 05:48:16 PM
@petee> this is because Dragooon changed the system to use Ajax instead. Apparently it doesn't work for everyone, but we have yet to see the issue in action. Works for us at least...
@bozilla> first entry is the "clear thumbnail names" stuff. It's in the updated language files. If you're using a UTF file, don't forget to update it with the MGallery.english.php file instead. Second entry -- I don't know, it shouldn't be empty. Does anyone else have this problem?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: sangwe11 on August 02, 2009, 05:50:00 PM
Quote from: Nao 尚 on August 02, 2009, 12:50:09 PM
@akyhne> it will depend on him.
@sangwe> it frigging depends on what you want to do with it...
@paulfrance> what is your version of ffmpeg? Try to disable it (or php-ffmpeg or ffmpeg-php, can't remember) if you can.

Basically, I want to limit the catagories that the recent / random items and comments gets the list from, so that it will work with my subdomain mod.

I managed to limit the catagories shown, depending on the subdomain your at, but you dont really want an item in the recent / random lists that not in any of your catagories on that subsite, but in a seperate catagory on a seperate subsite.

Another note, i'm using the 1.5.6 version (2.0 didnt work well with my server at all for some reason =/)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: Blinker on August 02, 2009, 07:48:17 PM
Quote from: Nao 尚 on August 02, 2009, 11:10:58 AM@blinker> Ah, yes indeed. I've reuploaded a new version of the package with the version change. Forgot the one in db_mgallery.php. Hopefully there aren't any others left... This is the first time I'm committing a version of SMG by myself, i'ts bound to happen. As for the About section, I can't do anything about it -- I don't have FTP access to smf-media.com so I can't update the version number over there.

Cool, thanks Nao.

Out of interest, are the changes to the code quite minimal? If so, could you post the differences. I'd much rather edit a template rather than uninstall and reinstall just for the sake of a few lines of code. If it's a pain in the ass don't worry about it.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: LHW on August 02, 2009, 09:43:09 PM
Stupid question time, Nao...what directory does the PHP.INI file go in??
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: sangwe11 on August 02, 2009, 10:25:59 PM
Ok nvm, did a little rework instead to get the recent item lists how i wanted them

thanks anyway
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: Petee on August 03, 2009, 12:06:14 AM
Quote from: Nao 尚 on August 02, 2009, 05:48:16 PM
@petee> this is because Dragooon changed the system to use Ajax instead. Apparently it doesn't work for everyone, but we have yet to see the issue in action. Works for us at least...

In reference to the "Rate It!" bug, if there is anything I can do to help track it down, please let me know.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: Shades. on August 03, 2009, 12:16:19 AM
Quote from: Nao 尚 on August 02, 2009, 05:48:16 PM
@bozilla> first entry is the "clear thumbnail names" stuff. It's in the updated language files. If you're using a UTF file, don't forget to update it with the MGallery.english.php file instead. Second entry -- I don't know, it shouldn't be empty. Does anyone else have this problem?

Those were only 2 of the fields I found missing out of about 6 or 7. I tried a manual install after uninstalling everything except for the database and still getting same fields missing. So I went ahead and reinstalled the previous version, which works perfect, until I can get a fix for this. I don't know what else to do at this point. :-\

Oh, and I'm not using any UTF files either! ;)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: tfs on August 03, 2009, 12:30:31 AM
Is anyone else not seeing thumbnails when they do a search in 2.0b2?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: Özgür on August 03, 2009, 12:32:18 AM
Quote from: tfs on August 03, 2009, 12:30:31 AM
Is anyone else not seeing thumbnails when they do a search in 2.0b2?
I'm. (:
Image url is wrong. Showed this http://www.site.net/forum/mgal_datasa=media;id=433;thumb
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: tfs on August 03, 2009, 12:46:45 AM
Quote from: [Daydreamer] on August 03, 2009, 12:32:18 AM
I'm. (:
Image url is wrong. Showed this http://www.site.net/forum/mgal_datasa=media;id=433;thumb

Thanks.  Glad to know I'm not alone.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: Nao 尚 on August 03, 2009, 04:24:30 AM
@sangwee> you're better off not touching any of these. If you want to narrow the scope of query searches, you should instead edit the $user_info['query_see_album'] variable in Subs-MGallery.php or Subs-MGallery-Vital.php (can't remember which). Supposing your "categories" are a list of albums, of course. Then everything on your gallery will behave according to that.

@warlock> ask your host... this is different for every host.

@petee> gallery+rate access for guests, or an account by pm... + your url of course. For starters.

@bozilla> I'm telling you... Your language files aren't up to date. Just make sure you upload them to the correct directory.

@tfs+rock> bug indeed. Thanks. I've fixed that in rev 990 (thankfully you and Daydreamer are both beta testers so you can create a package for it), it's a tentative "beta 2a". The bug also happened in the Unseen area. I not only fixed the bug, I also updated the Unseen & Search areas to show clear URLs when enabled. BTW, do you use the "clear" feature? I'm interested in knowing.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: Nao 尚 on August 03, 2009, 06:33:44 AM
Simplemachines.org is buggy :(
I uploaded SMG 2.0 Beta 3 and it ended up being the only file available! I don't know why. I was uploading the file, then I cancelled the upload because I forgot to tick the "alert users" box, I reloaded the page, restarted filling the details, ticked the alert box, unticked the Beta 2 box (because it's security sensitive so I'd rather take it away), added the Beta 3 file, uploaded... And there it is, only the Beta 3 file was there.

Anyway... I'll reupload the other things in time.

Version 2.0 beta 3                                 August 3, 2009
-----------------------------------------------------------------
! Clean filenames were always on, even when disabled (minor security issue)
! Fallback on failed clean filenames was broken and wouldn't send a correct URL
+ Added support for clean filenames on Search and Unseen areas


PLEASE update your Beta 2 to Beta 3 if you already installed Beta 2. It is a very minor security issue, and I'm not even sure it can be exploited or even reproduced, but I take security very seriously. Plus, it fixes some oversights.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Kindred on August 03, 2009, 07:28:15 AM
first post is updated
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Dragooon on August 03, 2009, 07:29:57 AM
Quote from: Kindred on August 03, 2009, 07:28:15 AM
first post is updated
Oh crap...I was about to..then you came..but I was..then you came...you..came...but I....oh forget it, thanks.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Kindred on August 03, 2009, 07:32:22 AM
lol...   Hi Dragoon...   I wasn't sure if you were back from vacation.   Nao couldn't update it last time (beta2) and with a security release, I thought I should update it as soon as possible.   Didn't mean to step on any toes.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Dragooon on August 03, 2009, 07:33:29 AM
Quote from: Kindred on August 03, 2009, 07:32:22 AM
lol...   Hi Dragoon...   I wasn't sure if you were back from vacation.   Nao couldn't update it last time (beta2) and with a security release, I thought I should update it as soon as possible.   Didn't mean to step on any toes.
Lol I was just kidding, thanks for helping out :).
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: sangwe11 on August 03, 2009, 08:15:48 AM
Quote from: Nao 尚 on August 03, 2009, 04:24:30 AM
@sangwee> you're better off not touching any of these. If you want to narrow the scope of query searches, you should instead edit the $user_info['query_see_album'] variable in Subs-MGallery.php or Subs-MGallery-Vital.php (can't remember which). Supposing your "categories" are a list of albums, of course. Then everything on your gallery will behave according to that.

I simply recreated the function to output exactly the same (well, i tidyied it up a little) and then added in my catagory limit code. After a little tweak, I got it working. I don't think its the most efficient way, but its the only way I could do it.

For each id in the list of catagories that its allowed to show, it scans through all of the recent item's list, and if they are in that catagory, it show them, and if not, it doesnt.

I don't think scanning though every recent item, for every catagory is very efficiant, but at the time I couldn't see another way.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 03, 2009, 08:33:42 AM
As I'm telling you, adding something at the end of {query_see_album} should work just fine. I suppose your "categories" are stored in the albums table. Which means it's perfectly suited.

$user_info['mgallery_query_see_album'] .= ' AND a.category = ' . (int) $current_category;

Something like that...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: LHW on August 03, 2009, 10:09:26 AM
Quote from: Nao 尚 on August 03, 2009, 04:24:30 AM
@warlock> ask your host... this is different for every host.

Thanks.  I'll run it by them.  :)

EDIT:  Oh, I'm also getting 500 Internal Server Errors when I use a "Direct Link" to view an image.  However, when I right-click on it to view, it shows up fine...but with a different address.  This was on v2b2, and v2b3 as well.

This is a path that gives errors: http://www.EssentialKnights.COM/tcf/MGalleryItem.php?id=60

This is what the View Image shows: http://www.essentialknights.com/tcf/index.php?action=mgallery;sa=media;id=60

Is this something I messed up on my end??
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 03, 2009, 12:03:03 PM
Error 500 => check your file permissions by FTP. Make sure it's 0644 or 0755 for MGalleryItem.php!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: tfs on August 03, 2009, 12:14:46 PM
Quote from: Nao 尚 on August 03, 2009, 04:24:30 AMBTW, do you use the "clear" feature? I'm interested in knowing.

I switched to it, as I noted in a post on smf-media.com, when I was trying to determine why I wasn't seeing thumbnails on searches.

I was a little nervous making the switch with >4k entries in the gallery, as I think it has to mod all of those entries, does it not?  The process took about a full minute.

My only lingering issue is the hundreds of pages of Recent Items.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: sangwe11 on August 03, 2009, 06:18:46 PM
Quote from: Nao 尚 on August 03, 2009, 08:33:42 AM
As I'm telling you, adding something at the end of {query_see_album} should work just fine. I suppose your "categories" are stored in the albums table. Which means it's perfectly suited.

$user_info['mgallery_query_see_album'] .= ' AND a.category = ' . (int) $current_category;

Something like that...

I cant see this working, as its not per user that the albums are shown or not, its per subdomain .

Example: we have albums 1,2,3 and 4

on gallery1.mysite.com it would show albums 2, 3 and 4

on gallery2.mysite.com it would show albums 1,2 and 4
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: LHW on August 03, 2009, 09:39:11 PM
Quote from: Nao 尚 on August 03, 2009, 12:03:03 PM
Error 500 => check your file permissions by FTP. Make sure it's 0644 or 0755 for MGalleryItem.php!

That was it.  I was able to verify that a fresh install left it at 644, however, once I removed v2b2 and installed v2b3, the permissions were set at 666.  Once I changed it back to 644, it worked fine.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 04, 2009, 06:11:06 AM
Quote from: sangwe11 on August 03, 2009, 06:18:46 PM
I cant see this working, as its not per user that the albums are shown or not, its per subdomain .

Example: we have albums 1,2,3 and 4

on gallery1.mysite.com it would show albums 2, 3 and 4

on gallery2.mysite.com it would show albums 1,2 and 4
You can add an INNER JOIN at the end of the variable, too, if it depends on another table.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: digger on August 04, 2009, 08:51:07 PM
I have an error when i trying to migrate from Coppermine with mgconverter_cpg.

Duplicate entry '1009' for key 'PRIMARY'
Файл: /.../Sources/Subs-MGallery-Vital.php
Line: 231
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 05, 2009, 04:10:11 AM
Your original CPG is probably corrupted or something... Or you're not using the right versions.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: LHW on August 05, 2009, 05:19:49 PM
Quote from: Nao 尚 on August 02, 2009, 01:18:35 AM
QuoteOn the Main Menu Button, have it display "GALLERY [xx]" to tell you xx amount of files are new to you in the Gallery.
Go over to the Unseen area if that's what you want to show... You can add a direct link to it...
Still, calculating the number of unseen pics is quite taxing I think... I'm not sure it can be shown on every page like that...

*Sigh*  Apparently I have some lazy people on my board.  I told them I'd ask you, so here goes...

I understand the complexity of keeping track of how many New Items get uploaded since a person's last visit.  However, would it be possible to just put an indicator on the menu so people can see that there's something new, without having to actually enter the Main Gallery?  Perhaps just this (https://www.simplemachines.org/community/Themes/smsite/images/english-utf8/new.gif) next to the "GALLERY" text, or even something as simple as *?

Sorry to be such a bother on this, Nao.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Capion on August 05, 2009, 05:35:13 PM
smf 1.1.10 / simpleportal 2.2.2

manual install, because all files in "Sources" and index.php, failed in package-installer.

manual edit: load.php
misplaced:

find:
'local_time' => timeformat(time() + ($profile['timeOffset'] - $user_info['time_offset']) * 3600, false),

add AFTER:
'mgallery' => array( 'total_items' => $profile['mgal_total_items'], 'total_comments' => $profile['mgal_total_comments'], ),

should be ??????  ( it works for me! ) :

find:
'timezone_offset' => !empty($modSettings['timezones_enable']) ? $profile['timezone_offset'] : 0,

add AFTER:
'mgallery' => array( 'total_items' => $profile['mgal_total_items'], 'total_comments' => $profile['mgal_total_comments'], ),

............

Error in



Profile.php ERROR on index.php?action=profile >>>>
CORRECTION... NO ERROR in Profile.php

I am SO SORRY !..
I had for some weird reason double-pasted the code placed last in Profile.php
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 05, 2009, 06:40:26 PM
@warlock> Okay I'll try to have a look... If only to make a mod or something (I don't think I'd put this into the main code).
You'll just have to pester me by PM because I'm currently busy on other projects.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: LHW on August 05, 2009, 07:09:53 PM
Thanks, Nao!  I greatly appreciate it.  I'll start pestering you in about a week or so.  ;)

From what they've been telling me, they just want some kind of indicator on the front page to tell them there are new entries...just like it does for new posts.  A red asterisk would suffice for that, if that's easiest.

Thanks again!   ;D
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Blinker on August 05, 2009, 08:01:28 PM
Nao, if you were able to create some way, through mod or otherwise, to indicate new content (upload, comments etc) it would be a huge bonus.

This has been requested many, many times in this thread and I'm sure would make all the users of this great mod very happy indeed.

We all understand you're busy and do this out of the goodness of your heart so whatever happens is cool. :)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 06, 2009, 03:58:20 AM
Okay, this is TESTED, but works ONLY on SMF 2.0 for now...

Adding a "new items" counter next to the Gallery link in your menu, similar to PMs.

Open Subs.php

Search for:
$cacheTime = $modSettings['lastActive'] * 60;

Add AFTER it:
global $smcFunc, $sourcedir;

// Get the total unseen gallery items to show
include_once($sourcedir . '/Subs-MGallery.php');
loadMGal_Settings();

if (!$user_info['is_guest'])
{
$request = $smcFunc['db_query']('', '
SELECT COUNT(m.id_media)
FROM {db_prefix}mgallery_media AS m
INNER JOIN {db_prefix}mgallery_albums AS a ON (m.album_id = a.id_album)
LEFT JOIN {db_prefix}mgallery_log_media AS lm ON (lm.id_media = m.id_media AND lm.id_member = {int:user})
LEFT JOIN {db_prefix}mgallery_log_media AS lm_all ON (lm_all.id_media = 0 AND lm_all.id_member = {int:user})
WHERE ' . $user_info['mgallery_query_see_album'] . '
AND IFNULL(lm.time, IFNULL(lm_all.time, 0)) < m.log_last_access_time' . (!allowedTo('mgallery_moderate') ? '
AND m.approved = 1' : '') . '
LIMIT 1', array('user' => $user_info['id']));
list ($mgallery_unseen) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);
}
else
$mgallery_unseen = 0;


Search for:
'title' => $txt['mgallery_gallery'],
'href' => $scripturl . '?action=mgallery',

REPLACE with:
'title' => $txt['mgallery_gallery'] . (!empty($mgallery_unseen) ? ' [<span style="color: red">' . $mgallery_unseen . '</span>]' : ''),
'href' => $scripturl . '?action=mgallery' . (!empty($mgallery_unseen) ? ';sa=unseen' : ''),


Pros: it works... And it new items are available, the Gallery link goes directly to the Unseen area where you can choose "Mark all as read" if you're not interested in what you're seeing.
Cons: this checks for new items on each and every page of your forum, obviously... Of course, you could possibly use this code to show a counter only on your forum's homepage, which would save a lot of CPU power for sure. I would advise to do just that indeed. You can also keep it in the menu but disable the operation on topic & board pages -- for instance, replace the line
if (!$user_info['is_guest'])
with
if (!$user_info['is_guest'] && empty($context['current_board']))
(Untested but should work.)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Akyhne on August 06, 2009, 07:01:08 AM
SMG 1.5.6 - SMF 1.1.10
I have a user who created some albums. Only one of those is visible when using the link "User albums" in the gallery. However when clicking a link to one of his images, it it possible to visit them in the gallery, as well as clicking into his albums. The albums also show in the admin -> Gallery -> User albums.
I ran all repair tools and found no errors. There's also no errors in the "Forum Error Log"

This album can be seen by users and admins:
id_album 17
album_of 95
member_name [user name]
type user
name Justin case ;)
description
icon 4
passwd
directory albums/Justin_case_;)
parent 0
access -1,0,2,9,10,11,12,13,14,15,16,17,18,19,20,21,28,29,4,22,23,24,25,26
approved 1
a_order -2
child_level 0
id_last_media 124
num_items 15
options a:6:{s:8:"lightbox";s:3:"yes";s:7:"outline";s:11:"drop-shadow";s:8:"autosize";s:3:"yes";s:6:"expand";i:250;s:9:"fadeinout";i:0;s:4:"sort";s:15:"m.id_media DESC";}

This album can not be seen by users and admins:
id_album 28
album_of 95
member_name [user name]
type user
name Colin Mac DiRT
description
icon 4
passwd
directory albums/Clion_Mac_DiRT
parent 0
access -1,0,2,9,10,11,12,13,14,15,16,17,18,19,20,21,28,29,4,22,23,24,25,26
approved 1
a_order -2
child_level 0
id_last_media 467
num_items 10
options a:6:{s:8:"lightbox";s:3:"yes";s:7:"outline";s:11:"drop-shadow";s:8:"autosize";s:3:"yes";s:6:"expand";i:250;s:9:"fadeinout";i:0;s:4:"sort";s:15:"m.id_media DESC";}

Another thing although it doesn't seem to matter; One of his albums paths (the one above that works) have the path "albums/Justin_case_;)". It this ok that a path/folder can have a ; and a ) in the name?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: LHW on August 06, 2009, 07:39:26 AM
Nice job, Nao!  Can't wait for the 1.1.x version.  ;)  ;D
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 06, 2009, 10:13:15 AM
rev 996

+ Added number of unseen items in menu, next to the Gallery link. The number is updated automatically, hopefully. Needs some serious testing! (db_mgallery.php, install-1.1.xml, install-2.0.xml, MGallery-Sub.php, MGallery.php, Subs-MGallery.php)

Daydreamer, nfs, mforum, whoever in the beta tester teams wants to test it -- please DO! I'm absolutely unsure of the results, especially under SMF2... It's tested on my server but it doesn't mean anything at this point, lol.

The difference between this morning's version and that one is that the number of unseen items is actually cached into the members table now. This should make the task easier for the server, since it will only have to calculate the number of unseen items once per login and per user.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: LHW on August 06, 2009, 03:21:07 PM
Nao: People are now complaining to me that two features aren't working in v2b3 (SMF v1.1.10): Rating an image, and the Mass Upload.

For the former, they select the rating and click the button, but nothing happens.

For the latter, they're able to select the file(s) they want, but when they click on "Upload," nothing seems to happen.  Even if just one file is selected.  The normal method of uploading one file at a time works fine.

Is this possibly another permissions issue on a certain file?  All the permissions seem to have been setup properly, and even I couldn't get them to work as Admin.

Thanks for all your help!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 06, 2009, 03:31:30 PM
re: ratings, they don't work in Beta 3 + SMF1. It's been reported and fixed in Beta 4.
re: mass upload, check the web for crossdomain.xml (you're probably not using the same subdomain for your gallery.)

To beta testers -- still looking for people to test rev 999! I'd like to make sure Daydreamer's failure to get it to work is due to a problem on his server, not in my code.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: LHW on August 06, 2009, 03:54:00 PM
Thanks for the news on the ratings.  Will wait for the next release.  ;D

I'm unfamiliar with the crossdomain.xml file, and I only have one subdomain that simply redirects to the full domain path.  I Google'd it, and came up with this file:

<?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <allow-access-from domain="www.essentialknights.com" />
    <allow-access-from domain="essentialknights.com" />
    <allow-access-from domain="tcf.essentialknights.com" />

    </cross-domain-policy>


I placed the file in the main/root SMF directory, and it didn't seem to change anything.  I assume I did something wrong.  Are you able to tell me what it might be?

Thanks!



EDIT
I thought that perhaps I had the file in the wrong directory, so I moved it to the domain root.  When I did, my test file seemed to upload.  However, when I clicked on the 'Submit' button, this error was displayed:

XML Parsing Error: junk after document element
Location: http://www.essentialknights.com/tcf/index.php?action=mgallery;sa=mass;album=5;xml;upcook=YTo0OntpOjA7czoxOiIxIjtpOjE7czo0MDoiMGIwYzgwYWYyNDExZGQyZjhlNGZjYjM4MmZjN2ZmMTkwMjhiMDg1YSI7aToyO2k6MTQzNjc5OTk1MTtpOjM7aTowO30%3D
Line Number 14, Column 1:<div align="center" style="margin-top: 2ex;"><a href="javascript:history.go(-1)">Back</a></div>
^


I'm at a loss as to what this even means, let alone how to fix it.  Any advice would be greatly appreciated.

EDIT 2: I just looked...the file uploaded, and is in the targeted gallery.  Now it seems I just need to resolve the above error.



EDIT 3
Perhaps this will help...it was in the SMF Error Log...

http://www.EssentialKnights.COM/tcf/index.php?action=mgallery;sa=mass;album=5;xml;upcook=YTo0OntpOjA7czoxOiIxIjtpOjE7czo0MDoiMGIwYzgwYWYyNDExZGQyZjhlNGZjYjM4MmZjN2ZmMTkwMjhiMDg1YSI7aToyO2k6MTQzNjc5OTk1MTtpOjM7aTowO30=

Wrong value type sent to the database. Array of integers expected. (items)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 06, 2009, 04:50:35 PM
This error means that, for whatever reason, the list of files was empty when you requested that SMG updates the item titles. It shouldn't have an influence over whether the files correctly uploaded or not (they're uploaded as soon as the counter hits 100% *AND* it starts uploading the next file.)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: LHW on August 06, 2009, 04:58:08 PM
OK.  Is this something I can fix on my end?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 06, 2009, 05:21:23 PM
I guess so... But as to how, sorry, I don't know.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: LHW on August 06, 2009, 05:28:32 PM
Ah, gotcha.  I'll just tell my Users not to try renaming the files from there.

Thanks!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 06, 2009, 05:34:27 PM
Do you confirm the files were uploaded just fine?

As for the names, just tell them to rename their files before uploading them (the filename is used as the defaut item name.)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: LHW on August 06, 2009, 05:39:45 PM
Yes, the files make it to the selected album just fine...I just tested it again to make sure.

And I'll make that suggestion to my users about the filenames.  Good call!

Oh...I don't know if this helps any, but it appears that once the Mass Upload is complete, the files, if images, are displayed in the name editing box.  If that's the case, mine aren't showing.  Each image gets the graphic that states: "Sorry, you are not allowed to view this file.  Make sure you are connected to the server."  I don't know if that's connected to the above error or not.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 06, 2009, 05:41:12 PM
Yes, it's very likely to be connected.
I would advise that you PM Dragooon about this problem, and the error messages mentioned above. He wrote the whole mass upload thing and he's more capable than I am in that area. (I think.)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: LHW on August 06, 2009, 05:43:19 PM
Alright, I'll do that!

Thanks for all the help, Nao.  If the Karma System was active here, I'd praise you for a week straight!  :D
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 06, 2009, 05:54:53 PM
Well I didn't do much... ^^
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: tfs on August 06, 2009, 08:18:30 PM
Quote from: Nao 尚 on August 06, 2009, 03:31:30 PM
To beta testers -- still looking for people to test rev 999! I'd like to make sure Daydreamer's failure to get it to work is due to a problem on his server, not in my code.

I've never been able to install mods via a TGZ file.  I tried converting it to a ZIP file, retaining the exact same internal directory structure, but my SMG still doesn't like it, though your official beta releases install just fine.  Not sure what the problem is.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 07, 2009, 02:15:09 AM
Try recompressing with winrar?
Make sure the mod's root is the root of the zip file (when you open the zip, it should show a package-info.xml file somewhere.)
You can also install manually (boring, I know!)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 2 released
Post by: digger on August 08, 2009, 07:08:38 PM
Quote from: paulfrance on August 02, 2009, 12:07:57 PM
hello to all
I have an error message when i try to upload a video
Fatal error: Call to undefined method ffmpeg_frame::resize() in /home/tubeycom/public_html/malesblackgay.com/forum/Sources/Subs-MGallery-Vital.php on line 1014
Can you help me please
Thanks to all

http://groups.google.com.ua/group/ffmpeg-php/msg/ad9a61182fe9d5da
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: duder673 on August 08, 2009, 09:17:24 PM
Ok, I had a problem recently.  My host just deleted EVERYTHING that I built over the course of 6 months and now I am trying to get SMG working off of a 2month old database.

The problem originally was that thumbnails weren't showing up, so I tried all of the maintenance things and got them to where they said they were working eventually (but I had to delete all of the videos off of SMG in the meantime).

Then I deleted all of the folders and tried to start from scratch.
Now it will not let me add new folders, let alone items or thumbnails.

It said that it couldn't find the sources folder, which I checked and recheck several times with different ways to show SMF where my files were and it didn't work.  I think it thinks Subs-MGallery.php wasn't the right size.

So here is where I am now:
I have nothing, so I wouldn't mind just starting from scratch, but don't know how.
I uninstalled SMG from SMF and deleted it from SMF, but it seems to keep the same settings in the database for some reason.

I would like to remove it completely so that I can reinstall it, I guess.
Unless there is an easier way to fix it.

Any info is appreciated.

-duder673
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Harvester on August 09, 2009, 01:17:32 AM
Need a little help please

I have the latest  2b3 installed. It works fine...

I still can not get voting to work anymore tho.

it worked before I went from 1.5.6 to 2b and now I cant get it to work anymore.

I know you say it works for you but I really need some help getting the votin to work again for my gallery

I have done everything I know of which is:


and still, when I select a rating and click on submit nothing happens...

btw Forum Error Log is empty

what else can I check?

please help me solve this...

thank you

.... just read this in the changelog.txt "+ Added AJAX ratings, so that the page doesn't need to reload when you rate an item"   could this have anything to do with my problems? since this was added in 2.0 beta 1 and wasnt there in 1.5.6      1.5.6 was when the ratings last worked for me.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 09, 2009, 04:57:39 AM
@duder> Well, I'm guessing SMG isn't exactly designed for this kind of catastrophy... You really should have up-to-date backups, is all I got to say... Can't say more without access to your FTP & db anyway. And I don't have time for that these days.

@harvester> Don't you ever read the smf-media.com forum? This issue only happens in SMF1, it was fixed last week and will be in beta 4. Which is currently stalled because I'm busy with a completely disastrous upgrade of SMF2's latest revision.

@digger> Please try this, then.

Open Subs-MGallery-Vital.php

Search for: (should be at line 895 or so)

if ($ext == 'png' || $ext == 'gif')

Replace with:

if (($ext == 'png' || $ext == 'gif') && $source != null)

Now remove this line:

$frame->resize($width, $height);

Search for: (it's just a couple of lines below)

$created = imagejpeg($gd_img, $dest);
return $created;


Replace it with:

imagejpeg($gd_img, $dest);
return !$this->resizeJpgImage($gd_img, $dest, imagesx($gd_img), imagesy($gd_img), $width, $height, null);


This SHOULD work... But it's been a long time since I've used resizeJpgImage, so it just might not as well, lol. Please keep me posted.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Akyhne on August 09, 2009, 06:20:19 AM
Quote from: Alex@ on August 06, 2009, 07:01:08 AM
SMG 1.5.6 - SMF 1.1.10
I have a user who created some albums. Only one of those is visible when using the link "User albums" in the gallery.
Any help on this one?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: LHW on August 09, 2009, 06:42:29 AM
Is "Regular Members" checked in the Gallery Profile for those albums?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Akyhne on August 09, 2009, 06:52:39 AM
In SMG 1.5.6, there are no per user album permissions. Even admins can't see the albums in the gallery.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: LHW on August 09, 2009, 07:01:01 AM
My bad.  I thought I remembered them...been messing with v2b3 too much.  Sorry.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Akyhne on August 09, 2009, 08:46:15 AM
Wen I click the "owner: [name]" in the user albums list, all that users albums shows as expected  ::)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Harvester on August 09, 2009, 12:23:16 PM
Quote from: Nao 尚 on August 09, 2009, 04:57:39 AM
@harvester> Don't you ever read the smf-media.com forum?
Apparently not enough lol Woops
guess I need to change that :D


Quote from: Nao 尚 on August 09, 2009, 04:57:39 AM
This issue only happens in SMF1, it was fixed last week and will be in beta 4. Which is currently stalled because I'm busy with a completely disastrous upgrade of SMF2's latest revision.

ok thats great news! :D

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: duder673 on August 09, 2009, 02:11:04 PM
Quote from: Nao 尚 on August 09, 2009, 04:57:39 AM
@duder> Well, I'm guessing SMG isn't exactly designed for this kind of catastrophy... You really should have up-to-date backups, is all I got to say... Can't say more without access to your FTP & db anyway. And I don't have time for that these days.

Can you tell me what I am looking for?
Or would it be too much work for high risk?

I would assume there is a way to just delete all sections for SMG in a database somewhere.

I just don't even know where to look.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Harvester on August 09, 2009, 04:01:58 PM
do you have access to phpmyadmin?

looks like all the SMG tables are named:  smf_mgallery_(somethingorother)
the ones I see are called:

smf_mgallery_albums
smf_mgallery_comments
smf_mgallery_fields
smf_mgallery_field_data
smf_mgallery_files
smf_mgallery_log_media
smf_mgallery_log_ratings
smf_mgallery_media
smf_mgallery_perms
smf_mgallery_quotas
smf_mgallery_settings
smf_mgallery_variables

im guessing if you went into you PHPMyAdmin and deleted those tables, you should wipe out all traces of your old gallery and be able to reinstall it.

Also, Id check the parser and see what files SMG places on your server and go find em all and remove em all (back em up before you delete them) except your albums. mgal_data

then Id reinstall.

this is just what I would do... cant say that it is the best method but Id gamble on it working. :D
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Harvester on August 09, 2009, 09:45:11 PM
ok I goofed up lol

I installed 2b3 and in an effort to fix a problem I had, I removed all files that had to do with SMG and did all my manual edits again.

What I ended up doing was losing the mod that I had that showed the most recent items on my forums front page above the recent posts area.

Now I cant find that mod. I know I read it in this thread.. I know I even told someone else in this thread how to find it after I did... but now I cant find it... it looks like someone removed that post of mine?

anyway... I want to be able to show the recent items added to the gallery on my forums index above my recent posts but I cant find the mod... someone help me?

I checked here and on smf-media.com but I cant find it.

im running 2b3 and 1.1.10
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: duder673 on August 09, 2009, 10:16:32 PM
Harvester: http://smf-media.com/community/index.php?topic=602.0
Have to be logged in to download it.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Harvester on August 09, 2009, 11:28:09 PM
Quote from: duder673 on August 09, 2009, 10:16:32 PM
Harvester: http://smf-media.com/community/index.php?topic=602.0
Have to be logged in to download it.

sweet! thank you Duder! thats the one i wanted :D
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: duder673 on August 10, 2009, 02:17:47 AM
Quote from: Harvester on August 09, 2009, 11:28:09 PM
sweet! thank you Duder! thats the one i wanted :D
Cool man, and I did what you told me to do and it worked.

I kinda figured that I had to do that, but I don't think I would have had the balls to try it without someone saying something lol.

But anyway, it has worked so far.
I simply trucated all data inside those areas and they were empty.

I'll update if something happens later in case anyone needs this info in the future, but I think it should be straight.

Thanks
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 10, 2009, 01:06:49 PM
Took a few minutes to release beta 4 :)

Link to the mod's download page (http://custom.simplemachines.org/mods/?mod=1365)

From the changelog :
Version 2.0 beta 4                                August 10, 2009
-----------------------------------------------------------------
! Ajax rating was broken in SMF1
+ Added number of unseen items in menu, next to the Gallery link. The number is updated automatically.
! Fixed some ffmpeg library's incompatibility with the resize() method, by replacing it with a GD resize. Needs some testing! I don't have ffmpeg myself...
* Moved "mark as seen" to its own function which has a 20% chance of doing a table optimize (otherwise it often gets unused space quickly)
+ Call mark as seen function if current user has no outstanding unseen item and hasn't clicked the "mark as seen" button by him/herself
! Item pages wouldn't validate because w3c wants textarea's to have the cols tag in them, even if empty
* Removed "Your albums" header from "My albums" section -- it was a bit unneeded
* Added a border to subheader divs so that they look more like the admin area's
* Use max title length to limit album length in smg_item_list as well
* Added an id to the tabs, if you want to style it to your taste
! Album name wasn't being shown on the recent items list
! Embedded mp3's had layout slightly broken
! Fixed potential css glitch on Core themes
* Don't allow guests in the Unseen area
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: digger on August 10, 2009, 02:38:04 PM
Quote from: Nao 尚 on August 10, 2009, 01:06:49 PM
Took a few minutes to release beta 4 :)

! Fixed some ffmpeg library's incompatibility with the resize() method, by replacing it with a GD resize. Needs some testing! I don't have ffmpeg myself...

Fatal error: Call to a member function getFrameWidth() on a non-object in /usr/local/www/forums/Sources/Subs-MGallery-Vital.php on line 1056
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 10, 2009, 05:21:25 PM
Well Mr. Digger, I told *you* I needed you to test my tentative fix ASAP. Since you didn't reply, I assumed it was working and all. Now you'll have to wait for beta 5, and I'm not going to rush it out because of that. Blame yourself.

Anyone else -- feedback on Beta 4 please :) Positive or negative alike.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Petee on August 10, 2009, 06:19:23 PM
SMF 1.10 rating now works, for the most part. Woo hoo!  When giving a rating of "0", the "in progress" icon does not go away. If you refresh the page, you see that the rating worked though.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: LHW on August 10, 2009, 06:34:20 PM
When I first tried the rating system on v1.1.10, it didn't seem to work.  I figure it was the cached code, because once I reloaded the page, it worked fine.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Harvester on August 10, 2009, 10:49:22 PM
Im loving being able to vote again!

Thank you so much for your hard work Nao and Dragoon! SMG just keeps getting better and better.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Bigguy on August 10, 2009, 11:30:43 PM
Has there been any testing or workarounds done for making this work on a site that uses the port address in the url. Just thought I would see if anyone had any ideas. :)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: thatguy on August 11, 2009, 08:26:49 AM
Is there any chance I can a person familiar with this plug in for hire? I really don't want to give up on this mod. However, I have not been able to get the full benefit of this mod because I could not get it work properly. I can't upload any videos of any size and it the logs this error is persistent:

Unable to load the 'MGallery.english-utf8' language file.

I Don't think that has anything to do with my issue, however. If you have Paypal let me know.

Thanks
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 11, 2009, 09:53:12 AM
Rename MGallery.english.php to MGallery.english-utf8.php in your languages folder...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: thatguy on August 11, 2009, 09:58:42 AM
Quote from: Nao 尚 on August 11, 2009, 09:53:12 AM
Rename MGallery.english.php to MGallery.english-utf8.php in your languages folder...

Will that fix the other issues?

Thanks
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 11, 2009, 10:12:43 AM
Well, for the video issue, just read the docs, okay? mod_security, crossdomain, php.ini, all that stuff...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: thatguy on August 11, 2009, 10:14:45 AM
Quote from: Nao 尚 on August 11, 2009, 10:12:43 AM
Well, for the video issue, just read the docs, okay? mod_security, crossdomain, php.ini, all that stuff...

OK, I will.

Thank you.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 11, 2009, 10:25:10 AM
Your php.ini settings are indicated in the admin area (gallery > settings). If you're using v2.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: thatguy on August 11, 2009, 10:25:20 AM
I can't mess around with this now. I don't have FTP access here however, when updating to either 2.0 beta 3 or 4 I get this error:

Execute Modification     ./Sources/Load.php     Test failed

I'll try again when I get home. In the mean time could some direct me to the documentation for this mod? I am using 2.0 beta 1

Thank you.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Petee on August 11, 2009, 11:31:35 AM
Quote from: thatguy on August 11, 2009, 10:25:20 AM
I can't mess around with this now. I don't have FTP access here however, when updating to either 2.0 beta 3 or 4 I get this error:

Execute Modification     ./Sources/Load.php     Test failed

I'll try again when I get home. In the mean time could some direct me to the documentation for this mod? I am using 2.0 beta 1

Thank you.

You removed the old version before installing this version, right?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: MUSTAfaINE on August 11, 2009, 11:39:36 AM
is there anyone send me the phpmyadmin albums database table... 

cause it has an error : This album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums are chmodded to 0777 

please send me one..

INSERT INTO `metalfrm_smf_mgallery_albums` (`id_album`, `album_of`, `member_name`, `type`, `name`, `description`, `icon`, `passwd`, `directory`, `parent`, `access`, `approved`, `a_order`, `child_level`, `id_last_media`, `num_items`, `options`, `id_perm_profile`, `id_quota_profile`, `hidden`, `allowed_members`, `denied_members`, `id_topic`) VALUES
(1, 0, '1', '', 'Megadeth', 'Megadeth Klipleri ve Konserleri', 0, '', '0', 0, '0', 1, 0, 0, 0, 0, 'a:7:{s:8:"lightbox";s:3:"yes";s:7:"outline";s:11:"drop-shadow";s:8:"autosize";s:3:"yes";s:6:"expand";i:250;s:9:"fadeinout";i:0;s:4:"sort";s:15:"m.id_media DESC";s:4:"view";s:6:"normal";}', 2, 1, 0, '', '', 0),


i did a folder with this sql but i couldnt the 2nd one.. please send me the yours..
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Harvester on August 11, 2009, 11:40:27 AM
Quote from: thatguy on August 11, 2009, 10:25:20 AM
I can't mess around with this now. I don't have FTP access here however, when updating to either 2.0 beta 3 or 4 I get this error:

Execute Modification     ./Sources/Load.php     Test failed



That is because your Load.php has been edited before. Just go ahead and install it anyway. Then go to the parser and manually edit your Load.php
parser = http://custom.simplemachines.org/mods/index.php?mod=1365 
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 11, 2009, 01:35:47 PM
Quote from: MUSTAfaINE on August 11, 2009, 11:39:36 AM
is there anyone send me the phpmyadmin albums database table... 

cause it has an error : This album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums are chmodded to 0777 
That's not a database/mysql error...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: midiof[f] on August 11, 2009, 03:28:18 PM
i use SMF bridge for CMS mambo ..
could be i make an external script with 1 random image into the mambo template?
its not problem with another functions?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: noaccess on August 12, 2009, 12:16:31 PM
For those wondering about how to get the gallery to show random images on your main page, this is what I did:

Open up BoardIndex.template.php
find
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;

if ($context['user']['is_logged'])
{


and add after

global $sourcedir, $galurl;

require_once($sourcedir . '/Subs-MGallery.php');
loadMGal_Settings();

if (loadlanguage('MGallery') == false)
  loadLanguage('MGallery', 'english');

$items = getMediaItems(0, 6, 'rand()');

echo '
<div class="tborder" style="margin-top: 0;">
<table border="0" BORDERCOLOR=BLACK width="956" cellspacing="1" cellpadding="5" class="bordercolor" style="margin-top: 0px;">
<tr class="catbg" width="960">
<td><a href="/index.php?action=mgallery">Random Gallery Images</a></td>
</tr>

<table border="0" BORDERCOLOR=BLACK width="956" cellspacing="1" cellpadding="5" class="bordercolor" style="margin-top: 0px;">
<tr class="titlebg">';

foreach ($items as $item)
  echo '
    <td class="windowbg">
    <div class="smalltext" style="text-align: center;">
    <a href="',$galurl,'sa=item;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';thumb" /></a><br /> 
</div>
</td>';
echo '
</tr>
</table>
</table>
</div>';
}


This will show random gallery images below the buttons on your main forum page. The number of images it shows can be set in this line, "$items = getMediaItems(0, 6, 'rand()');" change 6 to whatever number of images you want. Also notice the width size, you can set it to "100%" if you have it standard.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: noaccess on August 12, 2009, 12:19:56 PM
Anyway, like many others I can't use mass uploader. I checked phpmyinfo, but it has no references to mod_security, so im guessing I don't have it. I've created a crossdomain.xml in my main root folder with the following code:

<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">

<cross-domain-policy>

<allow-access-from domain="*"/>

<site-control permitted-cross-domain-policies="master-only"/>

</cross-domain-policy>


Any idea what else it could be?

I checked the folder it uploads to via ftp, unfortunately everything seems to be renamed, so uploading directly via ftp seems to be a no go either, lol....
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 12, 2009, 12:22:57 PM
No, pictures aren't renamed...

(Could someone update the topic's title, too?)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Aoife on August 12, 2009, 12:26:37 PM
Yesterday I installed the Beta4 version to our forums and so far so good.  One member had an issue with IE crashing everytime he tried to access the gallery but it seems to have been resolved (I think it was on his end, not the mod's).

I really like the mod, and I'm hoping our members will too.  Thank you for your efforts!

:D
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: ethankcvds on August 12, 2009, 12:32:24 PM
Congrats on Beta 4 I've been busy and still am as a matter of fact.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: noaccess on August 12, 2009, 12:52:21 PM
Quote from: Nao 尚 on August 12, 2009, 12:22:57 PM
No, pictures aren't renamed...

(Could someone update the topic's title, too?)

They are renamed. Example:
/mgal_data/albums/Navy/Dir_1/141_344504_orig_jpg6f8cf0d5f46e9000b79f0f773a3246be_extjpg
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: Nao 尚 on August 12, 2009, 01:49:26 PM
Yeah but when you download the file from the interface, it ain't renamed. It keeps the original filename... That's what matters, isn't it?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: noaccess on August 12, 2009, 05:30:03 PM
Where exactly is this ftp interface? I looked everywhere in admin panel...
I just checked the ftp folder via ftp cleint login.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: LHW on August 12, 2009, 05:50:17 PM
For v2b4, it's under Admin / Gallery / FTP.  This only moves the files that have been uploaded to the FTP area to the selected Album...you'll need to use a 3rd party FTP program to get the files to your server (I use FireFTP...an add-on for Firefox).

Once connected, upload the files to: {your SMF Root-Directory}/mgal_data/ftp.

Hope this helps.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: dannys on August 13, 2009, 06:09:42 AM
i move some folders  from admin cp on gallery and then i can't access my mgallery give Internal Server Error before movment albums all works fine
i add to .htaccess   SecFilterEngine Off   SecFilterScanPOST Off but nothing same problem all files hase 755 i try with 777 same problem i can access on admin panel all exept albums i unistall mgallery and install again same problem
on errors logs
Apply Filter: Only show the error messages of this URL http://sidux.gr/forum/index.php?action=mgallery
8: Undefined index: left-tp-upshrink_description
file: /home/sidux/public_html/forum/Sources/TPortal.php
line: 1813


mgallery Installed version: 2.0 beta 4
smf 1.1.10

what else to try?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 3 released
Post by: dannys on August 13, 2009, 07:33:33 AM
ok i run mgconverter_cpg.php and i upload all files from this mod to server again and now work (well all changes gone but work )
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Kindred on August 13, 2009, 01:31:03 PM
version in post title and first post changed
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: LHW on August 13, 2009, 08:10:20 PM
SMF: v1.1.10
SMG: v2b4

Quote from: Nao 尚 on August 03, 2009, 12:03:03 PM
Error 500 => check your file permissions by FTP. Make sure it's 0644 or 0755 for MGalleryItem.php!

Nao, for some reason, after I used the FTP feature to add files to an album, this file's permissions were changed to 666, and Direct Linking didn't work.  Setting it back to 644 resolved the problem.

Just thought you'd like to know.  :)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 14, 2009, 05:03:11 PM
The FTP feature is Dragooon's, he knows best on that particular point. I don't remember seeing the code chmod anything to 0666, so clearly your server configuration is to blame. ^^

(Thanks kindred!)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: flamechica on August 14, 2009, 05:03:29 PM
I am using SMF 2.0 RC1.2 and just installed this mod (1.5.6). When I try to create an album it keeps coming up with this error:

QuoteAn Error Has Occurred!
This album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums is chmodded to 777         

Funny thing is, is that the directory and the file they are talking about are indeed chmodded to 777...any suggestions???
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 15, 2009, 08:57:46 AM
php safe mode?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: flamechica on August 15, 2009, 03:41:48 PM
Quote from: Nao 尚 on August 15, 2009, 08:57:46 AM
php safe mode?

Not sure what that is. How do I check?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 15, 2009, 06:41:20 PM
Ask your host...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: CrazyRed98 on August 15, 2009, 11:03:20 PM
How Do I get the gallery button to be shown on a custom theme? Also very good work with the mod.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Kindred on August 15, 2009, 11:16:11 PM
you will have to manually add the button code (and possibly other edits) into your sutom theme's template files. (just like all other mods)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: manixless on August 15, 2009, 11:43:49 PM
Hello All,

I'm getting the error below when I try forum/?action=mgallery:

Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation 'ifnull'
Archivo: .../../.../Sources/Subs-MGallery.php
Línea: 3370

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.10, while your database is at version 1.1.7. The above error might possibly go away if you execute the latest version of upgrade.php.
(translated, cause my forum is in spanish lang)

How can I solve this problem?

Additional information:
-smg version: 1.5.6
-database collation: utf8_unicode_ci
-mgallery tables collation: utf8_unicode_ci 
-site: http://harrypotteralive.com/colegio

If you have any doubt please let me know. I'll be waiting for your response.

Thanks so much
If you have an



Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: CrazyRed98 on August 15, 2009, 11:49:48 PM
Quote from: Kindred on August 15, 2009, 11:16:11 PM
you will have to manually add the button code (and possibly other edits) into your sutom theme's template files. (just like all other mods)
yeah I know that part, but what I want is where to get the edits for custom themes? should I get it from the parse.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 16, 2009, 03:09:22 AM
Quote from: manfred on August 15, 2009, 11:43:49 PM
Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation 'ifnull'
Archivo: .../../.../Sources/Subs-MGallery.php
Línea: 3370
smf_members should have the same collation as smf_mgallery_media.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Kindred on August 16, 2009, 08:36:55 AM
Quote from: CrazyRed98 on August 15, 2009, 11:49:48 PM
Quote from: Kindred on August 15, 2009, 11:16:11 PM
you will have to manually add the button code (and possibly other edits) into your sutom theme's template files. (just like all other mods)
yeah I know that part, but what I want is where to get the edits for custom themes? should I get it from the parse.

yes
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: manixless on August 16, 2009, 11:05:04 AM
Quote from: Nao 尚 on August 16, 2009, 03:09:22 AM
Quote from: manfred on August 15, 2009, 11:43:49 PM
Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation 'ifnull'
Archivo: .../../.../Sources/Subs-MGallery.php
Línea: 3370
smf_members should have the same collation as smf_mgallery_media.

Done, thanks my friend, that's all.

So, to fix the problem we need to set the collation utf8_general_ci for smg tables and the smf tables. Also, that's not enough, you also need to change the collation for columns in smf_members and smf_mgallery_media too, the reason is thst you make the reference compatible!!

thanks Nao

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: darkblack323 on August 16, 2009, 11:19:46 AM
hi !

ı m use 1.1.10. ı am setup smg but ı did take that messages:



Not Acceptable

An appropriate representation of the requested resource /forum/index.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


what can ı do?

thx


edit:

my htacsess files:



<IfModule mod_security.c>
   # Turn off mod_security filtering.  SMF is a big boy, it doesn't need its hands held.
   SecRuleEngine Off

   # The below probably isn't needed, but better safe than sorry.
   SecRequestBodyAccess Off
SecFilterScanPOST Off
</IfModule>



but not workingg smg :(
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: varmandra on August 16, 2009, 01:07:48 PM
I got these error

Frank   Heute um 18:56:31 
xxx.xxx.xxx.xxx     1f7e4e19cd61496127f44862e4f52cc6 
http://www.varmandra.com/privat/index.php?action=profile 
8: Undefined index: mgallery_view_votes
Datei: /home/single/www/varmandra.com/privat/Sources/Profile.php
Zeile: 286

   Frank   Heute um 18:56:31 
xxx.xxx.xxx.xxx     1f7e4e19cd61496127f44862e4f52cc6 
http://www.varmandra.com/privat/index.php?action=profile 
8: Undefined index: mgallery_view_coms
Datei: /home/single/www/varmandra.com/privat/Sources/Profile.php
Zeile: 285


i use (all with german languages from smfportal.de):

1. SMF 1.1.10
2. TinyPortal 1.083
3. Repeating Calendar Events v1.2.6 1.2.6 
4. SMF Gallery Lite 2.0.5
5. SMF Media Gallery 2.0 beta 4
6. Invite 1.14

i use IE, i didn´t try out other browser till now.

i you need aditional information, ask.

BdT
Varmandra
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: t.heshka on August 16, 2009, 01:49:18 PM
Hello, I am quite new to the whole administering of a forum thing. Right now I am still just trying to get everything running the way I want to before my site goes online. I have a custom theme I downloaded from SMF (Simplify 1.1.10) as well as a few custom mods;

1.     Add Favicon.ico Support      1.0   
2.    Banned members avatar    0.1    
3.    Bot Buster 1.1    
4.    Caps_Lock_Detection_on_Login    1.1    
5.    Custom_Greeting_Depending_on_Time    1.1
6.    Invite 1.14    
7.    PM On Registration 1.0.2    
8.    SMF Media Gallery 2.0 beta 4    
9.    Social Bookmarks

I downloaded the Gallery and installed it into SMF, I can access the Gallery Admin and the Gallery if I type in  ".../index.php?action=mgallery" however,  there is no button on the navigation :S I hope this isn't covered somewhere already- I tried searching to no avail. Any help would be greatly appreciated! Thanks! :)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Soms on August 16, 2009, 02:23:21 PM
Quote from: t.heshka on August 16, 2009, 01:49:18 PM
I hope this isn't covered somewhere already

Yes it has. On the previous page amongst others. You have to manually do this.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: t.heshka on August 16, 2009, 03:03:01 PM
I've read the last few pages and all I found was that it indeed needs to be manually added.

I go Admin> Current Theme> Modify the index template> Beginning on line 350

I can see the rest of the navigation buttons code, but what code do I need to add in order for the button to show up?


If this is a commonly asked question maybe the creator could add the tidbit of code required to manually add the button in the mods Readme file for the next release??


I was able to fix my button problem, after some difficulties. :)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Neverhurry on August 16, 2009, 03:22:40 PM
Hi, i am using SMG 1.5.6 and want to upgrade to the latest version, is there any important thing i should know before the upgrade? i am using SMF 1.1.9. thank you.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: varmandra on August 16, 2009, 03:28:32 PM
Quote from: varmandra on August 16, 2009, 01:07:48 PM
I got these error

Frank   Heute um 18:56:31 
xxx.xxx.xxx.xxx     1f7e4e19cd61496127f44862e4f52cc6 
http://www.varmandra.com/privat/index.php?action=profile 
8: Undefined index: mgallery_view_votes
Datei: /home/single/www/varmandra.com/privat/Sources/Profile.php
Zeile: 286

   Frank   Heute um 18:56:31 
xxx.xxx.xxx.xxx     1f7e4e19cd61496127f44862e4f52cc6 
http://www.varmandra.com/privat/index.php?action=profile 
8: Undefined index: mgallery_view_coms
Datei: /home/single/www/varmandra.com/privat/Sources/Profile.php
Zeile: 285


i use (all with german languages from smfportal.de):

1. SMF 1.1.10
2. TinyPortal 1.083
3. Repeating Calendar Events v1.2.6 1.2.6 
4. SMF Gallery Lite 2.0.5
5. SMF Media Gallery 2.0 beta 4
6. Invite 1.14

i use IE, i didn´t try out other browser till now.

i you need aditional information, ask.

BdT
Varmandra

Solved for me
i find the error, ther were some lines missing in the translation :)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: qubbah on August 16, 2009, 07:43:47 PM
i have got this during maintenance..

The database value you're trying to insert does not exist: filesize
C:\xampp\htdocs\v1\Sources\Subs-MGallery.php
1641

help me please...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: flamechica on August 17, 2009, 03:45:53 PM
Quote from: flamechica on August 15, 2009, 03:41:48 PM
Quote from: Nao 尚 on August 15, 2009, 08:57:46 AM
php safe mode?

Not sure what that is. How do I check?

Quote from: Nao 尚 on August 15, 2009, 06:41:20 PM
Ask your host...

I asked my host and they say that php safe mode is disabled. Any other suggestions? I'd really like to use this mod. I had SMF Gallery Lite on my 1.1.0 forum, but I think I would rather use this one because it has more options.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 17, 2009, 06:34:52 PM
Ask them about the problem you're having. I'm not in control of your server and how it deals with folder creation permissions...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: bmbpdk on August 17, 2009, 07:09:12 PM
hi

i have just installed SMF Media Gallery on smf 1.1.4 and it installed fine but.....
when i try to enter my admin or gallery area i get these errors:

when i try to enter my admin area:
Fatal error: require_once(): Failed opening required '/hsphere/local/home/bmbpdk/farmingsimulatormods.dk/smf/Sources/MGallery-Admin.php' (include_path='.:/hsphere/shared/apache/libexec/php5ext/php/') in /hsphere/local/home/bmbpdk/farmingsimulatormods.dk/smf/Sources/Subs.php on line 2829


When i try to enter the gallery area:
Fatal error: require_once(): Failed opening required '/hsphere/local/home/bmbpdk/farmingsimulatormods.dk/smf/Sources/MGallery.php' (include_path='.:/hsphere/shared/apache/libexec/php5ext/php/') in /hsphere/local/home/bmbpdk/farmingsimulatormods.dk/smf/index.php on line 345

Any help that works would be worth a million bucks!


Cheers
Brian
Denmark
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: LHW on August 17, 2009, 07:48:11 PM
Quote from: bmbpdk on August 17, 2009, 07:09:12 PM
Any help that works would be worth a million bucks!

Be careful...Nao's always lookin' for someone that'll pay him for his work.  ;)  LOL
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Kindred on August 17, 2009, 08:22:07 PM
looks like the server did not allow the installation of the mgallery file(s)


Side note....  Upgrade your forum ASAP...  1.1.4 has known security issues which have been patched.   The current, secure version is 1.1.10
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: zagrom on August 17, 2009, 09:21:09 PM
Ok, just manually added this mod, been meaning to for some time,
anyway, when I go the the "Gallery" page I get this error:

QuoteUnknown column 'a.hidden' in 'where clause'
File:/public_html/Sources/Subs-MGallery.php
Line: 965

I looked at line 965, not sure what needs to be done tho,
any ideas, thanks to any help.



On closer inspection, I also have these errors:
QuoteUnknown column 'a.hidden' in 'field list'
File: /public_html/Sources/Subs-MGallery.php
Line: 987
In the admin panel under "Albums" and "FTP"

QuoteUnknown column 'id_perm_profile' in 'field list'
File: /public_html/Sources/MGallery-Admin.php
Line: 2199
Under "permissions"

QuoteUnknown column 'id_quota_profile' in 'field list'
File: /public_html/Sources/MGallery-Admin.php
Line: 2787
Under "Membergroup Quotas"


Ill look into it, but I have NO idea what to do...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: zagrom on August 17, 2009, 09:49:58 PM
Hmm, well I think I fixed it,
I had to reupload the files
and it SEEMS to be working
for now, only issue was that
I couldn't delete the old files
and folders, only rename them.

the chmod is stuck on "xxx"
which I have never had happen
before, anyways, Ill figure that
out later, they are not hurting
anything as is.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: rgecy on August 18, 2009, 01:17:24 AM
How do I fix this issue with the Header in the Gallery?  Its showing too big in my forum!  Installed 2.04b on SMF 1.1.9.

Thanks,

RGecy
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: ManicDefender on August 18, 2009, 02:15:28 AM
Is there any way to back up images in SMG (either beta or regular versions?) as I have had a hard drive failure and require some of the images locally. Looking in MGAL_DATA I can see the pictures, however they don't have a specific format (i.e. JPG).

Is there any way to mass download and re-convert them back to regular images? Rather than downloading over 1000 photo's manually?

Sorry if this has already been asked, I did try using the search feature

Thanks
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 18, 2009, 02:30:46 AM
Quote from: rgecy on August 18, 2009, 01:17:24 AM
How do I fix this issue with the Header in the Gallery?  Its showing too big in my forum!  Installed 2.04b on SMF 1.1.9.

Thanks,

RGecy
Ask Dragooon... He's the one who replaced my table-based header with a div-based header... People around here know how I feel about using CSS crap as a replacement for tables... :P

@manic> there's a mass download option in smg2

@zagrom> you forgot to run db_mgallery.php

@warlock> why, you don't think that hard work deserves retribution?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: ManicDefender on August 18, 2009, 04:48:06 AM
Thanks, really appreciate that.

Next question. Is there any way to adjust the FFMPEG path in SMG? My host has it installed (and allows a custom install too) yet it's showing as not being installed.

Is this because its missing the FFMPEG-PHP addon, or should this not be essential?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: LHW on August 18, 2009, 06:46:03 AM
Quote from: Nao 尚 on August 18, 2009, 02:30:46 AM
@warlock> why, you don't think that hard work deserves retribution?

Not at all.  I'd gladly pay a reasonable fee for SMG...but a million dollars seems a bit steep to me.  ;)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: bmbpdk on August 18, 2009, 07:34:12 AM
Quote from: Kindred on August 17, 2009, 08:22:07 PM
looks like the server did not allow the installation of the mgallery file(s)


Side note....  Upgrade your forum ASAP...  1.1.4 has known security issues which have been patched.   The current, secure version is 1.1.10

thanks, but how do i upgrade it, when i cant enter my admin area???
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Kindred on August 18, 2009, 08:14:31 AM
I suggest that you upgrade by using FTP to upload the 1.1.10 version files (this will remove all mods that you have installed, and you can then re-apply the mods for the 1.1.10 version)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: bmbpdk on August 18, 2009, 08:17:25 AM
Quote from: Kindred on August 18, 2009, 08:14:31 AM
I suggest that you upgrade by using FTP to upload the 1.1.10 version files (this will remove all mods that you have installed, and you can then re-apply the mods for the 1.1.10 version)

Im a total newbie to smf, so can you link to a guide on how to manually update my forum?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: ManicDefender on August 18, 2009, 08:37:55 AM
Any ideas on how to change FFMPEG path?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: bmbpdk on August 18, 2009, 08:50:10 AM
wooohoooo i got it working now!!

i open up my ftp client, found and opened subs.php and deleted two sections called mgallery


but thanks to you guys trying to help me!
you are really doing a GREAT job!


Take care
Brian
Denmark
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: rgecy on August 18, 2009, 10:10:08 AM
Quote from: Nao 尚 on August 18, 2009, 02:30:46 AM
Quote from: rgecy on August 18, 2009, 01:17:24 AM
How do I fix this issue with the Header in the Gallery?  Its showing too big in my forum!  Installed 2.04b on SMF 1.1.9.

Thanks,

RGecy
Ask Dragooon... He's the one who replaced my table-based header with a div-based header... People around here know how I feel about using CSS crap as a replacement for tables... :P

Thanks, I will see if Dragoon answers? 

In the mean time, anyone else have any ideas?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: BYUFanatic on August 18, 2009, 09:39:30 PM
Hey!

After an "extended leave" due to being extremely busy, I'm back!

First off, I must say that all the upgrades, tweaks, changes, etc. look great! I'm very excited about using it this year with my students.

I do have one question -

When I login on a test account I created for myself and I click on the "gallery" tab from the index.php screen I get this error message:

"Sorry, but you are not allowed to access the gallery"

However, AFTER I get the error message, if I click on the little gallery links for "home" or "my albums" then it loads properly.

Any idea why it's doing that? I've turned on the general permissions and also set the gallery permissions. So unless I'm missing something somewhere I don't know what's up.

Thanks for a great mod.

Rob
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: rgecy on August 18, 2009, 10:46:02 PM
I had this same issue yesterday.  You have to have View Unseen Area checked under permission.  Basically when you click on the Gallery tab and there are new images, you are going to the unseen area.

Even though there are new images, do I want to go to just the unseen area?  What if there are only 1 or 2 new images?

Robert
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 19, 2009, 05:52:49 AM
Same answer as rgecy. :)

As for the unseen stuff, if you don't want to view all the new pics, just click the Mark all as seen button. Then you'll be directed to the gallery when you click on the gallery button next time.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: BYUFanatic on August 19, 2009, 03:08:36 PM
Quote from: BYUFanatic on August 18, 2009, 09:39:30 PM
Hey!

After an "extended leave" due to being extremely busy, I'm back!

First off, I must say that all the upgrades, tweaks, changes, etc. look great! I'm very excited about using it this year with my students.

I do have one question -

When I login on a test account I created for myself and I click on the "gallery" tab from the index.php screen I get this error message:

"Sorry, but you are not allowed to access the gallery"

However, AFTER I get the error message, if I click on the little gallery links for "home" or "my albums" then it loads properly.

Any idea why it's doing that? I've turned on the general permissions and also set the gallery permissions. So unless I'm missing something somewhere I don't know what's up.

Thanks for a great mod.

Rob
Quote from: Nao 尚 on August 19, 2009, 05:52:49 AM
Same answer as rgecy. :)

As for the unseen stuff, if you don't want to view all the new pics, just click the Mark all as seen button. Then you'll be directed to the gallery when you click on the gallery button next time.

Hmmm... rgecy and I are having two completely different problems.

When clicking on the "GALLERY" tab on the header I'm given the error that I can't access the gallery. However, if I ignore that error and click on the Gallery "HOME" or "MY ALBUM" tabs on the right side it goes directly to the gallery.

However, when I login as the admin, I don't get this error.

If you want a test account, just let me know and I'll create one for you to try it yourself.

Rob
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 19, 2009, 03:43:38 PM
Again -- what you're accessing is the unseen area. Give users the permission to visit it.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: BYUFanatic on August 19, 2009, 04:30:53 PM
Quote from: Nao 尚 on August 19, 2009, 03:43:38 PM
Again -- what you're accessing is the unseen area. Give users the permission to visit it.

Ah, I see... so by default the Gallery takes the users straight to the "unseen area" when they click on the Gallery tab. "Unseen" means items that they have not viewed yet. Got it. Thanks, that fixed the problem.

Another question - I don't want it to default to the unseen area - as the school year progresses there will be hundreds of videos for various different classes. I don't need for students of one class to be presented with unseen videos from another class. So I'd much rather it take them directly to the albums list and they can choose their class videos directly from there. Is there a way to do this? (or basically to switch off taking them to the "unseen area" since they don't need it?

Thanks!

Rob
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 19, 2009, 04:56:15 PM
Yeah, I see what you mean...
I will disable that feature for users who don't have access to the unseen area. It makes more sense indeed.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 19, 2009, 05:03:04 PM
Quick workaround... Open Subs-MGallery.php
Search for

updateMemberData($user_info['id'], array('mgal_unseen' => $mgallery_unseen));

Replace with

updateMemberData($user_info['id'], array('mgal_unseen' => mgalAllowedTo('access_unseen') ? $mgallery_unseen : 0));

This isn't the code that'll be in Beta 5 (it will disable the extra query as well), I just figured it'd be easier for you to change it this way.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: BYUFanatic on August 19, 2009, 10:06:26 PM
I put the work around in place - still has regular users defaulting to the "unseen area" when they access the gallery.

Rob
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 19, 2009, 11:26:31 PM
Well, err... Double check to make sure they don't have the permission for Unseen, then ;)
Also, replace the
$user_info['mgal_unseen'] = $mgallery_unseen;
(the line just below) with the same trick...
$user_info['mgal_unseen'] = mgalAllowedTo('access_unseen') ? $mgallery_unseen : 0;
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: ManicDefender on August 20, 2009, 01:30:26 AM
Does anybody know how to fix this? Notice the grey and white, dont go well together on a green forum hehehe. Its the picture header from the gallery (beta version)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg23.imageshack.us%2Fimg23%2F351%2Fscreenshotwop.th.jpg&hash=daa1cba7fb31ba2fde5dd298f64447251ce726e6)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: darkblack323 on August 20, 2009, 07:18:38 AM
hi my friends please help me.  ı have one problem. when ı edit/add/delete album its not workind: it say:

Not Acceptable

An appropriate representation of the requested resource /forum/index.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

my .htacess files :


<IfModule mod_security>

   SecFilterEngine Off
   SecFilterScanPOST Off

</IfModule>

ı talk my hosting company, ı sad please disable mod_Securty. they tell me 'its very risk'

what can ı do ? ı want use SMG
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: flamechica on August 20, 2009, 08:05:14 AM
Quote from: flamechica on August 14, 2009, 05:03:29 PM
I am using SMF 2.0 RC1.2 and just installed this mod (1.5.6). When I try to create an album it keeps coming up with this error:

QuoteAn Error Has Occurred!
This album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums is chmodded to 777         

Funny thing is, is that the directory and the file they are talking about are indeed chmodded to 777...any suggestions???

By the way, if anyone else has this problem, I finally found the solution. All the directories in the package were for some reason uploaded as files instead of directories. I had to go through and manually copy all the directories into the correct spots.





Now, I have a new problem. I was able to create some albums, but when I go to upload a picture to them, it keeps telling saying "Error, File Not Found!" I tried to mass upload and it says it uploaded 100% but then the files aren't in there. Any clue why uploading is not working?
Title: Re: SMF Media Gallery (SMG) - 1.5.6 released
Post by: DirtRider on August 20, 2009, 09:07:54 AM
Quote from: DirtRider on May 13, 2009, 10:21:32 AM
PAID feature Request

I know that asking for additional feature on this mod is a bone of contention. However I would like to run this on my main forum in place of the gallery I already have. However I need a feature added before I can do this and I am willing to pay for it.

This is what I need - When something new is added to the gallery I need it to post a thread in a specified forum area for that new upload like this

Quote from: jmv2006 on July 19, 2008, 07:03:46 AM
Thruxton TCMoto-4

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ftriumphtalk.com%2Fgallery%2F0%2F8_19_07_08_7_03_46_1.jpg&hash=20671dfffb6afecdc486e12169456b6d80ae272e)

http://triumphtalk.com/index.php?action=gallery;sa=view;id=385

Please let me know if this would be possible and at what price

Nao have you given this one any more thought  ;D Also see this topic http://www.simplemachines.org/community/index.php?topic=310396.msg2060473#msg2060473 (http://www.simplemachines.org/community/index.php?topic=310396.msg2060473#msg2060473)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: BYUFanatic on August 20, 2009, 12:54:32 PM
Quote from: Nao 尚 on August 19, 2009, 11:26:31 PM
Well, err... Double check to make sure they don't have the permission for Unseen, then ;)
Also, replace the
$user_info['mgal_unseen'] = $mgallery_unseen;
(the line just below) with the same trick...
$user_info['mgal_unseen'] = mgalAllowedTo('access_unseen') ? $mgallery_unseen : 0;


Nope. None of that worked either. I'm finding that part of the problem is this:

When I login as the administrator and I click on the GALLERY tab, this is the url:

http://forum.[domain name here].com/index.php?action=mgallery

However, when I login as a regular user and I click on the GALLERY tab, the url is this:

http://forum.[domain name here].com/index.php?action=mgallery;sa=unseen

Part of the problem is that it's tacking the "sa=unseen" onto the end of the url and that needs to be removed. I'm tempted to hunt through the files to find out where the url is created, but with school starting next week I don't have the time, so I'm resisting that temptation as best I can.

Rob
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: rgecy on August 21, 2009, 01:44:18 AM
Quote from: rgecy on August 18, 2009, 01:17:24 AM
How do I fix this issue with the Header in the Gallery?  Its showing too big in my forum!  Installed 2.04b on SMF 1.1.9.

Thanks,

RGecy

Dragoon,

Any help to this issue?  http://www.simplemachines.org/community/index.php?topic=260821.msg2218569#msg2218569

Thanks,

RGecy
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 21, 2009, 12:46:21 PM
@BYU> I told you... The code I gave you WILL absolutely, totally and completely remove the unseen part of the URL. You probably didn't patch it correctly.

@DirtRider> I sold 3 copies of Foxy! in 6 weeks (so that makes a 90€ benefit for 2 months of fulltime work on the mod), so I'm definitely not in a hurry to develop any additional features for said mod...
And new features for SMG itself are limited to my own needs I'm afraid. With Dragooon dropping out of the project and not willing to pass it along to me (which is totally up to him, of course, and I respect his decision), I don't see any reason to keep working like crazy on something I don't feel I have a hand on, at all. So I will stay on the project -- but as a part-time job I'll only work on when I feel like it. Not the fulltime crap I've been doing for so long. Costs too much, doesn't bring much in return. And unfortunately, it's NOT as fun to work on as it used to be.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: DirtRider on August 21, 2009, 01:00:50 PM
I did not know that you had released Foxy thought it was still in the project stages. Pity about you not wanting to go further with it but I can understand your feelings. My subs on the other gallery have expired so I am now more than ever needing this to be done  :'(  Not going to renew the subs on the old one never really got great support from it anyway  :-\

What features does Foxy have over and above what this version has
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: BYUFanatic on August 21, 2009, 01:25:42 PM
Quote from: Nao 尚 on August 21, 2009, 12:46:21 PM
@BYU> I told you... The code I gave you WILL absolutely, totally and completely remove the unseen part of the URL. You probably didn't patch it correctly.

I don't know what to tell ya. I did EXACTLY what you directed me to do. Here is the entire "IF" conditional:

(I bolded the changes you gave me.)

Quote
   // Recalculate number of unseen items
   if (!empty($user_info['mgal_unseen']) && $user_info['mgal_unseen'] == -1)
   {
      $request = $mgalFunc['db_query']('
         SELECT COUNT(m.id_media)
         FROM {db_prefix}mgallery_media AS m
            INNER JOIN {db_prefix}mgallery_albums AS a ON (m.album_id = a.id_album)
            LEFT JOIN {db_prefix}mgallery_log_media AS lm ON (lm.id_media = m.id_media AND lm.id_member = {int:user})
            LEFT JOIN {db_prefix}mgallery_log_media AS lm_all ON (lm_all.id_media = 0 AND lm_all.id_member = {int:user})
         WHERE {query_see_album}
         AND IFNULL(lm.time, IFNULL(lm_all.time, 0)) < m.log_last_access_time' . (!mgalAllowedTo('moderate') ? '
         AND m.approved = 1' : '') . '
         LIMIT 1', array('user' => $user_info['id']), __FILE__,__LINE__);
      list ($mgallery_unseen) = $mgalFunc['db_fetch_row']($request);
      $mgalFunc['db_free_result']($request);
      updateMemberData($user_info['id'], array('mgal_unseen' => mgalAllowedTo('access_unseen') ? $mgallery_unseen : 0));
      $user_info['mgal_unseen'] = mgalAllowedTo('access_unseen') ? $mgallery_unseen : 0;

   }

I have also set the permissions to not allow access to the unseen area.

By the way - in comment on your response to DirtRider - I am EXTREMELY grateful for the work you have put into this mod. It is EXACTLY what I have been looking for and is an excellent tool for helping my students.

Rob
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 21, 2009, 07:52:51 PM
@byu> I suppose you'll have to wait for beta 5 then... Because I don't know why it's not working for you. Anyone else tried this hack?

Quote from: DirtRider on August 21, 2009, 01:00:50 PM
I did not know that you had released Foxy thought it was still in the project stages.
Released on July 3rd...
http://aeva.noisen.com/5354/foxy-add-on-for-smf-media-gallery/

QuotePity about you not wanting to go further with it but I can understand your feelings.
Foxy! was somehow the excuse I gave my GF about not working on SMG for nothing... Well, she did notice that it actually worsened the whole SMG situation ;)

QuoteMy subs on the other gallery have expired so I am now more than ever needing this to be done  :'(  Not going to renew the subs on the old one never really got great support from it anyway  :-\

What features does Foxy have over and above what this version has
Look at the topic mentioned above, it has a feature list + changelog. (Although it hasn't been updated -- I usually post the changelog in the private Foxy! board for regged members -- we're up to v1.04 or v1.05, can't remember...)
You can see it in action at http://fox.noisen.com as well (99% of the pages over there are made with Foxy!, without any changes.)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: DirtRider on August 22, 2009, 07:14:34 AM
@ Nao 尚  - Ok the Changelog I am seeing is v1.01 July 9th, 2009. I am a bit lost on the site as I don't speak French  ;D Basically the show stopper for me is if it can post the newly uploaded image into a thread on a selected board or not.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 22, 2009, 01:04:46 PM
Yes
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: BYUFanatic on August 22, 2009, 03:33:05 PM
Quote from: Nao 尚 on August 21, 2009, 07:52:51 PM
@byu> I suppose you'll have to wait for beta 5 then... Because I don't know why it's not working for you. Anyone else tried this hack?



Thanks for trying. I appreciate it.

Can you tell me which file(s) build the URL that gets linked to the GALLERY tab under the headers on each page? School starts next Tuesday and I would like to have it fixed by then. I could probably track it down much faster if you can point me in the right direction (knowing which file(s) are involved in creating  the link to the GALLERY tab).

Rob
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 22, 2009, 06:51:23 PM
If you're using SMF1, it's in (Themes\default) index.template.php, otherwise it's in (Sources) Subs.php
Just search for 'unseen' and mess around to simplify the code.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: rgecy on August 23, 2009, 04:17:07 AM
Just noticed that when I upgraded to 2.0b4, the Slideshow is no longer available.  I went to uninstall and of course it will not unistall without errors.
QuoteInstalling this package will perform the following actions:  Type Action Description

1. Execute Modification ./Sources/ManagePermissions.php Test successful
2. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
3. Execute Modification ./Sources/MGallery.php Test failed
4. Execute Modification ./Sources/MGallery-Sub.php Test failed
5. Execute Modification ./Themes/default/MGallery.template.php Test failed
6. Execute Modification ./Themes/default/languages/MGallery.english.php Test failed
7. Delete File slideshow.js

Any ideas?

Thanks,

Robert
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 23, 2009, 04:35:20 AM
Just reinstall your slideshow stuff without uninstalling it first (only because all of the SMG files have been overwritten in the first place!)

I think. (I didn't write the slideshow mod, I'm not responsible for it, I'm not earning any shares on it, so if you have a problem with it, complain to Dragooon.)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: rgecy on August 23, 2009, 02:37:05 PM
Didn't work!  Any idea where to find the manual edits?

Thanks,

RGecy
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Akyhne on August 24, 2009, 05:30:21 PM
Nao: I resigned as beta tester, but if you want me to test functions with FFMPEG, I now have the possability with my new VPS.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: flamechica on August 25, 2009, 01:58:03 AM
Quote from: flamechica on August 20, 2009, 08:05:14 AM
Quote from: flamechica on August 14, 2009, 05:03:29 PM
I am using SMF 2.0 RC1.2 and just installed this mod (1.5.6). When I try to create an album it keeps coming up with this error:

QuoteAn Error Has Occurred!
This album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums is chmodded to 777         

Funny thing is, is that the directory and the file they are talking about are indeed chmodded to 777...any suggestions???

By the way, if anyone else has this problem, I finally found the solution. All the directories in the package were for some reason uploaded as files instead of directories. I had to go through and manually copy all the directories into the correct spots.





Now, I have a new problem. I was able to create some albums, but when I go to upload a picture to them, it keeps telling saying "Error, File Not Found!" I tried to mass upload and it says it uploaded 100% but then the files aren't in there. Any clue why uploading is not working?

No suggestions????
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Angelotus on August 25, 2009, 03:10:41 AM
Hey Dragooon, excellent mod, using it for several sites.
One question, is it possible to add a column in the memberlist next to the nr of posts they´ve made that shows the nr of images they´ve added to the site?

http://www.mypicas.com/1/index.php?action=mlist
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Kindred on August 25, 2009, 07:55:06 AM
of course it is POSSIBLE...   you just have to code it. :)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Angelotus on August 25, 2009, 08:37:00 AM
Quote from: Kindred on August 25, 2009, 07:55:06 AM
of course it is POSSIBLE...   you just have to code it. :)

;D duh! lol
What changes do I have to make to achieve this?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: ArkServer on August 25, 2009, 09:47:17 AM
Not sure if it's been asked already but i wanted to ask if it's possible to restric a guest to view the image in full size and make it so that only the smaller images can be seen.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Kindred on August 25, 2009, 05:04:12 PM
Quote from: Angelotus on August 25, 2009, 08:37:00 AM
Quote from: Kindred on August 25, 2009, 07:55:06 AM
of course it is POSSIBLE...   you just have to code it. :)

;D duh! lol
What changes do I have to make to achieve this?

lol...


well, off the top of my head, I'd say that you need to add a count variable and fill it with an SQL count (or find the variable in the mgallery set that has that data) in sources/memberlist.php and then add an extra column and call that variable in memberlist.template.php.

I can't be any more specific without actually doing the coding. :)   You might ask over on the smf-media site...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Angelotus on August 26, 2009, 03:05:19 AM
ok, another thing: I see that the dates are incorrect sometimes
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 26, 2009, 04:59:04 AM
Kindred, there's already a mgal_total_items variable in the members table, eheh ;) No need for a counter...
I'll look into these. Maybe.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 26, 2009, 08:16:27 AM
Quote from: Nao 尚 on August 26, 2009, 04:59:04 AM
Kindred, there's already a mgal_total_items variable in the members table, eheh ;) No need for a counter...
I'll look into these. Maybe.
Actually, changing SMF code in a mod is too annoying, especially with SMF2's Core theme having just been dropped in favor of Curve as the new default layout... I'm withdrawing that remark.
If you want this number to appear in your memberlist, you'll just have to add it yourself. Just get some inspiration from mods that modify the member list, like the one that adds the avatar...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Akyhne on August 26, 2009, 08:20:31 AM
Quote from: Akyhne on August 24, 2009, 05:30:21 PM
Nao: I resigned as beta tester, but if you want me to test functions with FFMPEG, I now have the possability with my new VPS.
Reported a bug in the bugtracker.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 26, 2009, 08:33:02 AM
Regarding specific permissions to allow users to view thumbnails, previews or full versions, it IS possible to implement, but I'm not going to do that either, not for a technical reason, but for a support reason: permissions are disabled by default, so if I add a new permission, all existing permission profiles will give a "no no" when it comes to viewing the bigger item. So everyone will have to edit all of their profiles to add the new permissions manually.
Guess what? There will be dozens of people posting here to complain that they can no longer view items...
I just don't want that. I'm already alone to work on SMG, I don't own SMG, I don't see the point in keeping up like this. There just isn't any incentive left for me. Especially when it comes to technical support. SMG is too big of a mod.

@akyhne> I'll have a look, but I don't have FFMpeg myself... I already told the guy I wrote the fix for, "please test it before I release"... He never even replied again. It's not exactly my fault.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Akyhne on August 26, 2009, 08:49:38 AM
Quote from: Nao 尚 on August 26, 2009, 08:33:02 AM
@akyhne> I'll have a look, but I don't have FFMpeg myself... I already told the guy I wrote the fix for, "please test it before I release"... He never even replied again. It's not exactly my fault.
If you want access to a subdomain with full ftp access and FFMPEG working, let me know.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Kindred on August 26, 2009, 09:03:45 AM
Quote from: Nao 尚 on August 26, 2009, 08:16:27 AM
Quote from: Nao 尚 on August 26, 2009, 04:59:04 AM
Kindred, there's already a mgal_total_items variable in the members table, eheh ;) No need for a counter...
I'll look into these. Maybe.
Actually, changing SMF code in a mod is too annoying, especially with SMF2's Core theme having just been dropped in favor of Curve as the new default layout... I'm withdrawing that remark.
If you want this number to appear in your memberlist, you'll just have to add it yourself. Just get some inspiration from mods that modify the member list, like the one that adds the avatar...

Hey Nao, :)  I figured there was a variable somewhere, but I was being a bit lazy and didn't look at the code. :)

And yes...   having a mod like this modify the memberlist would be annoying anyway, especially if the site is making use of some of the other memberlist modifications (which would have everyone screaming that the package failed on memberlist.template.php.)

Angelotus , I would suggest looking at the skype mod, which does add a column to the memberlist and should give you an idea on how to add one..

Oh, and the dates are not wrong.   I would assume that you have Use EXIF date turned ON in your SMG admin....    so, if the image has an EXIF date (which most digital pics will have), the syste, uses THAT date, not the date of upload.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Whizzy on August 26, 2009, 02:12:10 PM
Hi, thanks for the mod, looks awesome installed perfect.......but then the trouble started ;)
For some reason i can set permisions as much as i want, except for me as admin, nobody can see the general albums in any place on my forums, they keep getting the "you are not allowed to view this image" picture. as far as i know i have set all permisions on all places to the correct values. using smf 1.1.10 with tp v1.0 beta4

these are how i have the settings for a particular membergroup that is affected
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi150.photobucket.com%2Falbums%2Fs113%2Fa1whizzy%2Fimage1.jpg%3Ft%3D1251309982&hash=3749cab34014cc550d1fadd1cde49e27e42c0149)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi150.photobucket.com%2Falbums%2Fs113%2Fa1whizzy%2Fimage2.jpg&hash=939b5764c252352fc137381b3df0a56b60c9f0b6)

this how i see the gallery as admin
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi150.photobucket.com%2Falbums%2Fs113%2Fa1whizzy%2Fimage3.jpg&hash=b55914a9bf51dc9fd5e1cc3752869392016bd2da)

this is how above membergroup sees it
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi150.photobucket.com%2Falbums%2Fs113%2Fa1whizzy%2Fimage4.jpg&hash=6d5124d7461d804182c69d0d36742bad2976efb6)

i have no idea why they can not see the general albums, on a site note, the permision profile default has enabled all for any membergroup except guests (mass upload, comments etcetc)

where do i go wrong, what should i do to fix, any help is greatly apreciated
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 26, 2009, 02:28:27 PM
SMG2 also uses permission profiles for album-based perms... Look for them in the SMG Admin area. (Oh, Dragooon... What did you do ;))
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Whizzy on August 26, 2009, 02:44:46 PM
oww... didn't even realise i had an outdated version, have updated and re did all permisions. it worked and they are viewable now. thank you so much for the quick reply
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 26, 2009, 05:05:41 PM
Nah, given your screenshots, you did have SMG2... Which is why I said that.
Updating your beta, though, was pretty much mandatory, for reasons other than the permission system but still.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 27, 2009, 04:41:33 AM
For those interested --
Given the lack of interest in Foxy! in the last two months, I've agreed to drop the price a bit.
It is now down to 20€ for a month's worth of upgrades, and the usual 30€ for a year's worth. (The users who actually bought the mod so far will still get 5 years worth of upgrades for free.)
The current feature I'm working on will be in Foxy! only, it's a button in the post box that allows you to directly upload an item and embed it immediately inside your post. (Just like the regular image button.)
The feature list so far can be found here:
http://aeva.noisen.com/5354/foxy-add-on-for-smf-media-gallery/

End of the shameless plug. SMG2 Beta 5 will be coming soonish, too (hopefully by next week). And for free, obviously. It adds its own share of cool features, you'll see.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: flamechica on August 27, 2009, 08:47:02 AM
Quote from: flamechica on August 25, 2009, 01:58:03 AM
Quote from: flamechica on August 20, 2009, 08:05:14 AM
Now, I have a new problem. I was able to create some albums, but when I go to upload a picture to them, it keeps telling saying "Error, File Not Found!" I don't get why it says "File not found" since I am trying to UPLOAD the file. I tried to mass upload and it says it uploaded 100% but then the files aren't in there. Any clue why uploading is not working?

No suggestions? ???

This will be the last time I ask for help. You seem to be ignoring me, though I have no clue why. I thought this is what the thread was for... I guess I will not be able to use your mod since I can't seem to get it to work.  :(
PLEASE[/] HELP
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: DilSe on August 27, 2009, 11:07:58 AM
hello to all

i want my User albums show on index page. same this pic if it's possbile plz help me .. from where i have setting ..
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Soms on August 27, 2009, 12:20:39 PM
Quote from: Hanzalah on August 27, 2009, 11:07:58 AM
hello to all

i want my User albums show on index page. same this pic if it's possbile plz help me .. from where i have setting ..

Look at this topic http://smf-media.com/community/index.php?topic=602.0
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Soms on August 27, 2009, 12:30:23 PM
Quote from: Hanzalah on August 27, 2009, 11:07:58 AM
This will be the last time I ask for help. You seem to be ignoring me, though I have no clue why. I thought this is what the thread was for... I guess I will not be able to use your mod since I can't seem to get it to work.  :(

I don't think anybody is ignoring you. It's been stated that if no answer is forthcoming, it means people have not been able to figure out the answer. I know from experience that this can be frustrating but it is a fact of life. Even the mod authors don't always have the answers.

In any case, sometimes it helps if you disable cookies and/or disable your firewall. I have Zonealarm. I can never mass upload unless I disable it.  PS. I am also a noob so don't take my word as the law   ::)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 27, 2009, 01:51:32 PM
Quote from: Soms on August 27, 2009, 12:30:23 PM
I don't think anybody is ignoring you. It's been stated that if no answer is forthcoming, it means people have not been able to figure out the answer. I know from experience that this can be frustrating but it is a fact of life. Even the mod authors don't always have the answers.
Because sometimes servers are limited. I test SMG on a good server that doesn't have PHP Safe Mode or mod_security installed -- so I'm not getting any trouble with these.

Really, basically, it's impossible to test SMG on every possible server setup. Plus, sometimes users don't read the documentation, so it can't be helped...

QuoteIn any case, sometimes it helps if you disable cookies and/or disable your firewall. I have Zonealarm. I can never mass upload unless I disable it.
Interesting... Didn't know that.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Soms on August 27, 2009, 02:52:14 PM
Quote from: Nao 尚 on August 27, 2009, 01:51:32 PM
QuoteIn any case, sometimes it helps if you disable cookies and/or disable your firewall. I have Zonealarm. I can never mass upload unless I disable it.
Interesting... Didn't know that.

Actually, I mentioned this before on page 174  http://www.simplemachines.org/community/index.php?topic=260821.msg2064111#msg2064111

And you kinda reacted too!  :D  http://www.simplemachines.org/community/index.php?topic=260821.msg2064586#msg2064586
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: DilSe on August 27, 2009, 03:07:42 PM
Quote from: Soms on August 27, 2009, 12:30:23 PM
Quote from: Hanzalah on August 27, 2009, 11:07:58 AM
This will be the last time I ask for help. You seem to be ignoring me, though I have no clue why. I thought this is what the thread was for... I guess I will not be able to use your mod since I can't seem to get it to work.  :(

I don't think anybody is ignoring you. It's been stated that if no answer is forthcoming, it means people have not been able to figure out the answer. I know from experience that this can be frustrating but it is a fact of life. Even the mod authors don't always have the answers.

In any case, sometimes it helps if you disable cookies and/or disable your firewall. I have Zonealarm. I can never mass upload unless I disable it.  PS. I am also a noob so don't take my word as the law   ::)

mr.Soms .. very sorry but your quote my post .. but i don't  wright this plz check sorry.. this not my post i don't said anything :)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Whizzy on August 27, 2009, 03:16:18 PM
Quote from: Soms on August 27, 2009, 02:52:14 PM
Quote from: Nao 尚 on August 27, 2009, 01:51:32 PM
QuoteIn any case, sometimes it helps if you disable cookies and/or disable your firewall. I have Zonealarm. I can never mass upload unless I disable it.
Interesting... Didn't know that.

Actually, I mentioned this before on page 174  http://www.simplemachines.org/community/index.php?topic=260821.msg2064111#msg2064111

And you kinda reacted too!  :D  http://www.simplemachines.org/community/index.php?topic=260821.msg2064586#msg2064586

lol busted hahahaha

Nao thanks for the responses, i did know i had v2 but i had beta 1, with beta 4 i did excactly the same as with beta one and it worked but like you said, you can not possibly test for every server setup.

keep up the good work, have no money for your that add on but i might think about adding that too :D
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 27, 2009, 09:14:01 PM
Quote from: Soms on August 27, 2009, 02:52:14 PM
Quote from: Nao 尚 on August 27, 2009, 01:51:32 PM
QuoteIn any case, sometimes it helps if you disable cookies and/or disable your firewall. I have Zonealarm. I can never mass upload unless I disable it.
Interesting... Didn't know that.

Actually, I mentioned this before on page 174  http://www.simplemachines.org/community/index.php?topic=260821.msg2064111#msg2064111

And you kinda reacted too!  :D  http://www.simplemachines.org/community/index.php?topic=260821.msg2064586#msg2064586
Interesting................ Didn't know that.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: rgecy on August 27, 2009, 09:35:28 PM
Nao, Dragoon, somebody, PLEASE help!  This header is driving me nuts!  I was able to fix the lower ones "Poster Information" and "Item Info" but the header doesn't want to cooperate.

I tried to dublicate the .header in the CSS but it just makes the Image Galery menu verticle on the left side.

Thanks,

Robert
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Soms on August 28, 2009, 02:07:12 AM
Quote from: Hanzalah on August 27, 2009, 03:07:42 PM
mr.Soms .. very sorry but your quote my post .. but i don't  wright this plz check sorry.. this not my post i don't said anything :)

My bad!  :( Sorry about that.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: DilSe on August 28, 2009, 08:53:08 AM
Quote from: Soms on August 28, 2009, 02:07:12 AM
Quote from: Hanzalah on August 27, 2009, 03:07:42 PM
mr.Soms .. very sorry but your quote my post .. but i don't  wright this plz check sorry.. this not my post i don't said anything :)

My bad!  :( Sorry about that.

it's ok :)



anybody help me ..plz
Latest item possible it's show before General Category ....? if it's possible plz help......
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Angelotus on August 28, 2009, 10:50:48 AM
Question, large items (in this case pictures JPG), everytime I upload them, the screen gets blank and nothing happens.
My settings are ok. Why does this happen?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Soms on August 28, 2009, 11:28:37 AM
Quote from: Hanzalah on August 28, 2009, 08:53:08 AM
anybody help me ..plz
Latest item possible it's show before General Category ....? if it's possible plz help......

In BoardIndex.template.php

Search for:

Quote/* Each category in categories is made up of:
   id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
   new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),
   and boards. (see below.) */
   $first = true;
   foreach ($context['categories'] as $category)
   {
      echo '
   <div class="tborder" style="margin-top: ' , $first ? '0;' : '1ex;' , '' , $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'width: 100%;' : '', '">
      <div class="catbg', $category['new'] ? '2' : '', '" style="padding: 5px 5px 5px 10px;">';
      $first = false;

Add before:
Quote// Mgallery-mod Start
   global $sourcedir;
   @include($sourcedir . '/Subs-Mgallery-mod.php');
   // Mgallery-mod End


Search for:
Quote// Mgallery-mod Start
   global $sourcedir;
   @include($sourcedir . '/Subs-Mgallery-mod.php');
   // Mgallery-mod End

      // Here's where the "Info Center" starts...


Replace with:

Quote// Here's where the "Info Center" starts...

Always make a backup of your files before you edit! And don't  forget I am a noob. But this worked for me.

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: DilSe on August 28, 2009, 01:43:39 PM
thanks for help it's working :)
Title: SMF Gallery Light to SMF Media Gallery 2.0b4 gallery conversion bug
Post by: c-ron on August 28, 2009, 03:42:32 PM
Hi! I discovered today that galleries that were converted from SMF Gallery Light don't have full db information (I think). You can change the access permissions for these galleries in admininstration, but the functionality isn't totally there, in that view permissions work, but permissions for adding items are broken.

This is with SMF Media Gallery 2.04b4 on a 1.1.10 forum.

I noticed this when a user (who had all the correct permissions) said he couldn't upload. I checked, and the folder he was trying to upload to (one of the converted ones) was missing its 'Mass Upload' and 'Mass Download' links (for non-admin users), and images uploaded to it resulted in the 'An Error Has Occurred! The file has a invalid extension' message. To work around this, I did a mass download from that gallery (as admin), created a new gallery with a similar name, mass uploaded into the new one, and then deleted the old gallery and renamed the new one.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: silastyler on August 28, 2009, 04:28:09 PM
Have 2.0 beta 4 installed, flawlessly, and love it.
I have a small issue with a font color though, and I was hoping someone could point me in the direction of its source (style sheet or whatever):

I have New Babylon 2 set as my theme and the subtext in the gallery admin pages is a dark grey color that is impossible to read with this theme. This color is also the default for the description text under each album in the UserAlbums view. I have scoured the css files for the source of this color, but I cannot find it.

I've included pix of the text areas I am referring to.

Any help would be appreciated.





Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 28, 2009, 07:01:19 PM
@c-ron> Please PM Dragooon here. Maybe he'll look into it. He wrote the permission profiles which, if it were only up to me, would have been removed long ago, so just ask him to fix the converters to use the permission profiles instead. I won't do it myself.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: c-ron on August 29, 2009, 03:19:55 PM
Thanks Nao. I've PM'ed him. 

Also, I just ran into an easy to fix problem with the Direct link URLs. I searched this discussion but didn't see it mentioned, so here's the fix. If accessing the Direct link URL gives:

" File is writable by others, please fix permissions and try again. "

chmod or change the permissions of /MGalleryItem.php to 644 via FTP.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 29, 2009, 06:53:54 PM
If you did a search on MGalleryItem.php, you would file mentions that it needs to be chmodded to 0644 or 0755 (both are fine). Maybe not here because SM.org's search engine is quite peculiar, but at least over at smf-media.com.
It's something we can't do anything about -- we rely on SMF's file copy engine to install the package and set permissions properly.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: probinson77 on August 30, 2009, 10:12:58 PM
I just upgraded to SMG 2.0 beta 4, and now it seems like my [smg] tags are no longer working.

If you use the SMG tag in your post and preview it, it displays the image, but when you post, the SMG tag no longer displays the image and instead shows up like [smg id=200]

Everything else seems to be working except for the SMG tags.  Does anyone have any idea where I might start?  I've made sure that smg is an allowed tag in the BBC codes, and I've set the permissions, so I don't know what else could be wrong.  Prior to the upgrade, the SMG tag worked flawlessly.

Thanks for your help.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 31, 2009, 03:36:27 AM
What was your previous version?

Also, the tag works just fine on my site. Of course I have the latest revision on it...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: probinson77 on August 31, 2009, 09:56:50 AM
Previously, I had 1.5.6 installed.  I uninstalled that version before installing 2.0b4.

It's really odd.  When you use the SMG tag and click Preview, it shows the image as expected, but when you click Post and on every subsequent page load, it doesn't work.

Also, if you do an in-line edit of the post, immediately after saving the post, it shows the image, but then when you leave and come back to the thread, it doesn't work either.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: TheListener on August 31, 2009, 10:15:32 AM
I believe I may have accidently deleted a crucial line from my sources subs file.

The line I accidently deleted is

'mlist' => array(


Where is the best place for it so I can let the members have their gallery back?

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 31, 2009, 06:10:30 PM
@thelistener> dunno.

@pro> you probably have a conflicting mod...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: TheListener on August 31, 2009, 06:16:45 PM
I have tried various places and keep getting errors.

Is becoming a pain.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 31, 2009, 06:31:41 PM
Can't you compare with an untouched version of the file?
(Wow, my previous post was my 3000th...)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: probinson77 on August 31, 2009, 06:31:52 PM
Quote from: Nao 尚 on August 31, 2009, 06:10:30 PM
@pro> you probably have a conflicting mod...

Hmmm...

Well, I do have a lot of mods installed on my one forum, so I tried installing the same package on my other forum.  The only mods installed on that forum are AEVA 6.9.99 and WYSIWYG quick reply 1.1.  The SMG tag is not working on that forum either.

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: probinson77 on August 31, 2009, 06:49:52 PM
OK.  I just created a fresh SMF environment in XAMPP and installed SMG.  The tag worked as expected.  Then, I installed AEVA 6.9.99.  The tag worked as expected.  Then, I installed WYSIWYG Quick Reply 1.1, and the tag broke.

So something in the new version of SMG is not compatible with WYSIWYG quick reply, and it breaks the SMG tag functionality.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on August 31, 2009, 07:03:51 PM
Or the other way around -- something in wysiwyg quick reply breaks SMG :P
Anyway, where's that mod?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: TheListener on August 31, 2009, 07:05:40 PM
Quote from: Nao 尚 on August 31, 2009, 06:31:41 PM
Can't you compare with an untouched version of the file?
(Wow, my previous post was my 3000th...)

and where am I supposed to find one?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: probinson77 on August 31, 2009, 08:42:31 PM
Quote from: Nao 尚 on August 31, 2009, 07:03:51 PM
Or the other way around -- something in wysiwyg quick reply breaks SMG :P
Anyway, where's that mod?

Oh yes, of course that's what I meant.   ;)

Here is the mod that seems to cause a problem;
http://custom.simplemachines.org/mods/index.php?mod=1299 (http://custom.simplemachines.org/mods/index.php?mod=1299)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: CiQ on September 02, 2009, 05:07:22 AM
MGallery-Exif.php contain eregi() function.
Quote from: php.netThis function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.
use preg_match() function. thanks.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on September 02, 2009, 07:56:17 AM
Okay, done... But it won't do much good, because the getid3 lib also uses ereg(), and a LOT of them to say the least...
We'll have to wait for it to be updated. Doesn't seem likely it'll be soon, though.
http://www.getid3.org/phpBB3/viewtopic.php?f=4&t=935
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Smasher on September 02, 2009, 10:31:18 AM
I am reading through the 214+ pages here looking for my answer when I know if it something very simple.

All I am trying to do is create a subfolder.

General Folder: Jack and Jill

Subfolder: Jacks Birthday
Subfolder: Jills Vacation

Using 2.0 beta 4
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: TheListener on September 02, 2009, 11:13:24 AM
Quote from: Smasher on September 02, 2009, 10:31:18 AM
I am reading through the 214+ pages here looking for my answer when I know if it something very simple.

All I am trying to do is create a subfolder.

General Folder: Jack and Jill

Subfolder: Jacks Birthday
Subfolder: Jills Vacation

Using 2.0 beta 4

As in personl albums within the gallery?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Smasher on September 02, 2009, 11:38:43 AM
I was actually trying to do it on the General Area... but when you mentioned that I went back and tried it on a "User Album" and was able to do it...

Thank You
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: TheListener on September 02, 2009, 11:43:29 AM
No worries

Did ya know ya can add an image to the folder?

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on September 02, 2009, 01:06:34 PM
Uh, I believe it's possible to do it on general albums as well... (?)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Smasher on September 02, 2009, 01:25:50 PM
Ok I did figure this out... I was just not looking in the right place...

What do you mean you can add an image to the folder?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: TheListener on September 02, 2009, 09:41:04 AM
Where you see a brown folder which to me would be like the outside of the photo album.

For the paranormal album in my gallery I use the picture which is on here as my avatar.

For photos without a folder I use a sock ( albums called the odd sock).

The pet section has an animated goldfish in a goldfish bowl.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Smasher on September 02, 2009, 06:07:25 PM
I like that feature alot....
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: TheListener on September 02, 2009, 06:37:30 PM
The one I mentioned you mean?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: rgecy on September 02, 2009, 03:11:29 PM
Any chance I will ever get an answer on how to fix this header issue?  Or will you guys just continue to ignore it?  I hate to be so persistent, but it is really driving my members nuts!

http://www.simplemachines.org/community/index.php?topic=260821.msg2232208#msg2232208

RGecy
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: TheListener on September 02, 2009, 03:21:07 PM
Try the 2.0 or 1 x1 support topics
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on September 02, 2009, 10:27:57 PM
Quote from: rgecy on September 02, 2009, 03:11:29 PM
Any chance I will ever get an answer on how to fix this header issue?  Or will you guys just continue to ignore it?  I hate to be so persistent, but it is really driving my members nuts!
Just providing a screenshot of your custom theme isn't gonna help, you know...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Soms on September 03, 2009, 03:49:06 PM
QuoteCall to undefined function: file_put_contents() in /xx/xx/htdocs/Sources/Subs-MGallery-Vital.php on line 1839

When I try to use the mass download function to download a couple of mp3 on my forum I get the error above. Does anyone have any idea why this would happen?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on September 03, 2009, 04:33:17 PM
Dragooon wrote that feature. It uses file_put_contents() which happens to be a function that some hosts will disable to "secure" the server. Of course it's a silly move on their part.
The only advice I can give is to, hmm... Disable mass downloads for your install.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Soms on September 04, 2009, 02:07:07 AM
I can actually mass download pictures but not mp3s. I think it might have something to do with the total size (in MBs) of the files. I might be wrong though.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on September 04, 2009, 06:25:10 AM
I don't know.
Dragooon used an external library for creating zip files. It's not very complicated, I could even replace file_get_contents() with cURL calls like I've done for MGallery-Embed.php (even a call to my own smg_file_get_contents() would suffice), but I would have to write a similar function to replace file_put_contents(), and I'm not sure it would fix your problem anyway...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Soms on September 04, 2009, 06:55:11 AM
It just an irritation, not a problem and I know Dragoon is on an extended sabbatical. Don't lose any second on this Nao.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on September 04, 2009, 07:14:25 AM
I'm pretty close to releasing beta 5 actually...
And hopefully it'll be the last beta before RC. And hopefully there will be only one RC before the final release.
I don't plan to add any big features in the near future (I implemented everything I needed myself), so all I'll be adding will be minor improvements. They can be done in subsequent releases (2.01, etc). I know Dragooon wants new features (even the smaller ones) to be in major updates, but I don't think he's going to complain at this point. I mean, sadly he seems to have given up on SMG2 after the release of the first beta... :(
Maybe because it didn't have the impact he was hoping. (We did postpone it a lot to build on the buzz, lol. And we both think that SMG2 deserves much more coverage than it currently has.)

Oh well, anyway...

I'll be releasing beta 5 by this weekend at any rate. As soon as a few days pass without a new bug found, I'll release RC1.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: MUSTAfaINE on September 04, 2009, 11:38:14 AM
Quote from: Nao 尚 on August 11, 2009, 01:35:47 PM
Quote from: MUSTAfaINE on August 11, 2009, 11:39:36 AM
is there anyone send me the phpmyadmin albums database table... 

cause it has an error : This album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums are chmodded to 0777 

yes i want albums sql file
That's not a database/mysql error...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: rgecy on September 04, 2009, 07:53:03 PM
Quote from: Nao 尚 on September 02, 2009, 10:27:57 PM
Quote from: rgecy on September 02, 2009, 03:11:29 PM
Any chance I will ever get an answer on how to fix this header issue?  Or will you guys just continue to ignore it?  I hate to be so persistent, but it is really driving my members nuts!
Just providing a screenshot of your custom theme isn't gonna help, you know...

What do you need?  The style.css file?  I have attached it just in case. 

Thanks for your help.

RGecy
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on September 05, 2009, 02:18:36 AM
No, I need a link to your page....... -_-
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: rgecy on September 05, 2009, 01:31:13 PM
Done.  Sent you PM.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Akyhne on September 05, 2009, 04:22:33 PM
Quote from: Nao 尚 on September 04, 2009, 07:14:25 AM
I don't plan to add any big features in the near future ...
I'd also hope more for a final version without bugs, instead of one version after the other full of bugs.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on September 05, 2009, 05:17:19 PM
Well, it all depends on how many people are willing to test...
Some of the features I added so far were extremely demanding in terms of involvement. I added a lot of code and it may not work on all servers. I've only got 2-3 regular beta testers who try to use SMG in all situations. I'm thankful to them for that. But even these testers won't have the ability to test everything everywhere. Hence the need for the public beta -- and here, same story. It just isn't spread wide enough to be sure.
For instance, yesterday I discovered that if a user had uploaded pictures months ago, then used the Regenerate feature in SMG 1.5 on albums with lots of items (enough items to fill two subfolders), and then installed SMG 2.0 and used Regenerate again, these items would lose their thumbnails. Not a BIG deal since it's simply a matter of getting the folder right and SMG can always re-regenerate, but still... You see that kind of situation? It doesn't happen often. And sometimes when a problem happens to somebody, they won't be able to describe it correctly or make some preliminary search into the issue. Then insults start flying and it's all great for me.
Talk about a great job... I just can't wait for the day I release a version that nobody complains about. It'll never happen (see Aeva and all the craziness around it), but I can still hope.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Akyhne on September 05, 2009, 05:32:50 PM
SMG IS to me the best mod out there to me. But it's very sad indeed that new features are added, instead of solving the current issues.
And now I got my own PS and have been able to add ffmpeg-php (who on earth can live without this feature), it's sad to discover that I actually can't use this feature after all, since both 1.x and 2.x versions doesn't run properly with this cool feature.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: TheListener on September 05, 2009, 06:01:10 PM
This gallery is very good IMO.

The ony part I am unsure of is the media area ie where a member can add video.

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: tfs on September 05, 2009, 06:54:50 PM
Quote from: Akyhne on September 05, 2009, 05:32:50 PM
SMG IS to me the best mod out there to me. But it's very sad indeed that new features are added, instead of solving the current issues.
And now I got my own PS and have been able to add ffmpeg-php (who on earth can live without this feature), it's sad to discover that I actually can't use this feature after all, since both 1.x and 2.x versions doesn't run properly with this cool feature.

Can you describe what happens when ffmpeg-php is installed?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Akyhne on September 05, 2009, 07:17:22 PM
It general, it just creates thumb and preview images from the video. So when you post a video, instead of having an empty videoplayer, you see a snapshot from the video... like with Youtube you get a still image.

If you want to go further, you can also recode, resize (and a lot more) with FFMPEG installed on your server. SMG doesn't do that though.

At least for shared hosting, hardly any host provides this enhancement, as using FFMPEG is very demanding for video conversion etc. But there are a few out there like Dreamhost. Hovever I chose to go for a VPS where I can modify anything I want.
ffmpeg is a executable program that you install on a linux VPS or similar. ffmpeg-php is a 3rd part script option that lets you use ffmpeg with php.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: tfs on September 05, 2009, 08:01:00 PM
Quote from: Akyhne on September 05, 2009, 07:17:22 PM
It general, it just creates thumb and preview images from the video. So when you post a video, instead of having an empty videoplayer, you see a snapshot from the video... like with Youtube you get a still image.

Thanks for the description.  I was hoping it gave SMG the ability to show the internal file information.  I have one gallery of about 1200 JPG images that already have information internal to the files, visible in Windows by going to "Properties/Summary Tab".  Those 1200 photographs already have "Title, Subject, Photographer, Keywords and Comments inside of the files.  I'd love to be able to pull that info into SMG.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Akyhne on September 05, 2009, 08:15:14 PM
I don't think ffmpeg can drag that kind of information from images. However it can drag any sort of info out from sound and video files, as long as they are made with supported codecs.

This is from a test  script on my server, with info taken from a .mp3 file as well as an .avi file. SMG also get some of these informations as far as I remember:

Quoteffmpeg-php version string: 0.6.0-svn
ffmpeg-php build date string: Aug 23 2009 01:13:41
libavcodec build number: 3412992
libavcodec version number: 3412992

Methods available in class 'ffmpeg_movie':
__construct
getduration
getframecount
getframerate
getfilename
getcomment
gettitle
getauthor
getartist
getcopyright
getalbum
getgenre
getyear
gettracknumber
getframewidth
getframeheight
getframenumber
getpixelformat
getbitrate
hasaudio
hasvideo
getnextkeyframe
getframe
getvideocodec
getaudiocodec
getvideostreamid
getaudiostreamid
getaudiochannels
getaudiosamplerate
getaudiobitrate
getvideobitrate
getpixelaspectratio

Methods available in class 'ffmpeg_frame':
togdimage
getwidth
getheight
iskeyframe
getpresentationtimestamp
getpts
--------------------

file name = /home/xxx/public_html/tests/test_media/16Hz-20kHz-Exp-1f-5sec.mp3
duration = 5.067756 seconds
frame count = 0
frame rate = 0.000 fps
comment = a small test file
title = Test mp3
author = Alexander Thomas
copyright =
get bit rate = 67892
has audio = Yes
get audio stream id= 0
get audio codec = mp3
get audio bit rate = 64000
get audio sample rate = 44100
get audio channels = 1
has video = No

--------------------

file name = /home/xxx/public_html/tests/test_media/robot.avi
duration = 9.6 seconds
frame count = 240
frame rate = 25.000 fps
comment =
title =
author =
copyright =
get bit rate = 183948
has audio = Yes
get audio stream id= 0
get audio codec = mp2
get audio bit rate = 32000
get audio sample rate = 32000
get audio channels = 1
has video = Yes
frame height = 112 pixels
frame width = 160 pixels
get video stream id= 1
get video codec = mpeg1video
get video bit rate = 104857200
get pixel format = yuv420p
get pixel aspect ratio = 1
get frame = true
  get frame number = 10
  get frame width = 160
  get frame height = 112

--------------------
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Akyhne on September 05, 2009, 08:26:55 PM
Hmm, it does pass a .jpg file. However those data I just tried to change in the file like author and description, were not brought to the output.
However I have other programs that doesn't do the same, when editing those options in Vista.

Here's the output:
Quotefile name = /home/xxx/public_html/tests/test_media/001.JPG
duration = 0.04 seconds
frame count = 1
frame rate = 25.000 fps
comment =
title =
author =
copyright =
get bit rate = 0
has audio = No
has video = Yes
frame height = 1944 pixels
frame width = 2592 pixels
get video stream id= 0
get video codec = mjpeg
get video bit rate = 0
get pixel format = yuvj422p
get pixel aspect ratio =
get frame = false
  get frame number = 10
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: tfs on September 05, 2009, 10:40:37 PM
I had always wished that SMG would be able to access that info.  It's there in the JPG file, and SMG already retrieves Exif metadata.  It doesn't seem like a huge leap to retrieve the other stuff.
Title: Re: SMF Media Gallery (SMG) - Rating/Comments
Post by: willj on September 06, 2009, 06:17:19 AM
I installed SMF Media Gallery and now that it is working fine I have found that the only way to allow regular members to rate and comment on images in the gallery is to set the permission 'Administrate Gallery' to yes.  Is there a way around this as ideally I should be the only person who can administrate the gallery.

Thank you.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on September 06, 2009, 01:33:42 PM
Quote from: Akyhne on September 05, 2009, 05:32:50 PM
SMG IS to me the best mod out there to me. But it's very sad indeed that new features are added, instead of solving the current issues.
I can't solve issues by magic. When someone offers a bug report, it can be either of these:
- not an actual bug... A misuse of a feature.
- an actual bug, but that happens only on very specific cases... Not reproduceable anywhere else. If they don't give me access to their website, I can't help.
- an actual bug, but not explained correctly... In which case I can't reproduce either.
- an actual bug, explained correctly -- then I can fix if it's something I'm familiar with. (Remember, I only wrote half of SMG -- the other half is either obscure to me, or I'm familiar enough to play with, but that still leaves about a quarter of SMG that I wouldn't touch with a 20-feet pole.)

QuoteAnd now I got my own PS and have been able to add ffmpeg-php (who on earth can live without this feature),
Err... Me, apparently.

Quoteit's sad to discover that I actually can't use this feature after all, since both 1.x and 2.x versions doesn't run properly with this cool feature.
I'll try to fix all errors pertaining to FFMpeg before the final version is out. IIRC you did send me your server access data by PM, right? In which case I'll be able to start on it at some point, when I'm done with other issues...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on September 06, 2009, 01:34:45 PM
Quote from: tfs on September 05, 2009, 10:40:37 PM
I had always wished that SMG would be able to access that info.  It's there in the JPG file, and SMG already retrieves Exif metadata.  It doesn't seem like a huge leap to retrieve the other stuff.
Video information? I think getid3 already gets enough of these for us... Video width, height and duration. Isn't that enough...?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Akyhne on September 06, 2009, 03:09:54 PM
Quote from: Nao 尚 on September 06, 2009, 01:33:42 PM
I can't solve issues by magic. When someone offers a bug report, it can be either of these:
- not an actual bug... A misuse of a feature.
- an actual bug, but that happens only on very specific cases... Not reproduceable anywhere else. If they don't give me access to their website, I can't help.
- an actual bug, but not explained correctly... In which case I can't reproduce either.
- an actual bug, explained correctly -- then I can fix if it's something I'm familiar with. (Remember, I only wrote half of SMG -- the other half is either obscure to me, or I'm familiar enough to play with, but that still leaves about a quarter of SMG that I wouldn't touch with a 20-feet pole.)
I just don't get the way you guys release versions, but that's your problem. To me, a version which I know contains bugs, would be released as a beta or a RC version.

Quote from: Nao 尚 on September 06, 2009, 01:33:42 PM
QuoteAnd now I got my own PS and have been able to add ffmpeg-php (who on earth can live without this feature),
Err... Me, apparently.
Why? How boring would a Youtube video be to have in a post in your forum, when all you saw was a black screen. Remember I talked you into adding the title of the original video where possible? How boring would a video look with a black background and no title? ;)
The still shot of the video, makes it come to live.

Quote from: Nao 尚 on September 06, 2009, 01:33:42 PM
I'll try to fix all errors pertaining to FFMpeg before the final version is out. IIRC you did send me your server access data by PM, right? In which case I'll be able to start on it at some point, when I'm done with other issues...
No, you don't have access to my PS. I didn't have it for more than 14 days. But if you want a few subdomains with full ftp and MySql access, let me know.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: tfs on September 06, 2009, 04:10:11 PM
Quote from: Nao 尚 on September 06, 2009, 01:34:45 PM
Quote from: tfs on September 05, 2009, 10:40:37 PM
I had always wished that SMG would be able to access that info.  It's there in the JPG file, and SMG already retrieves Exif metadata.  It doesn't seem like a huge leap to retrieve the other stuff.
Video information? I think getid3 already gets enough of these for us... Video width, height and duration. Isn't that enough...?

No, it's JPG file data I'm talking about.  I'm not sure what the technical name for the data is, but I have 1200 photos that my brother scanned from our family archive.  He spent about a year identifying the photos and saving that info inside the JPG files.  To see the data you must right click on one of the photos and go to "Properties", and then the "Summary" tab, there's information in there that I wish I could display.  Specifically, there's Title, Subject, Author, Category, Keywords and Comments.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Dragooon on September 07, 2009, 11:42:15 AM
Quote from: tfs on September 06, 2009, 04:10:11 PM
Quote from: Nao 尚 on September 06, 2009, 01:34:45 PM
Quote from: tfs on September 05, 2009, 10:40:37 PM
I had always wished that SMG would be able to access that info.  It's there in the JPG file, and SMG already retrieves Exif metadata.  It doesn't seem like a huge leap to retrieve the other stuff.
Video information? I think getid3 already gets enough of these for us... Video width, height and duration. Isn't that enough...?

No, it's JPG file data I'm talking about.  I'm not sure what the technical name for the data is, but I have 1200 photos that my brother scanned from our family archive.  He spent about a year identifying the photos and saving that info inside the JPG files.  To see the data you must right click on one of the photos and go to "Properties", and then the "Summary" tab, there's information in there that I wish I could display.  Specifically, there's Title, Subject, Author, Category, Keywords and Comments.
SMG already can fetch EXIF data that are added by most photo editing programs/cameras. If thats what you're talking about.

Sorry for being away guys, but exams have started. I gave my Science Practical today and got Maths tomorrow. Then got Science Theory exam, I won't be active till the 23rd.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on September 07, 2009, 12:37:33 PM
Woohoo! Dragooon's back!
September 23 you say? That's something like... A 4-month hiatus all in all? ;)
I need help regarding permissions, BTW...
http://smf-media.com/community/index.php?topic=1143.0
Complicated topic.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: tfs on September 07, 2009, 02:29:33 PM
Quote from: Dragooon on September 07, 2009, 11:42:15 AM
SMG already can fetch EXIF data that are added by most photo editing programs/cameras. If thats what you're talking about.

Sorry for being away guys, but exams have started. I gave my Science Practical today and got Maths tomorrow. Then got Science Theory exam, I won't be active till the 23rd.

Good to have you back Dragoon!

The data is not EXIF.  I'm not sure what you call it, but you can see it on a Windows machine by right clicking on a JPG file and going to properties.  In there is a tab called "Summary" where there's extended data that is stored in the header of the JPG.  Here's what it looks like.  There's an advanced and simple view.

I think this may only be an option for JPG files.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: MUSTAfaINE on September 08, 2009, 02:34:58 AM
http://www.metalfrm.com/index.php?action=mgallery

this is my mod page i made an album with using sql file.. but i didnt the second one please send me a sql file.. only i want this for months..
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on September 08, 2009, 05:16:20 AM
1/ speak English here... Your message doesn't mean a thing.
2/ your site is not accessible to guests.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Dragooon on September 08, 2009, 06:40:41 AM
Quote from: tfs on September 07, 2009, 02:29:33 PM
Quote from: Dragooon on September 07, 2009, 11:42:15 AM
SMG already can fetch EXIF data that are added by most photo editing programs/cameras. If thats what you're talking about.

Sorry for being away guys, but exams have started. I gave my Science Practical today and got Maths tomorrow. Then got Science Theory exam, I won't be active till the 23rd.

Good to have you back Dragoon!

The data is not EXIF.  I'm not sure what you call it, but you can see it on a Windows machine by right clicking on a JPG file and going to properties.  In there is a tab called "Summary" where there's extended data that is stored in the header of the JPG.  Here's what it looks like.  There's an advanced and simple view.

I think this may only be an option for JPG files.
I believe that is EXIF data.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: MUSTAfaINE on September 08, 2009, 11:39:29 AM
i set the permissions but use that please

member name  : deneme

pass: deneme

and i just want to say i couldnt add the second album and i set the first album in sql...

please send me a sql file which one has two or more than..

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: tfs on September 08, 2009, 12:10:36 PM
Quote from: Dragooon on September 08, 2009, 06:40:41 AM
I believe that is EXIF data.

It's not found by SMG.  I'm looking at such a file on my forum right now.  SMG says "No Exif data found", but I just downloaded the file and looked at the properties, and there's lots of data there.  Title, Subject, Keywords, Comments and Author all contain information.

It seems like SMG is only showing the data entered by the camera.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on September 08, 2009, 01:24:16 PM
What is the origin of these files again?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: tfs on September 08, 2009, 02:47:52 PM
Quote from: Nao 尚 on September 08, 2009, 01:24:16 PM
What is the origin of these files again?

Any JPG file.  Right click, go to properties.  On the properties screen go to the Summary tab.  On the summary tab toggle between the simple and advanced views.  In there you can add information and save.

Sample file attached, made from Dragooon's sig.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on September 08, 2009, 03:39:53 PM
The attached image doesn't have any IPTC information, and its only EXIF data is "Software: Adobe ImageReady"...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: tfs on September 08, 2009, 04:48:12 PM
Quote from: Nao 尚 on September 08, 2009, 03:39:53 PM
The attached image doesn't have any IPTC information, and its only EXIF data is "Software: Adobe ImageReady"...

If you look at the file with a HEX editor you'll see unicode data in the header.


······JFIF·····`
·`······Exif··II
*·······1·······
V·······6···h···
················
.···^······· ···
················
····Adobe ImageR
eady··D·r·a·g·o·
o·n·'·s· ·S·i·g·
n·a·t·u·r·e· ·D·
r·a·g·o·n···T·h·
i·s· ·w·a·s· ·o·
r·i·g·i·n·a·l·l·
y· ·a· ·P·N·G· ·
f·i·l·e·.· · ·I·
·s·a·v·e·d· ·a·
s· ·a· ·J·P·G· ·
a·n·d· ·a·d·d·e·
d· ·t·h·i·s· ·i·
n·f·o·r·m·a·t·i·
o·n· ·t·o· ·t·h·
e· ·S·u·m·m·a·r·
y· ·T·a·b···D·r·
a·g·o·o·n·'·s· ·
G·r·a·p·h·i·c·s·
·G·u·y···d·r·a·
g·o·o·n·,· ·d·r·
a·g·o·n···D·r·a·
g·o·n·'·s· ·F·u·
r·y·!······C····


That's the data that I see in the file properties.  I re-downloaded the file, giving it a unique name.  I'm running Windows XP, patched to whatever is the latest MS service packs and patches.  I right click on the file and select "Properties".  On the properties screen I have a "Summary" tab, and in that summary tab I see the data shown above.  Just like in the screenshot I posted to Dragooon a few messages back, which I'll attach again.

Perhaps this isn't Exif data but some kind of Windows proprietary data?  Or perhaps because it's UNICODE?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on September 08, 2009, 05:20:12 PM
Hmm, indeed... Probably Windows data or something. I don't really know.
At least, ACDSee Pro 2.5 doesn't see any of these, while the Properties tab in Explorer does.

Oh, I just found a few web pages that mention this is indeed Windows-specific metadata (for XP and above). Apparently it was new in XP and improved in Vista and W7 with the ability to customize the field names.
In any case -- this is not standard and can not be read with Exifixer (which SMG uses.)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: unformatted_ on September 09, 2009, 12:44:30 PM
Thanks for this Mod.

2 questions:
-It's possible to mass upload a list of hundreds of youtube vídeo links?
-It's available the portuguese translation?

thanks
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Akyhne on September 09, 2009, 01:08:39 PM
Translations: http://smf-media.com/community/index.php?board=15.0
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: plusev on September 10, 2009, 01:20:48 AM
Installed but confused. What does the following mean -

Profile to switch albums to
Choose the profile to switch to for the albums with the profiles you have selected. If not selected, the profiles won't get deleted

Thx
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Akyhne on September 10, 2009, 01:08:42 PM
I guess it's to reasign an album from a deleted user to another user.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: plusev on September 10, 2009, 01:30:20 PM
I'm not sure - it even appears for regular users as well as admin.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Kindred on September 10, 2009, 01:31:30 PM
it is a permissions profile...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: plusev on September 10, 2009, 01:38:33 PM
Could you explain its functionality please? Thx
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Kindred on September 10, 2009, 01:51:04 PM
build a permissions profile...   like a memebergroup on SMF itself...   then apply that to one or more albums
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on September 10, 2009, 03:42:20 PM
Like Kindred says.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: plusev on September 10, 2009, 05:46:04 PM
Quote from: Kindred on September 10, 2009, 01:51:04 PM
build a permissions profile...   like a memebergroup on SMF itself...   then apply that to one or more albums

Now if someone ever explained that in laymans terms I'd be set. Oh well.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Kindred on September 10, 2009, 09:37:07 PM
the thing is, I do not know any other way to explain it....         You know how to apply permissions to the smf membergroups?   Well, in the gallery, a permissions profile is just like a membergroup...    and then you apply that profile to specific galleries...

i.e. I want one set of permissions for my main gallery, but only certain people have upload rights to the secondary albums....
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: plusev on September 11, 2009, 01:18:06 AM
The problem is that I cant grasp the smf permissions at all - to the point were I'm getting frustrated that I made the switch from another software. The manual says "SMF has a very powerful permission system". While I'm sure that's true trying to figure out how to use it is painfully difficult and I have a well above avg IQ  ;D The manual is also cryptic and presumptuous. Thx
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on September 11, 2009, 04:24:27 AM
I would have to agree with plusev... I mean, for SMF noobs, the perm system IS very complicated... It forces people to visit a lot of pages to set permissions for multiple membergroups.
Although I don't see how to improve the system, I think it would be neat to have a single page that would graphically show the permission levels for all membergroups at the same time. (Or maybe with Ajax...?)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: rgecy on September 11, 2009, 08:54:20 AM
Nao,

Got your PM in regards to my "Giga Header" issue.  It didn't work.  I had already tried to rename the header as well.

Dragoon, any suggestions.  Here is a link to my gallery

http://forums.sideimagingsoft.com/index.php?action=mgallery

Thanks,

Robert
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Lolafish on September 11, 2009, 10:48:44 AM
Do I need to upgrade my "SMF Gallery" to the new "SMF Media Gallery" in order to set this feature:

"Latest Photos"

displaying on the index page?

I am running version 1.1.10

TIA!  I've been wanting this feature forever.  lol
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Dragooon on September 11, 2009, 12:53:17 PM
Those are 2 different mods, cannot upgrade you need to convert
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Nao 尚 on September 11, 2009, 01:03:15 PM
@rgecy> You did *not* update your header style, so don't say it didn't work... You just didn't do it correctly.
http://forums.sideimagingsoft.com/Themes/Vintage/style.css
I still see the "height: 130px" on that one.... <_<

@Dragooon> + there's no latest photos system out there... Only the gallery button shows the number of unseen items.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: rgecy on September 11, 2009, 03:03:01 PM
Nao, why the attitude?   I changed it back because it casued problems with my Logo Header.  It did not work!

The .header in the style.css is for the main logo.  I am going to try it again and PM you when its done so you can see for yourself!

Robert

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: jaha on September 11, 2009, 04:28:12 PM
I tried to convert the SMF Gallery Lite to SMFMG, but I have a problem. I do not see pictures in albums. Album names, comments are there, but I do not see pictures. Pictures remain in the old folder SMF Gallery lite. I used appropriate  converter.
Another thing, when I try to add a new  album or a photo, appears to me to verify the chmod, but with time all OK, means they can not add album or a photo.
SMF version is 1.1.10,  SMF MG is 1.5.6
???
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: Warrantica on September 11, 2009, 11:55:16 PM
Ok, sorry if I'm asking an asked question.

I've tried to install this mod and an error 500: script executional failure came up. I believe its about setting permissions for the files in my root folder, so I fixed all the permission back to 755 (They were 777). It still didn't work, so I want to install it manually and how can I do so?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 4 released
Post by: TheListener on September 12, 2009, 12:02:35 AM
Were there any errors on install?

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: SMGTeam on September 12, 2009, 09:54:31 AM
I'll try to post the changelogs with the SMGTeam account from now on... If only to try and get past the post limit that makes SMF remove the links to the websites... Lol...
-- Nao

Version 2.0 beta 5                             September 12, 2009
-----------------------------------------------------------------

Regular, cool additions/fixes:

+ Added new album icon type (bigicon), which will be preview-sized and shown on album pages only (as opposed to regular thumbnail-sized icons)
+ Added ability to upload to any album (provided you're allowed to upload to them of course) within the single-upload form.
  Currently this is only used in the Foxy! add-on's SMG button feature (for uploading items within a message without going
  through the gallery), but I will add a generic upload button to the header bar later.
+ If a custom field is searchable, split it into multiple words because then commas are probably there as delimiters
+ Added a new "Check orphans" task, which will find all files that aren't used by the database at all. If the task gives you an error 500,
  that's too bad, you have too many files for your server CPU/memory to handle and the task will fail. It's not that big a deal though.
+ Added test for Safe Mode and mod_security in SMG's About page in the admin area. This should make it easier to tell people to disable them if they can.
+ Added ability NOT to log accessDenied/album not found/item not found errors
! Documents received an audio icon as their thumbnail instead of their equivalent document thumbnail
! Fixed a couple of cases where a deleted member would generate an error in the gallery if they had posted items in it, or were a moderator
! When using the smg tag for an item in a hidden album, and specifying the av, box or album type, it returned an error.
  Also make sure that any hidden album's item can only be embedded when the message's author is the album owner.
! When embedding an external video and leaving the title empty, use the title returned by Aeva.
  The previous behavior was only suitable for local embedded videos.

Small change, aka Pocket money:

! Removed all default values for TEXT fields in the database, to make it strictly compatible
* Converted all rand() calls to mt_rand(), which are more reliable
! Account for the cache system when resetting a member field for everyone
+ Added a new separator in admin area because it started getting confusing...
+ Added a new step to the admin area's "Check for Errors" section, where big icons
  are automatically attributed when available. You should run it at least once.
+ Added data_dir_url variable, so that you can specify the gallery folder's URL by yourself
(for clean filenames). SMG will still attempt to guess it by itself.
! Make sure to show clean filenames for album icons in user profiles, if enabled.
* Slightly modified Album page header layout
+ Added an Edit button next to the child album list on Album pages, and user albums on user profiles
! Fixed an undefined index when retrieving pages through cURL
* Simplified coexistence between SMG and its Foxy! add-on with a global variable
+ Modified albumsAllowedTo() to enable it to return a list of quotas for allowed albums. Enjoy the complexity of the new query, eheh.
+ Automatically update (via Javascript) quota numbers on album-free uploads when choosing a different album
! Replaced eregi with preg_match for PHP 6 compatibility, although the getid3 library still needs to be updated for full compatibility
* Moved thumbnail clear filename generation function to its own (hidden and resumable) task in the maintenance area
! Emptying a custom field wasn't allowed. Dragooon, if you read this -- was there any reason for doing this?
! "Recent albums" list didn't allow general albums
+ Added links to items where errors were found (find errors maintenance task)
! Fixed a lot of small issues in the Regenerate task
! A couple of issues with the getAlbums() function... I'm afraid I have to "hide" a child album if it's
  accessible to you but its parent album isn't. Maybe I'll find a better solution later.
! If clear_thumbnames was enabled, any time you would delete an item manually, its thumbnail wasn't deleted
+ Added page index at the bottom of the user album list.
+ Enlarged settings table data size to 16M instead of 65K, which should allow us to store something like
  500.000+ files in the orphans entry... Honestly, SMG is bound to crash much, much earlier than that...
! Use the default thumbnail instead of the first one when embedding YouTube videos
! Don't link to a profile if it's from a guest...
! Regular users editing their items would be refused access due to album profile info not being loaded when
  checking for permissions. I don't know if this bug was in beta 4 so I'm putting it into the changelog anyway.
! Fixed various typos and small bugs here and there, as always.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Minare on September 12, 2009, 10:15:38 AM
Thank you.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: probinson77 on September 12, 2009, 10:47:07 AM
Thanks for the updated version.

Unfortunately, there still seems to be some conflict with the SMG tags and the WYSIWYG Quick Reply (http://custom.simplemachines.org/mods/index.php?mod=1299) mod.  As soon as I install the WYSIWYG Quick Reply mod,my SMG tags stop working, and as soon as I remove the mod, the tags work again.

I don't have enough knowledge to figure out what the interaction is that is causing this to happen.  Does anyone smarter than me have any idea what might cause this?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Nao 尚 on September 12, 2009, 11:10:54 AM
Quote from: probinson77 on September 12, 2009, 10:47:07 AM
Thanks for the updated version.

Unfortunately, there still seems to be some conflict with the SMG tags and the WYSIWYG Quick Reply (http://custom.simplemachines.org/mods/index.php?mod=1299) mod.  As soon as I install the WYSIWYG Quick Reply mod,my SMG tags stop working, and as soon as I remove the mod, the tags work again.
This was already reported, but I couldn't find any suspicious code inside that mod so I gave up on this inquiry.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: thatguy on September 12, 2009, 01:09:33 PM
With all due respect, we have a new version but the upload feature still doesn't work. I have hope though that it will soon.

Thank you.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: chrishicks on September 12, 2009, 01:31:32 PM
I scanned through this thread but didn't see it mentioned but can you do upgrades on this by just overwriting certain files the way you can in AEVA or no? I am running 2.0b4 on a test board and it fails on most of the files on uninstall even though I haven't made any changes to those files since the install. I don't mind doing the manual edits but if I can just overwrite a few files that would be the preferred method.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Akyhne on September 12, 2009, 01:45:18 PM
Using the "Check for orphan files" - pauses after 26 items in my gallery with 26 items, then take me to the frontpage of the Admin Center??!?!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Nao 尚 on September 12, 2009, 04:06:01 PM
@thatguy> Your message isn't going to help, you know... I don't know where your site is, what doesn't work exactly, and what your server setup is...

@chrishicks> It's more complicated. SMG is a very bloated application. Many files are changed in the hierarchy every time. Many times, the installer changes things as well. For instance, beta 5 definitely requires you to uninstall & reinstall, because it makes changes to the database and to SMF files. You can still analyze the xml install files by yourself and do the changes manually if the automatic install says there's an issue...

@akyhne> Frontpage? Didn't happen to me... What was the URL showing up when you were on the frontpage?

@everyone (actually, the 26 people who downloaded beta 5 so far) > I've made a silent update to beta 5. Please install it. You don't have to go through the package manager, just redownload, and update the Sources/Subs-MGallery.php file with the new version. This will fix a minor bug with the smg tag.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: probinson77 on September 12, 2009, 04:40:17 PM
I hate to be a pain about this WYSIWYG Quick Reply thing, but I have some users upset that I had to remove it since it breaks the SMG tags.

So...

I installed the WYSIWYG Quick Reply package, and then began commenting one line out at a time to see if I could figure out which line broke the SMG tag. 

The WYSIWYG Quick Reply mod makes the following additions to Sources/Display.php.  I've highlighted the line that breaks the SMG tags;


  // Start of WYSIWYG Quick Reply
// Load the editor file
require_once($sourcedir.'/Subs-Editor.php');
// Prevent Errors
$context['submit_label'] = isset($_REQUEST['msg']) ? $txt['save'] : $txt['post'];
$context['attached'] = '';
$context['allowed_extensions'] = '';
$context['make_poll'] = 0;
   
// Now create the editor.
$editorOptions = array(
  'id' => 'message',
  'value' => !empty($context['message']) ? $context['message'] : '',
  'labels' => array(
   'post_button' => $context['submit_label'],
  ),
  // We do XML preview here.
  'preview_type' => 1,
);
 
  /**** THIS IS THE LINE THAT BREAKS THE SMG TAG ****/
  create_control_richedit($editorOptions);
  /**************************************************/
// Store the ID.
$context['post_box_name'] = $editorOptions['id'];

// Set if unset (and avoid php undefined variable errors - default is FULL WYSIWYG with bbc buttons and smilies (unless set via profile OR admin)
$options['wysiwyg_quick_reply'] = isset($options['wysiwyg_quick_reply']) ? (int) $options['wysiwyg_quick_reply'] : 0 ;

// To avoid intefering with the wysiwyg for post - we temporarily override the setting, THEN, restore it after we've written the wysiwyg
$context['controls']['richedit']['message']['rich_active_original'] = !empty($context['controls']['richedit']['message']['rich_active']) ? 1 : 0 ;
// Active
$context['controls']['richedit']['message']['rich_active'] = in_array($options['wysiwyg_quick_reply'], array(0, 1, 2, 3)) ? 1 : 0 ;
// End of WYSIWYG Quick Reply


If I comment out the create_control_richedit($editorOptions); line, then the SMG tags work as expected.  Of course, the WYSIWYG Quick Reply doesn't work properly without that line...

So... any idea why that line would break the SMG tag?

Thanks.  Sorry for being a pain.   :D
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Akyhne on September 12, 2009, 04:43:49 PM
Quote from: Nao 尚 on September 12, 2009, 04:06:01 PM
@akyhne> Frontpage? Didn't happen to me... What was the URL showing up when you were on the frontpage?
index.php?action=admin
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Shades. on September 12, 2009, 08:09:42 PM
I just upgraded to the latest beta version and am getting that little error message at the bottom left of my browser when viewing an image...didn't have this error before upgrading and I even tried to reinstall the previous beta 4 version and the error is still there, but it wasn't before!

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Alexa Toolbar; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Sun, 13 Sep 2009 00:03:31 UTC


Message: Invalid argument.
Line: 1
Char: 1
Code: 0
URI: http://www.therallyboard.com/index.php?action=mgallery;sa=item;id=189


Message: Object doesn't support this property or method
Line: 1
Char: 1
Code: 0
URI: http://www.therallyboard.com/index.php?action=mgallery;sa=item;id=189

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Nao 尚 on September 13, 2009, 02:49:36 AM
Quote from: BoZilla on September 12, 2009, 08:09:42 PM
I just upgraded to the latest beta version and am getting that little error message at the bottom left of my browser when viewing an image...didn't have this error before upgrading and I even tried to reinstall the previous beta 4 version and the error is still there, but it wasn't before!
Where do these errors show up? SMF error log? Javascript error log? Something else...? What is that "Code" for in the error log? It doesn't show up anywhere...

The only change that doesn't disappear when reinstalling beta 4 is the size of the smf_mgallery_settings table's value field which went from 65KB to 16MB. Shouldn't have any effect...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Blinker on September 13, 2009, 04:10:03 AM
I'm getting this error when I try to edit a file (in this case all I'm trying to change is the title of the pic):

Your session timed out while posting. Please go back and try again.

From memory this happened in 2b4 as well but I think I forgot about it and it's happened again today.

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Nao 尚 on September 13, 2009, 04:27:49 AM
Did you take half an hour before submitting the change? Did you open multiple tabs?

This is an issue that happens from time to time... I don't know exactly how SMF handles sessions. What I know is, it's either buggy or too strict. Even on simplemachines.org I regularly get this error message when I take a couple of minutes to answer a post. Over at noisen.com I have a couple of users who have this problem as well, but I don't. So... Mystery.

The only thing I can say is, reload the original page and re-submit.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Blinker on September 13, 2009, 04:57:34 AM
Hi Nao, thanks for your reply.

It doesn't seem to matter what I do. I can log in, fresh session, go straight to the gallery and open any random pic I like, click on edit, try to change the title, click submit and.....bang, same error.

It means I can't edit ANYTHING at all. No changes whatsoever can be made to any alum or item at all it would seem. I just tested some random changes like titles, thumbnails etc and I get the error every time.

I also noticed that the bbcode buttons and smileys don't work in the editor either. It will accept characters directly typed from the keyboard but nothing with js at all. Very strange.

I'm gonna go through all the files SMG edits and check for dupe code and the like. I'll get back to you mate.

Edit: OK, I've been through every file with a fine tooth comb and I found a lot of duplicate and sometimes triplicate code. It would appear the last 2 or 3 uninstalls have not worked properly. I always do them through the package manager and tidy up any files that show errors manually. I'm meticulous about that.

I have now cleaned up all the code in all the files and tried again. STILL GETTING ERRORS! The editor still won't work with any BBC buttons or smileys, only typed text. I have not really tried anything else function-wise in SMG for this testing so other stuff may be broken too. Btw this editor issue happens when I try to create a new album, upload a new item or edit and item.

I'm stumped Nao. As you know I run a private site so I can't give you a login. I'm happy to persist myself and would of course love any input you or others may have. Thanks.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Blinker on September 13, 2009, 07:54:28 AM
Well, I managed to fix the javascript stuff in the editor. Turns out it was site-wide...I hadn't tried to post today so I didn't know it was happening.

The cause was my tiredness. I'd had to rebuild my entire custom theme's index.template from a 2 month old backup (it's a long story) and I'd replaced a line of code instead of adding a line after it. Phew! Glad I found it and fixed it.

The session timeout error is still there though, and like I said, I'm 99.9% sure it was there when I had 2b4 installed so it's nothing to do with today's debacle.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: LHW on September 13, 2009, 10:56:53 AM
Nao: I've not run into it before, but now that I've upgraded to v2b5, I can't individually upload files to a gallery, or edit them.  I get the same "An Error Has Occurred!  Your session timed out while posting. Please go back and try again." as mentioned above.

I can post / edit regular posts, but can't do a thing within a gallery.

Oh...I can FTP files into galleries via the Admin functions, but once in, I can't edit them.

I've logged out, let it sit for over an hour, cleared all temp / cache files...nothing seems to work.  Any ideas?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Shades. on September 13, 2009, 12:55:19 PM
Quote from: Nao 尚 on September 13, 2009, 02:49:36 AM
Quote from: BoZilla on September 12, 2009, 08:09:42 PM
I just upgraded to the latest beta version and am getting that little error message at the bottom left of my browser when viewing an image...didn't have this error before upgrading and I even tried to reinstall the previous beta 4 version and the error is still there, but it wasn't before!
Where do these errors show up? SMF error log? Javascript error log? Something else...? What is that "Code" for in the error log? It doesn't show up anywhere...

The only change that doesn't disappear when reinstalling beta 4 is the size of the smf_mgallery_settings table's value field which went from 65KB to 16MB. Shouldn't have any effect...

It shows up when viewing an images that was uploaded to the gallery in IE8 at the bottom left corner of the browser. See attachment!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Nao 尚 on September 13, 2009, 03:44:28 PM
@Bozilla, I don't have this error on my site using IE8... You really should give me access to your gallery item so that I could check it out with IE8. There's an integrated debugger in that software, so I could easily find out where the problem is.
But since it's not happening on noisen.com, I'm guessing the bug is due to another script that is not related to SMG...

@Lord> Did you make sure you have the latest SMG b5? I made a silent update yesterday, about 6 hours after I released the first version. It fixed an error when trying to edit a file. But it shouldn't be related to any session errors. If it were up to me, I'd remove the session checks, because really, security in SMF is already top notch without even having to rely on session identification. Still, I guess I have to account for cookie stealers...

@Blinker & Lord> Also, can you try to uninstall b5, reinstall b4 (it's still on the mod page) and see if the error goes away? If yes, I'll try to fix it...

PS: ironically, I got the dreaded "session timed out" error when posting this message here. Lol.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Shades. on September 13, 2009, 04:00:41 PM
Quote from: Nao 尚 on September 13, 2009, 03:44:28 PM
@Bozilla, I don't have this error on my site using IE8... You really should give me access to your gallery item so that I could check it out with IE8. There's an integrated debugger in that software, so I could easily find out where the problem is.
But since it's not happening on noisen.com, I'm guessing the bug is due to another script that is not related to SMG...

The link to the item was in the code I posted...sorry I shoulda posted it seperately. Here it is: http://www.therallyboard.com/index.php?action=mgallery;sa=item;id=189. But it don't matter which image you go to, they all have the same error.

I'll PM you the username and password!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Nao 尚 on September 13, 2009, 04:53:48 PM
Bozilla, I pm'ed you earlier.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: LHW on September 13, 2009, 05:46:51 PM
Yes, I have the updated v2b5, Nao.

Quote from: Nao 尚 on September 13, 2009, 03:44:28 PM
@Blinker & Lord> Also, can you try to uninstall b5, reinstall b4 (it's still on the mod page) and see if the error goes away? If yes, I'll try to fix it...

I'm planning on doing just that either later tonight (after the Packers game) or tomorrow morning before I go into work.  I'll keep you posted.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Blinker on September 13, 2009, 07:21:42 PM
I'll uninstall 2b5 and install 2b4 tonight and get back to you, probably around 12 hours from now.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: spaceboy on September 13, 2009, 10:06:26 PM
Hi.  I'm using SMF Media Gallery with EzPortal, and I'd like to add blocks for both recent gallery items as well as a scrolling bar of all gallery items.  Is there PHP code for this I can add to a portal php block? 
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Kindred on September 13, 2009, 11:38:43 PM
yes...  look over on smf-media.org
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Shades. on September 13, 2009, 11:51:49 PM
Quote from: Nao 尚 on September 13, 2009, 04:53:48 PM
Bozilla, I pm'ed you earlier.
Thanks, it's working fine now after a fresh install! I think that image highslider mod I had installed was causing some interference!?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Nao 尚 on September 14, 2009, 02:41:57 AM
Just as I said :)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: LHW on September 14, 2009, 08:45:29 AM
Quote from: Lord High Warlock on September 13, 2009, 05:46:51 PM
Yes, I have the updated v2b5, Nao.

Quote from: Nao 尚 on September 13, 2009, 03:44:28 PM
@Blinker & Lord> Also, can you try to uninstall b5, reinstall b4 (it's still on the mod page) and see if the error goes away? If yes, I'll try to fix it...

I'm planning on doing just that either later tonight (after the Packers game) or tomorrow morning before I go into work.  I'll keep you posted.

Confirmed, Nao.  I redownloaded both v2b4 and v2b5.  I uninstalled v2b5, deleted it, and installed v2b4 again...didn't have any problems.  Then, to confirm, I uninstalled v2b4 and reinstalled v2b5...same problems: I couldn't edit or upload files.

So, I once again removed v2b5 and am now running v2b4.  I've reconfirmed that I can edit and upload files without getting the session time out errors.

Oh...this is on SMF v1.1.10.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Nao 尚 on September 14, 2009, 07:06:08 PM
Warlock, I think I've found it... I had nearly finished writing a long message asking you what your permission settings were, until I looked into my code, searched for checkSession stuff and realized the one in the Post() function was updated to work on SMF 2.0 RC2 but not RC1 (I believe) and earlier versions ;)

I changed a line in MGallery.php that you may want to revert back to its beta 4 counterpart. It's partly my fault, partly Dragooon's :P

Reinstall beta 5.
Line 1412 in that file, replace
'fieldname' => $context['session_var'],
With
'fieldname' => $context['session_var'] == 'sesc' ? 'sc' : $context['session_var'],

It should work, now.
I will issue a re-release later tomorrow (maybe as "beta 5.1" or something... Not worthy of a full beta number upgrade.)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: LHW on September 14, 2009, 07:26:33 PM
Thanks, Nao.  I'll give it a shot in 3-4 hours...when I get home.  I'll post an update for you then.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: LHW on September 14, 2009, 10:58:57 PM
Nao: That seems to have fixed the problem!  Good job!

Thanks!  :)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Angelotus on September 15, 2009, 06:43:04 AM
Is there a way to add some kind of adult filter that can be switched on/off?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Blinker on September 15, 2009, 08:27:28 AM
Nao - your session fix did the trick. All's working fine, thanks a lot. :)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Blinker on September 15, 2009, 08:37:15 AM
Getting these errors in the SMF error log when I run a check for orphan files in SMG maintenance:

8: unserialize(): Argument is not a string
File: /home/content/a/l/c/xxxxxxxxx/html/forum/Sources/MGallery-Admin.php
Line: 1751

8: Undefined index: orphans
File: /home/content/a/l/c/xxxxxxxxx/html/forum/Sources/MGallery-Admin.php
Line: 1751


For the record, it doesn't find any orphan files.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Nao 尚 on September 15, 2009, 09:04:49 AM
Blinker, did you install beta 5 with the package installer, or manually? Did you run db_install.php? Just to make sure...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Blinker on September 15, 2009, 07:30:38 PM
Nao, I did a clean install with the package manager. It had one very minor error in load.php which I did manually (all other edits in that file worked fine on auto).

I'm pretty sure db_install.php ran automatically because after the install I saw that big block of post-install text above the package manager saying that all my db tables already exist (which they should, from prior installs).

I've never run db_install.php manually. Should I be doing that?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Mr_Lon on September 17, 2009, 11:43:00 PM
I just installed SMF Media Gallery 2.0 beta 5  on my SMF 2.0 RC1.2 forums.

But I have a problem with the pictures - Some are scrambled and don't show good at all?



My "GALLERY" button shows "GALLERY (2) - is this right?

Any Help Please.

Lon
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: TheListener on September 17, 2009, 11:45:03 PM
The number next to the gallery on the tab just means that you have 2 unviewed pictures in the gallery.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Nao 尚 on September 18, 2009, 03:05:28 AM
@blinker, no you shouldn't have to do that... Anyway, I don't see why your orphens variable is empty. What's in your smf_mgallery_settings table? Can you find the orphans variable in it?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Mr_Lon on September 18, 2009, 11:09:14 AM
I got it working..... I had to reload the bad images?

Lon
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: leighlife on September 18, 2009, 12:54:35 PM
Moving pictures fails with "Leave thumbnail URLs in clear view" set - line 2543 in MGallery-Sub.php is lacking a true value for the third parameter to getEncryptedFilename() for the source.  This line works ok:

                        $success = rename($mgalSettings['data_dir_path'].'/'.$item_data['thumb_dir'].'/'.getEncryptedFilename($item_data['thumb_file'], $item_data['id_thumb'], true), $new_dir.'/'.getEncryptedFilename($item_data['thumb_file'], $item_data['id_thumb'], true));
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Nao 尚 on September 18, 2009, 01:04:36 PM
Hmm yes indeed. Only, that's not at line 2543, rather around 160 ;)
Thanks! It was obviously due to how long the line was. I've just split it into several lines so that I can see clearer next time I have to change this ;)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: LHW on September 18, 2009, 01:35:07 PM
Quote from: Blinker on September 15, 2009, 08:37:15 AM
Getting these errors in the SMF error log when I run a check for orphan files in SMG maintenance:

8: unserialize(): Argument is not a string
File: /home/content/a/l/c/xxxxxxxxx/html/forum/Sources/MGallery-Admin.php
Line: 1751

8: Undefined index: orphans
File: /home/content/a/l/c/xxxxxxxxx/html/forum/Sources/MGallery-Admin.php
Line: 1751


For the record, it doesn't find any orphan files.
Quote from: Nao 尚 on September 18, 2009, 03:05:28 AM
@blinker, no you shouldn't have to do that... Anyway, I don't see why your orphens variable is empty. What's in your smf_mgallery_settings table? Can you find the orphans variable in it?

If it helps, I get the same error as Blinker...well, just the second one...when I run the Maintenance Routine.  My orphans variable is set to a:0:{}.

EDIT: SMF: v1.1.10
SMG: v2b5 build 1050
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Nao 尚 on September 18, 2009, 07:51:33 PM
Lord, I fixed the problem (hopefully!) in a commit earlier today. Have a look at the latest rev since you're a beta tester now ;)
However, as I said over at smf-media.com, I'll probably rewrite the task to be more efficient and less unstable.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: leighlife on September 19, 2009, 07:31:00 AM
Quote from: Nao 尚 on September 18, 2009, 01:04:36 PM
Hmm yes indeed. Only, that's not at line 2543, rather around 160 ;)
Doh!  Sorry about that, there's 2543 lines in the file and I copied the wrong thing :-[ .
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: leighlife on September 19, 2009, 09:58:08 AM
If an album thumbnail has been set from an item and later a new thumbnail is uploaded for that album
then the preview for that item is lost - record and file - and a 'no access' image is shown at the top of the album, presumably because the bigicon value for the album still holds the removed _mgallery_files record id.

Ouch.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Nao 尚 on September 19, 2009, 10:50:37 AM
Okay if you're going to submit multiple bug reports, I would appreciate that you create an account at smf-media.com, I'll switch you to Beta tester and you'll be able to report bugs in the correct places, and download/try the latest revisions.

PS: I'm not sure I understand your report though... Please give an example ;)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: leighlife on September 19, 2009, 12:00:28 PM
OK, it was a bit brief, I wanted to try to repair it asap as well as leave a note here.  Here's a longer attempt:


Checking the database revealed that the bigicon value for the album was the id_file value for the preview item selected as album icon in step 1, and that both the smf_mgallery_files table row with that id and the corresponding file were gone.

[In addition, attempting to re-upload the broken item failed, perhaps due to the invalid preview row, so I restored it from a database backup.  Uploading the item then worked with the preview image recreated.]

Any better?  :D

I do have an account at smf-media - leighlife - so if you prefer me to report over there that's fine.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 5 out! (September 12)
Post by: Pinball Nation on September 19, 2009, 02:51:31 PM
Hello im using smf 1.1.10 an i have the gallery mod by vgamer installed.Do i have to uninstall the gallery mod to install this one?I tried to install but got error messages :(
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: SMGTeam on September 22, 2009, 09:54:48 AM
@pinball> no. @leighlife> Please test with the new beta.

Version 2.0 beta 6                             September 22, 2009
-----------------------------------------------------------------

Miscellaneous additions/fixes:

* Renamed "hide album" option to "disable browsing" to prevent confusion and enable me to turn them into pseudo-categories in the future.
+ Giving admins the ability to mass upload in any user album, because, well... They're the boss after all.
+ Added mgal_has_preview flag to videos shown through the smg tag, so that they can also show
  their fullsize preview inside the player instead of a small thumbnail
! Don't use sesc as session var input when editing an item, if SMF version is 1.x
! Don't delete previews when forcing a new thumbnail, except where needed
! When deleting thumbnail files, don't bother running a SQL query if the parameter is an array filled with generic icons
! Fixed a typo that was there since v2.0 beta 1, where unapproved albums would still be returned by getAlbums() when they shouldn't
! Added a check for unbrowsable albums when calling getAlbums() and requiring to return children albums as well
! Thumbnails weren't being moved with the Move feature, because of the clean filenames feature
! Big icon wasn't correctly being removed from the database when removing the file it was based on.
  Instead of resetting the big icon entry, I chose to keep the preview instead.

Installer fixes:

! Database installer was using $permission (undefined) variable instead of $perm for SMF 1.x
! Latest SMF revision changed the way some database functions are handled, so I had to update the installer to try and fit all versions...

FFMpeg additions/fixes:

! Thumbnails created by FFMpeg will now have a JPG extension and be recognized as pictures rather than movies
! Don't create a FFMpeg object if we're showing an old-style FFMpeg-created thumbnail
+ Create a preview for newly uploaded videos if FFMpeg is installed
! Improved Regeneration task to enable regeneration of FFMpeg-created thumbnails and previews
! getInfo() could generate errors if called on audio files when FFMpeg is installed

Admin task additions/fixes:

! Fixed various places in admin where the session ID was put twice into the URL
! When regenerating previews after max preview size was increased, pictures that no longer needed a preview wouldn't delete the preview ID in the database
! smg_insert_file_id() function didn't save directory and album ID when updating an item (mostly in Regenerate task)
! Fixed Regenerate task to recreate thumbnails whenever possible if they were assigned to a generic icon
! Stupid Internet Explorer doesn't support meta refresh for URLs that have a semicolon in them,
  so SMG will now replace these with ampersands before asking IE to refresh to them
* Rewrote the Orphans task from scratch, to be more efficient and fix all bugs. It should now be able to run on huge galleries.
+ Added language strings needed by the Orphans task changes

! Plenty of minor fixes, as usual
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: Akyhne on September 22, 2009, 01:28:40 PM
Nice! And the regeneration of thumbs and previews works great. So if you got ffmpeg installed, you can now get previews from your videos!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: SAFAD on September 22, 2009, 04:11:03 PM
Huge Project You Got There
Gratz
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: Lolafish on September 23, 2009, 01:04:35 AM
Quote from: Dragooon on September 11, 2009, 12:53:17 PM
Those are 2 different mods, cannot upgrade you need to convert

Yes, sorry about the language.  I converted today, and it's running perfectly!  Woo hoo!!
I still don't know how to put the latest photos (like 5-9) from the gallery on my forum index. 

How would I do that?  What would/could I edit?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: Soms on September 23, 2009, 02:30:17 AM
Quote from: Lolafish on September 23, 2009, 01:04:35 AM
I still don't know how to put the latest photos (like 5-9) from the gallery on my forum index. 

How would I do that?  What would/could I edit?

Look here: http://www.simplemachines.org/community/index.php?topic=260821.msg2231492#msg2231492

and here: http://www.simplemachines.org/community/index.php?topic=260821.msg2232992#msg2232992
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: Nao 尚 on September 23, 2009, 03:28:54 AM
@lolafish> there are plenty of samples over at smf-media.com

Quote from: Akyhne on September 22, 2009, 01:28:40 PM
Nice! And the regeneration of thumbs and previews works great. So if you got ffmpeg installed, you can now get previews from your videos!
And thanks for your help in this matter. Without your server I'd never have been able to test my work in real life conditions ;)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: jmil on September 23, 2009, 12:52:07 PM
I was looking all over but kind find the changes from 1.5.4 (220 Pages - whewwww) (My current Version) to 1.5.6. Is there a log of changes so I can view them? Only reason I ask is that I may wait until Beta 2.0... is done.

Thanks all!

Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: jmil on September 23, 2009, 01:04:06 PM
Found it!!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: Nao 尚 on September 23, 2009, 04:07:25 PM
All I can say is, I think 2.0b6 is much more stable than 1.5.6.
I stopped working on the 1.5.x branch long ago. Dragooon himself stopped working on it back in March or April. All of the bugs fixed since then were fixed in the 2.0 branch only.

BTW, it seems like Dragooon is back, at least today he fixed a few minor bugs in the admin permissions area. His first actual bug fixes since June, I think! :) Oh my, hopefully he'll stay around this time.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: jmil on September 23, 2009, 04:25:02 PM
Quote from: Nao 尚 on September 23, 2009, 04:07:25 PM
All I can say is, I think 2.0b6 is much more stable than 1.5.6.
I stopped working on the 1.5.x branch long ago. Dragooon himself stopped working on it back in March or April. All of the bugs fixed since then were fixed in the 2.0 branch only.

BTW, it seems like Dragooon is back, at least today he fixed a few minor bugs in the admin permissions area. His first actual bug fixes since June, I think! :) Oh my, hopefully he'll stay around this time.

So Not to put you on the Spot  :-X - You feel the Beta is the better way to go Either way?  ???
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: Nao 尚 on September 23, 2009, 07:06:04 PM
Yes, really.
I don't think I'll be adding new features anyway so it won't be long before it's out of beta. I'd say it'll be released in October or so. So if you want to wait, either way it's fine. Just make sure you update when 2.0 is out, whatever your current version.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: Lolafish on September 24, 2009, 08:44:11 AM
I installed v. 1.5.6

I am very happy with it, although I have a couple of questions, and hope I just didn't miss the answers somewhere.

1. Is there anyway to embed photos from photobucket, etc...or is the only option for adding photos, to upload from your computer?
2. Is there anyway to password-protect a General album so that only ADMIN can edit/add to it?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: Lolafish on September 24, 2009, 08:45:13 AM
Quote from: Nao 尚 on September 23, 2009, 03:28:54 AM
@lolafish> there are plenty of samples over at smf-media.com


I found where talk about a mod fix has been implemented, so just need to track it down and install it.  Thank you, thank you, thank you!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: man1ak on September 24, 2009, 09:18:02 AM
 When im clicking at "FTP"; "Permissions"; "Membergroup Quotas" or "Custom fields" links located at gallery admin section, im getting errors:
Quote
Unable to load the 'mgallery_admin_ftpimport' template.
Unable to load the 'mgallery_admin_perms' template.
Unable to load the 'mgallery_admin_quotas' template.
Unable to load the 'mgallery_admin_fields' template.
what could it be? everything else seems to be ok
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: Nao 尚 on September 24, 2009, 11:03:08 AM
@maniak> You should reinstall from scratch.

Quote from: Lolafish on September 24, 2009, 08:44:11 AM
1. Is there anyway to embed photos from photobucket, etc...or is the only option for adding photos, to upload from your computer?
Not for now, although it's in my to-do-list. I'll at least consider it for SMG 2.1 or something.
I've recently decided I would try NOT to add any new features to SMG 2.0 because otherwise it'll never be out of beta and I'll never be able to release it officially and retire v1.5.6. I'll get started on 2.1 as soon as 2.0 is out, though. (Hopefully.)

Quote2. Is there anyway to password-protect a General album so that only ADMIN can edit/add to it?
I don't think so.
Do you want people to be able to browse that album but only admins could post in it, or you just want to have an album where only admins can post (which, basically, is easy: just have the main admin create a user album and any admin can post in it)? Currently the only way I could "do" it for general albums is to change the way unbrowsable albums are handled for General albums. Still- they would be hidden.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: Pinball Nation on September 24, 2009, 05:21:37 PM
Still not able to install mod.Iwas thinking that if i uninstalled the highslide image mod maybe that would work.I still get the Sources_Manage_Permissions failed error.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: Lolafish on September 24, 2009, 09:13:09 PM
Quote from: Nao 尚 on September 24, 2009, 11:03:08 AM
I've recently decided I would try NOT to add any new features to SMG 2.0 because otherwise it'll never be out of beta

It's all good.  It's fine the way it is, but it would just be a nice extra.  I can't imagine all the work you've done thus far.  Great job!

QuoteDo you want people to be able to browse that album but only admins could post in it
Either Admins only, or the creator only.  Maybe I can already do that, but now I can't remember.  Darn.  I've been so tired lately.  I'll check.  I am asking for albums that were created in Gallery Lite, since I believe that new albums created in Gallery Media can be set up like that from the start.  I'm trying to remember, but I really should look before I speculate.  It's been a long day.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: lima5000 on September 25, 2009, 01:12:33 AM
in my forum, the tag [smg id=9989] in example, doesn´t work at the inicial topic, and works normally from second and the others.
Is there anything to fix or configure it?

Thanks for all help.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: Lolafish on September 25, 2009, 01:39:14 AM
I've been running some test albums today, and noticed my "mass upload" doesn't work.  It does say if it's inoperable, it could be a flash or javascript issue, so I'll check that out.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: Nao 尚 on September 25, 2009, 02:24:19 AM
@lima> "inicial topic"?

QuoteEither Admins only, or the creator only.  Maybe I can already do that, but now I can't remember.
I dunno. I'd say this can be modded by changing a line or two but it's the kind of thing you'll have to modify again every time you upgrade...
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: lima5000 on September 25, 2009, 09:51:05 AM
Quote from: Nao 尚 on September 25, 2009, 02:24:19 AM
@lima> "inicial topic"?

QuoteEither Admins only, or the creator only.  Maybe I can already do that, but now I can't remember.
I dunno. I'd say this can be modded by changing a line or two but it's the kind of thing you'll have to modify again every time you upgrade...

every one  who post, both admin and users cannot use [smg id=999], the tag appear, but not the images, nor to click, but the same code, in answer, the image and thumbnail appear normally.

thanks
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: jmil on September 25, 2009, 10:01:04 AM
Quote from: Nao 尚 on September 23, 2009, 07:06:04 PM
Yes, really.
I don't think I'll be adding new features anyway so it won't be long before it's out of beta. I'd say it'll be released in October or so. So if you want to wait, either way it's fine. Just make sure you update when 2.0 is out, whatever your current version.

Thanks for the Honest Answer. I currently have 1.5.4 on a custom theme using 1.1.9. Since I am using a Custom Theme - Everytime I do an update - i will need to do the Parse Changes Correct? And One Final (OK I will have more LOL) but does the new Version link User Albums to their profile so they can liknk Pics to their signature or Profile Pic?

THANK YOU FOR SUCH A GOOD MOD!
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: probinson77 on September 25, 2009, 10:57:23 AM
Quote from: lima5000 on September 25, 2009, 09:51:05 AM
every one  who post, both admin and users cannot use [smg id=999], the tag appear, but not the images, nor to click, but the same code, in answer, the image and thumbnail appear normally.

thanks

Do you have the WYSIWYG Quick Reply mod installed?  This is the same thing happening to me.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: Nao 尚 on September 25, 2009, 11:03:31 AM
@lima> Are you using the Wysiwyg Quick Reply mod?

@jmil> SMG doesn't touch templates. It has its own which gets inserted into the Default folder. Basically, you don't need to install manually simply because you have a custom theme.
I don't understand your other question. Have a look at the gallery on http://noisen.com -- you'll see the latest version available, obviously.

@probinson> Ah, you beat me to it ;)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: Lolafish on September 25, 2009, 08:33:57 PM
Quote from: Lolafish on September 25, 2009, 01:39:14 AM
I've been running some test albums today, and noticed my "mass upload" doesn't work.  It does say if it's inoperable, it could be a flash or javascript issue, so I'll check that out.

Hey guys.  My javascript is enabled, but there must be something amiss with that javascript code.  The browse button works, but it uses Flash.  It's just when I go to upload, nothing happens.  No error messages, just nothing.  I don't know what file to look in to see if there's something wrong with the coding.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: Lolafish on September 25, 2009, 10:45:50 PM
Quote from: Lolafish on September 25, 2009, 08:33:57 PM
there must be something amiss with that javascript code.

Clarification:  my code

@Nao  I tried your Mass Upload on your website and it works perfectly, so definately not a technical issue, just programming.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: Lolafish on September 25, 2009, 11:11:00 PM
Quote from: Lolafish on September 25, 2009, 10:45:50 PM
@Nao  I tried your Mass Upload on your website and it works perfectly, so definately not a technical issue, just programming.

Ohhhh.  Maybe this is the answer:
http://smf-media.com/community/index.php?topic=563.0

I'll give it a try.
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: lima5000 on September 25, 2009, 11:17:03 PM
Quote from: Nao@lima> Are you using the Wysiwyg Quick Reply mod?

Yes, I use it and works perfectly.

thanks
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: Nao 尚 on September 26, 2009, 07:15:19 AM
Quote from: lima5000 on September 25, 2009, 11:17:03 PM
Quote from: Nao@lima> Are you using the Wysiwyg Quick Reply mod?

Yes, I use it and works perfectly.

thanks
It may work perfectly, but it breaks the SMG tag, for a reason I do not know. (I have yet to install it on my site. I'm currently rebuilding the theme from scratch and I don't want any interference.)
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: Nao 尚 on September 26, 2009, 07:16:47 AM
Quote from: Lolafish on September 25, 2009, 11:11:00 PM
Quote from: Lolafish on September 25, 2009, 10:45:50 PM
@Nao  I tried your Mass Upload on your website and it works perfectly, so definately not a technical issue, just programming.

Ohhhh.  Maybe this is the answer:
http://smf-media.com/community/index.php?topic=563.0

I'll give it a try.
It's a bit outdated.
For instance, as I mentioned in that topic, php values are now indicated in the SMG admin settings area. Also, the credits area states whether php safe mode & apache mod_security modules are enabled. (They should be disabled for best results.)
What have you got?
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: Lolafish on September 26, 2009, 01:42:09 PM
Quote from: Nao 尚 on September 26, 2009, 07:16:47 AM
It's a bit outdated.
For instance, as I mentioned in that topic, php values are now indicated in the SMG admin settings area. Also, the credits area states whether php safe mode & apache mod_security modules are enabled. (They should be disabled for best results.)
What have you got?

Not sure I understand, but here's a snapshot of the CREDITS area:
Title: Re: SMF Media Gallery (SMG) - 2.0 beta 6 out! (September 22)
Post by: c-ron on September 26, 2009, 02:19:50 PM
Is there a way to stop new comments from flagging items as new? I want my users to -only- see new images when they click 'Unseen', or at least be able to prioritize new images before new comments.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: SMGTeam on September 26, 2009, 03:59:56 PM
I figured it would be nice to have a RC release at last! There are no show-stopping bugs left AFAIK.

Version 2.0 RC1                                September 26, 2009
-----------------------------------------------------------------
@ Okay, seriously, 10 months in beta and 6 public beta versions, that's more than enough... It's pretty stable now, so I'm going RC ;)
! I believe the $desc part in getEmbedObject() should be htmlspecialchar'ed... Needs to be verified.
+ Giving a try to captions below opened pictures when possible. Might be worth debating it. Please tell me if you like/dislike them.
! Fixed potential undefined index error in moderation panel
+ Added support for SMF 2.0 RC2's new Wysiwyg editor box system
! SMF2 RC2 now uses addLoadEvent() instead of add_load_event(), so replaced all tests for add_load_event() to improve compatibility
  (this may cause issues on the gallery homepage with SMF2 RC1 and earlier if you have other mods using Javascript, just edit the files if it bothers you.)
* When editing an item, if it has a forced thumbnail, show it below the file browser rather than to the right of it -- better layout IMHO
! titlebg class can't be used for tall objects in SMF2 RC2 + Curve theme, so replaced it with windowbg in album pages
* A couple of changes to accomodate for mods

The "Dragooon came back for a round, how about sticking around?" fixes: (yes I like to do poetry in changelogs.)

! Users were being shown a misleading error message when trying to delete a permission profile without selecting a fallback profile for related albums
! In user albums permission area, users were sometimes being shown albums which they did not own
! "Toggle all" option was being displayed even when not needed
! Comments were failing to be deleted from moderation area
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: SMGTeam on September 26, 2009, 04:01:52 PM
@Lolafish> I'd recommend you upgrade to SMG 2.0 RC1. There are many problems in v1.5 that are fixed only in v2.

@c-ron> Yes you can... Err... How? I don't remember right now, but it requires editing the code.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Lolafish on September 26, 2009, 04:19:48 PM
Quote from: SMGTeam on September 26, 2009, 04:01:52 PM
@Lolafish> I'd recommend you upgrade to SMG 2.0 RC1. There are many problems in v1.5 that are fixed only in v2.

Yes sir.  On my way......
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Lolafish on September 26, 2009, 05:09:48 PM
Quote from: Lolafish on September 26, 2009, 01:42:09 PM
Quote from: Nao 尚 on September 26, 2009, 07:16:47 AM
It's a bit outdated.
For instance, as I mentioned in that topic, php values are now indicated in the SMG admin settings area. Also, the credits area states whether php safe mode & apache mod_security modules are enabled. (They should be disabled for best results.)
What have you got?

Not sure I understand, but here's a snapshot of the CREDITS area:

Okay.  I upgraded to 2.0 just now (RC1), and here are my stats under CREDITS:

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.


Mass Upload still isn't working. I tried a small image file and larger doc file one at a time.  Nothing.

upload_max_filesize and post_max_size are both set at 30M.  I tried to mass upload a gif image that was only 1.79 KB and a pdf document that was 11.1 MB. Neither worked.  Both will upload via "add item" though, no problems.

Hey, I love 2.0!  Very sweet!  I should've done that one first. I forgot it would work with 1x v.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on September 26, 2009, 06:14:08 PM
I made a SILENT UPDATE for RC1.
To the 10 users who downloaded it already: please re-download. You don't need to uninstall & reinstall: just extract the updated Subs-MGallery.php file into your Sources folder.
This fixes a minor bug that shows a useless link ("Details") for non-image and non-single-video/audio files.
I have yet to receive feedback on that new feature, so I may remove it in RC2.

Quote from: Lolafish on September 26, 2009, 05:09:48 PM
Mass Upload still isn't working. I tried a small image file and larger doc file one at a time.  Nothing.
Then you're left with the crossdomain.xml fix. Although I don't see multiple subdomains on your site... Hmm.

QuoteHey, I love 2.0!  Very sweet!  I should've done that one first. I forgot it would work with 1x v.
Yeah, and it's a PITA to make it work on SMF1 since I never use it ;)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: TheDisturbedOne on September 26, 2009, 06:35:03 PM
RC1!! :starts to dance:
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Garry1953 on September 26, 2009, 06:53:24 PM
This gets better and better.
Fantastic job.
Thanks for all your efforts.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Pinball Nation on September 26, 2009, 08:27:09 PM
Sources_Manage_Permissions Error on trying to install.Anybody?Tell me what im doing wrong?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Dragooon on September 26, 2009, 11:46:07 PM
I love having poetry for me in awesome changelogs...man this thing has grown up to 42 kb in past 1 year. Although some of the stuff can be blamed for Nao's side comments, it is still great! :)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Lolafish on September 27, 2009, 01:33:43 AM
Quote from: Nao 尚 on September 26, 2009, 06:14:08 PM
Yeah, and it's a PITA to make it work on SMF1 since I never use it ;)

Oops. 

Yeah, guess I'm still behind.  ;)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on September 27, 2009, 04:28:45 AM
Quote from: Dragooon on September 26, 2009, 11:46:07 PM
I love having poetry for me in awesome changelogs...
Well, I'm trying to get you to come back, that's all...
If you don't want to work on SMG again, that's fine by me, but then you should give me ownership, so that I could once and for all merge Aeva and SMF Media Gallery, add a permission system for Aeva and get SMG some decent exposure :P

Quoteman this thing has grown up to 42 kb in past 1 year. Although some of the stuff can be blamed for Nao's side comments, it is still great! :)
What do you mean, "blame for Nao's side comments"?

And yeah, it's grown quite a bit... I didn't even stop to think about it for the last few months.
Without counting any of the libraries used by SMG, when I came onboard back in September 2008 you had already written over 10.000 lines of code which was a feat by itself!

Now I just make a quick manual recount and it's currently ticking at close to 25.000 lines! (including French (without UTF, ain't fair), English language, converters and my Foxy! add-on, I didn't count your slideshow add-on since I don't have it.)
Okay, we're a far cry from SMF's code which probably has around 500.000 lines of code (just the Sources folder has at least 100.000 lines), but cut us some slack, we're not the SMF team ;)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Dragooon on September 27, 2009, 07:45:08 AM
Quote from: Nao 尚 on September 27, 2009, 04:28:45 AM
What do you mean, "blame for Nao's side comments"?
Oh don't worry about it, I was just kidding. I was just saying that a part of the changelog's increase in size are your comments that we come to see in major releases.

Quote from: Nao 尚 on September 27, 2009, 04:28:45 AM
And yeah, it's grown quite a bit... I didn't even stop to think about it for the last few months.
Without counting any of the libraries used by SMG, when I came onboard back in September 2008 you had already written over 10.000 lines of code which was a feat by itself!
Thanks, took me time to code this beast...although it was worth it.

QuoteNow I just make a quick manual recount and it's currently ticking at close to 25.000 lines! (including French (without UTF, ain't fair), English language, converters and my Foxy! add-on, I didn't count your slideshow add-on since I don't have it.)
Okay, we're a far cry from SMF's code which probably has around 500.000 lines of code (just the Sources folder has at least 100.000 lines), but cut us some slack, we're not the SMF team
SMF is a much larger project with much more members, it deserves the kind of position it has at the moment.

You should look at my latest project(I told you about it before), note to others...its not going to be public, don't get excited.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Indy74 on September 27, 2009, 07:57:03 AM
Hey there:)

Call me lazy but i can't find the $txt['mgallery_gallery'] string. And i want to translate it too:)
It's not in the /Themes/default/languages... files and obviously adding it there doesn't work well;-)(it only translates when you're on the gallery page)
So what file it's hidden in? ;-)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Akyhne on September 27, 2009, 08:25:54 AM
Indy74: Languages\Modifications.[language].php
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: DaBrute on September 27, 2009, 09:01:45 AM
Ok so i have SMF Gallery Lite    2.0.8  installed, i have to remove this and upgrade to this version correct? On the download list, what one should I download? It's set to download from 2.0rc1,but i'm using 1.1.10. Help!!
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Akyhne on September 27, 2009, 09:07:42 AM
As far as I know, you can run both galleries on the same time. As for versions, there is only one. Just grab the latest, SMFMediaGallery-2.0rc1.zip, which will work for SMF 1 as well as SMF 2.
And as always: Backup before upgrading/installing anything.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: DaBrute on September 27, 2009, 09:23:40 AM
Quote from: Akyhne on September 27, 2009, 09:07:42 AM
As far as I know, you can run both galleries on the same time. As for versions, there is only one. Just grab the latest, SMFMediaGallery-2.0rc1.zip, which will work for SMF 1 as well as SMF 2.
And as always: Backup before upgrading/installing anything.
oops...lol i haven't been.  How should I do that? So if i'm using 1.1.10 and then upload is set on 2.0 or something, it should still work?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Akyhne on September 27, 2009, 09:36:03 AM
I guess you are referring to "Manual Install Instructions for SMF" when you say "upload is set on 2.0". It's a parse option which basically tells you how to add the mod manually, if you are having installation/removal issues. It has nothing to do with which file you download.
Just download SMFMediaGallery-2.0rc1.zip (615KB) and install it.

SMF Gallery Lite is made by another author and has nothing to do with SMG.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: DaBrute on September 27, 2009, 09:38:18 AM
Quote from: Akyhne on September 27, 2009, 09:36:03 AM
I guess you are referring to "Manual Install Instructions for SMF" when you say "upload is set on 2.0". It's a parse option which basically tells you how to add the mod manually, if you are having installation/removal issues. It has nothing to do with which file you download.
Just download SMFMediaGallery-2.0rc1.zip (615KB) and install it.

SMF Gallery Lite is made by another author and has nothing to do with SMG.
THANKS
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Indy74 on September 27, 2009, 09:41:54 AM
Quote from: Akyhne on September 27, 2009, 08:25:54 AM
Indy74: Languages\Modifications.[language].php
Thanks. :)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: leighlife on September 27, 2009, 07:17:17 PM
Quote from: SMGTeam on September 22, 2009, 09:54:48 AM
@leighlife> Please test with the new beta.

[re Reply #4388 (http://www.simplemachines.org/community/index.php?topic=260821.msg2266625#msg2266625)]

I've tested again with both beta 6 and RC1 and  the same problem still occurs, namely losing the preview record and file for an existing item if it was set to the album icon when a new one is uploaded.

The bigicon check at line 1285 of MGallery-Sub.php in MGal_albums_add() seems to be the cause.  I can put the diff output of my changes if it's useful.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: rgecy on September 27, 2009, 09:04:21 PM
Is there a way to make the album thumbnails clickable?

RGecy

Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Akyhne on September 28, 2009, 03:34:05 AM
SMG 1.x
MGallery.template.php line 98:
Change..
<td width="6%" align="center">',$album['icon']['src'],'</td>
to
<td width="6%" align="center"><a href="',$galurl,'sa=album;id=',$album['id'],'">',$album['icon']['src'],'</a></td>

I don't have a working copy of SMF 2 atm, but it looks like the same line is at line 151 in SMG 2.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: mforum on September 28, 2009, 06:43:13 AM
is smf-media.com closed ?
site is down for me for several days now  ???
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Akyhne on September 28, 2009, 06:47:27 AM
Try clear your browser cache. The site works ok for me: http://smf-media.com/community/index.php
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: mforum on September 28, 2009, 06:51:03 AM
Thanks  :)
but if you try http://www.smf-media.com/ , doesnt work ,, i was tricked  :o
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Dragooon on September 28, 2009, 06:54:57 AM
Try refreshing your DNS cache or switching DNS to something like OpenDNS.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on September 28, 2009, 08:46:06 AM
Quote from: Dragooon on September 27, 2009, 07:45:08 AM
Oh don't worry about it, I was just kidding. I was just saying that a part of the changelog's increase in size are your comments that we come to see in major releases.
Oh... Right :) Now that makes sense.

QuoteThanks, took me time to code this beast...although it was worth it.
It sure was.
Still a bit annoyed by how little SMG is known today, even a year after its initial release.
Which is really the reason I want to rename it to Aeva Gallery (except internally, we're not going to rename the tables & variables eh?!), so that it gets at least a shot at the popularity this beast deserves IMHO :P (H stands for "Honest" here, not "Humble" lol.)

QuoteYou should look at my latest project(I told you about it before), note to others...its not going to be public, don't get excited.
Where can I find out about your project? I remember you telling me about it, but you didn't tell me I could have a look at it... ;)

Quote from: leighlife on September 27, 2009, 07:17:17 PM
I've tested again with both beta 6 and RC1 and  the same problem still occurs, namely losing the preview record and file for an existing item if it was set to the album icon when a new one is uploaded.
Ouch.

QuoteThe bigicon check at line 1285 of MGallery-Sub.php in MGal_albums_add() seems to be the cause.  I can put the diff output of my changes if it's useful.
Oh, I would be grateful if you could. I have so much work on my hands these days... :(
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: leighlife on September 28, 2009, 09:01:41 AM
OK, here's what seems to work here:

1284c1284
<                                       SELECT f.id_file, f.directory
---
>                                       SELECT m.id_media, f.directory
1286c1286
<                                               INNER JOIN {db_prefix}mgallery_media AS m ON (f.id_file = m.id_preview)
---
>                                               LEFT JOIN {db_prefix}mgallery_media AS m ON (f.id_file = m.id_preview)
1289c1289
<                               list ($can_delete_icon, $big_directory) = $mgalFunc['db_fetch_row']($request);
---
>                               list ($shared_icon, $big_directory) = $mgalFunc['db_fetch_row']($request);
1292c1292
<                               if ($can_delete_icon > 0)
---
>                               if (empty($shared_icon))
1317a1318
>                       $big_icon = 0;
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on September 28, 2009, 11:47:35 AM
Oh... Right, leighlife!
I'm actually stunned that you managed to spot this error of mine!
I based my code upon the similar block above for small icons, and then, since I needed to retrieve the directory, I changed db_num_rows to db_fetch_rows, and forgot that $can_delete_icon was being inverted that way (if $can_delete_icon == 0, then we can delete). I also needed to turn the INNER join into a LEFT indeed, otherwise it wouldn't have worked because INNER is pointless when not counting the number of rows returned. Good one!
Really, you need to tell me how you came up with that! Even the $big_icon at the end is smart. Although I would place it right after the DELETE operation on the big icon... Of course maybe you figured out a good reason not to do that, in which case I'm also open to your reasoning ;)
Interestingly, the whole big icon stuff I consider to be a relative fiasco for me. It was way more complicated to implement than I originally thought, and it took several weeks of time to get it right -- and even then, as you rightly saw, it wasn't perfect. How could you "get" it when I (who wrote it!) couldn't? Did you spend hours on it or what? :P

Okay then, here's my replacement function... What do you think of it? (I sound like I didn't write it myself, lol.)

if ($is_edit && !empty($big_icon) && $big_icon > 0)
{
// Is the album big icon still being used by an item...?
$request = $mgalFunc['db_query']('
SELECT m.id_preview IS NULL, f.directory
FROM {db_prefix}mgallery_files AS f
LEFT JOIN {db_prefix}mgallery_media AS m ON (f.id_file = m.id_preview)
WHERE f.id_file = {int:file}
LIMIT 1',array('file' => $big_icon),__FILE__,__LINE__);
list ($can_delete_icon, $big_directory) = $mgalFunc['db_fetch_row']($request);
$mgalFunc['db_free_result']($request);

if ($can_delete_icon)
{
@unlink($mgalSettings['data_dir_path'].'/'.$big_directory.'/'.getEncryptedFilename($big_filename, $big_icon));
$mgalFunc['db_query']('
DELETE FROM {db_prefix}mgallery_files
WHERE id_file = {int:file}',
array('file' => $big_icon),__FILE__,__LINE__);
$big_icon = 0;
}
}


(Committed to rev 1080.)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: leighlife on September 28, 2009, 12:31:33 PM
Quote from: Nao/Gilles on September 28, 2009, 11:47:35 AM
Oh... Right, leighlife!
I'm actually stunned that you managed to spot this error of mine!
:blush:

Quote from: Nao/Gilles on September 28, 2009, 11:47:35 AM
Really, you need to tell me how you came up with that! Even the $big_icon at the end is smart. Although I would place it right after the DELETE operation on the big icon... Of course maybe you figured out a good reason not to do that, in which case I'm also open to your reasoning ;)
No, there's no good reason, I just dropped it in where it worked!  Much better to have it where you've put it.  I wrote that I wasn't really happy with where that line was when I posted the changes earlier, but decided to remove it...  It's your code after all: you fix it! :P  No, I'm just glad to have pointed you to the right place.

Quote from: Nao/Gilles on September 28, 2009, 11:47:35 AM
Did you spend hours on it or what? :P
Who's counting?  It's a labour of love.  Or something :D

Quote from: Nao/Gilles on September 28, 2009, 11:47:35 AM
Okay then, here's my replacement function... What do you think of it? (I sound like I didn't write it myself, lol.)
It's good, move the test into the SQL so the subsequent code changes are minimised, I like it.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on September 28, 2009, 12:59:41 PM
Quote from: leighlife on September 28, 2009, 12:31:33 PM
No, there's no good reason, I just dropped it in where it worked!  Much better to have it where you've put it.  I wrote that I wasn't really happy with where that line was when I posted the changes earlier, but decided to remove it...  It's your code after all: you fix it! :P  No, I'm just glad to have pointed you to the right place.
I hope my fix will work, too ;)

QuoteIt's good, move the test into the SQL so the subsequent code changes are minimised, I like it.
Or you could consider I did that to make it look like I didn't use your patch... Ego issue  O:)
I remember when the dev team used to do that each time I offered a patch for a bug in SMF2... But now the devs tend to trust me better than that. They shouldn't   :P
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: leighlife on September 28, 2009, 06:56:03 PM
Quote from: Nao/Gilles on September 28, 2009, 12:59:41 PM
Quote from: leighlife on September 28, 2009, 12:31:33 PM
No, there's no good reason, I just dropped it in where it worked!  Much better to have it where you've put it.  I wrote that I wasn't really happy with where that line was when I posted the changes earlier, but decided to remove it...  It's your code after all: you fix it! :P  No, I'm just glad to have pointed you to the right place.
I hope my fix will work, too ;)
Unfortunately I'm afraid it doesn't quite.  In the case where you upload a small thumbnail when previously an item was set as album icon then the preview from that item remains as the bigicon... it does need the zeroing line outside the delete block.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on September 29, 2009, 01:28:24 AM
Hmm... But what if the thumbnail isn't reset at all? The bigicon shouldn't be reset... That's what worries me a little.
What line did you put it back in?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: leighlife on September 29, 2009, 05:36:29 AM
The whole of containing block there is conditional on a new icon file having been uploaded so I think it's safe to zero $big_icon along with the other initialisation stuff at or around the point I'd originally put it.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on September 29, 2009, 07:38:04 AM
But where did you put it in? IIRC you had put it outside these blocks...

Edit-- let's say line 1294.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: leighlife on September 29, 2009, 07:51:59 AM
The containing block I mentioned starts with the check at line 1256 for an uploaded icon file, so anywhere in there after the possible use to delete the file and before the possible assignment when a new preview is inserted.

I put it with the initialisation code starting at line 1303, specifically just after the line where $thumbnailed is set to false (1317) since it seemed appropriate at the time.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on September 29, 2009, 08:36:31 AM
As I mentioned in my edit, I put it into line 1294 ;) Should be good.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: TheListener on September 30, 2009, 01:20:16 PM
For some unknown reason I went to the admin section yet all I got was  blank page.

How do I fix this?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Senkusha on September 30, 2009, 10:49:31 PM
FTP Feature:

I'm having an issue with using FTP.  I have uploaded 2 subdirectories each with 25 and 27 files in them.

The first directory shows zero files, and the second directory shows only 11 files.  Am I missing something?  I looked at the permissions in Linux, and they seem okay. (755)


Please help!  thanks!!
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: LHW on September 30, 2009, 11:25:46 PM
Assuming your FTP client uploaded them all, are you sure that all the file-types are on the Allowed Doc List, and/or are in the proper media formats?  If they aren't, they won't show up in the Admin FTP area of SMG.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Senkusha on October 01, 2009, 08:25:30 AM
Thanks for the quick reply! :)

Looks like that's my problem.  How do I add a file type?  I need to add the "rmvb" video format.  I've looked in the Settings, but all I see is file types for Documents.

Thanks!
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on October 01, 2009, 09:22:55 AM
Amusing... I thought realvideo movies were supported in the list. That was because one of my test vids is a RM movie.
I just had a look, and actually, I had inserted a local URL with the RM link... So it was accepted by Aeva and thus by SMG.

If you need it ASAP, just open Subs-MGallery-Vital.php and add:

'rm' => 'application/vnd.rn-realmedia',
'rmvb' => 'application/vnd.rn-realmedia-vbr',


To:

'rv' => 'video/vnd.rn-realvideo',

Should do the trick...

Also, the admin area only lets you *disable* some file types. I discussed earlier the possibility of allowing users to change the filetypes through the database. Maybe I'll do it.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: TheListener on October 01, 2009, 02:11:27 PM
Am unable to enter the admin area.

There is only one picture in the gallery.


Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 184320 bytes) in /public_html/Sources/Subs-Members.php on line 770
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on October 01, 2009, 02:35:14 PM
Hmm, 8M is not a lot of memory... Not wonder it crashes.
Ask your host to set this to 32M, it's the new default in recent versions of PHP.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Senkusha on October 01, 2009, 04:23:09 PM
Quote from: Nao/Gilles on October 01, 2009, 09:22:55 AM
Amusing... I thought realvideo movies were supported in the list. That was because one of my test vids is a RM movie.
I just had a look, and actually, I had inserted a local URL with the RM link... So it was accepted by Aeva and thus by SMG.

If you need it ASAP, just open Subs-MGallery-Vital.php and add:

'rm' => 'application/vnd.rn-realmedia',
'rmvb' => 'application/vnd.rn-realmedia-vbr',


To:

'rv' => 'video/vnd.rn-realvideo',

Should do the trick...

Also, the admin area only lets you *disable* some file types. I discussed earlier the possibility of allowing users to change the filetypes through the database. Maybe I'll do it.

That did the trick!  Thank you!

Also, I was wondering about a couple of things...

1.  Is it possible to make the Album Icon center, middle, instead of left, top?

2.  I noticed that while I copied/pasted from Download System (edit mode) to Gallery, it left in the &quot and &amp instead of translating them correctly. (The source was the problem.)

3.  Would it be possible to add in integration from the SA Shop?  What I would like to do is deduct a number of "points" based on the file size for viewing something from the Gallery.  Also, to add a number of points (based on file size again) for submitting things to the gallery.

4.  Sometime in the future, would it be possible to add a "multiple-move" function?  It's no big deal, just really time consuming if you've got a large gallery, and need to move things around for better organization. ;)

Thanks!

Oh, and I think I found a bug too....when I tried to FTP upload two directories (in an earlier post) I noticed that everything but two files (duplicates I think) all went into the first file folder, instead of going to where I assigned them to go.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Lolafish on October 01, 2009, 09:20:03 PM
Quote from: DaBrute on September 27, 2009, 09:38:18 AM
THANKS

Hey, just wondering how ya made out?  Does everything work for ya?  Since we're on the same SMF version, wanted to see if I'm the only one with the mass upload problem.

I need to find the time to upgrade to SMF 2.0   
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: TheListener on October 01, 2009, 09:21:29 PM
how are you trying to use the mass upload?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: smith_13 on October 01, 2009, 11:30:07 PM
Can I insert images from external servers through URLs?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Deju on October 02, 2009, 12:07:22 AM
This mod looks so nice... on other people's sites  :(

Installed the latest version.  Admin section looks solid, but it won't show up in the forum.  Do I need to add a block or something?  I'm sure it's so easy.  Sorry.

www.troutlegend.com/forum
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on October 02, 2009, 01:47:46 AM
@deju> admin permissions

Quote from: smith_13 on October 01, 2009, 11:30:07 PM
Can I insert images from external servers through URLs?
Not for now. It's in my plans for v2.1 or something. If people remind me of it in time. :P
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: BikerJim on October 02, 2009, 07:59:13 AM
Hi,

I have somehow managed to bork the gallery install - I now have two links to 'gallery' on the main page, (I did have three until I uninstalled the package) and now I cannot uninstall the package again as its already uninstalled.

I did uninstall the old version, before installing the new one, but it seems that some of it hung around, and now its duplicating stuff.

Before I go ahead and bork the whole forum trying to fix it, do you have any special advice how to manually uninstall mgallery completely and start again? My first guess is to work backwards through the manual installation instructions, but I am not sure if thats a complete uninstall or not... (database tables and all files etc) I have downloaded all the pictures to a local directory on my PC, so I'm not afraid of deleting database references and files etc, but I thought it best to ask before I do.

Your help would be most appreciated,

Kind regards
Jim
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on October 02, 2009, 08:05:10 AM
Database should be fine. Files too. You only need to care about the manual instructions indeed, in reverse of course.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: rgecy on October 02, 2009, 10:47:17 PM
Nao/Dragoon

Is there a way to make the album thumbnails clickable?  This would be a nice addition to the mod.

Thanks,

RGecy
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: smith_13 on October 03, 2009, 03:40:03 AM
Quote from: Nao/Gilles on October 02, 2009, 01:47:46 AM
Quote from: smith_13 on October 01, 2009, 11:30:07 PM
Can I insert images from external servers through URLs?
Not for now. It's in my plans for v2.1 or something. If people remind me of it in time. :P
For clarification, I meant hotlinking images :)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on October 03, 2009, 04:00:26 AM
Quote from: Senkusha on October 01, 2009, 04:23:09 PM
1.  Is it possible to make the Album Icon center, middle, instead of left, top?
Uhhh...
I tend to be very cautious about layout (at least layout I create myself -- there are many layouts that Dragooon did and I tend to ignore them until they really start to get in my way, such as the Search page which I redesigned for RC2), so it's a deliberate choice on my part.
What is your reason for requesting this?
BTW, album icons are already horizontally centered... They're aligned to the top for design reasons really.

Quote2.  I noticed that while I copied/pasted from Download System (edit mode) to Gallery, it left in the &quot and &amp instead of translating them correctly. (The source was the problem.)
I'm not sure what you're talking about. Download System, edit mode? Is that a mod?
Did you copy in wysiwyg mode or something?

Quote3.  Would it be possible to add in integration from the SA Shop?  What I would like to do is deduct a number of "points" based on the file size for viewing something from the Gallery.  Also, to add a number of points (based on file size again) for submitting things to the gallery.
I don't know what "SA Shop" is.
Plus, I tend to only add compatibility code for stuff I use. I don't do (much) integration either. I integrated Aeva because it's mine, but I only added some custom code for PrettyURLs (to facilitate its integration), because I don't believe it's up to me to write integration for it. It's not hard to do.

Quote4.  Sometime in the future, would it be possible to add a "multiple-move" function?  It's no big deal, just really time consuming if you've got a large gallery, and need to move things around for better organization. ;)
Checkbox-based, you mean? Well I would first have to add said checkbox...
The problem is that MANY people ask for MANY features that are not totally uninteresting, and I say "yes, I'll think about it", but then there are other things that come up and I forget about them.
Ideally, someone would keep track of all the interesting feature requests somewhere, and then I could pick stuff out of the stack whenever I run out of things to do myself. (If it ever happens :P)
I believe I've had about 10 interestiing feature requests these last few weeks, but no way to really track them down.

QuoteOh, and I think I found a bug too....when I tried to FTP upload two directories (in an earlier post) I noticed that everything but two files (duplicates I think) all went into the first file folder, instead of going to where I assigned them to go.
I didn't get this problem. (All of my Foxprog albums were imported through the FTP upload feature, which brought me the opportunity to help debug the feature which was pretty much broken at that point.)

@RGecy> done.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on October 03, 2009, 04:01:43 AM
Quote from: smith_13 on October 03, 2009, 03:40:03 AM
For clarification, I meant hotlinking images :)
Errr...
I'm not exactly sure of the point.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: smith_13 on October 03, 2009, 04:10:38 AM
Quote from: Nao/Gilles on October 03, 2009, 04:01:43 AM
Quote from: smith_13 on October 03, 2009, 03:40:03 AM
For clarification, I meant hotlinking images :)
Errr...
I'm not exactly sure of the point.

Instead of uploading an image to my server, I'd like to add an image link (imageshack, photobucket) to the gallery.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on October 03, 2009, 05:56:52 AM
Why not post these pictures somewhere on a topic of your forum? :P

Plus, I could do something quick for actual image URLs, but not for imageshack and photobucket which send you a thumbnail or a complete html page with the image inside... I don't have such fond memories of debugging the lookup features in Aeva, honestly :P
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: smith_13 on October 03, 2009, 06:23:22 AM
Quote from: Nao/Gilles on October 03, 2009, 05:56:52 AM
Plus, I could do something quick for actual image URLs, but not for imageshack and photobucket

That'd be wonderful, so I can link from my Picasa album! Thanks, I'll be waiting :)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on October 03, 2009, 06:25:02 AM
Well I'd rather not do something that will bring more support questions in the likes of, "You said you support embedding imageshack pictures but it refuses them when I put in the link, you sucker! Curse you and your family for 6 generations, I hate you."
(Yes that's a typical support question in the real world.)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: big_sky_badger on October 03, 2009, 08:26:52 AM
Hi,
I have uploaded and installed this package, but I see no "gallery" button on my site.  I'm running a very basic theme "Babylon," if it makes a difference.  Any idea where the button or access point to my gallery might be hiding?  Or is there something I need to do to create one?

Thanks much for your help...!
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Akyhne on October 03, 2009, 09:17:24 AM
Quote from: Nao/Gilles on October 03, 2009, 06:25:02 AM
Well I'd rather not do something that will bring more support questions in the likes of, "You said you support embedding imageshack pictures but it refuses them when I put in the link, you sucker! Curse you and your family for 6 generations, I hate you."
(Yes that's a typical support question in the real world.)
Arhh, come on! We have to have someone to attack when real life sucks ;)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on October 03, 2009, 09:32:24 AM
big sky, you need to add the button code by yourself. SMF won't do it for you.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Dragooon on October 03, 2009, 10:07:05 AM
Quote from: Akyhne on October 03, 2009, 09:17:24 AM
Quote from: Nao/Gilles on October 03, 2009, 06:25:02 AM
Well I'd rather not do something that will bring more support questions in the likes of, "You said you support embedding imageshack pictures but it refuses them when I put in the link, you sucker! Curse you and your family for 6 generations, I hate you."
(Yes that's a typical support question in the real world.)
Arhh, come on! We have to have someone to attack when real life sucks ;)
You can use Nao anytime anywhere, he's a good punching bag.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Kindred on October 03, 2009, 11:32:42 AM
only problem is..... he punches back. :P
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: LHW on October 03, 2009, 11:46:08 AM
Not if you buy Foxy! first.   ;) :D
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on October 03, 2009, 11:49:05 AM
Quote from: Kindred on October 03, 2009, 11:32:42 AM
only problem is..... he punches back. :P
Well, if you think about it, the punching bag never asked for anything in the first place... Its only crime was to be there...  O:)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Dragooon on October 03, 2009, 12:17:52 PM
Quote from: Kindred on October 03, 2009, 11:32:42 AM
only problem is..... he punches back. :P
Oh I'll see to it. You can punch him.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on October 03, 2009, 12:59:17 PM
Quote from: Dragooon on October 03, 2009, 12:17:52 PM
Quote from: Kindred on October 03, 2009, 11:32:42 AM
only problem is..... he punches back. :P
Oh I'll see to it. You can punch him.
It gets old quickly. Doesn't make me laugh anymore okay?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Dragooon on October 03, 2009, 01:02:45 PM
Quote from: Nao/Gilles on October 03, 2009, 12:59:17 PM
Quote from: Dragooon on October 03, 2009, 12:17:52 PM
Quote from: Kindred on October 03, 2009, 11:32:42 AM
only problem is..... he punches back. :P
Oh I'll see to it. You can punch him.
It gets old quickly. Doesn't make me laugh anymore okay?
Yeah, that was probably the last of it.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on October 03, 2009, 01:15:37 PM
Quote from: smith_13 on October 03, 2009, 06:23:22 AM
Quote from: Nao/Gilles on October 03, 2009, 05:56:52 AM
Plus, I could do something quick for actual image URLs, but not for imageshack and photobucket

That'd be wonderful, so I can link from my Picasa album! Thanks, I'll be waiting :)
I just finished that feature. It wasn't that "quick", it took me several hours to make it.
Basically it is an extension of Aeva's collaboration with SMG. It retrieves any item you're sending it, and will do everything possible to integrate it as a regular item (thumb+preview), except the full stay will be on the remote server.

Since I said SMG2 was now feature-frozen (as well as I'm being called a punching bag while I'm pulling my hair out after hours of work on SMG), this feature will instead be in Foxy! v1.08, to be released before Monday evening. I need to add more stuff and my current code isn't ready for a RC3 release (I was planning to release RC3 today but then your request forced me to modify several functions to add more settings to them.)

So -->

SMG2 RC3 (hopefully the last RC): tonight or Monday morning.
Foxy! 1.08 (with picture embedding): most likely Monday morning.

PS: the remote link needs to point to a picture, BTW, not a HTML file. If it's a HTML file, I'm going to have to write custom code for all possible sites...
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Dragooon on October 03, 2009, 02:13:33 PM
Wait, RC3? There isn't any RC2 yet.....
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on October 03, 2009, 04:07:59 PM
I meant RC2. I'm getting all confused with SMF2 RC2...
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on October 03, 2009, 05:03:09 PM
For customers of the Foxy! add-on, the new feature I mentioned above is now available at the usual place.
Since you are all already beta testers for SMG, you can also download the tentative release of RC2 over at smf-media.com's SVN page. RC2 (revision 1089) is needed to use the new feature.
I tested the process myself several times and it worked perfectly. I'm not sure I will have time to release RC2 to the public tonight, so... maybe tomorrow morning.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: LHW on October 03, 2009, 05:28:22 PM
Works like a charm!  ;D

Good job, Nao!
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: SMGTeam on October 03, 2009, 05:54:14 PM
Great, then :)

I've decided I would release RC2 now. If any problems occur, I will release an update tomorrow or later. It's no big deal. ;)

Version 2.0 RC2                                   October 3, 2009
-----------------------------------------------------------------
+ Added some features needed for the Foxy! add-on to offer support for embedding remotely hosted
  images. Picasa, Photobucket, Imageshack and other sites like these should be embeddable now.
+ Added a warning in the profile permission page to redirect users to the regular permission area
  if they want to set SMG permissions not related to specific albums
+ Added support for RM files in video types
+ Added ability to search an item by album name
* Rewrote Search page layout to make it easier to use. Custom fields are listed on the right side.
* If an album is unbrowsable, it doesn't mean it should be hidden, so show them on item lists, just don't link them
* When embedding a file, if unable to retrieve a default title, take it from the URL instead
! Fixed a hard to spot bug when editing an item and replacing the big icon
! Captions shouldn't be shown on non-image files, except for video/audio
! Posting an item without specifying an album ID was broken in the last release
! The uninstaller failed to remove files... Ever since v1.0! Now that's an epic fail.
! Fixed a logic error in embed_video(), although it never caused a problem to me...
! Fixed support for Javascript-enabled Aeva-powered embeds... Same remark.
! Don't download a thumbnail if it's corrupted


Link to mod page (http://custom.simplemachines.org/mods/?mod=1365)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 03, 2009, 06:29:02 PM
As I mentioned over there (http://www.simplemachines.org/community/index.php?topic=340177.msg2289645#msg2289645), I promise I wasn't even aware that SMF2 RC2 had out for 15 minutes when I posted SMG2 RC2 here.  ;D
Hopefully it will benefit a bit from the heat around SMF2 RC2, eheh.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: smith_13 on October 04, 2009, 02:33:46 AM
Quote from: Nao/Gilles on October 03, 2009, 01:15:37 PM
I just finished that feature. It wasn't that "quick", it took me several hours to make it.
Basically it is an extension of Aeva's collaboration with SMG. It retrieves any item you're sending it, and will do everything possible to integrate it as a regular item (thumb+preview), except the full stay will be on the remote server.

Since I said SMG2 was now feature-frozen (as well as I'm being called a punching bag while I'm pulling my hair out after hours of work on SMG), this feature will instead be in Foxy! v1.08, to be released before Monday evening. I need to add more stuff and my current code isn't ready for a RC3 release (I was planning to release RC3 today but then your request forced me to modify several functions to add more settings to them.)

So -->

SMG2 RC3 (hopefully the last RC): tonight or Monday morning.
Foxy! 1.08 (with picture embedding): most likely Monday morning.

PS: the remote link needs to point to a picture, BTW, not a HTML file. If it's a HTML file, I'm going to have to write custom code for all possible sites...

Thanks for the hard work! But I'm little bit confused :P

Does it mean I need to buy Foxy! for the feature to work?
Will it be available in SMG itself?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: rgecy on October 04, 2009, 02:59:09 AM
Nao,

Thanks for the mod!  Everything is looking great and the thumbnail links makes it that much better!  You guys have done a great job.

RGecy
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: Nao 尚 on October 04, 2009, 03:30:03 AM
Quote from: smith_13 on October 04, 2009, 02:33:46 AM
Thanks for the hard work! But I'm little bit confused :P

Does it mean I need to buy Foxy! for the feature to work?
Will it be available in SMG itself?
Well, Foxy! is an add-on, that says it all... You just need to install alongside SMG. SMG checks for Foxy! (MGallery-Foxy.php) and if it's installed, it includes it inside itself, just like it includes MGallery-Embed.php...
MGallery-Foxy.php is a 60KB file so it represents quite a large chunk of SMG by now.

Since I only sold a handful of copies this summer (remember it's my only income from SMG), I decided that every new feature request that coulda/shoulda been moved to 2.1 and/or would take me more than 3 hours to implement would go into Foxy! if possible, so that I can give it added value (apparently most people don't give a damn about my superb playlist feature). So, the SMG button for post boxes was moved to Foxy!, and external image embedding as well. Consider this a "SMF Media Gallery Pro" if you will, only it's 3 times less expensive than SMF Gallery Pro, and it doesn't contain critical features, only niche stuff that people have requested.

Think of it this way: if Foxy! didn't exist, I would never write this kind of feature. Actually, I would have moved away from SMG immediately after I realized Dragooon had left the boat months ago. (Who do you think is getting the donation money? :P)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 04, 2009, 03:33:36 AM
Quote from: rgecy on October 04, 2009, 02:59:09 AM
Nao,

Thanks for the mod!  Everything is looking great and the thumbnail links makes it that much better!  You guys have done a great job.
Thanks.
If everything goes well, SMG2 final will be out by next weekend. At any rate it'll be out by October 15 (that's my personal goal). I'll try to work on fixing more rare bugs and try to prevent myself from adding new time consuming features, lol.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: 4b11l on October 04, 2009, 05:00:35 AM
Hello, using ver. 2.0 rc1

I seem to have two problems. Seems like members can auto approve albums even though it's not checked in the permissions.
Additionally, I seem to not be able to approve some albums (ties to my first problem above). It seems to happen on random.

Some albums, no matter how many times I click approve/delete from the manage in the gallery; nothing happens. However, if I go into the gallery admin and do so, it will work.

EDIT: no errors in log also.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Pippin_Mariane on October 04, 2009, 05:09:02 AM
I am sure I missed an error solvent in this thread but I am now "hairpulling" .. I keep getting errors

QuoteMySQL server version for the right syntax to use near 's_Gallery/Dir_1','1')' at line 4
File: /customers/pippins.dk/pippins.dk/httpd.www/academy/Sources/MGallery.php
Line: 1160

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.10, while your database is at version 1.1.9. The above error might possibly go away if you execute the latest version of upgrade.php.
No matter which gallery I try to add (of course uninstalled before install the new)

My Forum is sprit new download 2 days ago v.1.10.0 and so on.. So I have no clue of why my database is older?? or what to do .. Please help ????????
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Xenmorph on October 04, 2009, 09:42:12 AM
Great Mod Nao.

1 Thing atm, I removed  RC1 with no apparent errors and Installed RC2 but on the Main Admin page for the Gallery it shows that I am runing RC1 still ?

I also Manually removed any remaining Mgallery folders and Database entries before I installed RC2. Wanted it to be a clean sweep.

Damit Just found another problem for me.

I am unfortunate enough to be on a server that doesn't like ;id in the code so I have to change them all to &id, Now I thought I had done this and everything is working fine except for when I click the "Submit" button when trying to edit something.

I get a 406 not acceptable error and it would seem that the code that the button is directed to Generates a ;id in its output.

Please can you point me in the direction of were this code is as using a search for remaining  ;id yields 0 results ?

Using SMF 1.1.10
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: big_sky_badger on October 04, 2009, 10:37:41 AM
Thank you for the information regarding the buttons.  I am extremely new at this and trying to teach myself, (for the most part.)  I looked at the theme's html, but I do not recognize the code that creates the buttons.  If I can find that code, I think I have a chance of understanding how to creat the button and the link to the gallery.  Can someone give me an example of what I am looking for?
And...as long as I'm asking questions...do the "pro" or paid versions of the gallery software load the buttons and gallery links for you, or do you have to create the code in those versions as well.
Sorry for all the questions...as I said, I'm trying hard to learn...with your help.
Thanks much.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Dragooon on October 04, 2009, 10:50:39 AM
Quote from: big_sky_badger on October 04, 2009, 10:37:41 AM
Thank you for the information regarding the buttons.  I am extremely new at this and trying to teach myself, (for the most part.)  I looked at the theme's html, but I do not recognize the code that creates the buttons.  If I can find that code, I think I have a chance of understanding how to creat the button and the link to the gallery.  Can someone give me an example of what I am looking for?
And...as long as I'm asking questions...do the "pro" or paid versions of the gallery software load the buttons and gallery links for you, or do you have to create the code in those versions as well.
Sorry for all the questions...as I said, I'm trying hard to learn...with your help.
Thanks much.
SMG does not have a paid version, SMF Gallery has(Its a different gallery altogether), but no it doesn't. No mod for SMF 1.1 does. You can search the forums in order to know how to add the button, it is not hard.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Dragooon on October 04, 2009, 10:52:57 AM
Quote from: Xenmorph on October 04, 2009, 09:42:12 AM
Great Mod Nao.

1 Thing atm, I removed  RC1 with no apparent errors and Installed RC2 but on the Main Admin page for the Gallery it shows that I am runing RC1 still ?

I also Manually removed any remaining Mgallery folders and Database entries before I installed RC2. Wanted it to be a clean sweep.

Damit Just found another problem for me.

I am unfortunate enough to be on a server that doesn't like ;id in the code so I have to change them all to &id, Now I thought I had done this and everything is working fine except for when I click the "Submit" button when trying to edit something.

I get a 406 not acceptable error and it would seem that the code that the button is directed to Generates a ;id in its output.

Please can you point me in the direction of were this code is as using a search for remaining  ;id yields 0 results ?
You mean I get no credit for this mod? :(

But to your issue, try going through every source file with MGallery prefix and see if they contain ;id. Since I assume you've already taken care of the templates.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Xenmorph on October 04, 2009, 11:05:34 AM
Quote from: Dragooon on October 04, 2009, 10:52:57 AM
Quote from: Xenmorph on October 04, 2009, 09:42:12 AM
Great Mod Nao.

1 Thing atm, I removed  RC1 with no apparent errors and Installed RC2 but on the Main Admin page for the Gallery it shows that I am runing RC1 still ?

I also Manually removed any remaining Mgallery folders and Database entries before I installed RC2. Wanted it to be a clean sweep.

Damit Just found another problem for me.

I am unfortunate enough to be on a server that doesn't like ;id in the code so I have to change them all to &id, Now I thought I had done this and everything is working fine except for when I click the "Submit" button when trying to edit something.

I get a 406 not acceptable error and it would seem that the code that the button is directed to Generates a ;id in its output.

Please can you point me in the direction of were this code is as using a search for remaining  ;id yields 0 results ?
You mean I get no credit for this mod? :(

But to your issue, try going through every source file with MGallery prefix and see if they contain ;id. Since I assume you've already taken care of the templates.

My bad, Yes you also deserve credit for this Excellent Mod Dragooon.

I have been through all the source files also with no joy.

I can add & delete files with no issue but cannot EDIT due to this problem, its driving me nuts.

When I click the "Submit" button when trying to EDIT a file it generates the following code :

http://*MY FORUM*/index.php?action=mgallery;sa=post;id=1

as you can see there is a ";id" in there and my server don't like those at all........"406 NOT Acceptable"

Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Dragooon on October 04, 2009, 11:18:15 AM
Try finding the $context['mgallery_form_url'] instances in MGallery.php/MGallery-Sub.php and replacing there URLs. It should be one of those.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 04, 2009, 11:32:51 AM
Quote from: Dragooon on October 04, 2009, 10:52:57 AM
You mean I get no credit for this mod? :(
Never heard you complain anytime someone posted "Great mod Dragooon" and forgot about me...  O:)

As you know, I made 95% of the work on SMG since we went Beta last June. Really, you should really decide whether you want to stay onboard or not.
I feel kinda busted by the amount of work I've been forced to put out. If you want to come back and help me like you did back in late 2008, then please, by all means do it. Because the way it's going -- I'll be putting all of my big new features into Foxy instead. And no one wants that.

So please, an official statement because I get mad with all the work! :P
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Xenmorph on October 04, 2009, 11:33:19 AM
Quote from: Dragooon on October 04, 2009, 11:18:15 AM
Try finding the $context['mgallery_form_url'] instances in MGallery.php/MGallery-Sub.php and replacing there URLs. It should be one of those.

Thanks Dragoon, Found it......

$context['mgallery_form_url'] = isset($_REQUEST['noh']) && $context['smg_foxy'] ? 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] : $galurl . 'sa=post;' . ($editing ? 'id' : 'album') . '=' . $id; at line 2833 MGallery.php

The ; at the end of "sa=post;".

You know what its like when you been looking for something for so long and you loose focus, Thanks for pointing me back in the right direction.

All seem to be working now.......YAY !
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Pratt on October 04, 2009, 01:51:37 PM
Just wanted to congratulate you guys on this MOD! Great Job!
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: 4b11l on October 04, 2009, 07:22:28 PM
Do nobody give an insight on my problem?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC1 out! (September 26)
Post by: smith_13 on October 04, 2009, 11:34:12 PM
Quote from: Nao/Gilles on October 04, 2009, 03:30:03 AM
Quote from: smith_13 on October 04, 2009, 02:33:46 AM
Thanks for the hard work! But I'm little bit confused :P

Does it mean I need to buy Foxy! for the feature to work?
Will it be available in SMG itself?
Well, Foxy! is an add-on, that says it all... You just need to install alongside SMG. SMG checks for Foxy! (MGallery-Foxy.php) and if it's installed, it includes it inside itself, just like it includes MGallery-Embed.php...
MGallery-Foxy.php is a 60KB file so it represents quite a large chunk of SMG by now.

Since I only sold a handful of copies this summer (remember it's my only income from SMG), I decided that every new feature request that coulda/shoulda been moved to 2.1 and/or would take me more than 3 hours to implement would go into Foxy! if possible, so that I can give it added value (apparently most people don't give a damn about my superb playlist feature). So, the SMG button for post boxes was moved to Foxy!, and external image embedding as well. Consider this a "SMF Media Gallery Pro" if you will, only it's 3 times less expensive than SMF Gallery Pro, and it doesn't contain critical features, only niche stuff that people have requested.

Think of it this way: if Foxy! didn't exist, I would never write this kind of feature. Actually, I would have moved away from SMG immediately after I realized Dragooon had left the boat months ago. (Who do you think is getting the donation money? :P)

Well it's a shame that I don't have any virtual money! :( Sorry, you've worked on it hard, and here I am :P But thanks anyway.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: dannbass on October 05, 2009, 10:06:27 AM
Quote from: Xenmorph on October 04, 2009, 09:42:12 AM
1 Thing atm, I removed  RC1 with no apparent errors and Installed RC2 but on the Main Admin page for the Gallery it shows that I am runing RC1 still ?

I also Manually removed any remaining Mgallery folders and Database entries before I installed RC2. Wanted it to be a clean sweep.

I didn't do anything as radical as this, but I did uninstall the RC1 without a problem and install the RC2 and the version didn't change.  I checked all the files and overwrite them manually, uninstalled the RC2 and installed... several times and nothing, still shows RC1 as my version.

Any ideas of what should I do next?

Thanks for the superb mod!!
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: leighlife on October 05, 2009, 12:01:14 PM
First, RC2 certainly fixes the album icon failure cases I knew about so far, great!

However there's another case which still causes file and data loss: if an album icon has been set from an item which has no preview size - i.e. it has only the file itself and a thumbnail - and a new album icon is uploaded, then the previous item's file and record are lost :(  <scream>

Also, db_mgallery.php still has 2.0 RC1 as the version, hence the previous reports here.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: dannbass on October 05, 2009, 01:08:12 PM
Quote from: leighlife on October 05, 2009, 12:01:14 PM
Also, db_mgallery.php still has 2.0 RC1 as the version, hence the previous reports here.

Great! thank you! fixed it, ran it, and now it's RC2!
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 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

@mariane> there's nothing at line 1160... update to RC2 before you report any issues.

@xen> the RC1 notice is normal. It says RC2 in the package manager. I just forgot to update it. Update db_mgallery.php, upload it to your root folder and run it. Fixed. Also, look into your SMG admin area's credits. Does it say mod_security is installed? Then uninstall it...

@All beta testers> Rev 1090 has a tentative fix for mod_security problems on forum submit / mass upload (although I don't think it'll work for mass upload). I tried to take it easy and just do a mass replace... Maybe it'll work, maybe it won't. To anyone who has such a server (Akyhne?), please be sure to try it!

@big_sky_badger> look into index.template.php

@smith_13> No problem, it was just a "virtual" job of 5 virtual hours, after all. I'll just be sure to put all of your requests into Foxy! in the future. Just so you get another taste of virtual happiness.

@leighlife> Think you could look into it as well? I just don't have time on my hands (again!), really...
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: 4b11l on October 05, 2009, 02:54:25 PM
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
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 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.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: 4b11l on October 06, 2009, 02:49:51 AM
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.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 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.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: 4b11l on October 06, 2009, 03:15:49 AM
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?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 06, 2009, 04:01:07 AM
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)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: 4b11l on October 06, 2009, 09:54:57 AM
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?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 06, 2009, 10:49:26 AM
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++.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: drroot on October 07, 2009, 05:31:21 PM
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?

Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: 4b11l on October 07, 2009, 05:43:21 PM
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.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 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.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: 4b11l on October 07, 2009, 06:11:37 PM
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
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: neilbombd on October 07, 2009, 08:32:38 PM
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)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: LHW on October 07, 2009, 09:04:44 PM
Neilbombd, your gallery isn't viewable to Guests.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: leighlife on October 07, 2009, 09:06:17 PM
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)
?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 08, 2009, 02:07:08 AM
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 :)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 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.

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.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: 4b11l on October 08, 2009, 02:34:26 AM
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.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: drroot on October 08, 2009, 03:39:34 AM
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.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 08, 2009, 03:44:56 AM
@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.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: neilbombd on October 08, 2009, 05:10:41 AM
Quote from: Lord High Warlock on October 07, 2009, 09:04:44 PM
Neilbombd, your gallery isn't viewable to Guests.

Whoops, fixed that now, sorry.  Here's an example (http://cookd.php5.truth.posiweb.net/forums/index.php?action=mgallery;sa=item;id=215) of what's happening.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 08, 2009, 06:05:42 AM
It says file not found. You should use the Regenerate Previews feature in the admin area. Then run a Check Orphans, Check Errors and Check Files trio of tasks. You should be good after that.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: neilbombd on October 08, 2009, 06:30:16 AM
Thanks Nao!  Clicking "Regenerate Previews" gives me the following error: "Wrong value type sent to the database. Integer expected. (filesize)"
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 08, 2009, 08:56:48 AM
Uh... Would you happen to have more details on this? File, Line number etc.
I guess this is an error from smg_insert_file_id() which in turns must come from mgal_createPreview().
In which case-- are you sure it's a SMG issue? I could only guess that your server can no longer load BMPs internally. Are you sure it regenerates thumbnails without failing?

Also try to run the other maintenance tasks before Regenerate Previews.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: neilbombd on October 08, 2009, 10:20:18 AM
Quote from: Nao/Gilles on October 08, 2009, 08:56:48 AM
Uh... Would you happen to have more details on this? File, Line number etc.

Unfortunately, that's all it tells me - no mention of line numbers etc. 

QuoteI guess this is an error from smg_insert_file_id() which in turns must come from mgal_createPreview().
In which case-- are you sure it's a SMG issue? I could only guess that your server can no longer load BMPs internally. Are you sure it regenerates thumbnails without failing?

I've only moved to this server over the last 24 hours, so I've no idea, this is my first time with SMG, and I really want to get it working as it looks amazing.  Here's what the SMG info panel tells me:

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)

Anything missing there that I really need?  If so, I can ask the server people to install it.

QuoteAlso try to run the other maintenance tasks before Regenerate Previews.

Tried all those, with Find errors I get a page full of :

"The physical thumbnail #487, used with item 173, is missing.
The physical preview file #488, used with item 173, is missing."
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: thee mc on October 08, 2009, 02:46:02 PM
Hey, I love this mod but I'm having a problem that I just can't figure out.  :'(

When I go to upload a picture, I get redirected to an "Error 500" page. Also, I uninstalled RC1 and installed RC2, but in the admin area for the mod, it says that I still have RC1 installed? When I go to the packages page, it definitely says RC2.

Thanks!
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: duder673 on October 08, 2009, 02:48:07 PM
I don't know if you remember my problem from a while ago, but basically my hosting service dropped all of my files and I had to reload everything from the backup.

When I reloaded it, it has messed up a lot of things, mainly the permissions for SMG (no users can add things, only the admin and there is not even a permission to change this)

Anyway, I have given up on that, since you said something along the lines of "SMG wasn't intended to be recovered from that size of disaster"

So now I install the new version, hoping that will help something and I am locked out of my Admin panel and this is the error I get.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi34.tinypic.com%2F11abh49.jpg&hash=a2e921a9bfa45641a0a27d0aa95e1240d54bc3a1)

Anyone have any suggestions?  I literally can't do anything with my site now.


*edit:
I edited out the SMG lines and it seems to be working fine for now.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: car20 on October 09, 2009, 04:59:14 AM
Hello

my smf ver is 1.1.10
i installed successfully but now cant see any option in admin area for setting!!

please help me  ???

my language is persian.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 09, 2009, 05:18:34 AM
Quote from: neilbombd on October 08, 2009, 10:20:18 AM
I've only moved to this server over the last 24 hours, so I've no idea, this is my first time with SMG, and I really want to get it working as it looks amazing.  Here's what the SMG info panel tells me:
I'm not getting it... This is your first time with SMG? Did you import the data from some other software? I thought you told me that you used to have BMP previews in SMG.

QuoteAnything missing there that I really need?
Nope... It should work. So it's not a server problem.

QuoteTried all those, with Find errors I get a page full of :

"The physical thumbnail #487, used with item 173, is missing.
The physical preview file #488, used with item 173, is missing."
That's all you get? It just tells you that? The regenerate previews should fix that... Really strange.
And Orphans doesn't find anything odd either?
I don't know... I don't have time to help right now (or for the whole week actually.)
I'd say, go to phpmyadmin, set id_preview=0 on all entries in smf_mgallery_media, then run Check Orphans (it will delete all of the previews generated so far), and Regenerate Previews should regenerate everything from scratch. Of course, if the problem IS from your server and lack of BMP support, then you're screwed again. I really don't know at this point, I can't help at help without ftp+admin+phpmyadmin access to see your files... Not that I would have time for that anyway. :(
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 09, 2009, 05:29:04 AM
@car20> Uh... Rename MGallery.english.php to MGallery.persian.php?

Quote from: duder673 on October 08, 2009, 02:48:07 PM
I don't know if you remember my problem from a while ago,
Err... Nope.

Quotebut basically my hosting service dropped all of my files and I had to reload everything from the backup.

When I reloaded it, it has messed up a lot of things, mainly the permissions for SMG (no users can add things, only the admin and there is not even a permission to change this)
Uh? Are you sure you can't change any permissions?
What version did you use?

QuoteAnyway, I have given up on that, since you said something along the lines of "SMG wasn't intended to be recovered from that size of disaster"
I don't remember, really. And I'm guessing it's best to reinstall it from scratch and then import back your files through the FTP Import feature, for instance.

QuoteSo now I install the new version, hoping that will help something and I am locked out of my Admin panel and this is the error I get.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi34.tinypic.com%2F11abh49.jpg&hash=a2e921a9bfa45641a0a27d0aa95e1240d54bc3a1)

Anyone have any suggestions?  I literally can't do anything with my site now.
What was at line 2894?

Quote*edit:
I edited out the SMG lines and it seems to be working fine for now.
Sure, but... I may not remember your story, but your server still seems very crappy to me. Really.
Check file permissions by FTP.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: car20 on October 09, 2009, 09:26:19 AM
Quote from: Nao/Gilles on October 09, 2009, 05:29:04 AM
@car20> Uh... Rename MGallery.english.php to MGallery.persian.php?

Thanks Nao ,

create one album but when clicked that i got this error :
Not Acceptable
An appropriate representation of the requested resource /index.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


http://www.forum.car20.com/index.php?action=mgallery;sa=album;id=1
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 09, 2009, 02:01:56 PM
Is mod_security enabled? Check your smg admin area's credits.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: damnitmike on October 09, 2009, 02:46:16 PM
Nao, you do great work!

No probs here, but I was thinking as I setup the Gallery, it's brutally close to being a Rate My (whatever) script.....The beauty of the Gallery makes it so it can be about anything from pics of things, vids, music, really it's limitless.

Instead of 5 ratings, make it 10 and it's done. It's really the only difference, other than they do include values by the numbers in most Rate My scripts.

For example, 1=yuck, .....................10 = Awesome

And Maybe a Block for Portals to pull randoms from a specific category......

Awesome work here.......! 8)

If I missed this in the 228 pages, my apologies!

Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 10, 2009, 06:01:09 AM
Uh... What are you trying to say, exactly?
What's the point in rating on a 10 scale instead of 5? Why shouldn't it be 20, for instance?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: damnitmike on October 10, 2009, 10:13:32 AM
I used 10 because every Rate My script uses 10, At least all the ones I ever saw did.

And,

Bo Derek was  perfect  at 10.  8)

I think that movie tied the number 10 to perfection.....

If you saw something that was absolutely beautiful, and I agreed, and you said I'd give that a 5 or a 20, I'd say no bro, that's a 10... ;)

Most grading scales use 100% as perfect.....the 1-10 scale is simple math. Just add a zero to it. If you rated somehing at a 7, 7+0=70%......That's about a C....

Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 11, 2009, 05:05:24 AM
Let's be clear.... Here's how ratings work.

- First visitor: "Oh... I liked this. I'll rate it, say, 80%... Yeah, that's a good rating."
- Second visitor: "Oh... It's rated highly, but it's not that impressive. I can't stand that. Let's rate it 0% to give it its deserved rating."
- Second visitor: "Oh... It's rated 40%? But it deserves much better! Let's rate it 100% so that it gets a better rating."

At which point it gets 60%, including a 0 and a 100. It goes on like that. People usually don't give an item its "deserved" rating. They aim to get it to reach whatever rating they think it deserve. I myself rated a LOT of movies a 10/10 or 9/10 or imdb.com to get them a bit higher even if I thought they didn't deserve more than a 7, objectively.

So, all in all, the best possible rating system is something simple like "I like this!" or "I don't!"... People who just don't care will not rate it, that's all.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Powerbob on October 11, 2009, 05:12:46 AM
Great Gallery, a definite contender to CPG

Well done, install went very easily and quickly. works great under RC2 8)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Kindred on October 11, 2009, 09:02:09 AM
Quote from: Nao/Gilles on October 11, 2009, 05:05:24 AM
So, all in all, the best possible rating system is something simple like "I like this!" or "I don't!"... People who just don't care will not rate it, that's all.


LOL!   You know, I used to work for a company that included ratings, etc as part of its offering...   and this was exactly the line that we suggested   1-5 or 1-10 ratings are irrelevant for the most part (although it "looks" good. The only thing that matters is X# liked it and Y# did not like it.
I'd love to see the 1-5 changed to like/dislike. :)   And now that you mention that, I may write a mod for smf to actually make that change....
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 11, 2009, 10:09:36 AM
Quote from: Powerbob on October 11, 2009, 05:12:46 AM
Great Gallery, a definite contender to CPG
One can't really be compared a two-man work with a team work ;)
Although CPG is slower to progress than Gallery2, which definitely has more features than SMG. (Well, at least, last time I read their feature list, I kept thinking "okay, that one's useless... That one too... That one too... That one's cool but we did it differently... That one's useless...")

@Kindred> Unsurprisingly, I agree with you. But I don't think Dragooon would agree on changing it. Although it does make the whole thing simpler ;) But it could conflict with earlier ratings, so...
I'm thinking of adding a "like/dislike" option for topics in my site. Although I'm not sure how to best implement it... (Maybe there's already a mod for that?)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: damnitmike on October 11, 2009, 10:26:24 AM
So far , an enlightening discussion. When it comes to mods, my #1 rule is, Beggars be not choosers, but I discussed Nao's Footnotes mod with him in the past, and figured what the heck....Oh, the Footnotes mod is superb, IMO.

My original intend was to suggest this conform more to a pure 1-10 Rate My. Then it sort of has a double purpose.....

Maybe a mouseover definition is a good suggestion, from what I am seeing.

IMO, here's how the 1-5 works for me. When you mouseover each number, it reveils it's meaning.....

1=sucks
2=I don't like it
3= its ok
4=I like it
5=Perfect, don't change a thing

The simple 'I like it/I don't like it', would work also, but personally, I need more.
If they left comments, then it works for me.

FaceBook uses just a single ' likes it' with membername included....so if you don't click that, I suppose you didn't like it......

Thanks for the discussion. MGallery is sweet!
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 11, 2009, 11:33:30 AM
Quote from: damnitmike on October 11, 2009, 10:26:24 AM
So far , an enlightening discussion. When it comes to mods, my #1 rule is, Beggars be not choosers, but I discussed Nao's Footnotes mod with him in the past, and figured what the heck....Oh, the Footnotes mod is superb, IMO.
That's my personal forgotten gem ;)
A mod that's not good because of its execution (which is fine by itself but very simple), but because of its simple, yet never seen before in a forum, idea.
I use it every other day on my long posts. :)

QuoteMy original intend was to suggest this conform more to a pure 1-10 Rate My. Then it sort of has a double purpose.....
Just as a reminder -- youtube itself uses a 1-5 scale.

QuoteThe simple 'I like it/I don't like it', would work also, but personally, I need more.
If they left comments, then it works for me.
Yeah, somehow that would be the best way of doing it. But simply saying "I like this" is positive. Might even be better than having a 1-10 scale and have someone rate 7/10.

QuoteFaceBook uses just a single ' likes it' with membername included....so if you don't click that, I suppose you didn't like it......
Yeah, they're using a positive attitude or something. There's no way of saying you don't like something. Although generally there's nothing to complain about in a blog or status update. After all, if you don't like it, what are you doing over there...
But I agree I would appreciate to see a "Dislike" button on facebook as well.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Özgür on October 11, 2009, 11:50:12 AM
Quote from: Nao/Gilles on October 11, 2009, 10:09:36 AM
But it could conflict with earlier ratings, so...
I'm thinking of adding a "like/dislike" option for topics in my site. Although I'm not sure how to best implement it... (Maybe there's already a mod for that?)
Yep already modded. Good Post And Bad Post is its name. But like/dislike system is not rating or not the same. Just think it.
(Example a movie from imdb)
1 - 986 Peoples like it | 425 Peoples doesn't like it
Or
2 - Rating is 6,89 (From 10/10).

First case, don't give anything from that movie. Because i can't understand "must i watch this movie". But second, say to "Watchable".
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 11, 2009, 04:20:27 PM
Actually, the rating would be 6,98/10 because (986*10+425*0)/(986+425) = 6,98. (If considering that a "like" stands for 10/10, while a "dislike" stands for 0/10.)
Of course if I had to do a like/dislike thing, I would show both ways of calculating it.

Good Post Bad Post => hmm, not exactly what I was looking for... Still, I found plenty of mods that seem to do the job for topics. I'll have a look at them tomorrow. Thanks!
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Horseman on October 12, 2009, 01:11:08 AM
i have uninstall Media Gallery 2.0 RC1 and installed 2.0 RC2
Now i have this problems:

1. In the Forum Admin -> Settings -> Gallery the MOD says i have installed RC1 ?
2. I have a yellow Template Error, see the Screenshot


regards
Horseman
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: tfs on October 12, 2009, 03:29:25 AM
Quote from: Horseman on October 12, 2009, 01:11:08 AM
1. In the Forum Admin -> Settings -> Gallery the MOD says i have installed RC1 ?
2. I have a yellow Template Error, see the Screenshot

The RC2 version says it's RC1 in the settings.  Don't worry about it.

The yellow bar means that there's something you need to look at regarding moderation.  Go to the gallery tab and click on moderation.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Horseman on October 12, 2009, 04:57:23 AM
Thank you,

i think it was better in the yello strips the mod say 'You have to Moderate'

regards
Horseman
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 12, 2009, 09:29:07 AM
It always has said that, and always will... You have a problem with your language files.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: PRaDiUS on October 12, 2009, 01:21:39 PM
@ Nao

I'm running RC2 on the site now, but I am having some trouble with the permissions. I have given regular members access to everything short of mod/admin permissions and for some reason the "add an item to this album" link is not showing up in the general albums. I gave members access to create user albums and that didn't correct the problem either. My goal here is to make it so my members can add items to the general albums, but not be able to create user albums. Also, I don't see permissions for mass upload/download in the admin panel anywhere. What should I do?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 12, 2009, 03:24:23 PM
Er... SMF > Admin > Membergroup permissions > disable Create User album
Make sure Add item is enabled, though.

PS: why do you have a link to Aeva in your sig? ???
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: PRaDiUS on October 12, 2009, 03:31:22 PM
@ Nao

Currently SMG is not listing a permission for Add item in my panel.
These are the permissions I have listed in Admin..
------------------------------------
Access Gallery     
Moderate Gallery    
Administrate Gallery    
Access unseen area    
Search in Gallery    
Add User Playlists    
Add User Albums    
Auto-approve User Albums    
View anyone's Gallery profile
----------------------------------------
Am I missing something?

p.s. just showing support, i will take it out if you want me to.  ;D

update: I went in and added a link that would appear to bring members to the add item page. although the box to browse for item to add is not appearing. I am guessing this is because members still do not have permission "add item". I have looked all through my admin panel and do not see a place to enable Add item anywhere. RC2 installed successfully with no errors. I even uninstalled and reinstalled again a second time to be sure. As of right now my members can view the gallery, but cannot add anything to it.

Am I overlooking something? Thanks.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: tfs on October 12, 2009, 06:22:28 PM
Quote from: Nao/Gilles on October 12, 2009, 09:29:07 AM
It always has said that, and always will... You have a problem with your language files.

When I have a submitted item waiting for the OK, I get the text.  When there's an item reported, there's just the yellow bar with no text.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: stormwatcher on October 12, 2009, 07:10:51 PM
OK I just added the SMF Gallery Lite Mod.....SMF 1.1.10

Everything looks like it went well. Just before it clicked install mad button........It said after the install.....i would have to make the gallery file writable.

I went into my cpanel and see no gallery file.

when I click the gallery button......the progam comes up with a red message.....

Warning Gallery path is not writable! /hermes/web09/b795/moo.storm/gallery/

why can't I find this file in cpanel?

Is this something that has to be done through myphp admin not cpanel?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: LHW on October 12, 2009, 07:32:23 PM
SMF Gallery Lite is not the same Mod as SMF Media Gallery.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: stormwatcher on October 12, 2009, 07:36:02 PM
oops.....i may have to remove mod and install the correct one,
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: sulla on October 12, 2009, 10:46:13 PM
I have a quick question. I have your great gallery installed but how do I do a complete backup of all the data including the images?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Kindred on October 12, 2009, 11:07:50 PM
images are stored as files....  information is stored in the database...   so, if you back up your database plus your site files you will have a backup of smf and smg
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: sulla on October 12, 2009, 11:09:08 PM
Ok great I will look and see where it stores the images.  :)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Kindred on October 13, 2009, 01:08:27 AM
just do a backup of your entire forum directory and all subdirectories...
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Blinker on October 13, 2009, 01:38:55 AM
sulla you need to do it via ftp along with the rest of your site. All the images stored in your public html folders along with templates etc. Standard site backup procedure. The database (posts and settings) is stored separately in mysql and must be backed up separately. Common methods include internally via the forum or via phpmyadmin.

Check the user guides (on the top menu) for more info on backing up, as well as a million posts on the forum.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: sulla on October 13, 2009, 01:51:53 AM
Normally I am doing a complete backup of all my sites and databases using cpanel about every week. And every day or so I am using the SMF admin "Forum Maintenance - Backup Database" to do the posts etc.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Kindred on October 13, 2009, 01:58:21 AM
if you are already using Cpanel, then just do the db backup using cpanel as well...
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: micky_2556 on October 13, 2009, 12:54:14 PM
hello i try to type my names folder with arabic chracter
but i fount that it is type 5 or 6 charecter onmly and cut the name of folder

what can i do to type the name of folder with arabic

Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 13, 2009, 01:31:13 PM
What character set are you using?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Captain351 on October 13, 2009, 03:39:14 PM
Just installed and everything works & looks great but I do have a couple problems

1. The package I installed says it's RC2 but the info page says RC1 is installed.
2. Photo's work great but videos won't finish an upload. The first upload gets to 100% and then it just sits there and never does anything else. I have many error messages in the log all say :

"You haven't specified a file to upload"

Thanks in advance for any help rendered but be warned I'm a newbee

Captain
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: littleone on October 13, 2009, 03:54:32 PM
I just installed this mod and converted if from Gallery Pro.  Everything works great for me and anyone who has admin permissions.  However, others are having an issue.  One of my moderators is trying to upload a .gif image but it is giving her an error telling her it is not a valid file extension, yet I can upload it perfectly fine.  What could this be?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: PRaDiUS on October 13, 2009, 04:05:18 PM
@ Nao, TeamSMG, or AnyoneWhoCanHelp

Currently SMG is not listing a permission for Add item in my admin panel.

These are the permissions I have listed in Admin..
------------------------------------
Access Gallery     
Moderate Gallery    
Administrate Gallery    
Access unseen area    
Search in Gallery    
Add User Playlists    
Add User Albums    
Auto-approve User Albums    
View anyone's Gallery profile
----------------------------------------

I went in and added a link that would appear to bring members to the add item page. although the box to browse for item to add is not appearing. I am guessing this is because members still do not have permission "add item". I have looked all through my admin panel and do not see a place to enable Add item anywhere. RC2 installed successfully with no errors. I even uninstalled and reinstalled again a second time to be sure. As of right now my members can view the gallery, but cannot add anything to it.

Am I overlooking something?

Here is the admin view of the "add item page".
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg171.imageshack.us%2Fimg171%2F3990%2Fadditemadminview.th.jpg&hash=c383fc5140441266505841fddac801d09fa94640) (http://img171.imageshack.us/i/additemadminview.jpg/)
http://www.rgxbox.com/images/additem-adminview.jpg (http://www.rgxbox.com/images/additem-adminview.jpg)
This page is correct and shows the field to upload a file with the browse button.

Here is the member view of the "add item page".
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg185.imageshack.us%2Fimg185%2F6854%2Fadditemmemberview.th.jpg&hash=a0592a395d7d9055a8da8f69ecc42d53126237d7) (http://img185.imageshack.us/i/additemmemberview.jpg/)
http://www.rgxbox.com/images/additem-memberview.jpg (http://www.rgxbox.com/images/additem-memberview.jpg)
There is nowhere to upload file on the member view of this same page.

Here is the admin view of the permissions panel.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg263.imageshack.us%2Fimg263%2F6623%2Fadminpermissionsview.th.jpg&hash=bcd71c899de60b6ffbab5dc263dc2e9d577c3efa) (http://img263.imageshack.us/i/adminpermissionsview.jpg/)
http://www.rgxbox.com/images/admin-permissionsview.jpg (http://www.rgxbox.com/images/admin-permissionsview.jpg)
There is no permission visible for "add item".

Please help, thanks in advance.

Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: micky_2556 on October 13, 2009, 04:17:54 PM
Quote from: Nao/Gilles on October 13, 2009, 01:31:13 PM
What character set are you using?

iam using utf8_general_ci character
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 13, 2009, 07:12:51 PM
micky, there's a utf conversion routine around subs-mgallery.php or something. Are you confident enough in php that you could try modifying it to return immediately with the same data (ie untransformed)? This may help. I don't use utf myself...
Also, you could simply enlarge the size of titles in your database. It'll work.

Will look into the other posts tomorrow.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Dragooon on October 14, 2009, 12:51:23 AM
@Pradius - A new kind of permission set was introduced in 2.0, See Gallery > Permissions. And edit the Default permission profile. You can create new profiles for specific albums if you want to.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 14, 2009, 08:33:29 AM
Quote from: Captain351 on October 13, 2009, 03:39:14 PM
Just installed and everything works & looks great but I do have a couple problems

1. The package I installed says it's RC2 but the info page says RC1 is installed.
2. Photo's work great but videos won't finish an upload. The first upload gets to 100% and then it just sits there and never does anything else. I have many error messages in the log all say :

"You haven't specified a file to upload"
The RC1 thing is normal. (I can't believe how many people ask their questions without first reading the last couple of pages in the topic...)
Is FFMpeg installed? (No, it is not needed. Check the smg admin area credits to check for it.)
Did you try uploading with the single upload form? If yes, what's the error message?
Any errors in your forum error log?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: littleone on October 14, 2009, 11:08:23 AM
Quote from: littleone on October 13, 2009, 03:54:32 PM
I just installed this mod and converted if from Gallery Pro.  Everything works great for me and anyone who has admin permissions.  However, others are having an issue.  One of my moderators is trying to upload a .gif image but it is giving her an error telling her it is not a valid file extension, yet I can upload it perfectly fine.  What could this be?

any ideas?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: micky_2556 on October 14, 2009, 11:56:49 AM
Quote from: Nao/Gilles on October 13, 2009, 07:12:51 PM
micky, there's a utf conversion routine around subs-mgallery.php or something. Are you confident enough in php that you could try modifying it to return immediately with the same data (ie untransformed)? This may help. I don't use utf myself...
Also, you could simply enlarge the size of titles in your database. It'll work.

Will look into the other posts tomorrow.

thanks for your help,

but unfortunately iam not  confident in php , but i can try to modify if some one told me what can i do.

and i male the length title of folder 3000 character but is still cut the name of Arabic folder
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 14, 2009, 12:08:15 PM
littleone, nope.

micky, no further ideas either.

Everyone -- I was planning to release RC3 today, it's pretty much finished (I was writing the changelog), but I have to leave my computer for the night, so I probably won't be releasing it until tomorrow. :(
Still, be prepared for a lot of additions and changes :) Which will probably require a RC4 release, hopefully the last one.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: micky_2556 on October 14, 2009, 12:19:31 PM
thanks for your reply and i hope my problem will solve in the next release

thanks for your help

hello,  itry o edit it from database and i make it

it it chang the value of the name of albumes


thanks for your idea and your help

thank you
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Captain351 on October 14, 2009, 02:17:07 PM
Nao/Gilles

QuoteThe RC1 thing is normal. (I can't believe how many people ask their questions without first reading the last couple of pages in the topic...)

I did try to look for that but with so many posts in this topic you don't know whether to start at the beginning middle or end. I just didn't have half a day to read the whole topic. Is there a way to search by topic in this forum the regular search is about useless I can never find anything.

QuoteIs FFMpeg installed? (No, it is not needed. Check the smg admin area credits to check for it.)

Don't know what it is but I can't find it.

QuoteDid you try uploading with the single upload form? If yes, what's the error message?

Yes same error!

"You haven't specified a file to upload"

QuoteAny errors in your forum error log?

I Just noticed that Audio upload also fails with this error message:

"An error happened during the upload process, please try again or contact the administrator."

Pictures & Documents work fine but Video & Audio don't. Same messages single or mass upload.


Thanks for your help.
Captain
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: PRaDiUS on October 14, 2009, 04:19:04 PM
Wow, thats sweet bro! I knew I had to be overlooking something.. guess I'm still used to 1.5.6. Thanks so much for your help Dragooon!

Quote from: Dragooon on October 14, 2009, 12:51:23 AM
@Pradius - A new kind of permission set was introduced in 2.0, See Gallery > Permissions. And edit the Default permission profile. You can create new profiles for specific albums if you want to.

Hey, is there a way that I can make user albums open for other members to add items?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: sshahnawaz on October 15, 2009, 03:26:28 AM
Hi,
No doubt, that the mod is great, but sorry guys if you have already discussed and told its solution before. I have searched this topic but found nothing. My term was "Mass Upload".

The mass upload does not work for me. Any solution? It will be more than fine if you provide me a link for its solution. Thank you.  :)

More Information:
My version of SMF is 1.1.10
I select multiple files to upload and then click the upload button. It just uploads one and then stops, but that one also is not uploaded when I see my albums.  :(
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Ch4ng3r on October 15, 2009, 06:18:21 PM
First , sorry for my bad english , i didn`t write it for very long time , since i finished school... lol... but i hope you will understand me :D

I have problem with smileys , when i post reply to some picture with full reply enabled instead of smiley shows me this text :

<IMG style="PADDING-BOTTOM: 0px; PADDING-LEFT: 3px; PADDING-RIGHT: 3px; PADDING-TOP: 0px" id=smiley_18216_2.gif title="" onresizestart="return false;" alt="" align=bottom src="http://xxx.com/Smileys/xxx/2.gif">

screenshoot in attachment!

There is problem with text also , because when i write some text one below other , it shows me like this :

<P>test1</P>
<P>test2</P>
<P>test3</P>


I have this mods installed on SMF 2.0 RC1.2 :

1. RSS Feed Poster 2.0.1     
2. Ban List 2.0     
3. Wysiwyg Quick Reply RC1 RC1     
4. AjaxChat Integration 3.2.1     
5. SMF Staff Page 1.6     
6. Moderator and Administrator Comment Tags 1.5     
7. Profil Moderator Managment 1.0.0     
8. SMF Media Gallery 2.0 RC2     
9. Avatar On Board RC1 2.1     
10. New Topic Button 1.0     
11. Activity_Bar 1.0.1.1     
12. Todays Birthday RC1 1.1     
13. SimplePortal 2.3     
14. PM to New Members 1.2     
15. Hide SMF Version 1.0.4     
16. Aeva ~ Auto-Embed Video & Audio 6.9.100   

thanks in advance  :)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: micky_2556 on October 15, 2009, 06:26:46 PM
hello ,

i just want to ask about sitemap for the gallery to put all links of gallery on search engine

is there is any thing for that

thank you
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: micky_2556 on October 16, 2009, 08:41:54 AM
hello, i want gust download what i already upload on my galler

and i want to prevent user from any uplod just on groupe that i chouse

but when i log to user permission i dont fount this chouse

any suggest
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: seeker365 on October 16, 2009, 08:54:31 AM
Hi,

I want to convert SMG to a classified system, is it easy?

Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 16, 2009, 09:11:06 AM
Quote from: Captain351 on October 14, 2009, 02:17:07 PM
I did try to look for that but with so many posts in this topic you don't know whether to start at the beginning middle or end. I just didn't have half a day to read the whole topic. Is there a way to search by topic in this forum the regular search is about useless I can never find anything.
Of course there is. You simply need to type the word you're looking for into the search box at the top of the page... It says "this topic" by default. Although simplemachines.org uses a different search system than the one enabled by default for all SMF boards, so it may not be working on a per-topic basis.

Just checked and yes, it works...

QuoteDon't know what it is but I can't find it.
Gallery > Admin. It has a credits area with the installed modules.

QuoteYes same error!
"You haven't specified a file to upload"
This message appears in single upload when:
- you specified an embed URL and don't have the right to embed a file,
- or you specified a file name to upload, but don't have the right to administrate, or moderate, or upload audio, or video, or images, or documents. Meaning you have set wrong permissions.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 16, 2009, 09:52:08 AM
Quote from: PRaDiUS on October 14, 2009, 04:19:04 PM
Hey, is there a way that I can make user albums open for other members to add items?
I'm not sure. Not in SMG1, but SMG2 has permission profiles, you can create one that will give upload access to anyone even inside a user album. However, I have never tested this (the permission stuff was written by Dragooon and I find it too complicated for me to really delve into), so I can't say for sure it will work.

@ssha> Mass upload issues are largely documented. Use Search.

@changer> Is WYSIWYG enabled or disabled? Does it do that in both modes?

@micky> A sitemap...? You realize Google knows perfectly how to skip to any page in the User Albums and homepage links...?

@seeker> Classified? Like, ads? What's it got to do with SMG?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: sshahnawaz on October 16, 2009, 09:53:31 AM
No hope so far?? Uploading multiple files doesn't work for me. Should I stop using the gallery?  :(
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Nao 尚 on October 16, 2009, 11:49:36 AM
Quote from: sshahnawaz on October 16, 2009, 09:53:31 AM
No hope so far?? Uploading multiple files doesn't work for me. Should I stop using the gallery?  :(
You can disable mass upload. It's just an extra feature, not like the whole thing is based on it...
You can also try to fix it. By reading the documentation....... Don't expect me to do that for you, meh.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: seeker365 on October 16, 2009, 12:13:21 PM
Quote from: Nao/Gilles on October 16, 2009, 09:52:08 AM
@seeker> Classified? Like, ads? What's it got to do with SMG?

yeah, ads. Maybe 'gallery'/'album' can be abtracted to any model type, such as 'job', 'personal', 'service', or any product, etc. ,
since there are unlimited categories, customized fields for them; these are mainly different in displaying format only. is it possible?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: sshahnawaz on October 16, 2009, 12:58:23 PM
Quote from: Nao/Gilles on October 16, 2009, 11:49:36 AM
You can disable mass upload. It's just an extra feature, not like the whole thing is based on it...
You can also try to fix it. By reading the documentation....... Don't expect me to do that for you, meh.

I can expect one thing from you I guess.  :P  Just provide me a link towards the documentation you are talking about. I have searched a lot for it, but there is no documentation or FAQ for it. Sorry.  :(
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Powerbob on October 16, 2009, 01:16:50 PM
It's a gallery for gods sake! and a damn good one to boot, all this winging. YUK
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Ch4ng3r on October 16, 2009, 01:35:13 PM
Quote from: Nao/Gilles on October 16, 2009, 09:52:08 AM
@changer> Is WYSIWYG enabled or disabled? Does it do that in both modes?
When i press button Toggle View , then write (without WYSIWYG) it works fine...
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: Kindred on October 16, 2009, 01:36:37 PM
Quote from: seeker365 on October 16, 2009, 12:13:21 PM
Quote from: Nao/Gilles on October 16, 2009, 09:52:08 AM
@seeker> Classified? Like, ads? What's it got to do with SMG?

yeah, ads. Maybe 'gallery'/'album' can be abtracted to any model type, such as 'job', 'personal', 'service', or any product, etc. ,
since there are unlimited categories, customized fields for them; these are mainly different in displaying format only. is it possible?

@Seeker...    use SMF Classifieds if you want classifieds. This is mod a media gallery system.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC2 out! (October 3)
Post by: micky_2556 on October 16, 2009, 01:44:19 PM
hello and what about make gust download any thaing they want
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: SMGTeam on October 17, 2009, 08:36:35 AM
I know I'll never release it if I keep postponing it because of obscure bug reports or feature requests, so here it is. Hopefully the last RC before the final release. --Nao

Version 2.0 RC3                                  October 17, 2009
-----------------------------------------------------------------

Regular, cool additions/fixes:

+ Box-type thumbnails (in album pages, for instance) now launch a lightbox-powered preview when clicked,
  instead of leading to the item page. Click the item's title instead to be led to the item page, or click
  on the "More details" link when the preview shows up, next to the item's full title.
+ Turned the Document files restriction text field into an actual list of allowed doc file extensions,
  which is much more logical and allows you to easily add any non-embeddable (download only) filetype to SMG.
+ Got rid of all the code that added child albums to custom fields. Instead, always assume
  a child album inherits custom fields from all of its parents (whatever their level).
+ Added new admin setting, Album Columns, which allows you to choose the number of
  albums you want to show per row in album lists. Defaults to 1, but 2 or 3 are just fine too.
* The "Show sub-albums on index" feature now works on all album lists. Disabled, it will show how many
  children there are. Enabled, it will list at most 10 children and then the number of remaining children.
* Don't show a folder icon next to sub-albums, instead show the number of items in the sub-albums
* Don't list sub-album children, instead simply point out their existence with a (+) sign
  that indicates there are more albums within a particular child
+ Added support for the Foxy! add-on's new feature -- RSS feeds for new items/comments in specific items,
  specific albums, specific users or the entire gallery -- by adding RSS icons in several areas
! Yet another tentative fix for some mod_security related issues

Small change, aka Pocket money:

! Fixed (hopefully) a minor bug in getAlbumParents()
* Simplified the album list loading process a great deal
* Profile pages now use getAlbums() like everything else
! Some fixes in the moderation panel's approve functions
! Don't show the previous/next bar in item pages if the album can't be browsed
! More big icon cleanup
* Show whether the album is password-protected when browsing it
! Don't waste time building a linktree if the page is in XML format...
! Added clearfix class to SMG's stylesheet, as it's no longer included in SMF2's Curve theme
! Fixed broken layout with Curve theme in the Unseen area
* Replaced locked/unlocked icons with smaller versions to fit the new smaller size for children albums
* Don't show the page index in search results if there's only one page of results
* Changed mg_large class to be a bit more pleasant to the eye
! Improved smg_cut_string() to deal with BBCode-enabled texts. I'm now parsing them inside
  the function, and the resulting html tags are excluded from the length calculations.
* Right-aligned icons in album lists to make them look at bit less messy
* Many minor improvements, mainly to the layout


Also available :

Foxy! add-on for SMG v1.10 (October 17, 2009)
-----------------------------------------------------------------

- New feature: finally added support for RSS feeds in SMG. You can retrieve
               10-item feeds for pretty much anything you could want:
  * Latest items - in user profiles, albums, album with children (this is the icon next
                   to the "sub-albums" header in album pages), or the entire gallery.
  * Latest comments - in items, user profiles, albums, album with children, or the entire gallery.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Nao 尚 on October 17, 2009, 08:45:24 AM
I'm exhausted... Tough couple of weeks on SMG!

@ssha> readme.txt, changelog.txt, and that pretty useless message that appears in bold after you finish installing the mod... Y'know. They all address your problem. And that's within the SMG package only. There are plenty of messages here or over at smf-media.com that discuss it. Am I supposed to do everything for you? Would you like me to install the mod on your server, clean up your messed up files and make some tea?

@micky> Ever heard of permissions in the admin area? (And English dictionaries, while we're at it?)

@changer> So it's a WYSIWYG issue (again). Hmm... Can anyone else confirm this? (On item comments.)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Nao 尚 on October 17, 2009, 09:10:52 AM
Silently updated RC3 with a RSS feed link I forgot to add to the homepage.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: sshahnawaz on October 17, 2009, 09:21:59 AM
Such a stupid question it was!!  >:( Thanks for your kind answer Nao... I can see.  :)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Nao 尚 on October 17, 2009, 09:34:52 AM
Lol, now "kind answer" isn't exactly what qualifies my replies..... :P
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Tiribulus on October 17, 2009, 09:37:00 AM
Quote from: Nao/Gilles on October 17, 2009, 08:45:24 AM
<<< and make some tea? >>>

Just make sure you don't spill any on the saucers huh pal? That is such a downer.

I'm debating on whether I should give 2.0 a shot right now. Not that I don't have the utmost confidence in your guys work, but 1.5.6 has been working beautifully. I'll probably do it, the curiosity is gettin me.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Nao 尚 on October 17, 2009, 10:21:33 AM
SMG 1.5.6 is buggy here and there.
SMG 2 also has its share of bugs, but as you see I'm taking care of them as they are discovered.
I'd strongly recommend upgrading to SMG 2 if you aren't the kind of user who mods SMG after installing it. (In which case you may want for the final version which I'm still planning to release later this month, if no other issues are discovered.)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Tiribulus on October 17, 2009, 10:31:00 AM
Aside from some minor surgery I had to do while UNinstalling 1.5.6, so far so good. Installed fine, no manual edits which is a miracle with as many mods as I have, no errors and the new image navigation is beeyooteefull. That alone made it worth the upgrade.

I'll fish around some more later today when I get some more time. Good job dudes.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Nao 尚 on October 17, 2009, 12:21:14 PM
Eheh.
And I'm particularly happy myself with the new "visual" changes I made to RC3.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Dramber on October 17, 2009, 01:13:30 PM
Installed RC3 with no issues at all. I love the new visual tweaks. A beautiful job once again Nao. :D
I have one strange thing though. When I click on User albums it doesn't show any of the user albums in the list.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.orderoftwilight.com%2Fsmf%2FMGalleryItem.php%3Fid%3D1477&hash=f6e9cc960508ed9f9a7492093d32682cd32467a8)

orderoftwilight.com
I am using:
SMF 1.1.10
TinyPortal v1.0 beta 4
Stars And Badges 2.1
Repeating Calendar Events v1.2.6   
View Any Topic Permission Mod 1.9
Hack's Park Color Picker 1.0
Excellent Smileys 1.0
Stop Spammer    2.2 
Aeva ~ Auto-Embed Video & Audio    6.9.99 
cbi, 1.0a
WoW Character Profiles    1.9.2
Add Honey Pot to Track IP 1.1     
Google Member Map 1.0 beta 4 
DisableTemplateEval 1.1     
Redirection Boards 2.01
Move Old Topics 1.0 
SMF Arcade 2.0.18 
Select All And Copy 'Code' To Clipboard [BETA] 1.3 
SMF Media Gallery 2.0 RC3

I can still access the albums from direct links. Didn't have this issue with RC2 and frankly I'm stumped. I created new albums to see if they would show up but they didn't.
Any thoughts or ideas?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Dramber on October 17, 2009, 01:22:43 PM
*Facepalm*
Yes I am a noob, I found the albums at the bottom of the page:
http://www.orderoftwilight.com/smf/index.php?action=mgallery;sa=vua (http://www.orderoftwilight.com/smf/index.php?action=mgallery;sa=vua) Scroll down to see what I mean.

I'll dig a bit to see if I can find why it is placing them way down there but I am not an expert at this kind of thing. Any ideas on where to look would be very helpful.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Nao 尚 on October 17, 2009, 01:47:43 PM
I guess the sidebar on the left is shown via a <div>. This would explain why. SMG2 uses "clear: both" styles here and there, in order to be compatible with the new Curve theme. They force a "carriage return" if I may say, but if a div is already there on the left or right, the page flow will skip to below the div.

Your solution is to replace the div with a table, or disable the sidebar for gallery pages.
I guess the sidebar is from TinyPortal, right? Bloc said on the beta boards that he's worried about how Curve breaks TP. I guess he'll work it out soon enough. Or you can also try another portal system.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Dramber on October 17, 2009, 02:00:56 PM
Thank you sir. You have given me a couple of ideas on how to fix this.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Dramber on October 17, 2009, 02:05:53 PM
And that will work.
Hiding the panels while in the gallery area did the trick. This will be acceptable for this site.

Thanks again for the help.  8)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Ch4ng3r on October 17, 2009, 02:22:05 PM
Quote from: Nao/Gilles on October 17, 2009, 08:45:24 AM
@changer> So it's a WYSIWYG issue (again). Hmm... Can anyone else confirm this? (On item comments.)
Updated to RC3 , same thing when I enable WYSIWYG... :(
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Akyhne on October 17, 2009, 02:23:47 PM
I'm just moving to SMG2 from the old 1.5.6. Still after a few hours of trying, I still don't understand Dragooons permission system. people can't post in General Albums. Hmm, off to work now.

Nao: Was there something you wanted me to test regarding FFMPEG? Can't remember anymore.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Ch4ng3r on October 17, 2009, 02:35:12 PM
Quote from: Akyhne on October 17, 2009, 02:23:47 PM
I'm just moving to SMG2 from the old 1.5.6. Still after a few hours of trying, I still don't understand Dragooons permission system. people can't post in General Albums. Hmm, off to work now.

Nao: Was there something you wanted me to test regarding FFMPEG? Can't remember anymore.
You must go to Gallery > Permissions > Default , Then edit permissions for public albums... :)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: oistarbwoy on October 17, 2009, 02:46:00 PM
wow i LOVE the new rc3... i really do especially the visual things.  :D

however i have noticed that as my galleries are used to upload songs the new preview type thing doesnt like audio tracks it just says '...loading' indefinately and it means the only way to get to an audio tracks more details page is by going next or previous once you've got to a pictures more details page. As my website is a music one i can see that its inevitably going to drive me and my users slowly nuts.

secondly the player for audio is a little oversized is it possible to change the size so you have just the controls strip showing for audio. and a bigger size for video files?

lastly and less importantly updating my smg from 1.5.6 stopped my 'profile songs' working, i think its something to do with them using the same player (jw) and version. as before the old smg had an older jw so they both worked fine. the profile songs mod will apparently have smg support in the next week or so whatever that means precisely i guess we will see and find out. but i was wondering if that was something you could have as a feature on smg a 'click to make profile song'  option

anyway other then those little things i think the new version is brilliant and its an awesome addition to my site so thank you  :)

Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Ch4ng3r on October 17, 2009, 04:40:05 PM
I installed new smf 2.0 forum on my localhost , with only SMG RC3 , and there is same WYSIWYG bug... Can anyone confirm this bug?

Go to gallery , select one picture , post new reply with WYSIWYG Enabled  ! In new reply put some smileys (you must see smileys inside reply box when you insert it) then post. If you can`t see smileys , and you get some strange text instead of smileys , confirm bug!
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: 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.

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.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Nao 尚 on October 17, 2009, 07:06:56 PM
@changer> Well apparently you're the only one...? (Or maybe no one cared to test?)
@akyhne> I don't remember either ;)
@oistar> I completely forgot about that. I have a music site, too, and I thought I should prevent previewing these, but then I remembered I had added support for external images and it was complicated to get a proper $is_image variable... And I skipped to something else and forgot the rest. I committed my change in revision 1119, I'll try to release an update tomorrow. (RC 3.1?)
Audio player size? I think it's just fine...
What is "click to make a profile song"?
@tibiulus> I don't test on Linux. Also, check if there's a dropdown menu on the browse window, maybe it'll allow you to choose another extension set.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Captain351 on October 17, 2009, 07:28:52 PM
QuoteQuote from: Captain351 on October 14, 2009, 02:17:07 PM

    I did try to look for that but with so many posts in this topic you don't know whether to start at the beginning middle or end. I just didn't have half a day to read the whole topic. Is there a way to search by topic in this forum the regular search is about useless I can never find anything.

Of course there is. You simply need to type the word you're looking for into the search box at the top of the page... It says "this topic" by default. Although simplemachines.org uses a different search system than the one enabled by default for all SMF boards, so it may not be working on a per-topic basis.

Just checked and yes, it works...

I Swear to God that I couldn't find that 2 days ago. I installed that mod on my own board and couldn't understand why they didn't have it on their own. Your making me question my own sanity.  :-X

QuoteQuote

    Don't know what it is but I can't find it.

Gallery > Admin. It has a credits area with the installed modules.

I guess I should have said I can't find it there. If it's supposed to be under credits it's not there.
Quote

QuoteYes same error!
    "You haven't specified a file to upload"

This message appears in single upload when:
- you specified an embed URL and don't have the right to embed a file,
- or you specified a file name to upload, but don't have the right to administrate, or moderate, or upload audio, or video, or images, or documents. Meaning you have set wrong permissions.

I wasn't using an URL I was using single and multiple upload both with the same effect.

Permissions shouldn't be the issue I was logged in as the Administrator There isn't even anyway to set permissions for the administrator he automatically has all permissions. but just to make sure I gave all users all 17 permissions and it still does the same thing whether logged in as an administrator a moderator or a regular user.

I have spent hours looking at every option I can find I don't think I've overlooked anything.

Captain
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Tiribulus on October 17, 2009, 09:43:43 PM
Quote from: Nao/Gilles on October 17, 2009, 07:06:56 PM
<<< @tibiulus> I don't test on Linux. Also, check if there's a dropdown menu on the browse window, maybe it'll allow you to choose another extension set.

You're gonna just love this one Buddy. I know Linux is very case sensitive, but this threw me a curve. It turned out to be only those files. The extension was in caps. .JPG    changing the extension to lowercase .jpg made them show up. Might be useful for somebody else if it comes up. Obviously nothing to do with the mod.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Nao 尚 on October 18, 2009, 03:42:22 AM
@Tiribulus> lol...
@captain> you know I can't debug with a magical FTP-upload spirit and a URL retrieving crystal ball you know?

(At some point I'll be asking for actual $$ for tech support for individual users. I spend way too much time helping out people who have crappy servers or crappy SMF installs and could do well by simply moving their site or reinstalling it.)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Ch4ng3r on October 18, 2009, 06:14:59 AM
Quote from: Nao/Gilles on October 17, 2009, 07:06:56 PM
@changer> Well apparently you're the only one...? (Or maybe no one cared to test?)
And I'm not guilty because the authors don`t care about the mistakes... I installed new forum on xampp just to see is there any bug... Well , I think that I can fix this bug alone... tnx for nothing...  :(
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Nao 尚 on October 18, 2009, 06:27:05 AM
"Thanks for nothing"?
I spent at least an hour trying to figure out your problem...

Just don't use Wysiwyg... I don't see the point of Wysiwyg.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Ch4ng3r on October 18, 2009, 06:31:48 AM
because i use WYSIWYG on forum! And I can`t disable it just for gallery... it`s easier for new users to post when is WYSIWYG enabled...
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Nao 尚 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.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Ch4ng3r on October 18, 2009, 08:24:56 AM
I test it on xampp with IE8...

http://www.apachefriends.org/en/xampp-windows.html#641

doesn`t work...
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Ch4ng3r on October 18, 2009, 09:26:41 AM
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
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Ch4ng3r on October 18, 2009, 09:34:36 AM
you must post like this... (attachment) , you must see smileys in reply box!!  :)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: oistarbwoy on October 18, 2009, 01:26:23 PM
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.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Nao 尚 on October 18, 2009, 02:18:51 PM
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... &lt;IMG style=&quot;PADDING-BOTTOM: 0px; PADDING-LEFT: 3px; PADDING-RIGHT: 3px; PADDING-TOP: 0px&quot; id=smiley_10729_unsure.gif title=unsure onresizestart=&quot;return false;&quot; alt=&quot;&quot; align=bottom src=&quot;http://noisen.com/Smileys/cyna/unsure.gif&quot;&gt;

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

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??
-&gt; I'm telling you it works... And I'm in Wysiwyg mode! :intello:


I'm currently at a loss... Any ideas around here?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: 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?
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! :)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Ch4ng3r on October 18, 2009, 03:06:33 PM
@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...  :-\
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Nao 尚 on October 18, 2009, 03:36:23 PM
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.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Nao 尚 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...

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. :)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Ch4ng3r on October 18, 2009, 04:56:37 PM
@ 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.  :)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: SMGTeam on October 18, 2009, 05:00:53 PM
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
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Ch4ng3r on October 18, 2009, 05:11:41 PM
my global $source variable is ok... ill update gallery now... be awake!!! :D
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Ch4ng3r on October 18, 2009, 05:15:24 PM
it works fine now...  thank you very much! :) :) :)

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

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi38.tinypic.com%2F2am54y.png&hash=e73b868ec164d86ddf5cb40022f77f1aea392622)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: vortodox on October 18, 2009, 05:31:43 PM
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!
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 18, 2009, 05:56:55 PM
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.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Annabel on October 18, 2009, 06:58:45 PM
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! :)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Nao 尚 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...

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?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 19, 2009, 03:14:57 AM
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 ;)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: leighlife on October 19, 2009, 06:47:20 AM
[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'], '
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 19, 2009, 07:22:38 AM
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.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Annabel on October 19, 2009, 08:10:19 AM
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! :)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 19, 2009, 08:35:30 AM
I'm a bit disappointed... It was an easy fix in the template.
I'll still upload a fixed version, this should fix all errors with the user albums page ;)

@annabel> I don't get it... Didn't you want to move the custom fields out of the details section and into the description section? I thought that's what you wanted...
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 19, 2009, 08:39:11 AM
Done. An updated RC3+ is online.
Don't worry though, I'm not adding new features so as soon as RC3+ is found to be entirely bug-free, I'll be releasing it SMG 2.0 Final.

Note to myself: RC3+ was downloaded 35 times before the counter was reset. To these 35 users: you can simply update the MGallery.template.php file from the new package ;) Or just edit out the two </td> tags at lines 986 and 1004. That's the only change, really.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: madsen81 on October 19, 2009, 08:44:14 AM
Hey there. Loving this mod. Just got some problems and questions.

The automatic rescaling of pictures dont seem to work. Any suggestions?

Icons dont rescale. If i choose an icon for my album, for example a picture that is 640x480 the icon get that big. Do i have to resize a picture and then choose that as icon? Because that's gonna be a big issue when users want to add icons and dont know that they have to resize the pic first.

Edit: Just noticed something else. Mass upload dont work in Internet explorer. The window where to select pics dont show up.

Edit: I cant upload images bigger than 1000kb even if the max size is set to 5000kb in settings. Why?

Edit: I give up. I have been playing around for a bit now and found out that even if max size is set to 100kb ican still upload files larger than that. The addon is great but not working verry well for me. /uninstalled :-[
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 19, 2009, 10:32:20 AM
Quote from: madsen81 on October 19, 2009, 08:44:14 AM
The automatic rescaling of pictures dont seem to work. Any suggestions?
Uh?

QuoteIcons dont rescale. If i choose an icon for my album, for example a picture that is 640x480 the icon get that big. Do i have to resize a picture and then choose that as icon?
No you don't. Are you talking about album icons when browsing album lists, or browsing inside the album itself? First case -> it should be a small thumbnail. Second case -> it will be as big as you allow it to be in the admin settings.

QuoteEdit: Just noticed something else. Mass upload dont work in Internet explorer. The window where to select pics dont show up.
1- Anyone still using IE doesn't deserve to use Mass Upload anyway.
2- It still should work... And I'm sure I'd have heard feedback about this earlier if it weren't the case.

QuoteEdit: I cant upload images bigger than 1000kb even if the max size is set to 5000kb in settings. Why?
You can or you cannot?

QuoteEdit: I give up. I have been playing around for a bit now and found out that even if max size is set to 100kb ican still upload files larger than that. The addon is great but not working verry well for me. /uninstalled :-[
If you set a max size of 100KB, you will get a file that is at most 100KB. SMG will try to resize bigger items to fit your max size. If it works, then it'll use that.

Other than that, if you don't like mods to try and second guess what you're trying to do, then I can't second guess what you would like them to second guess you for. Or something like that.

Another beautiful, very moving case of a first time poster who falls in love with a mod only to fail reading the documentation and uninstall it an hour later. I wouldn't want to be his first wife.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: jmil on October 19, 2009, 10:37:34 AM
Finally getting to do the upgrade and just wanted to verify the instructions.

Do you "UNINSTALL" 1.5.4 first, then reinstall the new 2.0 RC3 for a SMF 1.1.10?

Will I need to Parse the files again?

I am looking forward to this update!

Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: madsen81 on October 19, 2009, 11:02:57 AM
First time poster = first time user? Another reason not to support the mod. After using the mod for months and finally upgrading only to find more bugs than it started with im not going to waste my time trying to get it to work (again). Mass upload not working, scaling not working, and size limit not working. I'm sure it's only me that are having trouble with it but fact remains that i AM having trouble and need my forum to work. So ill just make new boards for posting images instead. And btw, i did say great mod so no use beeing rude.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3 out! (October 17)
Post by: Nao 尚 on October 19, 2009, 11:07:38 AM
@madsen> So you've been using the mod "for months" and you've never used mass upload? Yeah, sure... As for being in love with it, you sure are quick to dismiss it as crap.
As I always say about mass upload: I don't know what it is with you people who think without mass upload SMG is crap -- it's like saying that SMF is worthless if the quick edit option is disabled.
And me, "rude"? I did answer ALL of your concerns, didn't I? That's the most polite I could ever be to a message that ends with "I'm uninstalling this".
Apparently you're just here to troll, though. I see your other message is to the SMF team itself, where you ended your blurb with the same joke: "Uninstalling this".
http://www.simplemachines.org/community/index.php?topic=343278.msg2317758#msg2317758

@jmil> Yes, uninstall first. For a 1.5.x upgrade, it is mandatory, so many things have changed. Your pictures will be kept, of course.

Quote from: Captain351 on October 17, 2009, 07:28:52 PM
I have spent hours looking at every option I can find I don't think I've overlooked anything.
Yes you did. I went into your admin area, SMG > Settings and look at upload_max_filesize. It's set to 2M.
So, yes, you didn't read the descriptions, as the one for this setting says, "This server-side variable limits upload sizes. You can set it via a php.ini file, see details on the right". And indeed the "2M" thing is clickable and explains that it's limited to 2 megabytes per file.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: probinson77 on October 19, 2009, 11:14:37 AM
Well, I hate to be the bearer of bad news, but the change log for RC3+ says that the incompatibility with the WYSIWYG Quick Reply mod has been fixed, but that's not entirely true.  I was all excited when I saw that, because much to the disappointment of my users, I've had to disable the WYSIWYG Quick Reply because of this incompatibility.

So, in my test environment on a new, clean SMF 2.0 RC1.2 installation, I installed the very latest Gallery 2.0 RC3+.  I then created a single album and uploaded a single file.  I started a thread and posted 2 posts, both with just [smg id=1].  This worked as expected with both posts showing a clickable thumbnail of the image.

I then installed WYSIWYG Quick Reply RC1 and went back to that thread.  Now, the first post in the thread showed the text [smg id=1] while the second post showed the thumbnail as expected.

So it looks like it's "kinda" fixed, but not completely.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 19, 2009, 11:30:24 AM
You mean my fix works on a clean environment, but not on your specific install?

Then you'll have to send me admin+ftp access so I can look into it. Although I'd then say it's an incompatibility with yet another mod... :-/

PS: my fix for WQR is not a "complete" fix in the sense that it only tries not to leave smg tags untouched in some situations that WQR messes with, and I don't see of any way to completely make WQR live with SMG. The only absolutely way to do it would be to set a specific variable that lets SMG know the smg_disable call should not be taken into account. I don't see how to make SMG bend to WQR, so I'm afraid it'll have to be the other way around -- meaning Antechinus will have to enter the game and check the problem out.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: madsen81 on October 19, 2009, 11:31:09 AM
Sigh... I have had this problem since the first time i installed it. I solved it by rescaling the pics before uploading. I havent been moderating my forum for a while and began to do so just yesterday. Upgrading the forum to the new realease and with that all the mods. Beeing tired of rescaling all the pics before uploading i thought i would try to actually sign up here and state my problem. While waiting for answer i played around some more with the mod only to find out that restrictions and other functions dont work according to me. Setting a max size at 100kb or 5000kb didnt make a difference. I could still upload with the problem that no matter what restriction all files (images) bigger that 1000kb would not be uploaded or rescaled.
But never mind.
"As for being in love with it, you sure are quick to dismiss it as crap." Yep, and you sure are quick to jump to conclussions.
"And me, "rude"? I did answer ALL of your concerns, didn't I?" Draging my wife (or atleast mention it) isn't rude?

Well, im sorry for beeing a "first time poster" trolling about. And about the post to the SMF team, beeing logged in as administrator and cant do anything cus of "maintenance mode" is just something that should not be able to happen. With bugs like that im going elsewhere. I might be fast at giving up, but my users still deserve a working forum.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: probinson77 on October 19, 2009, 11:37:30 AM
Quote from: Nao/Gilles on October 19, 2009, 11:30:24 AM
You mean my fix works on a clean environment, but not on your specific install?

No, the fix does not work on a clean environment.  In a fresh install of SMF 2.0 RC1.2, on the Default theme with only the WYSIWYG Quick Reply and SMG installed, the problem still exists.

For some reason, the FIRST time the SMG tag shows up on a page, it does not show the thumbnail but shows the tag instead.  On every consecutive post after that, it works fine.

Quote from: Nao/Gilles on October 19, 2009, 11:30:24 AM
PS: my fix for WQR is not a "complete" fix in the sense that it only tries not to leave smg tags untouched in some situations that WQR messes with, and I don't see of any way to completely make WQR live with SMG. The only absolutely way to do it would be to set a specific variable that lets SMG know the smg_disable call should not be taken into account. I don't see how to make SMG bend to WQR, so I'm afraid it'll have to be the other way around -- meaning Antechinus will have to enter the game and check the problem out.

I guess I'm wondering what broke it in the first place?  I used SMG and WQR together for quite a while before it broke.  I'll go back and look through the my posts and see if I can pinpoint when the incompatibility showed up.

Thanks for helping with this.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: probinson77 on October 19, 2009, 11:51:48 AM
I went back and looked through this thread to see when this incompatibility with SMG appeared on my forum, and it was when I upgraded from SMG 1.5.6 to 2.0b4;
http://www.simplemachines.org/community/index.php?topic=260821.msg2237152#msg2237152

So, out of curiosity, I just set up another clean install of SMF 2.0 RC1.2 and installed SMG 1.5.6, created a single album and uploaded a single picture, created a new topic with 2 posts, both with just [smg id=1] and it worked as expected.

I then installed WQR RC1, and when I went back to the thread, it STILL worked as expected.  So the 1.5.6 smg tags can exist together happily with WQR, but the 2.0 smg tags don't like WQR for some reason.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: meehan09 on October 19, 2009, 02:01:09 PM
Since i have installed this via packages iam getting thease errors in error log admin cp


http://www.exoticforums.co.uk//index.php?action=profile;u=1
Undefined index: mgal_total_items
File: /home/reptiles/public_html/Sources/Load.php
Line: 1401

----------------------------------------------------

http://www.exoticforums.co.uk//index.php?action=profile;u=1
Undefined index: mgal_total_comments
File: /home/reptiles/public_html/Sources/Load.php
Line: 1402

----------------------------------------------------


Hope you can help me solve these errors, thanks

Paul
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Annabel on October 19, 2009, 05:26:47 PM
Quote from: Nao/Gilles on October 19, 2009, 08:35:30 AM
@annabel> I don't get it... Didn't you want to move the custom fields out of the details section and into the description section? I thought that's what you wanted...
No, I don't want to just change the position of it on the same page, if that's what you're asking. I want to move the fields from the "post picture" page to the "post album" page. If you know what I mean? :)
Like I said, from index.php?action=mgallery;sa=post;album=# to index.php?action=mgallery;area=mya;sa=add
That's why I moved a piece of code from MGallery.php to MGallery-Sub.php, because it did exactly what I wanted, but then the fields stopped working.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 19, 2009, 05:49:46 PM
@probinson77> Not surprising. v1.5.6 didn't support Wysiwyg, I believe. If you try adding manually a smg tag in the post box, then click on the "A" button to switch to WYSIWYG, it will decode the item instead of still showing the tag itself. Then you switch back to non-Wys and you get garbage instead of the tag...

@annabel> Hmm... Custom fields are for use with items, not albums, IIRC. They're associated with albums, but only in whether they appear or not on an item from within a particular album.

@meehan> It's been a long time since I haven't seen that bug... I don't remember that. Use a search engine.

@madsen> I thought my wife joke was pretty neat. I don't care whether you have a love life or not, you're just a boring accountant when you overreact to my comments. Which themselves were triggered by your obvious trolling. So, go ahead and try something else, I don't have time to waste on you.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Captain351 on October 19, 2009, 09:51:34 PM
QuoteQuote from: Captain351 on October 17, 2009, 07:28:52 PM

    I have spent hours looking at every option I can find I don't think I've overlooked anything.

Yes you did. I went into your admin area, SMG > Settings and look at upload_max_filesize. It's set to 2M.
So, yes, you didn't read the descriptions, as the one for this setting says, "This server-side variable limits upload sizes. You can set it via a php.ini file, see details on the right". And indeed the "2M" thing is clickable and explains that it's limited to 2 megabytes per file.

OK yes I didn't fix those. The reason was not so much I didn't do it but more that I didn't know what the hell it was talking about. The big problem was that I didn't have a php.ini I called my Web Provider to find out where it was and they explained to me why I couldn't find it. After I got one it was pretty easy to fix. Sorry Newbie at work! Reading documentation isn't always the answer because it didn't help me this time.

I also had the Upper Case problem my videos were named with an uppercase .AVI changing to .avi solved that.

Single and Mass Upload both work now but unfortunately I can't play my videos they just sit there forever with "Loading" spinning away. There is no error in the event log. So close!

Did I miss something else. Any ideas?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Teal on October 19, 2009, 11:01:56 PM
I'm getting a few errors and could use a little help.

Quote2: Invalid argument supplied for foreach()
File: /home/topdeeni/public_html/Themes/default/languages/MGallery.english.php (admin_above sub template - eval?)
Line: 27

Quote8: Undefined index: areas
File: /home/topdeeni/public_html/Themes/default/languages/MGallery.english.php (admin_above sub template - eval?)
Line: 27

Quote8: Undefined index: title
File: /home/topdeeni/public_html/Themes/default/languages/MGallery.english.php (admin_above sub template - eval?)
Line: 21

Could someone give me a little insight on what may be the underlying issue?

Thanks in advance!
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: PalmBeachPreps on October 20, 2009, 01:22:21 AM
I'm getting this error when I attempt to install:
Quote6.   Execute Modification   ./Sources/Load.php   Test failed
   1.   Replace   ./Sources/Load.php   Test successful
   2.   Replace   ./Sources/Load.php   Test failed
So, I attempted to use the package parser and it says that it's not compatible with 2.0 RC1.2.

Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 20, 2009, 01:40:00 AM
@captain> you have a problem in that your urls add ";upcook=..." to them, I dunno why. Use .flv instead anyway, .avi is very scarcely supported on the web.

@palm> yes it is.

@teal> eval error. Not related to SMG.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: PalmBeachPreps on October 20, 2009, 02:22:01 AM
Nao, I know that it is because I have it installed already.  The problem is that after attempting to upgrade, I got the error and attempted to use the package parser in order to manually edit the files that failed and then received the following error:
QuoteSorry, but this modification does not appear to be compatible with the selected version.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: adalon on October 20, 2009, 03:58:24 AM
For some reason this mod is giving the wrong direct link.

Here is what the gallery displays as the direct link.
website.com/MGalleryItem.php?id=8


This is what it should look like.
website.com/index.php?action=mgallery;sa=media;id=8

Is there any way to change this?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Dragooon on October 20, 2009, 04:12:56 AM
Quote from: adalon on October 20, 2009, 03:58:24 AM
For some reason this mod is giving the wrong direct link.

Here is what the gallery displays as the direct link.
website.com/MGalleryItem.php?id=8


This is what it should look like.
website.com/index.php?action=mgallery;sa=media;id=8

Is there any way to change this?
That is perfectly fine? MGalleryItem.php should be extracted on the base of your forum.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: adalon on October 20, 2009, 04:21:06 AM
Quote from: Dragooon on October 20, 2009, 04:12:56 AM
Quote from: adalon on October 20, 2009, 03:58:24 AM
For some reason this mod is giving the wrong direct link.

Here is what the gallery displays as the direct link.
website.com/MGalleryItem.php?id=8


This is what it should look like.
website.com/index.php?action=mgallery;sa=media;id=8

Is there any way to change this?
That is perfectly fine? MGalleryItem.php should be extracted on the base of your forum.


But when I use the MgalleryItem.php I'm getting a 404 error ???
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 20, 2009, 04:29:16 AM
404 are you sure?
Check the root of your forum. If the file is there, make sure to chmod it to 0644.

Quote from: PalmBeachPreps on October 20, 2009, 02:22:01 AM
Nao, I know that it is because I have it installed already.
Again... Have you seen anyone here complain that it isn't RC1.2 compatible? Many people use that version.

QuoteThe problem is that after attempting to upgrade, I got the error and attempted to use the package parser in order to manually edit the files that failed and then received the following error:
QuoteSorry, but this modification does not appear to be compatible with the selected version.
In SMF2, I think you can also force installation of a package for your version. It's in the additional settings or something.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: meehan09 on October 20, 2009, 05:45:48 AM
Since i have installed this via packages iam getting thease errors in error log admin cp


http://www.exoticforums.co.uk//index.php?action=profile;u=1
Undefined index: mgal_total_items
File: /home/reptiles/public_html/Sources/Load.php
Line: 1401

----------------------------------------------------

http://www.exoticforums.co.uk//index.php?action=profile;u=1
Undefined index: mgal_total_comments
File: /home/reptiles/public_html/Sources/Load.php
Line: 1402

----------------------------------------------------


Hope you can help me solve these errors, thanks

Paul
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: petesky on October 20, 2009, 06:15:13 AM
Hi !

I just installed the 2.0 RC3+ but now the link GALLERY is missing in top template ?! Where can i fix this ?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 20, 2009, 06:16:42 AM
Add it manually to your theme's index.template.php...

@meehan> http://smf-media.com/community/index.php?topic=502.msg10099#msg10099
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: petesky on October 20, 2009, 06:26:21 AM
I didn't find anything on your posted link ?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: leighlife on October 20, 2009, 06:43:18 AM
* changing album ordering seems faulty: at times it works correctly, at times the resulting order is wrong.  I haven't found any pattern to it but I'm going to see if I can find anything later.  Apparently this did work OK in at least one previous beta/RC, but of course I've no idea which  :(

* rating an item 0 leaves the ajax update indictor 'spinning'.  I changed line 712 in MGallery.php to test isset($_POST['rating']) rather than !empty() and that seems to fix it
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 20, 2009, 07:14:16 AM
@petesky, should I read the rest of the topic for you?

@leighlife> ordering, ordering... Where? Examples?
Thanks for the tip on rating.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: meehan09 on October 20, 2009, 07:17:14 AM
@ Nao, Iam unable to find the problem on the link.

I seen one edit in profile.php witch i looked for and is already in place?

Hope you can help me resolve thease errors from admin cp error log?

Ive attachted my profile.php incase, thanks
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: meehan09 on October 20, 2009, 07:27:14 AM
Also my load.php is below!

Hope you can help edit these so these errors stop, has they seem to be filling up error logs quickly.


thanks in advance, Paul
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: petesky on October 20, 2009, 07:29:33 AM
Sorry you're right - my fault. But i'm not good enough to mod things so where exactly in this file do i have to change ?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: leighlife on October 20, 2009, 07:40:33 AM
Quote from: Nao/Gilles on October 20, 2009, 07:14:16 AM
@leighlife> ordering, ordering... Where? Examples?
Sorry, I knew it'd be too vague when I posted.  OK:

Sometimes no move seems to be done at all, sometimes other albums are moved too, and sometimes it does it correctly.

For example I've just attempted to move the first of eight sub-albums to a lower position, after one of the others.  In that case it did go to the position I specified, but also the last sub-album jumped to the top position.
Then, after repairing that, I tried to move the same album before one of the others.  This also succeeded, but the second and third sub-albums jumped to the end.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: petesky on October 20, 2009, 07:46:07 AM
OK - sorry found the problem - i had to clear the cache. Now it works fine :-)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: meehan09 on October 20, 2009, 07:48:15 AM
Quote from: petesky on October 20, 2009, 07:46:07 AM
OK - sorry found the problem - i had to clear the cache. Now it works fine :-)

Doesnt seem to have fixed my problems tho ??? Iam stilling getting the erros in error log when viewing a profile!

And its saying error in load.php on lines 1401 and 1402 ?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 20, 2009, 07:49:39 AM
@leighlife> First of all, you're not telling me where it fails. General albums, user albums, someplace in the admin?

@meehan> Attached. Is it my new job? Doing file edits for everyone when they're using dozens of mods that conflict with each other? When should I start asking to be paid for that? :-/
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: meehan09 on October 20, 2009, 07:54:24 AM
I really appriciate your help and i think that seems to have fixed the errors, But may i ask if we dont know anything about mods, and theres so many to have why dont it say will conflict with certain mods, Nothing has told me that the mods conflict and theres no errors in error log anymore!


So iam not sure what iam suppose to do there, I appriciate your kind help, and would off paid for them edits to my files if needbe. But it took you 5mins lol  ;D

how much does a 2min edit cost nowadays on smf ?  ::)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: leighlife on October 20, 2009, 08:16:37 AM
Quote from: Nao/Gilles on October 20, 2009, 07:49:39 AM
@leighlife> First of all, you're not telling me where it fails. General albums, user albums, someplace in the admin?
I outlined the steps in reply 4693, it is in admin, when trying to resequence some general sub-albums.  I haven't tried anything else yet, i.e. top-level albums or user albums.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: meehan09 on October 20, 2009, 08:49:02 AM
when i try to do a mass image upload its not working correctly?

I have tried 5 images and once i click upload, it starts to upload then stops after first image then i have to click upload again.

Is this correct?, Once its finished and both uploading progress bars say 100% and i click submit it only showing one image uploaded?


Hope somone can help fix this, thanks again,
Paul
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: probinson77 on October 20, 2009, 08:56:43 AM
Quote from: Nao/Gilles on October 19, 2009, 05:49:46 PM
@probinson77> Not surprising. v1.5.6 didn't support Wysiwyg, I believe. If you try adding manually a smg tag in the post box, then click on the "A" button to switch to WYSIWYG, it will decode the item instead of still showing the tag itself. Then you switch back to non-Wys and you get garbage instead of the tag...

I just tried to make the SMG tag not work in SMG 1.5.6, and I can't.

First, I started the post with the plain text editor active, manually entered the SMG tag, clicked the "A" to switch to the WYSIWYG editor, and the tag stayed in tact.  Then I switched back to the WYSIWYG editor, and the tag was still in tact.

I then tried starting with the WYSIWYG editor active, switching to the plain text editor and back, and that also worked.  I then previewed my post multiple times, and rapidly clicked the "A" button to switch between editors multiple times, and it still worked.

At no time was the SMG tag decoded, regardless of which editor was active, and it always posted the image from the gallery without fail, all with the WQR mod installed and running.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: LHW on October 20, 2009, 10:26:20 AM
Re: Album Sorting

I noticed that if you try to sort any albums while someone is doing a mass upload, you'll get unexpected results.  Yet, it seemed to correct itself once the mass upload was finished.

However, I as I posted awhile ago, User Albums seem to ignore the sorting order you place them in.  My General Albums will all move and be displayed properly, but the User Albums continue to ignore the sorting order I try to put them in.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Dragooon on October 20, 2009, 10:53:40 AM
Quote from: meehan09 on October 20, 2009, 08:49:02 AM
when i try to do a mass image upload its not working correctly?

I have tried 5 images and once i click upload, it starts to upload then stops after first image then i have to click upload again.

Is this correct?, Once its finished and both uploading progress bars say 100% and i click submit it only showing one image uploaded?


Hope somone can help fix this, thanks again,
Paul
Is crossdomain.xml implemented? If not please search on this thread or at http://smf-media.com to know what it is. Is mod_security enabled? If so, try disabling it.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: petesky on October 20, 2009, 11:13:29 AM
Ähm - sorry one question - how do i remove the item count in albums main list ?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Akyhne on October 20, 2009, 11:48:01 AM
Quote from: Nao/Gilles on October 20, 2009, 07:49:39 AM
Doing file edits for everyone when they're using dozens of mods that conflict with each other? When should I start asking to be paid for that? :-/
Start making unpopular mods instead. No one will care then ;)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: meehan09 on October 20, 2009, 11:58:17 AM
@Dragooon  Im not sure what your mean here :(, could you explain please?


Do i need to enable crossdomain.xml and disable mod security?

What is needed so i can post a ticket to my hosting, hope you can help


Thanks,
Paul
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Dragooon on October 20, 2009, 12:22:50 PM
Yes you need to enable crossdomain.xml and disable mod security if it is enabled. Search at http://smf-media.com if you are in doubt, this has been answered a million times.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: meehan09 on October 20, 2009, 12:32:12 PM
I have spoken to my hosting at : http://www.webhosting.uk.com/support.php

Via live support. Heres the log

Chat InformationPlease wait for a site operator to respond.

Chat InformationYou are now chatting with 'Kieran'

Kieran: Hello and Welcome to Live Chat Support.

Kieran: How may I assist you today ?

andy: Hello there Is mod_security enabled? If so, Could you disbale this for me please, has its needed for my smf gallery to mass upload. my domain is www.exoticforums.co.uk .... thankyou !

Kieran: Give me a moment please. I am looking into this. 

andy: Also Is crossdomain.xml implemented? has this needs to be aswell iam told by smf!

Kieran: Mod_security has been disabled for your domain.

Kieran: http://exoticforums.co.uk/info.php

Kieran: You can check PHPinfo for required xml modules.

andy: have you just done that or was already done?

Kieran: I have added Mod_security code for your domain.

andy: So its disbaled now? also s crossdomain.xml implemented? has this needs to be aswell iam told by smf!

Kieran: Yes



And i have since tried to do the mass upload and same has the first post is accuring? It uploads only one file, and it stops after one and when i click upload again it doesnt upload the next file?


Hope you can help fix this please, and sorry if its been mentioned before i was unaware and it still accurs after its diabled!
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: meehan09 on October 20, 2009, 12:36:23 PM
check here http://exoticforums.co.uk/info.php  ;D


stick on 50% if uploading just two images! screen shot below!

Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: PalmBeachPreps on October 20, 2009, 01:50:15 PM
Has anyone tried to use the package parser on the downloads page?  If so, if it's working for you, could please attach the file edits here for me?  TIA!
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Tiribulus on October 20, 2009, 04:17:11 PM
Quote from: meehan09 on October 20, 2009, 07:54:24 AM
I really appriciate your help and i think that seems to have fixed the errors, But may i ask if we dont know anything about mods, and theres so many to have why dont it say will conflict with certain mods, Nothing has told me that the mods conflict and theres no errors in error log anymore!


So iam not sure what iam suppose to do there, I appriciate your kind help, and would off paid for them edits to my files if needbe. But it took you 5mins lol  ;D

how much does a 2min edit cost nowadays on smf ?  ::)
I know how frustrating this can be, but do yourself a favor and learn how to do your own edits as much as possible. First it will be really helpful to yourself and second, these guys are asked constantly for help, especially with the popular mods like this one and I'm sure they are wearied of all the time having to do it for everybody. You may be surprised how much of figuring out how to get mods to play nice is not that tough once you get the hang of it. Seriously.  Just keep those backups.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: meehan09 on October 20, 2009, 05:04:14 PM
I can do the edits if iam told the edits to do quite easily, I didnt know what code to find or replace or the code to add, has i dont know this?

I am still having problems with this on the mass upload. Detailed in above posts!


Hope somone can direct me on how to fix this or what edits are needed, thanks

Paul
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Captain351 on October 20, 2009, 05:25:48 PM
@Meehan09

You may have problem similar to mine. Did you set "post_max_size" and "upload_max_filesize" in your php.ini and what did you set them to. 100M is supposed to be the max size but if you search you will find plenty of argument about that.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Akyhne on October 20, 2009, 06:38:27 PM
meehan09: What does your error log say?
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: PRaDiUS on October 20, 2009, 09:05:16 PM
Quote from: Nao/Gilles on October 16, 2009, 09:52:08 AM
Quote from: PRaDiUS on October 14, 2009, 04:19:04 PM
Hey, is there a way that I can make user albums open for other members to add items?
I'm not sure. Not in SMG1, but SMG2 has permission profiles, you can create one that will give upload access to anyone even inside a user album. However, I have never tested this (the permission stuff was written by Dragooon and I find it too complicated for me to really delve into), so I can't say for sure it will work.

I tried to give upload access to user album via the new permission system, but it is not working for me. Currently using RC2 thou.. have not upgraded to RC3+ yet.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: C4G-TK on October 21, 2009, 02:35:06 AM
Is RC3+ able to be used on SMF 2.0 RC1.2?  I'm asking because it won't parse for RC1.2 on the mod parser.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 21, 2009, 02:44:56 AM
@c4g> the mod parser is buggy I'd say. It doesn't accept my package xml, even though it's perfectly valid.

Many posts, so little time to answer... (And no time right now.)

- Someone needs to write a FAQ. Akyhne, would you feel up to it? I'm sure you enjoyed writing the Aeva FAQ, you could be my life saver ;)
- Or I'm really going to have to charge for my help.

It'd be nice if someone could go through the last 10-15 pages of the topic and gather a list of the most frequently asked questions, and then I could try to automatize answers for them. (e.g. for mass upload I give all possible solutions.)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: C4G-TK on October 21, 2009, 02:53:44 AM
Cool, been delaying the upgrade of the mod since I kept getting emails saying a new one was submitted every few days at the beginning of the month.  Wanted to see if things calmed down before I went ahead and installed again.  Nice job as usual, Sir.  Already uninstalled and installed.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 21, 2009, 04:48:23 AM
I didn't release THAT many updates... ;)

RC3+ will not be around for too long, though. I'm expecting to release the final version this week or so. I'm currently busy with my backlog of messages. When I'm done, and if no other bugs are found, I'll release it. (Basically, RC3+ = Final, with a few invisible differences.)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Akyhne on October 21, 2009, 07:04:58 AM
I'm very busy atm, bull will concider it. Is Dragooon out of the project? He should concider his position in this mod. Maybe you should find another person or two to help with the mod?

Dragooon, if you don't want to be involved in this mod anymore, then handle it to Nao 100%.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: meehan09 on October 21, 2009, 07:26:02 AM
No error log, Just not uploading, and ive changed it to 50mb i think it was. has i thought that may have been the error but it wont even upload two 1mb images?

Ive posted more info on other posts!, cheak  my phpinfo here : www.exoticforums.co.uk/phpinfo.php


I hope someone can help me get this fixed ..... Kind regards,
Paul
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 21, 2009, 08:26:59 AM
Quote from: leighlife on October 20, 2009, 08:16:37 AM
I outlined the steps in reply 4693, it is in admin, when trying to resequence some general sub-albums.  I haven't tried anything else yet, i.e. top-level albums or user albums.
Okay, so that's in General albums.
I can confirm that I haven't changed anything in that area in recent releases... :-/
Maybe I inadvertently flushed away the order system when rewriting the album list feature, but then again... Did you try reinstalling RC2, just to be sure it worked in that version? If it worked with it, then it's something I can look into. If it used to work in an earlier SMF2 public beta, then it's still my fault, but it'll be harder to spot.


Quote from: meehan09 on October 20, 2009, 08:49:02 AM
when i try to do a mass image upload its not working correctly?

I have tried 5 images and once i click upload, it starts to upload then stops after first image then i have to click upload again.

Is this correct?, Once its finished and both uploading progress bars say 100% and i click submit it only showing one image uploaded?
Dragooon, this has nothing to do with crossdomain... The crossdomain "bug" prevents the user from getting a file selection box when clicking Browse.

The second bug usually happens after finishing the first item upload. Usually, the same error will be reproduced by using the single form upload (which is way easier to debug), and it's generally due to: max internal PHP upload size limit being reached (hence why I added these variables in the admin area, although apparently it's still too complicated for some to understand, because they don't read the description or something :P), or mod_security bug. I think the mod_security thing can be fixed, but ONLY by SMF itself -- I don't think it's SMG's role to fix a SMF/mod_security incompatibility. The solution is quite simple when you think of it: get a copy of the display buffer and replace all ;id with &id with a simple preg_replace like this:

$buffer = preg_replace('~(' . preg_quote($scripturl, '~') . '[^][<>"]*);id~', '$1&id', $buffer);

It's off the top of my idea so it may be buggy. It only needs to be done when in_array('mod_security', get_apache_modules()) returns "true", of course. (Uh, I guess most people here will nod with a smile wondering what the heck I'm talking about, sorry :D)

In your case meehan, I'd need to know what error message you get when trying to upload the same file by single upload form.


Quote from: meehan09 on October 20, 2009, 07:54:24 AM
I really appriciate your help and i think that seems to have fixed the errors, But may i ask if we dont know anything about mods, and theres so many to have why dont it say will conflict with certain mods, Nothing has told me that the mods conflict and theres no errors in error log anymore!

I've seen SMF installs you people wouldn't believe. Failed mods on fire off the should of PHP. I watched error messages glitter in the dark near the Homepage gate. All those bugs will be lost in time... like tears in rain... Time to debug.

QuoteSo iam not sure what iam suppose to do there, I appriciate your kind help, and would off paid for them edits to my files if needbe. But it took you 5mins lol  ;D

how much does a 2min edit cost nowadays on smf ?  ::)
Yeah, that's the problem...
"Please help me fix this small error.
- Done.
- Cool. That was fast. Then could you fix that one, too?
- Done.
- Cool. That was fast. Then could you...
- No.
- Oh, you're not cool, it only takes two minutes each time!"

Multiply this by ten users at the same time, and by the fact that I'm trying to have a life.
Welcome to my place. By the way, that's exactly what you did... You asked for help, then you said it was only two minutes, and then you asked for help on mass upload (which is the single most documented issue in SMG, either here or over at smf-media.com.)

So, yeah, I'm considering asking for $$ in exchange for services I usually do for free. Because that's the price of saving you the time to go through the forums and read how to fix your problems by yourself (which you could, since I've been debugging these things in public for months and months now.)
You could also ask for help from SMF support helpers etc. They will gladly help but they may not be available all the time.


Quote from: probinson77 on October 20, 2009, 08:56:43 AM
I just tried to make the SMG tag not work in SMG 1.5.6, and I can't.

First, I started the post with the plain text editor active, manually entered the SMG tag, clicked the "A" to switch to the WYSIWYG editor, and the tag stayed in tact.  Then I switched back to the WYSIWYG editor, and the tag was still in tact.
Oh really... Then why the heck did I waste time making that work? Uh... Headache incoming.

QuoteAt no time was the SMG tag decoded, regardless of which editor was active, and it always posted the image from the gallery without fail, all with the WQR mod installed and running.
Can you PM Antechinus and ask him to come over and discuss this with me? I don't want to bother him myself ;)
Or maybe Karl, since he developed the original mod... Maybe he would know. But I'm not sure he's much available these days.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 21, 2009, 08:38:53 AM
Quote from: PRaDiUS on October 20, 2009, 09:05:16 PM
I tried to give upload access to user album via the new permission system, but it is not working for me. Currently using RC2 thou.. have not upgraded to RC3+ yet.
If at some point in time I'm satisfied enough with SMG and the lack of work needed to support it etc., I may continue adding features to it after 2.0 and will consider this.

That's my idea:

- rename "general albums" to "featured albums",
- therefore allow admins to put a user album to the spotlight (i.e. the homepage),
- consider all albums to be "user albums" and when adding/editing them, instead of offering a list of membergroups with a checkbox for "view" permission, I'll be showing two checkboxes, one for "view" and one for "upload". (If any of these are disabled, only admins & album owners will be able to interact with the album at all.)

Hmm, maybe I could even put that in 2.0 but it would need testing. And editing all albums to set upload permissions of course.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: meehan09 on October 21, 2009, 08:41:05 AM
Thankyou!, When i upload a single image iam getting no errors! and the image uploads fine.

Its when i try to mass upload, it stops after the first image and sticks on 50% and then when i click upload again it uploads the first image again and not move onto second image upload?

But if i upload one image it works fine no errors!, Do you think you could take 5mins to have a look at this has you know exsactly what your looking for?

I can go onto MSN if needed?, Also i dont know how i would edit the mod_security to be honest?, Hope you can help here has iam new here and didnt really know what you ment, i could show it to my hosting and they may be able to modify the mod_security?


I do know this is disabled at the moment see here : www.exoticforums.co.uk/phpinfo.php


Regards,
Paul
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 21, 2009, 08:52:24 AM
Quote from: Akyhne on October 21, 2009, 07:04:58 AM
I'm very busy atm, bull will concider it.
Thanks ;)
If anyone else wants to help...?

QuoteIs Dragooon out of the project?
Officially, no. Technically, yes. He's been fixing a couple of bugs last month, but apart from that he left the project silently after it went in public 2.0 beta.

QuoteHe should concider his position in this mod.
We've already discussed that. He doesn't want to hand it over to me. He gave me an admin position on smf-media.com and transferred this topic's ownership to the "SMGTeam" user which I use to update the version numbers (unfortunately, it's a "Newbie" member so none of the links work... Quite silly innit?). Over than that, I myself took the liberty to remove the call for donations from the first page of the topic because I'm not receiving shares in donations and since he's not working on SMG, I see no point in asking people to donate to him.

QuoteMaybe you should find another person or two to help with the mod?
It's become so complex at this point, I couldn't find anyone who could help, really. But I gladly accept any incoming help. These last few weeks, I implemented two fixes that were submitted to me (one for the Ajax rating process, one for album icons -- an impressive one at that, even I was a bit lost in my own code for fixing this!!). I can't, and won't force anyone to work with me/us on the project anyway, it's a voluntary job. I chose to do it, it's getting tiresome but I assume my choice. I only leave a job when it's perfect and I don't have anything left to do on it (e.g. Kyodai Mahjongg, on which I worked for 10 years -- when usually, a shareware mahjongg development process has a maximum lifetime of 3 months).

QuoteDragooon, if you don't want to be involved in this mod anymore, then handle it to Nao 100%.
I guess it's up to him, after all he created it (v1.0.x) and I strongly respect him for that. The software itself worked before I joined. It just didn't work as well ;D We did half of the work each on v1.5, and pretty much the same for v2.0 as well. After a year of work, it didn't come out as a shock that he wanted out. I just would have appreciated if he could have told me back when he left (around June).

Anyway -- long story short: I can live with it just fine, all I'm asking is that, as long as I'm the only working on SMG, no one else makes money on SMG or associated. (I'm referring to a mod for SMG that someone advertised without consulting with me before. A mod that supposedly adds a feature that I said I would add to Foxy! in the near future... Since I barely sold 5 or 6 copies of it for 3 months' worth of work, it's understandable that I have a hard time accepting that kind of double-crossing stunt. Maybe that's just me but...)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 21, 2009, 08:55:23 AM
Quote from: meehan09 on October 21, 2009, 08:41:05 AM
But if i upload one image it works fine no errors!,
You mean if you upload an image through mass upload, it works, but if you try uploading two images, it crashes after the first one is done?
Does the first image show up in your gallery in both cases?

QuoteDo you think you could take 5mins to have a look at this has you know exsactly what your looking for?
Mass upload issues usually take more than 5 minutes. Yesterday it took me 20 minutes to debug a site where the only issue was with the PHP upload size. (I didn't think of it immediately, as I'm so used to getting mod_security errors...)

QuoteI can go onto MSN if needed?,
I don't use messengers.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: meehan09 on October 21, 2009, 09:05:04 AM
No it only uploads the image in single upload and displays the image!

But when i try to do a mass upload, ive even tried 2 images off a small size ( smileys ) and banners just to test


But it pases half way through and stops uploading, and when i click upload again it uploads the first image again and doesnt change to second image.

And on the mass upload no sorry none off the images get uploaded, only when using single uploader.


Hope this helps, and ok i understand you dont have MSN has you would get bombarded with support!

I can send ftp details or a test admin account if your able to look into this for me?, Hope you can help and thanks again !
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 21, 2009, 09:13:48 AM
Smells like mod_security to me.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: meehan09 on October 21, 2009, 09:16:10 AM
I contacted my host and they have told me this is diabled!

check here : www.exoticforums.co.uk/phpinfo.php ?

Or is it something different witch needs changing?

Would you be able to change this please or explain what i need to get my host to do to get this fixed?

thanks again Nao  :D
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 21, 2009, 09:59:02 AM
@meehan, I don't have time for this now.


Quote from: petesky on October 20, 2009, 11:13:29 AM
Ähm - sorry one question - how do i remove the item count in albums main list ?
You'll have to mod Subs-MGallery.php for that. But why would you do it? It looks just fine...


Quote from: Akyhne on October 20, 2009, 11:48:01 AM
Start making unpopular mods instead. No one will care then ;)
I'm seriously starting to think my best experience in terms of mods has been with Footnotes ;)

I have an idea for a big mod inherited from a successful feature in Noisen.com, but I'm afraid it will kill me even more :P

@Palm
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: meehan09 on October 21, 2009, 10:02:07 AM
Quote from: Nao/Gilles on October 21, 2009, 09:13:48 AM
Smells like mod_security to me.

I contacted my host and they have told me this is diabled!

check here : www.exoticforums.co.uk/phpinfo.php ?

Or is it something different witch needs changing?

Would you be able to change this please or explain what i need to get my host to do to get this fixed?

thanks again Nao  :D
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Akyhne on October 21, 2009, 11:17:15 AM
Quote from: Nao/Gilles on October 21, 2009, 09:59:02 AM
I'm seriously starting to think my best experience in terms of mods has been with Footnotes ;)

I have an idea for a big mod inherited from a successful feature in Noisen.com, but I'm afraid it will kill me even more :P

@Palm
Hmm, maybe it's time to concider giving up either Aeva or SMG. I wouldn't want to see you abandon everything in the end like KB did.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: tfs on October 21, 2009, 11:34:29 AM
Quote from: Nao/Gilles on October 21, 2009, 08:26:59 AM- Cool. That was fast. Then could you...
- No.
- Oh, you're not cool, it only takes two minutes each time!"

Not to make your head swell or anything, but Picasso's napkin comes to mind.  :)
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: madsenart on October 21, 2009, 01:56:33 PM
I cant even upload one image in either mass upload or single upload. Image file size is 347kb, 2848x3134 pixels. Screen goes blank and nothing happens.
Max file size is set to 2500kb and dir size is unchanged at 54100kb.

Any suggestions?

edit: uploading image file with 157kb in size and 500x600 pixels was problem free.

could there be a problem with the built in resizer?

edit: Resizing images to 640x480 solved the mass upload problem. Althoug, problem with auto resizing still excists then :S

edit: mass upload button dont work in IE8 for me. Nothing happens when clicking it. The file browser dont pop up. In Firefox it's fine.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Libelcom on October 21, 2009, 03:51:17 PM
Hi there,
I am newbie both to SMF (using 1.1.10 for a few weeks now) and SMG. I just installed SMG-mod and it works simply fine but still I have some questions to be answered:
- why is it only visible to me as administrator? (yes, I have given permission to regular members to access the gallery and so on)
- why is the gallery only accessible through PROFILE?

Please help, thank you!
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 21, 2009, 04:41:02 PM
@tfs> I actually didn't get it at first... After further research, I realized there are two versions of the Picasso napkin. The French one, and the American one. Both are funny in a different way!
The American one: Picasso did a sketch on a napkin to pay his bill, then asked for a lot of money. The buyer said it only took him a minute to make. Picasso replied "No, it took me 40 years."
The French one: Picasso did a sketch on a napkin to pay for an expensive meal. The restaurant owner asked him to sign his work. Picasso replied, "No, I'm paying my tab, I'm not buying the restaurant!"
Obviously I only knew the French one so I didn't get the idea. Now I do. Well, yeah that's basically it. I'm in a better position to fix people's problems with SMG because I know the beast inside out. Anyone could become a SMG specialist -- they just would have to learn PHP, Javascript, Apache settings, and go through the 20.000+ lines of code and learn how they work together. What specialists make people pay for, is not related to their "30 minutes of work", it's more related to "the 3 weeks of work it would have taken you to do the same."

@meehan> No need to repost your question again after 45 minutes... I did read it. And I told you I couldn't help. Well, I could, but I'm seriously turned off by your dismissal of the concept I explained two lines above. I just don't have time to fix everyone's little problems. Learn how to deal with it by yourself, or pay someone (me, or anyone else who can help) to do it for you.

@libelcom>
- did you check both sets of permissions? (regular perms + perm profiles)
- use the default theme or apply the manual changes to your custom theme.

@madsenart> How much memory has your PHP got available? As for IE8, try reloading the page or moving the scrollbars and hovering again.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Libelcom on October 21, 2009, 04:55:01 PM
Quote@libelcom>
- did you check both sets of permissions? (regular perms + perm profiles)
- use the default theme or apply the manual changes to your custom theme.

Thank you for replying and I'll check both permissions. I am now using Overview_tp10 by DzinerStudio and I don't know how to apply the manual changes to this theme. Could you please help me with that?

Thank you.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 21, 2009, 05:07:39 PM
Will customize for food. (Or Paypal donations.)

Good night.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: madsenart on October 21, 2009, 05:11:52 PM
According to my info.php (if that is where i should look) i have 24mb available memory.

Thank you.
Title: I can't see the images uploaded.
Post by: Loginsvarios on October 21, 2009, 11:39:07 PM
Greetings.

I installed SMG on my forum and all works fine. Except one thing: I can't see the images uploaded.
After upload a single image, it can't be seen.
Also in the "Size" info it says "0 KB", but if I press on "Download" it can be downloaded with no problems.

Here is a snapshot:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg194.imageshack.us%2Fimg194%2F9928%2Finstantnea7.th.png&hash=e11ded4e6501e983f9c81fdb963d5804ef7a93f3) (http://img194.imageshack.us/i/instantnea7.png/)

Some info:
SMF: 1.1.10
SMG: 1.5.6
My forum: http://mangaseishin.co.cc/smf/index.php (Spanish language)

P.D: By the way, sorry for my English level.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: hartiberlin on October 22, 2009, 01:54:53 AM
Please post links to demo sites using this gallery.
I want to check it out.

Does it support Flash slideshows, like Exposé on Joomla ?

I need a good free Flash slideshow gallery Mod for SMF.
What would you suggest ?

Many thanks in advance.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Akyhne on October 22, 2009, 05:04:34 AM
Demos:
http://smf-media.com/community/index.php?action=mgallery
http://media.noisen.com/
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 22, 2009, 05:39:24 AM
Quote from: Akyhne on October 22, 2009, 05:04:34 AM
Demos:
http://smf-media.com/community/index.php?action=mgallery
http://media.noisen.com/
The first link is the actual demo. The second one is a live version, not a demo. If you want to post junk, please do it on the first link ;)

There are two slideshow mods available for SMG.
- Dragooon's mod is in Javascript and shows pictures with a fade-in/fade-out effect. It's only for use in the gallery itself, as a button in albums.
- My mod is in Javascript+Flash and shows pictures, audio & video within a custom JWPlayer. By using a playlist or simply asking for a full album embed, you can include these playlists/slideshows into messages or any block that parses BBCode.

I don't know what Exposé is. If you need Exposé, use Exposé. I don't steal from other plugins, I try to implement my own ideas/concepts/preferences as much as possible.
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: meehan09 on October 22, 2009, 07:35:08 AM
thanks FLAMER for helping me without him i would of never got this fixed.  :o

Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 22, 2009, 07:55:46 AM
- It was YOUR problem, YOUR configuration, YOUR failed SMF install. (I'd already told you your SMF install was screwed up.)
- I helped you every time you asked for help before that.
- Last time, you mocked my helping you as very minor. When you got another issue and I failed to answer you (because I have a life, you know), you flooded this topic with the same question over and over again.
- When I said you made me consider asking for money in exchange for noob support, you treated me like I'm a crook (even though I'm co-author of the mod and we're offering it for free),
- Even now that your problem is fixed, you're not even saying what exactly you needed to fix.

*Therefore*: next time you have a support question for SMG, keep it to yourself or I'll ask a moderator to delete your message. I have enough work on my hands not to let this topic be flooded with people like you.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: SMGTeam on October 22, 2009, 09:34:21 AM
SMF Media Gallery v2.0 is out!

Version 2.0 [Final]                              October 22, 2009
-----------------------------------------------------------------
* Modified Gallery menu button to always link to the homepage. The unseen area can still be accessed
  by clicking the number of unseen items (in SMF 1.1.x) or opening the drop down menu (in SMF 2.0)
! Fixed undefined error when showing audio or doc files in the Unseen area
* Incompatibility with WYSIWYG Quick Reply is still there somehow,
  I probably won't be able to solve it without the author's help
! Fixed glitch when rating an item to zero
! Fixed a validation error in Unseen area


And of course it also features all of the fixes & additional features from all earlier beta versions.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: SMGTeam on October 22, 2009, 09:35:17 AM
(Just adding a dummy message so that I'm upgraded to "Semi-Newbie" and links in the first post can show up correctly...)
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Marcus Forsberg on October 22, 2009, 09:41:43 AM
Congrats, Nao! :D
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Dragooon on October 22, 2009, 10:55:48 AM
Quote from: SMGTeam on October 22, 2009, 09:35:17 AM
(Just adding a dummy message so that I'm upgraded to "Semi-Newbie" and links in the first post can show up correctly...)
Just like Nao, :P

Congratulations!
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: hartiberlin on October 22, 2009, 10:58:52 AM
Quote from: Nao/Gilles on October 22, 2009, 05:39:24 AM


There are two slideshow mods available for SMG.
- Dragooon's mod is in Javascript and shows pictures with a fade-in/fade-out effect. It's only for use in the gallery itself, as a button in albums.
- My mod is in Javascript+Flash and shows pictures, audio & video within a custom JWPlayer. By using a playlist or simply asking for a full album embed, you can include these playlists/slideshows into messages or any block that parses BBCode.

I don't know what Exposé is. If you need Exposé, use Exposé. I don't steal from other plugins, I try to implement my own ideas/concepts/preferences as much as possible.

Hi,
here for example:

http://smf-media.com/community/index.php?action=mgallery;sa=item;id=235

are only 3 thumbnails to see...

Can it be configured that at least 9 or 12 thumbnails are configured like in a Gallery2
environment like this:

http://www.lucnix.be/main.php?g2_itemId=35972

?

By the way, this is an example for the Exposé 4 flash gallery...

http://www.gotgtek.net/15/expose-demo.html

Is there something simular with SMF Media Gallery ?

I like the horizontal flash scrolling through the pics...
So is there any flash gallery like this for SMF ?

Please post demo URLs, so I can have a look at it..
I need some real eye candy ! ;)

Many thanks in advance.

Regards, Stefan.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Akyhne on October 22, 2009, 11:06:24 AM
Quote from: hartiberlin on October 22, 2009, 10:58:52 AM
Hi,
here for example:

http://smf-media.com/community/index.php?action=mgallery;sa=item;id=235

are only 3 thumbnails to see...

Can it be configured that at least 9 or 12 thumbnails are configured like in a Gallery2
environment...
You can choose btw 3 and 5 as it is, but it should be no problem modding it to show how many you want.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: hartiberlin on October 22, 2009, 11:22:19 AM
How do I mod it and can it also be at the right side of the big picture like this ?

http://www.lucnix.be/main.php?g2_itemId=35972

And any nice flash transitions between the pics ?

Many thanks.

Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Akyhne on October 22, 2009, 11:50:04 AM
Well, if you can code, it should be easy to make the changes. If not, Nao will probably do it for a paid fee (he's hungry ;) ). As for the slideshow, it's a paid add-on that I never used.
In general, SMG uses Highslide (http://highslide.com/) (when enabled) which makes sliding effects when maximizing images. Whether it does this as well with slideshows, I would asume but don't know.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: islam2hamy on October 22, 2009, 11:57:21 AM
Congratulations!
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Nao 尚 on October 22, 2009, 12:46:52 PM
Thanks guys!
I will update silently v2.0 later at some point tonight though. No biggie, I just found by myself a bug that no one found since it was introduced (at least a week), so I guess it was well hidden ;)

@Akyhne> Highslide allows for a JS slideshow of sorts with effects etc., but as I said earlier, I'm not implementing anything that might hurt Dragooon's mod without his consent. (He wouldn't do it for me either.)

Quote from: hartiberlin on October 22, 2009, 10:58:52 AM
Hi,
here for example:

http://smf-media.com/community/index.php?action=mgallery;sa=item;id=235

are only 3 thumbnails to see...

Can it be configured that at least 9 or 12 thumbnails are configured like in a Gallery2
environment like this:
No. It's not just a matter of changing a number somewhere in the code... Changing the number of thumbnails changes the layout as well. I sort of developed three mini templates for all 3 settings. Adding 12 thumbnails is not trivial (it would require me to put everything into an array and add even more code.)
I like it the way it is. Just set your max items to 5 instead of 3, and enjoy. It's set to 3 by default to avoid breaking the layout on a default install on a "minimal" theme.

QuoteBy the way, this is an example for the Exposé 4 flash gallery...

http://kaligah.de/index.php?option=com_expose&Itemid=41

Is there something simular with SMF Media Gallery ?
Yes, Dragooon's mod. There's a demo over at smf-media.com.
Mine is clearly not for you (although Foxy! is not *only* a slideshow mod...), but it allows to play videos & audio files as well:
http://aeva.noisen.com/dev/5060/tests-video-embedding/msg235854/#msg235854
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 22, 2009, 01:03:14 PM
The silent update is out. It's a really easy fix if you don't want to reinstall it (for all 24 users who downloaded it earlier).
Open Subs-MGallery.php, go to line 2415 and remove these characters: « , 'box' » (without the quotes, of course.)
Save, upload, done.
What does it fix? Well, the lightbox headers weren't being loaded for [smg id=... type=box] tags. Which made it impossible to preview a picture the normal way. I suppose this embed type isn't used a lot anyway. Even I don't use it much ;)
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Akyhne on October 22, 2009, 01:08:35 PM
Quote from: Nao/Gilles on October 22, 2009, 01:03:14 PM
What does it fix? Well, the lightbox headers weren't being loaded for [smg id=... type=box] tags. Which made it impossible to preview a picture the normal way. I suppose this embed type isn't used a lot anyway. Even I don't use it much ;)
Well, there was a method in the old 1.5.x that made it possible to set a size of an image, and when clicked it zoomed to either preview or full image. Don't remember the exact code, but I haven't been able to get it to work testing all combinations I could think of. However I'm pretty sure it wasn't the box type.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: littleone on October 22, 2009, 01:15:01 PM
I just upgraded to the new 2.0 and am still having the GIF issue.  Everything works great for me and anyone who has "Manager" permissions.  However, others are having an issues.  One of my moderators is trying to upload a .gif image but it is giving her an error telling her it is not a valid file extension, yet I can upload it perfectly fine.  What could this be?
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: madsenart on October 22, 2009, 01:42:31 PM
I'm happy to announce that since the update to 2.0 the massupload and the auto resize function works like a charm.

Thank you for all your hard work :)
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: digger on October 22, 2009, 02:12:02 PM
2.0 Final still have issues with ffmpeg and thumbnails for video.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 22, 2009, 02:32:46 PM
@akyhne> It still exists. type=preview can link to a full version. But of course it doesn't give the picture details, like for type=box.

@littleone> gif issue? I don't remember that...

@madsenart> 2.0 final = RC3+ with a few minor fixes, nothing related to your issues. I guess you had a failed install or something...

@digger> Last time I enquired about ffmpeg problems, I got no feedback in return so I considered it was settled. (My ffmpeg fixing session dates back from august or september.) Disable ffmpeg if you're having trouble, I guess. v2.0 is as stable, if not stabler, than v1.5, and has many more features. If I had waited a few more days for a new release, I would certainly have started implementing a couple new features, which would have required a RC4, and then maybe RC5, etc... In short, it could have postponed v2.0 by a month or more. I had to draw a line at some point, SMG2 had been in beta for 10+ months, and in public beta for nearly 4 months...
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: digger on October 22, 2009, 02:52:06 PM
Quote from: Nao/Gilles on October 22, 2009, 02:32:46 PM
@digger> Last time I enquired about ffmpeg problems, I got no feedback in return so I considered it was settled. (My ffmpeg fixing session dates back from august or september.) Disable ffmpeg if you're having trouble

Can you add setting for Gallery to disable using ffmpeg if you can't fix this problem?
Title: Re: I can't see the images uploaded.
Post by: Loginsvarios on October 22, 2009, 03:06:39 PM
Quote from: Loginsvarios on October 21, 2009, 11:39:07 PM
Greetings.

I installed SMG on my forum and all works fine. Except one thing: I can't see the images uploaded.
After upload a single image, it can't be seen.
Also in the "Size" info it says "0 KB", but if I press on "Download" it can be downloaded with no problems.

Here is a snapshot:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg194.imageshack.us%2Fimg194%2F9928%2Finstantnea7.th.png&hash=e11ded4e6501e983f9c81fdb963d5804ef7a93f3) (http://img194.imageshack.us/i/instantnea7.png/)

Some info:
SMF: 1.1.10
SMG: 1.5.6
My forum: http://mangaseishin.co.cc/smf/index.php (Spanish language)

P.D: By the way, sorry for my English level.

No one can help me?
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 22, 2009, 03:14:36 PM
@digger> It's not that I can't fix it. It's just that I don't see any problem.

@loginsvarios> That version is no longer supported.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 22, 2009, 04:09:39 PM
Yet another silent update -- this one has no code change, I only updated the package-info.xml file to make it possible to user simplemachine.org's manual parser. (It was due to my version target range closing at "2.0.99" instead of "2.99.99"... Odd.)
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: madsenart on October 22, 2009, 04:37:35 PM
Quote from: Nao/Gilles on October 22, 2009, 02:32:46 PM
@madsenart> 2.0 final = RC3+ with a few minor fixes, nothing related to your issues. I guess you had a failed install or something...

Guess so. Anyways. All works great now. So a big thank you for taking your private time to help simple mortals like me. Really appreciated =)
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: C4G-TK on October 22, 2009, 04:54:18 PM
Great job!  (I knew I should have waited a couple more days before upgrading this week! LOL)

Seriously though.  Congrats! ;D
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Sudhakar Arjunan on October 22, 2009, 04:55:17 PM
Quote from: Nao/Gilles on October 22, 2009, 04:09:39 PM
Yet another silent update -- this one has no code change, I only updated the package-info.xml file to make it possible to user simplemachine.org's manual parser. (It was due to my version target range closing at "2.0.99" instead of "2.99.99"... Odd.)

Good Fix made, i got it worked perfectly after reinstalling.

Thanks for your work SMGTEAM & Nao.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Loginsvarios on October 22, 2009, 05:18:14 PM
I supposed that SMG 2 only worked with SMF 2 ... my mistake!
Now I installed SMG v2 in my SMF 1.1.10 and it works flawlessly.  :D

Thanks for your time (on both foums  ;) ) and greetings!
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 22, 2009, 05:22:40 PM
Thanks everyone! Hopefully tomorrow I can take the day off and finally play Risen or one of the other adventure games I've been postponing for some time...

@loginsvarios> Nope, we took a great deal of effort to make SMG always compatible with both versions. (At least until SMF2 goes final.... In which case I may drop SMF1 compatibility little by little.)
Good to know it works for you, it was a wild guess for me eheh.

@ask> SMGTeam is me, or at least I'm the one who posts with it, in case you were wondering. It's an account that both Dragooon and I can access, I need it to update the first post in this topic. I also post changelogs with it, well, at least until it becomes a non-newbie account.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: 4b11l on October 22, 2009, 05:49:22 PM
What are the updates/fixes in the latest versions?
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Akyhne on October 22, 2009, 06:29:30 PM
Quote from: digger on October 22, 2009, 02:52:06 PM
Quote from: Nao/Gilles on October 22, 2009, 02:32:46 PM
@digger> Last time I enquired about ffmpeg problems, I got no feedback in return so I considered it was settled. (My ffmpeg fixing session dates back from august or september.) Disable ffmpeg if you're having trouble

Can you add setting for Gallery to disable using ffmpeg if you can't fix this problem?
What is the problem? It works for me.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Dramber on October 23, 2009, 12:58:07 AM
Installed without a hitch and it fixed the errors with the user album placement I was having. :)
Thanks for all your hard work. This kicks butt!
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: Antechinus on October 23, 2009, 01:45:19 AM
Quote from: Nao/Gilles on October 21, 2009, 08:26:59 AM
Quote from: probinson77 on October 20, 2009, 08:56:43 AM
I just tried to make the SMG tag not work in SMG 1.5.6, and I can't.

First, I started the post with the plain text editor active, manually entered the SMG tag, clicked the "A" to switch to the WYSIWYG editor, and the tag stayed in tact.  Then I switched back to the WYSIWYG editor, and the tag was still in tact.
Oh really... Then why the heck did I waste time making that work? Uh... Headache incoming.

QuoteAt no time was the SMG tag decoded, regardless of which editor was active, and it always posted the image from the gallery without fail, all with the WQR mod installed and running.
Can you PM Antechinus and ask him to come over and discuss this with me? I don't want to bother him myself ;)
Or maybe Karl, since he developed the original mod... Maybe he would know. But I'm not sure he's much available these days.
I have NFI what is going on there. Haven't ever looked into SMG coding myself. Karl would be a better bet if you can get him.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: CiQ on October 23, 2009, 03:54:31 AM
Guest
http://***/index.php?action=mgallery;sa=item;id=651;sort=2
8: Undefined index: mgallery_unseen
Файл: /***/Sources/MGallery.php
Строка: 138

Guest
http://***/index.php?action=mgallery;sa=item;id=651;sort=2
8: Undefined index: mgallery_home
Файл: /***/Sources/MGallery.php
Строка: 105

SMG 2 final
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 23, 2009, 04:09:50 AM
@CiQ> Install with the package manager, or add the strings manually to your Modifications.*.php file (I suppose you're not using English or French translations.)

@Antechinus> Thanks for coming by ;)

It's pretty simple actually, SMG adds some code to Subs-Editor.php, $context['smg_disable'] = true; which disables the next (and only the next) SMG tag parsing.
This code is added to bbc_to_html() right before parse_bbc() is called to turn the BBCode into HTML. Right? The purpose is to prevent the Wysiwyg editor from turning [smg id=...] into its corresponding HTML code which can NOT be turned back into BBCode by html_to_bcc() (because the resulting code is very different depending on what media is inserted and what options are set).

So, it appears that your WYSIWYG Quick Reply mod calls bbc_to_html() at some point on messages (all or the first, I'm not sure how, I haven't looked into it), because the first [smg] tag in any page is left as is, instead of being turned to HTML, which means that smg_disabled was set when parse_bbc() was run on that message. Meaning in turn that it was called through bbc_to_html(). This is where I'm getting lost...

FYI, I've been told that if the following XML install code from SMG is removed, tags are correctly decoded, hence my explanation so far.

<file name="$sourcedir/Subs-Editor.php">
<operation>
<search position="after"><![CDATA[ // What tags do we allow?]]></search>
<add><![CDATA[ // MGallery changes
// Prevents embedding in WYSIWYG
global $context;
$context['smg_disable'] = 1;
// End MGallery changes

]]></add>
</operation>
</file>
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 23, 2009, 04:12:30 AM
@4b> changelog.txt (inside the package) has a complete log of all additions/fixes/changes, version by version... And every time I post a new version, I post the latest changelog here...

@Dramber> Another bug fixed magically by the latest version without any change on my side? OMG, I should frame it on my wall! I should save the code and never touch it again! lol -- I guess it's the magic of Christm final versions. All bugs decide it's time to go away!
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: dracomiconia on October 23, 2009, 05:10:15 AM
Hi....

Just installed and converted from Coppermine Gallery.

I have a question.... when conversion is finished, can I delete ALL (included albums folders) in old Coppermine Gallery folder?

Edit: Another question....

FTP files are not deleted after assigned? Can I delete them manually?
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Akyhne on October 23, 2009, 05:58:06 AM
Quote from: Loginsvarios on October 22, 2009, 05:18:14 PM
I supposed that SMG 2 only worked with SMF 2 ... my mistake!
Now I installed SMG v2 in my SMF 1.1.10 and it works flawlessly.  :D

Thanks for your time (on both foums  ;) ) and greetings!

Maybe Nao should remove the SMG 1.5.6 from the download page. I can see why people get confused with a 1.x and a 2.x version.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: CiQ on October 23, 2009, 07:16:14 AM
2Nao/Gilles: thx. My fault :)
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 23, 2009, 08:10:46 AM
@dracominia> Nothing is deleted after conversion/import/ftp. This is because if the process fails, you can still start it over.
Feel free to remove the files if everything went well, yes.

@Akyhne> I deleted all files and then re-added 1.5.6 as well because I need a backup solution in case some unknown problems occur with v2.0. Although I agree this might be confusing. I will be removing the file. If any problems indeed occur, I will simply reupload v1.5.6 in the meantime.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: clothahump on October 23, 2009, 10:50:49 AM
Is there a converter for PhotoPost vBGallery v2.5, I am currently moving a large VB forum over to SMF and would like to retain the images.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Dragooon on October 23, 2009, 11:01:11 AM
Quote from: clothahump on October 23, 2009, 10:50:49 AM
Is there a converter for PhotoPost vBGallery v2.5, I am currently moving a large VB forum over to SMF and would like to retain the images.
No.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: clothahump on October 23, 2009, 11:04:30 AM
Darn that would have been so helpful, just need to add menu link and start filling the gallery then.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 23, 2009, 11:19:53 AM
How many pics does it have?
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: clothahump on October 23, 2009, 11:22:16 AM
Around 2,500 I reckon.
http://www.tropicalfishforums.co.uk/gallery/
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: littleone on October 23, 2009, 11:49:18 AM
Here is a screenshot of it before the upload button is pushed

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg257.imageshack.us%2Fimg257%2F5913%2Ftryingtouploadagif.png&hash=6893e7e68f9b9c1b7d71b8960f23c68ea40cb2e2)

Here is the error message
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg259.imageshack.us%2Fimg259%2F5415%2Ftryingpost.png&hash=415c038be90d067c3fc67f3a02971be3fa17017d)

Again this happens to everyone who trys to upload a .gif image EXCEPT those who have manager permissions.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: PurpleCrow on October 23, 2009, 11:51:30 AM
I cant for the life of me find a button that says Gallery to take members to it... Am I meant to do something for this to appear? I installed it on 1.1.10
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 23, 2009, 11:55:23 AM
@clothahump> Hmm... I could hardly recommend to mass upload or FTP import the stuff (although FTP import would be the only viable solution in the short term), given the number of albums.

I tried to find a Photopost -> Coppermine converter but couldn't. It's already hard enough to convert via Coppermine, but adding yet another gallery software (Photoshop -> ? -> Coppermine -> SMG) would be a real mess I guess.

I don't know of any solution apart from FTP Import. I could write a converter for you but not for free. It's all I can say.

@purplecrow> Use the default theme, or adapt your custom theme to add the button yourself... Or use SMF2.

@littleone> Well, what's the extension...? Is the file huge or not? Are you uploading as an admin or regular member?
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: PurpleCrow on October 23, 2009, 11:59:02 AM
Quote from: Nao/Gilles on October 23, 2009, 11:55:23 AM

@purplecrow> Use the default theme, or adapt your custom theme to add the button yourself... Or use SMF2.



How do I adapt the custom theme? Sorry to sound like an idiot... Only been using smf for a couple of days
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 23, 2009, 12:05:10 PM
Edit index.template.php in your template folder. If you have zero php skills, ask for help on the support boards.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: clothahump on October 23, 2009, 12:52:26 PM
The new forum and gallery will be on the same server if that makes things easier.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: clothahump on October 23, 2009, 02:58:28 PM
One little problem.
When I add an album it refreshes to the Gallery page, surely it should refresh to the admin area ready to add another album???
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: clothahump on October 23, 2009, 03:06:35 PM
Quote from: PurpleCrow on October 23, 2009, 11:59:02 AM
Quote from: Nao/Gilles on October 23, 2009, 11:55:23 AM

@purplecrow> Use the default theme, or adapt your custom theme to add the button yourself... Or use SMF2.

http://www.simplemachines.org/community/index.php?topic=344063.0



How do I adapt the custom theme? Sorry to sound like an idiot... Only been using smf for a couple of days
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Tiribulus on October 23, 2009, 03:15:11 PM
Upgrade to 2.0 final went flawlessly.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: littleone on October 23, 2009, 04:05:27 PM
Quote from: Nao/Gilles on October 23, 2009, 11:55:23 AM
@littleone> Well, what's the extension...? Is the file huge or not? Are you uploading as an admin or regular member?

Its a .gif file, and its within the set quota.  I, as the admin, have no problem uploading it.  However regular members any moderators (who do NOT have manager permissions) get the error indicated about.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 23, 2009, 06:10:33 PM
@cloth> Or you could just use the Back button? ;)
@littleone> Then you gave wrong permissions. That error message shows up when a user isn't allowed to upload the type of file he attempts to upload. (I think the quota stuff is misleading -- they can have a 1MB quota for audio files and still not be allowed to upload them...)
Can they check whether they have rights showing up in mass upload?

Anyway--> permission profiles.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: digger on October 23, 2009, 08:57:43 PM
Quote from: Akyhne on October 22, 2009, 06:29:30 PM
Quote from: digger on October 22, 2009, 02:52:06 PM
Quote from: Nao/Gilles on October 22, 2009, 02:32:46 PM
@digger> Last time I enquired about ffmpeg problems, I got no feedback in return so I considered it was settled. (My ffmpeg fixing session dates back from august or september.) Disable ffmpeg if you're having trouble

Can you add setting for Gallery to disable using ffmpeg if you can't fix this problem?
What is the problem? It works for me.

It dosn't work for me.
I can't upload video files because SMG can't generate thumbnales for it.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: KensonPlays on October 23, 2009, 10:29:19 PM
I would like something added, or maybe you can just post here the answer, but:

I would love a addition for in a post, for in topics, it has a link to accepted photos, a link to their gallery.
Thanks in Advance!
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: suriyaserver on October 24, 2009, 12:52:07 AM
 got some error.

1.The Title in each items show error language.
2.I crate item in album use Thai Language ,It look nice but after i edit the item subject .It show ???? ? cannot use Thai-utf8 ( can use english only when edit ).
3.Cannot delete membergroup quota.After delete it show

The database value you're trying to insert does not exist: id
/home/prettyjoy/domains/prettyjoy.com/public_html/Sources/MGallery-Admin.php
3052



Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 24, 2009, 05:19:41 AM
@digger> Have you ever considered *your* setup might have a problem? Try updating your FFMpeg and FFMpeg-php to the latest versions...

@kcmartz> Eh?

@Regarding your error, try to open MGallery-Admin.php and replace line 3050 with this:

'id' => $_POST['del_prof'],

I can't guarantee it'll work... I didn't work on that area.

As for language issues, make sure your files are up to date. There are many changes between 2.0 Final and earlier versions in terms of language files.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Akyhne on October 24, 2009, 06:19:50 AM
Quote from: digger on October 23, 2009, 08:57:43 PM
Quote from: Akyhne on October 22, 2009, 06:29:30 PM
Quote from: digger on October 22, 2009, 02:52:06 PM
Quote from: Nao/Gilles on October 22, 2009, 02:32:46 PM
@digger> Last time I enquired about ffmpeg problems, I got no feedback in return so I considered it was settled. (My ffmpeg fixing session dates back from august or september.) Disable ffmpeg if you're having trouble

Can you add setting for Gallery to disable using ffmpeg if you can't fix this problem?
What is the problem? It works for me.

It dosn't work for me.
I can't upload video files because SMG can't generate thumbnales for it.
The generation will fail if you have used some kind of obscure codec to create your videos. Did you try with a simple video made with Windows Movie Maker with only the default codecs enabled?
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: CiQ on October 24, 2009, 01:43:40 PM
if i try delete quota profile:

The database value you're trying to insert does not exist: id
/***/MGallery-Admin.php
3052

Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 24, 2009, 02:01:28 PM
Just read my post above....... ::)
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Ch4ng3r on October 24, 2009, 02:21:46 PM
Is there a problem with .bmp files in gallery? because i don`t get thumbnail of photo , only blue picture... I tried on your forum too...

Link (test 2) : http://media.noisen.com/album/153/ (http://media.noisen.com/album/153/)

Tnx  :)
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: CiQ on October 24, 2009, 03:36:53 PM
Quote from: Nao/Gilles on October 24, 2009, 02:01:28 PM
Just read my post above....... ::)
'id' => $_POST['del_prof'],
not work:

Wrong value type sent to the database. Array of integers expected. (id)
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 24, 2009, 05:56:01 PM
@ciq> Aw... Bugger. This should be working.

@changer> please don't use my live gallery as a test area. It is NOT made for tests. Use smf-media.com for your tests.
And yes, BMP is not well supported by GD2. It's a known issue. There's no workaround. Convert your BMP to PNG before you upload. You will save much disk space without losing any visual quality at all (it's non-lossy as well.) And PNG is perfectly supported.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: digger on October 24, 2009, 06:36:39 PM
Quote from: Nao/Gilles on October 24, 2009, 05:19:41 AM
@digger> Have you ever considered *your* setup might have a problem? Try updating your FFMpeg and FFMpeg-php to the latest versions...
php5-5.2.11_1
php5-ffmpeg-0.6.0_1
ffmpeg-0.5_1,1

Quote from: Akyhne on October 24, 2009, 06:19:50 AM
Quote from: digger on October 23, 2009, 08:57:43 PM
It dosn't work for me.
I can't upload video files because SMG can't generate thumbnales for it.
The generation will fail if you have used some kind of obscure codec to create your videos. Did you try with a simple video made with Windows Movie Maker with only the default codecs enabled?

I am playing with flv videos from youtube. Coppermine gallery upload and create thumbnailes for it without any troubles.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Ch4ng3r on October 24, 2009, 07:14:40 PM
@nao , explain that to my members... lol :D
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Akyhne on October 24, 2009, 07:53:44 PM
Quote from: digger on October 24, 2009, 06:36:39 PM
I am playing with flv videos from youtube. Coppermine gallery upload and create thumbnailes for it without any troubles.
Can you give me a link/sample?
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: chinaren on October 25, 2009, 12:52:30 AM
Howdy! 

I'm not sure if this is a Gallery problem actually, but as it's happening with the gallery I'll try asking here first.

I've a forum that I upgraded to SMF2, the latest incarnation anyway.  However, I've had a few small issues whilst doing bits with it due to some dodgy FTP uploaded files.  Some were corrupt and others seem to have not overwritten the 1.1.1 files at all. 

I thought I'd spotted them all, as I've added a few mods now with no problems, but maybe there's still a residual issue hidden somewhere.

Anyway, I've installed the gallery okay, but when I try to view an image, or even a gallery, I get the following error:

QuoteMethod Not Implemented
GET to /forum/index.php not supported.


I'm a bit stumped.   ::)

Can anyone shed any light on this for me? 

Merci!


Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 25, 2009, 05:07:28 AM
@changer> It's not my job to do that. BMP format is outdated, useless and so on. I could add a function to convert a BMP to PNG internally, but I don't have time/motivation for doing this for free.

@chinaren> Go to Admin > Gallery. Does it say mod_security is installed? (Read the module list)
If no, probably a .htaccess problem. If yes, it's a mod_security problem. Send me your FTP info & an admin account by PM and I'll try to implement a fix I've been thinking about for some time (involving the use of additional output buffers). If anyone has a mod_security enabled server, please send me your data by PM.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: villasg on October 25, 2009, 07:46:36 AM
I have problem in install in ./Sources/Load.php
I chek my Load.php and i find OK
My smf is 1.1.10
Any help please ?

Take my file
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Akyhne on October 25, 2009, 07:48:44 AM
What are your problems?
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: villasg on October 25, 2009, 08:07:23 AM
Quote from: Akyhne on October 25, 2009, 07:48:44 AM
What are your problems?

If ask me , my problem is :
Have error in installation of this mod.
Say error in load.php.
But i check my load.php and i dont see any error .
And ask if someone can help me or modify for  me this file .

Thanks
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Akyhne on October 25, 2009, 08:14:23 AM
I see no errors in your file.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Akyhne on October 25, 2009, 08:24:03 AM
Seems it's the
mem.firstLogin, mem.skype, that makes the trouble, right after mem.lastLogin, mem.karmaGood, .
Try removing the mods that install mem.firstLogin and mem.skype, then install SMG and then the other mods.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: chinaren on October 25, 2009, 08:41:30 AM
Quote from: Nao/Gilles on October 25, 2009, 05:07:28 AM
@chinaren> Go to Admin > Gallery. Does it say mod_security is installed? (Read the module list)
If no, probably a .htaccess problem. If yes, it's a mod_security problem. Send me your FTP info & an admin account by PM and I'll try to implement a fix I've been thinking about for some time (involving the use of additional output buffers). If anyone has a mod_security enabled server, please send me your data by PM.


The server mod thingy stuff says:
QuoteSMF Version: SMF 2.0 RC1.2   PHP Version: 5.2.9
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.



That said, I uninstalled and tried installing SMF gallery (lite), and it did the same thing.  Could this be a more general error?  I've installed both these on my SMF 1.1.10 forum and this errors didn't happen.


Anyway, I don't have my FTP password where I am now, I'll go and find it and PM to you later.


Quote from: Akyhne on October 25, 2009, 07:48:44 AM
What are your problems?
See above.  Unless you mean, like, in general, in which case I could use a promotion at work (or just more money) and so on.   :o



...and thanks fellows.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Pentaxian on October 25, 2009, 09:30:40 AM
I had some problems getting it working. (SMF1.10, SMG final after failing to get RC2.3 working).
Partly because the popup screen after installing told me to go to the Admin Area, Members section. There was nothing there about Gallery. I found it in the Configuration section.
Other part was the missing content in the Modifications.dutch.php file.

Now I still have one problem. When I (in the albums admin panel) choose Albums/ Add general album I get a blank page and nothing else. What, please, can be the cause of that?
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Akyhne on October 25, 2009, 09:39:53 AM
Quote from: Pentaxian on October 25, 2009, 09:30:40 AM
Now I still have one problem. When I (in the albums admin panel) choose Albums/ Add general album I get a blank page and nothing else. What, please, can be the cause of that?
Any log errors?
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Pentaxian on October 25, 2009, 10:47:38 AM
Quote from: Akyhne on October 25, 2009, 09:39:53 AM
Quote from: Pentaxian on October 25, 2009, 09:30:40 AM
Now I still have one problem. When I (in the albums admin panel) choose Albums/ Add general album I get a blank page and nothing else. What, please, can be the cause of that?
Any log errors?
No, none.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: anto74 on October 25, 2009, 11:48:57 AM
Hi :-)
I have this error when i try convert SMF GAllery Pro to SF Media Gallery 2.0 in my test forum .

Parse error: syntax error, unexpected T_VARIABLE in /home/anto74/public_html/smf/mgconverter_sgp.php on line


Help me please?
Antonio
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 25, 2009, 05:46:43 PM
Uh... What line?
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 25, 2009, 05:49:47 PM
Quote from: chinaren on October 25, 2009, 08:41:30 AM
The server mod thingy stuff says:
QuoteSMF Version: SMF 2.0 RC1.2   PHP Version: 5.2.9
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.
Hmmm... Could you post your .htaccess file, then?

QuoteThat said, I uninstalled and tried installing SMF gallery (lite), and it did the same thing.  Could this be a more general error?  I've installed both these on my SMF 1.1.10 forum and this errors didn't happen.
I don't know. I don't know how SMF Gallery Lite works.
Have you tried installing a fresh copy of SMF and doing your tests with it? Just do it on a sub-folder of your SMF install, and make sure to choose a different prefix for the table names...
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: chinaren on October 25, 2009, 08:21:28 PM
My .htaccess file is fairly empty...  
Quote<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 138.162.140.1/32
deny from 138.162.140.2/31
deny from 138.162.140.4/30
deny from 138.162.140.8/29
deny from 138.162.140.16/28
deny from 138.162.140.32/27
deny from 138.162.140.64/26
deny from 138.162.140.128/25


That said, this is on a add-on domain, so it's basically sitting in a folder within my main domain.  This is the file from within the add on domain, which I assume is the correct one.
I've found my FTP details, so I'll PM you.
 

Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: anto74 on October 25, 2009, 10:57:18 PM
Quote from: Nao/Gilles on October 25, 2009, 05:46:43 PM
Uh... What line?
Sorry Nao, was line 1...copy and paste error  :(
I solved, i have opened the file with Smultron ( Mac editor software ) and i has problem.
Now i will procedd with conversion..2600photos...
Thanks!
Antonio
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: anto74 on October 26, 2009, 12:58:39 AM
I'm converting finally the smf gallery pro...but i have error...the step 3 , convert items, is without end...continuos loop....reload page....1second-...reload page...1 second etc etc..
www.naturainminiatura.com/smf/mgconverter_sgp.php
It's testing forum, SMF Gallery and SMF Media Gallery installed and works without problems.
I have buyed Foxy addon too!!!!  :D  :-[
Thanks
Antonio
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: paulmagno on October 26, 2009, 01:41:10 AM
Hi...newbie question, but are there any mods that would stand in the way of the Media Gallery? I get an error message when I try to apply the mod...

I have SMF 1.1.10 and I have the following mods:

1. Random_Quote 1.2.2.1
2. PM Readed 1.1
3. Aeva ~ Auto-Embed Video & Audio 7.0 
4. SMF Arcade 2.0.18   
5. Top 10 Posters and Topic Starters Stats (Today, This Week, This Month) 2.3.1
6. Pretty URLs 1.0RC   
7. Ad Managment 2.3   
8. Quick Moderation on Quick Reply 1.1
9. AjaxChat Integration 3.2.1
10. SMF Achat ALPHA 0.2.0   
11. Global Headers Footers 1.4.1
12. Personal Messages to Membergroups 1.1
13. Users Online Today Mod 1.4.0
14. TinyPortal 1.083
15. Simple Award System

Does anybody have any ideas why i can't get the media gallery?
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 26, 2009, 02:55:06 AM
@chinaren> you forgot the admin account. (I can't even *view* your gallery right now... <_<)

@anto74> uh, why buy Foxy! when you haven't even tested SMG..? Anyway -- send me an admin account + ftp details as well.

@paul> what error message?
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: paulmagno on October 26, 2009, 03:12:25 AM
Quote from: Nao/Gilles on October 26, 2009, 02:55:06 AM

@paul> what error message?

It's the pink box that pops up when I try to apply the mod...This is what it says:

Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

*by the way, it says "test failed" next to the listing " ./Themes/default/index.template.php" , under the category "install actions"
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Pentaxian on October 26, 2009, 06:17:28 AM
Quote from: Pentaxian on October 25, 2009, 10:47:38 AM
Quote from: Akyhne on October 25, 2009, 09:39:53 AM
Quote from: Pentaxian on October 25, 2009, 09:30:40 AM
Now I still have one problem. When I (in the albums admin panel) choose Albums/ Add general album I get a blank page and nothing else. What, please, can be the cause of that?
Any log errors?
No, none.

Can anyone tell me what can be wrong? Please.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 26, 2009, 06:18:26 AM
@paul> You realize it's not *our* fault and it's probably that you have plenty of mods already installed, right?
You should proceed with the install and parse the index template manually.

@Pentaxian> uninstall, clean up, reinstall.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Pentaxian on October 26, 2009, 06:20:19 AM
What do you mean with: clean up?
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 26, 2009, 06:33:57 AM
@pentaxian> make sure you have no mods lying around. SMG is a big one and makes sure not to conflict with other mods. But other mods may not be so careful. Just uninstall everything, install SMG, test, if it works, install other mods one by one and test every time.

Quote from: anto74 on October 26, 2009, 12:58:39 AM
I'm converting finally the smf gallery pro...but i have error...the step 3 , convert items, is without end...continuos loop....reload page....1second-...reload page...1 second etc etc..
www.naturainminiatura.com/smf/mgconverter_sgp.php
It's testing forum, SMF Gallery and SMF Media Gallery installed and works without problems.
I have buyed Foxy addon too!!!!  :D  :-[
Thanks
Antonio
I don't understand. I'm currently running your converter and it's doing just fine. Why are you considering this an error? It's even giving you a counter for current conversion %...!
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Pentaxian on October 26, 2009, 06:36:13 AM
Thank you for the quick response, Gilles!

Edit: And it worked just fine!
Thanks again. Keep up the good work!
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: anto74 on October 26, 2009, 06:48:08 AM
Quote from: Nao/Gilles on October 26, 2009, 06:33:57 AM
I don't understand. I'm currently running your converter and it's doing just fine. Why are you considering this an error? It's even giving you a counter for current conversion %...!
Uhm...in Safari and IE8 the counter, yesterday, reload endless....
Ok, thanks for your help  :)
Antonio
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: anto74 on October 26, 2009, 08:17:32 AM
Quote from: anto74 on October 26, 2009, 06:48:08 AM
Quote from: Nao/Gilles on October 26, 2009, 06:33:57 AM
I don't understand. I'm currently running your converter and it's doing just fine. Why are you considering this an error? It's even giving you a counter for current conversion %...!
Uhm...in Safari and IE8 the counter, yesterday, reload endless....
Ok, thanks for your help  :)
Antonio
Ok Nao/Gilles,
i saw that all  the photos have been converted, thanks!
But when i have to convert the photos on my official forum, will i still have the same problems with the converter?
I still can't understand why during the conversion, the browser's page refreshes continuosly....
Thanks
Antonio

Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: paulmagno on October 26, 2009, 09:58:26 AM
Quote from: Nao/Gilles on October 26, 2009, 06:18:26 AM
@paul> You realize it's not *our* fault and it's probably that you have plenty of mods already installed, right?
You should proceed with the install and parse the index template manually.


I'm not blaming anyone...Just saying that I can't get it to work...

...and I'm just a regular senior citizen...what's "parse" and what's "the index template?"
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: leighlife on October 26, 2009, 10:18:23 AM
An empty yellow bar recently turned out to be a reported item.  The following got it out of hiding:

Code (Themes/default/MGallery.template.php) Select
64c64
<               if ($mgalSettings['num_unapproved_items'] > 0)
---
>               if ($mgalSettings['num_reported_items'] > 0)
66,67c66,67
<               if ($mgalSettings['num_unapproved_comments'] > 0)
<                       printf($txt['mgallery_reported_coms_notice'] . '<br />', $scripturl.'?action=mgallery;area=moderate;sa=reports;comments;' . $context['session_var'] . '='.$context['session_id'], $mgalSettings['num_reported_comments']);
---
>               if ($mgalSettings['num_reported_comments'] > 0)
>                       printf($txt['mgallery_reported_comments_notice'] . '<br />', $scripturl.'?action=mgallery;area=moderate;sa=reports;comments;' . $context['session_var'] . '='.$context['session_id'], $mgalSettings['num_reported_comments']);


Code (Themes/default/languages/MGallery.english.php) Select
532c532
< $txt['mgallery_reported_comments_notice'] = 'There are $2$d reported comment(s). <a href="%1$s">Click here to view them</a>';
---
> $txt['mgallery_reported_comments_notice'] = 'There are %2$d reported comment(s). <a href="%1$s">Click here to view them</a>';
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: leighlife on October 26, 2009, 11:44:20 AM
After a call to getAlbums('', 0, false) $context['mgallery_album_list'] contains many duplicate album IDs.  Is there a reason for this I'm missing?
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 26, 2009, 12:53:29 PM
@anto> The problem is with your server I believe. What I don't understand is that it continuously sends a number of done items that can go higher or lower every time... It shouldn't. The code itself doesn't allow this.
Also, it supposedly had 2660 items to convert, but it completely "froze" at 1010. I figured maybe the gallery_pics table had entries for thumbnails, but I don't remember this. Anyway --- after it reached 1010 and stayed there for a couple of minutes, I simply changed "step=3" in the URL to "step=4" to force going to the next step, and it worked just fine.

@paulo> I don't have time to take you step by step through the complete installation of a mod. If you need help installing SMG, I can provide it for a fee. If you need free help, ask the support boards on simplemachines.org, not here.

@leighlife> You're my favorite bug fixer :) Since no one ever reported a comment on my site, I couldn't see this happen. This is Dragooon's code (yeah I'm quick & good at lifting responsibility off myself :P)
The fix will be in v2.0.1.

Regarding album IDs... It may be something I didn't think about. The problem with the default behavior in getAlbums() is that it sets $separate_children to false, which in turn makes children appear in both the root section, and as a sub-albums below the parent. The mgallery_album_list thing is then filled with these children twice.
Could you look into Subs-MGallery.php, line 1146, and replace add the "if" test to it, like this?

foreach ($albums as $tree)
if (empty($tree['id_parent']))
recursiveAlbums($album_list, $tree);
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: CiQ on October 26, 2009, 01:32:08 PM
Nao/Gilles,
how i can delete quota prof manualy? i can delete only record of profile in db?
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 26, 2009, 01:52:11 PM
Nope!
I've been looking into it... Open MGallery-Admin.php and replace the original MGal_admin_quotas function with this:

// Membergroup quota's main function. This is soooo similar to permission profiles...
function MGal_admin_quotas()
{
global $txt, $context, $mgalFunc, $user_info, $mgalSettings;

// Doing any do-da-do?
$do = array(
'view' => 'MGal_admin_quotas_view',
'edit' => 'MGal_admin_quotas_edit',
'add' => 'MGal_admin_quotas_add',
'getalbums' => 'MGal_admin_quotas_getAlbums',
);

if (isset($_REQUEST['do'], $do[$_REQUEST['do']]))
return $do[$_REQUEST['do']]();

// Homepage then...

// Maybe deleting something?
if (isset($_POST['mgal_delete_profs']) && !empty($_POST['del_prof']))
{
// Get the ones to delete
$to_delete = array();
foreach ($_POST as $k => $v)
if (substr($k, 0, 12) == 'delete_prof_' && substr($k, 12) > 1)
$to_delete[] = substr($k, 12);

if (empty($to_delete))
fatal_lang_error('mgallery_accessDenied', !empty($mgalSettings['log_access_errors']));

// Profile to switch to..
$id_profile = (int) $_POST['del_prof'];
if (empty($id_profile) || in_array($id_profile, $to_delete))
fatal_lang_error('mgallery_albumSwitchError', false);

if ($id_profile != 1)
{
$request = $mgalFunc['db_query']('
SELECT id
FROM {db_prefix}mgallery_variables
WHERE id = {int:id}',
array(
'id' => $id_profile,
),__FILE__,__LINE__);
if ($mgalFunc['db_num_rows']($request) == 0)
fatal_lang_error('mgallery_accessDenied', !empty($mgalSettings['log_access_errors']));
$mgalFunc['db_free_result']($request);
}

$mgalFunc['db_query']('
DELETE FROM {db_prefix}mgallery_variables
WHERE id IN ({array_int:id})
AND type = {string:prof}',
array(
'id' => $to_delete,
'prof' => 'quota_prof',
),__FILE__,__LINE__
);

if ($mgalFunc['db_affected_rows']() > 0)
$mgalFunc['db_query']('
UPDATE {db_prefix}mgallery_albums
SET id_quota_profile = {int:id_profile}
WHERE id_quota_profile IN ({array_int:profiles})',
array(
'id_profile' => $id_profile,
'profiles' => $to_delete,
),__FILE__,__LINE__
);

$mgalFunc['db_query']('
DELETE FROM {db_prefix}mgallery_quotas
WHERE id_profile IN ({array_int:id})',
array(
'id' => $to_delete,
),__FILE__,__LINE__);
}

// Load the profiles
$request = $mgalFunc['db_query']('
SELECT id, val1
FROM {db_prefix}mgallery_variables
WHERE type = {string:type}',
array(
'type' => 'quota_prof',
),__FILE__,__LINE__
);
$context['mgallery_profiles'] = array(
1 => array(
'name' => $txt['mgallery_default_perm_profile'],
'id' => 1,
'undeletable' => true,
'albums' => 0,
),
);
while ($row = $mgalFunc['db_fetch_assoc']($request))
$context['mgallery_profiles'][$row['id']] = array(
'id' => $row['id'],
'name' => $row['val1'],
'albums' => 0,
);
$mgalFunc['db_free_result']($request);

// Load the album count..
$request = $mgalFunc['db_query']('
SELECT id_quota_profile, COUNT(*) AS total
FROM {db_prefix}mgallery_albums
GROUP BY id_quota_profile',
array(),__FILE__,__LINE__
);
while ($row = $mgalFunc['db_fetch_assoc']($request))
if (isset($context['mgallery_profiles'][$row['id_quota_profile']]))
$context['mgallery_profiles'][$row['id_quota_profile']]['albums'] = $row['total'];
$mgalFunc['db_free_result']($request);

$context['sub_template'] = 'mgallery_admin_quotas';
$context['page_title'] = $txt['mgallery_admin_labels_quotas'];
}


It should work this time. It appears now that Dragooon never actually wrote the code to remove the quota profiles... He probably added a placeholder and then forgot to do it. I copied/pasted the code from the permission profiles area, and fixed the variables to point to quota profiles instead.

Please tell me if it works this way.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: leighlife on October 26, 2009, 02:22:18 PM
Quote from: Nao/Gilles on October 26, 2009, 12:53:29 PM
The mgallery_album_list thing is then filled with these children twice.
That's exactly the problem in the album move fault I mentioned previously: the reorderAlbum() function is wading through a list with duplicates and thus setting the global album order values incorrectly for them.

Quote from: Nao/Gilles on October 26, 2009, 12:53:29 PM
Could you look into Subs-MGallery.php, line 1146, and replace add the "if" test to it, like this?

foreach ($albums as $tree)
if (empty($tree['id_parent']))
recursiveAlbums($album_list, $tree);

The index is 'parent' and that now seems to have fixed the album move too, thanks!  I have two other changes in for that which I'll post later if I'm convinced they're necessary - so far I think they are.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: paulmagno on October 26, 2009, 02:45:40 PM
Quote from: Nao/Gilles on October 26, 2009, 12:53:29 PM

@paulo> I don't have time to take you step by step through the complete installation of a mod. If you need help installing SMG, I can provide it for a fee. If you need free help, ask the support boards on simplemachines.org, not here.


Well, you don't have to be rude...I was referred to this section because they said I needed to go to the mod section for help with a mod...and I certainly see you willing to help others...did it ever occur to you that not everyone knows programming and that maybe the people who needed the most help were the ones without that background?

In my younger days, I was a boxing trainer...I would not treat someone like a complete moron just because they didn't know everything about boxing as soon as they walked into the gym...

I had one very simple question...and one very simple follow up question that you could've answered in 5 seconds, yet you opted to use those five seconds to act like a horse's behind...Good Day
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 26, 2009, 03:17:04 PM
@paul> When has "straightforward" become "rude"? I'm not paid for support (nor for anything else.) I don't have time and I'm doing all of this on the little time I've got left. Should I be on my knees begging for your pardon because I dared not take the time to say "Please" and "Thank you" in my post?! Pff.

@leighlife> Yeah, that was 'parent', it always is... I'll never get used to that. That's another inconsistency in the original table structure. Good to know it fixed several issues!
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: paulmagno on October 26, 2009, 03:49:22 PM
Quote from: Nao/Gilles on October 26, 2009, 03:17:04 PM
@paul> When has "straightforward" become "rude"? I'm not paid for support (nor for anything else.) I don't have time and I'm doing all of this on the little time I've got left. Should I be on my knees begging for your pardon because I dared not take the time to say "Please" and "Thank you" in my post?! Pff.


It's called common courtesy...maybe you should step away from your computer world for a bit and take some classes in being a human being... Pff.

I bet I figure out the answer to my problem before you figure out the answer to yours...
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 26, 2009, 04:01:59 PM
Quote from: paulmagno on October 26, 2009, 03:49:22 PM
It's called common courtesy...maybe you should step away from your computer world for a bit and take some classes in being a human being... Pff.
Okay, then we'll ask the other members here...

Guys, what do you think? Do you think this man can accuse me of being rude to him, and then pretend I don't know anything about life? Or do you think I'm already nice enough by replying to his post to give him clues on what to do when I clearly don't have time to deal with newbies? (And, should I repeat myself, I'm trying to use that time to work on all of this thing I'm giving away for free to everyone, including people like him??)
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Arantor on October 26, 2009, 04:10:27 PM
Nao, we all here appreciate that you have given an awful lot to the SMF community, especially with some of its largest and most popular mods, and yes, it does take someone special to come back to that day after day after day to provide support.

You and I are actually a little alike at times, I know I'm guilty of answering a question with a one-line snap that makes perfect sense to me but not for anyone who is not a programmer or at least modestly familiar with SMF.

But remember that we were once neophytes to SMF too and maybe we wouldn't have gotten so far with such brisk answers. (Do you have access to the CSH group? Has a number of handy dandy manual links that can help in such situations)


paulmagno - the following page will explain what Nao was getting at: Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)

The issue you're getting specifically is that one mod has already modified your index.template.php file and now SMG can't do the same because the code is different to what it expected to find.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: anto74 on October 26, 2009, 04:11:01 PM
Quote from: Nao/Gilles on October 26, 2009, 12:53:29 PM
@anto> The problem is with your server I believe. What I don't understand is that it continuously sends a number of done items that can go higher or lower every time... It shouldn't. The code itself doesn't allow this.
Also, it supposedly had 2660 items to convert, but it completely "froze" at 1010. I figured maybe the gallery_pics table had entries for thumbnails, but I don't remember this. Anyway --- after it reached 1010 and stayed there for a couple of minutes, I simply changed "step=3" in the URL to "step=4" to force going to the next step, and it worked just fine.


Ok Nao/Gilles, i understand!  :)
Thanks again!
Anto
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: paulmagno on October 26, 2009, 04:42:09 PM
Quote from: Arantor on October 26, 2009, 04:10:27 PM
Nao, we all here appreciate that you have given an awful lot to the SMF community, especially with some of its largest and most popular mods, and yes, it does take someone special to come back to that day after day after day to provide support.

You and I are actually a little alike at times, I know I'm guilty of answering a question with a one-line snap that makes perfect sense to me but not for anyone who is not a programmer or at least modestly familiar with SMF.

But remember that we were once neophytes to SMF too and maybe we wouldn't have gotten so far with such brisk answers. (Do you have access to the CSH group? Has a number of handy dandy manual links that can help in such situations)


paulmagno - the following page will explain what Nao was getting at: Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)

The issue you're getting specifically is that one mod has already modified your index.template.php file and now SMG can't do the same because the code is different to what it expected to find.

Thank you, Arantor...I wasn't asking for someone to hold my hand...just someone to point me in the right direction using terms a beginner could understand...I don't know a parse from a purse at this point  :D And it took less of your time than to answer with a snippy remark!

If I had talked down to every beginner who came into my gym, I wouldn't have been in business for 50 years...just because YOU know something, that doesn't mean everyone has to know the same thing...Actually, that's the reason we're asking for help...because we DON'T know...

thanks again...
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 26, 2009, 05:03:35 PM
Quote from: Arantor on October 26, 2009, 04:10:27 PM
You and I are actually a little alike at times, I know I'm guilty of answering a question with a one-line snap that makes perfect sense to me but not for anyone who is not a programmer or at least modestly familiar with SMF.
I don't know how you do it anyway -- have you seen your daily post count average? ;)

QuoteBut remember that we were once neophytes to SMF too and maybe we wouldn't have gotten so far with such brisk answers.
Technically, my first ever post on simplemachines.org was a new topic to explain how to show the number of unread posts per topic in "unread posts" and other "latest topics" features. I guess that doesn't qualify as a newbie post so it's not something I could understand.
Leap back 10 years. I built my first website in 3 days back in 1996, one week after I first hit the web. The first version already had 30 pages, stylesheets and stuff. I guess one could say I've always been a web enthusiast. Leap back 10 more years. I've been programming since '86, even before I had a machine to actually test my code on (sic).

I'm not bragging or anything. I'm just trying to explain that I could hardly "remember" what it was like to be a newbie. I do see newbies on a daily basis (if only in my family), but it's easier to explain in real life, isn't it? It's not like I ever needed to train for online tech support. So, the tech support work I do here, I do as a favor to the community, not because I want to do it. I'm hoping to improve my mods enough to be able to completely stop giving support because people won't need to. The fact that I don't understand why someone who builds a forum would be unwilling to study how it works, doesn't prevent me from doing my best to help these users not have to go that way.

For instance, I'm currently waiting for anyone with mod_security to contact me and provide me with access to their board so that I could test some techniques to fix their problems once and for all. Unfortunately I have yet to receive an answer. Because of this, I will be more likely to be straightforward to someone who complains that SMG doesn't work on a mod_security-enabled environment. Same for tech support actually -- the more I'll see people complain that I'm doing a poor job at being a kind/nice/hypocrit contact, the more I'll be enclined to tell them they're getting what they paid for (i.e. nothing), and they'll get better support if they donate. (Which, of course, they won't do because "this guy is such a d**k".) Endless cycle. I can live with it. I'm not going to change my personality because working on SMF projects is becoming more and more of a hassle -- if only because my girlfriend keeps complaining precisely that I'm not making any money out of it. Try justifying your community work when you aren't being forced by a judge to do it, or a higher power that invites me to gain entry to Heaven by helping others. Sorry, I'm no believer. I just like doing these mods. But it doesn't mean I like doing tech support for it (and obviously I quite hate that.)

Quote(Do you have access to the CSH group? Has a number of handy dandy manual links that can help in such situations)
I don't have access to anything but the beta boards. I am not part of the team. The team welcomes my free, unending work, but is unwilling to deal with its owner. I got that long ago and perhaps this is also part of why I see no reason to do any favors to the community. I just work on stuff I like, and I try to provide honest support on it. But at this point, I'd much rather be working on underground mods that no one ever uses. That would save me all of the drama, I guess.

QuoteThe issue you're getting specifically is that one mod has already modified your index.template.php file and now SMG can't do the same because the code is different to what it expected to find.
If only SMF2 could come out of beta before 2012... That would be one less thing to deal with for mod authors, lol.

(Ahhh, it feels better to get all of that off my mind :P)
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Arantor on October 26, 2009, 05:27:42 PM
Minor derail, sorry...

Quote from: Nao/Gilles on October 26, 2009, 05:03:35 PM
I don't know how you do it anyway -- have you seen your daily post count average? ;)

Is that counting the fact that my first post was in April this year, or from the fact that I have an account from 2006?

Quote from: Nao/Gilles on October 26, 2009, 05:03:35 PM
It's not like I ever needed to train for online tech support. So, the tech support work I do here, I do as a favor to the community, not because I want to do it. I'm hoping to improve my mods enough to be able to completely stop giving support because people won't need to. The fact that I don't understand why someone who builds a forum would be unwilling to study how it works, doesn't prevent me from doing my best to help these users not have to go that way.

I know precisely what you mean, and it's the one reason I do only little mods. Gives me something to play around with, without the headache of major support endeavours. They don't have much in them to go wrong, and the ones that do make template edits are very selective in that, for that reason. Less angles for necessity for support.

I've also wondered that; but the days are long gone where websites are built by enthusiasts or technologists solely. Today's web is made up of the greatest and most wonderfully diverse of people, from all walks of life. And some of them want to start a community, and SMF makes it possible to do without being a technologist or a programmer or engineer.

I hear you on the tech support front; I've been a paid-for tech support for a company before now, never again.

The one issue (and it's not exactly a problem) is that people expect modders to be held to the same standard as SMF itself, i.e. being on call for support, maintaining, updating etc etc. but they don't realise how much time it takes; we invariably are development, support, customising, and most mods don't have more than one person looking after them. And, I'll be honest, it can grate how ungrateful and even spiteful some attitude I've seen (though, fortunately, not experienced on my mods) towards the modders gets.

Developers rarely make the best support people, IMO. Developers are better at making new stuff than rehashing old stuff.

QuoteTry justifying your community work when you aren't being forced by a judge to do it, or a higher power that invites me to gain entry to Heaven by helping others. Sorry, I'm no believer. I just like doing these mods. But it doesn't mean I like doing tech support for it (and obviously I quite hate that.)

You and I write mods because it's something cool and engaging. The downside is supporting it, but we'll figure out a solution someday :)

QuoteI don't have access to anything but the beta boards. I am not part of the team. The team welcomes my free, unending work, but is unwilling to deal with its owner. I got that long ago and perhaps this is also part of why I see no reason to do any favors to the community. I just work on stuff I like, and I try to provide honest support on it. But at this point, I'd much rather be working on underground mods that no one ever uses. That would save me all of the drama, I guess.

CSH is a requestable group (and, I believe, auto joinable) that grants access to the Support Helper board, but more importantly for you, a dropdown full of handy manual links such as the one to the manual page for manual mod installation. There is also a Greasemonkey script somewhere that lets you fill in your own links and select from a dropdown but I don't think it's RC2 ready.

QuoteIf only SMF2 could come out of beta before 2012... That would be one less thing to deal with for mod authors, lol.

For the most part my own stuff moving to RC2 is no huge deal, certainly less work than backporting from 2.0 to 1.1, but I'm not doing anything huge, which is probably why.

Quote
(Ahhh, it feels better to get all of that off my mind :P)

I bet :) Have a good day!
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 26, 2009, 06:29:38 PM
Arantor, will answer tomorrow.

To anyone who has a mod_security-enabled server, or wants to have one, or may have one because of crashes but couldn't be so sure...

I may have good news for you.
http://smf-media.com/community/index.php?topic=1324.new#new

If you want SVN access to download revision 1135, please PM me over there using your account. (Honestly I think nothing prevents me from opening SVN access to anyone, but I'll let Dragooon decide for himself.)
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: chinaren on October 26, 2009, 07:13:56 PM
Nao, huge thank-you for your help fixing my gallery!  You are a hero! 


Much Kudos!  :D :D :D :D :D
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: paulmagno on October 26, 2009, 10:53:30 PM
<---- still not sure how asking for help offended Nao, but gets the hint...This is for tech people only and I won't darken your doorstep again with such "silly" questions as "why won't this work?"

The manuals explain how to download the mods...I followed the directions and it didn't work...so, now what? I guess just give up...

as for this little gem: "The fact that I don't understand why someone who builds a forum would be unwilling to study how it works, doesn't prevent me from doing my best to help these users not have to go that way."

Well, maybe, we aren't all as brilliant as you and simply don't understand the terminology involved. What if you walked into a bakery and didn't immediately understand all of the vocab or work involved in making a chocolate cake...would the head baker be right in looking down on you? Or would he be a classless jerk for treating you as an idiot for not knowing something that you had absolutely no need to know previously?

...it takes less effort to be a decent human being than it does to lord your knowledge over others and then whine about all the time you volunteer...poor baby...

I know my words are being wasted on such a petty individual, so I won't be back...take your silly mod and download it into your package management system! You act like you cured cancer or something...Geesh (Ahhh, it feels better to get all of that off my mind  :P )
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: chinaren on October 27, 2009, 12:13:26 AM
Paul, if you're still here.  'Simple' answer is:


You need to go to where you downloaded the mod from, and click on the manual instructions.  Find the file(s) in the mod that failed the test and try to locate all the parts in the file on your forum (you'll need to FTP to your forum and download the file first.  Best to download twice, one as backup and one to amend).  
What's happened is that some other mod has modified a part of the code that this mod is trying to find, so this mod can't find it.  Locate where it should be and then modify it manually.  Repeat for all parts of the affected files and save to your disc.   THEN apply the mod on the forum, THEN upload the amended files to where they should be via FTP.
Quote from: paulmagno on October 26, 2009, 03:12:25 AM
Quote from: Nao/Gilles on October 26, 2009, 02:55:06 AM

@paul> what error message?

It's the pink box that pops up when I try to apply the mod...This is what it says:

Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

*by the way, it says "test failed" next to the listing " ./Themes/default/index.template.php" , under the category "install actions"
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 27, 2009, 02:34:36 AM
@chinaren> You're welcome.

And now for the fun part......... (The one where I help people and they treat me like ****** because I didn't smile and thank them for coming to ask for the free support. Is the bowing down supposed to be part of the American way of life or something?)

Quote from: paulmagno on October 26, 2009, 10:53:30 PM
would the head baker be right in looking down on you?
I wasn't friggin' looking down on you at all! I JUST DON'T WASTE MY TIME ON FORMALITIES FOR TECH SUPPORT!
Your bakery example is stupid. The baker is hoping to sell me something! I'M NOT! I don't have anything to sell you! Why should I bow down to you!

Now I do look down on you, though! Because you're only a waste of time.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 27, 2009, 05:46:36 AM
Where was I?

Quote from: Arantor on October 26, 2009, 05:27:42 PM
Is that counting the fact that my first post was in April this year, or from the fact that I have an account from 2006?
The fact you started in April. (I, too, opened an account long before I started using it. And I even had an additional one-year gap before I really became a regular.)

And I thought I was creepy.  :o

QuoteI know precisely what you mean, and it's the one reason I do only little mods. Gives me something to play around with, without the headache of major support endeavours.
Sure. But the only mod I really created myself is Footnotes. It's a real small thing.
Aeva? My first mod, but inherited from Karl... I had no idea where I was stepping into. Tough first year. Had many breakdowns. Ended up dropping development back in May, but then again the latest version was very stable. After I realized it was slowing down and everything, I decided to resume development, if only to fix YouTube support. Now it's come to a manageable size -- people stopped requesting new website integrations, and the post moderation makes it even easier. What a mess it could have become...!
SMG is yet another problem -- it used to be very manageable because we were two people on the project. Unfortunately, the other one left it without warning and I ended up having to fix his own bugs. This has left me very bitter because I had to go through the entire 2.0 Beta process by myself, without any help... So yes, I'm doing my best to give SMG what it deserves (hard work), but SMG isn't giving me back anything in return, so obviously it tends to make me even more bitter.
I'm thinking of stopping development for a few months, like I did for Aeva, but before that I also need to fix the issues that cause most people to come and ask for help. SMF1 menu edits aren't going to disappear overnight unfortunately (although, I'm wondering... Would it be entirely an unorthodox way of programming to post-replace the output buffer with a Gallery link somewhere? It could be possible if all custom themes respect a certain logic such as putting the menu inside a table with a specific class, or something), but as for the rest, I'm sure I can fix mod_security now that I know 99% of these problems are due to the ";id=" URLs.

QuoteI've also wondered that; but the days are long gone where websites are built by enthusiasts or technologists solely. Today's web is made up of the greatest and most wonderfully diverse of people, from all walks of life. And some of them want to start a community, and SMF makes it possible to do without being a technologist or a programmer or engineer.
I guess so.
But it was already the case back in 2002, when I started my own community. I didn't have much PHP knowledge at the time, okay I had absolutely no PHP knowledge, and learned as it came. At the time, forum software was just as easy to use as now, I think. I tried phpBB, Invision and SMF, and had no problem with either of these. The only concern was with customization. I wanted to have this or that feature and that's when I started really delving into the code. But a regular guy can install SMF (either years ago or now) without any knowledge of PHP. If they don't want to manage a website at all, they can also simply use pre-existing forum platforms (such as noisen.com :P), where they can create their own communities, boards, blogs, etc.
I'm guessing paul is the kind of person who would be better served with such a pre-built platform.

QuoteI hear you on the tech support front; I've been a paid-for tech support for a company before now, never again.
I've myself dropped development of Kyodai Mahjongg for many reasons, one of the better ones being that my ex had left time, and she was in charge of tech support... I was horrible at tech support (hard to guess, eh? :o), and after months of searching for a new tech support handler that never came (it was a paid job, mind you!), I gave up on tech support altogether... Was too tiresome. I have absolutely no problems with fixing bugs for people. But communicating with them is harder. Especially when they're n00bs.

QuoteThe one issue (and it's not exactly a problem) is that people expect modders to be held to the same standard as SMF itself, i.e. being on call for support, maintaining, updating etc etc. but they don't realise how much time it takes;
Actually, I think the SMF team should be commended as well for support, maintaing, updating etc etc. There's a level of quality everywhere that I have yet to see elsewhere. And they're not paid either! It's important to remember that. And they don't complain. Aw, screw them! I'm the one who's miserable here! Nah!

Quotewe invariably are development, support, customising, and most mods don't have more than one person looking after them.
Usually, these mods are given up to someone else when the original author is unwilling to keep maintaining/supporting it. So it's not that much of an issue I suppose.

QuoteDevelopers rarely make the best support people, IMO. Developers are better at making new stuff than rehashing old stuff.
What I need is someone who could forward me all of the issues/bugs/questions that are unanswered as of yet, so I could answer back, and they could transmit back to the original requesters. That way, I wouldn't have to deal with "acting like a smiling baker who wants to sell his bread even though he actually has nothing to sell and he has no reason to be smiling", or answering support questions that have been answered thousands of times before, etc.

Of course, just like for Kyodai Mahjongg, I won't find that jewel... Especially since it's an unpaid job this time :P

QuoteYou and I write mods because it's something cool and engaging. The downside is supporting it, but we'll figure out a solution someday :)
Quick question: how can you write 16.000 posts in so little time, and release mods as well etc.?
Are you working quasi-fulltime on SMF like I'm doing? Do you still deal with your own website? (I myself have difficulty keeping up with it... Especially since the release of Curve -- I have to update it to my custom code and I'm still weeks away from being finished...)

QuoteCSH is a requestable group
Oh-- then scratch what I said.

QuoteFor the most part my own stuff moving to RC2 is no huge deal, certainly less work than backporting from 2.0 to 1.1, but I'm not doing anything huge, which is probably why.
It's not about the difficulty of moving to RC2 (since I'm always working on the latest SVN, I'm more familiar with the latest RC than with previous releases), it's about the fact that most people are still using SMF1 and, at this point, it's crap. It's just like SMG2: I ended the beta session because I realized many people were still using SMG1 because it's "stable", even though the beta SMG2 was ten times more stable than SMG1. So it's still a bit buggy here and there, but not much really. I don't see any game-breaking bug around anyway. I'll be releasing v2.0.1 this week though. Especially now that I've got the mod_security fix ready.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: CiQ on October 27, 2009, 08:19:52 AM
Nao/Gilles, it work! thanks.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Nao 尚 on October 27, 2009, 09:43:19 AM
Great! I was hoping for that :)
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: SMGTeam on October 27, 2009, 10:02:25 AM
New version is out! With all of the little fixes I cooked up this week. :)
Hopefully everything will go smoothly and mod_security (among other things) will be a thing of the past!

Version 2.0.1                                    October 27, 2009
-----------------------------------------------------------------
+ Added new admin setting that should let you fix (once and for all?) mod_security error pages, by
  replacing ';id=' links to '&id=' on the fly. You can enable it even if SMG can't figure out whether
  mod_security is installed (because sometimes Apache won't even let you know the little monster is there.)
! Fixed a rare bug where a dummy thumbnail was being inserted when the embed code would fail creating one
! Don't create a new media_handler object just for retrieving the extensions list in getEncryptedFilename()
- Removed .htaccess file provided for mod_security hack, now that there's another trick available within SMG
* Moved the... 'move' icons from the... Move Albums section to the left of album names rather than below them
! In rare cases, the output buffer stack wasn't being cleared entirely when requested
! Fixed an error where $context['mgallery_album_list'] would list sub-albums twice
! Retrieving meta data for FLV file dimensions may be more reliable in some cases
! Fixed bug preventing quota profiles from being deleted
! The Reported Items/Comments warning bar was broken
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: littleone on October 27, 2009, 01:15:23 PM
Quote from: Nao/Gilles on October 23, 2009, 06:10:33 PM
@littleone> Then you gave wrong permissions. That error message shows up when a user isn't allowed to upload the type of file he attempts to upload. (I think the quota stuff is misleading -- they can have a 1MB quota for audio files and still not be allowed to upload them...)
Can they check whether they have rights showing up in mass upload?

Anyway--> permission profiles.

they can upload EVERY OTHER File type BUT gif, so it can't be anything permission related.  And they have every permission available to them except admin of the gallery.  They have mass upload available too.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Arantor on October 27, 2009, 01:51:27 PM
Quote from: Nao/Gilles on October 27, 2009, 05:46:36 AM
This has left me very bitter because I had to go through the entire 2.0 Beta process by myself, without any help... So yes, I'm doing my best to give SMG what it deserves (hard work), but SMG isn't giving me back anything in return, so obviously it tends to make me even more bitter.

That's a horrible situation to be in; fortunately I've missed that sort of thing for the most part, but I can see how it can make you feel bitter and resentful.

Quote
I'm thinking of stopping development for a few months, like I did for Aeva, but before that I also need to fix the issues that cause most people to come and ask for help. SMF1 menu edits aren't going to disappear overnight unfortunately (although, I'm wondering... Would it be entirely an unorthodox way of programming to post-replace the output buffer with a Gallery link somewhere? It could be possible if all custom themes respect a certain logic such as putting the menu inside a table with a specific class, or something), but as for the rest, I'm sure I can fix mod_security now that I know 99% of these problems are due to the ";id=" URLs.

mod_security, how do I hate thee, let me count the ways.

SMF1 menu edits are the reason I don't write many SMF1 mods now. E.g. my Buddy Page mod would be quite doable on SMF1 without much effort but because I have neither the time nor the patience to do endless menu edits, I won't. (I'd rather work on something new rather than endlessly rehash something existing)

A post replace would be unorthodox but I wouldn't have a problem with it, either on my own or speaking from the purple badge. In some ways you're almost supposed to do that.

Personally, I don't think it would be such a bad thing for you to stop SMG development of new features; get the last remaining issues cleared up, then just step back a little and concentrate on regaining your mojo, so to speak.

QuoteBut it was already the case back in 2002, when I started my own community. I didn't have much PHP knowledge at the time, okay I had absolutely no PHP knowledge, and learned as it came. At the time, forum software was just as easy to use as now, I think. I tried phpBB, Invision and SMF, and had no problem with either of these. The only concern was with customization. I wanted to have this or that feature and that's when I started really delving into the code. But a regular guy can install SMF (either years ago or now) without any knowledge of PHP. If they don't want to manage a website at all, they can also simply use pre-existing forum platforms (such as noisen.com :P), where they can create their own communities, boards, blogs, etc.
I'm guessing paul is the kind of person who would be better served with such a pre-built platform.

I started dynamic websites in 2002 in ASP Classic (yay for VBS) but yeah, I'm amazed at how easy the pre-built platforms are getting now. But as ever customisation is increasingly something that people want to be able to do and some seem to feel it is a right and even expected of the developer to provide endless support and customisation, but as ever real life gets in the way ahead.

QuoteActually, I think the SMF team should be commended as well for support, maintaing, updating etc etc. There's a level of quality everywhere that I have yet to see elsewhere. And they're not paid either! It's important to remember that. And they don't complain. Aw, screw them! I'm the one who's miserable here! Nah!

But remember there are a lot more of them/us. And SMF has been around a while so it's not like it's software that can't be explored and understood. But as ever more people would probably be good.

QuoteWhat I need is someone who could forward me all of the issues/bugs/questions that are unanswered as of yet, so I could answer back, and they could transmit back to the original requesters. That way, I wouldn't have to deal with "acting like a smiling baker who wants to sell his bread even though he actually has nothing to sell and he has no reason to be smiling", or answering support questions that have been answered thousands of times before, etc.

Indeed, I hear you. Everyone assumes that we like writing code and telling everyone how to use it and how to edit it and so on. But in reality we like writing it and moving on to the next thing without endlessly going over and over back through it.

I have to admit I do get frustrated when the same question is answered over and over before and because people don't always spend a little time looking or using the search function before posting... one thing recently pointed out somewhere was the idea of a support teddy bear. Have people explain problems to a teddy bear and once they've done that if they still haven't got an answer, to ask the support guy. Amazing how often a little time gets there.

QuoteQuick question: how can you write 16.000 posts in so little time, and release mods as well etc.?
Are you working quasi-fulltime on SMF like I'm doing? Do you still deal with your own website? (I myself have difficulty keeping up with it... Especially since the release of Curve -- I have to update it to my custom code and I'm still weeks away from being finished...)

Well, one theory that's been put out is that I'm a cyborg from the time of SMF 7 (which as Eliana confirms, has time travel :D) but in reality it's being unemployed and spending 12-16 hours here per day, and doing at least 100 posts a day nearly every day.

QuoteIt's not about the difficulty of moving to RC2 (since I'm always working on the latest SVN, I'm more familiar with the latest RC than with previous releases), it's about the fact that most people are still using SMF1 and, at this point, it's crap. It's just like SMG2: I ended the beta session because I realized many people were still using SMG1 because it's "stable", even though the beta SMG2 was ten times more stable than SMG1. So it's still a bit buggy here and there, but not much really. I don't see any game-breaking bug around anyway. I'll be releasing v2.0.1 this week though. Especially now that I've got the mod_security fix ready.

SMF1 was great for its time. It's functional and stable. 2.0 however makes life WAY easier for people like us that want to do something a little different.

Classic example: there is a guy in the coding boards who is writing his first mods. He's at the stage of adding new entries to the menu, new actions, even new pages. But I doubt he'd be able to do it for 1.1 anywhere near as easily if only for the menu entry issue.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Arantor on October 27, 2009, 02:00:26 PM
Quote from: paulmagno on October 26, 2009, 10:53:30 PM
The manuals explain how to download the mods...I followed the directions and it didn't work...so, now what? I guess just give up...

Did you follow the manual instructions on it? Going to the mod's page, selecting your version and hitting Parse would give you the manual instructions. You'd be able to see what bit it's failing on in index.template.php which is why it fails.

QuoteWell, maybe, we aren't all as brilliant as you and simply don't understand the terminology involved. What if you walked into a bakery and didn't immediately understand all of the vocab or work involved in making a chocolate cake...would the head baker be right in looking down on you? Or would he be a classless jerk for treating you as an idiot for not knowing something that you had absolutely no need to know previously?

That head baker... I've been both sides of that metaphorical fence, so I think I understand where you're coming from. We all had to start somewhere, and yes it does take time to learn. But what I do have to say is that your question did receive an answer with the next step you need to take - the manual tells you how to manually install any mod, and it is simply a case of following "find this, add this" instructions. If you have trouble then, come back and we'll help you.

Quote...it takes less effort to be a decent human being than it does to lord your knowledge over others and then whine about all the time you volunteer...poor baby...

Without wishing to be rude, you are not doing yourself any favours. You've made your point that you're dissatisfied with the 'service', but note that if Nao is helping you, he's not making it better for everyone else. Also, a certain amount of his ire is from the fact that you were given some help but want more without doing any of the work; I believe his view is along the lines of helping people who are prepared to help themselves a little too.

For the head baker analogy, it'd be like asking the head baker about baking a cake, being given a recipe then wanting the baker to bake it for you.

Try the manual instructions. Let me know how it goes and if you're still having trouble then I'll see what I can do to help.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Sudhakar Arjunan on October 27, 2009, 02:47:11 PM
Quote from: SMGTeam on October 27, 2009, 10:02:25 AM
New version is out! With all of the little fixes I cooked up this week. :)
Hopefully everything will go smoothly and mod_security (among other things) will be a thing of the past!

Version 2.0.1                                    October 27, 2009
-----------------------------------------------------------------


Good work Team.

Will reinstall and update my smf.

SMF & Avea Mods were the only mods on SMF to be up to date.

Good Work Team .
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Dramber on October 27, 2009, 02:57:08 PM
Flawless update. Thanks you sir!
QuoteInitializing settings

1 new record(s) have been inserted into the settings table.
Full list: i_hate_modsecurity

This made me lol. My wife was very confused. :)
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: paulmagno on October 27, 2009, 03:28:40 PM
@Arantor

I wasn't looking for anyone to do the work for me...but when someone gives me an answer with a term that I don't know, how is it wrong for me to ask what that term means? Since then, I have taken your advice and I'm reading up on some things...

If the baker example is bad, let me give you one last comparison:

I volunteer my time at a tourist info booth downtown...If someone came up to me and asked where the museum was and I said, "on State Street..." Seeing that he's totally unfamiliar with my city, would it be fair for me to have a hissy fit if he asked "Thanks, but where's State Street?"

Would I be right in telling him "Figure it out! I learned the street names, why would you bother to visit a city where you didn't know where everything was?"

Well, from my experiences in Paris, that's pretty much what they do...so I guess I understand.

I know that Nao is a lot more important to this community than one old senior citizen looking to make a forum for other senior citizens who are also learning to use computers...so, like I said, I won't bother you anymore...but I refuse to let some punk beat up on me because he wants to feel important and lord what he knows over the rest...

Courtesy and civility are not dead...I know parents still teach good manners...even in France.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Soms on October 27, 2009, 04:05:43 PM
Quote from: paulmagno on October 27, 2009, 03:28:40 PM
@Arantor
Courtesy and civility are not dead...I know parents still teach good manners...even in France.

I thought I read somewhere in this thread that you said your goodbyes and said you were not coming back? Please stay away. If you don't like the service, you should take your business elsewhere. Stop using up valuable space here. And please, stop insulting a whole nation. You are proving by coming back and sniping that older people do not have a monopoly of wisdom.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Tiribulus on October 27, 2009, 04:34:49 PM
Quote from: paulmagno on October 27, 2009, 03:28:40 PM
<<< I volunteer my time at a tourist info booth downtown...If someone came up to me and asked where the museum was and I said, "on State Street..." Seeing that he's totally unfamiliar with my city, would it be fair for me to have a hissy fit if he asked "Thanks, but where's State Street?"  >>>

What if a mapped brochure that YOU produced for free were posted on the front of the Booth with all the hot spots highlighted because 10,000 people had already asked the same questions and you were on your 15th person that day asking you where State Street was when State Street is highlighted on the map?

What if, not having looked at the map that 16th person then wants you to go with them so they don't get lost? What if they demanded that you go with them as if their version of your volunteer services were owed to them because they were born? What if this happened every day for a couple years?

I'm not accusing you of all this, but these guys get this all the time. NAO won't be shocked when I say again that he doesn't always handle things the way I would, but people are different and I don't have to put up with late nights and hours in a text editor only to have people ask the exact same questions, many times in a foot stomping spoiled brat temper tantrum, the answers to which are sitting here in this thread or even in the release notes.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Arantor on October 27, 2009, 07:08:09 PM
What Tiribulus said is pretty much how it is, and given that Nao has two of the most popular mods on his hands, he gets asked the same questions day in, day out, and it will drive ANYONE to distraction.

As a future note, if someone drops a term on you you're not familiar with, we do have pretty comprehensive search facilities you can use to find the information yourself, even on a per-thread basis.


Please now, everyone has pointed out their frustrations, time to move on.
Title: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Bruno36 on October 28, 2009, 06:33:53 AM
Hello!

I can not find the link to begin installation.

(https://www.simplemachines.org/community/index.php?action=dlattach;topic=344381.0;attach=121498)

My version of SMF is SMF 2.0 RC1.2

Title: Re: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Akyhne on October 28, 2009, 06:40:16 AM
Hmm, did you have a previous version installed that you didn't uninstall, but just deleted? In other words; do you have an earlier version installed now?
Title: Re: Re: SMF Media Gallery (SMG) - 2.0 [Final] is out! (October 22)
Post by: Bruno36 on October 28, 2009, 06:43:34 AM
Hello!

I have uninstall the old version
I download the new version SMGMediaGellery-2.0.1
http://custom.simplemachines.org/mods/index.php?mod=1365
Title: Re: SMF Media Gallery (SMG) - 2.0 RC3+ out! (October 18)
Post by: PRaDiUS on October 28, 2009, 07:49:12 PM
Quote from: Nao/Gilles on October 21, 2009, 08:38:53 AM
If at some point in time I'm satisfied enough with SMG and the lack of work needed to support it etc., I may continue adding features to it after 2.0 and will consider this.

That's my idea:

- rename "general albums" to "featured albums",
- therefore allow admins to put a user album to the spotlight (i.e. the homepage),
- consider all albums to be "user albums" and when adding/editing them, instead of offering a list of membergroups with a checkbox for "view" permission, I'll be showing two checkboxes, one for "view" and one for "upload". (If any of these are disabled, only admins & album owners will be able to interact with the album at all.)

Hmm, maybe I could even put that in 2.0 but it would need testing. And editing all albums to set upload permissions of course.

@Nao

Getting back to you a little late on this... but that sounds like a great idea! I do like how general albums and user albums are listed separate. My forum is for video games and currently I am using User Albums to create an album for each Xbox360 game individually. I'm using General Albums as a place for people to post pretty much anything that has nothing to do with gaming. It works out really well and thankfully I have a couple friends helping me keep content flowing into the gallery.
Currently my members can only post in these general albums and it would just be completely awesome if they could post in the User Albums(which I have renamed Game Albums on my forum). That one option alone would help me alot because my forum members could keep my "Game Albums" updated for me and all I would have to do is add a new user album whenever a new game comes out. The ability to browse the gallery albums by the alphabet rather than just clicking thru numbered pages would be a nice addition too. I really love what you and Dragooon have done with with gallery. It looks so professional now and runs on the forum like a gem. I am still running RC2 and have not had any errors. I will be upgrading to 2.0.1 this weekend. Thanks so much for you guys hard work!
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: littleone on October 29, 2009, 08:06:35 AM
Quote from: littleone on October 23, 2009, 11:49:18 AM
Here is a screenshot of it before the upload button is pushed

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg257.imageshack.us%2Fimg257%2F5913%2Ftryingtouploadagif.png&hash=6893e7e68f9b9c1b7d71b8960f23c68ea40cb2e2)

Here is the error message
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg259.imageshack.us%2Fimg259%2F5415%2Ftryingpost.png&hash=415c038be90d067c3fc67f3a02971be3fa17017d)

Again this happens to everyone who trys to upload a .gif image EXCEPT those who have manager permissions.

I have checked all my permissions.  All the albums are set to default.  On some albums they can upload .GIF and on other albums they cant....yet they all have the same permissions.  What is up with this?
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Bruno36 on October 29, 2009, 08:47:15 AM
Quote from: Bruno36 on October 28, 2009, 06:43:34 AM
Hello!

I have uninstall the old version
I download the new version SMGMediaGellery-2.0.1
http://custom.simplemachines.org/mods/index.php?mod=1365
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on October 29, 2009, 10:06:18 AM
@littleone> Does this also happen when you're posting as an admin?
If yes, please send me FTP info + an admin account so I can fix your problem on site.

@Pradius> I'll be changing album permissions in the next major update (which will also have a name change... I'll let you guess it ;)). Most notably I'll probably remove a user's ability to create a permission profile for their own albums and leave it up to admins only. I'll also probably do this change with general/user albums becoming featured/regular albums. Featured albums will still have their owner's name shown. They will also still appear in the user albums list (renamed to simply "Album list" or "Albums".)

In the meantime, why don't you simply give your users permission to create user albums...? You can even ask to pre-moderate them, if you don't want them to create thousands of crappy albums.

Quote from: Bruno36 on October 28, 2009, 06:43:34 AM
Hello!

I have uninstall the old version
I download the new version SMGMediaGellery-2.0.1
http://custom.simplemachines.org/mods/index.php?mod=1365
Hello!

This morning I ate an apple.
http://en.wikipedia.org/wiki/Apple

Euh, j'ai l'impression que ça irait mieux pour toi si tu m'expliquais ça en français, je me trompe?

Quote from: A.SK on October 27, 2009, 02:47:11 PM
Good work Team.
The name's Nao.... :O)
And you're welcome.

QuoteSMF & Avea Mods were the only mods on SMF to be up to date.
SMF? "Avea"? Were? Up to date? What do you mean?

Quote from: Dramber on October 27, 2009, 02:57:08 PM
This made me lol. My wife was very confused. :)
Believe it or not, it wasn't supposed to show up for regular users ;) I just put my frustration with mod_security (so many months of issues!) into that variable name... Forgot it would be shown at install time ;)

Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Bruno36 on October 29, 2009, 10:22:04 AM
Bonjour!

J'ai désinstaller l'ancienne version de smf média gallery et uploader la nouvelle version.
Le probleme, quand je vais dans la gestion des paquet je n'est aucun lien pour l'installer
(https://www.simplemachines.org/community/index.php?action=dlattach;topic=344381.0;attach=121498)
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on October 29, 2009, 10:33:28 AM
@Bruno36> Tu n'as pas besoin d'émuler la version pour installer. Ensuite, y'a un bouton rouge à coté du nom du mod : ça veut pas dire qu'il y a déjà une autre version d'installée, ça...? Normalement si.

@Everyone in the paul* discussion> Thanks guys for your messages, you hit the spot :)

Quote from: Arantor on October 27, 2009, 01:51:27 PM
That's a horrible situation to be in; fortunately I've missed that sort of thing for the most part, but I can see how it can make you feel bitter and resentful.
Hopefully the name change will give me a better sense of ownership.
I will also remove features that I find too complicated and that clutter the source code for nothing (see previous post).

Quotemod_security, how do I hate thee, let me count the ways.
One of the things that worry me is that SMF is pretty much bearing half the responsibility here, as it's using ";" as a separator, and it makes mod_security stop on ";id=" requests.

It would be much simpler (okay I feel like I've already talked about this before haven't I? I'm always rehashing the same things) to have a couple of lines in ob_sessrewrite() that check for mod_security and, if present, rename ;id= to &id= on the fly. Although it's no longer needed for SMG since I'm doing it now, by adding another output buffer handler to the handler stack, rather than editing the ob_sessrewrite() function.
Anyway, the only issue is that sometimes Apache won't release information on whether mod_security is installed, so it's best to have this as an optional thing, like I did in SMG.
Headaches.

Fortunately (?), I have yet to see other conflicts between MS and SMG.

QuotePersonally, I don't think it would be such a bad thing for you to stop SMG development of new features; get the last remaining issues cleared up, then just step back a little and concentrate on regaining your mojo, so to speak.
Hmm yeah but... Hmm. It feels like SMG is calling to me sometimes.
The trick is to find a good balance between pay-for features and free features. Unfortunately for me, I currently have more ideas for free features ;) (A pay-for feature must be completely independent from the main mod, which isn't the case of most of my ideas.)

QuoteBut as ever customisation is increasingly something that people want to be able to do and some seem to feel it is a right and even expected of the developer to provide endless support and customisation, but as ever real life gets in the way ahead.
Ah, real life... BTW I'll be less available for the next 10 days. My business partner is staying again at my place, and we'll be busy enough IRL.

QuoteBut remember there are a lot more of them/us.
Yeah, and people come and go. I remember when I joined the beta team, the core dev team was very different. I saw Aaron, Karl and TE join later on and now they're doing most of the work. I'm wondering what the core dev team will be like in a year or two. The good thing with rotating teams is that it injects new blood, new ideas (a bit less now that SMF2 has been feature-frozen for a year or so...), the bad thing is that sometimes newcomers have a hard time with existing code and either add bugs or have to rewrite everything.

QuoteAnd SMF has been around a while so it's not like it's software that can't be explored and understood. But as ever more people would probably be good.
I'm all for a dev team of 10 people personally. Hmm come to think of it, there are many people with commit access. But the core dev team I mean. Each and everyone should be able to pick their preferred area and work mainly on it. I know we used to work like that, Dragooon and I. We each had our things. SMF is a much wider project, there are plenty of places one could feel comfortable to work on and improve.

QuoteIndeed, I hear you. Everyone assumes that we like writing code and telling everyone how to use it and how to edit it and so on.
Writing code is usually fun, or at least enjoyable from an intellectual point of view. Supporting it, not so much. (N'est-ce pas, Karl?)
Especially when it comes down to explaining how SMF works, rather than how one's mod works.

Quoteone thing recently pointed out somewhere was the idea of a support teddy bear. Have people explain problems to a teddy bear and once they've done that if they still haven't got an answer, to ask the support guy. Amazing how often a little time gets there.
I don't get the idea, is that cultural?
You mean sometimes they just need to explain the problem and then in the process they'll figure out what's wrong, right? The Freudian way? ;)

QuoteWell, one theory that's been put out is that I'm a cyborg from the time of SMF 7 (which as Eliana confirms, has time travel :D) but in reality it's being unemployed and spending 12-16 hours here per day, and doing at least 100 posts a day nearly every day.
One theory doesn't automatically prevent the other from being true!

QuoteSMF1 was great for its time. It's functional and stable. 2.0 however makes life WAY easier for people like us that want to do something a little different.
Also, SMF2 is top of the game. SMF1 is way behind the current latest releases of phpBB, vBulletin, etc.
The team really should release SMF2 ASAP, and then release minor updates after that. It's pretty much impossible to fix every single reported bug in the timeframe they give themselves. And they're slowing down these days, once again I'm starting to report more bugs than they have time to fix them, lol.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Bruno36 on October 29, 2009, 12:29:04 PM
Non il n'y a plus de galerie d'installer j'ai refait une installation complète de mon forum avec des fichiers vierges, voila pourquoi je ne comprend pas..
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: paulmagno on October 29, 2009, 12:56:59 PM
Can someone please help me for a fee?

Please PM me...and, please, enough of the bashing of the silly old man who had the nerve to actually ask for help...I'm sorry. It won't happen again. Nao, forgive me for insulting your intelligence.

I simply don't have the time to learn programming and I guess I'm willing to peel of a few bucks from the Social Security check to get this thing running since my forum will be heavily involved in sharing photos and videos...or maybe someone can direct me to a gallery mod that is more newbie-friendly?

Thank you.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: littleone on October 29, 2009, 02:30:14 PM
Quote from: Nao/Gilles on October 29, 2009, 10:06:18 AM
@littleone> Does this also happen when you're posting as an admin?
If yes, please send me FTP info + an admin account so I can fix your problem on site.

No it doesnt.  it only happens to people who are NOT admins and who do NOT have Gallery Manager permissions.  Those two groups are perfectly fine, everyone else has the issue, with not being able to upload gif files to certain albums.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: PRaDiUS on October 29, 2009, 04:02:56 PM
@Nao

Good idea! I will do what you said in the meantime. Can't wait to see what you roll out in the next update! Featured/regular albums with the ability to move the two back and forth would be completely awesome. Do you think it will be possible to browse albums by alphabet rather than page number?

Quote from: Nao/Gilles on October 29, 2009, 10:06:18 AM
@Pradius> I'll be changing album permissions in the next major update (which will also have a name change... I'll let you guess it ;)). Most notably I'll probably remove a user's ability to create a permission profile for their own albums and leave it up to admins only. I'll also probably do this change with general/user albums becoming featured/regular albums. Featured albums will still have their owner's name shown. They will also still appear in the user albums list (renamed to simply "Album list" or "Albums".)

In the meantime, why don't you simply give your users permission to create user albums...? You can even ask to pre-moderate them, if you don't want them to create thousands of crappy albums.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Xenmorph on October 29, 2009, 05:22:50 PM
Using a Fresh install of 2.0.1.

Everything working fine except when I use the Mass upload finction, I receive the following error..........



XML Parsing Error: junk after document element
Location: http://MYFORUM/index.php?action=mgallery;sa=mass;album=3;xml;upcook=YTo0OntpOjA7czoxOiIxIjtpOjE7czo0MDoiMjY2ODNmNmNjMjQ4MmI4ZDMzZmUzODBmNGY4ZDI2OWM0ZTkxMTViNSI7aToyO2k6MTQ0NjA1NzA5MTtpOjM7aTowO30%3D
Line Number 15, Column 1:<div align="center" style="margin-top: 2ex;"><a href="javascript:history.go(-1)">Back</a></div>
^



Any ideas ?

The files uploaded successfully it seems thoughts ?

Also found this topic : http://smf-media.com/community/index.php?topic=1075.0

Seems to be a very similar problem ?
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on October 29, 2009, 07:44:46 PM
xenmorph, next time you get that error, please watch the source code for the page, it will show the actual error message. The error you're seeing is because a SMF error was sent, and it was sent as HTML to a XML feed so it wasn't correctly interpreted. Or check your error log, maybe you have something.

@BETA TESTERS> I have a new topic waiting for you on the beta testing board at smf-media.com. Please read it :)
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on October 30, 2009, 06:45:40 AM
@BETA TESTERS USING WYSIWYG QUICK REPLY> Again, please read the topic at smf-media... ;)

@EVERYONE> I shall say it once and for all -- the next major release will remove the ability for regular users (i.e. not admins) to create their own permission profiles. If you think this is a bad idea, speak now or forever hold your peace. :D

@Bruno> Désolé alors, je sais pas... Faut voir avec la team de support technique. Demande sur le forum français.

@paul> I don't know much about other gallery mods. They're all pretty technical I guess. At least all of the galleries that can bridge to SMF. Try with Coppermine. It's the first one I used, years ago. I wasn't as PHP-aware as I am now, so maybe it will work. http://coppermine-gallery.net/ Make sure to use v1.4 in case you want to be able to convert it to SMG if you want to keep the door open.
Keep in mind that the more features a gallery has, the harder it will be to handle it.

@littleone> Okay then, I'll have a look today on my site...

@pradius> Yes, browsing by alphabet shall be possible, too. This was one of the reasons why I changed the album sorting system internally. The only thing I'm not sure about is whether I should show all albums alphabetically, or all parent albums, and show their children below the parents rather than in the sequential list.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on October 30, 2009, 09:49:12 AM
Quote from: littleone on October 29, 2009, 02:30:14 PM
No it doesnt.  it only happens to people who are NOT admins and who do NOT have Gallery Manager permissions.  Those two groups are perfectly fine, everyone else has the issue, with not being able to upload gif files to certain albums.
Okay, tried it with a non-admin account on my site...
Worked just fine.

The only thing I can do is this-- open up MGallery.php and at line 1512, replace the existing code block with this one (it'll be in the next minor update, if anyone is wondering):

// Are we embedding or adding a file?
if (!empty($_POST['embed_url']) && $embed_url != $data['embed_url'] && mGalAllowedTo('add_embeds'))
$embedding = true;
elseif (!empty($_FILES['file']['name']) && mGalAllowedTo(array('moderate', 'add_audios', 'add_videos', 'add_images', 'add_docs'), true))
$embedding = false;
else
fatal_lang_error(empty($_FILES['file']['name']) && !$editing ? 'mgallery_file_not_specified' : 'mgallery_add_not_allowed');


Try uploading again. If you still get "File not specified", then it's definitely a bug in SMG but that bug doesn't touch my setups so I'll have to see onsite. If you get "Not allowed to upload here", then it's a permission error and you should check your settings again.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: automama on October 30, 2009, 10:40:35 AM
Are there any kind of instructions on how to use this mod for a total noob ;D? I'm having a bad day and can't get my head around all the different permissions in the gallery and general admin settings to figure out why a general user can't add photo's to an album?

TIA
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on October 30, 2009, 11:19:06 AM
Make sure to have only one Permission Profile set up (in SMG > Admin > Permissions). Set permissions for each membergroup in it.
Then go to your forum's Admin area > Members > Membergroup Permissions, and edit site-wide SMG permissions for each membergroup as well.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: automama on October 30, 2009, 12:25:14 PM
Quote from: Nao/Gilles on October 30, 2009, 11:19:06 AM
Make sure to have only one Permission Profile set up (in SMG > Admin > Permissions). Set permissions for each membergroup in it.
Then go to your forum's Admin area > Members > Membergroup Permissions, and edit site-wide SMG permissions for each membergroup as well.
Thanks for that  :)...it's getting a little clearer! I didn't install this particular mod so I'm not sure what was added by the previous person or is a default setting, apologies  :)

In SMG>Admin>Permissions I have 3 profiles...2 called default and one called members. I take it I can delete the 2 with 0 under 'Albums'?
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Akyhne on October 30, 2009, 12:28:08 PM
Removing the permission system added by Dragooon would make my day.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on October 30, 2009, 12:32:57 PM
@automama> Yes, I guess so.
@akyhne> You mean the per-user permission profiles, or the entire permission profile system? ;)
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Akyhne on October 30, 2009, 12:58:11 PM
That... ugly one in the admin gallery settings, not the one in the Admin permissions. If people want to limit the access, they should just password protect their albums.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on October 30, 2009, 01:09:39 PM
Quote from: Akyhne on October 30, 2009, 12:58:11 PM
That... ugly one in the admin gallery settings, not the one in the Admin permissions. If people want to limit the access, they should just password protect their albums.
Hmm, I'm afraid I can't do that...
The current permission system is nearly as easy as the previous one -- you have only one set of permissions to change, as long as you don't create a new profile. And I do think it's important to let admins finetune their galleries as they like (admins, not end users). Plus, Dragooon worked hard on this. If I removed the feature (which I would never have written myself, too boring), it wouldn't leave much of his work in SMG2 ;)
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Xenmorph on October 30, 2009, 05:43:25 PM
Quote from: Nao/Gilles on October 29, 2009, 07:44:46 PM
xenmorph, next time you get that error, please watch the source code for the page, it will show the actual error message. The error you're seeing is because a SMF error was sent, and it was sent as HTML to a XML feed so it wasn't correctly interpreted. Or check your error log, maybe you have something.

This is the Source code I have for the Page that is generated showing the Error in my Browser........


<div>
<table border="0" width="80%" cellspacing="0" align="center" cellpadding="4" class="tborder">
<tr class="titlebg">
<td>An Error Has Occurred!</td>
</tr>
<tr class="windowbg">
<td style="padding: 3ex;">
Wrong value type sent to the database. Array of integers expected. (items)
</td>

</tr>
</table>
</div>
<div align="center" style="margin-top: 2ex;"><a href="javascript:history.go(-1)">Back</a></div>


This is what is recorded in the Error log of my forum........

http://MYFORUM/index.php?action=mgallery;sa=mass;album=1;xml;upcook=YTo0OntpOjA7czoxOiIxIjtpOjE7czo0MDoiMjY2ODNmNmNjMjQ4MmI4ZDMzZmUzODBmNGY4ZDI2OWM0ZTkxMTViNSI7aToyO2k6MTI1Njg2Njg5MTtpOjM7aTowO30=

Wrong value type sent to the database. Array of integers expected. (items)

Error occurs after the files have been uploaded using the Mass upload function, Files are successfully uploaded though ?
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on October 30, 2009, 07:23:50 PM
- When the files got uploaded, what thumbnail showed up for you? Was it the actual thumbnail, or a generic icon, or the generic error message ("not allowed to view this")?

- Did you install/update the mod manually or through the package manager?
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Xenmorph on October 30, 2009, 07:35:15 PM
Quote from: Nao/Gilles on October 30, 2009, 07:23:50 PM
- When the files got uploaded, what thumbnail showed up for you? Was it the actual thumbnail, or a generic icon, or the generic error message ("not allowed to view this")?

- Did you install/update the mod manually or through the package manager?

I installed useing the Package manager after first Uninstaling version 2.0.0 via the package manager.

Thumbnails for uploaded images are correct, No other errors so far. can view uploads no problem.

Just receive the Error upon completion of useing the Mass upload function after clicking "Submit"
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: PRaDiUS on October 30, 2009, 08:21:50 PM
@Nao

That's too awesome! Just showing all parent albums alphabetically with a link for each letter at the top to browse thru the alphabet would look professional and keep it simple I think.  ;D

Quote from: Nao/Gilles on October 30, 2009, 06:45:40 AM
@pradius> Yes, browsing by alphabet shall be possible, too. This was one of the reasons why I changed the album sorting system internally. The only thing I'm not sure about is whether I should show all albums alphabetically, or all parent albums, and show their children below the parents rather than in the sequential list.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: kingkingston on November 01, 2009, 02:22:14 AM
Would it be possible to intergrate the twitter mod to work with the gallery ?,currently the twitter mod puts posts from your forum to your twitter page and i think it would be awesome if the same kind of thing happened with this mod when an item is added to the gallery.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on November 01, 2009, 09:12:22 AM
I only add integration for mods I use myself.

Is there a Twitter mod, really?
I mean-- I'm *writing* a paid-for Twitter mod currently (although it's been on hold for a week or so), but it's working not on topics, but on specific tweet-like messages that show up in a different portion of the forum. I was planning to add such SMG integration for my mod but I'm kinda confused knowing there's another mod out there.
I hope I'm not wasting my time on yet another mod, eh...
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Arantor on November 01, 2009, 09:15:15 AM
Nao - http://custom.simplemachines.org/mods/index.php?mod=1886
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on November 01, 2009, 10:26:46 AM
Yeah I'd seen the thing (mod search engine...), it's just that I don't want to install it, last time I installed a socialization mod it pretty much broke my forum, so I figured I'd write my own Twitter mod. But that was a month ago... Last time I'd been looking for a Twitter mod I only found the profile field thingy.
Anyway. I suppose I'll still finish up my own code (because I want my site to interact with Twitter & Facebook later), but I won't make it into a mod. I have no time for developing new free mods, and since there's already a free mod, I have no reason to develop a paid-for mod either.

Writing code for one's site = easy and/or interesting (doing dev work on one's site)
Writing code for everyone's sites = hard and/or boring (making mods out of our dev work)
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Darkness_ on November 01, 2009, 10:38:25 AM
Method Not Implemented

GET to /forum/index.php not supported.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2 Sorcer.nl Server at www.*****.nl Port 80



Getting this error when I want to save settings or want to get in a album
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on November 01, 2009, 11:39:55 AM
Is this with SMG 2.0.1?
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Darkness_ on November 01, 2009, 11:59:36 AM
yes
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on November 01, 2009, 12:27:39 PM
Does it says mod_security is installed in the smg admin credits?

Whatever the case, enable the mod_security hack in the settings area.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Darkness_ on November 01, 2009, 01:04:04 PM
PHP's Safe Mode is enabled. It may cause conflicts with SMG. Please disable it or read the documentation in the MGallerySafeMode.php file!
The Apache mod_security module isn't installed, so it won't cause any trouble to SMG's Mass Upload feature. Good thing.
FFMPEG:
GD2: bundled (2.0.34 compatible)
ImageMagick: (IMagick: - MagickWand: )


how do I install it ?
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on November 01, 2009, 01:34:44 PM
Don't install anything. Enable the hack, as I said. Settings area.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Darkness_ on November 01, 2009, 01:48:38 PM
Under settings of smg everything is checked as yes?

i only get it when I want to go in to an album.
From the index, or from the admin panel in permissions, I get the same error
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on November 01, 2009, 05:38:14 PM
Okay, send me an admin account and the URL to your forum. If I can confirm my fix doesn't work, I'll get back to you.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: PRaDiUS on November 01, 2009, 07:13:29 PM
Upgraded to 2.0.1 from RC2...

I see the way General Albums are displayed on the main gallery page has changed in the script and now I have no idea what file or where to go to modify the way general albums are displayed in the Mgallery.template.   .....Help?
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Darkness_ on November 02, 2009, 03:22:24 AM
Quote from: Nao/Gilles on November 01, 2009, 05:38:14 PM
Okay, send me an admin account and the URL to your forum. If I can confirm my fix doesn't work, I'll get back to you.

sended you a pm with the things you need.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: leighlife on November 02, 2009, 07:58:26 AM
Album move time again...

There remains an occasional problem where album reordering fails which I think must be due to order value collisions: the move code seems to virtually guarantee that the new order value calculated will be a duplicate of one already used, so using those to resequence all values is risky.  The following changes hopefully guarantee a unique order value for any move and so far seem to work:

Code (Sources/MGallery-Admin.php) Select
660c660
<               $order = $target['order'] - ($pos == 'before' ? 1 : 0);
---
>               $order = $target['order'] - ($pos == 'before' ? 1 : -1);


Code (Sources/Subs-MGallery.php) Select
267c267,268
<               if ($context['mgallery_albums'][$album]['order'] != ++$order)
---
>       {
>               if ($context['mgallery_albums'][$album]['order'] != $order)
271a273,274
>               $order += 2;
>       }
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on November 02, 2009, 11:52:05 AM
@Darkness> Okay, from what I can see... Your server sucks.
- It has PHP Safe Mode installed and enabled.
- It has mod_security installed, enabled and hidden.
- It has output buffers DISABLED, meaning you probably can't use PrettyURLs and the likes...
- Because of that issue, it can't fix the mod_security problem.
The only ways to fix are:
- Either change to a better server (or tell your host to stop playing chicken by having both Safe Mode and mod_security, and/or re-enable output buffers, or disable the ;id= detection in mod_security, etc.)
- Or change pretty much all of SMG's code to use &id= instead of ;id=... Have fun :(

@Pradius> If it's set to 1 column, it should look like what it used to.. What's the problem?

@leighlife> Once more, some code I never looked into... I don't really like the current way SMG reorders albums anyway. I may rewrite it at some point in the future. What's with the +2 in reorder, though? Isn't it simpler to swap values instead, or something?
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on November 02, 2009, 12:02:03 PM
@Darkness> I stand corrected, output buffers work. It just won't accept my own layer.
Please send me FTP information to access your Sources folder. I'll try to find out why it doesn't work and then fix it.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: dracomiconia on November 02, 2009, 12:30:35 PM
Hi all....

I have installewd SMG from Coppermine, and I miss a feature I dont find, and dont know if it exists.

It's orders in SSI, calling random images from anywhere in the site.

Does it exists? How can we do it?
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on November 02, 2009, 01:46:46 PM
Hacks board at smf-media.com
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: leighlife on November 02, 2009, 02:20:10 PM
Quote from: Nao/Gilles on November 02, 2009, 11:52:05 AM
Once more, some code I never looked into... I don't really like the current way SMG reorders albums anyway.
Me neither, but it can be made to work with minimal changes, so until...

Quote from: Nao/Gilles on November 02, 2009, 11:52:05 AM
I may rewrite it at some point in the future.
... may as well stick with it for now.

Quote from: Nao/Gilles on November 02, 2009, 11:52:05 AM
What's with the +2 in reorder, though? Isn't it simpler to swap values instead, or something?
+2 forces all order numbers to be even, then the move code adds or subtracts 1 giving a guaranteed unique odd order number.  Reordering is then done putting everything back on even numbers only.

Previously the move code would lead to duplicate order numbers so the reorder run wouldn't always get the intended album ID sequence passed to it (it was much worse when there were duplicate IDs in the list).  Yucky, sure, but it works.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on November 02, 2009, 03:07:51 PM
Doesn't sound that yucky when you speak of it... Good idea :)
At some point I'll have to credit you for all your work eheh. Good thing you're posting them on a public place ;)
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on November 02, 2009, 05:39:54 PM
Darkness, I've fixed your issue. The fix will be in the next minor update.

Also, for those interested in fixing mod_security, I've added a bug report with my fix to the bug tracker here:
http://dev.simplemachines.org/mantis/view.php?id=3949

Hopefully it'll be taken into account for SMF 2.0, because it's a 'fixer' feature, rather than a new feature.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: PRaDiUS on November 02, 2009, 06:07:47 PM
@Nao

Just a little confused is all... the part of Mgallery.template that displays the general albums in RC2 used to look something like this....


// The Albums!
echo '
<div id="home">
<div class="catbg item_heading">', ($has_albums ? '
<b><font size="4">[ MEDIA GALLERY |</b>' : ''), $context['show_user_albums_link'] ? ($has_albums ? ' ' : '') . '
<b><a href="'.$galurl.'sa=vua">VIEW XBOX 360 GAME ALBUMS</a> ]</b></font>' : '', $context['smg_foxy'] ? ' -
<b><a href="'.$galurl.'sa=playlists">'.$txt['mgallery_playlists'].'</a></b>' : '', '
</div>';

if ($has_albums)
{
echo '
<table cellpadding="6" cellspacing="1" width="100%" style="margin-top: 8px">
<tr class="titlebg2">
<td width="8%">', $txt['mgallery_icon'], '</td>
<td width="80%">', $txt['mgallery_name'], '</td>
<td>', $txt['mgallery_items'], '</td>
</tr>';

foreach ($context['mgallery_home_albums'] as $album)
{
echo '
<tr class="windowbg2">
<td width="6%" align="center">', $album['icon']['src'], '</td>
<td><div class="mg_large"><font size="5"><b><a href="', $galurl, 'sa=album;id=', $album['id'], '">', $album['name'], '</a></b></font></div><div class="mg_desc"><font color="#000000">', $album['description'], '</font></div><div><br><font size="1"><b>[ <a href="', $galurl, 'sa=post;album=', $album['id'], '">ADD AN ITEM - ',  $album['name'], '</a> ]</b></font></div></td>
<td><b>', $album['overall_total'], '</b></td>
</tr>
', !empty($album['sub_albums']) && $mgalSettings['show_sub_albums_on_index'] == 1 ? '<tr class="windowbg"><td colspan="3" class="smalltext">'.$txt['mgallery_sub_albums'].': '.implode(', ', $album['sub_albums']).'</td></tr>' : ''.'';
}

echo '
</table>';
}

echo "\n";


but now in 2.0.1 it looks like this...


// The Albums!
echo '
<div id="home">
<div class="catbg item_heading" style="margin-bottom: 8px">', ($has_albums ? '
<b>'.$txt['mgallery_albums'].'</b>' : ''), $context['show_user_albums_link'] ? ($has_albums ? ' -' : '') . '
<b><a href="'.$galurl.'sa=vua">'.$txt['mgallery_user_albums'].'</a></b>' : '', $context['smg_foxy'] ? ' -
<b><a href="'.$galurl.'sa=playlists">'.$txt['mgallery_playlists'].'</a></b>' : '', '
</div>';

if ($has_albums)
smg_list_children($context['mgallery_albums']);

echo "\n";


...so im just a little confused on where all that code went to and where it is being called from now. I looked all through the new Mgallery.template and could not find it to save my life. haha.

not really a problem at all. the gallery is running great. just trying to find out where all that code went to so I can modify it. Thanks Nao!
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on November 03, 2009, 04:13:30 AM
IIRC, Subs-MGallery.php.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Blinker on November 03, 2009, 07:05:42 AM
Hi Nao

I have no idea how long this issue has existed but I've gone through all the betas & RC's before I have actually tried to upload something. Now I tried in v2.0 and v2.0.1 to upload an item to an album and I get the first part of the upload screen and nothing more.

Please see screenshot.

Any ideas? It loads to that point every time but no further.
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on November 03, 2009, 08:24:02 AM
At this place you should be having SMF's message textarea (if you're using SMF2, it's the richedit control).
You probably have a corrupted file somewhere or something. There's probably an error in your error log...
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: littleone on November 03, 2009, 11:26:59 AM
Quote from: Nao/Gilles on October 30, 2009, 09:49:12 AM
Quote from: littleone on October 29, 2009, 02:30:14 PM
No it doesnt.  it only happens to people who are NOT admins and who do NOT have Gallery Manager permissions.  Those two groups are perfectly fine, everyone else has the issue, with not being able to upload gif files to certain albums.
Okay, tried it with a non-admin account on my site...
Worked just fine.

The only thing I can do is this-- open up MGallery.php and at line 1512, replace the existing code block with this one (it'll be in the next minor update, if anyone is wondering):

// Are we embedding or adding a file?
if (!empty($_POST['embed_url']) && $embed_url != $data['embed_url'] && mGalAllowedTo('add_embeds'))
$embedding = true;
elseif (!empty($_FILES['file']['name']) && mGalAllowedTo(array('moderate', 'add_audios', 'add_videos', 'add_images', 'add_docs'), true))
$embedding = false;
else
fatal_lang_error(empty($_FILES['file']['name']) && !$editing ? 'mgallery_file_not_specified' : 'mgallery_add_not_allowed');


Try uploading again. If you still get "File not specified", then it's definitely a bug in SMG but that bug doesn't touch my setups so I'll have to see onsite. If you get "Not allowed to upload here", then it's a permission error and you should check your settings again.

Made this change... It uploads but here is what comes up now when you try to view it:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg230.imageshack.us%2Fimg230%2F40%2Fupdategallery.png&hash=00800f2ce63df7fbbba33c39382d6bc6a2643578)
Title: Re: SMF Media Gallery (SMG) - 2.0.1 is out! (October 27)
Post by: Nao 尚 on November 03, 2009, 11:58:16 AM
You're saying it uploads?? It shouldn't...
Check your ftp folders to see if your file was correctly uploaded!
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: SMGTeam on November 03, 2009, 12:14:21 PM
A new version is out!
It's a bugfix release only.

Version 2.0.2                                    November 3, 2009
-----------------------------------------------------------------
* Removed SMG code from Subs-Editor.php and hopefully fixed the Wysiwyg Quick Reply
  incompatibility, by replacing the previous hack with a test for empty($parse_tags)
! Always initialize lightbox headers when using the SMG tag in an external topic, to avoid more
  problems when the first tag used doesn't require the headers (this would break the remaining tags)
* An error message when uploading files was confusing, made sure to split it into two
! Autosize (in album settings) was always being wrongfully reported as enabled
! Autosize setting was not taken into account in album pages (only in item pages)
! The mod_security fix was placed too early in the code, thus it was never initialized
+ Implemented tabindex values on form elements, so that richedit
  components can be reached with the normal Tab flow
! Album ordering would sometimes not work correctly
! Wrong URL for magnifying glass icon
! Fixed a validation error
* More minor changes/fixes
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 03, 2009, 12:27:23 PM
BTW, since I removed the Wysiwyg Quick Reply hack from v2.0/2.0.1, I'd be interested in receiving feedback from people using that mod + SMG... (remember the [smg] tag bug?)
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: probinson77 on November 03, 2009, 01:20:52 PM
Quote from: Nao/Gilles on November 03, 2009, 12:27:23 PM
BTW, since I removed the Wysiwyg Quick Reply hack from v2.0/2.0.1, I'd be interested in receiving feedback from people using that mod + SMG... (remember the [smg] tag bug?)

I just installed SMG 2.0.2 in conjunction with the WYSIWYG Quick Reply mod, and at first glance, it all *seems* to be working properly!  I'll let you know if I find anything that doesn't work right.

Thanks!
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: littleone on November 03, 2009, 03:57:43 PM
Ok just installed 2.0.2 and its giving those without manager permissions the same error as before...the "Its not a valid extension" error.  The odd part is that the same file will upload to some albums but not others.  Im trying to see if its a pattern...such as it uploads to main albums but not subalbums...or anything like that.  Unfornatually I have to rely on others as I cant recreate the error myself as an admin.  Ill keep you posted.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: littleone on November 03, 2009, 04:20:11 PM
Here is the report I got from one of my people:
Quote

i've noticed i can upload a GIF to any main folder, but when i try to upload it directly to a sub folder, i get that invalid extension thing.  if i upload it first to the main folder and then use the Move feature to move it into the sub folder, the graphic works just fine. 

i'll look further, but it would seem the issue is within the sub folders and working directly within them.


Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Tiribulus on November 03, 2009, 04:25:10 PM
Of course I could be wrong, but I wonder if the case of the extension is the issue? (If this is a Linux server) Tell them to change the .GIF to .gif and try it.
Title: Need help with upload problem
Post by: rrogoski on November 03, 2009, 04:38:18 PM
I have SMF Media Gallery mod installed. Until recently, I could mass upload photos. I can select files for the mass upload, but when I click "Upload" it does nothing. I just upgraded thinking that may solve it if there was a problem with some file some where.

Any suggestions? It happens to my users also.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Captain351 on November 03, 2009, 04:58:25 PM
SMG 2.0.2 won't install under SMF 1.1.10. There is a red icon next to it which means "older version". I gives no option to install.

I downloaded and tried to install twice.

Captain
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 04, 2009, 03:29:08 AM
@littleone> Without FTP + an admin account + an account that can reproduce the "issue", I can't help further...
I made a test sub-album with my test account (non-admin) on my site, and had no problem uploading a GIF file.
Are you sure the sub-albums are using the same permission profile as their parents?? Do you have more than one permission profile in your admin area? What about the quota profiles?

@probinson> Good :)

@tiribulus> Case is insensitive for SMG.

@rrogoski> crossdomain.xml, read docs.

@captain> Are you sure you've uninstalled all previous versions and deleted the packages?
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: ianus on November 04, 2009, 03:57:24 AM
Who is SMGTeam (http://www.simplemachines.org/community/index.php?action=profile;u=221233)?
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Powerbob on November 04, 2009, 04:37:30 AM
Upgraded without any errors (so far) 8)

Super!
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 04, 2009, 05:58:23 AM
@ianus> It's me. When he left the project, Dragooon had the topic owner changed to SMGTeam so that we can both log in using this account and update the first message in the topic (in case Dragooon wants to come back one day.)
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: ianus on November 04, 2009, 06:30:54 AM
Oh, I see. Thanks for explanation.
I hoped for one (some) additional code-gurus who assist you a little bit.
In any case, always a pleasure to read your posts.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 04, 2009, 10:25:22 AM
I have the feeling SMG and Aeva have become way too complicated for anyone else to become acquainted with it on an intimate level... :P

Although it looks like leighlife would be a good candidate for joining the teaaaam if I were looking for someone to help! ;)
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Legend Zero on November 04, 2009, 11:37:09 AM
I upgraded to the new version, and every single image turned to an icon for a script over a text file. AWESOME. Over 700 images LOST instantly because I downgraded to the "newest" version. Way to go.

I upgraded back to 2.0 Beta 2, hopefully you'll fix your newest version soon.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: LHW on November 04, 2009, 12:12:06 PM
Quote from: Nao/Gilles on November 04, 2009, 10:25:22 AM
Although it looks like leighlife would be a good candidate for joining the teaaaam if I were looking for someone to help! ;)

Would definitely be an asset to the team...if you were looking for help, of course.  ;)
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Captain351 on November 04, 2009, 04:00:29 PM
Quote@captain> Are you sure you've uninstalled all previous versions and deleted the packages?

I stopped when I saw this because I didn't want to uninstall and leave my users without a gallery since the new one said it wouldn't install. Ill try it. I hope I still have the old version to reinstall if needed.

Captain
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 04, 2009, 04:56:48 PM
@Legend Zero> If you're downgrading before I even get to know what your URL is, how am I supposed to help you...?
Do you REALLY think I'm purposedly breaking galleries with new updates? That's a silly statement... ¬_¬

@Captain> If the new version was broken (rings a bell?), I would have known since yesterday... It's been installed by over 100 different users so far, I guess the 100 complaints would have been quite visible.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: leighlife on November 04, 2009, 05:00:16 PM
Item edits are breaking since the error message split you added - the editing test used to be outside the fatal_lang_error() call but has moved inside.

This change seems ok for things like item title changes etc. but I admit I've not looked through for the permission failure case:

Code (Sources/MGallery.php) Select
1526c1526,1527
<                       fatal_lang_error(empty($_FILES['file']['name']) && !$editing ? 'mgallery_file_not_specified' : 'mgallery_add_not_allowed');
---
>                       if(!$editing)
>                               fatal_lang_error(empty($_FILES['file']['name']) ? 'mgallery_file_not_specified' : 'mgallery_add_not_allowed');
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 04, 2009, 05:36:35 PM
I think you're right... I'd written it that way, with an extra couple of lines, and then figured out I could put it all into one line... I was wrong, I suppose. It's always a problem when I only test as an admin (I always get the permission fulfilled) and apparently beta testers are no longer testing the file before its release.
I need to find more dedicated testers for common tasks like this.

Actually, I'm thinking of opening the SVN server & beta boards to anyone, if Dragooon doesn't mind. That way, maybe I would see more people test the SVN versions without waiting for an official release. I've been doing this for Aeva, with great results.

leighlife, while I'm at it -- you don't have to fix every bug you find, just report them, I usually find their source and fix them quickly, I don't know how long it takes you to fix them but if it takes you some time, please leave it to me. ;) Have you been studying SMG's internals, btw?
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Captain351 on November 04, 2009, 05:39:41 PM
Yea as soon as you remove the old version the new one gives the install option (Is that a feature or a bug.  :)).

Working great now I even have video working. Converting to .FLV was the way to go. Can you upload a .jpg with the same name as the video through mass upload and have it used as the thumb nail. I don't have anymore videos to upload right now or I would try it.

After having problems with getting the video to work I tried several other web galleries I installed and tested 6 of them over the last 2 weeks and they all had some kind of a problem that made me look elsewhere.

After coming back to yours I am astounded at how much faster yours is than the others there is a huge difference. Well Done.

I do have one small problem I can't seem to be able to edit an Item after it has been uploaded I get an Error in the Error log saying "Sorry, but you do not have permission to upload this type of item to this gallery". I'm not uploading anything just changing the title and as the administrator I should have all permissions. Any Ideas.

Nao you should still have my log ins info if you need to check it out.

Captain
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Tiribulus on November 04, 2009, 05:50:35 PM
Quote from: Nao/Gilles on November 04, 2009, 05:36:35 PM
<<< Actually, I'm thinking of opening the SVN server & beta boards to anyone, if Dragooon doesn't mind. That way, maybe I would see more people test the SVN versions without waiting for an official release. I've been doing this for Aeva, with great results. >>>

This is a top flight idea here. This is why even Microsoft is pretty loose (despite what they actually state) with their beta OSes. Lots of free beta testing and all they have to do is hang out in all the places they usually blast to gain endless technical feedback.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 04, 2009, 05:56:37 PM
@To everyone> I've made a silent update with the fix to item editing for non-admins. Nothing else has changed, so I don't think it warrants a minor version increase. You can also simply edit your MGallery.php file and apply leighlife's suggestion, it should work as is.

Quote from: Captain351 on November 04, 2009, 05:39:41 PM
Yea as soon as you remove the old version the new one gives the install option (Is that a feature or a bug.  :)).
I don't know. The version naming system is a bit complicated. Normally, if I keep the same "rough" version number (ie 2.0 instead of 2.0.something), SMF should make sure the mod versions won't conflict with each other. What you're describing makes me think of that, but with the 2.x SMG line, I believe I've been using complete version numbers instead the package files, meaning that double installs should (unfortunately) be possible... Can a team member confirm this?
So basically it seems to be doing the opposite of what you're describing.

QuoteWorking great now I even have video working. Converting to .FLV was the way to go. Can you upload a .jpg with the same name as the video through mass upload and have it used as the thumb nail. I don't have anymore videos to upload right now or I would try it.
Nope, can't do that. You can only do it by going through each video in their item page, edit them and add the thumbnail manually. I know, it's tedious, but at least it doesn't do something that the user may not want to do (ie use a perfectly good file as a thumbnail and nothing else, without asking.)

QuoteAfter having problems with getting the video to work I tried several other web galleries I installed and tested 6 of them over the last 2 weeks and they all had some kind of a problem that made me look elsewhere.

After coming back to yours I am astounded at how much faster yours is than the others there is a huge difference. Well Done.
Thanks ;) But I haven't really looked into the others... All I know is I'm doing my best to improve the software. It's getting harder to maintain it, especially now that I'm alone on the project.
I know Gallery2 isn't very efficient, but I'm not sure about the other galleries out there.

QuoteI do have one small problem I can't seem to be able to edit an Item after it has been uploaded I get an Error in the Error log saying "Sorry, but you do not have permission to upload this type of item to this gallery". I'm not uploading anything just changing the title and as the administrator I should have all permissions. Any Ideas.
Re-download and reinstall the package. See above. ;) As I said, it's getting harder to maintain it. Especially these last few weeks (I have visitors staying at my place, etc. and I only have a few hours a day to work on my computer, instead of the usual 8+ hours.)

@Tiribulus> It's got nothing to do with other software vendors or experience, really... It's only because it's extremely annoying to release a new version (I have to go through every file to update version numbers, compile a changelog, post the new version announcement, etc.), so I tend to do it and hope that it will be a completely bug-free version. Just like when I stopped developing Aeva 6 months ago-- the software was rock solid at that point. (The only reason I came back to it is because YouTube made it break, and I can't afford to be incompatible with YouTube.)
My current goal is to merge Aeva and SMG into an open beta "Aeva Media", resetting the version number to 1.0 in the process (I never got to work on a v1.0 myself when it comes to Aeva and SMG... I probably miss that :P)
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: LHW on November 04, 2009, 06:03:56 PM
Quote from: Nao/Gilles on November 04, 2009, 05:36:35 PM
It's always a problem when I only test as an admin (I always get the permission fulfilled) and apparently beta testers are no longer testing the file before its release.
I need to find more dedicated testers for common tasks like this.

With the current SVN server messed up, it's kinda hard to test ANY revisions, ya know.  ;)  :P

Quote from: Nao/Gilles on November 04, 2009, 05:56:37 PM
My current goal is to merge Aeva and SMG into an open beta "Aeva Media", resetting the version number to 1.0 in the process (I never got to work on a v1.0 myself when it comes to Aeva and SMG... I probably miss that :P)

Sweeeeeeeeeeeeeet!!!!!!! :D :D
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Tiribulus on November 04, 2009, 06:17:43 PM
Quote from: Nao/Gilles on November 04, 2009, 05:56:37 PM
<<< @Tiribulus> It's got nothing to do with other software vendors or experience, really... It's only because it's extremely annoying to release a new version (I have to go through every file to update version numbers, compile a changelog, post the new version announcement, etc.), so I tend to do it and hope that it will be a completely bug-free version. Just like when I stopped developing Aeva 6 months ago-- the software was rock solid at that point. (The only reason I came back to it is because YouTube made it break, and I can't afford to be incompatible with YouTube.)
My current goal is to merge Aeva and SMG into an open beta "Aeva Media", resetting the version number to 1.0 in the process (I never got to work on a v1.0 myself when it comes to Aeva and SMG... I probably miss that :P)

Oh no, I was just using MS as an example of how freely flowing betas provides an endless stream of useful development info. Tens of thousands of unpaid beta testers.

You're a madman :P I've learned just enough to realize how epic a project that would be if I'm understanding you correctly. Making Aeva and SMG one package? I have every confidence in your ability to pull it off, but I'm not counting on your mood improving much while it's underway :) One thing to consider is that some people may just want one of the other, but I suspect most who have one have both.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Akyhne on November 04, 2009, 06:32:21 PM
Quote from: Nao/Gilles on November 04, 2009, 05:36:35 PM
I need to find more dedicated testers for common tasks like this.
It's hard to test so many versions as you are releasing. I simply don't have time for that. And that's the same reason I asked to be removed as SMG beta tester some months ago.

SMG is also becomming such a big mod, that you should maybe get the beta testers to test specific functions each, as I was interested in getting ffmpeg to work and concentrated on that. Then alert me, if you are changing something that involves that area.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Tiribulus on November 04, 2009, 06:38:28 PM
Quote from: Akyhne on November 04, 2009, 06:32:21 PM
<<<  getting ffmpeg to work >>>

You just had to mention that didn't ya :'( I spent half the day yesterday trying to get Apache to load ffmpeg on my machine and it just sneered and mocked me. Nothing to do with SMG, sorry.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Akyhne on November 04, 2009, 06:56:10 PM
Hmm, it's very easy to set up.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Tiribulus on November 04, 2009, 08:36:43 PM
Quote from: Akyhne on November 04, 2009, 06:56:10 PM
Hmm, it's very easy to set up.

I was thinking of starting a thread in the server board, maybe I will.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: leighlife on November 04, 2009, 09:10:51 PM
Quote from: Nao/Gilles on November 04, 2009, 05:36:35 PM
leighlife, while I'm at it -- you don't have to fix every bug you find, just report them, I usually find their source and fix them quickly, I don't know how long it takes you to fix them but if it takes you some time, please leave it to me. ;)
Typically the problems I've reported here have been found in live use of SMG, so I'm happy to spend some time to get a fix in place to allow that use to continue asap.  Since I've then found at least some part of a fix, or a reasonable indication of one, I'll post it here.  Rest assured that if it gets really hairy I'll have no problem leaving it entirely to you :D

You did actually at least once ask if I could look into a problem, so I've continued that when issues have arisen.  It hasn't so far taken an excessive time to delve into them, plus right now I don't exactly have a lot else to do :(

Quote from: Nao/Gilles on November 04, 2009, 05:36:35 PM
Have you been studying SMG's internals, btw?
Only as far as finding fixes for the problems reported to me.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Captain351 on November 04, 2009, 09:23:59 PM
QuoteRe-download and reinstall the package. See above. ;)

Yep That worked but I think I found another small problem. Folder Icons don't seem to be using the Icon sizes but instead use the Thumb Nail sizes.

I have my Thumb Nail Width set to 220 and my Icon Width to 100 yet my album Icons are 220 wide. If I change my Thumb Nail Width to 100 and reupload the icon file the album I icon resizes to 100 wide but now my thumb nails in my galleries are too small. Any Ideas.

Captain
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Mick. on November 04, 2009, 10:36:59 PM
Looks smfmedia website is down.


I dloaded RC3 last week and finally upgraded.  ...but now it get this message:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 77 bytes) in /home/********/public_html/Sources/Subs-MGallery.php on line 1157

What is this?   I didnt have this before.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: martensite on November 04, 2009, 11:16:53 PM
Please help for fix this error,

8: Undefined index: mgallery_gallery
ไฟล์: /home/naayedn/public_html/picpost/Themes/kani_119/Display.template.php (main_above sub template - eval?)
บรรทัด: 437
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Powerbob on November 05, 2009, 01:21:58 AM
Quote from: martensite on November 04, 2009, 11:16:53 PM
Please help for fix this error,

8: Undefined index: mgallery_gallery
ไฟล์: /home/naayedn/public_html/picpost/Themes/kani_119/Display.template.php (main_above sub template - eval?)
บรรทัด: 437

It would help if you posted some more info, ie smf vers and smg vers etc!
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: gmoneyluv on November 05, 2009, 11:58:27 AM
Just installed SMG 2.0.2 on SMF 1.1.10 and it seems to be working fine. One concern is that i'm getting a 500 server error when using my direct links. Can anyone help?

Thanks! 
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 05, 2009, 12:38:15 PM
@Lord> Maybe I should consider moving the SVN to either my own server (I have the tools for that), or Google Code... I don't know yet.

@Tiribulus> Oh, it won't be THAT hard...
- Although it'll get the Aeva brand name, I'll be merging Aeva into SMG, not the other way around.
- Aeva is not THAT big a mod... I'll just have to integrate its admin area into SMG's.
- I don't think I'll rename most of the internal variables. So the tables will still be called "smf_mgallery_items", not "smf_aeva_items" for instance...
- Basically, SMG already had a small Aeva in it... Aeva will get several more new features such as embedding permissions, while SMG will only be ensured that Aeva is always available. Aeva benefits the most here.

@Akyhne> Maybe you're right, but I'm still far away from being able to organize SMG testing into a team and everything... ;)

@leighlife> Just be sure to remember that you don't have to fix all issues you find. But as you can see, I'm welcoming any help I can get. Thanks again for lifting some of the weight off my back!

@Captain351> That's not a bug. Album 'icons' use the thumbnail size. Album 'bigicons' use the icon size you've been trying to set. I don't really the point of adding an 'album smallicon size' feature for now... I made the bigicon one for Foxprog really, but I never got any feedback from it. So I consider this as a 'personal feature' which I added for myself, and no one cares to use. Not a problem :)

@BlueDevil> RC3 is several weeks old now... Are you sure you downloaded it last week? It wasn't available anymore... Anyway, install v2.0.2 instead and tell me the line number in the error message if it shows up again. Do you have a big gallery?

@martensite> If you're using Thai language, make sure your Modifications.thai.php (?) file contains the SMG modifications.

@gmoneyluv> chmod 0644 on MGalleryItem.php
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: gmoneyluv on November 05, 2009, 12:50:40 PM
Quote@gmoneyluv> chmod 0644 on MGalleryItem.php

I switched it 0755 and it works. Should i use 0644 instead?

Thanks for the quick response!   
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 05, 2009, 01:56:49 PM
Yeah, 0755 is good.
I think 0755 is for files, and 0644 for folders (0755 is the same, except it has the "execute" flag set for all three types.)
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Arantor on November 05, 2009, 02:25:07 PM
Quote from: Nao/Gilles on November 05, 2009, 01:56:49 PM
Yeah, 0755 is good.
I think 0755 is for files, and 0644 for folders (0755 is the same, except it has the "execute" flag set for all three types.)

Other way around. You need 0755 on folders since the 'execute' flag means 'allowed to enter' on folders, 0644 on files is good.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 05, 2009, 02:47:38 PM
Right :)
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 05, 2009, 03:40:26 PM
Quote from: Nao/Gilles on November 05, 2009, 12:38:15 PM
- Basically, SMG already had a small Aeva in it... Aeva will get several more new features such as embedding permissions, while SMG will only be ensured that Aeva is always available. Aeva benefits the most here.
Forgot to mention -- one of the best improvements to Aeva will be that it'll finally be able to use JWPlayer to show MP4/FLV videos, since it's embedded in SMG... It's important because currently it relies on an external player and I've never liked that.

For SVN addicts, I've made a decision. For now, I'll be moving the SMG subversion to Aeva's, which means there will be no changes to how the SVN is handled for now. I was going to go for Google Code, but I didn't want to scatter the project too much, so even though I'm not against the idea of hosting the project on GC in the future, for now it will be on smf-media.com, in the usual SVN page:
http://smf-media.com/community/index.php?action=svn
Instead of going to the SMG page (which crashes, which I think is due to the fact that it has 1100+ updates), you'll simply need to go to the Aeva page (99 updates so far, so it should be good for at least a few months), which as opposed to SMG's, has read access for guests.

I'll try to commit my first merge attempt tomorrow. I've done it successfully on a test server but will rewrite the merge from scratch because the first attempt was overly complicated ;)
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Captain351 on November 05, 2009, 04:55:02 PM
Quote@Captain351> That's not a bug. Album 'icons' use the thumbnail size. Album 'bigicons' use the icon size you've been trying to set. I don't really the point of adding an 'album smallicon size' feature for now... I made the bigicon one for Foxprog really, but I never got any feedback from it. So I consider this as a 'personal feature' which I added for myself, and no one cares to use. Not a problem :)

That's disappointing I like being able to use the Folder Icons but at the size they are now my Albums scroll way beyond the bottom of the page which I don't like.  Since my coding skills suck and changing the Icon sizes is beyond me I guess I need to ask if there is a way to go back to the default album Icons and sizes. I can't seem to figure out a way to do it.

How hard is it to hard code the size of those album Icons If someone could tell me where to look and give be a few pointers I might try it. right now I wouldn't even know where to start.

Captain
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Tiribulus on November 05, 2009, 05:15:21 PM
Quote from: Nao/Gilles on November 05, 2009, 12:38:15 PM
<<< @Tiribulus> Oh, it won't be THAT hard...
- Although it'll get the Aeva brand name, I'll be merging Aeva into SMG, not the other way around.
- Aeva is not THAT big a mod... I'll just have to integrate its admin area into SMG's.
- I don't think I'll rename most of the internal variables. So the tables will still be called "smf_mgallery_items", not "smf_aeva_items" for instance...
- Basically, SMG already had a small Aeva in it... Aeva will get several more new features such as embedding permissions, while SMG will only be ensured that Aeva is always available. Aeva benefits the most here. >>>

Well this should certainly make the resulting package one of the most ambitious ever for SMF.

One unrelated thing which is just a suggestion. I was getting some complaints from my wife about the small arrows on the first  highslide expansion that represent the link to the next expansion. It took me a little while to figure it out, but I changed that to simply read "larger image" as in this screenshot.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fgregnmary.gotdns.com%2Fpix%2Fhslarger.jpg&hash=49aa0062d7a5d929e05d78bfb15c86b3c7002ca8)

Just my opinion, but I suspect many forums have users for whom this would be easier to find
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 05, 2009, 06:25:02 PM
@Captain> It's not an easy hack. I've added it to my to-do-list for Aeva Media.

@Tiribulus> Ambitious indeed... I may actually have to write an import script for SMG's variables/settings, lol.
Aeva Media will show "ZOOM | DETAILS" instead of "More details...", I think. Is that okay?
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Captain351 on November 05, 2009, 06:34:57 PM
Quote@Captain> It's not an easy hack. I've added it to my to-do-list for Aeva Media.

Thanks! Can you help me get rid of the Album icons and go back to the default.

Captain
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Tiribulus on November 05, 2009, 07:01:41 PM
Quote from: Nao/Gilles on November 05, 2009, 06:25:02 PM
@Captain> It's not an easy hack. I've added it to my to-do-list for Aeva Media.

@Tiribulus> Ambitious indeed... I may actually have to write an import script for SMG's variables/settings, lol.
Aeva Media will show "ZOOM | DETAILS" instead of "More details...", I think. Is that okay?

ZOOM!!! Now why didn't I think of that? Yeah that would be great, but like I say it's just my opinion though I have a feeling others would like it like that too.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Tiribulus on November 05, 2009, 11:57:54 PM
Just a quick note to let you know that the disappearing video on page refresh when caching is enabled is still around. I tested video in SMG for the first time today and found that if after an initial embed the video is fine, but after refreshing the page it disappeared. I found the thread from last December over at smf-media where you told some body to disable caching and that worked for me too.

Dragoon said to find this in mgallery.php:
         $mgalFunc['cache_put_data']('mgallery-embed-link-'.$item_data['embed_url'], 1200);

and replace it with this:
         $mgalFunc['cache_put_data']('mgallery-embed-link-'.$item_data['embed_url'], $item_data['embed_object'], 1200);

I haven't tried it, but if that's all there is to it it should be easy to include in a future release.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 06, 2009, 11:08:29 AM
@Captain> Just reset the thumbnail size and launch the Regenerate Thumbnails task...

@Tiribulus> I'm afraid the fix you're mentioning is already in SMG... (Ouch.)

@For beta testers... And anyone who would like to test?

rev 1147 adds these:

Quote- Removed mod_security test from Admin credits area, as it always failed on mod_security servers I had the opportunity to test. (MGallery-Admin.php, template)
+ Replaced it with a new Ajax-based test within the Settings page, that will always tell you whether you need to enable the mod_security hack or not. (MGallery-Admin.php, MGallery.php, language files, template, script-admin.js)
- Removed local fixes for mod_security as they're all handled by the new hack now. (MGallery-Sub.php, template)
* Moved mod_security hack setting to Main Settings rather than Security Settings -- don't be fooled by the module name! (MGallery-Admin.php)
! Fixed failed embeds in case the header tag isn't in lowercase (e.g. when calling a smg tag from within a SSI-enabled external page.) (Subs-MGallery-Vital.php, Subs-MGallery.php)

I'm thinking of releasing it as SMG 2.0.3, but I'll need some prior testing. Especially by users who know they have mod_security installed, but where SMG was unable to point it out. Thanks! (Also please test mass upload so I can be sure the new hack entirely takes care of it...)
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: tfs on November 06, 2009, 11:16:50 AM
Where's the beta distributed now?  The SVN browser still has that fatal error for me.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 06, 2009, 11:48:41 AM
Still the same place...
I'm just waiting for someone to offer testing it and then I'll package it into a zip file.

The SMG package will be available in the Aeva svn when I'm finished merging them, not before (as separate entities). I think.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Captain351 on November 06, 2009, 01:05:52 PM
Quote@Captain> Just reset the thumbnail size and launch the Regenerate Thumbnails task..
.

Thats a great feature and I'm glad I know about it now but unfortunately it didn't help. It just regenerates the thumbnails to whatever size I set but it does not remove the Thumbnail and go back to the original icon. If there isn't a way to do this in version 2.0.2 I can wait for a new version or even wait on AM if necessary.

Captain
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Legend Zero on November 06, 2009, 02:07:14 PM
Nver said it was intentional, was just a little frustrated. We use the gallery a LOT so I could not afford to have it down, even for a short time.

Next time you're online, stop by http://www.legendzero.com/forum, my username there is legend0922. Send me an email or a PM and I'll run the upgrade so you can see the error, then hopefully we can figure it out.

If not, I'll mvoe back down to 2.0 B3
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Tiribulus on November 06, 2009, 02:32:29 PM
Quote from: Nao/Gilles on November 06, 2009, 11:08:29 AM
<<< @Tiribulus> I'm afraid the fix you're mentioning is already in SMG... (Ouch.) >>>

Shows ya what I know. Maybe it was my browser. (ouch?)
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 06, 2009, 06:15:25 PM
@Captain> I'm not really sure what you're trying to achieve...?

@Tiribulus> Can you give me a step-by-step on how to reproduce this?
You may want to give it a try on noisen.com's gallery. I've enabled caching for you to try.
If this involves creating a [smg] tag post somewhere (I'm not sure where your error happens?), please use Aeva's [Test] Video Embedding topic. I've already got YouTube's Where the hell is Matt video in the Central gallery if you need an embed video.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Tiribulus on November 06, 2009, 08:01:49 PM
Quote from: Nao/Gilles on November 06, 2009, 06:15:25 PM
<<< @Tiribulus> Can you give me a step-by-step on how to reproduce this?
You may want to give it a try on noisen.com's gallery. I've enabled caching for you to try.
If this involves creating a [smg] tag post somewhere (I'm not sure where your error happens?), please use Aeva's [Test] Video Embedding topic. I've already got YouTube's Where the hell is Matt video in the Central gallery if you need an embed video.

All I did was enter an untagged url to my other server. It auto tagged it [url] and it worked until I refreshed the page and then there was just the blank background css color with no player. The link was still there though. I disabled caching as per the suggestion in the post at smf-media and it starting working properly even after several page refreshes. As dumb as it was, I didn't think to look in the error log.  I uploaded a video where you said @ noisen, but I started a gallery first because I was trying to do too may things at once and didn't read this post closely. You can just delete it.

If need be I can reproduce it on my server.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 07, 2009, 03:43:28 AM
I don't get it..... Are you telling me that your problems happen when posting a video link inside a message?

This has absolutely nothing to do with SMG...!
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Tiribulus on November 07, 2009, 09:13:50 AM
Quote from: Nao/Gilles on November 07, 2009, 03:43:28 AM
I don't get it..... Are you telling me that your problems happen when posting a video link inside a message?

This has absolutely nothing to do with SMG...!

No, in SMG. I start a gallery, go to add an item in the form of a url to a video clip, no tags just the url, and if caching is enabled it does the above display fine once then disappear on refresh thing.  With caching disabled it works fine. Everything I was saying about the empty space etc. is on the page for the video in the gallery in SMG. Another weird thing is it's keeping the icon from a previous test that I deleted.

The first shot is the page for uploading the media.

The second is how it looks after uploading it and the third is how it looks after I simply refresh the page (F5)

This is with caching enabled. If I disable caching it persists after the refresh. I've only tried it logged in as admin now that I think of it. No errors in the log BTW.

This is another thing that isn't the end of the world for me, I'm just telling you in case it helps you. However, I think I know you by now and it will nag at you until you know why this is happening. :)

Update: I just now went into the gallery the normal user way, not within the SMG CP and the video is there, but it does still have the icon from the old one. I dunno man.

Update2: OK, now it is back to image number three below. It seems like If I don't go in for a while it;s there and then refreshing makes the player disappear again. If you want to look for your self it's here: http://gregnmary.gotdns.com:8080/index.php?action=mgallery;sa=item;id=555 caching is still enabled.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: tumbleweed on November 07, 2009, 03:15:17 PM
Hi,

I am trying to help out a customer of mine that is runnning this mod:
SMF Media Gallery 2.0 beta 1

She has had the gallery working on her site since dec 2008. However it just stop working. It seems that when one uploads a pictuer the picture does not show. And if you look in the admin section you get a message like this concerning the picture.
The physical file #3917, used with item #1520, is missinng.

url to gallery:
http://samuelcastelan.com/index.php?action=mgallery

Thanks in aadvance for you help.

Frank
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: BogusAurelius on November 07, 2009, 04:36:28 PM
after install atop the header i see this
// SMF Media Gallery extra strings $txt['mgallery_gallery'] = 'Gallery'; $txt['mgallery_home'] = 'Home'; $txt['mgallery_unseen'] = 'Unseen'; $txt['mgallery_profile_sum'] = 'Summary'; $txt['mgallery_view_items'] = 'View items'; $txt['mgallery_view_coms'] = 'View comments'; $txt['mgallery_view_votes'] = 'View votes'; $txt['mgallery_gotolink'] = 'More details...'; $txt['permissiongroup_mgallery'] = 'SMF Media Gallery'; $txt['permissiongroup_simple_mgallery'] = 'SMF Media Gallery'; $txt['permissionname_mgallery_access'] = 'Access Gallery'; $txt['permissionname_mgallery_moderate'] = 'Moderate Gallery'; $txt['permissionname_mgallery_manage'] = 'Administrate Gallery'; $txt['permissionname_mgallery_access_unseen'] = 'Access unseen area'; $txt['permissionname_mgallery_search'] = 'Search in Gallery'; $txt['permissionname_mgallery_add_user_album'] = 'Add User Albums'; $txt['permissionname_mgallery_add_playlists'] = 'Add User Playlists'; $txt['permissionname_mgallery_auto_approve_albums'] = 'Auto-approve User Albums'; $txt['permissionname_mgallery_viewprofile'] = 'View anyone\'s Gallery profile'; $txt['cannot_mgallery_viewprofile'] = 'You cannot view Gallery profiles'; // End SMF Media Gallery strings
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Kindred on November 07, 2009, 05:00:37 PM
tumbleweed...   I suggest uninstalling that version and installing the newest version.
However, The error indicates the problem. Someone deleted a file through the file system, not through the gallery.

Bogus...   the mod did not install correctly (probably becase another mod moved some of the code around. Look in modifications.english.php and index.template.php
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: tumbleweed on November 07, 2009, 05:11:19 PM
Quote from: Kindred on November 07, 2009, 05:00:37 PM
tumbleweed...   I suggest uninstalling that version and installing the newest version.
However, The error indicates the problem. Someone deleted a file through the file system, not through the gallery.

Bogus...   the mod did not install correctly (probably becase another mod moved some of the code around. Look in modifications.english.php and index.template.php


Thank you for your reply.

If I unstall and re-install thru the admin center. does it also delete the folders were the pictures are. And If this is the case. what folders would I rename so as not to delete the pictures.

As far as the error goes. I uploaded a pic myself and went right to the gallery admin area. That is were I found the error. I am unsure how the mod works to create the files that go with the picture so as one may call it up.

Thanks
Frank
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Tiribulus on November 07, 2009, 05:44:38 PM
I've gone though a half dozen versions of this mod, uninstalling and reinstalling and it has never lost a single file of mine. Maybe a path or permissions issue with the missing file?
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: LHW on November 07, 2009, 06:56:33 PM
@tumbleweed: You can also try going into the Maintenance jobs and regenerating the Previews.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 08, 2009, 06:51:39 AM
Tiribulus, it would have been faster for me to debug your problem if you had given a link immediately... ;)
What happens here is that Aeva handles the showing, but it expects the swfobject script to be loaded. However, it isn't the case when caching is enabled, apparently... So I'll try to simply add the swfobject headers when caching is enabled and Aeva is being called. This should account for all cases...
The problem will be entirely gone (i.e. no need for a hack) when I release Aeva Media, I guess. I'll just need to remember I can remove the hack ;)

Edit -- actually it'll be simpler to just disable swfobject altogether when calling Aeva with caching enabled. You just won't get the "Normal size | Large size" options, I'm afraid... But better than nothing! Or should I simply disable caching for embedded objects?! Even better?
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 08, 2009, 07:04:41 AM
Tentative fix for you, Tiribulus. Open MGallery-Embed.php, line 29:

$msg = parse_bbc(substr($message, 0, 4) == 'http' ? $msg : $message);

Replace with:

$context['smg_hack'] = true;
$msg = parse_bbc(substr($message, 0, 4) == 'http' ? $msg : $message);
unset($context['smg_hack']);


Does it work?
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Tiribulus on November 08, 2009, 09:50:45 AM
Quote from: Nao/Gilles on November 08, 2009, 06:51:39 AM
Tiribulus, it would have been faster for me to debug your problem if you had given a link immediately... ;)>>>

What kept you I was beginning to worry  :D

I suppose that would have been a good idea huh?

Yep, your fixed worked. Thank you sir. I do appreciate your hard work. I have to wonder though why more people weren't reporting this. It seems like something that would be fairly widespread.

I'm pretty sure the reason I can't generate my own thumbnails is because ffmpeg has thus far steadfastly refused to play nice with Apache on my server which there's nothing you can do anything about.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Darkness_ on November 08, 2009, 03:43:44 PM
Is it possible that under the upload file form for pics,
to place an box to "upload" pictures with an url (image upladed at imageshack or something)
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: dannbass on November 08, 2009, 03:57:00 PM
Yes it is possible, with Foxy! (http://aeva.noisen.com/5354/foxy-add-on-for-smf-media-gallery/)
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: InfoStrides on November 08, 2009, 04:31:21 PM
Hello All,

I installed SMF Media Gallery v2.0.4 successfully yesterday but was unable to achieve the following after creating a folder or album:

1. I cannot upload. It was complaining of image is wider and size is bigger, which was not.
2. After the album is created, I cannot open it. It keeps redirecting me to homepage.
3. The album could not be edited.
4. I cannot upload to the album.
5. I experienced this at both admin and members' level.

Please help me out.

forum link: http://www.infostridesforum.com

Thanks.

Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: LHW on November 08, 2009, 05:05:35 PM
Nao checks the posts at SMF-Media when he has time...you don't need to repost the same issue here.  It's only been a day, and he's a busy guy.  Give him time, and he'll reply.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Petter B on November 09, 2009, 01:36:26 AM
Hello Nao
I´m about to install SMG, but don´t have that much space left in my hosting account.
Would it be possible to place the image folder on another server?
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: InfoStrides on November 09, 2009, 03:58:35 PM
Quote from: Lord High Warlock on November 08, 2009, 05:05:35 PM
Nao checks the posts at SMF-Media when he has time...you don't need to repost the same issue here.  It's only been a day, and he's a busy guy.  Give him time, and he'll reply.

Thank you for the information. It is well noted! I will be waiting for his response soon.
Title: chmodded error | Not make sense ?
Post by: Vyache on November 09, 2009, 09:58:15 PM
Hello,

I got this error...
This album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums are chmodded to 0777

I checked both files and all the rest, but I have em set to 777. I don't know why this error is occurring?

Let me know what to do...
Thank You!
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Vyache on November 10, 2009, 12:17:09 AM
I found one issue, my mgal_data/albums folder was not copied right, it was missing albums as a folder and for some reason made it as a file, same thing with the others. I still have not fixed this problem.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Vyache on November 10, 2009, 02:49:54 AM
I'm having issues installing the thing. For some reason, it does not install all the parts, it missed out on some major files, such as the pictures for the menu, such as the home button and admin. This folder was called mgallery, which goes into themes folder was not installed properly. It made a blank file for some reason.

My mass upload isn't working for some reason, it works on my other forum, smf 10. but not in 2.0...

I'm stumped, any one know the problem? 
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Arantor on November 10, 2009, 08:18:38 AM
Which 2.0 version?
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: L'AltroWeb on November 10, 2009, 09:03:44 AM
Hi!
I've test to install latest release in a latest smf 2 rc2 test forum without errors in setup but i receive this error when i go in http://darkwolf.altervista.org/smf2/index.php?action=mgallery
Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation 'ifnull'
File: /membri/darkwolf/smf2/Sources/Subs-MGallery.php
Line: 2816
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Vyache on November 10, 2009, 10:26:51 AM
Quote from: Arantor on November 10, 2009, 08:18:38 AM
Which 2.0 version?

My SMF 2.0 RC2 is having trouble installing all of the files currently because something happened in the load.php file and I fixed it, but doing the install manually, well half manual and rest let the app do it self. It was missing many files, I'm not sure why that happened.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: InfoStrides on November 10, 2009, 11:24:54 AM
Quote from: infostrides on November 08, 2009, 04:31:21 PM
Hello All,

I installed SMF Media Gallery v2.0.4 successfully yesterday but was unable to achieve the following after creating a folder or album:

1. I cannot upload. It was complaining of image is wider and size is bigger, which was not.
2. After the album is created, I cannot open it. It keeps redirecting me to homepage.
3. The album could not be edited.
4. I cannot upload to the album.
5. I experienced this at both admin and members' level.

Please help me out.

forum link: http://www.infostridesforum.com

Thanks.

Thank you all. This problem is resolved!

I selected option *Rewrite SMF Gallery URLs* in Pretty URL area.

More so, I discovered that my menu tab were disrupted when pictures were upload but I have done some modification in index.template.php to resolved this but I don't if some of SMG would be affected. Please see below the changes.


BEFORE

if (allowedTo('mgallery_access'))
      echo ($current_action == 'mgallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
            <td class="maintab_', $current_action == 'mgallery' ? 'active_back' : 'back', '">
               <a href="', $scripturl, '?action=mgallery">', $txt['mgallery_gallery'], $mgallery_unseen ? '</a> <a href="' . $scripturl . '?action=mgallery;sa=unseen">[<b>' . $mgallery_unseen . '</b>]' : '', '</a>
            </td>', $current_action == 'mgallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


AFTER

   if (allowedTo('mgallery_access'))
      echo ($current_action == 'mgallery' || $context['browser']['is_ie4']) ? '' : '', '
      <li class="maintab_', $current_action == 'mgallery' ? 'active_back' : 'back', '">
      <a href="', $scripturl, '?action=mgallery">', $txt['mgallery_gallery'], $mgallery_unseen ? '[<b>' . $mgallery_unseen . '</b>]' : '', '</a></li>';
Title: Re: error after upgrading to RC1.2
Post by: Chris@houseofgreybook on November 10, 2009, 08:15:32 PM
Hey all. Just finished upgrading to RC1.2 and everything is working fine except for this. When I click on any member's name, the link is supposed to take you to that member's profile. Instead, i get this error
QuoteParse error: syntax error, unexpected T_DOUBLE_ARROW in /forum/Sources/Profile.php on line 358

I checked the profile.php file and line 358 is where this mod starts. I've attached my profile.php for reference. I had to modify the install instructions because another mod had changed the code the profile.php modification was finding to add after, but other than that the install went smooth.

Any help would be greatly appreciated.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: simon36 on November 10, 2009, 08:33:29 PM
Hi, I am receiving this error with the cpg converter

Database Error
SELECT command denied to user 'smjbd12_smf3'@'localhost' for table 'cpg_pictures'
File: /home/smjbd12/public_html/smf_forum112/mgconverter_cpg.php
Line: 159

Any help gratefully received!
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Forum Guy on November 10, 2009, 10:00:06 PM
how exactly do I install it?
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Vyache on November 10, 2009, 11:08:34 PM
Quote from: Vyache on November 10, 2009, 02:49:54 AM
I'm having issues installing the thing. For some reason, it does not install all the parts, it missed out on some major files, such as the pictures for the menu, such as the home button and admin. This folder was called mgallery, which goes into themes folder was not installed properly. It made a blank file for some reason.

My mass upload isn't working for some reason, it works on my other forum, smf 10. but not in 2.0...

I'm stumped, any one know the problem?

I'm also having trouble see images that are included in the install, they just don't show up. In firefox  I don see them at all in I.E I see big white X's.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Vyache on November 10, 2009, 11:51:42 PM
Quote from: Vyache on November 10, 2009, 11:08:34 PM
Quote from: Vyache on November 10, 2009, 02:49:54 AM
I'm having issues installing the thing. For some reason, it does not install all the parts, it missed out on some major files, such as the pictures for the menu, such as the home button and admin. This folder was called mgallery, which goes into themes folder was not installed properly. It made a blank file for some reason.

My mass upload isn't working for some reason, it works on my other forum, smf 10. but not in 2.0...

I'm stumped, any one know the problem?

I'm also having trouble see images that are included in the install, they just don't show up. In firefox  I don see them at all in I.E I see big white X's.

Okay, I was able to install the thing and get image to upload, but I still cannot see the images, like the icons on the gallery page, next to home, admin and etc. My mass upload feature wont work. I can't figure why not. My Server host told me to change my htaccess file contents to:

<IfModule mod_security.c>
  3    # Turn off mod_security filtering.  SMF is a big boy, it doesn't need its hands held.
  4    SecFilterEngine Off
  5
  6    # The below probably isn't needed, but better safe than sorry.
  7    SecFilterScanPOST Off
  8 </IfModule>

Can I get some help here please, I had zero support in this thread.
I appreciate any help from anyone, thank you.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Petter B on November 10, 2009, 11:54:57 PM
Quote from: Petter B on November 09, 2009, 01:36:26 AM

I´m about to install SMG, but don´t have that much space left in my hosting account.
Would it be possible to place the image folder on another server?


Anyone?
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Vyache on November 11, 2009, 12:15:32 AM
Quote from: Vyache on November 10, 2009, 11:51:42 PM
Quote from: Vyache on November 10, 2009, 11:08:34 PM
Quote from: Vyache on November 10, 2009, 02:49:54 AM
I'm having issues installing the thing. For some reason, it does not install all the parts, it missed out on some major files, such as the pictures for the menu, such as the home button and admin. This folder was called mgallery, which goes into themes folder was not installed properly. It made a blank file for some reason.

My mass upload isn't working for some reason, it works on my other forum, smf 10. but not in 2.0...

I'm stumped, any one know the problem?

I'm also having trouble see images that are included in the install, they just don't show up. In firefox  I don see them at all in I.E I see big white X's.

Okay, I was able to install the thing and get image to upload, but I still cannot see the images, like the icons on the gallery page, next to home, admin and etc. My mass upload feature wont work. I can't figure why not. My Server host told me to change my htaccess file contents to:

<IfModule mod_security.c>
  3    # Turn off mod_security filtering.  SMF is a big boy, it doesn't need its hands held.
  4    SecFilterEngine Off
  5
  6    # The below probably isn't needed, but better safe than sorry.
  7    SecFilterScanPOST Off
  8 </IfModule>

Can I get some help here please, I had zero support in this thread.
I appreciate any help from anyone, thank you.

I created a file crossdomain.xml, but that didn't solve me problem...
It contained,

<?xml version="1.0"?>
      

       <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
      

       <cross-domain-policy>
      

       <allow-access-from domain="*.company.com" />
      

       </cross-domain-policy>
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Kindred on November 11, 2009, 12:51:13 AM
Petter B...   not without serious re-writing.

Forum Guy... download the mod archive (link in the first post) then use the package manager in your forum admin to install.

simon... It looks like you are trying to convert a separate coppermine gallery to SMG?  If so, I think that you will have to make sure that the SMF database user has full permissions to the CPG database.

Vyache, you have bumped your post 6 times in the last 24 hours... many of us have lives offline.
Are you using the default theme? It looks like your server has issues with permissions. If not all of the files get editted or added, then you are going to have major issues. From what you said earlier, it looks like your installation did not succeed at all, even if the system recognized it as complete.   It looks like the mod commands to modify or add files were actually ignored. This means that you will have to do a fully manual installation.

Dark-Wolf - that's a database problem looks like you have part of your database set up with one collation and other tables set up with a different one.  Use phpmyadmin and reset the collations to that same on all tables.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Vyache on November 11, 2009, 12:57:02 AM
Quote from: Kindred on November 11, 2009, 12:51:13 AM
Petter B...   not without serious re-writing.

Forum Guy... download the mod archive (link in the first post) then use the package manager in your forum admin to install.

simon... It looks like you are trying to convert a separate coppermine gallery to SMG?  If so, I think that you will have to make sure that the SMF database user has full permissions to the CPG database.

Vyache, you have bumped your post 6 times in the last 24 hours... many of us have lives offline.
Are you using the default theme? It looks like your server has issues with permissions. If not all of the files get editted or added, then you are going to have major issues. From what you said earlier, it looks like your installation did not succeed at all, even if the system recognized it as complete.   It looks like the mod commands to modify or add files were actually ignored. This means that you will have to do a fully manual installation.

Dark-Wolf - that's a database problem looks like you have part of your database set up with one collation and other tables set up with a different one.  Use phpmyadmin and reset the collations to that same on all tables.

First off, I installed successfully. Thank very much. So no manual install, as I noted in my post. Yes, I am using Default theme, but I modified it a bit. That has no affect on my install because I changed it to all fresh and that did not fix the problem.

I'm sorry that you feel that I bumped my post, but I have not, I was updating my situation as you can see I did not spam, OMG OMG, help 6 times.

What do you mean? "It looks like the mod commands to modify or add files were actually ignored."

Please provide any help, thank you.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Petter B on November 11, 2009, 01:00:32 AM
Kindred....thank you for your answer. I hope placing the image folder on a different server can be a feature in a future release.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Vyache on November 11, 2009, 01:33:41 AM
Quote from: Vyache on November 11, 2009, 12:57:02 AM
Quote from: Kindred on November 11, 2009, 12:51:13 AM
Petter B...   not without serious re-writing.

Forum Guy... download the mod archive (link in the first post) then use the package manager in your forum admin to install.

simon... It looks like you are trying to convert a separate coppermine gallery to SMG?  If so, I think that you will have to make sure that the SMF database user has full permissions to the CPG database.

Vyache, you have bumped your post 6 times in the last 24 hours... many of us have lives offline.
Are you using the default theme? It looks like your server has issues with permissions. If not all of the files get editted or added, then you are going to have major issues. From what you said earlier, it looks like your installation did not succeed at all, even if the system recognized it as complete.   It looks like the mod commands to modify or add files were actually ignored. This means that you will have to do a fully manual installation.

Dark-Wolf - that's a database problem looks like you have part of your database set up with one collation and other tables set up with a different one.  Use phpmyadmin and reset the collations to that same on all tables.

First off, I installed successfully. Thank very much. So no manual install, as I noted in my post. Yes, I am using Default theme, but I modified it a bit. That has no affect on my install because I changed it to all fresh and that did not fix the problem.

I'm sorry that you feel that I bumped my post, but I have not, I was updating my situation as you can see I did not spam, OMG OMG, help 6 times.

What do you mean? "It looks like the mod commands to modify or add files were actually ignored."

Please provide any help, thank you.

QuoteI've been struggling with this issue all day and finally fixed it, so I figured I'd share with others.

Converted from SMF Gallery Lite to SMF Media Gallery this morning - installation and conversion went smoothly with no issues!  Made the necessary changes to my custom theme's BoardIndex.template.php and Modifications.english files for proper integration into my theme.  Again, everything smooth.

Single picture uploads work with no problem.

Mass upload... allows me to select files, but when I clicked on "Upload" I got no response.  No error message, no timeout, nothing at all.

I searched these forums and saw some mention about all uploading issues being related to mod_security in .htaccess or crossdomain.xml - so I tried both, and still no joy.

Finally, saw a note from early on, copied the mgallery directory from the SMF Default template directory into the custom theme directory and everything is working now.

Just one thing that worked for me.  Good luck everybody.

Thanks to the authors for a great mod.

Thank You ShadyJC!
Topic: http://smf-media.com/community/index.php?topic=778.0 (http://smf-media.com/community/index.php?topic=778.0)

Problem solved. Main issue was the installer is bugged. It installed successfully on my forum, but did not place the files in the right place. Please fix the installer for future users (smf 2.0 RC2), thank you.

The fix required moving mgallery into the image folder, which is inside the default theme. Also, placing the other mgallery inside the default theme. That fixed the problem for me. I hope this solves problems with mass uploading for the feature.

I appreciate the help from the community, thank you.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Kindred on November 11, 2009, 01:38:07 AM
Petter B... unlikely.   You get all sorts of hacks that try to communicate cross domain like that, so most browsers are going to step on any attempts to do that sort of thing.

My suggestion: Get a better host or hosting package.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Baloch on November 11, 2009, 07:30:21 AM
Hi there.

I tried to uninstall SMG 1.5.6 before installing SMG 2.0.2 but its showing error in a french language file. (Its not my need)
Plz advice what to do?

Looking forward for your prompt response.

With regards

Raji Baloch



Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: L'AltroWeb on November 11, 2009, 09:55:54 AM
Quote from: Kindred on November 11, 2009, 12:51:13 AM
Dark-Wolf - that's a database problem looks like you have part of your database set up with one collation and other tables set up with a different one.  Use phpmyadmin and reset the collations to that same on all tables.
My forum is in utf8_general_ci instead mgallery tables is with utf8_unicode_ci
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg39.imageshack.us%2Fimg39%2F3711%2Fgallerydb.th.png&hash=24915df57741ae6a7bfd467d7b31594707fbb282) (http://img39.imageshack.us/img39/3711/gallerydb.png)
PS: i've installed without other mod my smf2 in utf8 and i've installed without errors media gallery.
I think is best to report to media gallery support ;)
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: LHW on November 11, 2009, 10:10:38 AM
Query: I just checked, and while most of my SMF database is in "utf8_general_ci" the SMG entries are in "latin1_swedish_ci" (along with one other table for a different Mod)!?  ???

I have no idea how that might've happened, as I rarely go into the database.  Do I need to change these to match the SMF dB entries??

EDIT: I just did a fresh install, and it looks like the "latin1_swedish_ci" is the default.  Should I change the others to match this??  And if so, how??
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 11, 2009, 10:20:46 AM
Wow, that's a lot of posts... That's what happens when I leave the topic unmonitored for a couple of days ;)
I'll have more time to look into the messages tomorrow. So see you all!
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Lonewood on November 11, 2009, 03:15:51 PM
Love this mod - fantastic.

However, have 2 small problems.  Was running 1.5.6 so upgraded to the latest version in hope of fixing but still there:

1.  Have an album that just wasnt working for some reason so moved all the images to a new album which is working properly.  BUT, cannot delete the problem album.  Hit the delete button but it still remains.  Any ideas?

2.  2 of my members have password protected folders but the password protection does not appear to be working - thumbnails appear on the recent items list and when you go to the album, it doesnt ask for the password.  So these images are being shown when the members would prefer to keep these private just to a few invited members.  ie. you have to be logged in to view the image but I need the password protection to be a level above that.

my link is www.aussiesapphire.com.au/forum

Using default theme (boring I know but works) - latest version of SMF.  Mod appeared to install properly and seems to be working fine otherwise apart from the Apache security mod thing which I am supposed to turn off for mass uploads (just going to look up how to do that now).

Any advice on these issues - number 2 is the more important one - would be greatly appreciated.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: bmaurits on November 12, 2009, 10:19:35 AM
Installed it and gor following erroe messages:

admin   Vandaag om 17:09:14 
83.87.176.183     c7f8a2d3a8d33eb5734ab49baa666df1 
http://www.sapg.nl/smf/index.php?action=viewErrorLog;desc 
8: Undefined index: mgallery_gallery
Bestand: /var/www/vhosts/sapg.nl/httpdocs/smf/Sources/MGallery-Admin.php
Regel: 3752

   admin   Vandaag om 17:09:14 
83.87.176.183     c7f8a2d3a8d33eb5734ab49baa666df1 
http://www.sapg.nl/smf/index.php?action=viewErrorLog;desc 
Kan taalbestand 'MGallery.dutch' niet laden.

   admin   Vandaag om 16:58:54 
83.87.176.183     c7f8a2d3a8d33eb5734ab49baa666df1 
http://www.sapg.nl/smf/index.php?action=admod 
8: Undefined index: mgallery_gallery
Bestand: /var/www/vhosts/sapg.nl/httpdocs/smf/Themes/default/languages/Ads.dutch.php (main_above sub template - eval?)
Regel: 665

Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 13, 2009, 12:46:10 PM
Quote from: Petter B on November 09, 2009, 01:36:26 AM
Hello Nao
I´m about to install SMG, but don´t have that much space left in my hosting account.
Would it be possible to place the image folder on another server?
No. SMG would need to send your other server information about what to store. I would have to write a client and a server just for that. It's a bit silly... Unless you have a high profile website and $10.000 to spare on custom development, I can't help you.

If you're short on space and still want a picture gallery, here's how to do it:
- upload all your pictures to picasa, imageshack, tinypic or any site like that...
- purchase and install the Foxy! add-on
- insert your image URLs as embed links
- the image will stay off site, only the preview and thumbnail will be created locally.
- if you don't want previews to be created, just set preview size to 0 (or 9999, not sure. Probably 0.)
- thumbnails need to be created on site, though.

Quote from: Dark-Wolf on November 10, 2009, 09:03:44 AM
I've test to install latest release in a latest smf 2 rc2 test forum without errors in setup but i receive this error when i go in http://darkwolf.altervista.org/smf2/index.php?action=mgallery
Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation 'ifnull'
File: /membri/darkwolf/smf2/Sources/Subs-MGallery.php
Line: 2816

The 'usual' collation would be utf8_general_ci.
I don't know why SMF installed the tables with another collation. I'm using the default SMF/SQL commands for creating tables. Nothing fancy.

Quote from: Chris@houseofgreybook on November 10, 2009, 08:15:32 PM
QuoteParse error: syntax error, unexpected T_DOUBLE_ARROW in /forum/Sources/Profile.php on line 358
You didn't put the code in the right place. There's a ");" just above the SMG code: remove it, and put it below the SMG code instead.

Quote from: simon36 on November 10, 2009, 08:33:29 PM
Hi, I am receiving this error with the cpg converter
Ask your host to give you full rights over your database.

Quote from: Forum Guy on November 10, 2009, 10:00:06 PM
how exactly do I install it?
Like any other mod...
(Is that a trick question?)

Quote from: Dark-Wolf on November 11, 2009, 09:55:54 AM
I think is best to report to media gallery support ;)
Why?

Quote from: Lord High Warlock on November 11, 2009, 10:10:38 AM
I have no idea how that might've happened, as I rarely go into the database.  Do I need to change these to match the SMF dB entries??
I don't know. It depends on the default settings in your MySQL database. There is no 'wrong' setting. Just a 'more logical' one.

Quote from: Lonewood on November 11, 2009, 03:15:51 PM
However, have 2 small problems.  Was running 1.5.6 so upgraded to the latest version in hope of fixing but still there:

1.  Have an album that just wasnt working for some reason so moved all the images to a new album which is working properly.  BUT, cannot delete the problem album.  Hit the delete button but it still remains.  Any ideas?
You're talking about the admin area's Albums page? You can't delete an album over there...? Are you sure you're using the latest version of SMG?

Quote2.  2 of my members have password protected folders but the password protection does not appear to be working - thumbnails appear on the recent items list and when you go to the album, it doesnt ask for the password.
The password isn't requested for album owners, moderators, and administrators.

QuoteSo these images are being shown when the members would prefer to keep these private just to a few invited members.  ie. you have to be logged in to view the image but I need the password protection to be a level above that.
The password system is only there for compatibility anyway. It is now strongly recommended to use the allow user/deny user lists in album edit pages.

QuoteUsing default theme (boring I know but works) - latest version of SMF.  Mod appeared to install properly and seems to be working fine otherwise apart from the Apache security mod thing which I am supposed to turn off for mass uploads (just going to look up how to do that now).
The mod_security hack should be disabled if you don't need it. If browsing an album doesn't work, use it. Otherwise, don't.

Quote from: bmaurits on November 12, 2009, 10:19:35 AM
Installed it and gor following erroe messages:
Rename the MGallery.english.php language files to MGallery.dutch.php.
(Wasn't this issue fixed in SMF 2.0? It definitely was, I remember my bug report was closed at some point...)
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: LHW on November 13, 2009, 01:02:50 PM
Quote from: Nao/Gilles on November 13, 2009, 12:46:10 PM
Quote from: Lord High Warlock on November 11, 2009, 10:10:38 AM
I have no idea how that might've happened, as I rarely go into the database.  Do I need to change these to match the SMF dB entries??
I don't know. It depends on the default settings in your MySQL database. There is no 'wrong' setting. Just a 'more logical' one.

If you don't my asking, what would you say is the "most logical" choice?
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 13, 2009, 01:28:27 PM
Well, if you're Japanese, you're better off with either UTF8 or Shift-JIS as your internal charset, rather than ISO-8859-1... See what I mean?
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Chris@houseofgreybook on November 13, 2009, 01:42:21 PM
Worked like a charm. Thanks so much for the help.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: LHW on November 13, 2009, 01:48:59 PM
Quote from: Nao/Gilles on November 13, 2009, 01:28:27 PM
Well, if you're Japanese, you're better off with either UTF8 or Shift-JIS as your internal charset, rather than ISO-8859-1... See what I mean?

I do.  According to phpMyAdmin, my defaults are:

#  MySQL charset:  UTF-8 Unicode (utf8)
#  MySQL connection collation: utf8_general_ci

I didn't see anything for "American" or "English," so I'm assuming these are properly set.  Yet, the SMG entries are set to "latin1_swedish_ci."  And I have no idea why.  Should these be changed to match the SMF entries, so they're all the same?  If they should be, can you point me in the direction to figure out how to do that, please?

Thanks!
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 13, 2009, 02:02:42 PM
The first part of the collation thingy is the charset. "utf8" = "UTF-8". "latin1" = "ISO-8859-1".
The second part is a sorting method, IIRC. i.e. if it says "swedish", it simply means that when an alphabetical sort is requested, the sorting will be done with Swedish rules. Which, AFAIK, are the same as in English... A, B, C...
The third part says whether the case should be sensitive (cs) or insensitive (ci) when sorting. i.e. a, b, c, A, B, C or a, A, b, B, c, C. From what I remember, at least.
This is why the "utf8_unicode_ci" thing bothers me. I don't know of any unicode sorting method. The charset used for your database, though, will still be UTF8. Which is part of Unicode, although generally "Unicode" is associated with "UTF 16" in one's mind.

Changing a collation is done easily. Launch phpMyAdmin, edit your table, edit your field, there's a dropdown with the charset. Just select utf8_general_ci.

By any chance-- did you at some point upgrade your SMF install to a UTF8 charset, starting from a ISO-8859-1 charset originally? This would explain what happened, because when SMF converts tables, it only converts its own tables, not SMG etc.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: LHW on November 13, 2009, 02:10:21 PM
Hmmm...I honestly don't know.  If I, or my co-Admin, did, it was years ago.  Should I try and put it back to ISO?  I'm at a complete loss when it comes to this.

I DID find how to change the collation for each table...it'll just take time.  Changing the charset is still eluding me, though.

Thanks for all the info!  :)

EDIT: I just checked the SMF Server Settings, and it's set to "English," not "English-Utf8," if that helps.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 13, 2009, 02:25:57 PM
If SMF isn't set to UTF, no wonder the SMG tables were created as ISO.
Can't help much more on this area I'm afraid...
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Arantor on November 13, 2009, 02:31:45 PM
You should be fine to switch collation to utf8-general-ci from utf8-unicode-ci, but please do take a backup first.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 13, 2009, 02:58:05 PM
I don' think switching collations modifies the table contents at all.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Arantor on November 13, 2009, 03:00:51 PM
Depends on the collation change. I *think* switching collations in a group, i.e. within utf8* doesn't modify the table. It might do if it's switching across collations, it'll definitely have to rebuild the index though.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Lonewood on November 13, 2009, 04:00:28 PM
Thank you for your replies.

The Gallery admin shows I am running 2.0.2 of SMG and SMF 1.1.10.

Have an album that just wasnt working for some reason so moved all the images to a new album which is working properly.  BUT, cannot delete the problem album.  Hit the delete button but it still remains.  Any ideas?
QuoteYou're talking about the admin area's Albums page? You can't delete an album over there...? Are you sure you're using the latest version of SMG?

Yes - I cannot delete the album from the admin section.  There are 3 buttons next to each album - edit, delete and move.  Hitting edit takes me to the edit page.  Hitting delete gives me a "are you sure you want to delete" question but when I say yes, it doesnt delete.

2 of my members have password protected folders but the password protection does not appear to be working - thumbnails appear on the recent items list and when you go to the album, it doesnt ask for the password.
QuoteThe password isn't requested for album owners, moderators, and administrators.

Thank you - I had assumed that but it was reported by a general member to the owner of the album that their images were being shown and available.  I cant replicate the problem when I checked just now so will look more into it.

So these images are being shown when the members would prefer to keep these private just to a few invited members.  ie. you have to be logged in to view the image but I need the password protection to be a level above that.
QuoteThe password system is only there for compatibility anyway. It is now strongly recommended to use the allow user/deny user lists in album edit pages.

I had not noticed that new feature - I will look into that and then recommend to my members.  This will be better than password.  Thank you.

Using default theme (boring I know but works) - latest version of SMF.  Mod appeared to install properly and seems to be working fine otherwise apart from the Apache security mod thing which I am supposed to turn off for mass uploads (just going to look up how to do that now).
QuoteThe mod_security hack should be disabled if you don't need it. If browsing an album doesn't work, use it. Otherwise, don't.

Everything is working as it should when browsing (I repeat - this mod is fantastic!!) so will not worry about the mod_security.   I think there may be an issue for mass uploads but my members have not raised this as a problem and I only ever add 1 or 2 images at a time so no problem.

thank you for your reply.  Still cant delete the problem album but this might be just a weird thing for that album only and all others work ok.  The member with the password protected album has deleted that one until I advise about the password so looks like it might be an isolated issue.

thank you
Leah
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 13, 2009, 05:42:33 PM
Quote from: Lonewood on November 13, 2009, 04:00:28 PM
Yes - I cannot delete the album from the admin section.  There are 3 buttons next to each album - edit, delete and move.  Hitting edit takes me to the edit page.  Hitting delete gives me a "are you sure you want to delete" question but when I say yes, it doesnt delete.
I made a try. Took an album from a long gone user who created it long ago and never used it.
Clicked Delete. Clicked OK to confirm. Page reloaded. Album was gone...

QuoteThank you - I had assumed that but it was reported by a general member to the owner of the album that their images were being shown and available.  I cant replicate the problem when I checked just now so will look more into it.
Maybe only the album icon will show? In which case it's normal.
Otherwise, can you ask this user to tell you what pages exactly the items themselves can be seen? Can he actually click the thumbnail and view the page?

QuoteI had not noticed that new feature - I will look into that and then recommend to my members.  This will be better than password.  Thank you.
The password system is only useful if you want to give access to unregistered users.

QuoteEverything is working as it should when browsing (I repeat - this mod is fantastic!!) so will not worry about the mod_security.   I think there may be an issue for mass uploads but my members have not raised this as a problem and I only ever add 1 or 2 images at a time so no problem.
Mass upload issues are not always related to mod_security.

Quotethank you for your reply.  Still cant delete the problem album but this might be just a weird thing for that album only and all others work ok.
The only reason it could fail, is if the album's 'directory' field (an entry in the database) were empty. Which shouldn't happen (otherwise pics would be stored in thin air or something...)
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: MarcusJ on November 13, 2009, 11:20:24 PM
I have embedded an image from SMG in my forum.  It all displays properly.  However if I try to click 'modify' to edit the post I get this error:

Fatal error: Call to undefined function smg_protect_bbc() in /home/******/public_html/community/Sources/Subs.php on line 905

Any thoughts?

SMF 2 RC2 SMG 2.0.2

Thank you :)
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: tfs on November 14, 2009, 12:14:54 AM
@MarcusJ

That was fixed in a recent build... just in the last few days.
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: MarcusJ on November 14, 2009, 12:59:47 AM
Quote from: tfs on November 14, 2009, 12:14:54 AM
@MarcusJ

That was fixed in a recent build... just in the last few days.

Awesome!  I'll just wait for the release before enabling the embedding. 

Thanks.

Edit:

I wanted to ask.  Are there any plans to set different upload limits for video, audio, or image files?  What I mean is it would be really nice to set a higher limit for video files over images.

Anyway I don't mean to be a pain.  Thank you for a great mod!
Title: Re: SMF Media Gallery (SMG) - 2.0.2 is out! (November 3)
Post by: Nao 尚 on November 14, 2009, 04:07:05 AM
Quote from: MarcusJ on November 14, 2009, 12:59:47 AM
Awesome!  I'll just wait for the release before enabling the embedding. 
v2.0.3 will be released today. It's ready and packaged. Maybe in a few minutes, maybe in a few hours.

QuoteI wanted to ask.  Are there any plans to set different upload limits for video, audio, or image files?  What I mean is it would be really nice to set a higher limit for video files over images.
Yes. It's in the Quotas tab in the admin area. You can even set different profiles for different membergroups and different albums.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: SMGTeam on November 14, 2009, 04:27:56 AM
SMG v2.0.3 is out!

Version 2.0.3                                   November 14, 2009
-----------------------------------------------------------------
- Removed all remaining bits of the previous Wysiwyg Quick Reply fix
- Removed local fixes for mod_security as they're all handled by the new hack now
- Removed mod_security test from Admin credits area, as it always failed on mod_security servers
  I had the opportunity to test
+ Replaced it with a new Ajax-based test within the Settings page, that will always tell you whether
  you need to enable the mod_security hack or not
* Moved mod_security hack setting to Main Settings rather than Security Settings -- don't be fooled by the module name!
! Made unbrowsable albums viewable by admins and moderators, as should have been from the start
+ Added a 'Browsing disabled' flag to unbrowsable albums in album lists when they're visible to you (admin/mod/owner)
! Fixed failed embeds on pages where HTML tags aren't in lowercase
! Fixed regression: item editing was broken for non-admins
! Logic error on SMG tag embedding with SMF2
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: MarcusJ on November 14, 2009, 05:25:58 AM
Thank you!  :-*
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: IdanC on November 14, 2009, 06:42:38 AM
kudos for another wonderful update!

i'm trying to use FlowPlayer (http://flowplayer.org) for certein files, but when i try to change the player in Subs-MGallery-Vital.php, i'm having some trouble using links such as $galurl . 'sa=media;id=' . $id_file.

The new player just won't recognize it.

needless to say that if you think that the problem is with the player i chose, don't bother yourself with this issue...
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 14, 2009, 08:43:44 AM
SMG is tied in many ways to JWPlayer... I don't even know if at this point it's possible to switch to FlowPlayer without changing a great deal of code. Can you tell me what the problem is with JWPlayer? It is a special recompiled version I made to ensure best balance between comfort & functionality for all file formats supported in SMG...
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: IdanC on November 14, 2009, 08:57:07 AM
Quote from: Nao/Gilles on November 14, 2009, 08:43:44 AM
Can you tell me what the problem is with JWPlayer?

basically JWPlayer is great, but in my server i came across a very strange issue - while the file is being loaded, none of the other links in the page work. only when the loading of the entire mp3 file is finished, everything get's back to normal.

when using a different player, such as AEVA player (with embedded url), it works just fine.

anyway, if i'll come up with a nice solution, i'll be happy to share it.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 14, 2009, 09:08:40 AM
I remember seeing that error show up once for someone, and figuring out how to fix it. I don't remember exactly, though.
Try to find more info in this topic. But it's old... Maybe at smf-media.

Also make sure your browser allows you to have more than 1 HTTP connection per server.

PS: Aeva doesn't have a dedicated player. The next version of Aeva will be merged with SMG (and *will* use the player), so you probably will have to fix your JWPlayer issue first ;)
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: IdanC on November 14, 2009, 09:51:59 AM
Quote from: Nao/Gilles on November 14, 2009, 09:08:40 AM
I remember seeing that error show up once for someone

yea, it was me  :)

i'll figure it out, i always do. updates promised...

keep doing such amazing work!
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 14, 2009, 10:29:08 AM
Can you set up a demo for me? With a link open to guests etc.?
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: IdanC on November 14, 2009, 10:50:05 AM
my pleasure!

A JWPlayer Page (http://mila.fm/index.php?action=mgallery;sa=item;id=226), using an attached file. Here none of the links are responsive until mp3 loads completely.

A FlowPlayer page (http://mila.fm/index.php?action=mgallery;sa=item;id=225), using local mp3 url. Here you can click links as you wish.

you'll have to excuse the artistic freedom i allowed myself, but i think you can still recognize your mod  ;)
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 14, 2009, 11:50:45 AM
From what I can see...
- Using Safari, links work just fine.
- Using Opera, I can reproduce your problem, and even if I open the clicks in a new window, they won't load, which definitely means, *because it's in a separate process*, this is only linked to the server, not the software. That is, Safari probably stops the Flash player when it receives a request for a new link. Which would explain why it works on Safari... I'm pretty sure that's also why FlowPlayer works. It has an awful LOT of Javascript running. It probably has a thread running to test for link clicking and close the player. Which should be useless (closing the player is probably in the browser's garbage collection list. Otherwise it would be such a waste of resources!)

You should really, really, really ask your host about this.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: IdanC on November 14, 2009, 11:57:58 AM
i will, thanks allot!

could you just point me to what i'm asking him for?  it's GoCrappy, and i suspect that their help desk is made of robots.

p.s.
feel free to delete these msgs if they don't concern any one...
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 14, 2009, 12:23:07 PM
Just ask them whether it's normal that the server refuses to let you click to another link on your site when a multimedia file is streaming. Specify that you think it means the server only accepts one connection per IP, which is not normal.

BTW, for your appreciation: you have Wikipedia links below the buggy page. Try clicking on them. Guess what... (Yeah, it works because they're on another server.)
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Kreator on November 15, 2009, 09:39:17 AM
Oh dear I have just tried upgrading from Media Gallery 2.0.2 to 2.0.3 and get this fatal error...

Fatal error: Call to undefined function db_extend() in /customers/animanon.com/animanon.com/httpd.www/Forum/Packages/temp/db_mgallery.php on line 115

can anybody help please as if I try to re-install the old version 2.0.2 this keeps coming up now,and i have lost my gallery link Btw Using Smf 1.1.10, I have never had any problems with earlier releases amnd they had always installed correctly.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 15, 2009, 09:49:46 AM
If you're using SMF1, you shouldn't be going through the SMF2 codepath (the only one that calls db_extend)...
Did you initialize $smcFunc for some reason?
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Kreator on November 15, 2009, 10:00:10 AM
Nope I hav`nt changed or called anything ( this sort of stuff is way beyond my expertise !!) all I ever do is upgrade, and trust those that are the wiser in this kind of stuff!
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Arantor on November 15, 2009, 10:00:38 AM
What other mods do you have installed?
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Kreator on November 15, 2009, 10:09:25 AM
1.   Audible PM   1.5   [ Uninstall ]
2.   SMF 1.0.16 / 1.1.8 Update   1.0   [ Uninstall ]
3.   Google Member Map   1.0 beta 4   [ Uninstall ]
4.   TinyPortal   1.063   [ Uninstall ]
5.   User Control Panel By Alan S   2.0   [ Uninstall ]
6.   Colorize Boards   3.0   [ Uninstall ]
7.   SMF Articles   1.0.1.7   [ Uninstall ]
8.   HacksPark shoutBox   1.2.1   [ Uninstall ]
9.   Mp3Tube BBCode   1.0   [ Uninstall ]
10.   Avatar On Board   2.1   [ Uninstall ]
11.   Memberlist_Xrevolution   1.2   [ Uninstall ]
12.   Users Online Today Mod   1.4.0   [ Uninstall ]
13.   Thumbnail Topic Mod   1.1.1   [ Uninstall ]
14.   PDF Tag   1.1   [ Uninstall ]
15.   Bakers Dozen Pages   1.1   [ Uninstall ]
16.   Remove SMF Logo   1.2   [ Uninstall ]
17.   Custom Tab   1.2   [ Uninstall ]
18.   SMF Links   1.7.1   [ Uninstall ]
19.   Topic Title In The Center Under Linktree   1.0   [ Uninstall ]
20.   Latest Members   1.0   [ Uninstall ]
21.   Show Debug Setting   1.0   [ Uninstall ]
22.   Auto Email Inactive Users   1.7
23.   EmailValidator   1.0   [ Uninstall ]
24.   Go Up & Go Down   1.1   [ Uninstall ]
25.   Animated Avatars   1.0   [ Uninstall ]
26.   Enhanced Dropdown   1.1   [ Uninstall ]
27.   Remove MySQL, PHP & W3C images to minimize footer size   1.2   [ Uninstall ]
28.   Add IP2Location to Track IP   1.2   [ Uninstall ]
29.   MemberNumber   1.0   [ Uninstall ]
30.   zCommunity   0.7.9   [ Uninstall ]
31.   Admin color in topic view   0.1   [ Uninstall ]
32.   Quick PM   1.0   [ Uninstall ]
33.   Change_Poster_Of_Topic_And_Message   1.0   [ Uninstall ]
34.   Attachment Icon File   1.0   [ Uninstall ]
35.   Let Me Google That For You Tag   1.1   [ Uninstall ]
36.   30 Assorted Animated Avatars   1.0   [ Uninstall ]
37.   The Casino   1.1.1   [ Uninstall ]
38.   ColorizePost   2.0   [ Uninstall ]
39.   Box BBCode   1.0   [ Uninstall ]
40.   Wrapper Mod   0.1   [ Uninstall ]
41.   Custom_Greeting_Depending_on_Time   0.9   [ Uninstall ]
42.   Add Favicon.ico Support   1.0   [ Uninstall ]
43.   Member List Position Filter   1.1.0   [ Uninstall ]
44.   New In Topic View   1.1   [ Uninstall ]
45.   Additional Polls   1.0.2   [ Uninstall ]
46.   Who Voted What?   1.1.3   [ Uninstall ]
47.   SMF Shop Lottery   1.0.1   [ Uninstall ]
48.   Media Center   1.1   [ Uninstall ]
49.   Table Plus BBCodes   1.0   [ Uninstall ]
50.   BK-SMF Sub-Board   1.5   [ Uninstall ]
51.   Page_Reload_Mod   1.1   [ Uninstall ]
52.   Posting_Announcement   1.1.3   [ Uninstall ]
53.   User Email System   1.3   [ Uninstall ]
54.   BK-SMF StatCounter   1.0   [ Uninstall ]
55.   Registration Read   1.1   [ Uninstall ]
56.   Separate Sticky and Normal Topic   1.0   [ Uninstall ]
57.   Geek Avatars V1.0   1.0   [ Uninstall ]
58.   Yarex 2 smiley set   2.0.0.1   [ Uninstall ]
59.   Best 3   0.1   [ Uninstall ]
60.   Reply Button in All Posts   1.0   [ Uninstall ]
61.   Top 50 Bands avatars   1.0   [ Uninstall ]
62.   SMF Arcade   2.0.18   [ Uninstall ]
63.   Footnotes   1.0   [ Uninstall ]
64.   Animated Starcraft Avatars   1.0   [ Uninstall ]
65.   Toksta Integration   1.0   [ Uninstall ]
66.   VectorAvtars   1.0   [ Uninstall ]
67.   SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update   1.0
8.   SMFShop   3.1.1   [ Uninstall ]
69.   Add Domaintools to TrackIP   1.0   [ Uninstall ]
70.   Reason For Editing Mod   2.0   [ Uninstall ]
71.   SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update   1.1   [ Uninstall ]
72.   PhpInfo   1.2   [ Uninstall ]
73.   Admin Ban Button in Post   1.1   [ Uninstall ]
74.   Hide Images From Guest   1.0   [ Uninstall ]
75.   Copy Topics   1.5.1   [ Uninstall ]
76.   InfoBox   0.1   [ Uninstall ]
77.   Topics Filter   3.0   [ Uninstall ]
78.   OS & Browser Detection   1.4   [ Uninstall ]
79.   FaceBook Style NavBar (FBSNB)   1.0.3   [ Uninstall ]
80.   RSS Feed Icon   1.1   [ Uninstall ]
81.   Dance   1.0   [ Uninstall ]
82.   Profile Fields & Icons Mod   1.0   [ Uninstall ]
83.   Stop Spammer   1.0   [ Uninstall ]
84.   Colors And Icons   1.0   [ Uninstall ]
85.   Age,Gender,Location on Registation   1.1   [ Uninstall ]
86.   Activity_Bar   1.0.1.1   [ Uninstall ]
87.   animated women avatars   1.0   [ Uninstall ]
88.   Download and Password bbc 1.0   1.0   [ Uninstall ]
89.   RateThatTopic   1.0   [ Uninstall ]
90.   CountDown BBC   1.0   [ Uninstall ]
91.   Space Between Posts   1.0   [ Uninstall ]
92.   MessagePreviewOnHover   1.7   [ Uninstall ]
93.   Advanced Login Form   1.2   [ Uninstall ]
94.   AvatarSelect   1.2.1
95.   Balloon-shaped frame quote   1.1   [ Uninstall ]
96.   Manage Members Membergroups   1.0.0   [ Uninstall ]
97.   Permissions Info   1.5   [ Uninstall ]
98.   Guests Cursor   1.0   [ Uninstall ]
99.   Search Focus Dropdown   1.31   [ Uninstall ]
100.   DisableTemplateEval   1.0   [ Uninstall ]
101.   Post Template Mod   0.1.2   [ Uninstall ]
102.   Smiles on left | S-Ace   1.0   [ Uninstall ]
103.   Toggle Drop Down Panel   1.1   [ Uninstall ]
104.   Age on post   1.0   [ Uninstall ]
105.   BK-SMF News Stay Mod   1.5   [ Uninstall ]
106.   Caps_Lock_Detection_on_Login   1.1   [ Uninstall ]
107.   SMF Sitemap   1.2.2   [ Uninstall ]
108.   Share This Topic   1.0   [ Uninstall ]
109.   RSS Feed Poster   2.0.1   [ Uninstall ]
110.   dQuoteSelection   2.3   [ Uninstall ]
111.   Welcome Topic Mod   2.0.2   [ Uninstall ]
112.   Wireless/RSS amount displayed   1.0.0   [ Uninstall ]
113.   Guest and Member Tags   1.0   [ Uninstall ]
114.   Google Search Your Site   1.0.0   [ Uninstall ]
115.   GooglePageRankButto   1.0   [ Uninstall ]
116.   Board Notification Mod   1.1.5   [ Uninstall ]
117.   Display date and time   1.0   [ Uninstall ]
118.   Previous and Next Topic Enhancement   1.0   [ Uninstall ]
119.   Irritate lurkers with 0 posts   0.1   [ Uninstall ]
120.   Animatedavatars   1.0   [ Uninstall ]
121.   Downloads System   1.2.4   [ Uninstall ]
122.   SMF Trader System   1.3   [ Uninstall ]
123.   Share this topic - SMF Mod   1.3   [ Uninstall ]
124.   Google Analytics Code   1.0   [ Uninstall ]
125.   Treasury   2.36   [ Uninstall ]
126.   SMF File Manager   2.1.3   [ Uninstall ]
127.   SMF Arcade PM Switch   1.0.1   [ Uninstall ]
128.   Aeva ~ Auto-Embed Video & Audio   7.0   [ Uninstall ]
129.   Addthis widget in first post   1.0   [ Uninstall ]
130.   Halloween Pumpkin Avatars   1.0   [ Uninstall ]
131.   Custom BBCode   2.00   [ Uninstall ]
132.   ListCreator   1.1.2   [ Uninstall ]
133.   Show Last Time Active for Members in Post   1.0   [ Uninstall ]
134.   Animated_BBC_expando   1.0.0   [ Uninstall ]
135.   animated fairies avatars   1.0   [ Uninstall ]
136.   Twitter and Facebook Publisher mod   2.1   [ Uninstall ]
137.   videobbc

Thats the installed list ...... a few
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Kindred on November 15, 2009, 10:16:50 AM
EEP....  I am surprised anything works...
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Kreator on November 15, 2009, 10:36:52 AM
ye of so little faith...well it did work very well in fact !! Im suprised that the latest upgrade to smf Media gallery did that to me! I might take a look at the offending line in the db_mgallery.php file and perhaps delete it and any other refs to it
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Arantor on November 15, 2009, 10:40:39 AM
The problem is that one or other of those mods handles $smcFunc, which causes SMG to think it's using 2.0, hence it loads the 2.0 version.

I wouldn't delete that line, it'll break SMG entirely...
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Kreator on November 15, 2009, 10:45:18 AM
hmm, now you have me thinking .... the last mod i installed before media gallery was  the twitter/facebook  mod  from 2by2host
Ill uninstall it see what happens.


Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Kreator on November 15, 2009, 10:50:06 AM
Yep thats the offender .... No Loss hate facebook and twitter thanks for your time.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Arantor on November 15, 2009, 11:26:13 AM
I did have a feeling it might have been that one actually. I seem to recall they did that a little bit back to 'simplify' the code.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 15, 2009, 02:34:58 PM
I've tried to download their mod and indeed -- in twitter.php they have this:

    if (empty($smcFunc) && !empty($func)) {
        $smcFunc = $func;
    }

Which basically will break a lot of mods that rely on $smcFunc to determine whether SMF2 is installed... Very bad idea.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Arantor on November 15, 2009, 03:00:01 PM
While there is a certain logic to that; there are other functions in $func / $smcFunc, I don't personally agree with that.

In the interim you could actually check for $smcFunc['db_query'] and base it off that.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 15, 2009, 03:08:45 PM
/me is starting to wonder if he shouldn't use the opportunity of rebranding SMG into Aeva Media to limit it to SMF2...
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Baloch on November 16, 2009, 07:11:59 AM
Hi there,

Just few days ago I have upgraded SMG  from 1.5.6 to 2.0.2 everything was okay but no any group member was able to ADD NEW Picture in gallery. I have checked administrator Panel but could not found any option that may control ADD ITEM/ COMMENT ITEM.


SMF Media Gallery only contains following options:
   

   Access Gallery   
   Moderate Gallery   
   Administrate Gallery   
   Access unseen area   
   Search in Gallery   
   Add User Playlists   
   Add User Albums   
   Auto-approve User Albums   
   View anyone's Gallery profile

Please advice what to do.

Thanks in advance for your prompt response.

With regards
Raji
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 16, 2009, 07:50:46 AM
Please don't post the same question over two different boards. I read every SMG-related board (smf media, here and the foxy board at noisen) at the same time.
Title: Adding the gallery link to the theme Siyah inci
Post by: testlab on November 16, 2009, 03:20:08 PM
Hello, All

First I have to say very nice forum script.

I was able to install the Gallery and see it, but to see it I have to go direct to it by browsing to it Example :http://smf-media.com/community/index.php?action=mgallery,

I want it to say Gallery in the index. I have everything else exept that.

I need to know how I can add the gallery link to the theme Siyah inci. Im new to all this so I need help on the code and where should I add it.

Thank You for you help. :)
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: whitehaint on November 16, 2009, 06:40:22 PM
Got this little warning on my live site, installed great on my home dev site though?

This album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums are chmodded to 0777

I checked and the directories are at 0777.  Oh, running RC2.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 16, 2009, 06:55:24 PM
Try chmodding them to 0755.
Is PHP Safe Mode enabled? Check the admin area for that.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: whitehaint on November 16, 2009, 07:03:25 PM
I tried 0755 and no go, and looked on the server settings and php safe mode is disabled.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Tiribulus on November 16, 2009, 10:08:16 PM
Quote from: Nao/Gilles on November 15, 2009, 03:08:45 PM
/me is starting to wonder if he shouldn't use the opportunity of rebranding SMG into Aeva Media to limit it to SMF2...

I vote no on limiting it to SMF2, but I'm not the one who has to do the work and of course it is your decision.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Soms on November 17, 2009, 02:31:07 AM
I am with Tiribulus on this. I think so long SMF2 is not final, many will want to stick with SMF1. Like Tiribulus also indicated, you are the one who has to do all the coding. The decision is ultimately yours to make.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 17, 2009, 04:48:42 AM
Yesterday was a horrible day in terms of maintaining SMF1 support... I did my best but in the end I have absolutely no idea whether Aeva Media's early alphas will work on SMF1 at all. If it's too much of a hassle to support, I'll give up on it.
Basically, SMF1 users still have the SMG 2.0.x line and Aeva 7.0.x. I will release updates for these when needed.

So: currently, I'm planning to keep support for SMF1, but I'm not promising anything. That's all. SMF2 is way, way better and more stable than SMF1 as of now. I see absolutely no reason to keep supporting an old version of the software. I think that if someone stays with an old version of SMF, they're unlikely to update their mods as well...
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Bec on November 17, 2009, 09:02:54 AM
not sure if the support is here but I am using smf 1.1.10 and media gallery 1.5.5 (i know there is newer but for the moment it is heavily modified so ive been sticking with it) just noticed that when i click on my gallery i am getting the following error :

Fatal error: Function name must be a string in /home/buctai8/public_html/Sources/Subs-MGallery.php on line 344

line 344 is the following -       return $smcFunc['db_query']('', $db_string, $db_values);

would someone mind please telling me how to get my gallery back... please let me know if you require the full file... hope the support is still here I dont wish to update (both smf and media gallery) at the moment only cause it is heavily modified and i havent had the time

should also add that no changes have been made for a while now and was working fine a few days ago... forum error log shows

8: Undefined index: db_query
File: /home/buctai8/public_html/Sources/Subs-MGallery.php
Line: 344


Update - just discovered that the twitter/facebook mod is conflicting with the gallery, uninstalled the other mod and everything is now fine!....  :)
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 17, 2009, 09:31:39 AM
I'm afraid I don't support the SMG 1.x line anymore. What did you modify? The template?

Edit-- ah, you fixed it? Yes, I see... It's the same problem I mentioned a few messages above.
http://www.simplemachines.org/community/index.php?topic=260821.msg2359590#msg2359590
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Bec on November 17, 2009, 09:42:58 AM
oops sorry missed that! but yeah its all good now :)
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: DirtRider on November 17, 2009, 09:48:25 AM
Will the mgconverter_sgp.php work on RC2
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Tiribulus on November 17, 2009, 10:08:07 AM
Quote from: Nao/Gilles on November 17, 2009, 04:48:42 AM
Yesterday was a horrible day in terms of maintaining SMF1 support... I did my best but in the end I have absolutely no idea whether Aeva Media's early alphas will work on SMF1 at all. If it's too much of a hassle to support, I'll give up on it.
Basically, SMF1 users still have the SMG 2.0.x line and Aeva 7.0.x. I will release updates for these when needed.

So: currently, I'm planning to keep support for SMF1, but I'm not promising anything. That's all. SMF2 is way, way better and more stable than SMF1 as of now. I see absolutely no reason to keep supporting an old version of the software. I think that if someone stays with an old version of SMF, they're unlikely to update their mods as well...

I offer this only as food for thought. Again, there comes a point for everybody where too much is too much and only you can say when that is for you.

That said, and I am no cyber psychologist, I believe you may be underestimating the lifespan of SMF1. My site is just an educational toy, but I have months, literally, of work into it and a conversion to SMF2  is unthinkable for that site. The amount of work it would take to even approximate the functionality and appearance I have now after an upgrade to SMF2 would be prohibitive even if I were capable of it which I'm not even sure of.

I can't believe there aren't a fairly significant number of users with fairly busy sites that would forego the upgrade for as long as possible simply because of the daunting task of doing it. Every mod reinstalled with all the tweaks and editing that would mean, for some like me, dozens, maybe hundreds of theme tweaks and all this is in light of the code differences that they won't be familiar with for  a while.

If I just ran the upgrade right now my site would be an apocalyptic disaster. I'd have to work on it offline for weeks at least to get it ready.

Like I say, I'm just thinkin out loud and none of this of course obligates you to anything.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Arantor on November 17, 2009, 10:31:46 AM
I would point out that the core of 1.1 is over 3 years old and only receives security updates from the SMF team - no new features have been added to 1.1 since 2006, nor will there be any future development outside of security issues or major bugfixes.

2.0 is maturing, and speaking as a modder, it is a LOT easier to do many things with 2.0 than it is for 1.1.

How many support topics do you see for "how do I add the tab from [mod] to my theme in 1.1" for example? That issue alone prompted me not to develop a mod or two for 1.1, because it's a non issue in 2.0.

I do understand where you're coming from, but more and more people are moving to 2.0, and before long I suspect most mods will be 2.0 only - I have one or two more to come that are for both, but after that I'm going 2.0 only.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Tiribulus on November 17, 2009, 11:46:17 AM
Fair enough. I'm a newcomer to this game and you guys would certainly know better than I would about these things. I'm just picturing people like me whacking away through a jungle of code trying to get all their stuff working again and many of them taking quite a while to actually go live with the new product.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Arantor on November 17, 2009, 11:59:28 AM
I hear you Tiribulus, possibly better than you might realise - the number of requests I've seen in the last week for "I upgraded my forum to 2.0 RC2 and now my mods don't work" is actually kind of frightening.

The thing is, whether you move now to RC2, or wait for 2.0 final or not, the changes are not going to be small if you make the move to 2.0. Nearly every mod I've done had to be rewritten for 2.0.

2.0 is a lot cleaner in a lot of respects and has a number of features that 1.1 just doesn't have. But going the other way usually isn't as hard as it sounds like it might be.

Depending on the functionality you've added it may be possible to make it all work in 2.0 without too much work at all.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 17, 2009, 12:23:10 PM
@DirtRider> I think so. It won't erase anything anyway (except your existing SMG pics but I suppose it's the wanted behavior eh?), feel free to try.

@Tiribulus> Let's make it simple: if Aeva Media doesn't work on SMF1 out of the box, don't be surprised. I'm just not focusing on it right now. Of course, AM itself is still far from being ready, so...
(I'm not even giving a release month for the public... It's THAT far away :P)
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: whitehaint on November 17, 2009, 12:36:09 PM
Just curious if there are any other suggestions to get this mod working on RC2 for me.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 17, 2009, 01:49:18 PM
It's not a RC2 problem, it's your server I guess. Make sure your PHP install has sufficient rights to create new folders.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Tiribulus on November 17, 2009, 02:21:09 PM
Quote from: Arantor on November 17, 2009, 11:59:28 AM
I hear you Tiribulus, possibly better than you might realise - the number of requests I've seen in the last week for "I upgraded my forum to 2.0 RC2 and now my mods don't work" is actually kind of frightening.

The thing is, whether you move now to RC2, or wait for 2.0 final or not, the changes are not going to be small  if you make the move to 2.0. Nearly every mod I've done had to be rewritten for 2.0.

2.0 is a lot cleaner in a lot of respects and has a number of features that 1.1 just doesn't have. But going the other way usually isn't as hard as it sounds like it might be.

Depending on the functionality you've added it may be possible to make it all work in 2.0 without too much work at all.
Emphasis mine.

This is really where it's at isn't it. Sooner or later everybody is going to have to go to the newer version and rightly so, I mean, that's how it is with any piece of web software. For some relatively standard sites it shouldn't be too big a deal. For others like myself, with countless lllooonnng hours on just the theme never mind over 70 mods now, some requiring major surgery at least for me, and numerous little tweaks under the hood gleaned from here and there it will be a cold sweaty nightmare
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fgregnmary.gotdns.com%2Fpix%2F%2Ffk.jpg&hash=d2f7d071b1e941314a1dc29a309c5dd38fdafccf)

Quote from: Nao/Gilles on November 17, 2009, 12:23:10 PM
@Tiribulus> Let's make it simple: if Aeva Media doesn't work on SMF1 out of the box, don't be surprised. I'm just not focusing on it right now. Of course, AM itself is still far from being ready, so...
(I'm not even giving a release month for the public... It's THAT far away :P)

That's cool. There are only so many hours in the day and I've learned just enough to know that this mod is quite large and complex. The fact that we get SMF and any mods at all for free is a bonus. However it works out I'm sure will be fine in the long run.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: DirtRider on November 17, 2009, 10:05:07 PM
Quote from: Nao/Gilles on November 17, 2009, 12:23:10 PM
@DirtRider> I think so. It won't erase anything anyway (except your existing SMG pics but I suppose it's the wanted behavior eh?), feel free to try.


;D Well in the unlikely case that it does not work would you be able to sort it out so it does  :D I am sort of in a bit of a situation where I want to change over to this and not continue with the old version I am using. If it does not work it means I will then have to purchase the new version of the other software. Now I would rather not have to do that if possible as you know I am still open to paying you to add the feature where your version will post to the forum when a new pic is uploaded.  I am still hoping that we will find a few more takers to offset the price of you doing this for us.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 18, 2009, 03:54:50 AM
Quote from: DirtRider on November 17, 2009, 10:05:07 PM
;D Well in the unlikely case that it does not work would you be able to sort it out so it does  :D
I s'pose.
I only made a converter for SGP a year ago when some people requested it. I haven't been using SGP since the day I switched to SMG so I couldn't say whether the newer versions are incompatible with my converter.
At any rate, this is an awkward situation for me to handle because of my past working on SGP itself. Granted, it was short -- only two weeks, and I switched to SMG as soon as I heard about it. But it still could be seen as 'malpractice' I guess. It's clearly not my intention, but for instance it's vbgamer's choice not to make a SMG -> SGL/SGP converter. I would have no problem with that, of course.

QuoteI am sort of in a bit of a situation where I want to change over to this and not continue with the old version I am using. If it does not work it means I will then have to purchase the new version of the other software. Now I would rather not have to do that if possible as you know I am still open to paying you to add the feature where your version will post to the forum when a new pic is uploaded.  I am still hoping that we will find a few more takers to offset the price of you doing this for us.
I'm not very good at selling myself. Foxy! is not exactly a successful mod, it has sold a number of copies that can be counted on, ahem, two hands. I'm less open to making it cheaper, though. I mean, it's not cheap code, it's quality stuff. By now it represents about 3 months worth of fulltime work. I will probably reinstate a donation system for Aeva Media. If I get enough donations through it, I'll be more open to cut the price on Foxy!, while still adding new features to it.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: DirtRider on November 18, 2009, 04:25:48 AM
Ok thanks on the converter once I am ready to do the upgrade I will let you know if it works or not.  :D

I know you mentioned Foxy before and you gave me a link but my French was not that great  ;D Maybe I need to look at this again. I am a bit unclear as to what is different from this version and Foxy. However the huge block for me is not having the option of the gallery posting into a forum as my members are used to this and like it a lot.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 18, 2009, 08:33:02 AM
Quote from: DirtRider on November 18, 2009, 04:25:48 AM
Ok thanks on the converter once I am ready to do the upgrade I will let you know if it works or not.  :D
Again, if you have an empty SMG install, you can upgrade whenever you like, permissions are denied by default so nobody will see the gallery until you enable it. And SMG doesn't erase anything from other gallery installs, so if the upgrade fails, nothing is deleted anyway.

QuoteI know you mentioned Foxy before and you gave me a link but my French was not that great  ;D
?
The link is in English... Check out my signature.

QuoteMaybe I need to look at this again. I am a bit unclear as to what is different from this version and Foxy. However the huge block for me is not having the option of the gallery posting into a forum as my members are used to this and like it a lot.
Is this something that SGP does? I never used it to the fullest so I wouldn't know.
What Foxy! does is very specific -- you can see an example over at http://fox.noisen.com
All of these blog posts were created automatically by Foxy! when creating the album. The first post is entirely populated automatically from the album description and album items. Whenever a new item is added, a new post is made to the topic to point out the exact item (if using mass upload, a single post is made with all new items). You can freely remove these new posts manually, as they're only made to save you the hassle of 'bumping' your topic.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Afro on November 18, 2009, 12:17:27 PM
i am getting this error in my error log after clicking on the gallery.
it started happening after moving to a new server.

i dont understand the /tmp file request.

whats the correct path ?

http://www.afrowall.com/index.php?action=mgallery;sa=media;id=112;thumb
Apply Filter: Only show the errors with the same message
2: file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/home/xxxxxxx/public_html/mgal_data/albums/GOSPEL_SONGS/Dir_1/126_thumb_oAssOfn5cAI_jpg1ad973c6efa7375bf8c5db6e4020560c_extjpg) is not within the allowed path(s): (/var/www/vhosts/afrowall.com/httpdocs:/tmp)
Apply Filter: Only show the errors from this file
File: /var/www/xxxxxx/xxxxxxxx/httpdocs/Sources/Subs-MGallery.php
Line: 388
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Tiribulus on November 18, 2009, 01:23:50 PM
Quote from: Afro on November 18, 2009, 12:17:27 PM
<<<  open_basedir restriction in effect. >>>

I'm betting this is a clue.

@NAO:

As usual this is no emergency, but after upgrading to the latest PHP RC, I'm getting line 61 and following of the getid3.php file:
// Check memory
$memory_limit = ini_get('memory_limit');
if (eregi('([0-9]+)M', $memory_limit, $matches)) {
// could be stored as "16M" rather than 16777216 for example
$memory_limit = $matches[1] * 1048576;

contains the now deprecated EREGI (http://php.net/manual/en/function.eregi.php) function. Yes I did look it up ;D I'm reasonably sure you already saw stuff like this comin, but thought I'd throw it out there.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Afro on November 18, 2009, 02:00:02 PM
Quote from: Tiribulus on November 18, 2009, 01:23:50 PM
Quote from: Afro on November 18, 2009, 12:17:27 PM
<<<  open_basedir restriction in effect. >>>

I'm betting this is a clue.


SO WHATS TO BE DONE ?
cos its populating my error log
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Tiribulus on November 18, 2009, 02:42:26 PM
Quote from: Afro on November 18, 2009, 02:00:02 PM
Quote from: Tiribulus on November 18, 2009, 01:23:50 PM
Quote from: Afro on November 18, 2009, 12:17:27 PM
<<<  open_basedir restriction in effect. >>>

I'm betting this is a clue.


SO WHATS TO BE DONE ?
cos its populating my error log

I am no expert, I was just pointing it out. If it were me I would start by checking paths and permissions with repair.php.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Arantor on November 18, 2009, 02:48:34 PM
Afro: You get the error because of how PHP is configured on the new server. There are limits to where PHP is allowed to go, by default it is only allowed to go into directories and files that live in /var/www/vhosts/afrowall.com/httpdocs OR in /tmp. /tmp is a system level temporary area.

You need to ask your host about whether that can be changed.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Afro on November 18, 2009, 06:57:51 PM
Quote from: Arantor on November 18, 2009, 02:48:34 PM
Afro: You get the error because of how PHP is configured on the new server. There are limits to where PHP is allowed to go, by default it is only allowed to go into directories and files that live in /var/www/vhosts/afrowall.com/httpdocs OR in /tmp. /tmp is a system level temporary area.

You need to ask your host about whether that can be changed.

Thanks man for the insight, meanwhile.

what exactly do i have to ask them ?
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Arantor on November 18, 2009, 08:09:25 PM
Ask them to expand the folders in open_basedir or to turn it off entirely.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Afro on November 18, 2009, 08:28:48 PM
i have sent them a mail. i just hope they will do something about it cos this error is populating my logs at an alarming rate.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: DirtRider on November 19, 2009, 01:56:04 AM
Quote from: Nao/Gilles on November 18, 2009, 08:33:02 AM

Is this something that SGP does? I never used it to the fullest so I wouldn't know.
What Foxy! does is very specific -- you can see an example over at http://fox.noisen.com
All of these blog posts were created automatically by Foxy! when creating the album. The first post is entirely populated automatically from the album description and album items. Whenever a new item is added, a new post is made to the topic to point out the exact item (if using mass upload, a single post is made with all new items). You can freely remove these new posts manually, as they're only made to save you the hassle of 'bumping' your topic.

Ok this would be the same idea by the looks of it. However would this also do the same on a forum and not just a blog
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 19, 2009, 03:37:02 AM
@Afro> Your host sucks, or is terribly inefficient. The tmp directory is a given when enforcing the open_basedir restriction. It's only for files that are there temporarily... They *will* get deleted, so there's no reason to prevent this folder from being shared.

@Tiribulus> The getid3 problem has already been discussed.
Changing the file by myself is annoying. It's not like there are only a couple of ereg's in there... Most particularly, the author has already done that work months ago -- only, he's too lazy/busy to release it.
http://www.getid3.org/phpBB3/viewtopic.php?f=7&t=983
So I guess I'll wait until v1.7.10 is out... Can someone please tell us somewhere when it's the case? Or just post other there and complain :) Maybe he'll do something after enough people complain!

@DirtRider> Of course it does it on a topic... As you may notice on noisen.com, blog posts are topics. They just use a different template for showing the main post, and there are a few other differences, but basically it's just a flag in the database that gets enabled or disabled.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: DirtRider on November 19, 2009, 08:21:15 AM
Quote from: Nao/Gilles on November 19, 2009, 03:37:02 AM
@DirtRider> Of course it does it on a topic... As you may notice on noisen.com, blog posts are topics. They just use a different template for showing the main post, and there are a few other differences, but basically it's just a flag in the database that gets enabled or disabled.

Oh well then this would then solve my problem of posting new images into a forum board. Also another way around this would be to have the RSS poster post it as I see Foxy has RSS capabilities as well. However I will only know for sure once I have Foxy installed  ;D Very good job done on what I can see of it so far
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 19, 2009, 09:36:10 AM
Yes there is RSS support, you can test it over at media.noisen.com ;)
RSS for new items (global, per album or per user), and new comments (global, per album, per user, per item). And maybe others, I don't remember. Everything important is there anyway.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Tiribulus on November 19, 2009, 10:22:55 AM
Quote from: Nao/Gilles on November 19, 2009, 03:37:02 AM
@Tiribulus> The getid3 problem has already been discussed.
Changing the file by myself is annoying. It's not like there are only a couple of ereg's in there... Most particularly, the author has already done that work months ago -- only, he's too lazy/busy to release it.
http://www.getid3.org/phpBB3/viewtopic.php?f=7&t=983
So I guess I'll wait until v1.7.10 is out... Can someone please tell us somewhere when it's the case? Or just post other there and complain :) Maybe he'll do something after enough people complain!

I didn't know that. In fact I didn't know what getid3 was until this happened ???

I did some diff comparisons with  THESE (http://kusabax.cultnet.net/svn/?path=%2Fstable%2Flib%2Fgetid3%2F&) files and it looks like whoever this is tried to replace ereg with preg_match. It also looks like this Heinrich guy is losing his enthusiasm for getid3() from what I can gather.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: fmofmpls on November 19, 2009, 10:38:25 AM
Is there an option somewhere to turn off the "mass download" button?
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 19, 2009, 11:03:13 AM
@fmo> Yes, a general permission.

@tiribulus> I didn't notice that he had actually committed the changes... Didn't look enough ;)
Okay, I've committed myself most of the changes to SMG 2.0 and AM 1.0 (I checked them all one by one). Should be good now. Will be in SMG 2.0.5 and AM 1.0 Private Alpha of course.

! [SM/AM] Deleted lyrics3 getid3 module (pretty much unneeded?), and updated getid3 to PHP 5.3 compatibility. (MGallery-getid3 folders)
- [AM] Removed SMF 2.0 Beta 4 compatibility. It's over a year old, time to move on! (package files)
* Moved common SMF 1.1/2.0 install scripts to install-both.xml file
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Afro on November 19, 2009, 11:23:28 AM
Quote from: Nao/Gilles on November 19, 2009, 03:37:02 AM
@Afro> Your host sucks, or is terribly inefficient. The tmp directory is a given when enforcing the open_basedir restriction. It's only for files that are there temporarily... They *will* get deleted, so there's no reason to prevent this folder from being shared.

well i asked them and they turned it off
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Tiribulus on November 19, 2009, 11:28:14 AM
Quote from: Nao/Gilles on November 19, 2009, 11:03:13 AM
<<< @tiribulus> I didn't notice that he had actually committed the changes... Didn't look enough ;)
Okay, I've committed myself most of the changes to SMG 2.0 and AM 1.0 (I checked them all one by one). Should be good now. Will be in SMG 2.0.5 and AM 1.0 Private Alpha of course. >>>

Is "he" the developer? LOL, I didn't know that either.  I was just diggin around. I really do try to find answers myself before asking stupid questions like this, but can someone just copy those files into the /Sources/MGallery-getid3 folder? Also, and please be gentle with me I know this is a doozy, but how the hell do you know if this working? I uploaded an MP3 file that I know has embedded tags because media player shows the information, but I don't see anything in the SMG gallery. Or am I missing something altogether?
Thanks again
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 19, 2009, 11:52:38 AM
SMG only uses getid3 to get the bitrate and duration of various multimedia files. I know, it's not much... But it's not a big script either. And at least it works for that.
You can update your files with the new ones, yes. Although I'd recommend to wait for a new release because that particular revision doesn't have all the modules in it (I did the remaining files manually.)
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Tiribulus on November 19, 2009, 12:17:07 PM
Quote from: Nao/Gilles on November 19, 2009, 11:52:38 AM
SMG only uses getid3 to get the bitrate and duration of various multimedia files. I know, it's not much... But it's not a big script either. And at least it works for that.
You can update your files with the new ones, yes. Although I'd recommend to wait for a new release because that particular revision doesn't have all the modules in it (I did the remaining files manually.)

Oh, I see. This is just a thought, but if your changes will work independently of SMG you'd be doing the world a favor if you made them generally available. I don't know how this works between developers, if it would hack this guy off if you did so, but as I'm sure you're aware there are a lot of people begging for this. Even quite recently and it appears he is busy with other stuff. I could be way off base with this, like I say I am not familiar with how people do these things.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 19, 2009, 01:37:36 PM
I think you misunderstood me. *I* use getid3 to retrieve bitrate and duration information. Not the other way around. There is no code in SMG that would benefit to getid3. I could get more information from getid3, but I don't see any reason to do that for now. (Plus, my hands are pretty full as it is.)
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Tiribulus on November 19, 2009, 03:05:33 PM
Quote from: Nao/Gilles on November 19, 2009, 01:37:36 PM
I think you misunderstood me. *I* use getid3 to retrieve bitrate and duration information. Not the other way around. There is no code in SMG that would benefit to getid3. I could get more information from getid3, but I don't see any reason to do that for now. (Plus, my hands are pretty full as it is.)

I could be wrong, but I think were missing each other here. I was under the impression that what you were doing was updating the getid3 files to use the preg_match function rather than ereg or eregi (don't know the difference). If that is the case then I was saying that since so many other folks are waiting on that very thing, totally unrelated to SMF or SMG and since you were doing it anyway, the same changes would help them too. That is assuming that what you did effected the core functionality of getid3 independently of SMF or SMG. It was a round about way of saying it would be a great service and get you some more recognition as well.

Of course if what I just said is still wrong than I'll shut up because I have no idea what I'm talkin about :)
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 19, 2009, 03:42:48 PM
The files on the SVN are correctly converted. However I didn't use them because they add a lot of commented out code, it's a waste of space, so I just copied the converted stuff to my version. I also converted the RIFF module, but SMG doesn't use all modules so I didn't convert them all... Only that particular one.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: fmofmpls on November 19, 2009, 03:57:15 PM
Quote from: Nao/Gilles on November 19, 2009, 03:37:02 AM
@fmo> Yes, a general permission.

Not seeing an option to disable downloads anywhere in General Permissions. Everything but that. I'm running 2.0 rc2.

Here are my General Permissions:

SMF Media Gallery     
   Access Gallery    
   Moderate Gallery    
   Administrate Gallery    
   Access unseen area    
   Search in Gallery    
   Add User Playlists    
   Add User Albums    
   Auto-approve User Albums    
   View anyone's Gallery profile
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: LHW on November 19, 2009, 04:06:44 PM
@fmo: Go to Admin / Gallery / Permissions / Default, and then "Edit" for each group.  Inside, you'll be able to set these permissions[1]:

Auto-approve comments     
Comment in items    
Download items    
Edit own comments    
Mass Download    
Rate items    
Report comment    
Report items    
View who rated what    
Add audio files    
Add documents    
Add embedded files through Aeva    
Add pictures    
Add video files    
Auto-approve items    
Edit own items    
Mass Upload
[1] Note: Some of these may not be available without the Foxy! add-on.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: fmofmpls on November 19, 2009, 04:17:45 PM
Thanks Lord High Warlock! Found it! Much appreciated!
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Tiribulus on November 19, 2009, 04:49:38 PM
Quote from: Nao/Gilles on November 19, 2009, 03:42:48 PM
The files on the SVN are correctly converted. However I didn't use them because they add a lot of commented out code, it's a waste of space, so I just copied the converted stuff to my version. I also converted the RIFF module, but SMG doesn't use all modules so I didn't convert them all... Only that particular one.

Aha. Now I gotchya. I always appreciate the the time you take to answer my sometimes ignorant questions. The work you did to it is really only specific to the pieces used by SMG. Besides, it sounds like the developer has actually done the conversions but hasn't gotten around to letting anybody know about it yet :-\
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: LHW on November 19, 2009, 04:53:47 PM
Quote from: fmofmpls on November 19, 2009, 04:17:45 PM
Thanks Lord High Warlock! Found it! Much appreciated!

Glad I could help out.  :)
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Angelotus on November 20, 2009, 06:18:58 AM
Hello,

Is the following possible?

On website A I have SMG installed and have one categorie named Weeklyfun
I want the latest pics from that categorie to be appeared on the frontpage of website B.

How can I do that?
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 20, 2009, 06:30:14 AM
Hmmm, everything's possible with RSS I guess. Although it's not in the barebones SMG. Off the top of my head, I can't see any other way than using Foxy!'s RSS feature coupled with a XML parser.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Angelotus on November 20, 2009, 08:06:35 AM
Hmm ok, thanks for your reply. I also asked in the devforum how to intergrate one SMF to another on another domain, maybe that gives me an answer as well.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 20, 2009, 08:58:25 AM
What dev forum? If you're talking about smf-media, I don't remember seeing your post there.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Arantor on November 20, 2009, 09:33:42 AM
He asked in the coding board here, but since it seems more tied to SMG, we strongly suggested he keep it here.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: sportin3 on November 21, 2009, 11:11:41 AM
I am in need of the manual installation instructions for 1.5.6  I would like to install the version of the gallery but I can no longer find the parse file to do the manual removal of the original.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Tiribulus on November 21, 2009, 11:36:06 AM
Quote from: sportin3 on November 21, 2009, 11:11:41 AM
I am in need of the manual installation instructions for 1.5.6  I would like to install the version of the gallery but I can no longer find the parse file to do the manual removal of the original.

Why would you want to do that?
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 21, 2009, 12:37:13 PM
v1.5.6 is not supported anymore anyway. And by support I also mean 'distributed' ;)
If you have a problem with v2.0, feel free to ask.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: sportin3 on November 21, 2009, 03:13:19 PM
Ok, I was able to manually uninstall the 1.5.6 version.

When I try to install the 2.0.3 version through the package manager I get this error.

Fatal error: Call to undefined function db_extend() in /home/sportin3/public_html/Packages/temp/db_mgallery.php on line 122

Looking at that file, Line 122 and 123 are loading extra functions for SMF 2.

What do I need to do to get this to in stall in 1.1.10
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Arantor on November 21, 2009, 03:17:25 PM
db_extend is a 2.0 only function. Do you, by any chance, have any mods written by 2by2host installed?
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: sportin3 on November 21, 2009, 03:22:24 PM
Quote from: Arantor on November 21, 2009, 03:17:25 PM
db_extend is a 2.0 only function. Do you, by any chance, have any mods written by 2by2host installed?

Yes, I do have a couple.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Arantor on November 21, 2009, 03:24:53 PM
Ah, yes, thought so.

Basically, SMG detects what version you're using by checking whether $smcFunc() exists, which is a 2.0 only construct. In the spirit of 'reuse of code', 2by2host mods create $smcFunc themselves, which confuses this mod.

Your choices are to uninstall their mods before installing SMG (then put them back after), or to modify the installer to check for something else.


@Nao, this is an issue that likely isn't going to go away. Might want to check for function_exists('db_extend') instead of whether $smcFunc is defined. Either that, or do the inverse, and check for $func being defined as a 1.1 only construction.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: sportin3 on November 21, 2009, 03:29:23 PM
Thank you for the information.

I will look at it from both directions and see which one makes more sense to me.

Thanks again!
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 21, 2009, 04:35:42 PM
@Arantor> I don't like the idea of having to *fix* my mod for doing something very logical that is unfortunately broken by another mod that goes against logic. SMG uses its own variable for that, $mgalFunc, which basically either recreates a clone of $smcFunc, or simply copies $smcFunc when it exists. That way, it doesn't overwrite anything special.

I've fixed it for Aeva Media (coming in a few weeks), but in the meantime I don't even want to hear about this problem... And I won't fix it for SMG. It even breaks version 1.0 which has been around (and popular enough) for over a year. I think *they* should make sure to be compatible with existing mods, or at least contact me and discuss it.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Arantor on November 21, 2009, 04:37:39 PM
Nao: I know. But I think you're going to keep getting issues where that's happening. Several authors have been told not to do that before though and most haven't listened.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: sportin3 on November 21, 2009, 05:36:05 PM
Ok, I uninstall-ed the  mod call twitter and facebook then installed the SMF Gallery mod. Everything went well except for one file that failed the pretest. "sources/load.php. I did a manual edit of this file but it I get an error when I replace the original.

Here is the line of code it does not like.


Find: [Select]
'local_time' => timeformat(time() + ($profile['timeOffset'] - $user_info['time_offset']) * 3600, false),

Add After: [Select]
      'mgallery' => array(
         'total_items' => $profile['mgal_total_items'],
         'total_comments' => $profile['mgal_total_comments'],
      ),

Here is what my code looks like in load.php. (I included some code before and some code after)

// If we're always html resizing, assume it's too large.
   if ($modSettings['avatar_action_too_large'] == 'option_html_resize' || $modSettings['avatar_action_too_large'] == 'option_js_resize')
   {
      $avatar_width = !empty($modSettings['avatar_max_width_external']) ? ' width="' . $modSettings['avatar_max_width_external'] . '"' : '';
      $avatar_height = !empty($modSettings['avatar_max_height_external']) ? ' height="' . $modSettings['avatar_max_height_external'] . '"' : '';
   }
   else
   {
      $avatar_width = '';
      $avatar_height = '';
   }

   $localTime = '';
   if(!empty($modSettings['timezones_enable']))
      $localTime = local_userTime($user);
   else
      $localTime = timeformat(time() + ($profile['timeOffset'] - $user_info['time_offset']) * 3600, false);
         'mgallery' => array(
         'total_items' => $profile['mgal_total_items'],
         'total_comments' => $profile['mgal_total_comments'],
      ),

   // What a monstrous array...
   $memberContext[$user] = array(
      'username' => &$profile['memberName'],
      'name' => &$profile['realName'],
      'id' => &$profile['ID_MEMBER'],
      'is_guest' => $profile['ID_MEMBER'] == 0,
      'is_buddy' => $profile['buddy'],

Note: If I remove that section of code the site loads fine. If I leave the code in, it knocks the whole site down.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 21, 2009, 06:47:38 PM
'kay... How many mods have you installed? Dozens? You know the more mods you install, the more issues you'll have in the end...?

Although, you probably installed your thing manually and you didn't make it correctly, because the line above my code is NOT the same as in the install script. Double check: my version ends with a comma (,), yours ends with a semi-colon (;).
Anyway-- the actual line is in the $memberContext[$user] declaration just below.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Tiribulus on November 21, 2009, 07:01:19 PM
Quote from: Nao/Gilles on November 21, 2009, 06:47:38 PM
'kay... How many mods have you installed? Dozens? You know the more mods you install, the more issues you'll have in the end...? >>>

This cannot be overstated. Especially where more than one mod replaces the same piece of code and the bigger the piece the worse it is. Unless you really know what you're looking at and can combine the code correctly (which I can't many times) or you get somebody who can to look at it, those mods won't work together.

Even with the few times I've tried to help somebody with something I thought was simple and I could fix, there have been times when I saw that they didn't notice that another mod had already changed the piece in question and I didn't do it.

Oh, well, sorry for the sidetrack, but this is a great point you are making.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: sportin3 on November 21, 2009, 07:05:19 PM
You are correct. I do have a large number of mods installed. I have been going back and taking some of the less than useful one out.

I did notice that the original code used a comma but when I tried to change it I got another error. In your last line you mention "just below". Do you mean that that line of code gets inserted in the array below. I noticed that it looks out of place where it was at but did not try to move it into the array below.

I will say this. I have have made a lot of manual mods to files that would not go with the package manager but I did not install if it was messing with the same section of code as another mod already changed unless it was just adding a single word in an array (forgive me I am not a coder and a hacker at best - Im sure there is a word for what I just said)  :-[
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: sportin3 on November 21, 2009, 10:49:08 PM
Update: I moved that code down into the array below and it worked like a charm.

Thanks for the help.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: micropitt on November 21, 2009, 11:44:52 PM
I know this is probably a stupid thing and I apologize up front for asking a stupid question. I installed Media Gallery on my 1.1.10 SMF Board. Everything seemed to be ok with the installation, I can setup albums and so on. However, this only works when I'm loged in as Admin. As soon as I log in as a regular user I'm not able to access the Gallery, means I don't have the Gallery Button on top. I use the SMF Core Theme as default and the user is not allowed to change Themes. I would be thankful for any tips, hints or ideas.
   
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Arantor on November 21, 2009, 11:46:07 PM
I think you need to set permissions in Admin > Permissions for users (and guests) to be able to see the gallery.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 22, 2009, 06:37:45 AM
Yes, permissions.

Should I change Aeva Media so that it will set permissions to 'yes' by default, rather than 'no'...?
I'd rather not, but if it could save me the many requests I have about this...

I also have plans to rework SMG/AM's permission area to have everything into one page. Including general permissions.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Arantor on November 22, 2009, 06:40:41 AM
Nao: I don't actually think that's unrealistic to do, to be honest.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: micropitt on November 22, 2009, 08:24:55 AM
Thank you very much, setting the permissions solved everything.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Kindred on November 22, 2009, 08:40:15 AM
eek... no, do not set permissions to "on"!

1- that would be the opposite of every other mod
2- then you will get complaints from users who can't figure out why some membergroups have permissions that the admin doesn't want them to have...
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 22, 2009, 12:16:17 PM
I was rather thinking about having a message saying somewhere 'click here to enable all permissions for all primary groups' or something...?
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: ardd on November 22, 2009, 09:40:10 PM
 I'm trying to remove the numbers from the gallery button, I can't quite find what makes the numbers shown below display on the button and truthfully can't really figure out exactly what they represent.

SMF 2.0 RC2
Gallery Ver. 2.0.3

Here's a screen shot of exactly what I'm trying to remove from the menu button.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv45%2Fclistensprechen%2FHypercrites%2Fbuttonscreen3.jpg&hash=2c6af1dd08a3902c83645cbba49fa4fba804dfa3)

Any help with this would be appreciated. If any know what the heck that number represents I would really like to know doesn't really match up with # of entries or # of files. 
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: MATTEK on November 22, 2009, 11:10:21 PM
Issue with the Gallery. Pictures hang off of the edge of the layout. Look at far right picture. Issue occurs on ALL browsers. Anyone know how to fix?

Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Tiribulus on November 22, 2009, 11:46:20 PM
Quote from: Nao/Gilles on November 22, 2009, 12:16:17 PM
I was rather thinking about having a message saying somewhere 'click here to enable all permissions for all primary groups' or something...?

That would be cool if it was something along  the lines of all except moderation permissions for everybody except guests or something like that
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: ardd on November 23, 2009, 12:22:31 AM
Quote from: Nao/Gilles on November 22, 2009, 06:37:45 AM
Yes, permissions.

Should I change Aeva Media so that it will set permissions to 'yes' by default, rather than 'no'...?
I'd rather not, but if it could save me the many requests I have about this...

I also have plans to rework SMG/AM's permission area to have everything into one page. Including general permissions.
Maybe a quick easy solution is a permissions Tutorial/FAQ as a sticky at the start of the thread. New users setting the permissions themselves may reduce the amount of questions later. If everything is set yes you may still end up with an equal amount of inverse questions. IE "How do I make this stop?" instead of "start".

I am writing a Aeva FAQ geared toward posters in my forum if you would like me to I would be glad to send you a copy for use wherever you like if it would in some way help.

The mods are great thanks for the good stuff :)
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Clara Listensprechen on November 23, 2009, 12:45:18 AM
Quote from: ardd on November 22, 2009, 09:40:10 PM
I'm trying to remove the numbers from the gallery button, I can't quite find what makes the numbers shown below display on the button and truthfully can't really figure out exactly what they represent.

SMF 2.0 RC2
Gallery Ver. 2.0.3

Here's a screen shot of exactly what I'm trying to remove from the menu button.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv45%2Fclistensprechen%2FHypercrites%2Fbuttonscreen3.jpg&hash=2c6af1dd08a3902c83645cbba49fa4fba804dfa3)

Any help with this would be appreciated. If any know what the heck that number represents I would really like to know doesn't really match up with # of entries or # of files. 
Taking a wild guess from observation.....

It appears to be the number of gallery pics you haven't browsed yet.  Of course if no information is on the page which obviously explains that, my guess is only as good as the next guy's.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: ardd on November 23, 2009, 02:42:34 AM
Quote from: MATTEK on November 22, 2009, 11:10:21 PM
Issue with the Gallery. Pictures hang off of the edge of the layout. Look at far right picture. Issue occurs on ALL browsers. Anyone know how to fix?


I'm by no means any sort of expert but have you tried going to Admin>Gallery>Settings>Preview Size Settings and reducing the size of the of the thumbnail or preview width?

This warning is displayed on the preview width setting:
Warning: if disabled, large pictures might break your template layout.

This looks like it may describe what's happening.

Settings for reducing the thumbnail size are also there.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: kingkingston on November 23, 2009, 12:53:30 PM
I was unistalling all my mods and this was the one i had problems with and now i can't get on my site,i got this error message

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

Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Arantor on November 23, 2009, 01:51:09 PM
Looks like it wasn't fully removed.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 23, 2009, 01:52:37 PM
@aard> You'll have to edit your files so that it removes that data. It's useful though, don't delete it. It's like removing the number of unread PMs.. You don't want that, do you? (And yes, it shows the number of unseen items. You can simply click the number (in SMF1) or click 'Unseen' in the dropdown menu (in SMF2) and then click 'Mark all as seen' to reset the number.)

@mattek> admin > gallery > settings > layout. Reduce max number of items per row.

@aard²> Aeva FAQ? There's already one written and posted by Akyhne, isn't there?

@aard3> Preview size is used in item pages, not album/home pages. This here is dealt with thumbnail sizes (and number of items per line)

@kingkingston> Well, seems a pretty clear error message to me... Just reupload that file to that folder and you get rid of the error. Then re-install correctly.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Clara Listensprechen on November 23, 2009, 02:00:13 PM
Quote from: Nao/Gilles on November 23, 2009, 01:52:37 PM
@aard> You'll have to edit your files so that it removes that data. It's useful though, don't delete it. It's like removing the number of unread PMs.. You don't want that, do you? (And yes, it shows the number of unseen items. You can simply click the number (in SMF1) or click 'Unseen' in the dropdown menu (in SMF2) and then click 'Mark all as seen' to reset the number.)
How about disabling the display in the button?  I think that's what the goal was--not to disable the stat gathering. It's nice to have the stat--it's not so good to have the stat in the button.

Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: MATTEK on November 23, 2009, 03:59:19 PM
Thanks for the help everyone!
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Nao 尚 on November 23, 2009, 05:07:26 PM
@clara> You can disable the Unseen permission for selected membergroups. Ideally, they will no longer get the unseen areas (and thus won't see the numbers show up). In reality though, it's buggy -- it stills shows them. I'll make sure to fix that in the next update.
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: ardd on November 23, 2009, 06:30:28 PM
Quote from: Nao/Gilles on November 23, 2009, 01:52:37 PM

@aard²> Aeva FAQ? There's already one written and posted by Akyhne, isn't there?

@aard3> Preview size is used in item pages, not album/home pages. This here is dealt with thumbnail sizes (and number of items per line)

First Thanks for the help with the button issue!

Second, The Aeva FAQ I'm writing is meant only for posters using Aeva on a forum or in the gallery not for admin or forum owners.

I'm compiling questions people have asked on other forums like "How do I post a video here?" and using it to create a sort of forum user tutorial for the general public. If you or anyone else can use it to help out on a forum you are operating I will be glad to post it.

I'm offering because I hate to be someone who just takes and takes, you have done a lot of great work for everyone. If there's anything I have you can use I'll be more than glad to share!

Last, I'm still kicking myself for overlooking the obvious about the row size! :-[ 
 
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Clara Listensprechen on November 23, 2009, 09:01:01 PM
Quote from: Nao/Gilles on November 23, 2009, 05:07:26 PM
@clara> You can disable the Unseen permission for selected membergroups. Ideally, they will no longer get the unseen areas (and thus won't see the numbers show up). In reality though, it's buggy -- it stills shows them. I'll make sure to fix that in the next update.
Thank you, but permissions isn't the issue. Everybody has the proper permissions I want them to have.  I just don't want the Gallery button to simply say Gallery and nothing else.  No numbers.  Can you help with making the button without numbers? Please?
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Kindred on November 23, 2009, 09:08:28 PM
well, then modify the button code in index.template.php (for 1.1.10) or subs.php (in 2.0)
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: capabmx on November 23, 2009, 10:50:16 PM
Ok so I've managed to semi-integrate a php/xml script into smf. Demo can be seen here. It right now auto searches mgal_data/albums/ and all subdirectories. and creates an individual playlist for each album, only pulling mp3's or wma's for audio playlists, and a few types of movies. It's very customizable just with the object embed code, colors, album art, everything. My question is to make it perfect for my site, I need to know where I'd look in smfmedia gallery to do these:

Switch it so it makes a folder profile_albums, and change it from global album_id's to something like http://thesite.com/index?action=mygallery;u=1;id=1,2,3,etc. So each user's first album would have id=1. Long time no see Dragoon :], and if anyone can help I'll figure as much out from there as possible, just need a little guidance to kickstart. Thanks :].
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: ardd on November 24, 2009, 02:06:44 AM
Quote from: Kindred on November 23, 2009, 09:08:28 PM
well, then modify the button code in index.template.php (for 1.1.10) or subs.php (in 2.0)
Thanks Kindred I'm using SMF 2.0RC2 and Gallery 2.03

Here's the code from subs.php

'mgallery' => array(
'title' => $txt['mgallery_gallery'] . (empty($user_info['mgal_unseen']) || $user_info['mgal_unseen'] == -1 ? '' : ' [<b>' . $user_info['mgal_unseen'] . '</b>]'),
'href' => $scripturl . '?action=mgallery',
'show' => allowedTo('mgallery_access'),
'sub_buttons' => empty($user_info['mgal_unseen']) || $user_info['mgal_unseen'] == -1 ? array() : array(
'mgallery_home' => array(
'title' => $txt['mgallery_home'],
'href' => $scripturl . '?action=mgallery',
'show' => true,
),
'mgallery_unseen' => array(
'title' => $txt['mgallery_unseen'],
'href' => $scripturl . '?action=mgallery;sa=unseen',
'show' => true,

I'm not 100% on where it's calling for the number to be displayed in the code. I'm guessing it's the "unseen" references but I'm not good enough with the syntax and coding yet to feel comfortable pruning.

I would like to do the least possible to stop it from displaying the number. I'm still a little green and don't want to go hacking away at the code like Jason in a cabin full of summer camp counselors. I'm shooting for just disabling the display in the button without otherwise affecting the stat counter. 
Title: Re: SMF Media Gallery (SMG) - 2.0.3 is out! (November 14)
Post by: Kindred on November 24, 2009, 02:47:26 AM
'title' => $txt['mgallery_gallery'] ,
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: SMGTeam on November 24, 2009, 05:47:14 AM
SMG v2.0.4 is out!

Version 2.0.4                                   November 24, 2009
-----------------------------------------------------------------
* Updated getid3 library to be entirely compatible with PHP6
! Yet another attempt at fixing button strips on all themes
! Fixed potential crashes on MySQL servers running in strict mode
! Fixed links in moderation panel
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 24, 2009, 05:49:21 AM
Just a small update this time -- but I figured one release every 10 days has become acceptable for you ;)
Feel free not to update if you don't have Strict MySQL though!

@capabmx> http://smf-media.com/community/index.php?topic=1448.msg11121#msg11121
Also, Dragooon doesn't read the SMG topic/boards much these days, you should contact him by PM if you want him to notice you. ;)

@aard> As long as it helps someone, it's cool :)
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: CiQ on November 24, 2009, 06:36:48 AM
in 2.0.4 pack:
<version>2.0.3</version>

;D
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: micropitt on November 24, 2009, 08:33:03 AM
The new package still is reported as 2.03  8)
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Darknico on November 24, 2009, 09:06:20 AM
Quote from: CiQ on November 24, 2009, 06:36:48 AM
in 2.0.4 pack:
<version>2.0.3</version>

;D

Quote from: micropitt on November 24, 2009, 08:33:03 AM
The new package still is reported as 2.03  8)

Confirm
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 24, 2009, 10:37:49 AM
Sorry to all previous 27 downloaders... ;) This is fixed.
I usually forget to update one or two areas of the mod... This time I forgot them all. Very proud of myself eheh.

I'm wondering if I can simply release a version as 1.x in the internals and only update the version number in one of the php files... I'll probably do that at some point.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Dragooon on November 24, 2009, 10:59:52 AM
Then the Package Manager feature telling that there is a new version won't work :D
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 24, 2009, 11:03:07 AM
Which is not a problem since it'll be using Aeva's system anyway :D The filename will indicate the internal version number.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Clara Listensprechen on November 24, 2009, 11:43:19 AM
Quote from: Kindred on November 24, 2009, 02:47:26 AM
'title' => $txt['mgallery_gallery'] ,
Exactly what I was looking for, which I didn't think was too much to ask (at the time). Thank you VERY much!
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 24, 2009, 12:09:01 PM
I tend not to make new features optional -- partly because I think new features are cool. :P
If anyone wants a feature to *be* optional, nothing should prevent you from doing so ;) If enough people request the same thing, I'll do my best to implement it. I'm not closed to the idea that I don't always make the best design/UI decisions ;)
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Harvester on November 24, 2009, 05:29:55 PM
For some reason whenever I upload an FLV movie file to the gallery (I do it via ftp) I get "Error #2095"
Im encoding my videos with Adobe Premiere CS4/Adobe Media Encoder. I have tried several different variations when encoding but I still get the same error in SMG.

Anyone have this issue and if so, how did you resolve it?
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: micropitt on November 24, 2009, 10:44:45 PM
Hello,
I apologize if it is already known or was discussed. Every time I use the "Mass Upload" option with a Mac it will crash the Browser. This seems to happen with every Mac user I know. So far I tried Safari, Webkit and Firefox 3.6b3. The result always was the same. Uploading single pictures always is working fine.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Harvester on November 24, 2009, 11:03:21 PM
for uploading a lot of files I find the ftp feature is much better to use than the mass upload anyway.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: MATTEK on November 24, 2009, 11:15:20 PM
Should I install this overtop of 2.0.3 or uninstall and then install 2.0.4?
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: micropitt on November 24, 2009, 11:28:00 PM
Quote from: Harvester on November 24, 2009, 11:03:21 PM
for uploading a lot of files I find the ftp feature is much better to use than the mass upload anyway.

Which is not available to the average user.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: kingkingston on November 24, 2009, 11:51:41 PM
Quote from: MATTEK on November 24, 2009, 11:15:20 PM
Should I install this overtop of 2.0.3 or uninstall and then install 2.0.4?
always unistall the old one and delete it from your package manager then install the updated one
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: SilverKnight on November 25, 2009, 07:31:37 AM
I use the Gallery as a download manager, it works better than the other download managers out there.

Maybe turn the Gallery into a Content manager instead? Or just give it a new name, it truely is more than a Media Gallery these days :P

I have all my downloads on there, and image archives. If anything, it would be nice th have a password feature, and maybe a option to allow user albums to be put in a general album or something.

That being said i would really like to see the gallery system being intergrated into ultimate profile mod to replace the albums displayed there, since they are no use with this mod installed!

Anyway, what's new in 2.0.4, is it worth the hassle of an update?
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 25, 2009, 08:17:37 AM
@Harvester> I googled the error, found some explanation, fired up my old Flash environment (which I'd zipped, deleted and lost somewhere on a dusty DVDR -- one hour to find it), fixed the supposed error and recompiled.
http://noisen.com/player2095.zip
Please tell me if this version of player.swf fixes your problem. You need to upload it in your theme's mgallery folder, of course.
If it doesn't work, please post the URL of an item page that shows the error.
If it works, make sure to share the love... :P (Otherwise I'm not putting the fixed file in the package.)

@micropitt> I believe it's a Flash version issue. Try downgrading or upgrading your Flash component. (TomW, if you're reading this-- can you confirm?)

@micropitt²> The 'average user' doesn't use a Mac anyway. They use Windows XP, Internet Explorer 6 and wouldn't actually know whether the search engine they're using is called 'Google' or 'Bing'. They don't know what a search engine is, anyway.

@SK> Works better than download managers? Lol... Mission accomplished then :D Seriously, I've never really seen SMG as a download manager. Can you point out features I could add to it so that it can be even better in that respect?
As for the new name -- if you didn't read my posts in the last few weeks, let me tell you that I'm working on that right now. The next version of SMG will be called Aeva Media (without the 'Gallery'), and will completely integrate Aeva and add lots of new features (which I have yet to add of course, but don't interrupt me :P). One of the reasons being that I precisely wanted to get further away from the idea that's it's 'just a picture gallery'. It's multiMEDIA!

Re: ultimate profile -- just disable the profile pictures. It's a good little gallery system if people don't want to use SMG. Why should I force them? Heck, I used U.P.'s profile pictures before I jumped to SMG. If you're talking about integrating pictures directly into the profile page (not as a menu entry in the profile menu), it's not that hard. There are several scripts to do that at smf-media I think. I made my own, not sure whether I published it or not. Anyway!

v2.0.4 isn't worth the update if you don't have any problems with v2.0.3. But reading my changelogs every time I post them is worth the hassle..... Because you wouldn't have to ask, then  O:)
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: micropitt on November 25, 2009, 08:36:04 AM
Quote from: Nao/Gilles on November 25, 2009, 08:17:37 AM

@micropitt²> The 'average user' doesn't use a Mac anyway. They use Windows XP, Internet Explorer 6 and wouldn't actually know whether the search engine they're using is called 'Google' or 'Bing'. They don't know what a search engine is, anyway.

I think you misunderstood me or I did not explain clear enough. My post was regarding to the suggestion using FTP for mass upload. The average user on the board does not have the option to use FTP for mass uploading pictures. I do know that the average user does not use a Mac  ;)
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 25, 2009, 01:45:19 PM
Quote from: micropitt on November 25, 2009, 08:36:04 AM
I think you misunderstood me or I did not explain clear enough. My post was regarding to the suggestion using FTP for mass upload. The average user on the board does not have the option to use FTP for mass uploading pictures. I do know that the average user does not use a Mac  ;)
Yes, and I said: since the average user doesn't use a Mac, then they won't have any trouble mass-uploading to your gallery, will they?
And even then-- other Mac users won't have any trouble either. It depends on a specific set of programs installed. I don't know which, and I don't care. If you desperately want to mass upload yourself, use FTP import, or use another computer, or fix your machine so that Flash works on it.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: micropitt on November 25, 2009, 03:14:12 PM
Quote from: Nao/Gilles on November 25, 2009, 01:45:19 PM
Quote from: micropitt on November 25, 2009, 08:36:04 AM
I think you misunderstood me or I did not explain clear enough. My post was regarding to the suggestion using FTP for mass upload. The average user on the board does not have the option to use FTP for mass uploading pictures. I do know that the average user does not use a Mac  ;)
Yes, and I said: since the average user doesn't use a Mac, then they won't have any trouble mass-uploading to your gallery, will they?
And even then-- other Mac users won't have any trouble either. It depends on a specific set of programs installed. I don't know which, and I don't care. If you desperately want to mass upload yourself, use FTP import, or use another computer, or fix your machine so that Flash works on it.

It always is a pleasure to get a professional, helpful and friendly answer.
Happy Thanksgiving to you too.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Tiribulus on November 25, 2009, 03:22:11 PM
I don't think they celebrate Thanksgiving in France since it was instituted by George Washington in 1789   :)
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 25, 2009, 05:10:51 PM
Quote from: micropitt on November 25, 2009, 03:14:12 PM
It always is a pleasure to get a professional, helpful and friendly answer.
Oh, just go away. I tried giving you a realistic answer. What do you want? A refund? You didn't pay anything and you're wasting my time.

QuoteHappy Thanksgiving to you too.
Just because something is in the US culture doesn't mean everyone in the world has to celebrate it. Do you celebrate July 14?
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: kingkingston on November 25, 2009, 06:30:17 PM
Quote from: Tiribulus on November 25, 2009, 03:22:11 PM
I don't think they celebrate Thanksgiving in France since it was instituted by George Washington in 1789   :)
You should give thanks everyday not just one day
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: micropitt on November 25, 2009, 09:48:19 PM
Quote from: Nao/Gilles on November 25, 2009, 05:10:51 PM

Oh, just go away. I tried giving you a realistic answer. What do you want? A refund? You didn't pay anything and you're wasting my time.

Certainly, Your Majesty. Certainly.  ::)
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Kindred on November 26, 2009, 12:58:43 AM
lol... actually, yes...   my friends and I DO celebrate Bastille Day (and Guy Fawlkes day as well) even though we are in the US.

oh... and while we're off topic...  Tiribulus, the national holiday of thanksgiving may have been added by George Washington... but Thanksgiving really does date back to the Plimouth with the Pilgrims and the Wampanoag Native Americans.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: NeKit1000 on November 26, 2009, 01:20:00 PM
http://forum.sonicscanf.ru/index.php?action=mgallery;area=mya;sa=add
How to fix it?
Login: Test
Password: SCANFTest
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 26, 2009, 02:12:17 PM
http://forum.sonicscanf.ru/index.php?action=mgallery;sa=album;id=11

???
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: NeKit1000 on November 26, 2009, 02:17:10 PM
Here is screenshot: http://img510.imageshack.us/img510/4569/1259262898493.png
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: N.E.Media on November 26, 2009, 03:01:49 PM
Where is this "php.ini" file located?

I need to increase max file upload size.

A search of this very long thread yielded one result - which gave no answer.

Thanks!

Dan
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Arantor on November 26, 2009, 03:34:26 PM
php.ini lives in the webserver configuration itself, unless you're on a VPS or dedicated server you won't be able to change it.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: N.E.Media on November 26, 2009, 04:17:41 PM
I have a dedicated server with Plesk CP.


:)


Dan

Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Arantor on November 26, 2009, 04:19:31 PM
In which case, run phpinfo() (see What is a phpinfo() file? (http://docs.simplemachines.org/index.php?topic=479.0) for more) and the location of php.ini will be listed. You'll likely have to restart the Apache process after though.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 26, 2009, 05:12:56 PM
Quote from: NeKit1000 on November 26, 2009, 02:17:10 PM
Here is screenshot: http://img510.imageshack.us/img510/4569/1259262898493.png
I guess it's a problem with your custom theme. It doesn't correctly support very large resolutions.
I run on 1280x1024 and have no problems with your site myself.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: NeKit1000 on November 26, 2009, 05:42:17 PM
Quote from: Nao/Gilles
I guess it's a problem with your custom theme. It doesn't correctly support very large resolutions.
I run on 1280x1024 and have no problems with your site myself.
It happens on certain pages, even in default theme, on any resolutions.
http://img204.imageshack.us/img204/1572/1259275240308.png
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Clara Listensprechen on November 26, 2009, 11:15:13 PM
Quote from: Kindred on November 24, 2009, 02:47:26 AM
'title' => $txt['mgallery_gallery'] ,
I successfully removed the number associated with the button title you cite here, although the text you cite was not the problem.  I was able to establish that this line was the problem:

Quote'title' => $txt['mgallery_gallery'] . (empty($user_info['mgal_unseen']) || $user_info['mgal_unseen'] == -1 ? '' :

Changing this line to
Quote'title' => $txt['mgallery_gallery'] . (empty($user_info['-']) || $user_info['-'] == -1 ? '' :
got the job done. It was the variable 'mgal_unseen' that caused the problem.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Kindred on November 27, 2009, 12:46:54 AM
Clara,

well, first of all, it was never a "problem". It was working as intended.
Also, the change that I gave you is correct....    the way you left it, the system is checking for stuff it does not have to...    $user_info is never used and $user_info['-'] dpesn't even exist.

You can't just replace variables with junk...
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: ardd on November 27, 2009, 02:26:11 AM
 Thanks Kindred for the point in the right direction, the menu bar is and will be pretty "Buttoned Up" especially in Admin group view there should be just enough room for what I want there. I'm just letting you know why this was an issue at all, I even trimmed the "My" out of "My Messages" to save a little space and avoid having to use drop downs. 

I think I have accomplished this by changing the last line of the code below to "false"
'mgallery' => array(
'title' => $txt['mgallery_gallery'] . (empty($user_info['-']) || $user_info['-'] == -1 ? '' : ' [<b>' . $user_info['-'] . '</b>]'),
'href' => $scripturl . '?action=mgallery',
'show' => allowedTo('mgallery_access'),
'sub_buttons' => empty($user_info['mgal_unseen']) || $user_info['mgal_unseen'] == -1 ? array() : array(
'mgallery_home' => array(
'title' => $txt['mgallery_home'],
'href' => $scripturl . '?action=mgallery',
'show' => true,
),
'mgallery_unseen' => array(
'title' => $txt['mgallery_unseen'],
'href' => $scripturl . '?action=mgallery;sa=unseen',
'show' => true,
 

I did this so it would be easily reversible should I wish to change it back.

If there will be any bad consequence from this please let me know, everything seems to be working correctly and throwing up no errors at this time, although it's right after TG dinner and the triptophan is whooping my energy levels :)

Thank you for your time and patience with this, I am learning quite a bit from working with this and have went from 0 to Ummm... in two weeks hopefully with a little study and experience I can get from Ummm... to DOH! in another two weeks  :D 
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 27, 2009, 04:03:18 AM
@NeKit> I can't change the theme on the Test account. Please enable that. Also, what browser are you using?

@Kindred> Ah, girls... Sometimes you've gotta let them do things the way they want, even when they're screwed up ;)
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: NeKit1000 on November 27, 2009, 05:44:05 AM
Quote from: Nao/Gilles on November 27, 2009, 04:03:18 AM
@NeKit> I can't change the theme on the Test account. Please enable that. Also, what browser are you using?
I've enabled now. I use Mozilla Firefox 3.5.5.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 27, 2009, 08:55:06 AM
Okay, reproduced with Firefox only...
Open MGallery.template.php, look for:

<div class="floatleft" style="margin-left: 10px; overflow: auto">', template_button_strip($buttons, $direction), '

Replace with:

<div style="margin-left: 10px; overflow: auto">', template_button_strip($buttons, $direction), '

(I figured it out in under a minute by opening Firebug on the page, inspecting the button strip div, and clicking the Disable icon next to the 'floatleft' class. I don't like Firefox, but if there's one thing I like in it, it's Firebug!)
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 27, 2009, 09:04:22 AM
Quote from: Nao/Gilles on November 27, 2009, 08:55:06 AM
I don't like Firefox, but if there's one thing I like in it, it's Firebug!
Okay, one less reason for me to use Firefox: Firebug Lite! Just discovered that, and its button in my toolbar is here to stay... Fantastic stuff :)
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: NeKit1000 on November 27, 2009, 09:24:31 AM
Quote from: Nao/Gilles on November 27, 2009, 08:55:06 AM
<div class="floatleft" style="margin-left: 10px; overflow: auto">', template_button_strip($buttons, $direction), '

Replace with:

<div style="margin-left: 10px; overflow: auto">', template_button_strip($buttons, $direction), '
Thanks, it helped.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Tiribulus on November 27, 2009, 10:29:14 AM
Quote from: Nao/Gilles on November 27, 2009, 09:04:22 AM
Quote from: Nao/Gilles on November 27, 2009, 08:55:06 AM
I don't like Firefox, but if there's one thing I like in it, it's Firebug!
Okay, one less reason for me to use Firefox: Firebug Lite! Just discovered that, and its button in my toolbar is here to stay... Fantastic stuff :)

I couldn't live without Firebug
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 27, 2009, 11:09:38 AM
Opera has its own cool Developer Tools, but they're only usable in Opera 10 (not Opera 9), and since I use Opera 9 mainly, having Firebug Lite is cool. :) Just a bit sad that it doesn't have a javascript tracer. I have to use Opera's in this situation. No biggie.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Clara Listensprechen on November 27, 2009, 11:20:14 AM
Quote from: Kindred on November 27, 2009, 12:46:54 AM
Clara,

well, first of all, it was never a "problem". It was working as intended.
Also, the change that I gave you is correct....    the way you left it, the system is checking for stuff it does not have to...    $user_info is never used and $user_info['-'] dpesn't even exist.

You can't just replace variables with junk...
What a Bill Gates way of looking at things. It was a problem. Putting in junk to replace junk did the job, as the junk I replaced the junk with was invisible on the button. My junk got the job done.  Thank you.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Clara Listensprechen on November 27, 2009, 11:24:23 AM
Quote from: ardd on November 27, 2009, 02:26:11 AM
Thanks Kindred for the point in the right direction, the menu bar is and will be pretty "Buttoned Up" especially in Admin group view there should be just enough room for what I want there. I'm just letting you know why this was an issue at all, I even trimmed the "My" out of "My Messages" to save a little space and avoid having to use drop downs. 

I think I have accomplished this by changing the last line of the code below to "false"
'mgallery' => array(
'title' => $txt['mgallery_gallery'] . (empty($user_info['-']) || $user_info['-'] == -1 ? '' : ' [<b>' . $user_info['-'] . '</b>]'),
'href' => $scripturl . '?action=mgallery',
'show' => allowedTo('mgallery_access'),
'sub_buttons' => empty($user_info['mgal_unseen']) || $user_info['mgal_unseen'] == -1 ? array() : array(
'mgallery_home' => array(
'title' => $txt['mgallery_home'],
'href' => $scripturl . '?action=mgallery',
'show' => true,
),
'mgallery_unseen' => array(
'title' => $txt['mgallery_unseen'],
'href' => $scripturl . '?action=mgallery;sa=unseen',
'show' => true,
 

I did this so it would be easily reversible should I wish to change it back.

If there will be any bad consequence from this please let me know, everything seems to be working correctly and throwing up no errors at this time, although it's right after TG dinner and the triptophan is whooping my energy levels :)

Thank you for your time and patience with this, I am learning quite a bit from working with this and have went from 0 to Ummm... in two weeks hopefully with a little study and experience I can get from Ummm... to DOH! in another two weeks  :D 

Ah.  I'm pasting this into my notebook for easy use in the event anybody else thinks they know what I want better than I do.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 27, 2009, 12:06:08 PM
@Clara> I don't get it. The line Kindred gave you was exactly what you were trying to do: it removed the entire [number] thing. Adding more code isn't gonna help, it's simply going to give more work to your server for nothing...

@aard> Hmm, that makes me think I never actually hide the 'Unseen' menu link if the Unseen area is disabled... Unfortunately, that particular setting is in $mgalSettings, which is not loaded at the time the menu is populated. Hmm, what can I do...?
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: tripl3r on November 27, 2009, 01:17:40 PM
Any way to make the Galleries file show in MB instead of KB?
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 27, 2009, 01:59:37 PM
What size are your files in average?
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Tiribulus on November 27, 2009, 03:02:20 PM
Quote from: Nao/Gilles on November 27, 2009, 11:09:38 AM
Opera has its own cool Developer Tools, but they're only usable in Opera 10 (not Opera 9), and since I use Opera 9 mainly, having Firebug Lite is cool. :) Just a bit sad that it doesn't have a javascript tracer. I have to use Opera's in this situation. No biggie.

Forgive the further sidetrack, but what's wrong with Opera 10 which I have seen, but not really played with the dev tools yet. Also, what don't you like about Firefox? I saw Firebug lite a little while back, but haven't tried that at all. Firebug itself has helped me immensely in chasing down all kindsa stuff I would have never found on my own. Too bad there wasn't a way it could drill more directly back into the PHP. That would be an absolute Godsend.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Kindred on November 27, 2009, 03:23:33 PM
Clara,

After your explanation, I knew EXACTLY what you were trying to do, and my code did so.
The code that you (and aard) are using is calling for a variable that is not defined, not used and serves no useful purpose at all...   In other words using server overhead when it's not needed (a very windows way of looking at things, to use your own comparison)

Seriously...   if you code like that, your server is eventually going to have issues
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 27, 2009, 05:41:17 PM
Quote from: Tiribulus on November 27, 2009, 03:02:20 PM
Forgive the further sidetrack, but what's wrong with Opera 10 which I have seen, but not really played with the dev tools yet.
Oh... Opera 10 is fantastic. Opera is fantastic, period.

You asked for it? Here it is.
I have my own custom theme for Opera, which I worked on for quite some time to achieve some pixel-perfect bliss for power browsers like me (250+ tabs open at all times). Opera 10 introduced about 1 or 2 extra lines below tabs, and 2-3 lines above them. That's about 3-4 lines extra, which I have a hard time dealing with, lol. I contacted them to get a fix or at least a workaround, but didn't get any answer (hopefully it at least made a few Opera employees laugh or something). Also, I tried running Opera 9 & 10 at the same time and v10 always seems to use a bit more memory. Considering 250+ tabs already takes a minimum of 700MB of Ram on a 2-gig rig (always wanted to say that), it's not something I can overlook. (I could add more Ram but I'm on a 32-bit OS so... Pretty useless.)

QuoteAlso, what don't you like about Firefox?
Try having 250 tabs in Firefox without a crash. Try having 50 tabs in Firefox without a crash, actually... Try using 20 simultaneous tabs in Firefox without getting a headache after a couple of hours. The fact that it can't have less than 20px-wide tabs (or something) is a nightmare. Plus, the UX is bad IMHO. Mouse gestures should be implemented by default for instance, as well as session management. It uses a ton of Ram. And on and on... I've been browsing the web for 13 years now. I was a IE2 addict, because it was fast and full-featured, compared to Netscape. I feel that Firefox is the Netscape of today. Chrome is the IE2 of today, but Opera is better for power browsers. (I couldn't live without my hundreds of tabs, I guess.)

NB: when I say 250+ tabs, I may be exaggerating. I just checked, and I currently have 217 tabs open. My worst record is dated from October 21, 2009, with a whopping 265 tabs. My session file crossed the 300KB barrier and then I figured I'd better close 'a few' tabs. I haven't had less than 100 tabs open since 2006. Pretty much when I started focusing on web development...

QuoteI saw Firebug lite a little while back, but haven't tried that at all. Firebug itself has helped me immensely in chasing down all kindsa stuff I would have never found on my own. Too bad there wasn't a way it could drill more directly back into the PHP. That would be an absolute Godsend.
PHP debuggers do exist, but they require you to install a local server. I personally don't give a damn about that. I debug my PHP the manly way -- with strategically positioned print_r() calls. It's not going to earn me a Nobel, but at least it gets the work done. If you're lucky you might catch a glimpse of my print_r()'s while I'm working on SMG... Just spend a lot of time refreshing pages on media.noisen.com, lol.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Arantor on November 27, 2009, 05:45:29 PM
Btw, if you want to drill Firebug into the PHP, try FirePHP, it's spews most of the data in variables into headers for Firebug to pick up.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Tiribulus on November 27, 2009, 06:07:24 PM
Quote from: Nao/Gilles on November 27, 2009, 05:41:17 PM
<< a long interesting response >>>

200 + tabs? You're a seriously disturbed individual. I hope you know that and are seeking appropriate help.

By your standard I am not a power browser (I think the other one works for Microsoft  ??? ), but it can't be denied that FF has gotten a lot bulkier in the last couple years and especially since v.3.

I am not familiar with PHP debugging, manly or otherwise. I'm not sure if that's the same thing as simply seeing what script code is responsible for the resulting HTML.

I again always appreciate your comprehensive responses.

@Arantor:

I played around with getting FirePHP going a few months ago, but there were a whole bunch of considerations, including security that I didn't feel competent enough to tackle.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Arantor on November 27, 2009, 06:40:53 PM
@Tiribulus: The solution in that case is to not run the development on a public live server but do it offline where security is not an issue (that's how I do all my development)
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Tiribulus on November 27, 2009, 08:40:37 PM
Quote from: Arantor on November 27, 2009, 06:40:53 PM
@Tiribulus: The solution in that case is to not run the development on a public live server but do it offline where security is not an issue (that's how I do all my development)

For me this wouldn't be practical as this is my own server and I'd either have to have a duplicate forum (or 2 for the SMF2 forum as well) on the same machine or setup another machine. There were other obstacles there too. Maybe I'll take it up again in the future.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Arantor on November 27, 2009, 08:44:31 PM
You don't have to flat out duplicate everything, just enough to be able to test changes; my current RC2 test forum has 3 accounts and about 50 posts.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: kota069 on November 27, 2009, 10:29:34 PM
I just installed SMF Media Gallery 2.0.4 on SMF 1.1.10.

I can't upload to it.  I get the following:

Parse error: syntax error, unexpected $end in /home/xxxxxx/public_html/xxxxxxx/Sources/Subs-Graphics.php on line 1665

Could anyone offer any suggestions about this?
Thanks.......
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 28, 2009, 02:48:14 AM
@tiribulus> Who said I don't enjoy my 200 tabs? As long as I can easily browse between them... (Thank God for status bar captions!)

@kota> You probably didn't upload your SMF correctly (bad FTP client?), or installed another mod that broke your Subs-Graphics.php file. Nothing to do with SMG.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: kota069 on November 28, 2009, 08:34:45 AM
Quote from: Nao/Gilles on November 28, 2009, 02:48:14 AM
@kota> You probably didn't upload your SMF correctly (bad FTP client?), or installed another mod that broke your Subs-Graphics.php file. Nothing to do with SMG.

Not sure why you would assume so much.
The Board has been running perfectly since the original 1.1.4 install with more Mods than I care to mention including SMG 1.0.

Yesterday, I UNinstalled SMG 1.0 to install 2.0.4.
The only file that "failed" was load.php which I edited manually.
The install appeared smooth otherwise.

Upon testing the new install I discovered the above mentioned error.

I'm not understanding the "... unexpected $end ... line 1665" as line 1665 is in fact the closing php tag of the file: ?>.

Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Arantor on November 28, 2009, 08:37:55 AM
That error means there is a missing } somewhere.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Kindred on November 28, 2009, 08:41:10 AM
Quote from: kota069 on November 28, 2009, 08:34:45 AM
... with more Mods than I care to mention including SMG 1.0.

And there is the likely source...
you have so many mods that the uninstall of smg 1.0 removed some code that one of the other mods was depending on.. (specifically a closing bracket } )
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Tiribulus on November 28, 2009, 04:57:01 PM
Quote from: Nao/Gilles on November 28, 2009, 02:48:14 AM
@tiribulus> Who said I don't enjoy my 200 tabs? As long as I can easily browse between them... (Thank God for status bar captions!) >>>

Oh I'm sure you do. I was being jokingly sarcastic. You're the second person lately whose opinion I hold in high regard that has insisted on Opera's superiority. I may have to give it some more time. I remember IE2 and the old Netscape Navigator. I was just getting into computers then.
Title: XML Parsing Error | Why?
Post by: Vyache on November 28, 2009, 08:12:21 PM
XML Parsing Error: not well-formed
Location: http://theswimstrongfoundation.org/network/index.php?action=mgallery;sa=mass;album=2;xml;upcook=YTo0OntpOjA7czoxOiIxIjtpOjE7czo0MDoiYzQ2MTZhMTI1MWNmZmRhNDg1OWIyNTM0YTRhZGRiMzI4ZWZlMmFhOCI7aToyO2k6MTQ0ODY0ODg5NDtpOjM7aTowO30%3D
Line Number 1, Column 1:
?>
^

I get this error after mass upload.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 29, 2009, 02:24:41 AM
Reparse it as HTML / view the source code.
You'll see that something (a portal?) is inserting some extraneous code and disrupting the flow.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: russ skinner on November 29, 2009, 05:29:30 AM
Have just installed SMF Media Gallery 2.04 onto a forum running SMF 2.0 RC2 and also the latest Simple Portal Mod. Pleased to say all is working well, however one minor glitch when 'Add user Album' is selected under 'My Albums Tab' the 'Album Details' section goes off the screen.

See attached screen dump.

Any ideas what may be causing the problem?

Thanks,

Russ
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 29, 2009, 06:41:53 AM
People! When you have a problem, before posting on the official topic (for any mod), read the first page, and then the last few pages!
In this case--see previous page! ::)
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: russ skinner on November 29, 2009, 06:53:18 AM
Apologies Nao/Gilles,

I have just been going through the thread and found your fix here (http://www.simplemachines.org/community/index.php?topic=260821.msg2377592#msg2377592).

Works perfectly now.

Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 29, 2009, 08:04:01 AM
As long as it doesn't happen too often :)
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Paracelsus on November 30, 2009, 04:39:28 AM
Ok, a little bug squashing...

I'm having this error message displayed whenever someone is on the "who" action page (and simultaneously someone accessed the gallery):
Fatal error: Unsupported operand types in /home/forumscp/public_html/Sources/Subs-MGallery.php on line 795

I was having this already with SMG 1.5.5 but I thought it could be due to the fact that it was an outdated version. But I've uninstalled that version, installed the most recent version and the error is still there. I've even tried to delete every language string related to the "who" action in SMG's language file but with no luck.

Any ideas?
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 30, 2009, 05:10:23 AM
Quote from: Nao/Gilles on November 30, 2009, 04:54:09 AM
- Which version of PHP is installed?
- Does this help? Subs-MGallery.php, line 784, replace with:
Removing earlier post... I think I've found the problem.
This error is triggered because $mgalFunc is empty in the first place. However, it should NOT be empty at this point, because it's either filled with $smcFunc (SMF 2 RC) or $func (SMF 1). Maybe you're using an old SMF2 beta...? That would explain a lot. SMG is no longer compatible with these, BTW.

The easiest fix would be this one (which I'll be implementing): Subs-MGallery.php, add this before line 784:

if (empty($mgalFunc))
$mgalFunc = array();


It will still probably only *hide* the problem -- you will have many more elsewhere.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: russ skinner on November 30, 2009, 05:18:24 AM
I wonder if you anyone could please help me resolve an issue with the 'mass upload' feature which I cannot get to work.

I have searched through both the posts in this thread and on smf media.com support board, but I am still unsure where the problem lies.

I'm running SMF 2.0 RC2 & SMG 2.04 with the default curve theme. The only other mods I have installed are Simple Portal, Aeva and Users online today.

I have an exact copy of my remotely hosted  forum, + mods, running on a WAMPServer on my local machine and the mass upload feature works fine, however with the remote setup the process starts, but does not complete (see screen dump attachment).

I have both Java and flash enabled in Firefox, the 'About Gallery' page reports 'PHP's Safe Mode is disabled' and I do not believe this to be a crossdomain.xml issue as the process starts, or a quota issue.

Could it be a Mod security issue?

I am happy to provide full guest gallery privileges if this would help to sort the problem out.

Thanks,

Russ
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 30, 2009, 06:29:03 AM
mod_security > I think it's fixed in SMG 2.0.4 anyway... (?)
Does single form upload work for that particular file?
Mr. Error log, what say you?
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Paracelsus on November 30, 2009, 07:05:29 AM
Quote from: Nao/Gilles on November 30, 2009, 05:10:23 AM
Quote from: Nao/Gilles on November 30, 2009, 04:54:09 AM
- Which version of PHP is installed?
- Does this help? Subs-MGallery.php, line 784, replace with:
Removing earlier post... I think I've found the problem.
This error is triggered because $mgalFunc is empty in the first place. However, it should NOT be empty at this point, because it's either filled with $smcFunc (SMF 2 RC) or $func (SMF 1). Maybe you're using an old SMF2 beta...? That would explain a lot. SMG is no longer compatible with these, BTW.

The easiest fix would be this one (which I'll be implementing): Subs-MGallery.php, add this before line 784:

if (empty($mgalFunc))
$mgalFunc = array();


It will still probably only *hide* the problem -- you will have many more elsewhere.

I'm actually using SMF v1.1.10, but I'll try your suggestion.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Paracelsus on November 30, 2009, 07:15:02 AM
Following the post above... no, that didn't work.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: DirtRider on November 30, 2009, 07:23:49 AM
Quote from: Nao/Gilles on November 30, 2009, 06:29:03 AM
mod_security > I think it's fixed in SMG 2.0.4 anyway... (?)
Does single form upload work for that particular file?
Mr. Error log, what say you?

I was having it happen on 2.0.4 so I enabled the error log in the gallery to see what it was doing and the problem went away  :P  So I don't know if by enabling error log it did something  ;D
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on November 30, 2009, 08:03:54 AM
Paracelsus, I'll need FTP access and an admin account to your board (as well as its URL). Please provide them by PM.

DirtRider, I don't think so ;)
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: russ skinner on November 30, 2009, 09:49:40 AM
Quote from: Nao/Gilles on November 30, 2009, 06:29:03 AM
mod_security > I think it's fixed in SMG 2.0.4 anyway... (?)
Does single form upload work for that particular file?
Mr. Error log, what say you?

Single file upload for that file is no problem.

Not sure if this is required, but I have enabled log access errors in the security settings menu, attempted another mass upload and neither the forum maintenance error log or the error log in the forum root directory are flagging any errors?
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Vyache on November 30, 2009, 08:48:31 PM
I'm having an issue with mass upload and single upload, I wrote up .htaccess file and put it into my root, but I cannot upload my images. I get blanks....

I have the same type of file in my root of my root site...

This is my .htaccess code:

  1  RewriteEngine on
  2   
  3
  4 <IfModule mod_security.c>
  5    # Turn off mod_security filtering.  SMF is a big boy, it doesn't need its hands held.
  6    SecFilterEngine Off
  7
  8    # The below probably isn't needed, but better safe than sorry.
  9    SecFilterScanPOST Off
10 </IfModule>



I'm willing to provide temporary ftp access...
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on December 01, 2009, 05:15:20 AM
@russ> I'll need FTP access and an admin account to your forum to look into it.

@vyache> Same, + phpmyadmin.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: perplexed on December 01, 2009, 05:55:35 AM
The link for dragoon's plugin on the mod page doesn't work "page not found" and I went to the Foxy site to look at that plugin and that looks very good btw, but the thread is locked and the link to buy takes you to a page that says:

An Error Has Occurred!
The user whose profile you are trying to view does not exist.

So I can't go any further with either of them.

Since they are not available for download on the Mod page does that mean they are not approved by SMF or just because you have to pay for them?

thanks
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Arantor on December 01, 2009, 05:58:46 AM
Any mods on the SMF site have to be given away for free, but I don't know about the other issues.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: DirtRider on December 01, 2009, 09:37:56 AM
Quote from: quiteperplexed on December 01, 2009, 05:55:35 AM
The link for dragoon's plugin on the mod page doesn't work "page not found" and I went to the Foxy site to look at that plugin and that looks very good btw, but the thread is locked and the link to buy takes you to a page that says:

An Error Has Occurred!
The user whose profile you are trying to view does not exist.

So I can't go any further with either of them.

Since they are not available for download on the Mod page does that mean they are not approved by SMF or just because you have to pay for them?

thanks

Firstly you need to register on the site and then you will be able to purchase Foxy. Best ad on I have ever purchased made my gallery complete, love it
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: russ skinner on December 01, 2009, 09:43:42 AM
Quote from: Nao/Gilles on December 01, 2009, 05:15:20 AM
@russ> I'll need FTP access and an admin account to your forum to look into it.

@vyache> Same, + phpmyadmin.

PM sent.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on December 01, 2009, 09:57:11 AM
Quote from: quiteperplexed on December 01, 2009, 05:55:35 AM
I went to the Foxy site to look at that plugin and that looks very good btw, but the thread is locked and the link to buy takes you to a page that says:
Sorry, I should have specified that the link requires you to be logged into the website.
The topic is locked because it's not a support topic.

QuoteSince they are not available for download on the Mod page does that mean they are not approved by SMF or just because you have to pay for them?
SMF mod site = free mods
It doesn't mean that something not hosted on SM.org is not written with the same quality level ;)
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on December 01, 2009, 02:10:21 PM
Quote from: russ skinner on December 01, 2009, 09:43:42 AM
Quote from: Nao/Gilles on December 01, 2009, 05:15:20 AM
@russ> I'll need FTP access and an admin account to your forum to look into it.

@vyache> Same, + phpmyadmin.

PM sent.
Okay, here it is...
When going through single form upload, it works. Using mass upload, it fails.
I used Wireshark (overkill!) to get the error message.
Turns out the server sends back this error code to the upload Flash file (which in turns sends me back a less detailed error report):

<TITLE>406 Not Acceptable</TITLE>
Not Acceptable
An appropriate representation of the requested resource /forum/index.php could not be found on this server.
Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.

To me, this sounds very much like mod_security crap... But it *does* seem to be disabled. More precisely, the ;id= filter is off. It doesn't mean mod_security is not present or not enabled -- it just means SMG can achieve normal behavior without issues. But it's very possible that mod_security is enabled and has some specific filter that I'm not aware of. :(

Any ideas?

PS: I've used the opportunity to look into the YUI documentation and found a way to retrieve errors from the Flash uploader. I'm so excited about this that I'll probably put the feature into the next SMG 2.0.x, even though it's feature-frozen.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: russ skinner on December 01, 2009, 04:40:44 PM
Quote from: Nao/Gilles on December 01, 2009, 02:10:21 PM

To me, this sounds very much like mod_security crap... But it *does* seem to be disabled. More precisely, the ;id= filter is off. It doesn't mean mod_security is not present or not enabled -- it just means SMG can achieve normal behavior without issues. But it's very possible that mod_security is enabled and has some specific filter that I'm not aware of. :(

Any ideas?


Sorry no ideas, but many thanks for checking this out.

As the specific filter cannot be identified , can this problem be resolved be disabling mod security with a .htaccess file.



Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: perplexed on December 01, 2009, 04:57:00 PM
Quote from: Nao/Gilles on December 01, 2009, 09:57:11 AM
Quote from: quiteperplexed on December 01, 2009, 05:55:35 AM
I went to the Foxy site to look at that plugin and that looks very good btw, but the thread is locked and the link to buy takes you to a page that says:
Sorry, I should have specified that the link requires you to be logged into the website.
The topic is locked because it's not a support topic.

QuoteSince they are not available for download on the Mod page does that mean they are not approved by SMF or just because you have to pay for them?
SMF mod site = free mods
It doesn't mean that something not hosted on SM.org is not written with the same quality level ;)

ah excellent.  I'll try to do that tomorrow
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on December 01, 2009, 05:18:03 PM
Quote from: russ skinner on December 01, 2009, 04:40:44 PM
Sorry no ideas, but many thanks for checking this out.

As the specific filter cannot be identified , can this problem be resolved be disabling mod security with a .htaccess file.
Very oddly -- yes.
I tried it earlier and couldn't get it to work.
Then I went back from dinner and decided I would try to put it in your forum's root instead of your Themes/default/mgallery folder. And guess what, it worked!
Apparently, it needs to be in the same folder as your INDEX.PHP files, rather than the upload Flash file (which is in mgallery). I never thought of that.
I used to have that mention in the readme file saying to add the dreaded two lines in the root's htaccess, then I decided to drop it and instead provide a readymade htaccess for mgallery, thinking it would work. It didn't.

Anyway...
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Vyache on December 01, 2009, 09:16:10 PM
Quote from: Nao/Gilles on December 01, 2009, 05:18:03 PM
Quote from: russ skinner on December 01, 2009, 04:40:44 PM
Sorry no ideas, but many thanks for checking this out.

As the specific filter cannot be identified , can this problem be resolved be disabling mod security with a .htaccess file.
Very oddly -- yes.
I tried it earlier and couldn't get it to work.
Then I went back from dinner and decided I would try to put it in your forum's root instead of your Themes/default/mgallery folder. And guess what, it worked!
Apparently, it needs to be in the same folder as your INDEX.PHP files, rather than the upload Flash file (which is in mgallery). I never thought of that.
I used to have that mention in the readme file saying to add the dreaded two lines in the root's htaccess, then I decided to drop it and instead provide a readymade htaccess for mgallery, thinking it would work. It didn't.

Anyway...

Hmm,

This doesn't seem to work in my case. I moved the file from mgallery dir and placed it in the root dir of my network...

What could it be then.

Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Vyache on December 02, 2009, 12:00:29 AM
Finally solved, the problem was with mgal_data/tmp, it needs to be set to 777 to work. For some perverted reason it wasn't...
Thank You for the help.
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: DirtRider on December 02, 2009, 12:42:08 AM
Quote from: Vyache on December 02, 2009, 12:00:29 AM
Finally solved, the problem was with mgal_data/tmp, it needs to be set to 777 to work. For some perverted reason it wasn't...
Thank You for the help.

My one is set to 755 and it seems to work but I did have issue that seemed to just go away. Should I change my permission to 777 just in case?
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Vyache on December 02, 2009, 02:41:21 AM
Quote from: DirtRider on December 02, 2009, 12:42:08 AM
Quote from: Vyache on December 02, 2009, 12:00:29 AM
Finally solved, the problem was with mgal_data/tmp, it needs to be set to 777 to work. For some perverted reason it wasn't...
Thank You for the help.

My one is set to 755 and it seems to work but I did have issue that seemed to just go away. Should I change my permission to 777 just in case?

Well if I understand currently, tmp holds something for a short time and then copies it to the database. Maybe if it doesn't have full access it might not work.

However, I think you should wait till Nao see this... It might of solved my problem, I don't want to create one for you...
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: DirtRider on December 02, 2009, 03:05:36 AM
Well I change it to see what happens and it still works but I may be mistaken it seems to now upload without stopping for a short time during the upload.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: SMGTeam on December 02, 2009, 05:14:43 AM
DirtRider, if it ain't broken, don't fix it. :) 0755 for folders and 0644 for files is just fine.

SMG 2.0.5 is out!

Version 2.0.5                                    December 2, 2009
-----------------------------------------------------------------
! Fixed list of allowed document extensions to remove any extension from other
  allowed filetypes (previously, this would break images from showing a preview.)
+ Added error handler for the Flash uploader tool. Previously, errors were
  only caught after the tool had handed control back to Javascript.
! Fixed placement of the first item in the mass upload file list
! Fixed broken album creation page layout in SMF2
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: DirtRider on December 02, 2009, 05:22:18 AM
Quote from: SMGTeam on December 02, 2009, 05:14:43 AM
DirtRider, if it ain't broken, don't fix it. :) 0755 for folders and 0644 for files is just fine.


;D ;D ;D
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Nao 尚 on December 02, 2009, 05:30:56 AM
Quote from: Vyache on December 02, 2009, 12:00:29 AM
Finally solved, the problem was with mgal_data/tmp, it needs to be set to 777 to work. For some perverted reason it wasn't...
Thank You for the help.
Thank you for fixing it before I did ;)
I was going to devote myself to your issue today, since I was finished with russ's.
Although it would have taken me some time, I was going to look into the database stuff and trace the process... I always look into the easy stuff *last*, silly me ;)

Hopefully v2.0.5 will help a lot with mass upload. I would recommend anyone to upgrade to it, even if you don't have mod_security. (If only because now the mass upload file list is correctly aligned :P) You don't need to uninstall & reinstall, just extract the updated files to your folders. (MGallery-Admin.php, uploader.js and MGallery.template.php... I think that's all.)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: perplexed on December 02, 2009, 07:55:39 AM
I'm just testing this out today and I don't see an option for adding a watermark.  It is there and I just can't find it?

oh and also is there a link on your posts or just via your profile?

And can it be linked to the Shop mod to give points for posting in the gallery?

thanks :)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: seeker365 on December 02, 2009, 09:04:01 AM
Feature request:
1. add 'category' above 'album' level;
2. custom fields can be added to 'category'.

is it possible and easy? 
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: russ skinner on December 02, 2009, 09:15:56 AM
Quote from: Nao/Gilles on December 01, 2009, 05:18:03 PM
Very oddly -- yes.
I tried it earlier and couldn't get it to work.
Then I went back from dinner and decided I would try to put it in your forum's root instead of your Themes/default/mgallery folder. And guess what, it worked!
Apparently, it needs to be in the same folder as your INDEX.PHP files, rather than the upload Flash file (which is in mgallery). I never thought of that.
I used to have that mention in the readme file saying to add the dreaded two lines in the root's htaccess, then I decided to drop it and instead provide a readymade htaccess for mgallery, thinking it would work. It didn't.

Anyway...

Once again many thanks for working this one through. I imagine that server issues, such as this, are extremely frustrating to code authors. Will update to 2.05 later today.

Russ
Title: Re: SMF Media Gallery (SMG) - 2.0.4 is out! (November 24)
Post by: Vyache on December 02, 2009, 11:44:08 AM
Quote from: Nao/Gilles on December 02, 2009, 05:30:56 AM
Quote from: Vyache on December 02, 2009, 12:00:29 AM
Finally solved, the problem was with mgal_data/tmp, it needs to be set to 777 to work. For some perverted reason it wasn't...
Thank You for the help.
Thank you for fixing it before I did ;)
I was going to devote myself to your issue today, since I was finished with russ's.
Although it would have taken me some time, I was going to look into the database stuff and trace the process... I always look into the easy stuff *last*, silly me ;)

Hopefully v2.0.5 will help a lot with mass upload. I would recommend anyone to upgrade to it, even if you don't have mod_security. (If only because now the mass upload file list is correctly aligned :P) You don't need to uninstall & reinstall, just extract the updated files to your folders. (MGallery-Admin.php, uploader.js and MGallery.template.php... I think that's all.)

Thanks for the update!
Just wondering, after I add those files is it okay that the version is still saying 2.0.5 ?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 02, 2009, 03:45:42 PM
@vyache> Well, since the latest version is 2.0.5, I don't see what the problem is..? If you're talking about the fact that it still says 2.0.4 if you didn't uninstall/reinstall, that's normal. Although Aeva Media should use a different system, based on the files themselves rather than database queries.

Quote from: quiteperplexed on December 02, 2009, 07:55:39 AM
I'm just testing this out today and I don't see an option for adding a watermark.  It is there and I just can't find it?
No, it's not. It's in my to-do-list for the Foxy! add-on though. But I want to get Aeva Media out before I start work on it.

Quoteoh and also is there a link on your posts or just via your profile?
I don't see the point in seeing links in user boxes (in posts). It's a waste of space. You can always add a link manually, of course. (Usual profile link + ";area=mgallery", easy as pie.)

QuoteAnd can it be linked to the Shop mod to give points for posting in the gallery?
It's usually not in my policy to provide support for other mods.

Quote from: seeker365 on December 02, 2009, 09:04:01 AM
Feature request:
1. add 'category' above 'album' level;
Create an album and make sure no one can post in it. Create sub-albums and make sure everyone can post in it. (You'll have to manipulate several permission profiles for that, though. But I don't see the point of adding actual 'categories', since the categories in SMG are the authors. I'll think about it in the future.)

Quote2. custom fields can be added to 'category'.
If you use empty albums, yes you can do that too. If I were to write a proper 'category' system, no that wouldn't be possible.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Bass_Chaz on December 02, 2009, 07:45:16 PM
SMF Version: SMF 1.1.11

PHP Version: 4.3.11

Installed on: November 29, 2009

Installed version: 2.0.4

Latest version: 2.0.5

However, when I try to uninstall 2.0.4 to update......

QuoteExecute Modification     ./Sources/Load.php     Test failed

Mods Installed:
   
AjaxChat Integration    3.2.1    
User Email System    1.3    
[user] BBC Tag    1.0.1    
TinyPortal    1.083    
Strike Out Locked Topics    1.0
Search Topic    1.01
ROT13 BBcode    1.0    
Reg Bar    1.0.2    
Center the Navagation Bar    1.0    
Copyright & Footer Links | S-Ace    3.0    
Logout pop up    0.1    
Aeva ~ Auto-Embed Video & Audio    7.0.5
last login in post    1.0
Go up post button    1.0
SMF 1.0.19 / 1.1.11 Update    1.0
Downloads System    1.0.4    
Display Name On Registration    1.8    
DisableTemplateEval    1.
Disable Subject Change    1.4.1    
New Topic Button    1.0    
BK-SMF Sub-Board    1.5
Welcome Topic Mod    1.1    
AvatarSelect    1.2.1    
Admin member list registration date    1.0    
Users Online Today Mod    1.4.0    
User Control Panel By Alan S    2.0
Twitter Field    1.1
SMF Links    2.1
Referrals Mod    2.0.1
Previous and Next Links for Page Index    1.0    
Previous and Next Topic Enhancement    1.0    
Post_and_Change_as_Alternate_User    1.0
PM Popup - Uses Active Window    1.3    
Off-Topic_BBC_Tag    1.1.1.2
NiceTooltips    1.4    
Most Popular Topic Today    2.0
Limit A Guests Daily PageViews Mod    1.0    
Karma Buttons    1.0    
Invite    1.14
Hide SMF Version    1.0.4    
Header Rotator    1.1.0    
FavIcon    1.1    
Group on Registration    1.1.1    
EmailValidator    1.0
EmailFlash    2.0 <- No longer removable via Package installer
Edit_Display_Name_Permission    1.0
Date_Registerd on post    1.0
Contact Page    2.0    
Colored_Calendar_Frame    1.1.1    
Color And BgColor BBCode Bar    3.3.1    
Clickable Avatars    1.0.1    
Change Report Text To Image    1.0    
AvatarOnBoard    2.0    
Attachment Icon File    1.0    
Advanced Login Form    1.2    
Ranks based on Time Online instead of Post Count    1.01< No longer uninstallable thru Package installer
Signature Area BBCode Buttons    1.5    
Resize Attached Images    1.2
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 03, 2009, 02:47:42 AM
You have way too many mods...
Three ways:
1/ Just overwrite your Sources and Themes folders with the contents of your package (not its root!)
2/ Uninstall as usual, and edit Load.php to remove the remains of SMG code. Install automatically, and edit Load.php to install the Load.php section of SMG. (Be careful.)
3/ Uninstall as usual, and reinstall as usual. Because the latest versions don't change the Load.php edits, the error messages are kinda bogus.

However, when the next major version of SMG is out (Aeva Media), you'll have to reinstall everything carefully. (As well as uninstall SMG and Aeva beforehand.)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Bass_Chaz on December 03, 2009, 12:47:11 PM
Way to many mods?

Not as many asa I have had in the past on previous versions and they work together. (most of the time)

Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 03, 2009, 02:48:21 PM
For small mods, yeah it's not a problem. For bigger mods like Aeva, SMG, any Portal, PrettyURLs, Ultimate Profile, etc, after a while they all start to get in each other's way ;)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: perplexed on December 03, 2009, 07:03:00 PM
thanks for your replies Nao/Gilles ^^

I have another question - where are the permissions that affect download and mass download?  I can't seem to find any and I don't want members to download some files.

Thanks
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 04, 2009, 03:10:31 AM
Admin > Membergroup Permissions (not in the SMG areas.)
That's for mass download.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Neo_TE on December 04, 2009, 07:46:15 AM
Whenever a member browse to mgallery link (http://www.---.com/forums/index.php?action=mgallery), 2 ERRORS get registered in the error log..

8: Undefined variable: last
File: /home/---/public_html/forums/Themes/default/MGallery.template.php (main_above sub template - eval?)
Line: 3973

8: Undefined variable: first
File: /home/---/public_html/forums/Themes/default/MGallery.template.php (main_above sub template - eval?)
Line: 3970

I tried updating to the latest version of SMG but still no use..
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 04, 2009, 08:00:46 AM
There's no line 3973 in SMG... The biggest file 'only' has 3881 lines. Your error is triggered by a file/template that SMF can't track down. So it's giving the name of the last template it processed.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Neo_TE on December 04, 2009, 08:14:54 AM
Quote from: Nao/Gilles on December 04, 2009, 08:00:46 AM
There's no line 3973 in SMG... The biggest file 'only' has 3881 lines. Your error is triggered by a file/template that SMF can't track down. So it's giving the name of the last template it processed.

So what to do now ?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Arantor on December 04, 2009, 08:17:03 AM
Neo_TE: What version of SMF? There's a way to 'uncloak' where the error is.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Neo_TE on December 04, 2009, 08:31:11 AM
smf 1.1.11 with dilbermc theme and using the following packages.

1.     Ad Managment     2.3.1     [ Uninstall ]
2.    Aeva ~ Auto-Embed Video & Audio    7.0    [ Uninstall ]
3.    BBC Permission Mod    1.0    [ Uninstall ]
4.    Dilber MC    1.1    [ Uninstall ]
5.    Global Headers Footers    1.4.1    [ Uninstall ]
6.    Hide SMF Version    1.0.4    [ Uninstall ]
7.    Karma Buttons    1.1    [ Uninstall ]
8.    Member Color Link    3.0.7    [ Uninstall ]
9.    Admin Notepad    1.0    [ Uninstall ]
10.    PagesToGo    1.3    [ Uninstall ]
11.    Profile Comments    2.0    [ Uninstall ]
12.    SmileyLimit    1.1    [ Uninstall ]
13.    User Email System    1.3    [ Uninstall ]
14.    SMF Trader System    1.3    [ Uninstall ]
15.    Favicon    1.2    [ Uninstall ]
16.    nCode Image Resizer    1.2    [ Uninstall ]
17.    Visual Verification Options    0.5.3    [ Uninstall ]
18.    Prettier_Quotes    1.12    [ Uninstall ]
19.    Quote Always WYSIWYG    1.01    [ Uninstall ]
20.    Go up post button    1.0    [ Uninstall ]
21.    reCAPTCHA for SMF    0.9.6    [ Uninstall ]
22.    Simple Award System    2.1    [ Uninstall ]
23.    InfoBan - Expire Time    1.0    [ Uninstall ]
24.    Hack's Park Shoutbox    2.0.2    [ Uninstall ]
25.    SMF 1.0.19 / 1.1.11 Update    1.0    [ Uninstall ]
26.    Image Quote Removal Package    1.1    [ Uninstall ]
27.    Reason For Editing Mod    2.0    [ Uninstall ]
28.    SMF Media Gallery    2.0.5    [ Uninstall ]
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Arantor on December 04, 2009, 08:34:52 AM
If you install Disable Template Eval (http://custom.simplemachines.org/mods/index.php?mod=2054), and tick the box it adds to the admin panel (you'll see it shown in screenshots) you will be able to uncloak where the error actually is, rather than receive the slightly unhelpful error you do now. You will have to make the error happen again though; it won't alter existing errors.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Neo_TE on December 04, 2009, 08:59:26 AM
did what you told. now its showing error in the index.template in the custom theme.

8: Undefined variable: last
File: /home/---/public_html/forums/Themes/dilbermc/index.template.php
Line: 3973

8: Undefined variable: first
File: /home/---/public_html/forums/Themes/dilbermc/index.template.php
Line: 3970


and I FIXED IT myself. O:)

thanks for the support. :D
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Arantor on December 04, 2009, 09:00:15 AM
Heh, as ever, knowing what the problem actually is is often more of a battle than fixing it turns out to be :)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Neo_TE on December 04, 2009, 09:03:50 AM
^^ lol

OT: how you arranged your signature in 2 columns. please let me know how to do that.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Arantor on December 04, 2009, 09:05:19 AM
[offtopic] It's a bbcode table, nothing more, previewed in a post first before I moved it into my sig. [/offtopic]
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: perplexed on December 04, 2009, 10:11:30 AM
Quote from: Nao/Gilles on December 04, 2009, 03:10:31 AM
Admin > Membergroup Permissions (not in the SMG areas.)
That's for mass download.

Ok thanks - but what about stopping downloads on individual files?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 04, 2009, 11:06:55 AM
You want to stop people from being able to right-click a picture and click 'Save To Disk'?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: perplexed on December 04, 2009, 11:27:45 AM
no I want to stop downloading music files from my server - is that possible?

Also I had a look at the SMF permissions for SMG and there are only these, nothing for mass download:

Access Gallery             
   Moderate Gallery          
   Administrate Gallery          
   Access unseen area          
   Search in Gallery          
   Add User Playlists          
   Add User Albums          
   Auto-approve User Albums          
   View anyone's Gallery profile

btw what is "unseen area" that sounds interesting :)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 04, 2009, 12:58:19 PM
Quote from: quiteperplexed on December 04, 2009, 11:27:45 AM
no I want to stop downloading music files from my server - is that possible?
No. They can still retrieve the files from their browser cache. Like for most websites.

QuoteAlso I had a look at the SMF permissions for SMG and there are only these, nothing for mass download:
You're looking at general permissions. You need to look into per-album permissions for the Download option. It's in the SMG area.

Quotebtw what is "unseen area" that sounds interesting :)
It's basically SMF's Unread Posts feature, only--for SMG items.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: perplexed on December 04, 2009, 01:03:11 PM
QuoteYou're looking at general permissions. You need to look into per-album permissions for the Download option. It's in the SMG area.
Quote from: quiteperplexed on December 04, 2009, 10:11:30 AM
Quote from: Nao/Gilles on December 04, 2009, 03:10:31 AM
Admin > Membergroup Permissions (not in the SMG areas.)
That's for mass download.
Ok thanks - but what about stopping downloads on individual files?


I thought you said to look in smf general permissions sorry.

edit:

QuoteYou're looking at general permissions. You need to look into per-album permissions for the Download option. It's in the SMG area.

ok I went to admin > gallery> albums and I can't see anything about downloads.  Am I looking in the right place?

2nd edit:  never mind. I found it :)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Xarcell on December 05, 2009, 09:45:42 AM
I have a couple of suggestions for this fine mod.

Add lightbox, which will also effect all images on the smf powered site.

When looking at an album photo that has the 3 preview images at the top. Is it possible to add a little bit of ajax there, so that when you click the << or >> links it will scroll through the images without reloading page or changing the originally previewed image?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: LHW on December 05, 2009, 10:19:09 AM
Quote from: Xarcell on December 05, 2009, 09:45:42 AM
When looking at an album photo that has the 3 preview images at the top. Is it possible to add a little bit of ajax there, so that when you click the << or >> links it will scroll through the images without reloading page or changing the originally previewed image?

That's actually a good idea, Nao.  You should make it #1425614317 on your To-Do list for AMG. ;D 8)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 05, 2009, 10:37:30 AM
Xarcell, uh... What about going back to the album page to see more items? Is that outfashioned or something?
Also, lightbox? There's already a lightbox (Highslide) in SMG... I don't get your point.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: renzariche on December 05, 2009, 04:42:30 PM
Hello, I'm using this modification package for my personal homepage for friends and family and really find it very useful.

I've been wondering, is there a way to have the "User Albums" displayed in the Gallery's main page, instead of just the General Albums? I know there is a link to User Albums but I feel that many of the viewers will not know what to do.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 05, 2009, 06:04:17 PM
The homepage is just a summary of some of the features.
If you want to lead people directly to the user albums page, you can change the Gallery link to point to that page.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Tiribulus on December 05, 2009, 11:39:26 PM
Another painless upgrade,
Thanks
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: MarcusJ on December 06, 2009, 05:34:03 PM
I just want to say that I love this mod.  If there was a 'best of' award for SMF, this would get my vote.  Free, and very powerful.  Thanks to the developers.

I see someone mentioned they would like a 'watermark' functionality.  I would also like to see this.  Looking forward to it!
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Tiribulus on December 06, 2009, 06:01:49 PM
If I had to make one very very tentative and absolutely jist thinkin out loud type suggestion, it would be an item management system. By that I mean an outfit where you could change display order and do multiple deletes for instance on a check box/drop menu page. NAO ol buddy (and Dragoon), this is in no way an expression of dissatisfaction. This mod is a work of art and one of my all time favs to be sure. IF you were ever to wonder what could be done to make it even better, in my view that would be one thing.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: rknrolla on December 07, 2009, 12:15:49 PM
Great mod, thank you very much.

Is there any way to have a block on the main forum page with random pics from the album? (like under the nav bar or above the footer)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Adish - (F.L.A.M.E.R) on December 09, 2009, 07:25:42 PM
SMFMediaGallery-2.0.5

Shows up:
Fatal error: Call to a member function analyze() on a non-object in /home/_____/public_html/Sources/Subs-MGallery-Vital.php on line 1045

Upgraded from beta 4 today. No errors in error log. Nothing that I can think of.

Shows up when registered member tries to upload video in his album. Server upload file size set to 250MB. Works fine in public albums.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 10, 2009, 02:24:07 AM
Make sure the MGallery-getid3 folder is correctly copied into your Sources folder. Especially the file getid3.php!

@rknrolla> There are blocks available on the smf-media.com hacks board.

@tiribulus> This has been in my to do list for some time now... I'll probably get to it one day.

@marcusj> This has been in my to do list for some time now... I'll probably get to it one day. (Uh, for the Foxy addon though.)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: russ skinner on December 10, 2009, 04:44:17 AM
I'm finding that the default checking under Albums - Details - Privacy - Membergroups of the two groups 'Guests' & 'Regular Members' does not allow non admins to view photos in that gallery - all other members see the brown window.

Whilst this may be unique to the forum I administer, I belive it may also have something to do with the required (unable to delete!) SMF post based membergroup, 'Forum Member' in my case, not being checked - see attached screen shot.

Is there a simple fix that I can make to the underlying code to check all be default.

Thanks.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Gargoyle on December 10, 2009, 06:09:30 AM
Version 2.0.5

When using BB Code to post multiple images in a thread ie: [smg id=1,2,3 type=album] results in no image found or possibly one picture if I remove the "type" array.. But not multiple images as indicated.

Thanks for any guidance. ;D
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 10, 2009, 06:23:04 AM
@russ> It is, in Aeva Media. You will see :) (Plus, the description explains better, and there are visual clues.)

@gargoyle> Uh, are there any pics that fit your IDs...?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Gargoyle on December 10, 2009, 06:35:18 AM
@ nao> Yeah... I tried it a few times. I can get the fist pic to show if I remove album from the bbc tag but no other images will show.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Adish - (F.L.A.M.E.R) on December 10, 2009, 08:14:25 AM
Quote from: Nao/Gilles on December 10, 2009, 02:24:07 AM
Make sure the MGallery-getid3 folder is correctly copied into your Sources folder. Especially the file getid3.php!

Yep, all perfectly there. Still the problem stays. Want me to overwrite it and check? (It was a upgrade by uninstalling old version and uploading new one)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: yomchi86 on December 10, 2009, 11:16:44 AM
Firstly thanks for a wicked mod!
Secondly, Apologies if im been really stupid but i've installed the mod, all worked fine. I have full access to the Admin section etc however I cannot seem to see the "Gallery" under the main forum screen. Am I completely dumb??
Thanks
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Kindred on December 10, 2009, 02:57:22 PM
smf version? mod version? Are you running SMF 1.1.x and something other than the default theme or some language other than English (English UTF-8 is not the same as English)

if so...   then you will have to manually install the mod into your theme or language files
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: yomchi86 on December 10, 2009, 03:06:11 PM
Quote from: Kindred on December 10, 2009, 02:57:22 PM
smf version? mod version? Are you running SMF 1.1.x and something other than the default theme or some language other than English (English UTF-8 is not the same as English)

if so...   then you will have to manually install the mod into your theme or language files

Apologies, Embarrassed now as I work in IT and give users a hard time if they dont give me info!!

SMF version - 1.1.11
Theme = Back-n-Black 1.1.5
mod - SMF Media Gallery 2.0.5
Language is english

Many thanks in advance
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Arantor on December 11, 2009, 02:30:51 AM
You will have to modify the theme's index.template.php file to add the link to the gallery in.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: DirtRider on December 11, 2009, 02:40:12 AM
I have just noticed this up until now so I am not sure if it has been reported up until now. When using "Add an item to this album" with RC2 your last row of smilies over writes "Toggle View and Remove Formatting"
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 11, 2009, 03:23:22 AM
http://dev.simplemachines.org/mantis/view.php?id=3999
I'm not sure the fix for my bug report made it in RC2. It was released earlier than that, wasn't it?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Arantor on December 11, 2009, 03:25:07 AM
It was indeed prior to that; RC2 Public shipped on Nov 9th, reported on Nov 17th and fixed on Nov 22nd.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: DirtRider on December 11, 2009, 03:28:37 AM
So we will then be looking at the fix in the next release, it's not a huge deal I must admit.  ;D
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Arantor on December 11, 2009, 03:30:21 AM
There are two fixes, the easy and the hard.

Easy: Make your browser window bigger ;D
Hard: Upgrade to RC3 when it's out.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: DirtRider on December 11, 2009, 03:31:37 AM
I will wait for the hard one thanks  ;D
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Arantor on December 11, 2009, 03:35:08 AM
Popular mod, too... PWN'd the recent posts list as attached!
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 11, 2009, 04:43:13 AM
Yeah, what's new? :P

Well... Ever since Dragooon left the team, the mod inherited my rhythm of release... He wanted to conceal updates as much as possible (building buzz?) and have them tested by beta testers a lot. I've known ever since the early Aeva releases that beta testers can help a lot for big errors, but you can't expect them to find everything. (I didn't meet each and every bug in SMF of course.)

Many more releases => many more posts. Nothing surprising.
And I betcha when Aeva and SMG are merged together, it'll be even more hectic. Hence the interest of having the posts pre-moderated, and a well-written FAQ posted somewhere. (I'm still in the process of gathering every possible question that's been asked a lot. I'm not doing a very job at that but I keep trying.)

And sorry for the PM Arantor -- my priority is on Aeva Media and as you know, it's a complicated matter we're discussing, I can't write a 10-page reply in two minutes, unlike you ;) (and I thought I was a keyboard champ, lol!)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: yomchi86 on December 11, 2009, 04:53:34 AM
Quote from: Arantor on December 11, 2009, 02:30:51 AM
You will have to modify the theme's index.template.php file to add the link to the gallery in.

Thank you for the update :) Im gonna be a complete n00b and ask if there are any instructions anywhere to do this
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Arantor on December 11, 2009, 05:08:43 AM
Nao: No hurry on the PM front - just as and when you get time.

Aeva Media will be pretty awesome when it's done; though weirdly (and slightly ashamedly, it has to be said) I probably won't use either...

We are also planning on having a FAQ section for each mod on the mod site, too, but that's going to be a while away yet. But I can see the whole benefit of post moderation - I'll raise it in the discussion on it.


yomchi86: Without seeing the theme's code itself I don't think we can help much.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Angelotus on December 11, 2009, 06:23:15 AM
Hi,

I want the albumlist as an menu in the sidebar. I currently use this code as a function in index.template.php, but it only shows the albums when I am at the Gallery mainpage. But I want it to appear all around the forum. Can you help me with this please?


}
function template_menu_right()
{
   global $context, $mgalSettings, $txt, $galurl, $scripturl, $settings, $sourcedir;

   require_once($sourcedir . '/Subs-MGallery.php');
   require_once($sourcedir . '/MGallery-Sub.php');
   loadMGal_Settings();

   $has_albums = count($context['mgallery_home_albums']) > 0;
   $foxy = file_exists($sourcedir . '/MGallery-Foxy.php');

   echo '<div style="margin-top: 10px; margin-left: 10px; padding: 0px;">
  <b class="contentslidetop">
  <b class="contentslidetop1"><b></b></b>
  <b class="contentslidetop2"><b></b></b>
  <b class="contentslidetop3"></b>
  <b class="contentslidetop4"></b>
  <b class="contentslidetop5"></b></b>

<div class="contentslidetopfg">
   <div class="menuleftbar">';

if ($has_albums)
      {


    echo '<ul>
<li><!--<img src="http://www.mypicas.com/images/catbar.jpg" border="0"/>--><h1>Categories:</h1></li>
         <hr />';

   foreach ($context['mgallery_home_albums'] as $album)
      {
echo '<li>
<a class="normal" href="', $galurl, 'sa=album;id=', $album['id'], '">', $album['icon']['src'], ' ', $album['name'], ' (', $album['overall_total'], ')</a> </li>';
      }
         
         
         
echo '<li><a class="useralb" href="http://www.mypicas.com/1/index.php?action=mgallery;sa=vua">Useralbums</a></li>
         <li><a class="weeklyfun" href="http://www.weeklyfun.nl/forum/index.php/board,32.0.html">Weeklyfun.nl Pics</a></li>
         
         <hr />
         <!--<img src="http://www.mypicas.com/images/cnewsbar.jpg" border="0"/>-->
         <li><h1>Crewnews:</h1></li>
         <hr />
         ', template_crewnews(1, 5, 0, 0), '

        </ul>';

   }


echo '
     <>
  <>

<b class="contentslidetop">
  <b class="contentslidetop5"></b>
  <b class="contentslidetop4"></b>
  <b class="contentslidetop3"></b>
  <b class="contentslidetop2"><b></b></b>
  <b class="contentslidetop1"><b></b></b></b>
<>

         
';
}

Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 11, 2009, 06:33:09 AM
Angelotus> The code should be in index.template.php if you want it on all pages.

Quote from: Arantor on December 11, 2009, 05:08:43 AM
Aeva Media will be pretty awesome when it's done; though weirdly (and slightly ashamedly, it has to be said) I probably won't use either...
Well, not everyone needs a gallery really...
I've always been into galleries. I wrote my first php gallery system back in 2003 I think. Never planned to work fulltime on a gallery that could be used by other sites, though. I'm not THAT much into galleries. Well, the whole idea of Aeva Media is to make people want to use galleries. :P

QuoteWe are also planning on having a FAQ section for each mod on the mod site, too, but that's going to be a while away yet. But I can see the whole benefit of post moderation - I'll raise it in the discussion on it.
Thanks.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Angelotus on December 11, 2009, 06:34:13 AM
@Nao I did that, but it only appears on the gal homepage
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Adish - (F.L.A.M.E.R) on December 11, 2009, 01:36:05 PM
Quote from: F.L.A.M.E.R on December 10, 2009, 08:14:25 AM
Quote from: Nao/Gilles on December 10, 2009, 02:24:07 AM
Make sure the MGallery-getid3 folder is correctly copied into your Sources folder. Especially the file getid3.php!


Yep, all perfectly there. Still the problem stays. Want me to overwrite it and check? (It was a upgrade by uninstalling old version and uploading new one)

Knock!
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: c-ron on December 11, 2009, 01:57:18 PM
Could support for displaying SWF files be added? It might be a security risk, so it'd need options to dis/allow based on membergroup or user. Thanks!
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 11, 2009, 03:08:10 PM
@flamer> yes.
@cron> it's already there... Just use Aeva 7.0 along with it, and set up SWF perms in Aeva.
Also, it's interesting to raise the issue of permissions for Aeva. Since I'll be adding them eventually (now that it's merged with SMG):

- the first thing that comes to mind is to have a permission to enable embedding for a user group.
- but then -- it should be the other way around: enable a user group to offer embedded videos to everyone else.
- in terms of security: the first solution doesn't do much. The second one allows you to make sure videos posted by guests won't be embedded for anyone (including them, of course.)
At that point, I don't exactly know whether it's best to have both permissions types or just the second one. As for implementing it, hmm... Not sure yet. Because it would be a first to actually retrieve a remote member's permissions before you show their stuff to the current visitor. Usually we'd use the current visitor's permissions -- which are conveniently stored in memory at that point, unlike the remote member's.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Adish - (F.L.A.M.E.R) on December 11, 2009, 06:15:19 PM
@Nao
A thing to note, I have set the max server upload limit to 250MB but the album within the user album shows this:

Maximum File Size Allowed: Image Files - 1024 KB, Video Files - 1024 KB, Audio Files - 1024 KB, Documents - 1024 KB


--------------------

If it is a public album, it also shows this:
Maximum File Size Allowed: Image Files - 1024 KB, Video Files - 1024 KB, Audio Files - 1024 KB, Documents - 1024 KB


BUT, it does allow big files in public folder and both the private albums.

- My problem is resolved by replacing the files with fresh once, i think the upgrade didn't work as expected.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 11, 2009, 06:26:33 PM
When you say big files, you mean files bigger than 1024KB, right? And these files are pictures? If yes, that's normal -- the quota for pictures is different compared to the other media types -- if picture is bigger than allowed quota, SMG tries to recompress it to a better ratio. Same if it's wider or taller than the max allowed size. It'll be resized. If the resized/recompressed pic fits the current quota settings, it is saved. This was made to avoid storing JPG files that are not correctly optimized.

Are you sure the quotas don't work for you, btw?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Adish - (F.L.A.M.E.R) on December 11, 2009, 06:47:21 PM
I am able to upload 31MB video file on the gallery with the basic setting of 250MB as file max upload as a regular member. In the quota settings for a regular member are: Maximum File Size Allowed: Image Files - 1024 KB, Video Files - 1024 KB, Audio Files - 1024 KB, Documents - 1024 KB

Another thing, How may I have the albums NOT to be shared with anyone else except the person who uploads at the first place?

Like I don't want "Guests" and "Regular Members" to have the ticks by default when you create an album. (This option is under

Privacy

Membergroups
The following membergroups will be allowed to view the album and its contents. If the "Regular members" group is checked, all board members will be able to view it, so you don't need to check other groups (except for Guests).
)

Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: shumilica on December 11, 2009, 09:36:33 PM
Nao, this is another great mod you are working on and it ROCKS! one question tough:

If I want a non-administrator to administrate the SMG, how can I do that? From what I see... I can't. If i give permission to administrate SMF from membergroups permision, he can see the button, but when clicked it says that he isn't allowed in there (it's normal, because the link goes to action=admin;area=mgallery, and he's not an administrator so bang). But I think this is a flow, why should I have to give a member the rights to administrate all the basic functionality of the forum before he can access the admin area of SMG? :o why don't you make the admin area a separate one, wich  is set trough smg admin area, not in permissions from admin (or to work only if it is both check - allow smg admin ), and in the admin - configuration, just a link to the SMG admin area?
Hope you understand what is my question :)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 12, 2009, 06:34:22 AM
Flamer, I'll have a serious look. I remember testing when Dragooon and I wrote the feature. It worked. Maybe I broke it inadvertently recently by changing something in the same area.

shumilica, can they at least use the Moderation panel? (It's not in the admin area...)
Also, on my site, users don't have the right to administrate anything, but they certainly do have access to their board control panel which is in the Admin area (unrelated to SMG, but it still works). Also, I don't remember anything telling me about this before?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: shumilica on December 12, 2009, 09:52:45 AM
Yes, they have the permission to access moderation area but still they can't go to the SMG Admin.
So you are saying that it works for you? The users can access the SMG Admin area without being able to see the Administration panel? Or it's working only to those who have acces to administration the boards of the forum? Because even if I give my users the access to administrate boards, they can't enter SMG Admin. The only permission that will give them access to SMG Admin, is the permission 'Administrate forum and database'. Any other admin-related permission will not work.

You are asking why nobody asked this before? Maybe because they wanted to be the only ones to make the public albums.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: dkharp on December 12, 2009, 01:49:04 PM
Hello,

This is a great mod!  I was wondering if there is a way that guest can view but not play or see any pictures or links to embed?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: AndreT on December 12, 2009, 03:37:00 PM
Hello!

I don't know what's the problem but I recently upgraded to SMG 2.0.5 (from SMG 2.0.4) and when multiuploading, the thumbnails show me with a "Sorry, you are not allowed to view this file. Make sure you are connected to the server" message as in this picture:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.upffs.com%2FAndre%2FSMFGallery-bug-2.png&hash=c5a602bb9a2b7ff5d9a8ac670389f91ebcf7cebd)

And when I press "Submit" I get this XML parse error:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.upffs.com%2FAndre%2FSMFGallery-bug-1.png&hash=be931d2b3a8e47e36811551946e2136cdb3d0b1e)
Of course the message is in my native language:
QuoteXML-i parsimise viga: rämps peale dokumendi elementi (junk after document element)
Asukoht: http://forum.sf-sf.net/index.php?action=mgallery;sa=mass;album=4;xml;upcook=YTo0OntpOjA7czoxOiIxIjtpOjE7czo0MDoiN2NmMGIxYjNhMGI2YzVjMjEzOTE1N2FhZGY5Yzg4NjQ3N2NmZmVhZCI7aToyO2k6MTQ0OTgzMjg3ODtpOjM7aTowO30%3D
Rida number 12, veerg 2:   <div class="centertext"><a href="javascript:history.go(-1)">Back</a></div>
--------^

I'm really looking for assistance on this.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: dkharp on December 12, 2009, 03:58:01 PM
I had a issue like this go into your admin setting and make sure you have full permission.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: AndreT on December 12, 2009, 04:19:01 PM
Quote from: dkharp on December 12, 2009, 03:58:01 PM
I had a issue like this go into your admin setting and make sure you have full permission.
I'm the board administrator (owner admin group) which means I have all permissions. I can't change the gallery permissions for my usergroup. But can you be more specific about which permission(s) do you mean and how to access them using RC2?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 12, 2009, 05:11:32 PM
@dkharp> Be more specific. Change permission profiles in the SMG admin area.
@shumilica> I have seen other people give SMG administration rights to other membergroups, believe me. I've even used such accounts in the past.
Okay, I just tested on my test account, attributed it a special membergroup with admin rights -- and guess what, the admin button did lead me to the admin area and showed me the Aeva Media menu. So I guess it's really just on your site... :-/
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: shumilica on December 12, 2009, 07:00:56 PM
In your test did you atribute a special membgroup that has admin rights for SMG, not for the whole forum, yes? Is your test forum a SMF2 RC2?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 12, 2009, 07:40:21 PM
Quote from: shumilica on December 12, 2009, 07:00:56 PM
In your test did you atribute a special membgroup that has admin rights for SMG, not for the whole forum, yes? Is your test forum a SMF2 RC2?
Yes to your question.
SMF2 RC2, rev 9500 (noisen.com). The latest in svn is rev 9508 FYI. It's basically a pre-RC3.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: shumilica on December 12, 2009, 08:08:08 PM
Are you bragging? :))
I'll try on a fresh instalation of a forum, if it still doesn't work it means that it's not the software it's the user :O
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 12, 2009, 08:20:54 PM
Quote from: shumilica on December 12, 2009, 08:08:08 PM
Are you bragging? :))
You see my badge? I'm supposed to be up to date. If I don't have the latest version installed, I'm actually not doing my work correctly ;)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: shumilica on December 12, 2009, 08:50:46 PM
Ok, installed a test forum from scrath, installed SMG, created a membegroup with all the SMG permissions ON plus the permission to moderate the board and to administrate the news (so that he can see the admin area), it doesn't give an error, but it just goes to the admin area - main - administration center, and I can see only the first item from the admin menu (Main). Even if I give any other admin permission besides the 'Administrate forum and database' they can't acces the SMG Admin area (but they can manage boards, manage members, manage attachments and smileys etc.). This is the same behaviour as on my actual forum (or the other test forum). Actually i gave the membergroup every bit of permission besides 'Administrate forum and database' and it still doesn't work.

Are you sure you don't give the users who access the admin area this permission 'Administrate forum and database'?

Can you describe if your steps are different, when you tested on your test forum?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Gargoyle on December 13, 2009, 01:18:08 AM
Quick question I have...

How can I make it so new albums when created have all of the member group options checked by default?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 13, 2009, 03:09:48 AM
shumilica, send me by pm: an account with smf admin rights, and an account with smg admin rights. I will try to see what's wrong.

gargoyle, this is the default behavior in Aeva Media.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: MarcusJ on December 13, 2009, 04:25:37 PM
I just noticed that selecting 'Regular Members' for the allowed groups does not allow users placed in another group to view the gallery.

I used a number of various groups.  On all other SMF mods I use, selecting Regular member allows them to view an action. 

I hope this post makes sense.  Was this intentional?  If so is there a way around it?  I'd like 'Regular Member' selection to allow all user groups above that to see it as well.

Thank you for any help you can provide.

SMF 2.0 RC2 - SMG 2.0.5
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Gargoyle on December 13, 2009, 04:35:52 PM
Quote from: MarcusJ on December 13, 2009, 04:25:37 PM
I just noticed that selecting 'Regular Members' for the allowed groups does not allow users placed in another group to view the gallery.

I used a number of various groups.  On all other SMF mods I use, selecting Regular member allows them to view an action. 

I hope this post makes sense.  Was this intentional?  If so is there a way around it?  I'd like 'Regular Member' selection to allow all user groups above that to see it as well.

Thank you for any help you can provide.

SMF 2.0 RC2 - SMG 2.0.5

You worded the issue I am having better than I... ;D Nao could you please send me a PM with what all the foxy addon does. I have looked and I don't see anything that lists what all it does.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 13, 2009, 05:43:10 PM
Marcus, this isn't possible. Regular members = members with no primary group. If you set a primary group to an account, it will need its own set of permissions.
Aeva Media deals with this in that it shows you in bold all membergroups that should be checked in order for all members to have the permission. (In Album add/edit, not in permission profiles, which I have yet to add support for.)

Gargoyle, just click on "Foxy!" in my signature... It does have a complete feature list.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Adish - (F.L.A.M.E.R) on December 13, 2009, 06:13:16 PM
Any Heads on my issue ? :)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Gargoyle on December 13, 2009, 08:18:13 PM
Quote from: Nao/Gilles on December 13, 2009, 03:09:48 AM
gargoyle, this is the default behavior in Aeva Media.

Hmmm... Well I am using the gallery.. And only Guests and Regular users in the membergroup section are checked by default. I would like to know where to change it so they will all be checked by default. I found some arrays and a small list but editing them did nothing to the check boxes.. LOL!!
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Angelotus on December 14, 2009, 05:07:21 AM
@Nao, I did it myself and it works fine. In action see: http://www.mypicas.com (right sidebar). Anyway, great mod and thanks for sharing.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Arantor on December 14, 2009, 06:27:32 AM
Well, I don't know what you mean, and I don't see why the post should contain that, it's an insult, really.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Akyhne on December 14, 2009, 06:31:41 AM
From the SMF registration agreement:
QuoteYou agree, through your use of this forum, that you will not post any material which is false, defamatory, inaccurate, abusive, vulgar, hateful, harassing, obscene, profane, sexually oriented, threatening, invasive of a person's privacy,...
You agreed to that, so please stick to that.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Angelotus on December 14, 2009, 06:41:58 AM
My comment is not any of that. Let's stick to the topic now please.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Akyhne on December 14, 2009, 06:45:35 AM
Quote from: Angelotus on December 14, 2009, 06:41:58 AM
My comment is not any of that. Let's stick to the topic now please.
Edited your original post, since you are not answering the question.

Now let's move on..
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 14, 2009, 07:21:21 AM
Flamer> It's in my to do list. It's a very long list. It's one of the top priorities in it, but it still has to wait a bit. I'll probably release a beta before I look into this, I'm not sure yet. I'll try to do it before next week.

Quote from: Gargoyle on December 13, 2009, 08:18:13 PM
Hmmm... Well I am using the gallery.. And only Guests and Regular users in the membergroup section are checked by default. I would like to know where to change it so they will all be checked by default. I found some arrays and a small list but editing them did nothing to the check boxes.. LOL!!
You really can't wait for the beta...?
Reminder: Aeva Media = SMG + Aeva with tons of new features for SMG (and a much cooler admin area for Aeva, as well as auto-embedding permissions in future betas.)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 14, 2009, 11:12:23 AM
Quote from: shumilica on December 12, 2009, 08:50:46 PM
Are you sure you don't give the users who access the admin area this permission 'Administrate forum and database'?
Okay, I see why it's working on my forum and not yours --- because I'm using Aeva Media.
There's a bug in SMG which I fixed in Aeva Media, and I didn't backport the fix to SMG (I'm not sure whether I'll release a final update anyway.)
Open MGallery-Admin.php, look for:

'permissions' => array('mgallery_admin'),

Replace with:

'permissions' => array('mgallery_manage'),

Easy as pie. I remember wondering where the heck that mgallery_admin was coming from ;)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: shumilica on December 14, 2009, 12:35:32 PM
So it's not me! That is good news for me :)

Are you sure this is the only modification necessary? Because I've made it and it still has the same behavior..
Or do I have to change wherever I see "mgallery_admin" to "mgallery_manage"? :o
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: illusioner on December 14, 2009, 02:28:42 PM
Hello!  I am very excited to use this modification but ran into a slight error on install.  I had been using SMFGallery (the free one) and have removed it in favor of this one (SMFMediaGallery) since I wanted to have the option to allow members to upload other types of media rather than only pictures.

I'm not very good with some things so I apologize in advance for having missed something obvious (if that is what turns out to be the issue).

I downloaded the package (SMF Media Gallery 2.0.5) and tried to install it on my forums (SMF 2.0 RC2).

I got an error on this step:

5.     Execute Modification     ./Sources/Load.php     Test failed
In the lines under this step, I found only one 'fail'.
2.     Replace     ./Sources/Load.php     Test failed

This is what I found when I clicked the little notepad on the error line

Find
mem.last_login, mem.karma_good,
Replace
mem.last_login, mem.karma_good, mem.mgal_total_items, mem.mgal_total_comments,


Is there something I can do to fix this?  I'm assuming that the problem is with my personal boards and is not an issue with the modification overall.


Thank you for your time and any feedback.

Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Darkness_ on December 14, 2009, 03:33:52 PM
How can I replaise the upload bar with a url bar?
So instead of uploading to the server of the forum it has to be on an extern server?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Kindred on December 14, 2009, 04:18:10 PM
illusioner : looks like another mod has changed the line that you need to edit...    so you will need to manually apply that change.

Darkness: Can not be done...
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: SilverKnight on December 14, 2009, 04:27:43 PM
Im already 3 updates behind... ;/
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Darkness_ on December 14, 2009, 05:28:38 PM
Quote from: Kindred on December 14, 2009, 04:18:10 PM
illusioner : looks like another mod has changed the line that you need to edit...    so you will need to manually apply that change.

Darkness: Can not be done...
Why not ?
extern video url can be implemented but why not for images.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Kindred on December 14, 2009, 06:07:36 PM
from the way you wrote, you are not asking to access an external image... you are asking to be able to upload an image to an external server from within SMG.
THAT can not be done.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 14, 2009, 06:14:20 PM
@shumilica> 'm afraid this is all I can do for you... All you can do now is wait for the first public Aeva Media beta.

@darkness> Currently, mass upload doesn't support embedded urls, but single form upload obvious does.
If you want to include external *images* (and leave them off your server, except for a thumbnail and preview), you can do so with the Foxy! addon.

@SilverKnight> You might as well want to wait for Aeva Media, then ;)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Darkness_ on December 14, 2009, 06:20:38 PM
Quote from: Kindred on December 14, 2009, 06:07:36 PM
from the way you wrote, you are not asking to access an external image... you are asking to be able to upload an image to an external server from within SMG.
THAT can not be done.


Oke sorry my fault.
I mean it like the second post.
The image uploaded at imageshack or somewhere else
and the url used to link it to the gallery.
how can I do this ?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Gargoyle on December 14, 2009, 06:27:19 PM
Quote from: Nao/Gilles on December 14, 2009, 07:21:21 AM
Quote from: Gargoyle on December 13, 2009, 08:18:13 PM
Hmmm... Well I am using the gallery.. And only Guests and Regular users in the membergroup section are checked by default. I would like to know where to change it so they will all be checked by default. I found some arrays and a small list but editing them did nothing to the check boxes.. LOL!!
You really can't wait for the beta...?
Reminder: Aeva Media = SMG + Aeva with tons of new features for SMG (and a much cooler admin area for Aeva, as well as auto-embedding permissions in future betas.)

If your gonna make me wait I will LOL ... I really like both mods so I am not complaining ;D . Just wanted to change that part of it for the interim is all. ;D

Thanks!
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 14, 2009, 06:28:15 PM
@darkness> The Foxy! addon, as I said. You can purchase & install it right now if you want, and from now on you can link to remote pictures.

@gargoyle> I'll try to release it tomorrow. If not tomorrow, it should be out in 2 days at the latest.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Gargoyle on December 14, 2009, 06:33:11 PM
No need to rush for me. ;D Not like you would... lol

But I do like the idea of this new beta.. Is there anywhere that foxy can be tested? Like a site to register to so I can see how it works or anything?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: shumilica on December 14, 2009, 09:38:04 PM
Nao, ok I'll wait. If you want beta-testers-before-public-release you can count on me, i'll test the hell out of it :)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: kurtazz on December 14, 2009, 11:33:38 PM
Can an experienced user please tell me how to rename the "gallery" tab in the menu bar to something different?  Like to media or something more descriptive of the contents?

I have looked at the modifications.english.php file and was able to find a string that I thought was it but when I changed it to "media" the text disappered from the tab.  I changed it back and the Gallery text came back (whew).   

Any input would be greatly appreciated!!!!

Thanks,

Kurt
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: MarcusJ on December 15, 2009, 01:35:33 AM
Quote from: kurtazz on December 14, 2009, 11:33:38 PM
Can an experienced user please tell me how to rename the "gallery" tab in the menu bar to something different?  Like to media or something more descriptive of the contents?

I have looked at the modifications.english.php file and was able to find a string that I thought was it but when I changed it to "media" the text disappered from the tab.  I changed it back and the Gallery text came back (whew).   

Which version of SMF are you using?  If it is SMF 1.1 you'll need to edit the index.template.php of your theme.  If you are using SMF 2.0 you'll edit the menu links in the Sources/Subs.php.

I've linked you to the tutorials for adding a tab to each version.  Of course you aren't adding one, but editing an existing tab.  It should put you on the right track however.

Adding a tab to SMF 1.1 (http://docs.simplemachines.org/index.php?topic=564.0)

Adding a tab to SMF 2.0 (http://www.simplemachines.org/community/index.php?topic=261880.0)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 15, 2009, 01:57:03 AM
@kurtazz> Interestingly, Aeva Media changes the tab's name to 'Media', so you won't have to do anything yourself ;)

@gargoyle> Foxy! is installed on smf-media.com but it's missing the last couple of new features because it's an old install of SMG and I can't uninstall it (I don't have FTP access). But you can test it there, it's the purpose of that gallery. It's also installed on noisen.com, with full features etc, but please don't use it to post test stuff. It's a live gallery and I wouldn't want to bother my friends with test stuff appearing as 'unseen' in their menu bar.

@shumilica> thanks ;)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Akyhne on December 15, 2009, 02:18:53 AM
If Dragooon gave up on this mod, then why is the mod still provided by the SMG team, and why are you still using Dragooons server? Just a qurious Q.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 15, 2009, 02:34:04 AM
- He wants to keep ownership of SMG because he created it, which is fair enough,
- Since he no longer will work on it and it was painful enough for me, we arranged it that SMG 2.0 would be the final branch release, and the next version would be renamed to the name of my choice, and would be owned by me.
- I renamed it to Aeva Media so that it can use the Aeva brand and branch (ahah), also using the ID Nao:Aeva which will allow me to distribute it on the official Aeva mod page. Also, it was the logical choice for me, since I'd been thinking of integrating Aeva into SMG for some time -- in the end it was the other way around.
- Although I'm now the main owner, I still consider Dragooon to be an author. He's listed as "ex-developer" but we arranged it so that he could re-join the team in the future if he ever wants to join again.
- As for Dragooon's server, it was part of the arrangement. I do not have a problem with using his server anyway. More of a problem with his forum though -- now the gallery stuff is only part of the forum, and I'm not interested in reading the Facebook crap, the Curve Mobile stuff and the Slideshow support. (I have nothing to do with that.) So it's up to the users, they can use aeva.noisen.com, smf-media or simplemachines.org for support. I will progressively spend less time on smf-media.com.

Hopefully I answered all your concerns.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Arantor on December 15, 2009, 03:31:17 AM
Nao: You know, we can always change the package id on a mod's page for you if you ever wanted us to do so...
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 15, 2009, 04:55:42 AM
Yeah, I know, Nao:Aeva wasn't the original ID for the package obviously ;) It was karlbenson:aevac.
I just don't feel it's necessary to bother the customize team with that.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Arantor on December 15, 2009, 04:57:58 AM
*nods* Just pointing out that we can do it and I really don't mind sorting something like that out. It's a 30 second job after all.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: VitProg on December 15, 2009, 06:14:29 PM
Hello. Help my please. How to make to members could add a sub-album in the general album
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 16, 2009, 01:57:59 AM
Wait for Aeva Media.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: SilverKnight on December 16, 2009, 02:29:50 AM
Quote from: Nao/Gilles on December 16, 2009, 01:57:59 AM
Wait for Aeva Media.

:P
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 16, 2009, 02:59:26 AM
What?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: navjotjsingh on December 16, 2009, 03:26:40 AM
I keep getting this error when I access gallery page:


Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation 'ifnull'
File: /home/<pathname>/Sources/Subs-MGallery.php
Line: 2820
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: VitProg on December 16, 2009, 03:36:04 AM
Quote from: Nao/Gilles on December 16, 2009, 01:57:59 AM
Wait for Aeva Media.
How long to wait?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Soms on December 16, 2009, 07:16:19 AM
Quote from: VitProg on December 16, 2009, 03:36:04 AM
How long to wait?

Have you tried reading this (http://www.simplemachines.org/community/index.php?topic=260821.msg2405296#msg2405296)? Nao answered the question just yesterday. He probably knew you were going to answer the question today.  :P. Just try to read a few pages back if need to find something out. It is the same questions (with some variations) that are generally asked. So a few pages back, you are almost likely to get and answer and save space and time here.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 16, 2009, 03:39:07 PM
Not so fast ;)
Or maybe yes!

Aeva Media 1.0 Alpha

This is a TEST RELEASE. I plan on releasing a 'proper' version (through the official mod page) by this weekend. I just need to see if there's any issue arising from a wider sample of the user community, compared to my current beta tester group.
From the initial tests, everything has been going fine. It's better than Aeva and SMF Media Gallery in every way.

You can download the package in the Aeva topic:
http://www.simplemachines.org/community/index.php?topic=200401.msg2408242#msg2408242

How to install?

- Uninstall any version of Aeva, if installed.
- Uninstall any version of SMF Media Gallery, if installed.
- Delete both packages from your package list.
- Now we're clean.

- Upload the aforementioned package to your server via the Package manager.
- Install.

The upgrade program should be able to rename all your permissions and database fields successfully. If you install the mod manually, make sure to run db_aeva.php before trying to use the mod, otherwise it will crash your forum.

Also included in the above topic is a zip file with all converters (Coppermine, SMF Gallery Lite & Pro) updated for use with Aeva Media. Haven't tested them, though, but they should work (I didn't change anything else than the various table names and variables whose names were changed during the move.)

Below is the complete changelog. Aeva Media contains a MUCH improved SMG 2.0.5, so you won't be missing any feature from the current SMG package.

If you are only interested in the gallery features and don't want to offer an auto-embed system to your users, you can simply disable the auto-embed stuff in the related panel in Admin > Aeva Media > Auto-embed.

Version 1.0 Alpha                               December 16, 2009
-----------------------------------------------------------------
@ Rebranded SMF Media Gallery as Aeva Media, and integrated Aeva into the package.
  You need to uninstall both mods before installing this one, obviously. Also,
  I renamed pretty much all functions, variables, permissions, files and such
  to fit the new environment, so if you made any edits or added external code
  that relies on either Aeva or SMG, you'll need to update it. I wish translators
  good luck because they have a lot of work awaiting them... (Read Aeva.english.php
  for details. Use a file compare tool to ease your work.)

The wow-how-could-I-live-without-that stuff:

* Removed "General" and "User" album system. Now, all albums are user albums, and
  moderators can set them to "Featured" status (i.e. show them in the Media home page)
+ Album owners can now specify whether they want other users to be able to upload media
  to their albums. They can select them by membergroup or by giving a list of users.
  They can also specify users who are denied upload access, even if they're in an
  authorized membergroup. Just as for the regular viewing permissions.
+ Added support for description field in mass upload. Yaha, it only took minutes to add.
+ Added Quick Moderation on albums, for mass moving, mass approving, mass unapproving
  and mass deleting items in the page. I'm starting to wonder why I've been delaying
  these cool features for so long, when they only took so little time to implement.
+ In the album editor, show primary membergroups in bold, and check them by default
  when creating a new album, meaning all your users will be able to access it.
* Improved layout of many areas in Curve theme (SMF2 RC2)
* Aeva Media now has an entire dropdown admin menu of its own... It needed it!

The really, really cool stuff:

+ Added support for embedded videos in lightbox previewer on album pages
* Moved version number to inside the source files, rather than the database
  installer, in case you install your updates manually, like me. :P
! Rewrote much of the Mass Upload process' layout and features.
+ For instance, added automatic file sorting at selection time. You can sort by
  case-insensitive file names, file size or file date.
! In some situations, UTF8-encoded websites could return errors after a mass upload
  process, because the Flash uploader would return a BOM header.
* Moved album management features from admin area to regular area. The only difference
  now is that the admin area lists all albums, while the regular area only shows yours.
+ Added 'moderate_own_albums' permission to allow regular users to moderate their own
  albums, obviously. They can now approve and/or delete any comments on their albums,
  approve or delete any items on their albums (including those not posted by them),
  and delete their albums. Wooh, strong stuff. Use with caution.
* Modified all ';id=' URLs to use ';in=' instead. Instant mod_security fix! Deleted
  mod_security hack, as a result. Looked cool, had geeky code, no longer needed. Oh.

The neat stuff:

* Rewrote auto-embed copyright notice so it doesn't disrupt your regular copyright notice
* Changed a setting in aeva_listItems to allow for third-party pages to set a per-row
  limit for items (set it to 1 if you want a vertical list, for instance.)
- Finally got rid of these annoying 'user profiles' (quotas and permissions). Now, only
  admins can manage permission profiles. All existing user profiles can be edited by them.
+ Admins can now update the sitelist directly from within the admin area's
  Auto-embed section. The last check date is also specified.
+ Allow early overriding of Aeva Media settings through index.template.php's template_init()
  function and the $amOverride variable. You can see it in action at media.noisen.com
  where the number of items per row depends on whether the sidebar is enabled.
+ Added new API function (a function not used internally but for use in external pages),
  aeva_listMemberAlbums(int id_member), where you can get a quick list of albums for an
  owner, for use in a sidebar, profile, portal block or anything.
+ Show a small star next to Featured album names, in the complete album list.
* Renamed Gallery tab in main menu to 'Media', as it better fits the new direction.
! Check file size against quota before moving an item to a new album
! Fixed possible security hole in moderation panel

The who-cares stuff:

* Added a bolded warning in the admin area, about the checkorphans task breaking
  your gallery while it's running. Thought it might be worth mentioning, eh...
! When an admin changes aeva_unseen permissions, users will instantly see the outcome
  in the main menu, instead of having to go through an unseen item
* Added more checks for SMF2 to account for a bug in a Twitter mod
* In lightbox preview, Zoom option is now a circle with a + in the middle
- Removed SMF 2.0 Beta 4 compatibility. It's over a year old, time to move on!
! Changed the 'yes/no' system to a dropdown select box rather than radio buttons.
  The previous version is still in the code, commented out, if you want it back.
! Fixed URLs getting corrupted under embedded objects when they had a tilde in them
* Don't show the Permission/Quota Profile box if only the default one is available
! Fixed db_aeva.php's layout on SMF2, and made it CSS valid when run standalone
! Quota profiles are now clearly usable only by moderators and admins. This is
  because the default quota set will generally be lower than any extra profile
  (which would generally be used for VIP albums only, see?)
! SMF 1.1 + IE8 wouldn't recognize the browser as part of the IE family, thus choosing a
  different path code for embedded videos. Guys, how about switching to a real browser now?
! Gallery admin was viewable by admins, but not by regular users with gallery admin rights
+ Added new members field (aeva), which shall soon be used to store per-user settings.
- Trimmed about 100KB worth of comments from getid3 module -- left all links/credits
  in it, hopefully removed most of the rest. Should reduce the size of the package.
  If you have any problem with ID tags in the future, please tell me!
! Fixed a minor logic error when doing a mass download
! Fixed a buggy regexp in aeva_autolink_urls()

! And as usual -- fixed an AWFUL lot of minor bugs, and added an even more awful lot
  of minor features and optimizations which aren't worthy of being presented here.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: perplexed on December 16, 2009, 05:31:50 PM
sounds great, I will stick in on my test forum :)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: ethankcvds on December 17, 2009, 11:16:04 AM
Installing Aeva Media on SMF 2.0 RC2 using postgreSQL you get the following error ERROR: relation "smf_aeva_albums" does not exist
LINE 1: UPDATE smf_aeva_albums SET featured = 1 WHERE type = 'genera...
^
File: {location}\Packages\temp\db_aeva.php
Line: 544
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 17, 2009, 05:05:42 PM
ethankvcds, I don't know anything about PostgreSQL. Does anyone here know about it? What is forbidden by it? Is this a SMF or Aeva Media bug? (I'm only using authorized commands through SMF2...)

Anyway!

Aeva Media Prerelease #2 is out! (http://www.simplemachines.org/community/index.php?topic=200401.msg2409687#msg2409687)
If you meet any problems with it, make sure to try prerelease #1. It's still early alpha, I can't guarantee it'll work out of the box!
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 17, 2009, 05:12:26 PM
Quote from: Nao/Gilles on December 17, 2009, 05:05:42 PM
ethankvcds, I don't know anything about PostgreSQL. Does anyone here know about it? What is forbidden by it? Is this a SMF or Aeva Media bug? (I'm only using authorized commands through SMF2...)
Ah, except for the renaming indeed...
You'll have to do it manually.

In PGSQL, it is:

ALTER TABLE smf_mgallery_albums RENAME TO smf_aeva_albums;

Same for all Aeva Media tables!
Then you can re-run the db_aeva.php file.

SMF Team-- any way to quickly rename all tables through SMF2 in a single query, like I do for Mysql?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Arantor on December 17, 2009, 06:11:01 PM
Quote from: Nao/Gilles on December 17, 2009, 05:12:26 PM
SMF Team-- any way to quickly rename all tables through SMF2 in a single query, like I do for Mysql?

No. But there's nothing stopping you from sniffing the type from $db_type and issuing MySQL/PGSQL/SQLite specific commands to do this; remember, there isn't even a db_rename_table in $smcFunc.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: ethankcvds on December 17, 2009, 07:33:39 PM
From what I've read there's a few issues. one of them being the use of uppercase or lowercase letters for table names. It seems that if you have a table with with an uppercase letter like SMF
your SQL statement has to be like this:

SELECT * FROM "SMF"


If your using lowercase letters the query has to be done like this:
SELECT * FROM smf

There's an other thing I was reading located at http://wiki.postgresql.org/wiki/FAQ#Why_do_I_get_.22relation_with_OID_.23.23.23.23.23_does_not_exist.22_errors_when_accessing_temporary_tables_in_PL.2FPgSQL_functions.3F though I don't know if that has anything to do with this.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Arantor on December 17, 2009, 07:34:38 PM
That's why we don't allow upper case names to be used in mods we approve... and also why 2.0's DB structure has everything in lowercase anyway.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: perplexed on December 17, 2009, 07:42:43 PM
this is not smg related but am I the only one who sees the link in  ethankscvds's post as this bit hanging off the edge of the curve template?

ng_temporary_tables_in_PL.2FPgSQL_functions.3F  though I don't know if that has anything to do with this.

instead of wrapped inside the post box?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Arantor on December 17, 2009, 07:43:38 PM
It's a very long link.

For me, in Chrome 4, I see a scrollbar.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: perplexed on December 17, 2009, 07:44:57 PM
ah ok in firefox it bleeds off the end of the screen, should that happen?  Need I report it somewhere?  I don't want to hijack this thread with non-smg problems
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Arantor on December 17, 2009, 07:46:00 PM
If you copy/paste that link into a fresh RC2 installation, does it still do it? Remember, we're not using RC2 Public here.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: perplexed on December 17, 2009, 07:48:09 PM
ok I don't know how "fresh" it is but I copied in to my forum and it had the same effect.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Arantor on December 17, 2009, 07:48:36 PM
So, assuming it's RC2, what version of Firefox are you using?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: perplexed on December 17, 2009, 07:49:26 PM
um... 3.6b4
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Arantor on December 17, 2009, 07:55:12 PM
Hmm, yes, it's not just beta versions it seems, it's also in earlier versions (happens to me on 3.0.16)

And it still happens in the (almost) latest dev build.

Might want to see if that's already been reported as a bug and if not, report it because it seems like a bug.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: phantom5 on December 18, 2009, 10:46:12 AM
hopefully someone can help me out with this.

http://mysite/index.php?action=mgallery;sa=media;mid=221;upcook=YTo0OntpOjA7czoxOiI...

8: Undefined index: mgallery_unseen
File: /httpdocs/Sources/MGallery.php
Line: 138

on that section is:
'unseen' => array(
         'title' => $txt['mgallery_unseen'],
         'icon' => 'eye.png',
         'enabled' => mgalAllowedTo('access_unseen'),
         'file' => 'MGallery-Sub.php',
         'function' => 'MGal_unseen',
      ),

138 is title=

what does this error mean?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 18, 2009, 12:02:44 PM
It means your language file is not up to date. (And it's probably very old, given that this string has been in there for some time!)

@To everyone: Aeva Media is now available on the Aeva SVN -- meaning the latest commits can be accessed by *anyone*. Just remember that you NEED to recompress the TGZ file that you will download, if you want the SMF package manager to be able to install it (this is because SMF doesn't support TGZ files created by the PEAR library -- it will crash the install process.)

Just go to http://smf-media.com/community/ and click on the SVN link in the menu. Then click 'Aeva' and you're there. Click on 'Download' on the first link that shows up (or 'Create' if there's no 'Download' link for the latest revision, then 'Download'.) Decompress, recompress, upload, install (remember to make sure any earlier versions of Aeva and SMF Media Gallery are uninstalled first, of course.)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: ShowMeYourStyle on December 19, 2009, 03:25:41 PM
Hi guys, could you help me out?

I installed gallery using manual install (due to server probs)
everything seems fine, i can access it ina dmin panel etc.
however when I am using index.php?action=mgallery its redirecting me to my forums, have a look:
http://inplaywepro.com/index.php?action=mgallery

What did I do wrong?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 19, 2009, 04:10:30 PM
Are you sure all your files were edited correctly? In your case, I'm sure index.php was not edited. Maybe other files weren't, either.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Vyache on December 20, 2009, 12:22:16 PM
Just found a bug with the BBC...

I added more BBC to my BB and It went over my smileys...
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: morbug on December 20, 2009, 01:06:50 PM
Hi! I tried installing the latest version of Aeva Media from the SVN and I had a few problems. I recompressed the file and tried to upload it but the installer told me that the package seemed empty. I followed the instructions and uploaded the uncompressed folder to the packages-folder instead. I then used the package browser to install the mod.

When I tried this I got the following error message:

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 'TO smf_aeva_albums' at line 1
File: /.../Packages/temp/db_aeva.php
Line: 181

(this is from the 106 revision since I tried again with an older one)

Is there anything I can do to get it to work or do you need to know anything else to fix an eventual bug?

As far as I can see the server uses MySql 5.0.67-community, PHP 5.2.9 and Apache 2.0.63.

Thanks!
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 20, 2009, 05:32:49 PM
@Vyache> It's a SMF bug, not AM.
See my bug report: http://dev.simplemachines.org/mantis/view.php?id=3999
It was fixed already, will be apparent in SMF2 RC3 once it's released. (Hopefully not too late.)

@morbug> My bad, really, this time it's an AM bug. I forgot to add "RENAME" in the query. I'd rewritten it to be compatible with other database systems (see here (http://www.simplemachines.org/community/index.php?topic=260821.msg2409331#msg2409331) and my answers below), but obviously I missed that. Hopefully you can retry with revision 112 without any issue.

rev 112
! Oops! The Postgresql/Sqlite installer fix actually broke on all database systems. (db_aeva.php)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: morbug on December 20, 2009, 05:43:03 PM
Quote from: Naolington on December 20, 2009, 05:32:49 PM
@morbug> My bad, really, this time it's an AM bug. I forgot to add "RENAME" in the query. I'd rewritten it to be compatible with other database systems (see here (http://www.simplemachines.org/community/index.php?topic=260821.msg2409331#msg2409331) and my answers below), but obviously I missed that. Hopefully you can retry with revision 112 without any issue.

Thank you very much, after a quick check it seems to be working perfectly. :D
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: KensonPlays on December 20, 2009, 09:55:56 PM
I just installed.
When i want to create an album for me, it says:
CHMOD'd all mgal_data files to 7777, not 0777 and i get this error:

Quote
This album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums are chmodded to 0777

and i did a hard refresh and cache clearing... help!!!
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: morbug on December 21, 2009, 01:01:44 AM
Sorry to bother you again but there is one thing that didn't work for me in the old SMG or in the test version of AM: Mass Uploads. Whenever I try to change folder in the open file dialog or when I try to actually upload the files, Flash crashes and (more often than not) takes the browser with it. This is on Safari, Firefox & Chrome on a Mac with OS X 10.6.2.

Are there a workaround for this? I'm "migrating" an old site so it would be a nice feature to have working.

Thanks again!
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: jay.clark on December 21, 2009, 01:31:03 PM
I am having problems with 2.0.5.  When I orginally did the install it seemed to go fine, except when I tried to install a default album I got an error message.
This album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums are chmodded to 0777

Checked that and they were ok, but as I continued to poke around I found that a number of the required files were not where they were supposed to be.

I started checking the error log on the hosting service, and when I got a message that some file was not there, manually installed it, sometimes I had to manually install entire directories.

Now I am at a point where there are no more messages in the error log, but I am still getting the same error message that originally started me working on this, IE the dreaded CMOD message,

At this point I am kinda up a stump, tried uninstalling and reinstalling, no luck.  Wondering if the next step should be to attempt a manual install, or just use the SMF Hack gallery package.

Will be grateful for any pointers/sugestions

jayr
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Atheos23 on December 22, 2009, 12:58:03 PM
Hi, I looked through the thread but didn't find anything about this: the "Posted Date" on my pictures are all off by one month. I just posted some 150 pictures today (22 December 2009) and all of them state I posted on 22 November 2008!
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Angelotus on December 23, 2009, 03:08:06 AM
How can I get the avatar of the commenter in the comment of a item?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: eg208 on December 23, 2009, 06:23:19 AM
How to load random user picture using SSI.php, thanks
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 23, 2009, 10:32:35 AM
@kc> It's 0777, not 7777. 0 means it's an octal number. Base 8, not base 10. Anyway. Chmodding to 0755 also works.

@morbug> It's a known issue in Mac OS, apparently. Some users reported that it was fixed by upgrading (or downgrading?) their Flash plugin.

@jay> I don't know.

@atheos> It's not "off", it's the correct date. Of when you took the picture. If you want to have the upload date, which is less relevant to me (because they're already sorted by upload date = id, in the first place), you can disable the Exif date feature in the admin area.

@angelotus> They're already there.... Ain't they?

@eg208> In Aeva Media you can do it in three lines:

loadLanguage('Aeva');
@include_once($sourcedir . '/Aeva-Subs.php');
echo preg_replace('~<div class="highslide-maincontent">.*?</div>.*?</div>~', '', aeva_listItems(aeva_getMediaItems(0, 3, 'RAND()'), false, '', 1)), '


The preg_replace is only there if you're not adding highslide headers to your page.
The 3 is the number of items. The 1 is the number of items per horizontal row. That's the thing that shows up on noisen.com's homepage.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Angelotus on December 23, 2009, 10:36:55 AM
Hi, no, the avatars are not there
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 23, 2009, 11:20:35 AM
Sure they are.

http://media.noisen.com/item/407/#com149
Title: Integration issue
Post by: giluriel on December 23, 2009, 12:11:39 PM
Hi,

I have installed the Media gallery 2.0.5 into SMF 1.1.11

Is there a way to integrate it into the main button bar, the message posting window and the user profile page ?

Thanks,
Gil
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 23, 2009, 02:30:00 PM
- User profile page: it's already there.. Check the menu / sidebar.

- Main button bar: what do you mean? The main menu? It's there, unless you're using a custom theme --> you'll have to edit the theme yourself.

- Message posting window: the feature exists in the Foxy! add-on. Check out my signature.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: SMGTeam on December 25, 2009, 11:34:19 AM
Forgot to post here...

Aeva Media 1.0 Alpha is out!
http://custom.simplemachines.org/mods/index.php?mod=977

Since it's an official release, you can expect more stability than with earlier unofficial releases. It's still not perfect though, or at least, it hasn't been tested enough to be sure it won't kill your server and make you run screaming. You've been warned ;)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: KensonPlays on December 25, 2009, 12:02:43 PM
Quote from: Naolington on December 23, 2009, 10:32:35 AM
@kc> It's 0777, not 7777. 0 means it's an octal number. Base 8, not base 10. Anyway. Chmodding to 0755 also works.

I know. I just did that on purpose to allow lit. EVERYTHING. Now, how I get it to work again, I want to use this!
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 25, 2009, 12:07:46 PM
Ask your host for help?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Sakurachan on December 25, 2009, 10:42:16 PM
Tried installing and got this O-o

Fatal error: require_once() [function.require]: Failed opening required '/home/hmuniver/public_html/forum/Sources/Subs-MGallery-Vital.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hmuniver/public_html/forum/Packages/temp/db_mgallery.php on line 1105

Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 26, 2009, 03:48:55 AM
Err... Did you try installing SMG or Aeva Media? Apparently from your file names, it's SMG...
You should try with Aeva Media anyway.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Cheewy on December 26, 2009, 10:47:44 AM
Does enybody know

How to change size of youtube video?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 26, 2009, 01:44:29 PM
Err, yes... With the "Normal / Large" buttons below the videos... It's saved into a cookie and all.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Cheewy on December 26, 2009, 01:59:12 PM
I dont see that... If you can capture it... please?

or you mean fullscreen button on youtube video?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 26, 2009, 06:06:07 PM
Make sure the Javascript engine is enabled. If you use the non-Javascript version (which is really not especially recommended), it won't show up.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Sakurachan on December 26, 2009, 06:44:26 PM
Quote from: Naolington on December 26, 2009, 03:48:55 AM
Err... Did you try installing SMG or Aeva Media? Apparently from your file names, it's SMG...
You should try with Aeva Media anyway.

alright, I will try that version next~
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Cheewy on December 27, 2009, 06:42:26 AM
Quote from: Naolington on December 26, 2009, 06:06:07 PM
Make sure the Javascript engine is enabled. If you use the non-Javascript version (which is really not especially recommended), it won't show up.

I use 2.0.3

is that java version? If not, which is?
Title: Help please with this error please
Post by: ShawnH on December 27, 2009, 09:54:22 AM
i was moving some pictures around and i started getting this error

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 77 bytes) in /home2/thefragr/public_html/forum/Sources/Subs-MGallery.php on line 1201

how can i repair this ?

thanks
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 27, 2009, 01:22:31 PM
Quote from: Cheewy on December 27, 2009, 06:42:26 AM
Quote from: Naolington on December 26, 2009, 06:06:07 PM
Make sure the Javascript engine is enabled. If you use the non-Javascript version (which is really not especially recommended), it won't show up.

I use 2.0.3

is that java version? If not, which is?
No.
First of all, use 2.0.5.
Secondly, I'm talking about an option in the Admin area. Aeva.
But maybe it's not installed on your forum. Make sure to install Aeva, otherwise you can't resize videos.
You might just as well uninstall SMG 2.0.3 and install Aeva Media if you don't care for some instability during the first weeks. (Not much, really.)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: cassiecw on December 30, 2009, 11:15:34 AM
We've just moved servers and I am trying to get the gallery working again. We lost all the images in the move so we're basically starting again. I've installed the latest version but when we try to add an album we get this message:
QuoteThis album's directory couldn't be properly created, please make sure mgal_data and mgal_data/albums are chmodded to 0777
I've done this and am still getting this message. I'm assuming it's something to do with the settings of our new server...but am a bit of a noob with these things. Help would be very much appreciated!
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Vyache on December 30, 2009, 12:32:19 PM
@cassiecw

Try changing chmodding of mgal_data and mgal_data/albums to 0755.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: casp3r on December 30, 2009, 01:00:36 PM
In 'Settings' in the gallery admin there are two settings

Data directory path
Server path (e.g. /home/www/mgal_data)
   
Data directory URL
Same path, but through a web browser (e.g. http://mysite.com/mgal_data)

Have you changed these (especially the first one) to reflect the path to the folder on the new server?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: neo_rambo on December 30, 2009, 01:05:34 PM
After installing this and removing the correct files my "Add Album" button disappeared. Has anyone experienced this?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: cassiecw on December 30, 2009, 01:59:26 PM
Quote from: casp3r on December 30, 2009, 01:00:36 PM
In 'Settings' in the gallery admin there are two settings

Data directory path
Server path (e.g. /home/www/mgal_data)
   
Data directory URL
Same path, but through a web browser (e.g. http://mysite.com/mgal_data)

Have you changed these (especially the first one) to reflect the path to the folder on the new server?
Thanks casp3r, you were right the data directory path did need changing  :) ....however I still can't add any albums - the same message shows   ???

Any other ideas?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on December 30, 2009, 02:14:53 PM
ShawnH, try with Aeva Media instead. I made a lot of changes to the move system (most notably adding the mass move feature). I'm not sure it'll fix your problem, but when you have problems, it's always best to try with the latest version. (Unless you're not willing to risk breaking other things, in the case of an Alpha.)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: neo_rambo on December 30, 2009, 02:37:54 PM
Your button is still there?
Quote from: cassiecw on December 30, 2009, 01:59:26 PM
Quote from: casp3r on December 30, 2009, 01:00:36 PM
In 'Settings' in the gallery admin there are two settings

Data directory path
Server path (e.g. /home/www/mgal_data)
   
Data directory URL
Same path, but through a web browser (e.g. http://mysite.com/mgal_data)

Have you changed these (especially the first one) to reflect the path to the folder on the new server?
Thanks casp3r, you were right the data directory path did need changing  :) ....however I still can't add any albums - the same message shows   ???

Any other ideas?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: cassiecw on December 30, 2009, 03:16:26 PM
Which button do you mean neo_rambo?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: neo_rambo on December 31, 2009, 01:27:44 PM
Quote from: cassiecw on December 30, 2009, 03:16:26 PM
Which button do you mean neo_rambo?
The add album link in the albums tab.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: SpiritL on January 01, 2010, 11:17:58 PM
I have SMF 2.0 RC2 and SMF Media Gallery 2.0.5. It all is Russian version

I have a problem. I can't upload images more than 1.4 Mb. They uploads, but they are not in the gallery, they can not be resized. When I upload, site gives me just white empty page... no any mistakes.
In the past logs have such mistake:
ttp://site.ru/index.php?action=mgallery;sa=post;album=5

2: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for /storage/home/htdocs/mgal_data/tmp/0_2fb09_1d3220c3_orig.jpg

File: /storage/home/srv19788/Sources/Subs-MGallery-Vital.php
Line: 1211

Now even she is not there. Image size is within acceptable of server and site (it's 10 Mb)
Please help
PS: excuse me for my English
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on January 02, 2010, 03:52:58 AM
This probably means your server is too restricted to make uploads through PHP.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: cassiecw on January 02, 2010, 05:59:17 PM
Quote from: neo_rambo on December 31, 2009, 01:27:44 PM
Quote from: cassiecw on December 30, 2009, 03:16:26 PM
Which button do you mean neo_rambo?
The add album link in the albums tab.
If you mean the "Add General Album" link in the gallery admin, then yes it is still there.

I'm wondering if I try uninstalling & deleting everything to do with the gallery and re-installing it again if that might help  :-\

Does anyone else have any suggestions or how to go about this please?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: tripl3r on January 05, 2010, 11:13:12 AM
Is there a way to make the gallery display files size in MB instead of KB??
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: SpiritL on January 05, 2010, 12:24:41 PM
Quote from: Naolington on January 02, 2010, 03:52:58 AM
This probably means your server is too restricted to make uploads through PHP.
How I can chek this?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on January 05, 2010, 05:42:03 PM
@spiritl> I don't know, I'm not on your server...
Is PHP Safe Mode enabled?
The filesize() function should be available everywhere, really. If it isn't, it means either the server has a special version of PHP with several features disabled, or the temp file wasn't uploaded at all.

@tripl> Err... I don't think so. Does it have only files > 1MB?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: MonoTiz on January 10, 2010, 06:49:39 AM
I tryed to update SMG to 2.0.5 on my SMF 1.1.11 forum but I can't install it. I recaive this error:

Fatal error: require() [function.require]: Failed opening required '/home/hosting/drz-italia.com/smf/Packages/temp/db_mgallery.php' (include_path='.:') in /home/hosting/drz-italia.com/smf/Sources/Packages.php on line 556

Thanks...
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on January 10, 2010, 12:52:17 PM
Didn't I specifically tell you to stop using our software? You didn't follow the license rules, by attempting to sell a plugin for it without even consulting with us. (And you didn't discuss this with us either after I took action.)

In case it isn't clear enough: no, you do not have authorization to use my stuff.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: MonoTiz on January 11, 2010, 03:21:53 AM
Quote from: Naolington on January 10, 2010, 12:52:17 PM
Didn't I specifically tell you to stop using our software? You didn't follow the license rules, by attempting to sell a plugin for it without even consulting with us. (And you didn't discuss this with us either after I took action.)

In case it isn't clear enough: no, you do not have authorization to use my stuff.
I didn't receive any message from you... and I can't find my topic in smf-media.com... Why you delete my topic?

I apologize for the plugin, but I think a simple warning message could be sufficient to clarify .... the plugin isn't available.

In any case do not understand why my message on smf-media.com been deleted ...
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on January 11, 2010, 04:49:27 AM
I deleted your message because I felt offended by it.
Should I not be?

Our policy has been to offer an entirely free gallery system.
I myself have worked fulltime on it for over a year now, asking for nothing in return. (Except respect for my work and my self.)
I'm very proud of it, I'm happy with it, but it doesn't pay my bills. I don't ask for money because I have other resources which work fine for me and I'm doing this out of passion, but I don't see why other people should earn money off SMG/AM. If someone should be paid for it, it should be Dragooon or I, shouldn't it? So, if you wanted to make a plugin -- fine. Many people have offered mods that install on top of SMG, we don't have problems with that. But offering them in exchange for money? I don't even understand why you complain that your post was removed. It only makes sense to do it!
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: MonoTiz on January 11, 2010, 05:10:11 AM
Quote from: Naolington on January 11, 2010, 04:49:27 AM
I deleted your message because I felt offended by it.
Should I not be?

Our policy has been to offer an entirely free gallery system.
I myself have worked fulltime on it for over a year now, asking for nothing in return. (Except respect for my work and my self.)
I'm very proud of it, I'm happy with it, but it doesn't pay my bills. I don't ask for money because I have other resources which work fine for me and I'm doing this out of passion, but I don't see why other people should earn money off SMG/AM. If someone should be paid for it, it should be Dragooon or I, shouldn't it? So, if you wanted to make a plugin -- fine. Many people have offered mods that install on top of SMG, we don't have problems with that. But offering them in exchange for money? I don't even understand why you complain that your post was removed. It only makes sense to do it!
I did not want to offend you. I wrote you in private so as not to soil this topic.

You said you warned me but I have not received any notice. As soon as I realized that I had done something wrong I've apologized and deleted all my modifications from my site. Then if my punishment is exile for life, I accept it, although as I said it a second chance by everyone. I read the license and not think of doing anything wrong (point 3 of your license).

The message deleted to which I referred, is the last one I entered. I posted a message identical to that on simplechines where wondering why I could not install 2.0.5 SMG. It does not concern my plugin.

Unfortunately I can not see smf-media with my account (I can do it as guest) and then I cannn't search my topic. I can not access smf-media, I think I was banned. Just asking to be notified before any action.

I'm sorry for that happened, not my habit offend people nor their work.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on January 11, 2010, 09:32:30 AM
Quote from: MonoTiz on January 11, 2010, 05:10:11 AM
I did not want to offend you. I wrote you in private so as not to soil this topic.
Never received any PM from you, anywhere.

QuoteYou said you warned me but I have not received any notice. As soon as I realized that I had done something wrong I've apologized and deleted all my modifications from my site.
It was there until today. (Has gone since then, indeed.)

QuoteThen if my punishment is exile for life, I accept it, although as I said it a second chance by everyone. I read the license and not think of doing anything wrong (point 3 of your license).
The terms about selling mods weren't clearly specified (they are, now, in Aeva Media), but in any case, given the license terms, it was pretty obvious you should contact us for anything out of the normal.

QuoteThe message deleted to which I referred, is the last one I entered. I posted a message identical to that on simplechines where wondering why I could not install 2.0.5 SMG. It does not concern my plugin.
Just as you said: you posted an identical message. I don't see the point in having a conversation in two places at the same time. Do you?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on January 11, 2010, 12:45:06 PM
Quote from: MonoTiz on January 11, 2010, 05:10:11 AM
Unfortunately I can not see smf-media with my account (I can do it as guest) and then I cannn't search my topic. I can not access smf-media, I think I was banned.
No. I just checked, and you aren't. You would have a message saying you are banned if you were, anyway. You must have a proxy issue.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: MonoTiz on January 13, 2010, 06:46:13 AM
Thank you for your understanding.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on January 13, 2010, 07:03:36 AM
To everyone:

I'll soon be putting an end to my support for SMG.
Aeva Media is in official beta, and considered more stable than SMG 2.0.5 at this point (i.e. all bugs from the Aeva Media development period have been found and squashed, and many bugs that are in SMG 2.0.5 have been fixed in Aeva Media.)
I would release a SMG 2.0.6, but really, it would take me too much time to develop, and I need that time to work on AM.

So, basically:
- If you need support for SMG, come back here, but I can't guarantee I'll reply. I can't even guarantee I'll read your post. (Although I probably will.) And even if I reply, the answer will be along the lines of, "Please upgrade!"
- Only Dragooon shall officially support the mod. Although AFAIK, he's currently MIA when it comes to SMG.
- I would recommend to upgrade to Aeva Media. It's the equivalent of SMG 3.0, only with a brand change.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: vortodox on January 14, 2010, 05:22:58 PM
I have a problem, could you help me.
Thanks in advance.

http://www.simplemachines.org/community/index.php?topic=360039.0
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: NoobDeveloper on January 15, 2010, 07:19:18 PM
i get error

Database Error
Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation 'ifnull'
File: E:\web\OS\public_html\Sources\Subs-MGallery.php
Line: 2820


i have installed it on my local machine.

plz help
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on January 16, 2010, 04:31:38 AM
cf. my bug report for SMF:
http://dev.simplemachines.org/mantis/view.php?id=4156

Send me phpmyadmin access (by PM, yes), I'll throw in a fix for free.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Akyhne on January 19, 2010, 07:16:28 AM
I know you are not supporting this software, but just wanted you to know.

Upgraded to latest version. A regular user created an album with "Regular Members" access. But Global moderators don't see this album, unless "Global moderators" is selected under "Membergroups".
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on January 19, 2010, 08:44:02 AM
It's not really a bug... It's just that Global mods is a primary group. If you want them to have access to regular members stuff, just add them as a secondary group instead.
I understand your point though -- logic would dictate that global mods have this lovely global mod logo for everyone to know and fear.
I'm not sure whether the issue happens in Aeva Media.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Akyhne on January 19, 2010, 08:49:17 AM
But the text says:
Membergroups
The following membergroups will be allowed to view the album and its contents. If the "Regular members" group is checked, all board members will be able to view it, so you don't need to check other groups (except for Guests).

It's way to much to ask people who creates an album that they need to check this and that group. I've got 16 groups in that forum.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on January 19, 2010, 09:33:52 AM
All members that do not have a set group...
It is a 'typo' I fixed in Aeva Media. I even show in bold all groups that need to be checked. (i.e. 'Group moderators' would be bolded because it has members in it.)

Please, I said I wouldn't support SMG. That is especially valid for its bugs!
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: nwobhm on January 20, 2010, 05:48:51 AM
How do I enable Imagcik for this SMF media gallery?
I did check that my host provides imagick service and I got the path.... where it operates. But how to enable it for media gallery?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on January 20, 2010, 06:15:10 AM
ImageMagick or PHP-IMagick?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: nwobhm on January 20, 2010, 06:34:29 AM
Quote from: Nao on January 20, 2010, 06:15:10 AM
ImageMagick or PHP-IMagick?
ImageMagick
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on January 20, 2010, 10:04:49 AM
You need to install IMagick to interface with it.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Adish - (F.L.A.M.E.R) on January 31, 2010, 11:21:16 AM
Fatal error: Cannot redeclare allowedtoaccessalbum() (previously declared in /home/killzone/public_html/Sources/Aeva-Subs.php:601) in /home/killzone/public_html/Sources/Subs-MGallery.php on line 606

Appear's when I hit "Gallery" in the admin panel.

What is to be done to fix it ?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on January 31, 2010, 03:59:14 PM
You didn't uninstall SMG before installing Aeva Media. (And you posted in the wrong topic, technically.)

It is written in red bold characters that you have to, and that I'm not responsible for people who don't read the warning.
So I'm not responsible, uninstall SMG manually.

For someone who has 4000+ posts here, I'm surprised you don't know you should uninstall a mod before installing a new version...?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Adish - (F.L.A.M.E.R) on January 31, 2010, 04:52:41 PM
It does mention that a person should uninstall SMG and Aeva before installing Aeva Media. My case is, Aeva Media is already installed and I installed SMG over it. Although there is nothing in the description that provides a clue that an error of that type should be related to the clashing of both the mods. It also does not take the right of a person to ask for a solution from someone who is better into mods then himself.

I have found the fix anyway. Thank you.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on February 01, 2010, 02:01:01 AM
Quote from: (F.L.A.M.E.R) on January 31, 2010, 04:52:41 PM
It does mention that a person should uninstall SMG and Aeva before installing Aeva Media. My case is, Aeva Media is already installed and I installed SMG over it.
What?! Why the heck did you do that??

QuoteAlthough there is nothing in the description that provides a clue that an error of that type should be related to the clashing of both the mods.
Uh... It won't clash more than a few error messages like that, but it'll clutter your database *AND* next time your upgrade Aeva Media, it'll delete your database! So you'd better uninstall SMG right now and delete your mgallery_* tables!

QuoteIt also does not take the right of a person to ask for a solution from someone who is better into mods then himself.
?

I just don't see why you install an older version of a mod over a newer one. Obviously the warning message was there to tell you that all of these mods are incompatible between themselves!!
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Darkness_ on February 05, 2010, 03:44:04 AM
Is it possible to get the "boards" on the gallery index not all 1 by 1 under eachother but
2 by 2.

So not

Designs
Pictures
videos
photoshop pictures

but

Designs                     Pictures
Videos                       Photoshop pictures
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Darknico on February 05, 2010, 04:26:12 AM
yes
go in Admin Gallery, Setting, Layout
set 2 in "Max sub-albums per line"
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on February 05, 2010, 05:15:19 AM
@Darknico, that is for Aeva Media only.

@Darkness> As I said: yes, but only in Aeva Media.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Darknico on February 05, 2010, 05:29:23 AM
Quote from: Nao on February 05, 2010, 05:15:19 AM
@Darknico, that is for Aeva Media only.

No Nao, I use this setting in one forum with SMG 2.0.5 ;)

added in Version 2.0 RC3
Quote+ Added new admin setting, Album Columns, which allows you to choose the number of
  albums you want to show per row in album lists. Defaults to 1, but 2 or 3 are just fine too.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on February 05, 2010, 06:14:59 AM
Really...? I thought that was added in AM.
I guess I was wrong, thanks for correcting me ;)

Doesn't change the fact that people should start upgrading to AM, lol. Version 1.0 coming today if everything goes according to plan. (I'm currently experiencing some delay because of the awful amount of posts over at smf-friends.org in regards to SMF's impending death.)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Darkness_ on February 10, 2010, 12:48:42 PM
Quote from: Nao on February 05, 2010, 05:15:19 AM
@Darknico, that is for Aeva Media only.

@Darkness> As I said: yes, but only in Aeva Media.

oke thanks, didnt see you're post before...

now I want to be the exif metadata, the direct link to the picture (item info) etc. to be collapsable.
how can I do this ?

Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on February 10, 2010, 12:57:03 PM
Exif > Already collapsed.
Direct link > Just delete MGalleryItem.php from your root folder.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Darkness_ on February 10, 2010, 03:32:43 PM
didn't work?

instead of deleting it I would like to colapse it if it is possible
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on February 10, 2010, 05:23:23 PM
Not possible, except by hacking into the code by yourself.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: noaccess on February 11, 2010, 09:12:56 AM
Can I uninstall SMG 1.5.6 and install the latest Aeva Media without any issues?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on February 11, 2010, 09:15:53 AM
Yes.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Astra_200 on February 14, 2010, 04:43:23 PM
Firstly, a big thanks to Nao for all the hard work that has been put into this mod.

However I am having a few small problems that I hope someone can help with.

I am running SMF 2.0 RC1.2 and Simple Portal  2.1.1 and a custom theme.

I uninstalled SMG 2.0.5 before installing Aeva Media.

Problem 1. I have about 1600 errors in the error log, all pretty much the same...
http://xxxxxxxxxxxxxx.co.uk/smf2/index.php?action=forum
8: Undefined index: mgallery_gallery
File: /home/bkcc/public_html/smf2/Sources/Subs.php
Line: 3917

The only thing that changes with the errors is the end of the fist line after index.php? It may end;
action=admin
action=login
action=pm
topic=579.0
Etc etc.

Does mgallery have anything to do with Aeva Media? I had no errors at all before uninstalling SMG and installing Aeva Media.
Can someone help me with this error please?

Problem 2.
When I click thumbnails to expand pics, the text 'Zoom' & 'More Details' in the bottom right of the picture is invisible until hovered over. In other words the text is the same colour as the frame border.

I am guessing this has something to do with the text colours in my custom theme?

If I cant change the text colour, is it possible to change the picture border to say black?

Problem 3.

This again may have something to do with my custom theme, but when I am logged in as admin I have 2 buttons, one is my old gallery picture button plus the new Media button (text only). My custom theme has picture buttons which I think I can add to Media but I wonder why there are two buttons?

Problem 4.

I have lost random images from my Simple Portal homepage. Simple Portal issue I guess?

Can you help me please?

Thanks in advance.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Kindred on February 14, 2010, 04:49:45 PM
problem 1 - looks like you did not completely uninstall the mod from subs.php. This would be in the menu function...
the undefined index is the system trying to get the menu text string and not finding it.

problem 2 - check the CSS file(s) in the aeva directory

problem 3 - see the answer to problem 1 above...
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Astra_200 on February 14, 2010, 09:12:38 PM
Thank you Kindred :)

Problem 1 solved - for some reason the the un-install of SMG left a reference to a SMG gallery Array button?? Anyway I have deleted all references and no more errors in my error log ;D

Problem 2 solved - had to find files and experiment quite a lot with Aeva Media CSS but got there in the end ;D

Problem 3 solved - exactly as you said, all connected with problem 1 - Deleted all references to SMG Array and renamed my original gallery button to Aeva Media ;D

Problem 4 - still ongoing - believe this to be a compatibility issue with Simple Portal - I am following threads on their forum with interest.

Problem 4 solved - Created PHP Block in Simple Portal and added this code into it..

global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;
loadLanguage('Aeva');
@include_once($sourcedir . '/Aeva-Subs.php');
echo aeva_listItems(aeva_getMediaItems(0, 4, 'RAND()'), false, '', 1);

Play with 0, 4, and RAND to get what you want. Credit to tfs.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: LHW on February 14, 2010, 10:04:14 PM
@Astral2000: You might find this post of interest: http://www.simplemachines.org/community/index.php?topic=200401.msg2494799#msg2494799
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: - danny on February 15, 2010, 12:34:20 AM
My error log is full of these:

8: Undefined index: mgal_total_comments
File: /home/XXXXX/public_html/news/Sources/Load.php
Line: 1115


8: Undefined index: mgal_total_items
File: /home/XXXXX/public_html/news/Sources/Load.php
Line: 1114


Can someone help me out?  :-[
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Arantor on February 15, 2010, 03:25:27 AM
So ~aLEX, what version of SMF, what version of SMG?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Astra_200 on February 15, 2010, 06:55:22 AM
Quote from: Lord High Warlock on February 14, 2010, 10:04:14 PM
@Astral2000: You might find this post of interest: http://www.simplemachines.org/community/index.php?topic=200401.msg2494799#msg2494799

Thank you Lord High Warlock :)

~aLEX it looks to me like you still have remnants of SMG conflicting with Aeva Media. I simply found all old references to SMG and deleted them. Worked for me, but your problem may be different. Always make back-ups before deleting anything.



Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on February 15, 2010, 01:45:18 PM
Quote from: Astral2000 on February 14, 2010, 09:12:38 PM
Thank you Kindred :)

Problem 1 solved - for some reason the the un-install of SMG left a reference to a SMG gallery Array button?? Anyway I have deleted all references and no more errors in my error log ;D
Actually, you probably updated a previous version of SMG without uninstalling the earlier one. Then you uninstalled SMG to install AM, but uninstalling a double install leaves a copy active that you have to uninstall manually. So you'll have to delete all SMG references manually.

@aLEX> SMG is no longer supported (by me, at least.) Please upgrade to Aeva Media.
(And yes, I know I have a full page worth of incoming posts waiting for me over there... :P)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Astra_200 on February 15, 2010, 05:11:40 PM
Quote from: Nao on February 15, 2010, 01:45:18 PM
Actually, you probably updated a previous version of SMG without uninstalling the earlier one. Then you uninstalled SMG to install AM, but uninstalling a double install leaves a copy active that you have to uninstall manually. So you'll have to delete all SMG references manually.

Nao, you are absolutely right in that I updated SMG, but I was sure to uninstall the previous version before doing so. I only uninstalled (but did not completely delete) the previous version until after installing the later one. Could that be why references were left behind?

All running smoothly now though, nice work.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on February 15, 2010, 05:30:31 PM
I'm just telling you -- there's no other explanation, you forgot at one point to uninstall a previous version when updating. And deleting a package is recommended, but I'm not sure it's mandatory. Uninstalling is.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Astra_200 on February 15, 2010, 06:42:23 PM
Quote from: Nao on February 15, 2010, 05:30:31 PM
I'm just telling you -- there's no other explanation, you forgot at one point to uninstall a previous version when updating. And deleting a package is recommended, but I'm not sure it's mandatory. Uninstalling is.

Actually, thinking back a while, I did try to upgrade a version of SMG and it had a problem with the uninstall process saying it couldent find something to replace with during the process. From memory I did try to sort it manually, obviously I didnt do a very good job of it. Maybe its something to do with my custom theme?

I was never sure about deleting packages but all's well that ends well.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: rgecy on February 16, 2010, 04:07:11 AM
I am having the same or similar problem.  I had Unistalled Aeva, then installed SMG again, thinking it would fix the issue with Simple Portal.  Now I have thousands of errors a day in the log.

Where do I need to start to find the SMG references and delete them?

Thanks,

RGecy
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Astra_200 on February 16, 2010, 05:57:16 AM
rgecy, I think you may have made a bit of work for yourself there. Personally I would have left Aeva Media in place and worked around any problems.

Sounds to me you didnt get clean uninstalls or didnt uninstall a previous SMG version before you upgraded.

All I can tell you is what I did. I looked at my errors in the SMF error log, identified where they were, and using ftp & notepad++ found the line numbers. I then deleted them as they all had references to SMG, luckily they were all on similar lines within the offending file so it was pretty easy. (Only one core error but repeated thousands of times with different actions)

If you have lots of errors in different folders and files then your job may be harder. I'm no pro at this by any means but it worked for me.

Always back up anything before yo start deleting stuff, that way if it all goes seriously wrong you are no worse off than you are right now.

Good luck.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on February 16, 2010, 04:13:54 PM
Quote from: rgecy on February 16, 2010, 04:07:11 AM
I am having the same or similar problem.  I had Unistalled Aeva, then installed SMG again,
You pretty much killed both SMG and Aeva Media by doing that.

Aeva Media is a no-return upgrade. If you don't have backups, then say goodbye to SMG.
SimplePortal support is not an issue. It's something that SimplePortal has to deal with, not me. I never asked them to make a code block for SMG, they didn't even tell me they did. I don't see why I'd have to support the non-availability of a code block for Aeva Media then.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: rgecy on February 16, 2010, 10:36:50 PM
Yep, I am seeing that Nao!  I am hoping they will update SP to fix the issue. 

You have such a fantastic mod and they just wanted to keep up with all your great work! ;D ;D

Thanks for all the help!

Robert
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on February 17, 2010, 06:11:51 AM
Don't forget: if you have a working Aeva Media gallery AND an empty SMG gallery both in the same place, even if you uninstall SMG, upgrading (or installing) Aeva Media will wipe out your Aeva Media gallery.
Title: SMF MediaGalerie: ErrorTrouble
Post by: M*I*B on February 24, 2010, 06:56:48 AM
Hello there from germany,

I use the mGal since 2.0.2 (I belive) and all worked fine. But now, without doing anything with it, all media are'nt shown and if I go to service and let mGal search for errors I get this:


...
The physical file #7, used with Inhalt 1,  is missing.
The DB entry of file #15, used with Inhalt #4,  is missing.
The physical thumbnail #16, used with Inhalt 4,  is missing.
The physical file #1174, used with Inhalt 453,  is missing.
The physical file #1180, used with Inhalt 457,  is missing.
The physical file #1183, used with Inhalt 458,  is missing.
The physical file #2186, used with Inhalt 844,  is missing.
... and so on ...


I have take a look in the database and also on the harddrive and all looks ok; the path is right and the files are also present. Ok, I not realy understand to 100% how it works in deeper but that what I belive to see is ok.

As an example let us take a look at the 1st entry for file #7 with content 1:
If I take a look in the database /smf_mgallery_files at id_file=1 I see ...

filesize = 4118
filename = music.png (present physicaly at \mgal_data\generic_images)
width = 48
height = 48
directory = generic_images
id_album = 0exif = (emty)


All other looks same: Data are ok but that is it...

May can anybody help to fix that? I realy don't have an idea where I have to search for that error...  :o

(sorry about my ugly english...)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Foreclosurepedia on February 24, 2010, 07:42:09 PM
So, I am having an odd thing happen.  First, SMF 2.0 RC2, Curve/Default theme (no tweaks).  SMG 2.0.5  International Brotherhood of Rail Riders (http://ibrr.org/forum) is the site.

Next to the Gallery tab is [125].  This number NEVER changes; even when I upload images it remains the same.  Yes, I ran the Maintenance Recount Totals.

Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: tfs on February 24, 2010, 08:17:19 PM
That's the number of unseen images.  Go to Gallery tab, then click on "Unseen".  It should show you those 125 items.  There's a link there to mark all as unseen.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on February 25, 2010, 02:16:38 AM
Everyone using SMG--- could you PLEASE update?!

At some point I will have to ask for this topic to be locked and redirected to the Aeva Media topic.

People:

- If you use SMG, then okay.
- If you have a problem with SMG, *UPGRADE TO AEVA MEDIA FIRST*.
- If you still have a problem, come to see me on the AM topic.

This will save EVERYONE a lot of time. Thanks.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on February 25, 2010, 02:19:44 AM
BTW ibrr... Your gallery.. You're showing a gallery block to ALL users, but your gallery is disabled to guests... So that means it shows errors on guests. On your homepage. Uh.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: M*I*B on February 25, 2010, 02:54:38 AM
Quote from: Nao on February 25, 2010, 02:16:38 AM
Everyone using SMG--- could you PLEASE update?!

... a good Idea ... but with that problem I have I'm shure I can't without loosing all content ...  O:)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on February 25, 2010, 03:21:47 AM
The tables are simply renamed... Nothing is lost.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: MarcusJ on February 25, 2010, 03:44:47 AM
Upgraded here.  Absolutely no trouble.  Nothing is lost. No errors being generated either. 

Do yourself and Nao a favor.  Upgrade to Aeva Media already.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: M*I*B on February 25, 2010, 03:55:53 AM
Ok, so I interpret your answers that I can solve my problem described below with an update to Aeva?!? That I can't belive ... May I'm a stupid one but not sooo stupid... An update can only work well if the base also working well. The only what I can achieve is an Aeva with the same problem as minimum...
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on February 25, 2010, 04:52:56 AM
Stay in your crap. No time to lose with you if you don't want help...... -_-
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: M*I*B on February 25, 2010, 05:11:18 AM
... looks like that you don't see the problem while you are to deep in your own crap LOL

Ok... I asked here for help with my problem but all what I get are dumb comments and massive "update to Aeva" ******. That show me that you and not you alone havent registered the Problem. Fact is that an update to Aeva dont solve that but that you don't like to see. It is even   expected that an update of all remaining relations completely destroyed. And it looks like that's just in your senses ...
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on February 25, 2010, 06:06:19 AM
I don't care what you have to say. Aeva Media *IS* the new version of SMG. SMG is no longer supported. If you don't upgrade, then you don't get the fixes to SMG. If you don't want them, you'll start complaining about problems that have already been fixed in Aeva Media. If you're gonna make me waste my time, I'd rather you stop right now. If you're using a free product, don't expect free support from the author. ESPECIALLY when you're not willing to listen to his recommendations. Just uninstall SMG and use a paid-for product. I'm sure their author will enjoy a lot hearing from you and your unwillingness to do what they ask you when you report a problem.

Oh, by the way, Aeva Media isn't supported on MacOS 7.0, Windows 3.1 and DOS 6.0 or earlier. You need to upgrade software from time to time you know.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: M*I*B on February 25, 2010, 06:14:08 AM
Quote from: Nao on February 25, 2010, 06:06:19 AMIf you don't upgrade, then you don't get the fixes to SMG

... must be hard to leave a locked way of thinking, hu?! And must be also hard to understand, that I can't upgrade to Aeva so long this problem persist?!?
But I understand: You are God and I'm only the little Ant under your shoe. No matter what you say, you're always right,   even if you're wrong...  ::) :o
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on February 25, 2010, 08:08:10 AM
Because you're so smart, then tell me WHY you can't upgrade? Why do you know better than the author, eh?

Do you think the upgrade will kill your uploads even more than they are already?
Because, as everybody knows, my hobby is to kill stuff. Ah, good old sane fun!! I love killing stuff. Especially pictures of rabbits.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: M*I*B on February 25, 2010, 08:38:11 AM
Quote from: Nao on February 25, 2010, 08:08:10 AMDo you think the upgrade will kill your uploads even more than they are already?

Ahhh, the Author see the problem now... WOW. But that's all... shame

But what you   have still not getting it is, I did not ask for "how to upgrade", but   had asked for help in the rescue of the gallery contents. This really is not hard to understand, for quite a   few but probably still behind the intellectual horizon. And to express something to the horizon: An   update does not save the contents of the gallery ...
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Foreclosurepedia on February 25, 2010, 08:47:41 AM
Kinda stepped in the middle of something I don't understand.  What I do need to understand is this:  You (Nao) are stating that I need to upgrade to Aeva.  That's fine albeit I just upgraded SMG in DEC.  The pertinent questions are these:


Figured by simply sending me to threads it would cut back on your need to type.  I changed the permissions for guests (never set them up as we don't actively seek membership).

I thank you for your time in this as I know you are probably pretty busy!  :D
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Foreclosurepedia on February 25, 2010, 09:02:06 AM
Quote from: tfs on February 24, 2010, 08:17:19 PM
That's the number of unseen images.  Go to Gallery tab, then click on "Unseen".  It should show you those 125 items.  There's a link there to mark all as unseen.

Thanx!  :D  That took the number away.  What exactly does 'Unseen' mean?  Pix I never viewed?  I mean by clicking 'Mark All As Unseen' what does that action do?  No big deal, I'm simply a curious kinda person.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on February 25, 2010, 09:05:45 AM
Quote from: M*I*B on February 25, 2010, 08:38:11 AM
Ahhh, the Author see the problem now... WOW.
I don't see a freaking problem, you idiot!

QuoteBut what you   have still not getting it is, I did not ask for "how to upgrade",
No you didn't. But I told you to IF YOU WANT SUPPORT! I am NOT providing support for SMG any longer! Can't you put that into your tiny little brain?!

Quotebut had asked for help in the rescue of the gallery contents. This really is not hard to understand, for quite a   few but probably still behind the intellectual horizon. And to express something to the horizon: An   update does not save the contents of the gallery ...
YES IT DOES, FOR GOD'S SAKE!!!!!!!!!!

Serves me well for trying to talk with a monkey! >:(

@ibrrorg> There is no "movement" of pictures from SMG to Aeva. It stays in the same place!! My, what's with you people? Don't you understand?! Aeva Media 1.0 really is SMF Media Gallery 3.0. It was rebranded because of an agreement with Dragooon, that I would own the moral rights on SMG 3.0 and he would retain the ones on earlier versions. I renamed it to make the change clearer. I even discussed it many times. I simply renamed database tables (they're automatically renamed when doing the upgrade for the first time), and didn't touch any of the files.  ??? ??? ???
And no, "SMG in its current state" will no longer (ever) be updated or supported. It's stated in the official mod page, in plain view! My!
And Unseen Items is the same as SMF's Unread Posts, only for items instead of topics.

Damn, where are my pills!!!!!
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: [unplugged] on February 25, 2010, 09:21:17 AM
I upgraded a while back with no trouble at all, on a custom theme, with several other mods installed. Great job Nao, keep doing what you're doing.

I'm not sure why everyone is so reluctant to upgrade.

It doesn't cause your computer to go into nuclear meltdown. Well, there was a small spark, but I was able to extinguish it with a moist towelette....
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: M*I*B on February 25, 2010, 09:29:38 AM
... you don't know it ... The idiot with a skull made of glass, which everybody can be seen   working ****** is always the one to other so-dubbed.

So leave me alone FranceMan if you're no more able to explain other people for stupid.

I will not   deny that you're a good coder, but as a human you're a realy big asshole.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Soms on February 25, 2010, 12:09:04 PM
Problem:
Quote from: M*I*B on February 25, 2010, 02:54:38 AM
... a good Idea ... but with that problem I have I'm shure I can't without loosing all content ...  O:)

Solution:
Quote from: Nao on February 25, 2010, 09:05:45 AM

There is no "movement" of pictures from SMG to Aeva. It stays in the same place!! Aeva Media 1.0 really is SMF Media Gallery 3.0. I simply renamed database tables (they're automatically renamed when doing the upgrade for the first time), and didn't touch any of the files.  ??? ??? ???

M*I*B you need to relax a little. You have a problem and in between Nao's anger, he gave you the solution, an explanation and an assurance about your issue. If upgrading is a problem, maybe it helps to just say why this is a problem. You can manually uninstall SMG if automatic uninstall gives error. Don't delete your gallery. You only need to edit the files .php on your forum. While you are busy, you might not see your gallery any more. But as soon as you install AM everything will reappear.

I know Nao can sometimes express his rightful frustration very vividly, remember it is you who need help and Nao (and maybe some others) is the one who is probably going to help you solve the problem.
And please don't start insulting a whole nation by saying things like: 
Quote from: M*I*B on February 25, 2010, 09:29:38 AM
So leave me alone FranceMan.
It would not be right if one would start writing about you being a GermanMan etc. Being French or German does nothing to solve the problem you have with your forum, or does it? Besides, it just diminishes the importance of the discussion. 
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: M*I*B on February 25, 2010, 12:29:41 PM
... what's the Problem? If NAO can call me an Idiot I also can call him FranceMan or harder. Not to mention that   FranceMan is a much friendlier expression as idiot; very simple... And don't forget that NAO was the one starting with insults ... I only step down to NAO's niveau so that he can unterstand me...

Ok, enough with this. I got help from other sides to locate and solve the problem (without trouble). For me the thing is closed and I delete the subscribtion for this thread.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: tfs on February 25, 2010, 12:49:40 PM
I'll interject one thing here, and hope that it helps.  I have a fairly large gallery, at least it seems so to me.  About 6000 photos and MP3 files, along with a few videos.  My backups are about 8 gigs.  I was extremely hesitant to upgrade from SMG 2.05 to AM.  I hemmed and hawed for a couple of weeks because I was having problems completely running some of the maintenance procedures in SMG.  (My shared server is a bit weak, and it was not up to the task)  Things weren't "perfect" and so I was convinced that the upgrade process would time out on my server and cause disaster because of all the "changes" it would have to make.

But then I found out that upgrading does not move any data on the hard drive, it only changes the SQL table names, and adds a few fields here and there.  So I finally made the leap, and it literally took seconds to finish, and that was it.  I was done.

So I suggest backing up your forum, backing up your database, and go for it.  You'll be stuck in a dead end with SMG 2.05.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Kindred on February 25, 2010, 01:06:19 PM
oh, for the love of gods, stop it or I will have to put this section back on moderation and delete all this crap.

MIB: Upgrading does not erase or remove anything. All of your content form SMG is moved into the AEVA format. (not, you can NOT downgrade after that)
However... as always: MAKE A BACKUP BEFORE UPGRADING.

Nao: I understand users like that can be frustrating, but please do not drop to name calling?

Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on February 25, 2010, 02:02:03 PM
Quote from: M*I*B on February 25, 2010, 12:29:41 PM
... what's the Problem? If NAO can call me an Idiot I also can call him FranceMan or harder.
Calling you an idiot doesn't show me as an idiot hater. It just shows me as someone who has little patience with stupidity.
Calling me "FrenchMan", however, means you're being a bigot to the French. Being from the country that gave a meaning to modern bigotry, you should keep quiet on that matter. Now I just can't let that happen without taking notice.

I hereby revoke your license to use any of my mods, including SMF Media Gallery and Aeva Media. It's free software, don't expect me to take more of that from you.

QuoteAnd don't forget that NAO was the one starting with insults ...
*You* started to imply that I was thinking you were stupid, when I simply repeatedly reassured you that upgrading wouldn't break anything. I don't insult people until they've really started getting on my nerves. Good job on that...

QuoteOk, enough with this. I got help from other sides to locate and solve the problem (without trouble). For me the thing is closed and I delete the subscribtion for this thread.
Well it's pretty much too late for that. You're morally and legally unable to continue using my stuff. I can take insults all right. It may even make me laugh. But I'm VERY SERIOUS about bigot attacks.




@Kindred> Are you talking as man to man, or as the SMF Team representative?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Kindred on February 25, 2010, 02:58:57 PM
a little of both Nao. :)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on February 25, 2010, 03:05:30 PM
I have a very short statement for you as a man ("I know! I'll try"), and a very, very long statement for you as the SMF team representative -- and you're not going to like it, as it basically says "I don't care". I've written it, then pasted it into a text file instead of posting it here directly.
Do you want it?
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Kindred on February 25, 2010, 03:31:40 PM
nah...  I have a pretty good idea what it says :P

:o
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: MarcusJ on February 25, 2010, 03:58:40 PM
I don't understand why some people can't follow simple instructions. 

1.  SMG is no longer supported.

2.  Upgrade to Aeva media if you want support. 

Why do people find it necessary to bash the folks who code us great plugins for FREE?  I get so tired of seeing that.

Nao, thank you for a quality addition to SMF.  Aeva media works perfectly for me.  A huge step up from SMG.  Don't let the ingrates get to you.  There are plenty of us out here who appreciate what you and others like you do for SMF.

Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on February 25, 2010, 04:44:43 PM
Now I like that better. You got the spirit ;D

(Wait until your gallery starts screwing up, eheh!)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Foreclosurepedia on February 25, 2010, 05:24:57 PM
Quote from: Nao on February 25, 2010, 09:05:45 AM
@ibrrorg> There is no "movement" of pictures from SMG to Aeva. It stays in the same place!! My, what's with you people? Don't you understand?! Aeva Media 1.0 really is SMF Media Gallery 3.0. It was rebranded because of an agreement with Dragooon, that I would own the moral rights on SMG 3.0 and he would retain the ones on earlier versions. I renamed it to make the change clearer. I even discussed it many times. I simply renamed database tables (they're automatically renamed when doing the upgrade for the first time), and didn't touch any of the files.  ??? ??? ???
And no, "SMG in its current state" will no longer (ever) be updated or supported. It's stated in the official mod page, in plain view! My!
And Unseen Items is the same as SMF's Unread Posts, only for items instead of topics.

Damn, where are my pills!!!!!

I'll attribute your frustration to your running gunbattles w/MIB.  Look, I just dropped by the thread to ask a simple question.  I upgraded in DEC09 and haven't had a reason to read the 277 pages of stuff as I've never had an issue. 

It would seem that as you aren't going to support the mod anymore it would make more sense to lock the thread than blow a gasket on folks like me. 
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on February 25, 2010, 05:50:20 PM
Well, I'm not asking for it to be locked mainly because (1) Dragooon can decide to support it himself after all (although it's very unlikely), and (2) some people just don't seem to understand that Aeva Media is the new SMG, and they should update.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Foreclosurepedia on February 25, 2010, 08:01:40 PM
I transferred over to your new deal (Aeva) and had no installation issues and I'm a newbie.  My galleries all moved along nicely.  Probably does far more than we hobos will ever understand, but as it:  a) does what we want; b) has support; and c) seems to be the future we are very thankful for your work!

I have a question or two; I will read ur thread at Aeva first, and if still unanswered will post there.
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Darkness_ on March 16, 2010, 10:33:18 AM
how can I get the number of unseen items in the item. I use another theme

2.0 rc 1.2

echo '<li><a href="', $scripturl, '?action=mgallery" class="kwick opt2"><span>Gallerij</span></a></li>';

is has to be in this part after "Gallerij"
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Nao 尚 on March 16, 2010, 01:04:16 PM
No support provided for this mod anymore. Upgrade to Aeva Media or just handle yourself.
(Mods, feel free to lock the topic...)
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: Kindred on March 16, 2010, 01:38:02 PM
<click>
Title: Re: SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)
Post by: SlammedDime on March 16, 2010, 02:09:13 PM
Nao - Please PM me if you would like SMG set to 'Archived' status on the mod site, which will create a warning on the mod page stating it is no longer supported as well.