SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)

Started by SMGTeam, September 09, 2008, 03:14:05 PM

Previous topic - Next topic

Dragooon

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.

Anthems

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)?

Bugpac ™

Seems to have worked for me that time... ;D

Bugpac ™

Can it show random thumbnails on the index?

Dragooon

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.

Bugpac ™

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...

Dragooon

Ah, that'd require some custom code blocks.
I may make some later.

cmedic

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

Bugpac ™

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...

Dragooon

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.

cmedic

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')

Dragooon

Open Subs-MGallery.php
Find
return $path_to_dir;
Replace it with
return addslashes($path_to_dir);

cmedic

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

Dragooon


Özgür

Dragooon my error still continue. (dailymotion and other site..)
So Long

Dragooon


tk2012

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: }

christinedlrp

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.

tuko

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.

Bancherd

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

Advertisement: