Info box on the right of the thumbnail view Info box on the right of the thumbnail view
 

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

Main Menu

Info box on the right of the thumbnail view

Started by lawrence, July 02, 2004, 09:20:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lawrence

When I was in the thumbnail view, there is a info box on the right of the album title bar saying

TITLE  +   - 
FILE NAME  +   - 
DATE  +   -   

I have read the manual and got no glue of what is that.

Is there way to hide it please?

Thanks

Joachim Müller

this is for used to enable users to sort by another order scheme than the default one you selected in coppermine config. If you don't want your users to be able to sort in a different manner than the one you specified, edit /themes/yourtheme/theme.php, find// 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 with// 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;


GauGau

webhostau

have you checked the debug options in the config area. Sometimes they bring up all sorts of stuff.

Tom
Webhosting Melbourne
http://www.webhostingmelbourne.com/

Joachim Müller

@webhostau: I appreciate you're trying to help and I want to encourage you to continue doing support, but debug_mode is not related at all to this question.

GauGau

DaMysterious

#4
Quote from: lawrence on July 02, 2004, 09:20:01 AM
When I was in the thumbnail view, there is a info box on the right of the album title bar saying

TITLE  +   -  
FILE NAME  +   -  
DATE  +   -  

I have read the manual and got no glue of what is that.

Is there way to hide it please?

Thanks

One of the options to do so is search in your corresponding style.css on 'sortorder_cell' and 'sortorder_options', change the background-color to the same value of the 'background-color' given in 'tableh1' and this options wil be have the same background-color as your tableh1 (hint for everyone).

Another manner to do so is deleting the row 'background-color' within 'sortorder_cell' and 'sortorder_options' and they wil have the same background-color to then while no color is specifiyed (hint for everyone).

At last remove or change the line with 'color: #FFFFFF;' (in this case set to white) as this is the letters color, et voila...

Attention, these sortorder options wil stil remaining with this solution even they are invisible.

In your case simply remove the 'color: #??????;' option in both tags.
DaMysterious.

Burpee

#5
Or, if you're like me and wish to change it into a more intuitive interface, replace the code Gaugau referenced to with
// 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}"><img src="images/ascending.gif" alt"Sort ascending" border="0"/></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}"><img src="images/descending.gif" alt"Sort descending" border="0" /></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}"><img src="images/ascending.gif" alt"Sort ascending" border="0" /></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}"><img src="images/descending.gif" alt"Sort descending" border="0" /></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}"><img src="images/ascending.gif" alt"Sort ascending" border="0" /></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}"><img src="images/descending.gif" alt"Sort descending" border="0" /></a></span></td>
                                        </tr>
                                        </table>
                                </td>
                        </tr>
                        </table>

EOT;

DaMysterious

Quote from: Burpee on July 02, 2004, 09:08:16 PM
Or, if you're like me and wish to change it into a more intuitive interface, replace the code Gaugau referenced to with
// 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}"><img src="images/ascending.gif" alt"Sort ascending" border="0"></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}"><img src="images/descending.gif" alt"Sort descending" border="0"></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}"><img src="images/ascending.gif" alt"Sort ascending" border="0"></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}"><img src="images/descending.gif" alt"Sort descending" border="0"></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}"><img src="images/ascending.gif" alt"Sort ascending" border="0"></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}"><img src="images/descending.gif" alt"Sort descending" border="0"></a></span></td>
                                       </tr>
                                       </table>
                               </td>
                       </tr>
                       </table>

EOT;


Nice done Burpee! My BlackWiddow as some other themes uses this  feature already. Only thing that is missing to make your contribution xhtml compilant is to colse the img-tag like 'border"0" />'  ;).
DaMysterious.

Aman Haas

I followed Lawrence's tips about hiding the sort order but I'm still left with the + - that come after title, filename etc. I don't know where in my theme.css I have to change the font color for that. I'm afraid to just start randomly changing fontcolors to my backgroundcolor in the wrong folder. As you can read, I'm a totall newbie and not into programming. Although this post was ols I hope someone will still see it and react.

Nibbler

You cross-posted to the 1.4 board also, decide which version you are running and stick to it.