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

Akyhne

It would be more proper to call it SMG Gallery ;)

But why do you use both? Isn't there a converter for your old gallery?

Akyhne

Quote from: Bobn on February 10, 2009, 10:38:52 PM
Quote from: akyhne on February 10, 2009, 10:29:19 PM
I think it's MGalleryItem.php placed in your root. You can see an example of using it here: http://smf-media.com/community/index.php?topic=493.0

That displays "Hacking attempt"

There are several examples on the link I gave you on how to use it:

Quote
global $sourcedir, $context, $txt, $galurl, $scripturl, $settings;

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

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

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

foreach ($items as $item)
   bla, bla, bla

Bobn

Quote from: akyhne on February 10, 2009, 10:51:13 PM
Quote from: Bobn on February 10, 2009, 10:38:52 PM
Quote from: akyhne on February 10, 2009, 10:29:19 PM
I think it's MGalleryItem.php placed in your root. You can see an example of using it here: http://smf-media.com/community/index.php?topic=493.0

That displays "Hacking attempt"

There are several examples on the link I gave you on how to use it:

Quote
global $sourcedir, $context, $txt, $galurl, $scripturl, $settings;

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

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

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

foreach ($items as $item)
   bla, bla, bla

Sorry, Im not to good with php. I dont (think) I want to change the gallery that is linked from the forums appearance.

Any help would be appreciated

Akyhne

Try this link: http://smf-media.com/community/index.php?topic=206.msg1241#msg1241

Or create an account at http://smf-media.com/ and ask there. There's a lot of skilled programmers who could help you there. Maybe what you request is already build.

Dragooon

Quote from: akyhne on February 10, 2009, 10:49:36 PM
It would be more proper to call it SMG Gallery ;)
SMG = SMF Media Gallery...so no.

amg944

#2465
Quote from: Dragooon on February 10, 2009, 03:44:53 AM

Your issue is not with the image's not displayed, you're gallery is screwed up as in mgal_data is not chmodded to 777 as well as its sub-albums and it is not able to create the album's folders. You ned to flush your gallery out and start all over again, make sure that you chmod mgal_data and its sub-folders to 777.

Well, I have an update.
Here's what I did after this post:
- deleted all my Albums (60 of them!)
- Uninstall Slideshow
- Uninstall Media 1.5.4
- Re-install Media 1.5.4
- Recreated about 10 Albums
- CHMODDed mgall and Sub dir to 777
- Loaded  about 1,000 pics
- Created 2 more albums
- Deleted these two albums
Then Paff no more thumbnails and the erorrs search gives me this message on almost all my file. 
The following errors were discovered when searching for errors

    * The physical file #12488, used with item #4347, is missing.
    * The physical thumbnail #12489, used with item #4347, is missing.
I tried the fix on Mgallery.php without success.

