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: 390
  • 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]

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

Author Topic: Aeva Media Block  (Read 86338 times)

0 Members and 1 Guest are viewing this topic.

Offline avenger

  • Semi Newbie
  • *
  • Posts: 15
    • ethical designs
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Aeva Media Block
« Reply #60 on: March 25, 2010, 01:01:56 PM »

I have put together a neat little slide-show package that will display Aeva photos and/or SMF forum photos (image attachments) in a portal block.

CLICK HERE  to view the relevant thread. You might have to login/register to download files.

Specific settings for what you want displayed are done in the block itself and also the settings.php file of the package provided in that thread.

UD


hey underdog, ur code is great! like the slideshow...

can u do something like this with it?

http://spaceforaname.com/gallery-customized.html

cheers!

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Aeva Media Block
« Reply #61 on: March 25, 2010, 09:35:13 PM »

I have put together a neat little slide-show package that will display Aeva photos and/or SMF forum photos (image attachments) in a portal block.

CLICK HERE  to view the relevant thread. You might have to login/register to download files.

Specific settings for what you want displayed are done in the block itself and also the settings.php file of the package provided in that thread.

UD


hey underdog, ur code is great! like the slideshow...

can u do something like this with it?

http://spaceforaname.com/gallery-customized.html

cheers!



The settings.php file from the package I put together will allow you to edit how the slideshow looks so one can choose a view with 1 large photo and several thumbnails such as the one in the link you provided. 

Offline avenger

  • Semi Newbie
  • *
  • Posts: 15
    • ethical designs
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Aeva Media Block
« Reply #62 on: March 26, 2010, 01:01:49 AM »
wow! really.....Bad that i'm not PHP fluent...But I'll give it my best try

thanks!

Offline avenger

  • Semi Newbie
  • *
  • Posts: 15
    • ethical designs
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Aeva Media Block
« Reply #63 on: March 26, 2010, 04:26:33 AM »
ok, after a bit of struggling with PHP,  :(  I'm stuck! all i was able to do with it was speed up the show... can anyone help me with this...i have attached a pic of what i get,

it says to define number of columns etc in the php, changing that doesn't make anything happen...btw I'm now refering to the help sites

if any of you could help with this it would be great!

cheers!

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Aeva Media Block
« Reply #64 on: March 27, 2010, 10:37:24 AM »
ok, after a bit of struggling with PHP,  :(  I'm stuck! all i was able to do with it was speed up the show... can anyone help me with this...i have attached a pic of what i get,

it says to define number of columns etc in the php, changing that doesn't make anything happen...btw I'm now refering to the help sites

if any of you could help with this it would be great!

cheers!

Hmm... At the bottom of that settings.php file there is a list of globals that needs to be either omitted or remark tags placed around it.
Even after testing this myself, any changes made here do not seem to take effect... This is something I will have to fix and then I will release a new version.  Thank you for discovering this issue.
For now, admins will have to use it as is (no thumbnails display).

UD

Offline avenger

  • Semi Newbie
  • *
  • Posts: 15
    • ethical designs
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Aeva Media Block
« Reply #65 on: March 27, 2010, 11:15:41 AM »
Thanks underdog,
Hope it will be some time around soon :)

Offline awiwi

  • Just Registered
  • Posts: 1
  • SMF Version: 1.1.1
  • SP Version: None
Re: Aeva Media Block
« Reply #66 on: April 03, 2010, 01:05:13 AM »
I leave the code with an image at a time but random

Code: [Select]
function show_aeva_media_block()
{
   global $sourcedir;

   // Set amount visible
   $visible = 1;

   // Load the language file
   loadLanguage('Aeva');

   // Grab the file.
   if (file_exists($sourcedir . '/Aeva-Subs.php'))
      require_once($sourcedir . '/Aeva-Subs.php');

   // If it doesn't exist, tell them this and stop running.
   else
   {
      echo '<b>You don\'t have Aeva installed! Unable to continue!</b>';
      return;
   }

   // Use aeva functions to show the media.
   $images = aeva_listItems(aeva_getMediaItems(0, $visible, 'RAND()'), true, '', 1, false, '', 1);

   echo '
      <div id="aeva_pics" style="width: 100%;" overflow="visible">
         <div align="center">'. $images. '</div>
      </div>';
}

show_aeva_media_block();

I hope you learn

Offline esem

  • Newbie
  • Posts: 4
  • SMF Version: 2 RC3
  • SP Version: 2.3.1
Re: Aeva Media Block
« Reply #67 on: April 09, 2010, 07:00:08 AM »
Is it possible to exclude a particular album to display random?

Offline b4pjoe

  • Just Registered
  • Posts: 1
Re: Aeva Media Block
« Reply #68 on: April 11, 2010, 08:39:51 PM »
Try this:

Code: [Select]
global $sourcedir;
require_once($sourcedir . '/Aeva-Subs.php');
echo '<h2>Latest Image</h2>';
echo preg_replace('~;thumb" width="\d+" height="\d+~', '" width="500', str_replace('"><tr>', '" cellspacing="8" style="width: 100%;"><tr>', aeva_listItems(aeva_getMediaItems(0, 1, 'm.id_media DESC'), false, '', 1)));
echo '<h2>Random Images</h2>';
echo aeva_listItems(aeva_getMediaItems(0, 12, 'RAND()'), false, '', 4);

This code works great. Just wondering though if there is a way to limit it to one specific album instead of it grabbing images from all albums?

Offline DaRKeN

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Aeva Media Block
« Reply #69 on: May 01, 2010, 01:20:22 AM »
Is it possible to exclude a particular album to display random?

What I need is to display 8 or 10 images but of a particular album, that is just there. Any ideas?


Thanks!

Offline roomeat

  • Jr. Member
  • **
  • Posts: 51
    • Ozsportsbikes
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Aeva Media Block
« Reply #70 on: May 01, 2010, 04:42:16 AM »

I have put together a neat little slide-show package that will display Aeva photos and/or SMF forum photos (image attachments) in a portal block.

CLICK HERE  to view the relevant thread. You might have to login/register to download files.

Specific settings for what you want displayed are done in the block itself and also the settings.php file of the package provided in that thread.

UD


Thanks for the mod underdog.. but I am having some troubles.
I downloaded and installed the mod, added the code to a php block and when I try to preview it all I get is a error.


Parse error: syntax error, unexpected T_STRING in /var/www/vhosts/ozsportsbikes.com/httpdocs/Sources/PortalBlocks.php(3332) : eval()'d code on line 61


Any ideas what I have done wrong?

Offline roomeat

  • Jr. Member
  • **
  • Posts: 51
    • Ozsportsbikes
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Aeva Media Block
« Reply #71 on: May 01, 2010, 04:43:52 AM »
OH.. And line 3332 contains this:

   eval($content);

Offline roomeat

  • Jr. Member
  • **
  • Posts: 51
    • Ozsportsbikes
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Aeva Media Block
« Reply #72 on: May 01, 2010, 04:46:02 AM »
oops.. its looking at line 61.. so that line is:

   void sp_quickSearch()
      // !!!

Offline DaRKeN

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Aeva Media Block
« Reply #73 on: May 01, 2010, 01:02:59 PM »
Nothing. For more, changing the code, do not use a single album that I choose  :'(


Help Me please  :angel:

Offline z_dane

  • Newbie
  • Posts: 3
  • Gender: Male
  • SMF Version: 1.1.11
  • SP Version: 2.3.2
Re: Aeva Media Block
« Reply #74 on: May 03, 2010, 10:32:12 AM »
Any idea to remove remark posted by xxxx in album xxxx.
I just want the picture appear in the list

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Aeva Media Block
« Reply #75 on: May 03, 2010, 11:45:42 PM »
Thanks for the mod underdog.. but I am having some troubles.
I downloaded and installed the mod, added the code to a php block and when I try to preview it all I get is a error.


Parse error: syntax error, unexpected T_STRING in /var/www/vhosts/ozsportsbikes.com/httpdocs/Sources/PortalBlocks.php(3332) : eval()'d code on line 61


Any ideas what I have done wrong?

Make sure you are adding a PHP block (not HTML) and that it is the proper one for your SMF version.



Offline roomeat

  • Jr. Member
  • **
  • Posts: 51
    • Ozsportsbikes
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Aeva Media Block
« Reply #76 on: May 04, 2010, 02:23:42 PM »
Have checked and it is correct.. but still those errors.
SMF2.0 RC3

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Aeva Media Block
« Reply #77 on: May 15, 2010, 10:37:35 PM »
Have checked and it is correct.. but still those errors.
SMF2.0 RC3

I have just tested this on a smf 2 rc3 install and it works fine with no errors in the smf log.  I can't seem to duplicate your errors.

It does need to be edited for w3c compliance., which I will do for the next version release.

Offline dtek

  • Semi Newbie
  • *
  • Posts: 13
  • SMF Version: 1.1.11
  • SP Version: 2.3.1
Re: Aeva Media Block
« Reply #78 on: May 19, 2010, 12:14:34 PM »
I need to pick the album I want to display images from.  How can I do that?

Offline marinaofpiraeus

  • Just Registered
  • Posts: 1
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Aeva Media Block
« Reply #79 on: December 06, 2010, 08:22:51 AM »
Hello. How can I display the images ordered by latest comments?