Trying to remove sort feature in gallery Trying to remove sort feature in gallery
 

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

Trying to remove sort feature in gallery

Started by clint6998, June 23, 2009, 07:15:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

clint6998

http://www.clintharris.info/photos/thumbnails.php?album=3

I am trying to remove the sort feature or at least turn it off and hide it. Any ideas?

Please see the attached image for clarification.

Thanks,

Clint

phill104

Hi Clint,

Please upgrade to at least 1.4.23, preferably 1.4.25 (the current release as of today). You are running 1.4.22 which has a security issue that is fixed with later releases. Once you have done that we will be glad to help.
It is a mistake to think you can solve any major problems just with potatoes.

Joachim Müller

Why don't you search before posting your question first? Here are the threads I have found, there are certainly more of them if you use other search terms. All of them explain how to remove the sort options.

Do as Phill suggested and upgrade. This is not your first thread. You have been made aware of board rules and subsequently of the need to read the docs and search the board before being allowed to post. Make sure that your next postings live up to the standards we can expect from people who frequently use this board.

clint6998

Thank you Phil, I have updated to the newest version.

Joachim, actually I did search and tried several recommendations and I get errors and I have read the docs.  I am not trying to waste any ones time, just what I try does not seem to work. 

This is what shows up with the current post that I am trying http://forum.coppermine-gallery.net/index.php/topic,48218.0.html and ALL others show something similar.

http://clintharris.info/photos/index.php

Thanks for your help,

Clint

François Keller

attach your theme.php file  to your next post
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

clint6998

This is what shows up with the current post that I am trying http://forum.coppermine-gallery.net/index.php/topic,48218.0.html and ALL others show something similar.  Theme is attached.

http://clintharris.info/photos/index.php

Thanks for your help,

Clint

Joachim Müller

The PHP closing tag?>should be at the very end of your theme.php, which is not the case. You have copied from include/themes.inc.php instead of doing as suggested and copying from themes/sample/theme.php
Your custom theme file should look like this:<?php
define
('THEME_IS_XHTML10_TRANSITIONAL',1);

  
// HTML template for template sys_menu
  
$template_sys_menu = <<<EOT

                        <table cellpadding="0" cellspacing="0" border="0" class="top_menu_bttn">
                                <tr>
<!-- BEGIN home -->
                                        <td style="background-image:url(themes/clint/images/top_menu_button.gif);">
                                                <a href="index.php" onmouseover="MM_showHideLayers ('Menu1','','show')"><img src="themes/clint/images/home_body.gif" border="0" alt="" /><br /></a>
                                        </td>
<!-- END home -->
<!-- BEGIN my_gallery -->
                                        <td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt=""  /><br /></td>
                                        <td style="background-image:url(themes/clint/images/top_menu_button.gif);">
                                                <a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK}</a>
                                        </td>
<!-- END my_gallery -->
<!-- BEGIN allow_memberlist -->
                                        <td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt=""  /><br /></td>
                                        <td style="background-image:url(themes/clint/images/top_menu_button.gif);">
                                                <a href="{MEMBERLIST_TGT}" onmouseover="MM_showHideLayers ('Menu1','','hide')" title="{MEMBERLIST_LNK}">{MEMBERLIST_LNK}</a>
                                        </td>
<!-- END allow_memberlist -->
<!-- BEGIN my_profile -->
                                        <td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt=""  /><br /></td>

                                        <td style="background-image:url(themes/clint/images/top_menu_button.gif);">
                                                <a href="{MY_PROF_TGT}" onmouseover="MM_showHideLayers ('Menu1','','hide')" title="{MY_PROF_LNK}">{MY_PROF_LNK}</a>
                                        </td>
<!-- END my_profile -->
<!-- BEGIN faq -->
                                        <td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt=""  /><br /></td>
                                        <td style="background-image:url(themes/clint/images/top_menu_button.gif);">
                                                <a href="{FAQ_TGT}" onmouseover="MM_showHideLayers ('Menu1','','hide')" title="{FAQ_LNK}">{FAQ_LNK}</a>
                                        </td>
<!-- END faq -->
<!-- BEGIN enter_admin_mode -->
                                        <td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt=""  /><br /></td>
                                        <td style="background-image:url(themes/clint/images/top_menu_button.gif);">
                                                <a href="{ADM_MODE_TGT}" onmouseover="MM_showHideLayers ('Menu1','','hide')" title="{ADM_MODE_LNK}">{ADM_MODE_LNK}</a>
                                        </td>