Anybody can help?
Quote from: Dragooon on February 10, 2009, 03:44:53 AM
Make sure you also dumped the mgallery tables(They'll be prefixed with <your_prefix>_mgallery).Make sure to backup your DB before doing that.
Yes, I did drop all my mgallery DB.
So, I started from scratch with I.5.2 and I'll see how it goes.....

BTW, can I backup mgal directory and restore it if it crashes again???
Is it enough to recover???

BTW2, I'm willing to work with this Mod since it's a GREAT one and offers so much more than any other.

BTW3, Anybody wanting to use the slideshow in a french environment can use this:
Modify the file MGallery.french.php by copying
// Slideshow addon strings
$txt['mgallery_slideshow_config'] = 'Configuration du diaporama';
$txt['mgallery_slideshow'] = 'Diaporama';
$txt['mgallery_ss_duration'] = 'Durée';
$txt['mgallery_ss_duration_st'] = 'Nombre de secondes pour la transition';
$txt['mgallery_pause'] = 'Pause';
$txt['mgallery_resume'] = 'Reprendre';
$txt['mgallery_ss_finished'] = 'Le diaporama est terminé!<br /><br /><a href="%s">Recommencer</a><br /><a href="%s">Revenir à l\'album</a>';

before the end of the file to allow the french members to use the slideshow feature!

Tx.

Nao 尚

@amg> Unlike the English ones, French spelling rules require that a space (actually, half a space, but it's not easy to type that in...) is used prior to any punctuation mark that has two parts in it, such as "?", "!", ":", etc.
Alors, it's "Revenir à l'album", not "Retourner" and even less "Returner" ;)
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.

Bugpac ™

In 2.04 what is the permission for to access unseen area?

Bobn

Can anyone else suggest how I may show my gallery by itself on another web page of our site?

Akyhne

Quote from: Bobn on February 11, 2009, 06:28:31 PM
Can anyone else suggest how I may show my gallery by itself on another web page of our site?

Just a qiuck test of one of the suggestions I gave you:


<?php
require("/mnt/your/path/SSI.php");


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, 7, 'm.id_media DESC');

echo
'
<center><table>
<br />
     <div style="font-size=110%; font-weight: bold; line-height: 1.8em;" style="text-align:center;">Latest Gallery Pics</div><div class="smalltext" style="text-align: center; line-height: 1.4em;"><br /></div>
'
;
  foreach(
$items as $item)
     echo
'

  <td>
  <div class="smalltext" style=" 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['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></center>'
;


?>


I think you have to enable global cookies, but not sure about that. Depends if you are using the code in them same domain, or a sub-domain

It gives this result:

mark7144

Quote from: Bobn on February 11, 2009, 06:28:31 PM
Can anyone else suggest how I may show my gallery by itself on another web page of our site?
I'm desperate for this SSI type function but at the moment there really isn't any decent code out there yet. There's a thread on this at the SMG forum, can you post your support?

http://smf-media.com/community/index.php?topic=68.0

Akyhne

That link is to another issue - how to have your mgallery folder elsewhere. What is your request?

amg944

Quote from: Nao 尚 on February 11, 2009, 01:10:02 PM
@amg> Unlike the English ones, French spelling rules require that a space (actually, half a space, but it's not easy to type that in...) is used prior to any punctuation mark that has two parts in it, such as "?", "!", ":", etc.
Alors, it's "Revenir à l'album", not "Retourner" and even less "Returner" ;)
Hi Nao,
Tx for the french lesson and to improve my site. Now I have to cut my spacebar in half...
Ciao.

mark7144

Quote from: akyhne on February 11, 2009, 07:09:02 PM
That link is to another issue - how to have your mgallery folder elsewhere. What is your request?
I have my main website and then I have my forum, I want SMG to show on a sub-page of my main website. So basically have the gallery look decent running off SSI.

Akyhne

The whole gallery? I think that's not possible or at least a huge job to do. SMF Media is not build to run outside the SMF forum.

Smoky "Rider" Blue

Quote from: mark7144 on February 11, 2009, 07:24:12 PM
Quote from: akyhne on February 11, 2009, 07:09:02 PM
That link is to another issue - how to have your mgallery folder elsewhere. What is your request?
I have my main website and then I have my forum, I want SMG to show on a sub-page of my main website. So basically have the gallery look decent running off SSI.

simple solution: find a free flash gallery that will allow you to place it into your front page of the site ;)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Smoky "Rider" Blue

Nao or Dragooon:

Field 'exif' doesn't have a default value
File: C:\Program Files (x86)\EasyPHP 3.0\www\forum\Packages\temp\db_mgallery.php
Line: 407



getting this on a re-install..  :'(
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Akyhne

Quote from: SmokyBlue on February 11, 2009, 09:29:20 PM
Nao or Dragooon:

Field 'exif' doesn't have a default value
File: C:\Program Files (x86)\EasyPHP 3.0\www\forum\Packages\temp\db_mgallery.php
Line: 407




getting this on a re-install..  :'(



simple solution: find a free flash gallery that works ;)

Bobn

Quote from: akyhne on February 11, 2009, 09:34:20 PM
Quote from: SmokyBlue on February 11, 2009, 09:29:20 PM
Nao or Dragooon:

Field 'exif' doesn't have a default value
File: C:\Program Files (x86)\EasyPHP 3.0\www\forum\Packages\temp\db_mgallery.php
Line: 407




getting this on a re-install..  :'(



simple solution: find a free flash gallery that works ;)


Smoky "Rider" Blue

i would say something, but then.. lmao.. im afraid i wont come back to this thread.

inserting a flash gallery for a mod that i want to show on smf and not my home page is what the goal is, but thanks akyhne..

next person that knows what the default value is please, without being a *****..

hmm you too bobn.. apparently you guys got that flash installed on your front page.. good to see you have free time.. why not go support your site eh??  O:)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Advertisement: