Title and Caption Placement Title and Caption Placement
 

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

Main Menu

Title and Caption Placement

Started by DontheCat, August 24, 2006, 11:55:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DontheCat

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
May the Force be with You... And the Source with Everyone

Gizmo

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;
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

DontheCat

May the Force be with You... And the Source with Everyone

rony446

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.

Joachim Müller