News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

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

RCC_SaMiaM

Yes have JS and flash, yes sure I used the exact BBC code it says in the gallery, not sure if it works in default them since I removed that option on my site.

Dragooon

Can you see if it works when you add ;theme=1 at the end of URL

What happens when you try the link which is said in the BBC?

RCC_SaMiaM

Quote from: Dragooon on October 27, 2008, 02:01:32 PM
Can you see if it works when you add ;theme=1 at the end of URL

I have set my theme as default, so that just shows the same theme.

Quote from: Dragooon on October 27, 2008, 02:01:32 PM
What happens when you try the link which is said in the BBC?

nothing, blank.  I see the "fetching preview" but it just goes away.

bfeo

Quote from: mforum on October 27, 2008, 01:04:24 PM
As you can see in Embed box at the right at youtube.com says "Embedding disabled by request"

That means you can view video on youtube but can`t embed it elsewhere  :)

Nice catch, mate.

Quote from: Dragooon on October 27, 2008, 12:16:14 PM
Make sure you run the latest version and have the latest files. mgal_theme_url function exists in Subs-MGallery.php

And your video plays for me in FF3.

I have the latest files, and I redownloaded and replaced the mod with the latest after you told me you reuploaded it.

Dragooon

@RCC - blank? Can you post the URL?

@bfeo - It was a error which was lately discovered. Let me see if Nao resolved it.


qubbah

Quote from: Dragooon on October 27, 2008, 01:53:56 PM
@qubbah, replace this line
   $items = getMediaItems(5,true);
with
   $items = getMediaItems(0, 5, 'm.id_media DESC');



Now the thumbnail in tp block doest show. But its properly show in the gallery.


Dragooon

@bfeo - Open MGallery-Sub.php
In the functions MGal_Profile_Summary and MGal_Profile_ViewItems find the line require_once($sourcedir . '/Subs-MGallery.php'); and move it just after where the globals are declared.

@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(5,true);
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=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>
   </td>';

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


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


Dragooon


Nao 尚

Quote from: Dragooon on October 27, 2008, 02:11:46 PM
@bfeo - It was a error which was lately discovered. Let me see if Nao resolved it.
What do you think :D
http://smf-media.com/community/index.php?topic=163.msg842#msg842

I notice you posted your own fix in the meanwhile, though!
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

its still show

The database value you're trying to insert does not exist: sort
/home/myhome/public_html/v4/Sources/Subs-MGallery.php
3372


when i change
   $items = getMediaItems(5,true);

to this
$items = getMediaItems(0, 5, 'm.id_media DESC');

the thumnail dosnt show at all..
sorry... i think there is something wrong with my action..

Burke ♞ Knight

Quote from: RCC_SaMiaM on October 27, 2008, 02:17:09 PM
Oh fixed it, permissions issue with MGalleryItem.php

What exactly did you do?
I have same issue, and need the fix.

bfeo

There doesn't appear to be any way to prune comments easily?  On a per comment basis?


RCC_SaMiaM

For the mass upload, is the form action suppose to be blank?  I notice there is no javascript to perform an action either.  So that is why mine does nothing.



Nao 尚

That's because your picture file is corrupted.
http://www.bkgta.co.cc/MGalleryItem.php?id=3

Just have a look... It says 0x0 pixels. You can download it and launch it in programs like ACDSee, it will correctly decode them -- but your browser might not. I'm using Opera and it doesn't. I tried to reupload on my website and it doesn't show up. All of my other pics do.

Edit -- that's because your file says this at the beginning.....

<br />
<b>Notice</b>:  Undefined index:  sp-forum in <b>/home/bkwebhos/public_html/bkgta.co.cc/Sources/Subs.php</b> on line <b>3742</b>

You should fix this. It's not a SMG bug ;) When you uploaded the file, you had this error appear, so it "saved" the error along with it. This is something I'll try to fix, though -- I mean, even though it's not a SMG bug, maybe we can do something to reduce the risk of having such a problem appear.
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.

Nao 尚

Hmm, there's little chance it will solve your problem, but we might as well try that before...
Open up MGalleryItem.php, line 45 (the line says "// Send it").

Add this just before:

if (function_exists('ob_get_level'))
while (@ob_get_level() > 0)
@ob_end_clean();
else
{
@ob_end_clean();
@ob_end_clean();
@ob_end_clean();
}


Save. Upload. Try to download again.
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.

Advertisement: