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

Nao 尚

Quote from: ЯocKayseri on October 28, 2008, 02:25:10 PM
Yes i did it. but no fixed. now i change denied.png to film.png problem fixed =)
Wow, that's the silliest fix ever... :P
You should try to regenerate again. Dragooon had made a bug that would screw video thumbnails. You may want to copy the new mgal_data folder's contents to your actual gallery folders, too.

Quotehttp://www.dailymotion.com/bookmarks/sixfeetunder2/video/x2lcg7_red_music no thumnbnail

http://www.dailymotion.com/video/x2lcg7_red_music thumbnail ok
Hmm, didn't try the second one, but the first one works fine for me... I do get the thumbnail. Are you sure you have a problem?
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.

Özgür

Quote from: Nao 尚 on October 28, 2008, 02:32:33 PM
Quote from: ЯocKayseri on October 28, 2008, 02:25:10 PM
Yes i did it. but no fixed. now i change denied.png to film.png problem fixed =)
Wow, that's the silliest fix ever... :P
You should try to regenerate again. Dragooon had made a bug that would screw video thumbnails. You may want to copy the new mgal_data folder's contents to your actual gallery folders, too.

Quotehttp://www.dailymotion.com/bookmarks/sixfeetunder2/video/x2lcg7_red_music no thumnbnail

http://www.dailymotion.com/video/x2lcg7_red_music thumbnail ok
Hmm, didn't try the second one, but the first one works fine for me... I do get the thumbnail. Are you sure you have a problem?

no problem. im wrong. i again tested, work fine. thank you.

I try regenarete.


Quote from: Dragooon on October 27, 2008, 02:16:31 PM


@qubbah try this
global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;

   require_once($sourcedir . '/Subs-MGallery.php');
   loadMGal_Settings();

   if(loadlanguage('MGallery') == false)
      loadLanguage('MGallery', 'english');
     $items = getMediaItems(0, 5, 'm.id_media DESC');
echo '
<table>
   <tr>';

   foreach($items as $item)
      echo '
   <td>
   <div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">
      <a href="',$galurl,'sa=item;id=',$item['id'],'">',$item['item_title'],'</a><br />
      <a href="',$galurl,'sa=item;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';thumb" alt="" /></a><br />
      ',$txt['mgallery_views'],' : ',$item['views'],'<br />
      ',$txt['mgallery_posted_by'],' : <a href="',$scripturl,'?action=profile;u=',$item['member_id'],'">',$item['member_name'],'</a><br />
      ',$txt['mgallery_in_album'],' : <a href="',$galurl,'sa=album;id=',$item['id_album'],'">',$item['album_name'],'</a>
      ',$item['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
   </div>
   </td>';

echo '
   </tr>
</table>';


@RCC - The image opens fine to me in FF3?

Album : Work
Viewed : Work
Thumb : work
http://smf-media.com/community/index.php?topic=121.msg970#msg970

item title :
Finally : From now on we are going to raise  ',$item['item_title'],' instead of  ',$item['title'],'

poster : not work
So Long

Nao 尚

Quote from: ЯocKayseri on October 28, 2008, 02:53:49 PM
I try regenarete.
Did it fix your problem? (BTW, your problem was originally due to trying to Regenerate... Since it was buggy... The new Regenerate should revert the problem.)

As for the code... I'll try to contribute a working version:

global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;

   require_once($sourcedir . '/Subs-MGallery.php');
   loadMGal_Settings();

   if (loadlanguage('MGallery') == false)
      loadLanguage('MGallery', 'english');
     $items = getMediaItems(0, 5, 'm.id_media DESC');
echo '
<table border="0">
   <tr>';

   foreach($items as $item)
      echo '
   <td>
   <div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">
      <a href="',$galurl,'sa=item;id=',$item['id'],'">',$item['item_title'],'</a><br />
      <a href="',$galurl,'sa=item;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';thumb" alt="" /></a><br />
      ',$txt['mgallery_views'],': ',$item['views'],'<br />
      ',$txt['mgallery_posted_by'],': <a href="',$scripturl,'?action=profile;u=',$item['poster_id'],'">',$item['poster_name'],'</a><br />
      ',$txt['mgallery_in_album'],': <a href="',$galurl,'sa=album;id=',$item['id_album'],'">',$item['album_name'],'</a>
      ',$item['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
   </div>
   </td>';

echo '
   </tr>
</table>';

Should be working, like that...
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.

