Posted on: 06/25/10 03:17pm
By: Anonymous (Mike gl nubie)
How can I make this work in a block. what script would I use? All I want to do is pull a random image from the g2 albums with each reload of the page.
<?php @readfile('http://smithtownares.org/photos/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title'
; ?>
Re: trying to put php in GL 1.6.1 block
Posted on: 06/25/10 04:05pm
By: Dirk
You can't enter the PHP code in the block editor. You need to create a function (e.g. in your lib-custom.php) and call it from the block. The function name must start with phpblock_.
See the description right there in the block editor ...
bye, Dirk