Language: 
To browser these website, it's necessary to store cookies on your computer.
The cookies contain no personal information, they are required for program control.
  the storage of cookies while browsing this website, on Login and Register.
Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Select language:

Community



Donate

Donate for PortaMx !
Your donation is safe and helps support the issues and causes you care most about.

Stats

  • *Total Members: 4319
  • *Latest: thygrim

  • *Total Posts: 15781
  • *Total Topics: 2384
  • *Online Today: 4
  • *Most Online: 157
(27.08.09, 03:54:53)
  • *Users: 0
  • *Guests: 2
  • *Total: 2

Author Topic: Mootools Animated Slide Show Block  (Read 18638 times)

0 Members and 0 Guests are viewing this topic.

Offline mikeymx5

  • Jr. Member
  • **
  • Posts: 73
  • Gender: Male
    • Houston Miata Club
Re: Mootools Animated Slide Show Block
« Reply #15 on: 28.11.11, 22:57:06 »
Some day I will get around to updating this... I have one problem that I identified. if you have a ' in the description of a photo it will crash the slide show. I need to make it clean the description to ASCII before it outputs it.

Does anyone have any suggestions when I do this I will try to add them in.   I also am going to remove all support for versions of SMF that I do not use and for other gallery packages as my version has evolved far beyond it.

Offline kev

  • Newbie
  • *
  • Posts: 16
  • Gender: Male
Re: Mootools Animated Slide Show Block
« Reply #16 on: 16.12.11, 22:27:29 »
Please excuse me if i have this wrong, i am using SMF 2.1 and have SMF gallery installed i have tried to get this to work after install i have this message

"You do not have Aeva installed... Change gallery type to forum only!"

i changed the gallery type to "1" and got this message

"Fatal error: Call to undefined function sp_loadColors() in /public_html/smf/slideshow/photo_viewer.php on line 173"

Am i right thinking this should work with SMf ? i also presume this is a PHP block code ?

sorry again i am pretty new and still very much trying to get to grips of things

thank you and btw looks awesome

thnx

Offline mikeymx5

  • Jr. Member
  • **
  • Posts: 73
  • Gender: Male
    • Houston Miata Club
Re: Mootools Animated Slide Show Block
« Reply #17 on: 03.04.12, 02:50:28 »
Sorry I just got back to working on this and fixing some long over due bugs such as if you have a ' character in the title or desc it crashes the slide show.

So what version of AEVA do you have?

Offline mikeymx5

  • Jr. Member
  • **
  • Posts: 73
  • Gender: Male
    • Houston Miata Club
Re: Mootools Animated Slide Show Block
« Reply #18 on: 03.04.12, 03:07:12 »
Extract and up load this zip to your root smf folder.

Sorry i dont have time to package or clean up all the old code... this will only work for PortaMX and AEVA... I made many edits so Im sure I broke all the other functionality. All credit goes to the original author that wrote the code.

Also in this version it will pull the latest 7 pictures from the galler with a rating of 3 and up.  Have fun.


my block code
Code: [Select]
/* PHOTO GALLERY PLUS v1.2 - Intended for use with  *** PortaMX and Aeva***
    visit: http://portamx.com/2052/mootools-animated-slide-show-block/ SMF/PortaMX support of this adapted version.
    Slideshow is a javascript class for Mootools 1.2 to stream and animate the presentation of images on your website.
    Copyright (c) 2008 by Aeron Glemann (http://www.electricprism.com/aeron/).  (Freeware)
    This package was adapted to work with SMF and no part of the original script was modified in any way.
    PHOTO GALLERY PLUS is an alternative to viewing pictures on a SMF website and is intended as a package add-on for Simple Portal.

    Respected applications and developers concerning this modification:
        Aeva Media    - Developed by Nao/Gilles (c) Noisen.com / SMF-Media.com
        Simple Portal - Developed by The Simple Portal Team - v2.3.1 (c)2008-2009   (http://simpleportal.net/)
        Slideshow     - Developed by Aeron Glemann  (c)2008 (http://www.electricprism.com/aeron/)           
        Several code edits were done thanks to Louis Lester for SMF 2.0 and AEVA Gallery   with permission from original author.                           */



/* >>>>>>>START - User supplied info<<<<<<< */

/* Enter total number of pics to view for forum */
$total_pics = 15;

/* Set 'true' for recent display and 'false' for random display in forum photos */
$type0 = true;

/* Enter total number of pics to view for aeva */
$total_pics_aeva = 6;

/* Set 'true' for recent display and 'false' for random display in aeva media */
$type1 = true;

/* Enter topic id to view pics from
- set to 0 for whole forum
- board id in next version */
$topic_id = 0;

/* Settings for Forum or Aeva Pics:
1 - Strictly Forum Photo Attachments
2 - Strictly Aeva Photo Gallery
3 - Use both Forum and Aeva Pics */
$gallery_type = 2;

/* Other specific settings can be adjusted in: / slideshow / settings.php    */

/* >>>>>>>END - User supplied info<<<<<<<  */


global $boarddir;
   /*  Grab the photo viewer file. */
   if (file_exists('slideshow/photo_viewer.php'))
{
require_once('slideshow/photo_viewer.php');
$gallery_type = (int)$gallery_type;
photo_gallery_v1a($total_pics, $total_pics_aeva, $type0, $type1, $topic_id, $gallery_type);
}
else
   {
      echo 'You do not have PHOTO GALLERY PLUS installed... Please install the necessary package! ... ';
      echo 'Visit askusaquestion.net for support.';
      return;
   }