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: Removing Sort From Hardwire Theme  (Read 3475 times)

0 Members and 1 Guest are viewing this topic.

timska77

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Removing Sort From Hardwire Theme
« on: March 14, 2008, 06:29:00 am »

Hello All,
I found the thread for removing the Sort Menu but it doesn't seem to apply to the Hardwire theme. Has anyone done this? Any ideas or tips would be greatly appreciated.
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Removing Sort From Hardwire Theme
« Reply #1 on: March 14, 2008, 06:36:09 am »

Which thread ?
link please
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Removing Sort From Hardwire Theme
« Reply #2 on: March 14, 2008, 07:52:47 am »

It applies to all themes. You probably failed to read the important sentence: if a particular section (variable definition) doesn't exist in your custom theme, copy that section (and only that section) from themes/sample/theme.php to your custom theme (into a new line before ?>) and then edit as suggested.
There are loads of threads that explain how to remove the user sort options. The method is always the same. I checked the hardwired theme - it doesn't come with the varibale definition for
Code: [Select]
$template_thumb_view_title_row, so you have to copy
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" alt="" /></td>
                                <td class="sortorder_cell">
                                        <table cellpadding="0" cellspacing="0">
                                        <tr>
                                                <td class="sortorder_options">{TITLE}</td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=ta" title="{SORT_TA}">&nbsp;+&nbsp;</a></span></td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;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}&amp;page={PAGE}&amp;sort=na" title="{SORT_NA}">&nbsp;+&nbsp;</a></span></td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;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}&amp;page={PAGE}&amp;sort=da" title="{SORT_DA}">&nbsp;+&nbsp;</a></span></td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=dd" title="{SORT_DD}">&nbsp;-&nbsp;</a></span></td>
                                        </tr>
                                        <tr>
                                                <td class="sortorder_options">{POSITION}</td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=pa" title="{SORT_PA}">&nbsp;+&nbsp;</a></span></td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=pd" title="{SORT_PD}">&nbsp;-&nbsp;</a></span></td>
                                        </tr>
                                        </table>
                                </td>
                        </tr>
                        </table>

EOT;
from themes/sample/theme.php into themes/yourtheme/theme.php
Then edit out as suggested in the thread you discovered. Basically, you set the variable to nothing/i], so you could replace the whole stuff you pasted in with
Code: [Select]
$template_thumb_view_title_row = '';Dead easy. Definitely works.
Logged

timska77

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Removing Sort From Hardwire Theme
« Reply #3 on: March 14, 2008, 08:35:17 am »

Yeah I just did it again, starting with a fresh theme.php, definitely not working for me and the only thing I changed on that file thus far was the names of some of the images. I'm not getting any errors, and it look like it should be way easy that's why I wanted to see if anyone else has ever had this problem. I guess I'll have to figure something out.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Removing Sort From Hardwire Theme
« Reply #4 on: March 14, 2008, 09:32:13 am »

Do as Sami suggested then. Post a link to your gallery as well. Zip your custom theme's folder and attach the zip to your posting here.
Logged
Pages: [1]   Go Up
 

Page created in 0.039 seconds with 20 queries.