Pic Admin/File Info/Rating/Comments NEXT TO Intermediate Image Pic Admin/File Info/Rating/Comments NEXT TO Intermediate Image
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Pic Admin/File Info/Rating/Comments NEXT TO Intermediate Image

Started by Shane, August 10, 2010, 04:40:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Shane

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!

ΑndrĂ©

You have to edit the function theme_display_image in your theme.php file.