Advanced search  

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

Pages: [1]   Go Down

Author Topic: [Solved]: removing sort options in thumbnail view.  (Read 3192 times)

0 Members and 1 Guest are viewing this topic.

forcer

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
[Solved]: removing sort options in thumbnail view.
« 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.
« Last Edit: June 29, 2004, 09:43:02 am by GauGau »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
removing sort options in thumbnail view.
« Reply #1 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>  
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

bijlmer

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: removing sort options in thumbnail view.
« Reply #2 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: removing sort options in thumbnail view.
« Reply #3 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
Logged

bijlmer

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: removing sort options in thumbnail view.
« Reply #4 on: June 28, 2004, 10:01:32 pm »

thanks,
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 18 queries.