TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,965
  • Latest: boruko
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 431
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 148
  • Total: 148

Slideshow Aeva Media?

Started by Reko, April 09, 2010, 10:51:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Reko

been looking all over the place..... cant seem to find a working slideshow that works with aeva media.... or even a way to post a random pic in a block....

any suggestions?
using newest tp and aeva media.

IchBin

I haven't seen anyone post anything related to Aeva here. Sorry.

Reko

how bout a way to just have a random pic pop up in a block then every few seconds another one from a directory? I'm just looking for something to display random pics every few seconds kinda like a advertisement figured a slideshow would be the thing but I'm using aeva as my gallery and wouldn't mind just thowing the pics into a directory instead of calling them from aeva

IchBin

We have a few fader/slider scripts posted in our Block code snippets board that should give you something like that.

Block Code Snippets Board

Ken.

Haven't been on the Aeva site in a while, but if I remember correctly there was some code posted there for a block... did you check there yet?
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Reko

yes Ive checked everywhere and tried every suggestion and they all come out not working... I'm about to give up  :tickedoff:

Ken.

Just took a look on the Aeva site and it appears that the slide show is a paid option... it's only $5 though, so that's not so bad.

Your best chance may be to post there and ask Nao for help with this.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Renegd98

#7
SMF 2.0 RC3 with TP 1.05-x

This will post 3 random photos horizontal. The first 3 can be changed to whatever number you want.  The second 3 sets the columns. So if it was one they will be vertical.

global $sourcedir;
require_once($sourcedir . '/Aeva-Subs.php');
echo
aeva_listItems(aeva_getMediaItems(0, 3, 'm.id_media'), false, '', 3);


The next code puts one pic on top of a row of 4
global $sourcedir;
   require_once($sourcedir . '/Aeva-Subs.php');
   echo '<h2>Latest Image</h2>';
   echo preg_replace('~;thumb" width="d+" height="d+~', '" width="500', str_replace('"><tr>', '" cellspacing="8" style="width: 100%;"><tr>', aeva_listItems(aeva_getMediaItems(0, 1, 'm.id_media DESC'), false, '', 1)));
   echo '<h2>Random Images</h2>';
   echo aeva_listItems(aeva_getMediaItems(0, 4, 'RAND()'), false, '', 4);


Put in a php block. I have these working on my site with  Aeva 1.1b.

Ken.

" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Blue Steel

hers the code i've just made for a scrolling Aeva Media block
Code ( php block) Select

$start = 0;
$max_number_of_pics = 99;
$sort = 'm.log_last_access_time';

// Start Scrolling routine
echo '<marquee  behavior="scroll" direction="up" height="200px" scrolldelay=" 10" scrollamount=" 1" onmouseover="this.stop()" onmouseout="this.start()">';
echo '<div style="width: 100%; overflow: hidden;">';
// end scrolling routine

global $sourcedir;   
require_once($sourcedir . '/Aeva-Subs.php');   
echo
aeva_listItems(aeva_getMediaItems($start, $max_number_of_pics,$sort, 'm.id_media'), false, '', 1);

//start scrolling routine   
echo'</div></marquee>';
//end scrolling routine


This website is proudly hosted on Crocweb Cloud Website Hosting.