qubbah

Quote from: Nao 尚 on October 28, 2008, 05:22:13 PM
Quote from: ЯocKayseri on October 28, 2008, 02:53:49 PM
I try regenarete.
Did it fix your problem? (BTW, your problem was originally due to trying to Regenerate... Since it was buggy... The new Regenerate should revert the problem.)

As for the code... I'll try to contribute a working version:

global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;

   require_once($sourcedir . '/Subs-MGallery.php');
   loadMGal_Settings();

   if (loadlanguage('MGallery') == false)
      loadLanguage('MGallery', 'english');
     $items = getMediaItems(0, 5, 'm.id_media DESC');
echo '
<table border="0">
   <tr>';

   foreach($items as $item)
      echo '
   <td>
   <div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">
      <a href="',$galurl,'sa=item;id=',$item['id'],'">',$item['item_title'],'</a><br />
      <a href="',$galurl,'sa=item;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';thumb" alt="" /></a><br />
      ',$txt['mgallery_views'],': ',$item['views'],'<br />
      ',$txt['mgallery_posted_by'],': <a href="',$scripturl,'?action=profile;u=',$item['poster_id'],'">',$item['poster_name'],'</a><br />
      ',$txt['mgallery_in_album'],': <a href="',$galurl,'sa=album;id=',$item['id_album'],'">',$item['album_name'],'</a>
      ',$item['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
   </div>
   </td>';

echo '
   </tr>
</table>';

Should be working, like that...

YesSsS... very nice and soo smooth. tq
but one things... how about the image/video title..there is no title..

Dragooon

OK this time this has to work
global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;

   require_once($sourcedir . '/Subs-MGallery.php');
   loadMGal_Settings();

   if (loadlanguage('MGallery') == false)
      loadLanguage('MGallery', 'english');
     $items = getMediaItems(0, 5, 'm.id_media DESC');
echo '
<table border="0">
   <tr>';

   foreach($items as $item)
      echo '
   <td>
   <div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">
      <a href="',$galurl,'sa=item;id=',$item['id'],'">',$item['title'],'</a><br />
      <a href="',$galurl,'sa=item;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';thumb" alt="" /></a><br />
      ',$txt['mgallery_views'],': ',$item['views'],'<br />
      ',$txt['mgallery_posted_by'],': <a href="',$scripturl,'?action=profile;u=',$item['poster_id'],'">',$item['poster_name'],'</a><br />
      ',$txt['mgallery_in_album'],': <a href="',$galurl,'sa=album;id=',$item['id_album'],'">',$item['album_name'],'</a>
      ',$item['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
   </div>
   </td>';

qubbah

Quote from: Dragooon on October 29, 2008, 12:25:28 AM
OK this time this has to work
global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;

   require_once($sourcedir . '/Subs-MGallery.php');
   loadMGal_Settings();

   if (loadlanguage('MGallery') == false)
      loadLanguage('MGallery', 'english');
     $items = getMediaItems(0, 5, 'm.id_media DESC');
echo '
<table border="0">
   <tr>';

   foreach($items as $item)
      echo '
   <td>
   <div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">
      <a href="',$galurl,'sa=item;id=',$item['id'],'">',$item['title'],'</a><br />
      <a href="',$galurl,'sa=item;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';thumb" alt="" /></a><br />
      ',$txt['mgallery_views'],': ',$item['views'],'<br />
      ',$txt['mgallery_posted_by'],': <a href="',$scripturl,'?action=profile;u=',$item['poster_id'],'">',$item['poster_name'],'</a><br />
      ',$txt['mgallery_in_album'],': <a href="',$galurl,'sa=album;id=',$item['id_album'],'">',$item['album_name'],'</a>
      ',$item['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
   </div>
   </td>';


I think tehere is a problem with the table of this code..

Dragooon

oops
global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;

   require_once($sourcedir . '/Subs-MGallery.php');
   loadMGal_Settings();

   if (loadlanguage('MGallery') == false)
      loadLanguage('MGallery', 'english');
     $items = getMediaItems(0, 5, 'm.id_media DESC');
