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: How do I display file name on thumbnail.php ?  (Read 6498 times)

0 Members and 1 Guest are viewing this topic.

Hassan

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
How do I display file name on thumbnail.php ?
« on: May 26, 2008, 03:43:27 pm »

Hi,

I would like to display file name on thumbnail.php page.
Somehow {TITLE} token is not working.

website: http://www.giantino.com/thumbnails.php?album=1&page=1

thanks
Logged

Hassan

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: How do I display file name on thumbnail.php ?
« Reply #1 on: June 28, 2008, 01:28:06 pm »

I aam again in need of using this mod. i did search the board couple of time with different keywords to get some help displaying file name separately.
unfortunately I am unable to find any clue.

I wish if there would be any wiki using tokens in cpg.

I will be very gratefull if someone help me with this thing.

BTW I am using morpeus_red theme and here is the following code

Code: [Select]
//---------------------------------------------------------------------------------------------
// HTML template for thumbnails display
//---------------------------------------------------------------------------------------------

if (!isset($template_thumbnail_view))  //{THEMES}
$template_thumbnail_view = <<<EOT

<!-- BEGIN header -->
        <tr>
<!-- END header -->
<!-- BEGIN thumb_cell -->
        <td valign="top" class="thumbnails" width ="{CELL_WIDTH}" align="center">

<table width="100%" class="hdr" cellspacing="0" cellpadding="0">
<tr>
  <td align="left" width="12"><img src="themes/morpheusX_red/images/hdr_left_small.gif" width="12" height="25" alt="" /></td>
  <td width="100%" align="left" nowrap="nowrap">{TITLE}</td>
<td width="12" align="right"><img src="themes/morpheusX_red/images/hdr_right_small.gif" width="12" height="25" alt="" /></td>
</tr>
</table>

                <table width="100%" cellpadding="0" cellspacing="0" border="1">
                        <tr>
<td width="14%" align="left">
<a href="{LINK_TGT}">{THUMB}</a>
</td>
                        <td width="86%" align="left" valign="top">
{CAPTION}{ADMIN_MENU}
</td>
                        </tr>
                </table>

<table width="100%" cellspacing="0" cellpadding="0" border="0">
  <tr>
    <td align="right" width="8"><img src="themes/morpheusX_red/images/ftr_left.gif" width="8" height="8" alt="" /></td>
    <td style="background-image:url(themes/morpheusX_red/images/ftr_bg.gif); background-repeat:repeat-x; " ><img src="themes/morpheusX_red/images/spacer.gif" width="1" height="1" alt="" /></td>
    <td align="left" width="8"><img src="themes/morpheusX_red/images/ftr_right.gif" width="8" height="8" alt="" /></td>
  </tr>
</table>

        </td>
<!-- END thumb_cell -->
<!-- BEGIN empty_cell -->
                <td valign="top" class="thumbnails" align="center">&nbsp;</td>
<!-- END empty_cell -->
<!-- BEGIN row_separator -->
        </tr>
        <tr>
<!-- END row_separator -->
<!-- BEGIN footer -->
        </tr>
<!-- END footer -->
<!-- BEGIN tabs -->
        <tr>
                <td colspan="{THUMB_COLS}" style="padding: 0px;">
                        <table width="100%" cellspacing="0" cellpadding="0">
                                <tr>
                                       {TABS}
                                </tr>
                        </table>
                </td>
        </tr>
<!-- END tabs -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->

EOT;

Logged

Nibbler

  • Guest
Re: How do I display file name on thumbnail.php ?
« Reply #2 on: June 28, 2008, 01:37:03 pm »

Enable the option 'Display the file name below the thumbnail' in config.
Logged

Hassan

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: How do I display file name on thumbnail.php ?
« Reply #3 on: June 30, 2008, 09:01:18 am »

Enable the option 'Display the file name below the thumbnail' in config.

Thanks for your reply, Nibbler.

I already have enabled the "display the filename under the thumbnail" from config section.
What I really want is to display the filetype, where the {FILE_NAME} placeholder is showing, as you can see from the link provided in my first post.
Logged

Hassan

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: How do I display file name on thumbnail.php ?
« Reply #4 on: July 01, 2008, 12:58:20 pm »

I know this is not 24/7 hotline.
And I know what I am asking must be very easy for some of you guys on the board.

Only some hints will do the job for me.
Logged

Nibbler

  • Guest
Re: How do I display file name on thumbnail.php ?
« Reply #5 on: July 01, 2008, 01:13:21 pm »

I don't know what you want. I don't see {FILE_NAME} in the code you posted and I don't know what you mean by filetype. 'image'? 'jpeg'?
Logged

Hassan

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: How do I display file name on thumbnail.php ?
« Reply #6 on: July 01, 2008, 03:50:01 pm »

Sorry for my bad english.

I have attached a screenshot, in which I tried to explain what I want.
I hope this time you would understand.
sorry for all the confusions i have caused.

Thanks for help, Nibbler :)

Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 21 queries.