forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: forcer on March 03, 2004, 04:38:51 pm

Title: [Solved]: removing sort options in thumbnail view.
Post by: forcer on March 03, 2004, 04:38:51 pm
when viewing thumnails in the title there are sorting options:

TITLE  +   -  
FILE NAME  +   -  
DATE  +   -  


how can i remove this?

this part isnt being used by anyone on my site and probly never will so by removing it i can make the that table its in a bit smaller.

any help appreciated thanx.
Title: removing sort options in thumbnail view.
Post by: Casper on March 03, 2004, 04:53:44 pm
Open themes/yourtheme/theme.php.

Find the section headed;
Code: [Select]
// HTML template for title row of the thumbnail view (album title + sort options)
$template_thumb_view_title_row = <<<EOT



Edit the table to just show the
Code: [Select]
<td width="100%" class="statlink"><h2>{ALBUM_NAME}</h2></td>  
Title: Re: removing sort options in thumbnail view.
Post by: bijlmer on May 14, 2004, 08:58:15 pm
hi,
when i try to do it in de way you explained still the ++ etc are there, what can i do wrong?
I am a newby in php etc.

thanks
Title: Re: removing sort options in thumbnail view.
Post by: Joachim Müller on May 15, 2004, 09:01:12 am
for the default/classic theme, you look for
Code: [Select]
// HTML template for title row of the thumbnail view (album title + sort options)
$template_thumb_view_title_row = <<<EOT

                        <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td width="100%" class="statlink"><h2>{ALBUM_NAME}</h2></td>
                                <td><img src="images/spacer.gif" width="1"></td>
                                <td class="sortorder_cell">
                                        <table height="100%" cellpadding="0" cellspacing="0">
                                        <tr>
                                <td class="sortorder_options">{TITLE}</td>
                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=ta" title="{SORT_TA}">&nbsp;+&nbsp;</a></span></td>
                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=td" title="{SORT_TD}">&nbsp;-&nbsp;</a></span></td>
                                        </tr>
                                        <tr>
                                                <td class="sortorder_options">{NAME}</td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=na" title="{SORT_NA}">&nbsp;+&nbsp;</a></span></td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=nd" title="{SORT_ND}">&nbsp;-&nbsp;</a></span></td>
                                        </tr>
                                        <tr>
                                                <td class="sortorder_options">{DATE}</td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=da" title="{SORT_DA}">&nbsp;+&nbsp;</a></span></td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=dd" title="{SORT_DD}">&nbsp;-&nbsp;</a></span></td>
                                        </tr>
                                        </table>
                                </td>
                        </tr>
                        </table>

EOT;
and replace it with
Code: [Select]
// HTML template for title row of the thumbnail view (album title + sort options)
$template_thumb_view_title_row = <<<EOT

                        <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td width="100%" class="statlink"><h2>{ALBUM_NAME}</h2></td>
                        </tr>
                        </table>

EOT;
No PHP there, everything plain html stuff...

GauGau
Title: Re: removing sort options in thumbnail view.
Post by: bijlmer on June 28, 2004, 10:01:32 pm
thanks,