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

pulkit

Fixed ... There was an error in the Permissions ... I had disallowed regular members from viewing the "SMF Gallery" ... I didn't realize that would stop them from viewing Mgallery because it has the same URL in TP 1.0.5 ...

The regular members were not able to see existing albums till I checked the option "Moderate Gallery" in permissions ... Don't get me wrong here, I don't want regular members to become Moderators for the Gallery, but I just couldn't get them to see anything otherwise ...

Should I leave this option checked ? Would it let them delete other user's stuff ? I tried to login as a regular user but couldn't find the option to do it ... Is it fine to leave this checked ?

Özgür

This code ; recent 5 items on added page. (only SMF 2.0 Beta 4)
this is code make [Sinan] only this message, but i'm changing some code.

And some change demo ; http://www.rockayseri.net/rk/ (under top adverts)

sorry my english =)

Open BoardIndex.template.php and add
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr>
<td width="100%" colspan="5" class="catbg" height="24"><center>Gallery Recent Items</center></td>
</tr><tr>';
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(5);


foreach($items as $item)
echo '
<td class="windowbg',$item['is_new']  ? '2' : '' , '">
<div class="smalltext" style="text-align: center; border: 1px #111 solid; padding: 5px;">
<a href="',$galurl,'sa=viewitem;id=',$item['id'],'" title="', $item['item_title'] ,'">',shorten_subject($item['item_title'], 15),'</a><br />
<a href="',$galurl,'sa=viewitem;id=',$item['id'],'">
<img onmouseout="this.className='imgfade'" onmouseover="this.className='imgfull'" class="imgfade"  src="',$galurl,'sa=getmedia;id=',$item['id_thumb'],'" alt="', $item['item_title'] ,'" /></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=viewalbum;id=',$item['id_album'],'">',shorten_subject($item['album_name'], 15),'</a>
</div>
</td>';

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


and open yourthemes style.css add

.imgfade {
    -moz-opacity:0.3;
    filter:alpha(opacity=30);
   }
.imgfull {
  -moz-opacity:1;
   filter:alpha(opacity=100);
}


So Long

Dragooon


Nao 尚

Hi... I thought I should start following this thread so I'll be posting at least one message in it (so it gets caught in my notification list).

I'm the new co-developer for SMG. Not sure if this will be on a long-term basis, but I'll be doing my best to bring what I can think of for now.
I was also a co-developer on SMF Gallery Pro (upgraded it to SMF2), actually I still consider myself a co-dev on it and I'm on good terms with the author but I must admit it feels nice to be able to share your own work with everyone, so as long as SMF Gallery Pro remains a "private" package, I will focus my work on SMG.
Hopefully we can release a new version featuring my work as soon as I get enough goodies in to warrant one!
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: ЯocKayseri on September 24, 2008, 11:33:48 PM
This code ; recent 5 items on added page. (only SMF 2.0 Beta 4)
this is code make [Sinan] only this message, but i'm changing some code.

And some change demo ; http://www.rockayseri.net/rk/ (under top adverts)

sorry my english =)

Open BoardIndex.template.php and add
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr>
<td width="100%" colspan="5" class="catbg" height="24"><center>Gallery Recent Items</center></td>
</tr><tr>';
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(5);


foreach($items as $item)
echo '
<td class="windowbg',$item['is_new']  ? '2' : '' , '">
<div class="smalltext" style="text-align: center; border: 1px #111 solid; padding: 5px;">
<a href="',$galurl,'sa=viewitem;id=',$item['id'],'" title="', $item['item_title'] ,'">',shorten_subject($item['item_title'], 15),'</a><br />
<a href="',$galurl,'sa=viewitem;id=',$item['id'],'">
<img onmouseout="this.className='imgfade'" onmouseover="this.className='imgfull'" class="imgfade"  src="',$galurl,'sa=getmedia;id=',$item['id_thumb'],'" alt="', $item['item_title'] ,'" /></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=viewalbum;id=',$item['id_album'],'">',shorten_subject($item['album_name'], 15),'</a>
</div>
</td>';

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


and open yourthemes style.css add

.imgfade {
    -moz-opacity:0.3;
    filter:alpha(opacity=30);
   }
.imgfull {
  -moz-opacity:1;
   filter:alpha(opacity=100);
}




how can i put it in the block in TP?

Özgür

Quote from: qubbah on September 25, 2008, 12:07:16 PM
how can i put it in the block in TP?

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

   $request = db_query("
      SELECT m.id_media, m.id_member, IFNULL(mem.realName, m.member_name) AS member_name,  m.id_thumb, m.title, m.description, m.views, m.rating, m.voters,
      a.id_album, a.name, IFNULL(lm.time, 0) <  m.log_last_access_time AS is_new, m.time_added, m.type
      FROM {$db_prefix}mgallery_media AS m
         INNER JOIN {$db_prefix}mgallery_albums AS a ON (a.id_album = m.album_id)
         LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.id_member)
         LEFT JOIN {$db_prefix}mgallery_log_media AS lm ON (lm.id_member = $ID_MEMBER AND lm.id_media = m.id_media)
      WHERE $user_info[mgallery_query_see_album]
      AND m.approved = 1
      ORDER BY RAND()
      LIMIT 1", __FILE__, __LINE__);
   while ($row = mysql_fetch_assoc($request)) {
      $item = array(
         'id' => $row['id_media'],
         'id_album' => $row['id_album'],
         'album_name' => $row['name'],
         'item_title' => $row['title'],
         'member_name' => $row['member_name'],
         'member_id' => $row['id_member'],
         'rating' => $row['voters'] != 0 ? ($row['rating']/$row['voters']) : 0,
         'voters' => $row['voters'],
         'id_thumb' => $row['type'] == 'embed' ? 2 : $row['id_thumb'],
         'desc' => $row['description'],
         'time_added' => $row['time_added'],
         'is_new' => !empty($row['is_new']) && !$user_info['is_guest'],
         'views' => $row['views']
      );
   }
   mysql_free_result($request);

   echo '
<div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">
   <a href="',$galurl,'sa=viewitem;id=',$item['id'],'">',$item['item_title'],'</a><br />
   <a href="',$galurl,'sa=viewitem;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=getmedia;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=viewalbum;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>';


Its simple portal block. But you try :p

So Long

qubbah

very nice... also with Simple Block..

But the problem i have not resolve yet is..

my gallery not show default thumbnail for video and also for image... like from getmedia;id=2

how can i resolve it...

quiz_modder

Quote from: Kindred on September 15, 2008, 10:56:55 PM
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)

Ditto. I would desperately need this kind of functionality before using it on my forum as I would not want to manually import hundreds of images I have.

Özgür

Quote from: qubbah on September 25, 2008, 12:29:42 PM
very nice... also with Simple Block..

But the problem i have not resolve yet is..

my gallery not show default thumbnail for video and also for image... like from getmedia;id=2

how can i resolve it...

find mgal_data folder in forum folder. mgal_data/generic_images/film.png default video thumbnail.


<img alt="" src="',$galurl,'sa=getmedia;id=',$item['id_thumb'],'" alt="" />

This code find default thumbnail, if your change this

',$galurl,'sa=getmedia;id=',$item['id_thumb'],' code with

http://www.youtsite.com/forumfolder/mgal_data/mgal_data/generic_images/film.png this

but other thumbnails other vids, images, etc.. only this image.

sorry my english x 99 =)
So Long

4b11l

I used the conversion. They have all been converted to "general" categories. Is it possible to move it to User Albums?

Krysia

I just installed this mod into 1.1.6, custom theme, and when I went into "Permissions" to set up the Gallery, the text was missing (see pic).

I checked through the mod manually, and everything appears to be in order. I also made sure that the text (language) was also included in the custom theme language folder as well, as I've run into that before.

In addition, I'm also unable to see the "Gallery" text on the Board Index "tabs".



Krysia

Forgot to mention:

I also see the extra "space" between the tab text, but no "Gallery" (see pic).



kyyote

I checked all 12 pages and couldn't find this so I hope I am not being repetitious.

I am getting the error message in my error log.

Unable to load the 'MGallery.english-utf8' language file.

but I only have  the 'MGallery.english.php' language file.

Fixed.  Now if I could only get the 'Gallery' to be a tab with the rest of the tabs, instead of being a link titled "gallery' just above the 'Home' tab.  Plus, if I could rename it 'Media Gallery' to distinguish it from the 'Gallery' already installed, it would be really cool. ;)

Dragooon

Quote from: kyyote on September 26, 2008, 02:59:48 AM
I checked all 12 pages and couldn't find this so I hope I am not being repetitious.

I am getting the error message in my error log.

Unable to load the 'MGallery.english-utf8' language file.

but I only have  the 'MGallery.english.php' language file.

Fixed.  Now if I could only get the 'Gallery' to be a tab with the rest of the tabs, instead of being a link titled "gallery' just above the 'Home' tab.  Plus, if I could rename it 'Media Gallery' to distinguish it from the 'Gallery' already installed, it would be really cool. ;)
Rename MGallery.english.php to MGallery.english-utf8.php

Quote from: Krysia on September 26, 2008, 12:13:19 AM
I just installed this mod into 1.1.6, custom theme, and when I went into "Permissions" to set up the Gallery, the text was missing (see pic).

I checked through the mod manually, and everything appears to be in order. I also made sure that the text (language) was also included in the custom theme language folder as well, as I've run into that before.

In addition, I'm also unable to see the "Gallery" text on the Board Index "tabs".

Make sure your language is english.

Quote from: 4b11l on September 26, 2008, 12:06:03 AM
I used the conversion. They have all been converted to "general" categories. Is it possible to move it to User Albums?
There are no user galleries in SMF Gallery lite, are there?

Quote from: m4tthall on September 25, 2008, 06:56:58 PM
Quote from: Kindred on September 15, 2008, 10:56:55 PM
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)

Ditto. I would desperately need this kind of functionality before using it on my forum as I would not want to manually import hundreds of images I have.
Maybe in future.

Krysia

QuoteMake sure your language is english.
My language is English. It's the only one used on my board.



Godsongz

Quote from: kyyote on September 26, 2008, 02:59:48 AMPlus, if I could rename it 'Media Gallery' to distinguish it from the 'Gallery' already installed, it would be really cool. ;)

In Modifications.english.php change:
$txt['mgallery_gallery'] = 'Gallery';
to:
$txt['mgallery_gallery'] = 'Media Gallery';

Dragooon

Quote from: Krysia on September 26, 2008, 09:05:03 AM
QuoteMake sure your language is english.
My language is English. It's the only one used on my board.
Is it English UTF-8 or English?

Marcus Forsberg

I deleted the entire Mgallery and then reinstalled it as you said, but theconverter still stops at Convert comments

Dragooon


Marcus Forsberg


Advertisement: