SimplePortal

Customization => Blocks and Modifications => Topic started by: Mick. on February 12, 2010, 12:45:44 PM

Title: Blue Devil's Aeva Media block (Obsolete)
Post by: Mick. on February 12, 2010, 12:45:44 PM
Thanks for that Blue Devil.  I got a copy of it, I'm working on using it.

I wanted to ask what block code you're using to display photos horizontally in your forum header?  I like that it's minimalist.

Its a stripped down latest upload gallery.

Code: [Select]
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, 5, 'm.id_media DESC');

echo '

<table border="0" width="100%" cellspacing="1" cellpadding="4">
<br />
     
';
   foreach($items as $item)
      echo '

   <td class="windowbg2">

   <div class="smalltext" style=" line-height: 1.4em; border: 0px #000000 solid; padding: 5px;">
     
      <a href="',$galurl,'sa=item;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';thumb" alt="" /></a><br />
     
      Owner: <a href="',$scripturl,'?action=profile;u=',$item['poster_id'],'">',$item['poster_name'],'</a><br />
     
     
   </div>
   </td>';

echo '
   </tr>
</table>';
Title: Re: Blue Devil's Aeva Media block
Post by: CvH on June 12, 2010, 01:09:05 PM
wont work anymore with newest aeva
Title: Re: Blue Devil's Aeva Media block
Post by: Old Fossil on June 12, 2010, 03:33:23 PM
Which block did you try this with?
Title: Re: Blue Devil's Aeva Media block (Obsolete)
Post by: neon401 on August 05, 2011, 11:21:06 AM
Sorry for bumping an old post, but is there any possibility of seeing this updated to work with the SMF 2.0/SMP 2.3.3?
Title: Re: Blue Devil's Aeva Media block (Obsolete)
Post by: Tricky on August 05, 2011, 03:42:12 PM
Yep would be cool if this was updated
Title: Re: Blue Devil's Aeva Media block (Obsolete)
Post by: Old Fossil on August 05, 2011, 06:16:13 PM
Sorry for bumping an old post, but is there any possibility of seeing this updated to work with the SMF 2.0/SMP 2.3.3?
Yep would be cool if this was updated

Try this one in a php block.

This was from another edit which a user added to the custom coding board.

 
Code: [Select]
global $sourcedir;
   require_once($sourcedir . '/Aeva-Subs.php');
   echo '<h2>Random Images</h2>';
   echo aeva_listItems(aeva_getMediaItems(0, 12, 'RAND()'), false, '', 3);
Title: Re: Blue Devil's Aeva Media block (Obsolete)
Post by: Tricky on August 06, 2011, 04:59:21 PM
Quote

Try this one in a php block.

This was from another edit which a user added to the custom coding board.

 
Code: [Select]
global $sourcedir;
   require_once($sourcedir . '/Aeva-Subs.php');
   echo '<h2>Random Images</h2>';
   echo aeva_listItems(aeva_getMediaItems(0, 12, 'RAND()'), false, '', 3);

Neat Thanks
Title: Re: Blue Devil's Aeva Media block (Obsolete)
Post by: LieberKerl on October 23, 2011, 08:59:30 PM
@bluedevil

Thanks for the code...but which code must be use, that pictures goes from right to left? Like a slideshow?
Title: Re: Blue Devil's Aeva Media block (Obsolete)
Post by: Old Fossil on October 23, 2011, 09:14:36 PM
@bluedevil

Thanks for the code...but which code must be use, that pictures goes from right to left? Like a slideshow?

You do know what Obsolete means right?
Title: Re: Blue Devil's Aeva Media block (Obsolete)
Post by: LieberKerl on October 23, 2011, 09:19:55 PM
It doesnt matter, because this code worked for me, but I want to insert only one animation. The pictures should be able to go from right to left (Slideshow)
Title: Re: Blue Devil's Aeva Media block (Obsolete)
Post by: Old Fossil on October 23, 2011, 09:57:54 PM
I have just tested the code which doesn't have one image as a slideshow.

The following code is what I have on my forum.

Code: [Select]
global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;
loadLanguage('Aeva');
@include_once($sourcedir . '/Aeva-Subs.php');
echo aeva_listItems(aeva_getMediaItems(0, 3, 'RAND()'), false, '', 1);
Title: Re: Blue Devil's Aeva Media block (Obsolete)
Post by: LieberKerl on October 23, 2011, 10:58:33 PM
It looks really very good, thanks! But i think you still didnt understand me.

I want that the pictures moves, like this:

http://www.homepage-total.de/html/marquee_blink.php (http://www.homepage-total.de/html/marquee_blink.php)


Instead of the text, i will use pictures. I hope that you understand me now? I just want, that every picture moves from right to left, like a animation.

The code you wrote is great, but it only lacks the small animation (Marquee).
Title: Re: Blue Devil's Aeva Media block (Obsolete)
Post by: LieberKerl on October 25, 2011, 07:07:27 AM
It looks really very good, thanks! But i think you still didnt understand me.

I want that the pictures moves.

I just want, that every picture moves from right to left, like a animation.

The code you wrote is great, but it only lacks the small animation (Marquee).
SimplePortal 2.3.8 © 2008-2024, SimplePortal