News:

Want to get involved in developing SMF, then why not lend a hand on our github!

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

yrral

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

taha116

#1561
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
"The man who smiles when things go wrong has though of someone to blame things on"
I forgot the name
BUY electronic cigarettes with rechargeable batteries as well as flavored refills for cheap prices and only 1-2 dollars of shipping!
http://www.ngcigarettes.com/
~Taha116

dannyd

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.


LinK187

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.

Dragooon

@taha116 - SMG is conflicting with another mod of yours, You will be needing to perform a manual installation.

Speedbast

@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


taha116

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?
"The man who smiles when things go wrong has though of someone to blame things on"
I forgot the name
BUY electronic cigarettes with rechargeable batteries as well as flavored refills for cheap prices and only 1-2 dollars of shipping!
http://www.ngcigarettes.com/
~Taha116

Dragooon

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

Nao 尚

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

ke4obt

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)
Thanks Much

Flip - KE4OBT
     The Blind Ham
Helping other blind hams
get on the air!


Yes I am really a BLIND user!

So, if a mod doesn't install properly, and I can't get help from your part of the forum,
I will come begging for YOUR help since you wrote it and know how it works
um, uh, well,
At least I would really, really hope you do!
HEE-HEE-HEE

ccraciun

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!

hansdampf

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)

Dragooon

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.

hansdampf

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!  ;)

afe

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.

Smoky "Rider" Blue

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
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

HellBent


afe

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

taha116

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 man who smiles when things go wrong has though of someone to blame things on"
I forgot the name
BUY electronic cigarettes with rechargeable batteries as well as flavored refills for cheap prices and only 1-2 dollars of shipping!
http://www.ngcigarettes.com/
~Taha116

LinK187

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.

Advertisement: