Forum Index > FlashYourWeb OS Support > MediaBlock New Topic Post Reply
 random thumbs from all albums - how?
 |  Printable Version
Anonymous: stevev
 June 22 2010 19:21 PM (Read 1169 times)  


Hi,

I have imageblock working, but cannot quite achieve what I want:

On my site's splash page, I want a 9x9 grid of thumbnails randomly chosen from all my gallery albums.

However, with the code I am using, I only get images from the same two albums and the grid of thumbnails is not aligned correctly.

The code I have on the splash page is:

PHP Formatted Code

<?php @readfile('http://www.mysite.com/gallery/mediaBlock.php?

g2_itemId=7&limit=9&useThumb=1&shuffle=1&column=3&recursive=1'
); ?>
 


itemId 7 is my top level album.

Example of what you see on the splash page is here:



Thanks in advance.


 
Quote
suprsidr
 June 22 2010 19:34 PM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

In my first example I'm using gallery's built-in Dynamic Albums module(must be active).
something like:

PHP Formatted Code
mediaBlock.php?g2_itemId=7&mode=dynamic&g2_view=dynamicalbum.RandomAlbum&limit=9&useThumb=1&column=3


-s


There will always be...
 
Profile Email Website
Quote
Anonymous: stevev
 June 22 2010 19:57 PM  


Thanks once again for your help.

Small donation made.

Cheers.


 
Quote
suprsidr
 June 22 2010 20:01 PM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

Very much appreciated Wink

-s


There will always be...
 
Profile Email Website
Quote
Content generated in: 0.09 seconds
New Topic Post Reply



 All times are PDT. The time is now 08:34 PM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
HTML Allowed 
Censored Content