Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 1052
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Blocks speak! Do you have an interest in getting more blocks - or even making your own? The Blocks Board is for you!

PHOTO GALLERY PLUS - Simple Portal Plug-In

Started by Chen Zhen, February 23, 2010, 12:33:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Chen Zhen

****  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/).  (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):
      
/* 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):
      
/* 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.

jacoatnos

Does this plug in support rc3 ? just tried to istall and get this error:

QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.

jacoatnos

any idea on how i can resolve this or is this because it is not compatible with smf 2.0 RC3 ?

AST3R1X

Open the zip and in the package-info.xml

Find

<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

<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

<uninstall for="2.0RC1, 2.0 RC1-1, 2.0 RC1.2, 2.0 RC2, 2.0RC2">


Replace it with

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

jacoatnos



Chen Zhen

Quote from: AST3R1X on April 06, 2010, 10:50:37 AM
Open the zip and in the package-info.xml

Find

<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

<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

<uninstall for="2.0RC1, 2.0 RC1-1, 2.0 RC1.2, 2.0 RC2, 2.0RC2">


Replace it with

<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

TW1ST3D

What settings or code can I modify to get the display (Picture) bigger?

Thanks In Advance......

barbar

everything installs fine , now all i see is the default "horizon" image from aeva when i have 3 attached pics in my forums

cyberworm

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

Deezel

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.

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

wiecher


agent47

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.

S@ffz

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


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