PDA

View Full Version : inserting coppermine images above forums


BAJR
01-26-2010, 05:26 PM
Being basically an idiot in the php world..

Is it possible to insert this php code

so that it appears just above the forums on FORUM_home

<?php
include "./gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewLastAddedMedia(1,6);
$objCpm->cpm_close();
?>

It is the code for grabbing 6 random images from my coppermine gallery using cpmfetch.

all works fine... APART from where and how to insert this code.

I have read lots about trying to get php into a block.. and how that needs to have a way of writing the code. but I am just baffled.

If there a simple way to have these 6 image appear above the forums on teh forum.php page?

many thanks

David

xtreme4x4sa
02-23-2010, 11:02 AM
I am also working on this. Will let you know if I am successful.