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

Sapo84

Quote from: Nao 尚 on November 13, 2008, 05:32:24 AM
It doesn't mean that--since Javascript is used to initialize the Flash object, it could also be related to the Flash component, obviously. But I'm leaning towards the Mootools library anyway. Although the fact that it still crashed after using the original author's "recommended" library version is a concern to me. I'm afraid I can't do anything more for now -- we'll have to let Dragooon decide whether he wants to investigate the issue on his side, or find an alternative, or just leave it be and pray that we are only a handful of sad FancyUpload users. (Although the very fact that the co-developer of SMG has the problem is quite a bit scary in itself.)
Disabling the flash plugin also stops the problem.
Moreover when Opera crashes it says the module with errors is NPSWF32.DLL, which should be a flash dll.

Dragooon

Quote from: SmokyBlue on November 13, 2008, 06:15:08 AM
Nao, or Dragoon..

i updated to the 1.5 and it went very well.. however, i notice this in the logs now:

8: Undefined index: cannot_mgallery_viewprofile
File: /home/***snipped***/public_html/forum/Sources/Security.php
Line: 748

anyone knows how to fix? the bots keep racking it up in the error log on my clients site.  :)
Add this string to your Modifications.english.php
$txt['cannot_mgallery_viewprofile'] = 'You cannot view the gallery profile';

Smoky "Rider" Blue

**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Nao 尚

Quote from: Sapo84 on November 13, 2008, 06:57:35 AM
Disabling the flash plugin also stops the problem.
Didn't think of that... ;)

So that would make the culprit FancyUpload itself... :-/
I dunno, maybe the Flash 10-compatible version is at fault..? But there's no point in going back to a Flash 9-only version when most people are going the Flash 10 way...
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.

BYUFanatic

Quote from: Nao 尚 on November 13, 2008, 05:32:24 AM
QuoteAlso, any ideas as to why my students cannot access the gallery? I've enabled it for everyone - including guests - but still no luck.
Are you sure you enabled permissions in the General Permissions area, for each member group?
Can they access the gallery through a direct link? (/?action=mgallery)

Ah... I was unaware that there was two sets of permissions for users. I have now enabled permissions in in the General Permissions area.

Any idea why every time I access the gallery (after leaving the forum and coming back) that I must go to ADMIN -> SERVER SETTINGS and re-save it with "English" as the language option before I can see all the text properly?

Another question - how to resize the thumbnails for videos? I ran maintenance on the gallery and all the smaller, more manageable thumbnails were replaced with HUGE ones. I tried fiddling with the settings in the ADMIN area but nothing seems to resize them smaller. I don't see an option for attaching a specific thumbnail to a specific video either (although you apparently can attach one to the entire album).

I'm really liking the possibilities of what I can do with this mod for my students. Just gotta get it working smoothly.

Rob

4fit?

I am wanting to include a section in BoardIndex.template.php exactly like the Recent Items on the Gallery index.  I've tried a few different things but none have worked thus far.  How would I go about doing this?

Thanks in advance.

sheryltoo

I would like to add this mod to my site but I'm not sure if I have to delete the gallery that's in my sql database.
It's not linked to my message board so can it stay?
And then I'm not sure how to install this mod. Do I need to set up a new database?
I don't understand any of the steps you need to take in order to set up a database. I set up my gallery over a year ago with lots of help and don't remember how I did that.
And I don't know who I'm suppose to ask for help. Is it you people or people from my host site?
Sorry. I probably sound pretty dumb but I'm trying to learn and need some simple instructions.
Thanks

Dragooon

You don't need to remove any gallery, to know how to install the gallery please see Package Manager


sheryltoo

I'm a little confused about something. When I went to my install package page, I noticed I already installed a package called SMF Gallery lite, 1.9.4, although it hasn't been applied yet.
Is this the same mod?

Burke ♞ Knight

No, it is not. That is SMF Gallery Lite and this mod is SMF Media Gallery.

sheryltoo

Thanks again.
Now if I could just get that verification problem resolved I'd be able to apply these mods.
Sheryl

