Removing Sort From Hardwire Theme Removing Sort From Hardwire Theme
 

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]

Main Menu

Removing Sort From Hardwire Theme

Started by timska77, March 14, 2008, 06:29:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

timska77

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.

Sami

‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

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$template_thumb_view_title_row, so you have to copy // 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$template_thumb_view_title_row = '';Dead easy. Definitely works.

timska77

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.

Joachim Müller

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.