You can make this a module.
Use this code for the template. The other code has his whole page on it, which was wrong.
adv_portal_navbar_with_gallery
Code:
<!-- / COPPERMINE GALLERY -->
<br>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class='tcat' colspan='0' align=left>
<span class='smallfont'>
<strong>» <a href='$coppath'>Gallery</a>
</strong></span></td>
</tr>
<tr>
<td class='alt1' width='100%' align-middle valign=middle>
$copphotos
</td></tr></table>
<!-- / COPPERMINE GALLERY -->
Edit this file i've attached and put in your path to the coppermine.php file in your forums root directory.
Then upload the file to forums/modules directory.
Remove the edit you made to the index.php file. That will cause a duplicate.
Add a new php module
module name - whatever you want
templates used: adv_portal_navbar_with_gallery
clean output : yes
If it comes out all screwy looking edit the coppermine.php file and add
and
you can just cut and paste lines 30 through 40
Code:
$copphotos.='<tr><td><table border=0 cellpadding=20 cellspacing=0><tr>';
while ( $MZrow = mysql_fetch_array($MZresult) ) {
$pos = $MZrow['pid'];
$ctime = date ("d-m-Y" ,$MZrow['ctime']);
$copphotos.='<td><a target = "_parent" href="' . $coppath . '/displayimage.php?album=' . $albumid . '&pos=-' . $pos . '"><IMG SRC="' . $coppath . '/albums/' . $MZrow['filepath'].thumb_.$MZrow['filename'] .'" alt=' . $MZrow['filename'] . ' '. 'border=0 >' . '</a><b><br><font size=1>Uploader :</b><br><a href="member.php?u=' . $MZrow['owner_id'] . '"> ' . $MZrow['owner_name'] . '</a><br><font size=1> ' .$ctime. ' </td>';
}
$copphotos.='</tr></table></td></tr>';