Manu.G

I get these entries in our errorlog

Undefined index:  child_level
Ficheiro: /is/.../.../../.../Sources/Subs-MGallery.php
Linha: 898


Undefined index: num_items
Ficheiro: /is/.../.../../.../Sources/Subs-MGallery.php
Linha: 939


Undefined index: overall_total
Ficheiro: /is/.../.../../.../Sources/Subs-MGallery.php
Linha: 939


and so on.
Version SMF 2.0.8
SimplePortal 2.3.5

4fit?

Quote from: 4fit? on November 13, 2008, 09:24:34 AM
I am wanting to include a section in BoardIndex.template.php exactly like the Recent Items on the Gallery index.  I've tried a few different things but none have worked thus far.  How would I go about doing this?

Thanks in advance.

Nevermind on this.  Figured it out.  Tweaked the code Nao posted over at smf-media.com.  If anyone is interested, this is the code I used.  The result can be seen on My Site.  I placed the block right above the information center, but it could be placed wherever you wanted it to be.  Also, I have "Recent Additions To The Gallery" hardcoded, but it could easily be changed to a $txt variable if desired.

Big thanks to the Dragoon, Nao, and the rest of the SMF-Media crew for making such a great gallery.

Note:
Nao, just wanted to make you aware that you have two alt tags in the thumb portion of the code I linked to above.


// Show the 5 most recent additions to the Gallery
global $sourcedir, $galurl, $scripturl;

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

if (loadlanguage('MGallery') == false)
  loadLanguage('MGallery', 'english');

$items = getMediaItems(0, 5, 'm.id_media DESC');
echo '<br />
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center; ">
Recent Additions To The Gallery
</div>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">';
echo '<tr>';

foreach ($items as $item)
  echo '
    <td class="windowbg2" width="20%">
      <div class="smalltext" style="text-align: center; line-height: 1.4em; padding: 5px;">
      <a href="',$galurl,'sa=item;id=',$item['id'],'"><img src="',$galurl,'sa=media;id=',$item['id'],';thumb" alt="" /></a><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></div>';
//End showing the 5 most recent additions to the gallery

Nao 尚

Quote from: BYUFanatic on November 13, 2008, 09:06:23 AM
Ah... I was unaware that there was two sets of permissions for users. I have now enabled permissions in in the General Permissions area.
Well, it's not like there's a link to that area just after (re)installing the mod....  :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.

RCC_SaMiaM

How do you show user albums that were converted over from coppermine?  The access field was blank which I thought was the problem so I change it to show to everyone, but I still do not see any of them in the gallery.

Also if I go to "my albums" and click on "Add user album" the url is correct but it just shows the homepage of the gallery.  So that isn't working as well.

dannyd

Is there any way of displaying the recent video on the first page ?

BYUFanatic

Quote from: Nao 尚 on November 13, 2008, 05:48:00 PM
Quote from: BYUFanatic on November 13, 2008, 09:06:23 AM
Ah... I was unaware that there was two sets of permissions for users. I have now enabled permissions in in the General Permissions area.
Well, it's not like there's a link to that area just after (re)installing the mod....  :P

Hmmm... I didn't get that link. Maybe because at the time I had English-UTF8 as my language so the link didn't show up?

In any case, thanks for pointing that out for me. My students are now happily enjoying the videos and I'm pleased at how well it's working.

But, speaking of missing info on the screen - I still have the problem of being forced to go to ADMIN -> SERVER SETTING and re-save my language as "English" every single time I login to the forum in order to see everything showing up correctly in the admin area of SMG. Any idea why?

And, is it possible to re-size the video thumbnails? After I ran maintenance on SMG they went from being nice, easy-to-see multiple thumbnails on the screen at once to these HUGE oversize thumbnails (about one thumbnail per screen). In fact, I'd love to be able to attach my own thumbnails to the videos or to have SMG actually take a snapshot of the video instead of using a "filmstrip" icon. At the very least, I need to resize these thumbnails, they're HUGE!

Rob

Dragooon



Advertisement: