Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Pic Admin/File Info/Rating/Comments NEXT TO Intermediate Image  (Read 3176 times)

0 Members and 1 Guest are viewing this topic.

Shane

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 76
  • Choose Again
    • The Philmont Forum

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:
Code: [Select]
/******************************************************************************
** 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!
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Pic Admin/File Info/Rating/Comments NEXT TO Intermediate Image
« Reply #1 on: September 01, 2010, 04:30:01 pm »

You have to edit the function theme_display_image in your theme.php file.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.