News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

General support topic for Aeva Media (Latest release: July 28, 2010)

Started by Nao 尚, October 14, 2007, 04:28:15 PM

Previous topic - Next topic

kidzior

Is it possible that it doesn't work, because I want only to use embbed videos, not Media Gallery?

mrtrc266

For SMF Media Gallery there is a really neat block code to use for you portal. Anyone willing to port this to Aeva Media?

    global $sourcedir, $context, $txt, $galurl, $scripturl, $settings;
    if(!file_exists($sourcedir . '/Subs-MGallery.php'))
    {
        echo $txt['sp-mgallery_error'];
        return false;
    }
$parameters[1] = 0;
    $limit = empty($parameters[0]) ? 1 : (int) $parameters[0];
    $type = empty($parameters[1]) ? 'm.id_media DESC' : 'RAND()';
    require_once($sourcedir . '/Subs-MGallery.php');
    loadMGal_Settings();
    loadLanguage('MGallery', sp_languageSelect('MGallery'));
    $items = getMediaItems(0, $limit, $type);
    echo '
    <hr />
<div style="text-align: center; line-height: 1.4em;">The Latest Gallery Submission</div>
<hr />
<table style="border: 0; margin: 0 auto;">';

    foreach ($items as $item)
      echo '
  <tr>
    <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 src="', $galurl, 'sa=media;id=', $item['id'], ';preview" 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>  </tr>';
    echo '
</table>';

$parameters[1] = 1;
    $limit = empty($parameters[0]) ? 5 : (int) $parameters[0];
    $type = empty($parameters[1]) ? 'm.id_media DESC' : 'RAND()';
    require_once($sourcedir . '/Subs-MGallery.php');
    loadMGal_Settings();
    loadLanguage('MGallery', sp_languageSelect('MGallery'));
    $items = getMediaItems(0, $limit, $type);
    echo '
    <hr />
<div style="text-align: center; line-height: 1.4em;">A selection of Random Images from the Gallery</div>
<hr />
<table style="border: 0; margin: 0 auto;">
  <tr style="width:150px; height:150px;">';
    foreach ($items as $item)
      echo '
    <td>
      <div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px #000000 solid; padding: 5px;width:125px;height:160px;">
      <a href="', $galurl, 'sa=item;id=', $item['id'], '">', $item['title'], '</a><br />
      <a href="', $galurl, 'sa=item;id=', $item['id'], '"><img 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>';
$parameters[1] = 1;


    $limit = empty($parameters[0]) ? 5 : (int) $parameters[0];

    $type = empty($parameters[1]) ? 'm.id_media DESC' : 'RAND()';



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

    loadMGal_Settings();

   

    loadLanguage('MGallery', sp_languageSelect('MGallery'));



    $items = getMediaItems(0, $limit, $type);



    echo '
<table style="border: 0; margin: 0 auto;">

  <tr style="width:150px; height:150px;">';



    foreach ($items as $item)

      echo '

    <td>

      <div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px #000000 solid; padding: 5px;width:125px;height:160px;">

      <a href="', $galurl, 'sa=item;id=', $item['id'], '">', $item['title'], '</a><br />

      <a href="', $galurl, 'sa=item;id=', $item['id'], '"><img 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>';
$parameters[1] = 1;


    $limit = empty($parameters[0]) ? 5 : (int) $parameters[0];

    $type = empty($parameters[1]) ? 'm.id_media DESC' : 'RAND()';



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

    loadMGal_Settings();

   

    loadLanguage('MGallery', sp_languageSelect('MGallery'));



    $items = getMediaItems(0, $limit, $type);



    echo '
<table style="border: 0; margin: 0 auto;">

  <tr>';



    foreach ($items as $item)

      echo '

    <td style="width:150; height:150;">

      <div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px #000000 solid; padding: 5px;width:125px;height:160px;">

      <a href="', $galurl, 'sa=item;id=', $item['id'], '">', $item['title'], '</a><br />

      <a href="', $galurl, 'sa=item;id=', $item['id'], '"><img 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>';

Nao 尚

