forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: Shane on August 10, 2010, 04:40:23 am
-
site: http://philmontforum.com/15test/cpg - this is just a little test site for playing around - CPG 1.5.6
I'm trying to get the Picture Admin buttons, file information, picture rating, and comments to generate to the right of my intermediate images. I got started by reading http://forum.coppermine-gallery.net/index.php/topic,39523.msg187415.html#msg187415 which got me this far (see attached screenshot).
Here is a copy of my $template_display_media:
/******************************************************************************
** Section <<<$template_display_media>>> - START
******************************************************************************/
// HTML template for intermediate image display
$template_display_media = <<<EOT
<tr>
<td align="center" class="display_media" nowrap="nowrap">
<table width="100%" cellspacing="2" cellpadding="0">
<tr>
<td align="center" style="{SLIDESHOW_STYLE}">
{IMAGE}
</td>
</tr>
</table>
</td>
<td>
<table width="100%" cellspacing="2" cellpadding="0" class="tableb">
<tr>
<td align="center">
{ADMIN_MENU}
</td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="0" class="tableb">
<tr>
<td align="left">
{PICINFO}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<!-- BEGIN img_desc -->
<!-- BEGIN title -->
<!-- END title -->
<!-- BEGIN caption -->
<!-- END caption -->
<!-- END img_desc -->
</tr>
EOT;
/******************************************************************************
** Section <<<$template_display_media>>> - END
******************************************************************************/
I'm no programmer, and cannot seem to figure out the variables and array parameters to get the rating and comments included. I understand the simple html coding to get the array tags in the right place, but I don't understand the php that gets the job done. Has anyone already done this? Or can someone point me in the right direction so I can figure this out?
Much thanks in advance!
-
You have to edit the function theme_display_image in your theme.php file.