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

Powerbob

Yes I know ::) but that does not work with smf media gallery! Hence my question!



My SMF 2.1 Beta test site; http://www.pplb.net/smf21/index.php

Dragooon


Powerbob

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



My SMF 2.1 Beta test site; http://www.pplb.net/smf21/index.php

select_id

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.

Dragooon

Thats not entirely true, it do checks for attempts, although id_member is not loaded preventing it from detecting it properly.

select_id

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

ormuz

$txt['mgallery_contest_albums'] = 'Contests';

What is this string for? I don't see any "contest options in admin section...

BYUFanatic

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

don broeren

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!

Dragooon

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

Nao 尚

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
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

ormuz

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

Dragooon

There is no official contest feature, yes I planned one but it is not going to be there for some time.

Krysia

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.

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



Krysia

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?  ???  :(



Powerbob

hmmm sounds like a server prob to me. It installed easily on my test site, and I can upload videos



My SMF 2.1 Beta test site; http://www.pplb.net/smf21/index.php

Dragooon


RCC_SaMiaM

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?

Dragooon


Sudhakar Arjunan

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.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Advertisement: