coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Hassan on May 26, 2008, 03:43:27 PM

Title: How do I display file name on thumbnail.php ?
Post by: Hassan 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
Title: Re: How do I display file name on thumbnail.php ?
Post by: Hassan 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


//---------------------------------------------------------------------------------------------
// 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;

Title: Re: How do I display file name on thumbnail.php ?
Post by: Nibbler on June 28, 2008, 01:37:03 PM
Enable the option 'Display the file name below the thumbnail' in config.
Title: Re: How do I display file name on thumbnail.php ?
Post by: Hassan on June 30, 2008, 09:01:18 AM
Quote from: Nibbler on June 28, 2008, 01:37:03 PM
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.
Title: Re: How do I display file name on thumbnail.php ?
Post by: Hassan 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.
Title: Re: How do I display file name on thumbnail.php ?
Post by: Nibbler 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'?
Title: Re: How do I display file name on thumbnail.php ?
Post by: Hassan 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 :)