Try v7.0.707 instead, then... (Although I'm not sure its sitelist will be updated in the future. It's now separate from AeMe's sitelist... I think...)
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.

Kindred

did you even bother to read *ANY* of the previous pages in this thread?   this has been discussed and posted several times.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

mrtrc266

Quote from: Kindred on March 16, 2010, 03:30:47 PM
did you even bother to read *ANY* of the previous pages in this thread?   this has been discussed and posted several times.

Yeah and after about an hr I saw a few block codes that work fine with Aeva Media. Thank you all who contributed.

I was asking if anyone could port that particular code to an Aeva Media block. I really liked it when I was using SMF Media Gallery and I haven't seen a code snippet quite like it for Aeva.

Sorry for the post.

kidzior

GREAT! Works well! Thank You very much! :D

tfs

Quote from: mrtrc266 on March 16, 2010, 03:44:02 PM
I was asking if anyone could port that particular code to an Aeva Media block. I really liked it when I was using SMF Media Gallery and I haven't seen a code snippet quite like it for Aeva.

What does it do that's unique?
A good tree cannot bring forth evil fruit, neither can an evil tree bring forth good fruit.

IdanC

any chance for salvation?

if it's a big fix i understand, but if it's a small one i hate to see it fall under the cracks, and thus leaving me with an out-dated version while you all race forward with this beautiful mod.

mrtrc266

Quote from: tfs on March 16, 2010, 04:12:53 PM
Quote from: mrtrc266 on March 16, 2010, 03:44:02 PM
I was asking if anyone could port that particular code to an Aeva Media block. I really liked it when I was using SMF Media Gallery and I haven't seen a code snippet quite like it for Aeva.

What does it do that's unique?

Nothing that's extremely unique, it just has 1 image on the top and for the latest image and 15 below that are random, the layout is cool and fills in the middle portion of the portal very nicely.

I just prefer it over the current layouts that are available for Aeva.

http://monsters-mansion.com/testsmf2

Nao 尚

Yeah, I confirm I can see it doesn't work, and I'll try to fix that...

PS: not racing forward, though. Have no plans to keep updating AeMe forever, at least for SMF. Too many hassles. Too much pain. Foxy!, maybe.
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.

tommybishop

hey guys, sorry if this has been answered already... but i just installed 2.0RC3 and of course i went right to Aeva to handle my media.. but after i installed the Avea mod, every other mod i tried to install goes to a white screen...

Aeva is working great... and after re installing (because Aeva wouldn't uninstall entirely) and trying other mods i have found out that it doesn't happen with anything else I'm currently using.  Well i forgot something, and now it's giving me the white screen again and i would really rather not go back and re-install again.. any help would be great... link to my site.  ---> http://thisisawf.co.cc/ <---- hope it was ok to link that :d

and could it possibly be that i just have to install Aeva after everything else... i know there's normally a little bit of an order to install things in... i know there's a list somewhere on here for what order to install packages in on 1x boards, but i can't find one for 2x boards. 

Thank you in advance for any help you might be able to provide on the subject.  If any other content is needed to discover the source of my problem please let me know.   

oh yeah btw Nao, Thank you so much for Aeva... you seriously are so great i can't begin to explain.  This is probably the best mod I've seen on this site and if i had the choice of using only it or every other mod i would choose it in a heart beat.

IdanC

#2991
a wonderful feeling of serenity just surrounded me... thank you for trying, and good luck!

P.S. can't wait to see the next thing you'll sink you teeth into...

Nao 尚

White screen issues are usually fixed by reinstalling AeMe.
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 尚

Quote from: mrtrc266 on March 16, 2010, 05:41:04 PM
Nothing that's extremely unique, it just has 1 image on the top and for the latest image and 15 below that are random, the layout is cool and fills in the middle portion of the portal very nicely.

I just prefer it over the current layouts that are available for Aeva.
...Your code snippet shows thumbnails for items that are not available to guests. As a result, your website's homepage is filled with "can't display" error messages.
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.

mrtrc266

Quote from: Nao on March 16, 2010, 06:23:02 PM
Quote from: mrtrc266 on March 16, 2010, 05:41:04 PM
Nothing that's extremely unique, it just has 1 image on the top and for the latest image and 15 below that are random, the layout is cool and fills in the middle portion of the portal very nicely.

I just prefer it over the current layouts that are available for Aeva.
...Your code snippet shows thumbnails for items that are not available to guests. As a result, your website's homepage is filled with "can't display" error messages.

Sorry I forgot to set permission, you can see it now.

JOEMO

When I try installing the package for SMF 2.0 RC3, I keep getting the same message every time that the test has failed. Here is the code it keeps failing at:
Find

'mlist' => array(

Add Before

// Aeva Media changes
'media' => array(
'title' => (isset($txt['aeva_gallery']) ? $txt['aeva_gallery'] : 'Media') . (!allowedTo('aeva_access_unseen') || empty($user_info['aeva_unseen']) || $user_info['aeva_unseen'] == -1 ? '' : ' [<b>' . $user_info['aeva_unseen'] . '</b>]'),
'href' => $scripturl . '?action=media',
'show' => allowedTo('aeva_access'),
'sub_buttons' => !allowedTo('aeva_access_unseen') || empty($user_info['aeva_unseen']) || $user_info['aeva_unseen'] == -1 ? array() : array(
'aeva_home' => array(
'title' => $txt['aeva_home'],
'href' => $scripturl . '?action=media',
'show' => true,
),
'aeva_unseen' => array(
'title' => $txt['aeva_unseen'],
'href' => $scripturl . '?action=media;sa=unseen',
'show' => true,
),
),
),
// End Aeva Media changes



And no please dont ask me to install it manually, I really suck at it and I will mess up my forums

kizer

I've had Aeva installed for a while and I'm currently running Aeva ~ Auto-Embed Video & Audio      7.0

Its been running nearly flawless as far as I can tell. I decided to give the Glossary Mod and install and it appears to work, but when I fully enable it the embedded videos no longer work.

http://www.simplemachines.org/community/index.php?topic=282158.0

I was told that I can install another version of the Aeva to fix this in the Glossary thread, but I tried to figure out which one and how it would fix the issue. I've done a search for Glossary and Aeva on the forum with no results to solve issue.

I'm fully aware that if Aeva works and the Glossary works as stand alone's then its one Developers issue over another and I surely do not want to play the blame game, but if I can install a different version of Aeva as in Aeva Media I would happily do it since the Glossary doesn't appear to be as well kept up as Aeva.

I do have two questions thou. Can the Media gallery be installed and used only as an embedding mod without the use of the Gallery? As well is this a fix or am I nuts. It looks like a very well thought out system, but honestly I don't really have a need for the gallery portion of it and if I could keep it disabled I'd rather do it. My reasoning is I'd rather limit the amount of files that are stored on my local server and require my members to find their own sources of image hosting.

Any ideas are very welcome.
Own a Jeep? Links4Jeeps.com

- danny

Quote from: ~aLEX on March 13, 2010, 05:29:00 PM
I haven't fully implemented the gallery since a hack a few weeks back. Needless to say I had to start back up from scratch and re-upload everything. Now, I just ran an error check on aeva media, and I got the following:

The following errors were discovered when searching for errors
The physical file #5, used with item 1, is missing.
The physical file #7, used with item 2, is missing.
The physical file #9, used with item 3, is missing.
The physical file #11, used with item 4, is missing.
The physical file #13, used with item 5, is missing.
The physical file #16, used with item 6, is missing.
The physical file #18, used with item 7, is missing.
The physical file #20, used with item 8, is missing.
The physical file #22, used with item 9, is missing.
The physical file #24, used with item 10, is missing.
The physical file #26, used with item 11, is missing.
The physical file #29, used with item 12, is missing.


Any idea? :o


Quote from: ~aLEX on March 15, 2010, 12:16:36 PM
Quote from: Nao on March 13, 2010, 06:33:32 PM
@alex> Did you correctly reset the folder path and URL in the admin settings?

i thought about that previously, but yes, i just double checked.

anyone have a clue what could be wrong?

petesky

I had such errors due to bad sectors on my disk :-) but i use my own dedicated server here.

Nao 尚

Quote from: IdanC on March 16, 2010, 06:17:33 PM
P.S. can't wait to see the next thing you'll sink you teeth into...
AeMe -> More debugging.
Foxy -> Image rotation (soon), watermarking (later on.)
Don't know where yet -> Per-user preferences.
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: