TinyPortal

Development => Block Codes => Topic started by: Blue Steel on April 19, 2010, 02:34:53 AM

Title: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Blue Steel on April 19, 2010, 02:34:53 AM
Name of Snippet: Recent/Random Aeva media slideshow
SMF/TP versions tested:: SMF2.0 RC3 /TP1.0  beta 5
Block Type:: php
Author: BlueSteel
Link to block Snipet: http://www.tinyportal.net/index.php?topic=32504.msg261241#msg261241
Other Requirements:Aeva media mod for SMF2 RC3
Description: A VERY Configurable Pics php block for showing latest or random items in Aeva media gallery mod for SMF
Title: Re: [block] Recent/Random Aeva media slideshow php [block]
Post by: ed_m2 on April 19, 2010, 08:41:37 AM
good stuff.. i shall be needing this soon :)
Title: Re: [block] Recent/Random Aeva media slideshow php [block]
Post by: ZarPrime on April 19, 2010, 02:25:24 PM
ed_m,

Please note that this block is designed for use with TP 1.0 beta 5.

BlueSteel, I think that we are going to have to start using a template similar to what Ichbin posted here for Block Code snippets in the future --> http://www.tinyportal.net/index.php?topic=31641.0

I know that you stated right in the code that this is designed for TP 1.0 beta 5 but it won't be that simple for some members.  I am going to start a topic on the Team Board to discuss this to see what we need to do about future snippets.

ZarPrime
Title: Re: [block] Recent/Random Aeva media slideshow php [block]
Post by: Blue Steel on April 19, 2010, 10:32:17 PM
thanks ZarPrime I did look for the template. in the guidelines here.. and couldn't find it .. the one you linked to is a sub cat of this one.. which i didn't see..

I've now updated this message to reflect these changes and also aded the block to the block Smippets area and now waiting for it to be approved ;)
Title: Re: [block] Recent/Random Aeva media slideshow php [block]
Post by: ZarPrime on April 19, 2010, 11:21:46 PM
BlueSteel,

Thanks for this.  It's just that I was starting to get very confused.  I'm not a young guy anymore. ;) I see where you put it in there.  I think it's pink because it hasn't been approved yet but I'm not sure.  I think I will wait to let either Ichbin or freddy approve it because I honestly don't know what they have been doing with that board.  However, it is designed to be moderated, I do know that.

ZarPrime
Title: Re: [block] Recent/Random Aeva media slideshow php [block]
Post by: IchBin on April 20, 2010, 12:50:09 AM
Yes Zar, if you see that red exclamation on the board title you can click on it. Review the post to make sure it is following the posting guideline for that board, then approve it if it is.
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Blue Steel on April 20, 2010, 01:05:54 AM
ok code removed from start message in this thread .. replaced with a link to message in snipet area.

Question. How do i go about editing that block snipet. theres no edit tag in there.. (i need to edit it to fix a spelling error in the code block)
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Ken. on April 20, 2010, 01:10:20 AM
Quote from: BlueSteel on April 20, 2010, 01:05:54 AM
ok code removed from start message in this thread .. replaced with a link to message in snipet area.

Question. How do i go about editing that block snipet. theres no edit tag in there.. (i need to edit it to fix a spelling error in the code block)

Post the needed edits BlueSteel and I'll do them for you.
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: IchBin on April 20, 2010, 01:12:20 AM
Hmm... thats a good point. I'll check the posting permissions in there after dinner.  I'll add the ability to post replies to your own topics.
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Blue Steel on April 20, 2010, 01:19:05 AM
Thanks Ken.

in the code block change


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



with



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



its only a spelling error in a comment line but it was pointed out to me

IchBin: so if/when i have updates for the snipet so i just add in in there as a reply.. wouldn't be be better if i could edit the first commit and then get it re-approved ?
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Ken. on April 20, 2010, 01:56:58 AM
Spelling fixed. :up:
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Blue Steel on April 20, 2010, 06:30:56 AM
Thanks ;)
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: ed_m2 on April 20, 2010, 09:53:48 AM
Quote from: ZarPrime on April 19, 2010, 02:25:24 PM
ed_m,

Please note that this block is designed for use with TP 1.0 beta 5.

hence the word 'soon' ;) :D
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Freddy on April 20, 2010, 01:27:49 PM
Added this to the new snippets index.  Nice work BlueSteel  O0
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Shade on April 30, 2010, 04:58:00 PM
I copy the code and paste it i a new php block, save it and then...nothing happens.

Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: ZarPrime on April 30, 2010, 05:48:39 PM
Here's a posting template from the TinyPortal Posting Guidelines (http://www.tinyportal.net/index.php/topic,581) for you to copy and paste into your next post ...

[b]Link to my site:[/b] http://www.yourdomain.com
[b]SMF version:[/b] SMF ver. here
[b]TP version:[/b] TP ver. here
[b]Theme name and version:[/b] Theme name here
[b]Browser Name and Version: [/b] Browser name/version here
[b]Mods installed:[/b] Mods listed here
[b]Related Error messages:[/b] Error message here


Perhaps with that information at hand, someone will be better able to help you.  You might also want to post the exact code you are using in the block using code tags (#) so that one of our coders can troubleshoot it.

ZarPrime
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Shade on May 03, 2010, 05:20:16 PM
Link to my site: http:www.rpgfaction.com/gameon
SMF version: SMF 2.0 RC3
TP version: TinyPortal 1.0 beta 5-1
Theme name and version: ProCurve
Browser Name and Version: Firefox 3.6.3 e IE
Mods installed: 1.  TinyPortal  1.099  30 April 2010, 02:08:06 PM.  [ Uninstall ]
2. AjaxChat Integration 3.2.1 (modified for SMF 2 RC3) 25 April 2010, 05:01:23 PM. [ Uninstall ]
3. Welcome Topic Mod 2.1 24 April 2010, 08:19:59 PM. [ Uninstall ]
4. SteamProfile Ajax Mod 1.0 24 April 2010, 08:19:39 PM. [ Uninstall ]
5. SMF Links 2.2 24 April 2010, 08:19:15 PM. [ Uninstall ]
6. Enhanced PM Warning Message 1.0 24 April 2010, 08:18:57 PM. [ Uninstall ]
7. SMF Articles 1.3.2a 24 April 2010, 08:18:26 PM. [ Uninstall ]
8. Menu without limit level 1.0.1 24 April 2010, 08:18:00 PM. [ Uninstall ]
9. MonthUser 1.0 24 April 2010, 08:17:33 PM. [ Uninstall ]
10. Menu Order 0.2.3 24 April 2010, 08:17:14 PM. [ Uninstall ]
11. Justify BBCode 2.3.1 24 April 2010, 08:16:31 PM. [ Uninstall ]
12. Mark Personal Messages as Read 1.0.3 24 April 2010, 08:16:11 PM. [ Uninstall ]
13. MessagePreviewOnHover 1.7 24 April 2010, 08:15:44 PM. [ Uninstall ]
14. Order News 1.0.10 24 April 2010, 08:15:23 PM. [ Uninstall ]
15. Member Notepad 1.0 24 April 2010, 08:15:05 PM. [ Uninstall ]
16. Sortable Packages (and Installed Time) 1.3 24 April 2010, 08:13:41 PM. [ Uninstall ]
17. PM Sent Notification 1.0.4 24 April 2010, 08:13:02 PM. [ Uninstall ]
18. Referrals Mod 2.2.7.2 24 April 2010, 08:11:23 PM. [ Uninstall ]
19. SMF Archive 2.0 24 April 2010, 08:10:26 PM. [ Uninstall ]
20. Yahoo Messenger BBCode 1.1.1 24 April 2010, 08:09:58 PM. [ Uninstall ]
21. XQuote XCode 1.0 24 April 2010, 08:09:32 PM. [ Uninstall ]
22. WYSIWYG Quick Reply v2 RC3 24 April 2010, 08:09:11 PM. [ Uninstall ]
23. Forum Name as Prefix for Forum Title 1.1 24 April 2010, 08:08:12 PM. [ Uninstall ]
24. Admin Notepad 2.0.1 24 April 2010, 08:06:55 PM. [ Uninstall ]
25. Automatic Index 2.1 2.1 24 April 2010, 08:06:02 PM. [ Uninstall ]
26. Guest Attachment Preview 1.0.1 24 April 2010, 08:05:41 PM. [ Uninstall ]
27. Hide SMF Version 1.0.6 24 April 2010, 08:04:37 PM. [ Uninstall ]
28. Ultimate Profile 0.9.1 24 April 2010, 08:03:19 PM. [ Uninstall ]
29. TopicStarter Mod 1.5 24 April 2010, 08:02:57 PM. [ Uninstall ]
30. TopicCountOnDisplay 2.0 RC3 24 April 2010, 08:02:35 PM. [ Uninstall ]
31. Spoiler BBCode 1.1.3 24 April 2010, 08:02:01 PM. [ Uninstall ]
32. SMF Social Network LITE 1.0.3 24 April 2010, 08:01:24 PM. [ Uninstall ]
33. SMF Ranks 1.1 24 April 2010, 08:00:53 PM. [ Uninstall ]
34. Search Focus Dropdown 1.44 24 April 2010, 08:00:21 PM. [ Uninstall ]
35. Signature Area BBCode Buttons 2.0.1 24 April 2010, 07:59:45 PM. [ Uninstall ]
36. Simple Imageshack Upload Box 1.0 24 April 2010, 07:58:56 PM. [ Uninstall ]
37. Wireless/RSS amount displayed 1.1.0 24 April 2010, 07:57:56 PM. [ Uninstall ]
38. reCAPTCHA for SMF 0.9.8 24 April 2010, 07:57:17 PM. [ Uninstall ]
39. RSS Feeder 1.1.4 24 April 2010, 07:56:42 PM. [ Uninstall ]
40. Remove Reply Prefix 1.0 24 April 2010, 07:56:05 PM. [ Uninstall ]
41. Quick Moderation on Quick Reply 1.1.2 24 April 2010, 07:54:57 PM. [ Uninstall ]
42. Reflect BBCODE 1.0.5 24 April 2010, 07:54:04 PM. [ Uninstall ]
43. New Topic Button 1.0 24 April 2010, 07:53:21 PM. [ Uninstall ]
44. SMF Multi Quote 1.1.2 24 April 2010, 07:52:42 PM. [ Uninstall ]
45. Move Topic Notification 1.2 24 April 2010, 07:52:15 PM. [ Uninstall ]
46. Change Report Text To Image 1.0 24 April 2010, 07:49:50 PM. [ Uninstall ]
47. Board Notices 1.0.1 24 April 2010, 07:49:27 PM. [ Uninstall ]
48. BoardHover Mod 1.6.0 24 April 2010, 07:49:02 PM. [ Uninstall ]
49. ENotify 1.0.7 24 April 2010, 07:24:33 PM. [ Uninstall ]
50. Dice Roller BBcode 1.3 24 April 2010, 07:24:05 PM. [ Uninstall ]
51. Current Signature Mod 1.1 24 April 2010, 07:23:46 PM. [ Uninstall ]
52. RSS Feed Icon 1.1 24 April 2010, 07:21:44 PM. [ Uninstall ]
53. Board Viewers Mod 1.2.1.1 24 April 2010, 07:21:19 PM. [ Uninstall ]
54. PM to New Members 1.2 24 April 2010, 07:19:04 PM. [ Uninstall ]
55. Post_Board_Select 1.2 24 April 2010, 07:18:27 PM. [ Uninstall ]
56. Twitter and Facebook Publisher mod 2.4 24 April 2010, 07:12:23 PM. [ Uninstall ]
57. Share This Topic 1.4 24 April 2010, 07:11:42 PM. [ Uninstall ]
58. Xbox LIVE GamerTag BBC 1.5 24 April 2010, 07:10:33 PM. [ Uninstall ]
59. PSN GamerCard BBC 1.5 24 April 2010, 07:10:17 PM. [ Uninstall ]
60. Header Link Mod 1.1 24 April 2010, 07:09:37 PM. [ Uninstall ]
61. MetaTags Modification 1.4 24 April 2010, 07:09:11 PM. [ Uninstall ]
62. Google Analytics Code 1.1 24 April 2010, 07:08:36 PM. [ Uninstall ]
63. Reason For Editing Mod 2.3.2 24 April 2010, 07:08:06 PM. [ Uninstall ]
64. AvatarSelect 1.2.1 24 April 2010, 07:05:49 PM. [ Uninstall ]
65. Favicon 1.3 24 April 2010, 07:05:26 PM. [ Uninstall ]
66. Team Page 3.5.5 24 April 2010, 07:04:15 PM. [ Uninstall ]
67. Tagging System 2.2.1 24 April 2010, 07:03:43 PM. [ Uninstall ]
68. Thumbnail Topic Mod 1.2 24 April 2010, 07:03:23 PM. [ Uninstall ]
69. Post Ratings 1.4 24 April 2010, 07:02:57 PM. [ Uninstall ]
70. Pretty URLs 1.0 24 April 2010, 07:02:28 PM. [ Uninstall ]
71. Global Headers Footers 2.0 24 April 2010, 07:01:33 PM. [ Uninstall ]
72. Users Online Today 1.5.6 24 April 2010, 07:01:03 PM. [ Uninstall ]
73. Member Color Link 3.0.8 24 April 2010, 07:00:35 PM. [ Uninstall ]
74. Favourite (Favorite) Boards 1.2 24 April 2010, 06:58:19 PM. [ Uninstall ]
75. SA Affiliates 3.3.5 24 April 2010, 06:57:28 PM. [ Uninstall ]
76. Ad Managment 2.3.6.2 24 April 2010, 06:56:38 PM. [ Uninstall ]
77. Aeva Media 1.1b 24 April 2010, 06:55:02 PM.

Related Error messages: Nothing happens. Just the block empty like in the screenshot in my previous post.
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: ZarPrime on May 03, 2010, 05:28:57 PM
Shade,

I don't have Aeva installed on my test site so I couldn't test it anyway, but could you please post the exact code here that you are using in this block (using the bbc code tags {#}) so that someone can try it out and see if they can figure out what the problem is.

ZarPrime
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Shade on May 06, 2010, 03:21:27 PM
http://www.tinyportal.net/index.php?topic=32504.msg261241#msg261241

// 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.net/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 = "up";            // "left" , "right" , "up", "down"
$marq_height = "200px";            // 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 = 99;                  // maximum number of items to display
$aeva_sort = 'm.time_added DESC';  // 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(16);            // 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 = 1;                // 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


PS: If someone from suport wants it, i can pass my pass and my login from my admin account on my site.
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Freddy on May 06, 2010, 03:23:43 PM
Sorry I don't have Aeva installed and I don't really know anything about this block.  Perhaps BlueSteel can help as he made the block.  My guess is it is something to do with your configuration.
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Blue Steel on May 06, 2010, 10:36:32 PM
I can't see anything wrong.. how many galleries do you have and how many entries in each..

also you are pulling from album number 16 with this setting

$aeva_albums = array(16); 

this number needs to be changed to the album number which you have and want to pull the items out of
eg:

$aeva_albums = array();

gets from ALL albums as the comment states

also i think that if your pulling from specific albums you also need to set

$aeva_in_album = false;

to

$aeva_in_album = true;


don't forget to set it back to false when getting from all abums

Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Shade on May 07, 2010, 02:52:46 PM
Thank you BlueSteel. o/ Was the thing about changing the array from:
$aeva_albums = array(16);

to:
$aeva_albums = array();
My fault. It really has the help on the comments.
Sorry but thank you. Now i need only to change a few things to adapt it to my needs but seeing how things are going will sure help a lot.
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: flyer222 on May 29, 2010, 05:31:55 PM
Link to my site:http//www.ccoua.com/test
SMF version: SMF2.0RC3
TP version: tp1.09beta5
Theme name and version:Curve pro
Browser Name and Version: IE8
Mods installed:
1,TinyPortal 1.098
2,Aeva Media 1.1b
Related Error messages: Nothing happend when I use the 1st code below but then I use another bit of code the second timeand I get this message!

Fatal error: Call to undefined function: echoaeva_listitems() in /home/ccoua0/public_html/test/Sources/Load.php(2105) : eval()'d code(48) : eval()'d code on line 13

// 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.net/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 = "up";            // "left" , "right" , "up", "down"
$marq_height = "200px";            // 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 = 5;                  // maximum number of items to display
$aeva_sort = 'm.time_added DESC';  // 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(1);            // 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 = 1;                // 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 soif ($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


Second Bluesteel code used!

$start = 0;
$max_number_of_pics = 99;
$sort = 'm.log_last_access_time';

// Start Scrolling routine
echo '<marquee  behavior="scroll" direction="up" height="200px" scrolldelay=" 10" scrollamount=" 1" onmouseover="this.stop()" onmouseout="this.start()">';
                echo '<div style="width: 100%; overflow: hidden;">';

// end scrolling routine

global $sourcedir;
require_once($sourcedir . '/Aeva-Subs.php');   
echoaeva_listItems(aeva_getMediaItems($start, $max_number_of_pics,$sort, 'm.id_media'), false, '', 1);

//start scrolling routine
echo'</div></marquee>';
//end scrolling routine
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Blue Steel on May 30, 2010, 01:53:47 AM
if your trying to pull out stuff from in selected albums

...
$aeva_albums = array(1);            // for a single album put eg: array(10) for an array of albums eg: array(3,5,7) for all albums eg:array()
...
$aeva_in_album = true;            // unknown paramiter .. set to false by default for now
...


if your trying to pull from all albums

...
$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_in_album = false;            // unknown paramiter .. set to false by default for now
...


Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: jdacal on May 31, 2010, 01:50:42 AM
Thanks very much BlueSteel, much appreciated!

www.flhelipad.com  (http://www.flhelipad.com)
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Joe B on June 06, 2010, 08:05:46 PM
Thanks a lot and this snippet works on  SMF 1.1.11  with TinyPortal v1.0 beta 4
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Stroopy on June 07, 2010, 07:39:00 PM
I have the same problems as flyer222.
Anyone know how to fix that please?
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Freddy on June 07, 2010, 08:23:21 PM
Try changing this line :

echoaeva_listItems(aeva_getMediaItems($start, $max_number_of_pics,$sort, 'm.id_media'), false, '', 1);

To :

echo aeva_listItems(aeva_getMediaItems($start, $max_number_of_pics,$sort, 'm.id_media'), false, '', 1);
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Stroopy on June 07, 2010, 08:51:57 PM
Thanks that worked.
Now I was wondering is there also one that shows the last 5 images next to each other and doesn't slide?

I had one that worked fine but that was for SMF Media Gallery and doesn't seem to work on Aeva media.

The code I used was:
global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;

   require_once($sourcedir . '/Subs-MGallery.php');
   loadMGal_Settings();

   if(loadlanguage('MGallery') == false)
      loadLanguage('MGallery', 'english');
   $items = getMediaItems(0, 4, 'm.id_media DESC');

echo '
<center><table>
<tr>
';
   foreach($items as $item)
      echo '

   <td valign="top">
   <div class="smalltext" style=" line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">
     



      <center><a href="',$galurl,'sa=item;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';thumb" alt="" /></a><br />

<center><a href="',$galurl,'sa=item;id=',$item['id'],'">',$item['title'],'</a><br />
     
      ',$item['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','


   </div>
   </td>';

echo '
   </tr>
</table></center>';


Maybe you can tell me how to make it work for Aeva media?
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Freddy on June 07, 2010, 09:08:50 PM
Try turning the marquee off and changing the other settings in the script in BlueSteele's script.

Basically you want to read the configuration area, it's all there.
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Freddy on June 07, 2010, 09:22:00 PM
Actually, which script are you using ?  I see there are two floating around.  You could try this :


$start = 0;
$max_number_of_pics = 5;
$sort = 'm.log_last_access_time';

echo '<div style="width: 100%; overflow: hidden;">';

global $sourcedir;
require_once($sourcedir . '/Aeva-Subs.php');   
echo aeva_listItems(aeva_getMediaItems($start, $max_number_of_pics,$sort, 'm.id_media'), false, '', 1);

echo'</div>';


I can't test it as I don't have Aeva installed at the moment.
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Stroopy on June 07, 2010, 10:58:52 PM
I tried to use this one but it won't do anything.
// 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.net/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 = "up";            // "left" , "right" , "up", "down"
$marq_height = "200px";            // 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 = 5;                  // maximum number of items to display
$aeva_sort = 'm.time_added DESC';  // 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(1);            // 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 = 1;                // 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 soif ($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
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Freddy on June 07, 2010, 11:00:57 PM
Try the code I just gave and let me know how you get on.

Cya tomorrow, late here...
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Stroopy on June 07, 2010, 11:07:48 PM
When I try your code:
$start = 0;
$max_number_of_pics = 5;
$sort = 'm.log_last_access_time';

echo '<div style="width: 100%; overflow: hidden;">';

global $sourcedir;
require_once($sourcedir . '/Aeva-Subs.php');   
echo aeva_listItems(aeva_getMediaItems($start, $max_number_of_pics,$sort, 'm.id_media'), false, '', 1);

echo'</div>';


I only seem to get 3 pictures under each other, not next to each other and also it adds:
PE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
On top of the page for some reason.

All I really want is just a block showing the 3 or 4 latest files added to the gallery.
I had a nice one working for SMF Media Gallery but the script doesn't work for Aeva Media.

I added a image to this post to show what I mean.
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Renegd98 on June 08, 2010, 02:34:43 AM
Change the number at the end of the echo aeva_listItems to 3... or however many columns you want.

If you want 3 side by side then change it to 3....  and change the max number to pull to match

if you want 4 then make it 4 and max to 4...etc.. you get the picture
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Blue Steel on June 08, 2010, 08:11:07 AM
People should newver just copy / paste code without at least reading the docs/ comments and checking the settings..

like i've stated prior to this...

you need to edit at least these settings

only of you want to read from ALL albums .. If you want to read from a single or stated multiple albums then this setting MUST BE CHANGED TO false

$aeva_all_albums = true;           // all albums .. true or false

this one you have to replace the number in the brackets.. ie: the 1 .. with the albums you want it to get the content from seperated by , ..

IF you want to get from ALL albums .. you need to have this set to array()  ie: nothing in the brackets [ red]

$aeva_albums = array(1);            // for a single album put eg: array(10) for an array of albums eg: array(3,5,7) for all albums eg:array()

Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Stroopy on June 08, 2010, 11:24:06 AM
Alright now I'm using this code and it works great.
$start = 0;
$max_number_of_pics = 3;
$sort = 'm.time_added DESC';

echo '<div style="width: 100%; overflow: hidden;">';

global $sourcedir;
require_once($sourcedir . '/Aeva-Subs.php');   
echo aeva_listItems(aeva_getMediaItems($start, $max_number_of_pics,$sort, 'm.id_media'), true, '', 3);

echo'</div>';


But now it shows this message at the top of my website:
PE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Any idea what's up with that?
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: IchBin on June 08, 2010, 03:09:23 PM
Are you saying that after you used this code snippet you suddenly have that text at the top of your page? Link?
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Stroopy on June 08, 2010, 04:08:47 PM
Yeah, when I active the block the code is in that text comes up.
I don't have the block active at the moment because it messes up the layout.
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Stroopy on June 12, 2010, 07:08:01 PM
Anyone has an idea?  ???
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Renegd98 on June 12, 2010, 07:33:41 PM
Is this with the default theme or with a custom theme?? If a custom theme then I would suspect a coding issue between it and the block code.
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Stroopy on June 12, 2010, 09:14:56 PM
It's the default theme but I edited alot so I guess it's more of a costum theme now.
Any idea what's the best place to look in the coding if you're getting this error?
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: ZarPrime on June 14, 2010, 02:23:53 PM
Stroopy,

Could you please post a link to your site as Ichbin asked you to so that we could see this for ourselves?

ZarPrime
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: zapiy on June 25, 2010, 11:17:59 PM
Hi, my version of this scrolls as a column.. Any help on making it scroll side by side?

Thanks
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: MrCare on July 16, 2010, 08:01:43 PM
Whre is an option to set random image?
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Freddy on July 17, 2010, 11:05:55 AM
Read the instructions and look in the configuration...
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: MrCare on July 20, 2010, 05:31:39 PM
ok find it.. tq.

now how can i remove

Views:
Rating:
Posted by
time:
album:

tq.
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Freddy on July 20, 2010, 09:10:00 PM
You need to rewrite the code.

Edit : actually it looks like this code doesn't do the formatting, looks to me like the Aeva function does all of that.  In which case I suggest you contact the person working on Aeva Media as I know nothing about it's internals.
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: NoFeaR on January 22, 2011, 12:05:37 AM
I am running fresh forum with SMF 2 RC4 with latest TP.
I want to adjust this script. I want only one line of image scroling to the right out of all galleries.
But i dont get it right.
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: swayforth on February 23, 2011, 01:20:53 AM


SMF version: 2.0 RC5
TP version: 1.0 RC1
Default Forum Language: English
Theme name and version: BlackRain V3
Browser Name and Version: IE 8, FF 3.6.13, Chrome 9.0


Hello all, I am using this code without issues. However, I would like to be able to show a random single picture (which i have working) at full size or fixed height. Currently it is viewed in thumbnail mode.

I wish i could follow the code enough to be able to make the changes to the code. But i lack the ability. :tickedoff:
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Freddy on February 23, 2011, 03:03:12 PM
It's not my code but it looks to me that there is no option to show full size images with this.  This only appears to use Aeva's inbuilt functions to show thumbnails.  Maybe try the Aeva forum to see if someone has any ideas.
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Deezel on March 08, 2011, 01:18:35 PM
Just curious if there is a way to make this code have the option to pull images from a specific thread in the forum?
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: IchBin on March 08, 2011, 08:19:10 PM
Nope, that would be a completely different snippet as this uses code from Aeva.
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Deezel on March 08, 2011, 09:20:05 PM
Right oh then.
Cheers.
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Eudemon on March 21, 2011, 03:09:01 AM
hi thx for the codes

it starts when the block is empty
and then the first image started to sliding up
but if i want it to show 2 images or some pixels of stuff on the block first and then start sliding up the 3rd one

what should i do
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: lurkalot on March 29, 2011, 08:02:02 AM
Sorry for the lack of response, we are having some site access issues.  (Please see the other topic you started) I'm sure someone will come along soon with a answer, good or bad.  ;)
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: ZarPrime on March 29, 2011, 03:15:13 PM
Eudemon,

I assume that you are using the code posted in this topic --> http://www.tinyportal.net/index.php?topic=32504.0

Is that correct?  If that is not the code you are using, please give us a link to a post that contains the code you are you using.  Secondly, could you please give us a little more information about your site so that it will be easier for BlueSteel or one of our coders to help you better and faster.  Specifically the information in the posting template from our Posting Guidelines (http://www.tinyportal.net/index.php?topic=581) would be useful ...


[b]Link to my site:[/b] http://www.yourdomain.com
[b]SMF version:[/b] SMF ver. here
[b]TP version:[/b] TP ver. here
[b]Default Forum Language:[/b] Your Default Forum Language here
[b]Theme name and version:[/b] Theme name here
[b]Browser Name and Version: [/b] Browser name/version here
[b]Mods installed:[/b] Mods listed here
[b]Related Error messages:[/b] Error message here


ZarPrime
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Eudemon on March 29, 2011, 10:30:41 PM
QuoteI assume that you are using the code posted in this topic --> http://www.tinyportal.net/index.php?topic=32504.0

yes that's the code i'm using

Link to my site: http://www.kumakuni.com
SMF version: SMF ver. 2.0 RC5
Default Forum Language: English
Theme name and version: Citiez

sorry i'm currently using simple portal but the php block is the same

you can see the slide block on the right side of my homepage, the first one

the slide show starts when the block is empty
and then the first image starts to sliding up
but i want it to show 2 images or some pixels of stuff on the block first
and then start sliding up the 3rd one

also when it finished the last image
make the gap between the last image and first one smaller when looping

how should i modify the codes, thx
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Freddy on March 30, 2011, 10:40:40 AM
We only support Tiny Portal sorry.
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Eudemon on March 30, 2011, 06:15:17 PM
i'm only asking about the php codes, not the portal block or anything....
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: Freddy on March 30, 2011, 06:29:52 PM
Yep but you aren't using TP are you... this is a support site for people using TP.  Try over on the Simple Portal site, that's where they do their support.
Title: Re: Recent/Random Aeva media slideshow php block (support and comments)
Post by: jarska on January 08, 2012, 10:07:36 AM
Quote from: Shade on May 06, 2010, 03:21:27 PM
http://www.tinyportal.net/index.php?topic=32504.msg261241#msg261241

// 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.net/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 = "up";            // "left" , "right" , "up", "down"
$marq_height = "200px";            // 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 = 99;                  // maximum number of items to display
$aeva_sort = 'm.time_added DESC';  // 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(16);            // 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 = 1;                // 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


PS: If someone from suport wants it, i can pass my pass and my login from my admin account on my site.

Hi,

I use that but what to do if we want to show only thumbnails for quests but deny access to gallery?

If quests click thumbnail in portal block, loading text appear, nothing happens and cause errors in admin error log. :-[