SimplePortal

Customization => Custom Coding => Topic started by: Chen Zhen on February 23, 2010, 12:33:33 AM

Title: PHOTO GALLERY PLUS - Simple Portal Plug-In
Post by: Chen Zhen on February 23, 2010, 12:33:33 AM
****  PHOTO GALLERY PLUS v1.2  ****
****   For SMF and Simple Portal    ****


    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/ (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.

   This will add a Photo Gallery for viewing forum and Aeva photos.            
   This modification is intended to work with a portal but can easily be adjusted to work within your forum index.       
    Please set the necessary variables within the portal block.
    Other settings can be adjusted in:  / slideshow / settings.php      
   Support is provided here: http://askusaquestion.net/index.php/board,36.0.html
        Please post any questions and/or comments in that board.
   
   Respected applications and developers concerning this modification:

   
   Please Note: Do not set the amount to view beyond what is available for any source or you will get unexpected results.
                This modification will work with most but not all themes.
      

<<<<<<<<<<>>>>>>>>>>   
   
Download and install the attached package in your SMF package manager. Now copy and paste the code shown below into a PHP portal block.

<<<<<<<<<<>>>>>>>>>>

Portal Block Code for SMF 1  (Copy and paste into a PHP portal block):
      
Code: [Select]
/* PHOTO GALLERY PLUS v1.2 - Intended for use with  *** Simple Portal ***
    visit: http://askusaquestion.net/index.php/board,36.0.html for SMF 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/)                                          */



/* >>>>>>>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 = 15;

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

/* 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 = 1;

/* 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_smf1.php'))
{
require_once('slideshow/photo_viewer_smf1.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;
   }

<<<<<<<<<<>>>>>>>>>>

Portal Block Code for SMF 2  (Copy and paste into a PHP portal block):
      
Code: [Select]
/* PHOTO GALLERY PLUS v1.2 - Intended for use with  *** Simple Portal ***
    visit: http://askusaquestion.net/index.php/board,36.0.html for SMF 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 Nathaniel and 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/)                                          */



/* >>>>>>>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 = 15;

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

/* 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 = 1;

/* 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;
   }

<<<<<<<<<<>>>>>>>>>>



UD

Updated for SMF 2 rc3 installation.
Title: Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
Post by: jacoatnos on March 30, 2010, 07:06:58 AM
Does this plug in support rc3 ? just tried to istall and get this error:

Quote
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
Post by: jacoatnos on April 06, 2010, 05:32:53 AM
any idea on how i can resolve this or is this because it is not compatible with smf 2.0 RC3 ?
Title: Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
Post by: AST3R1X on April 06, 2010, 10:50:37 AM
Open the zip and in the package-info.xml

Find
Code: [Select]
<install for="2.0RC1, 2.0 RC1, 2.0 RC1-1, 2.0RC1-1, 2.0 RC1.2, 2.0RC1.2, 2.0 RC2, 2.0RC2">

Replace it with
Code: [Select]
<install for="2.0RC1, 2.0 RC1, 2.0 RC1-1, 2.0RC1-1, 2.0 RC1.2, 2.0RC1.2, 2.0 RC2, 2.0 RC3">

Find
Code: [Select]
<uninstall for="2.0RC1, 2.0 RC1-1, 2.0 RC1.2, 2.0 RC2, 2.0RC2">

Replace it with
Code: [Select]
<uninstall for="2.0RC1, 2.0 RC1-1, 2.0 RC1.2, 2.0 RC2, 2.0 RC3">

Rezip all files and upload via package manager.
Title: Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
Post by: jacoatnos on April 06, 2010, 11:03:25 AM
Thanks ! installed and working now !
Title: Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
Post by: AST3R1X on April 06, 2010, 11:05:05 AM
Glad to help.  :D
Title: Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
Post by: Chen Zhen on April 11, 2010, 05:16:40 PM
Open the zip and in the package-info.xml

Find
Code: [Select]
<install for="2.0RC1, 2.0 RC1, 2.0 RC1-1, 2.0RC1-1, 2.0 RC1.2, 2.0RC1.2, 2.0 RC2, 2.0RC2">

Replace it with
Code: [Select]
<install for="2.0RC1, 2.0 RC1, 2.0 RC1-1, 2.0RC1-1, 2.0 RC1.2, 2.0RC1.2, 2.0 RC2, 2.0 RC3">

Find
Code: [Select]
<uninstall for="2.0RC1, 2.0 RC1-1, 2.0 RC1.2, 2.0 RC2, 2.0RC2">

Replace it with
Code: [Select]
<uninstall for="2.0RC1, 2.0 RC1-1, 2.0 RC1.2, 2.0 RC2, 2.0 RC3">

Rezip all files and upload via package manager.

Thanks for helping people out with it AST3RIX.

<<<<>>>>

I updated the first post to install on SMF 2 rc3. I will be updating the post in the near future yet again with some changes (new version).


UD
Title: Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
Post by: TW1ST3D on April 27, 2010, 09:18:20 PM
What settings or code can I modify to get the display (Picture) bigger?

Thanks In Advance......
Title: Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
Post by: barbar on January 27, 2011, 11:58:14 PM
everything installs fine , now all i see is the default "horizon" image from aeva when i have 3 attached pics in my forums
Title: Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
Post by: cyberworm on February 24, 2011, 03:29:24 PM
is it possible to make a slide show like here..
http://www.downloadbd.net/
in "New Release",where image will be collected from attachments & gallery ,also hyper-linked with post/topic..

i use that code for test in my site manually...
Title: Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
Post by: Deezel on March 08, 2011, 08:13:40 AM
I too would like to shrink the images to fit in the block properly.
Also, I am having an issue with trying to get it to pull images from a specific thread as opposed to the whole forum. I put in the topic id# in where it should be... i think.
I have attached the code set for what i want maybe i have something set wrong??
Any help to fix these 2 matters would be greatly appreciated.

Code: [Select]
/* PHOTO GALLERY PLUS v1.2 - Intended for use with  *** Simple Portal ***
    visit: http://askusaquestion.net/index.php/board,36.0.html for SMF 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 Nathaniel and 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/)                                          */



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

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

/* 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 = 0;

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

/* Enter topic id to view pics from
- set to 0 for whole forum
- board id in next version */
$topic_id = 165.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 = 1;

/* 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;
   }
Title: Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
Post by: wiecher on June 11, 2011, 05:39:33 AM
How can i make the photo`s wider ?
Title: Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
Post by: agent47 on July 03, 2011, 05:38:59 AM
Is there anyway this can be re-written for SMF 2.0 bud? I tried updating package-info.xml but that didn't seem to do the trick. This is something I have been looking for the past couple of days TBH.
Title: Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
Post by: S@ffz on July 03, 2011, 08:42:53 AM
Hi guyz

I am running SMF 2.0 with SP2.3.3 along with  AEVE media Gallery latest version
and to display images from my gallery i was given this code and it work.
copy/paste into a custom php block.  Hope this helps

Code: [Select]
// Configurable Graphics block
// for use with TinyPortal 1.0 Beta5
// for use with Aeva multimedia mod for SMF
// by BlueSteel 18th April 2010
// @TinyPortal : http://www.tinyportal.co.uk/index.php?topic=32504.0
// Scrolling Options - on/off direction, speed, delay
// Item display options Random/Newest, number of item to display,selectable albums

// Marquee script Variables
$marq_offon = 1;                        // 0=off 1=on
$marq_behavior = "scroll";         // what should marquee do "scroll"
$marq_direction = "down";            // "left" , "right" , "up", "down"
$marq_height = "400px";            // size of viewable block area
$marq_scrolldelay = 10;            // delay iteritions
$marq_scrollamount = 1;         // how many pixels to scroll block each iteration
$marq_onmouseover = "this.stop()"; // what to do on mouseover
$marq_onmouseout = "this.start()";  // what to do on mouseout

// Aeva script variables
// - Gets items : array aeva_getMediaItems(int start, int limit, string sort, bool all_albums, array albums, string custom)
$aeva_start = 0;                   // where item number to start at
$aeva_limit = 30;                  // maximum number of items to display
$aeva_sort = 'RAND()';  // sort see Aeva-Subs.php for values I use 'RAND()' or 'm.time_added DESC' DESC or ASC for sorting order
$aeva_all_albums = true;           // all albums .. true or false 
$aeva_albums = array();            // for a single album put eg: array(10) for an array of albums eg: array(3,5,7) for all albums eg:array()
$aeva_custom ='m.id_media';        // aeva custom string
// - Creates HTML for viewing items : string aeva_listItems(array items, bool in_album = false, string align, int per_line)
$aeva_in_album = false;            // unknown paramiter .. set to false by default for now 
$aeva_align = 'center';            // allign items 'left' 'center' 'right'
$aeva_per_line = 3;                // number of colums to display at once eg: 1 for single .. 3 for 3 items accross

global $sourcedir;   
require_once($sourcedir . '/Aeva-Subs.php');   

// -------------------------------------
// Don't edit anything below this line
// -------------------------------------

// Start marquee routine if set to do so
if ($marq_offon == 1){
echo '<marquee behavior=',$marq_behavior,' direction=',$marq_direction,' height=',$marq_height,' scrolldelay=',$marq_scrolldelay,' scrollamount=',$marq_scrollamount,' onmouseover=',$marq_onmouseover,' onmouseout=',$marq_onmouseout,' >';
}
// end marquee routine

// start actual block to be displayed
    echo '<div style="width: 100% height:',$marq_height,'; overflow: hidden;">';
    echo aeva_listItems(aeva_getMediaItems($aeva_start,$aeva_limit,$aeva_sort,$aeva_all_albums,$aeva_albums,$aeva_custom),$aeva_in_album,$aeva_align,$aeva_per_line);
    echo '</div>';
// end actual block to be displayed

//start marquee routine   
if ($marq_offon == 1){
echo'</marquee>';
} //end scrolling routine
SimplePortal 2.3.8 © 2008-2024, SimplePortal