<!-- END enter_admin_mode -->
<!-- BEGIN leave_admin_mode -->
                                        <td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt=""  /><br /></td>
                                        <td style="background-image:url(themes/clint/images/top_menu_button.gif);">
                                        <a href="{USR_MODE_TGT}" onmouseover="MM_showHideLayers ('Menu1','','hide')" title="{USR_MODE_LNK}">{USR_MODE_LNK}</a>
                                        </td>
<!-- END leave_admin_mode -->
<!-- BEGIN upload_pic -->
                                        <td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt=""  /><br /></td>
                                         <td style="background-image:url(themes/clint/images/top_menu_button.gif);">
                                                <a href="{UPL_PIC_TGT}" onmouseover="MM_showHideLayers ('Menu1','','hide')" title="{UPL_PIC_LNK}">{UPL_PIC_LNK}</a>
                                        </td>
<!-- END upload_pic -->
<!-- BEGIN register -->
                                        <td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt=""  /><br /></td>
                                         <td style="background-image:url(themes/clint/images/top_menu_button.gif);">
                                                <a href="{REGISTER_TGT}" onmouseover="MM_showHideLayers ('Menu1','','hide')" title="{REGISTER_LNK}">{REGISTER_LNK}</a>
                                        </td>
<!-- END register -->
<!-- BEGIN login -->
                                        <td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt=""  /><br /></td>
                                         <td style="background-image:url(themes/clint/images/top_menu_button.gif);">
                                                <a href="{LOGIN_TGT}" onmouseover="MM_showHideLayers ('Menu1','','hide')" title="{LOGIN_LNK}">{LOGIN_LNK}</a>
                                        </td>
<!-- END login -->
<!-- BEGIN logout -->
                                        <td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt=""  /><br /></td>
                                         <td style="background-image:url(themes/clint/images/top_menu_button.gif);">
                                                <a href="{LOGOUT_TGT}" onmouseover="MM_showHideLayers ('Menu1','','hide')" title="{LOGOUT_LNK}">{LOGOUT_LNK}</a>
                                        </td>

<!-- END logout -->

                                </tr>
                        </table>
EOT;

  
// HTML template for template sub_menu
  
$template_sub_menu = <<<EOT
                        <table cellpadding="0" cellspacing="0" border="0" class="top_menu_bttn">
                                <tr>
                                        <td>
                                        <!-- BEGIN custom_link -->
                                                                                <td style="background-image:url(themes/clint/images/top_menu_button.gif);">
                                                <a href="{CUSTOM_LNK_TGT}" title="{CUSTOM_LNK_TITLE}">{CUSTOM_LNK_LNK}</a>
                                        </td>
                                        <td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
                                        <!-- END custom_link -->
                                        <td style="background-image:url(themes/clint/images/top_menu_button.gif);">
                                                <a  class="top_menu_bttn" href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
                                        </td>
                                        <td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
                                        <td style="background-image:url(themes/clint/images/top_menu_button.gif);">
                                                <a href="{LASTUP_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{LASTUP_LNK}">{LASTUP_LNK}</a>
                                        </td>
                                        <td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
                                        <td style="background-image:url(themes/clint/images/top_menu_button.gif);">
                                                <a href="{LASTCOM_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{LASTCOM_LNK}">{LASTCOM_LNK}</a>
                                        </td>
                                        <td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
                                        <td style="background-image:url(themes/clint/images/top_menu_button.gif);">
                                                <a href="{TOPN_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{TOPN_LNK}">{TOPN_LNK}</a>
                                        </td>
                                        <td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
                                        <td style="background-image:url(themes/clint/images/top_menu_button.gif);">
                                                <a href="{TOPRATED_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{TOPRATED_LNK}">{TOPRATED_LNK}</a>
                                        </td>
                                        <td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
                                        <td style="background-image:url(themes/clint/images/top_menu_button.gif);">
                                        <a href="{FAV_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{FAV_LNK}">{FAV_LNK}</a>
                                        </td>
                                        <td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
                                         <td style="background-image:url(themes/clint/images/top_menu_button.gif);">
                                                <a href="{SEARCH_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{SEARCH_LNK}">{SEARCH_LNK}</a>
                                        </td>
                                </tr>
                        </table>
EOT;



// 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">
                                <!-- Remove this line to display sort options
                                       <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> 
                                        remove this line to display sort options -->
                                </td>
                        </tr>
                        </table>

EOT;

?>

clint6998

Ok, thank you. That fixed it.  I forgot to move the ?> to the end when I added the new set of code.

Thank you,

Clint

Joachim Müller

There is another error on your end that I have corrected in my code snippet. Please use the code I posted instead of yours.