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

@ImageMagick - Thats pretty normal, most server doesn't have it.

Can we have a link to phpinfo.php? (What is a phpinfo() file?)

tridirk

#3101
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?)
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;
Learning SMF..... Thanks for your help!

Sudhakar Arjunan

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

Kindred

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

Sudhakar Arjunan

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

Darkness_

#3105
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 ?

LinK187

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

PRaDiUS

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.

          [ RGXbox.com ]

Nao 尚

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

LinK187


PRaDiUS

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

          [ RGXbox.com ]

tridirk

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?)
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.
Learning SMF..... Thanks for your help!

Darkness_

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?

Owdy

#3113
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
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Owdy

#3114
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.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Dragooon

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?

Owdy

#3116
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
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Dragooon

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.

Dragooon

#3118
@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.

Owdy

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.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Advertisement: