To use this website completely, it is necessary to store cookies on your computer.
 

* Navigator

Expand - Collapse

* Statistic

  • *Total Posts: 16403
  • *Total Topics: 2518
  • *Online Today: 8
  • *Most Online: 292
(12. Nov 2016, 09:37:31)
  • *Users: 0
  • *Guests: 0
  • *Spiders: 1
  • *Total: 1

  • *Yahoo!

Mootools Animated Slide Show Block

Started by mikeymx5, 25. Oct 2010, 17:54:25

previous topic - next topic

0 Members and 0 Guests are viewing this topic.

Go Down

mikeymx5

#15
28. Nov 2011, 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.

kev

#16
16. Dec 2011, 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

mikeymx5

#17
03. Apr 2012, 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?

mikeymx5

#18
03. Apr 2012, 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;
   }


[attachment deleted by admin]

Go Up