SimplePortal
Customization => Blocks and Modifications => Topic started 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.
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>';
-
wont work anymore with newest aeva
-
Which block did you try this with?
-
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
-
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.
global $sourcedir;
require_once($sourcedir . '/Aeva-Subs.php');
echo '<h2>Random Images</h2>';
echo aeva_listItems(aeva_getMediaItems(0, 12, 'RAND()'), false, '', 3);
-
Try this one in a php block.
This was from another edit which a user added to the custom coding board.
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
-
@bluedevil
Thanks for the code...but which code must be use, that pictures goes from right to left? Like a slideshow?
-
@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?
-
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)
-
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.
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);
-
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).
-
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).