Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Title and Caption Placement  (Read 5484 times)

0 Members and 1 Guest are viewing this topic.

DontheCat

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 2
    • Murali - A Profile
Title and Caption Placement
« 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...

Code: [Select]
  $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
« Last Edit: August 25, 2006, 06:09:17 pm by GauGau »
Logged
May the Force be with You... And the Source with Everyone

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Title and Caption Placement
« Reply #1 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.

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

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 2
    • Murali - A Profile
Re: Title and Caption Placement
« Reply #2 on: August 25, 2006, 11:27:00 am »

Thanks for the tip, Gizmo...  :)
Logged
May the Force be with You... And the Source with Everyone

rony446

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: Title and Caption Placement
« Reply #3 on: July 30, 2008, 06:54:49 am »

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?
Code: [Select]
<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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Title and Caption Placement
« Reply #4 on: July 30, 2008, 06:57:56 am »

You already have an open thread where you asked this. Stop cluttering the board. Locking.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.