coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: DontheCat on August 24, 2006, 11:55:02 AM

Title: Title and Caption Placement
Post by: DontheCat on August 24, 2006, 11:55:02 AM
I'm trying to get the Title and caption of the Pics displayed at the top rather than below the image as per default, I tried changing the order in the displayimage.php file, but nothing happened...

  $nav_menu = theme_html_img_nav_menu();
$pic_info = html_picinfo();
    $picture = theme_html_picture();
    $votes = theme_html_rating_box();   


Would appreciate if I can be directed to an existing thread in the Forum. Thanks
Title: Re: Title and Caption Placement
Post by: Gizmo on August 24, 2006, 02:22:11 PM
Based on the code you supplied, I guess you're talking about the intermediate picture in which case, this is the code you need to change. If it's not in your theme.php, copy it from the sample>theme.php and paste it in. The {TITLE} and {CAPTION} variables are the ones you want to move.


// HTML template for intermediate image display
$template_display_media = <<<EOT
        <tr>
                <td align="center" class="display_media" nowrap="nowrap">
                        <table cellspacing="2px" cellpadding="0px" class="imageborder">
                                <tr>
                                        <td align="center">
                                                {IMAGE}

                                        </td>
                                </tr>
                        </table>
                </td></tr>
                <tr><td>
                                                <table width="100%" cellspacing="2px" cellpadding="0px" class="tableb">
                                <tr>
                                        <td align="center">

                                                {ADMIN_MENU}
                                        </td>
                                </tr>
                        </table>





<!-- BEGIN img_desc -->
                        <table cellpadding="0px" cellspacing="0px" class="tableb" width="100%">
<!-- BEGIN title -->
                                <tr>
                                        <td class="tableb"><center><b>
                                                {TITLE}
                                        </b></center></td>
                                </tr>
<!-- END title -->
<!-- BEGIN caption -->
                                <tr>
                                        <td class="tableb"><center>
                                                {CAPTION}
                                        </center></td>
                                </tr>
<!-- END caption -->
                        </table>
<!-- END img_desc -->
                </td>
        </tr>

EOT;
Title: Re: Title and Caption Placement
Post by: DontheCat on August 25, 2006, 11:27:00 AM
Thanks for the tip, Gizmo...  :)
Title: Re: Title and Caption Placement
Post by: rony446 on July 30, 2008, 06:54:49 AM
Quote from: Gizmo on August 24, 2006, 02:22:11 PM
Based on the code you supplied, I guess you're talking about the intermediate picture in which case, this is the code you need to change. If it's not in your theme.php, copy it from the sample>theme.php and paste it in. The {TITLE} and {CAPTION} variables are the ones you want to move.

................
..............

How can change the title of the image to the top of the image in the front page. your code is worked when i clicked on a image. but i need to change image title to the top at the front page. do u tell me where i got problem?

<td valign="top" class="thumbnails" width ="{CELL_WIDTH}" align="center">
                <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td align="center">


<a href="{LINK_TGT}">{THUMB}<br /></a>
{CAPTION}

                                                                                {ADMIN_MENU}
                          </td>
                        </tr>
                </table>
        </td>



Here I want to add {TITLE} at the top of the image. please help me.
Title: Re: Title and Caption Placement
Post by: Joachim Müller on July 30, 2008, 06:57:56 AM
You already have an open thread where you asked this (http://forum.coppermine-gallery.net/index.php/topic,54017.0.html). Stop cluttering the board. Locking.