1
Hi all
i have written a function to build random pictures blocks (from myalbum-p).
You need to include this into your: root/include/functions.php:
";
return $object;
}
and then you can add a custom PHP block with this code:
echo getPicGallery('X', 'Y', 'Z');
WHERE:
- X: myalbum Number
- Y: cid number
- Z: 1 = random pic ; 0 = last inserted pic
eg:
echo getPicGallery('', '1', '1');
will display random pics from myalbum and cid = 1
If you need to see the original tutorial is here:
http://www.xoopsitalia.org/modules/article/view.article.php/c1/72Feel free to visit my page for other tutorials:
http://www.stefanosilvestrini.combye!!!