Mike gl nubie

Anonymous
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'Wink; ?>


Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
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