WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • Looking for a module, a snippet, a droplet to display changing logos,....
  • Print
Pages: [1]   Go Down

Author Topic: Looking for a module, a snippet, a droplet to display changing logos,....  (Read 6874 times)

Offline midiweb

  • Posts: 181
Looking for a module, a snippet, a droplet to display changing logos,....
« on: February 19, 2009, 01:12:28 PM »
hi, I've been looking for a script, a snippet, or droplet  to display different changing logos of firms but at the same place, as small flash animations. I mean, for instance, a logo stays 2 seconds, another one after 4 seconds, and so on,... Cheers

Logged

Offline midiweb

  • Posts: 181
Re: Looking for a module, a snippet, a droplet to display changing logos,....
« Reply #1 on: February 19, 2009, 01:15:27 PM »
sorry, I've just found the module "Random Image" .I'll try it.
Logged

Offline Hans

  • Posts: 914
  • Gender: Male
Re: Looking for a module, a snippet, a droplet to display changing logos,....
« Reply #2 on: February 19, 2009, 09:30:05 PM »
There's also a Droplet (http://www.websitebakers.com/pages/admin/admin-tools/droplets.php) in AMASP
http://www.websitebakers.com/pages/droplets/official-library/images/random-images.php
Hans
Logged
Hans - Nijmegen - The Netherlands

Offline midiweb

  • Posts: 181
Re: Looking for a module, a snippet, a droplet to display changing logos,....
« Reply #3 on: May 19, 2009, 05:39:45 PM »
hi, I tried the dropplet Randomimage but it displays one picture in one time. I would like to display all pictures from the folder in turn, alternately, as one loop.Do you know how to do that?
Logged

Offline Hans

  • Posts: 914
  • Gender: Male
Re: Looking for a module, a snippet, a droplet to display changing logos,....
« Reply #4 on: May 19, 2009, 09:22:30 PM »
http://www.websitebakers.com/pages/modules/image-galleries/smooth-gallery.php in a certain configuration.
Hans
Logged
Hans - Nijmegen - The Netherlands

Argos

  • Guest
Re: Looking for a module, a snippet, a droplet to display changing logos,....
« Reply #5 on: May 20, 2009, 01:04:59 AM »
Maybe not quite what you want out of the box, but with some work you might be able to use http://www.websitebakers.com/pages/modules/image-galleries/slideshow.php

Otherwise you have to use a simple third party image rotator script. There are many javascript ones, and also very neat ajax and jquery scripts with nice effects and options. And Flash ones of course.
Logged

Offline midiweb

  • Posts: 181
Re: Looking for a module, a snippet, a droplet to display changing logos,....
« Reply #6 on: May 20, 2009, 12:33:10 PM »
What have I to change in the dropplet Randomimage to display in a loop without to reload tha page:

Code: [Select]
$folder=opendir(WB_PATH.MEDIA_DIRECTORY.'/'.$dir.'/.');
$names = array();
while ($file = readdir($folder))  {
    $ext=strtolower(substr($file,-4));
    if ($ext==".jpg"||$ext==".gif"||$ext==".png"){
        $names[count($names)] = $file;
    }
}
closedir($folder);
shuffle($names);
$image=$names[0];
$name=substr($image,0,-4);
return '<img src="'.WB_URL.MEDIA_DIRECTORY.'/'.$dir.'/'.$image.'" alt="'.$name.'" width="'.$width.'" height="'.$height.'"/>';



I tried in the index.php with the PHP function

Code: [Select]
for($i=0;$i < 100;$i++)
     {
                  [[RandomImage?dir=logos]]
';
     }

But it displays 100 times the same logo and not the next logo.

Who can help me?

Logged

Argos

  • Guest
Re: Looking for a module, a snippet, a droplet to display changing logos,....
« Reply #7 on: May 20, 2009, 12:40:31 PM »
You cannot use that, because you need some script function. A droplet has no script. That's why Hans and I suggested two different modules to look at.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • Looking for a module, a snippet, a droplet to display changing logos,....
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2