someone requested the code via email so here it is:
make a file called "something.php" stick this code in it:
<?php
require_once "../cpmfetch/cpmfetch.php";
$objCpm = new cpm("../galleries");
$styleguide = array(
//"TABLESTYLE" => "photoclip",
//"rowstyle" => "photoclip",
"cellstyle" => "photoclip",
//"linkstyle" => "photoclip",
"alttag" => "Click on thumbnail to see full-sized image",
"imagestyle" => "photoclip",
"cellattributes" => array('align' => 'center', 'width' => '100', 'height' => '100'),
'imagelink' => 'large',
'subtitle' => '<a href="http://www.amateurillustrator.com/galleries/displayimage.php?pos=-%i">%o</a>',
"linkstyle" => 'highslide" onclick="return hs.expand(this)" onmouseover="self.status=\'Click to enlarge thumbnail\'; return true;');
$objCpm->cpm_viewRandomMedia(1,7, $styleguide);
$objCpm->cpm_close();
?>
and then upload it to the folder: punbb/include/user/
then stick this code in your main.tpl file:
<script type="text/javascript" src="./highslide/highslide.js"></script>
<script type="text/javascript">
hs.graphicsDir = './highslide/graphics/';
window.onload = function() {
hs.preloadImages();
}
</script>
</div><div id="highslide-container"></div>
<pun_include "something.php"></pun_include>
and this bit of css in the stylesheet of your main tplfile:
<style type="text/css">
* {
font-family: Verdana, Helvetica;
font-size: 10pt;
}
.highslide {
cursor: url(highslide/graphics/zoomin.cur), pointer;
outline: none;
}
.highslide img {
border: 2px solid gray;
}
.highslide:hover img {
border: 2px solid silver;
}
.highslide-image {
border-bottom: 1px solid white;
}
.highslide-image-blur {
}
.highslide-caption {
display: none;
border-bottom: 1px solid white;
font-family: Verdana, Helvetica;
font-size: 10pt;
padding: 5px;
background-color: silver;
}
.highslide-loading {
display: block;
color: white;
font-size: 9px;
font-weight: bold;
text-transform: uppercase;
text-decoration: none;
padding: 3px;
border-top: 1px solid white;
border-bottom: 1px solid white;
background-color: black;
padding-left: 22px;
background-image: url(highslide/graphics/loader.gif);
background-repeat: no-repeat;
background-position: 3px 1px;
}
a.highslide-credits,
a.highslide-credits i {
padding: 2px;
color: silver;
text-decoration: none;
font-size: 10px;
}
a.highslide-credits:hover,
a.highslide-credits:hover i {
color: white;
background-color: gray;
}
.highslide-display-block {
display: block;
}
.highslide-display-none {
display: none;
}
</style>
You must of course have cpmfetch already installed at your root directory and highslide installed at your forum directory...it doesn't really matter where you have them installed as long as you set the paths to them correctly.
Hope this helps.