How do I display file name on thumbnail.php ? How do I display file name on thumbnail.php ?
 

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

How do I display file name on thumbnail.php ?

Started by Hassan, May 26, 2008, 03:43:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hassan

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

Hassan

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;


Nibbler

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

Hassan

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.

Hassan

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.

Nibbler

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'?

Hassan

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 :)