echo '
<table border="0">
   <tr>';

   foreach($items as $item)
      echo '
   <td>
   <div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">
      <a href="',$galurl,'sa=item;id=',$item['id'],'">',$item['title'],'</a><br />
      <a href="',$galurl,'sa=item;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';thumb" alt="" /></a><br />
      ',$txt['mgallery_views'],': ',$item['views'],'<br />
      ',$txt['mgallery_posted_by'],': <a href="',$scripturl,'?action=profile;u=',$item['poster_id'],'">',$item['poster_name'],'</a><br />
      ',$txt['mgallery_in_album'],': <a href="',$galurl,'sa=album;id=',$item['id_album'],'">',$item['album_name'],'</a>
      ',$item['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
   </div>
   </td>';
echo '
</tr>
</table>';

Özgür

@Nao problem is fixed.

Comment , report, move  with highslide. And i use to gallery in subfolder. This very nice features ;D
This mod is wonderfull. So thanks :p
So Long

Dragooon


qubbah

why after log out and then login for second time the video icon has been changed from normal to image that has said - SORRY YOU ARE NOT ALLOWED TO VIEW THIS FILE. Make sure you are connected to the server.

Dragooon

Did you run regenerate thumbnails and previews after installing 1.5 b2? If so run it again after installing 1.5 b3(If you haven't done that yet).

qubbah

Quote from: Dragooon on October 29, 2008, 01:24:17 AM
Did you run regenerate thumbnails and previews after installing 1.5 b2? If so run it again after installing 1.5 b3(If you haven't done that yet).

OK DONE... TQ

One more things.. How can we disable MYALBUM or USERALBUM link for regular member that we cant give them access to open own album in the smf permission. I have disable for my user to open their own album but the link to myalbum is still there.

Dragooon

For MyAlbum link
Open MGallery.php, find and remove
'ua' => array(
'title' => '<img alt="" src="'.$settings['images_url'].'/mgallery/user.png" />&nbsp;'.$txt['mgallery_my_user_albums'],
'url' => $galurl.'sa=useralbums',
'active' => $context['mgallery_current'] == 'useralbums',
),


For user album on index link
Open MGallery.template.php, find
<div class="catbg item_heading"><b>',$txt['mgallery_albums'],'</b> -
<a href="'.$galurl.'sa=viewuseralbums">'.$txt['mgallery_view_user_albums'].'</a></div>

Replace with
<div class="catbg item_heading"><b>',$txt['mgallery_albums'],'</b></div>

qubbah

So Far Soo Good.

;D

How can i align commentors avatar to the top of message?

Nao 尚

Quote from: Dragooon on October 29, 2008, 01:44:59 AM
For MyAlbum link
Open MGallery.php, find and remove
'ua' => array(
'title' => '<img alt="" src="'.$settings['images_url'].'/mgallery/user.png" />&nbsp;'.$txt['mgallery_my_user_albums'],
'url' => $galurl.'sa=useralbums',
'active' => $context['mgallery_current'] == 'useralbums',
),
It's actually more logical to add 'perm' => $mgalAllowedTo('user_can_add') to the array, which is what I've just been doing...
I'm also adding more stuff that I've wanted to do for a long time, such as simply not showing the User Albums link if there are none, and same for General Albums :P Just give me a couple of hours to finish that... (I'm doing several things at the same time.)
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.

Dragooon


Ehemm

i have a problem when installing this mod.
in convert item steps, i found this error :
"The conversion has been halted, currently completed 243 of 6727. The converter will automatically resume in 2 seconds "

Duplicate entry '545' for key 1
File: E:\xampp\htdocs\Forum\mgconverter.php
Line: 345

@ line 345 i found this :

__FILE__,__LINE__);

complete syntax is :
// Insert the actual item
$mgalFunc['db_insert'](
'{db_prefix}mgallery_media',
array('id_media', 'title', 'description', 'id_file', 'id_thumb', 'views', 'keywords', 'approved', 'time_added', 'album_id', 'type', 'id_member'),
array($row['id_picture'], $row['title'], $row['description'], $id_file, $id_thumb, $row['views'], $row['keywords'], $row['approved'], $row['date'], $row['id_cat'], 'image', $row['id_member']),
__FILE__,__LINE__);


Help me pls, thanks


Dragooon

Hm, this seems to be one of the old issues. I have a new converter in testing and it hopefully works, would you like to test it? If so can you PM me?

genieuk

Quote from: Dragooon on October 29, 2008, 08:03:08 AM
Hm, this seems to be one of the old issues. I have a new converter in testing and it hopefully works, would you like to test it? If so can you PM me?

Oh, not long then by the looks of things  :D

Mathew

Dragooon

Don't get too excited, it may still take some time due to SMG 1.5.

Advertisement: