Random Not working?

stuff4me

Joined: 2004-12-08
Posts: 41
Posted: Tue, 2009-11-17 23:02

Is the random imageblock not working right? I am using 2.2.3. I seems to only like to rotate between the newest images. In my case, the test newest images. The other 2 images do not even get displayed in the imageblock.

http://www.nojobu4u.com/gallery2/ or www.nojobu4u.com, randomimage block outside of gallery.

Josh


Gallery version (not just "2"): 2.2.3
PHP version (e.g. 5.1.6): 4.1
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33):
Database (e.g. MySql 5.0.32):
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux):
Browser (e.g. Firefox 2.0):

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-11-17 23:26

I'd give this one a shot:
http://www.flashyourweb.com/staticpages/index.php?page=mediaBlock
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
stuff4me

Joined: 2004-12-08
Posts: 41
Posted: Wed, 2009-11-18 01:42

Awesome. That works great. Out of a few refreshes of the page, I got all the images that I currently have in my gallery (5 or so). Is there a problem with the random image block in gallery currently?

Thank you.

Josh

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2009-11-18 03:33

I don't know about a problem or even what settings you were using. I've found suprsidr's mediablock to be superior and easier to implement.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
stuff4me

Joined: 2004-12-08
Posts: 41
Posted: Wed, 2009-11-18 04:57

the settings for the internal random block are right out of the box, nothing changed. all images are allowed in the imageblock plugin, but it only seems to only random between 2-3 images.

With the one you suggested, all image are randomed through. In 6 refreshes of the external block, it went through all the images.

For the external block when using gallery2, this is the code that I was using:
<?php @readfile('http://www.nojobu4u.com/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=none'); ?> (right from the documentation from within the system under the imageblock for external use.

Once again, thank you for the suggested alternative.

Josh