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 login or register.

* Who's Online

  • Dot Guests: 363
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* 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]

Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Author Topic: PHOTO GALLERY PLUS - Simple Portal Plug-In  (Read 18300 times)

0 Members and 1 Guest are viewing this topic.

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
PHOTO GALLERY PLUS - Simple Portal Plug-In
« 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/).  (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.
« Last Edit: April 11, 2010, 05:12:48 PM by Underdog »

Offline jacoatnos

  • Semi Newbie
  • *
  • Posts: 5
  • SMF Version: 2 RC3
  • SP Version: 2.3.1
Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
« Reply #1 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.

Offline jacoatnos

  • Semi Newbie
  • *
  • Posts: 5
  • SMF Version: 2 RC3
  • SP Version: 2.3.1
Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
« Reply #2 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 ?

Offline AST3R1X

  • Semi Newbie
  • *
  • Posts: 13
    • Demon-Pixels
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
« Reply #3 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.

Offline jacoatnos

  • Semi Newbie
  • *
  • Posts: 5
  • SMF Version: 2 RC3
  • SP Version: 2.3.1
Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
« Reply #4 on: April 06, 2010, 11:03:25 AM »
Thanks ! installed and working now !

Offline AST3R1X

  • Semi Newbie
  • *
  • Posts: 13
    • Demon-Pixels
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
« Reply #5 on: April 06, 2010, 11:05:05 AM »
Glad to help.  :D

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
« Reply #6 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

Offline TW1ST3D

  • Semi Newbie
  • *
  • Posts: 28
  • Gender: Male
    • The Georgia LX Club
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
« Reply #7 on: April 27, 2010, 09:18:20 PM »
What settings or code can I modify to get the display (Picture) bigger?

Thanks In Advance......

Offline barbar

  • Semi Newbie
  • *
  • Posts: 22
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
« Reply #8 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

Offline cyberworm

  • Semi Newbie
  • *
  • Posts: 5
  • SMF Version: 2 Beta 3.0/3.1
  • SP Version: 2.3.2
Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
« Reply #9 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...

Offline Deezel

  • Jr. Member
  • **
  • Posts: 54
  • Gender: Male
  • It Is What It Is
    • Owner/Admin
  • SMF Version: 2.0.4
  • SP Version: 2.3.5
Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
« Reply #10 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;
   }

wiecher

  • Guest
Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
« Reply #11 on: June 11, 2011, 05:39:33 AM »
How can i make the photo`s wider ?

Offline agent47

  • Jr. Member
  • **
  • Posts: 61
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
« Reply #12 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.

Offline S@ffz

  • Jr. Member
  • **
  • Posts: 51
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: PHOTO GALLERY PLUS - Simple Portal Plug-In
« Reply #13 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