News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

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

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

Previous topic - Next topic

B.SkiLLs

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

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



VICKTORY THE UNDERDOG Documentary – Pitbulls the untold true story

This is a must read & watch. Then Buy your DVD today. You will not regret it. Totally AWESOME. Best i ever seen. --
 
____________________
Message approved by
: [B. SkiLLs]
 


tuko

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

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.

B.SkiLLs

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

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.



VICKTORY THE UNDERDOG Documentary – Pitbulls the untold true story

This is a must read & watch. Then Buy your DVD today. You will not regret it. Totally AWESOME. Best i ever seen. --
 
____________________
Message approved by
: [B. SkiLLs]
 


B.SkiLLs

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.

VICKTORY THE UNDERDOG Documentary – Pitbulls the untold true story

This is a must read & watch. Then Buy your DVD today. You will not regret it. Totally AWESOME. Best i ever seen. --
 
____________________
Message approved by
: [B. SkiLLs]
 


B.SkiLLs

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.

VICKTORY THE UNDERDOG Documentary – Pitbulls the untold true story

This is a must read & watch. Then Buy your DVD today. You will not regret it. Totally AWESOME. Best i ever seen. --
 
____________________
Message approved by
: [B. SkiLLs]
 


B.SkiLLs

I got it now, thxs guys anyways :)

Love it so far. GREAT MOD
VICKTORY THE UNDERDOG Documentary – Pitbulls the untold true story

This is a must read & watch. Then Buy your DVD today. You will not regret it. Totally AWESOME. Best i ever seen. --
 
____________________
Message approved by
: [B. SkiLLs]
 


Dragooon

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
Glad you liked it :).


christinedlrp

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.

Dragooon

Hm Looks like an ownership issue to me, try asking your host.

tk2012

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

DaisyP

#110
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

Kindred

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)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Bigguy

#112
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

Dragooon

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;



N3RVE

Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

tk2012

That seems to work for the "width" problem.  Thank you!  Is that going to correct the other error I was getting?

Dragooon

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.

Bigguy

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

Dragooon

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

Bigguy

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

Advertisement: