Quote:
04-14-03 at 04:45 AM kuska said this in Post #116
This php script will automaticly pick a random image from OakGallery 2.0 thumbnails section and display it on your forum homepage or any other non VB site. I use it, easy to install, just edit path to your OakGallery 2.0 Thumbnails folder and upload. It attracts more people to chceck out the gallery - worked wonders for me. Try this out, looks real nice on the home page.
Install time 1 MIN 
***Instructions***
1) Edit the path to the thumbnails folder in randomimage.php
2) Save and upload randomimage.php and chomod it to 775
3) Open forumhome template in your Admin CP and place the call out code anywhere desired by your likes.
PHP Code:
<img src="url/randomimage.php"height="125"width="125">
*** End Install ***
|
Hi I cant get this to work..... I did exactly as the instructions said...
all I get is this when I call the script : Parse error: parse error, unexpected '<' in /var/www/htdocs/randomimage.php on line 8
(
http://cancan.mine.nu/randomimage.php )
randomimage.php
PHP Code:
$url='http://cancan.mine.nu/gallery/thumnails';
//Stop editing, that is all. Call the image with:
<img src="http://cancan.mine.nu/randomimage.php"height="125"width
customtemplate 2
PHP Code:
<tr><td bgcolor="$getbgrow"><smallfont>
<img src="http://cancan.mine.nu/randomimage.php"height="125"width="125">
</smallfont></td></tr></form></table></td></tr></table><p>
plz help..... I'm so bad at php