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: Info box on the right of the thumbnail view  (Read 6323 times)

0 Members and 1 Guest are viewing this topic.

lawrence

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Info box on the right of the thumbnail view
« 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Info box on the right of the thumbnail view
« Reply #1 on: July 02, 2004, 09:23:23 am »

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
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 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>
                                <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
Logged

webhostau

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Info box on the right of the thumbnail view
« Reply #2 on: July 02, 2004, 09:23:25 am »

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/
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Info box on the right of the thumbnail view
« Reply #3 on: July 02, 2004, 11:55:24 am »

@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
Logged

DaMysterious

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 404
  • My CPG Recources
    • My CPG Recources
Re: Info box on the right of the thumbnail view
« Reply #4 on: July 02, 2004, 04:17:05 pm »

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.
« Last Edit: July 02, 2004, 07:28:33 pm by DaMysterious »
Logged
DaMysterious.

Burpee

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 71
    • Vuurwerklook.com
Re: Info box on the right of the thumbnail view
« Reply #5 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
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}"><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;
« Last Edit: July 03, 2004, 03:35:55 am by Burpee »
Logged

DaMysterious

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 404
  • My CPG Recources
    • My CPG Recources
Re: Info box on the right of the thumbnail view
« Reply #6 on: July 02, 2004, 09:26:56 pm »

Or, if you're like me and wish to change it into a more intuitive interface, replace the code Gaugau referenced to 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>
                                <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" />'  ;).
Logged
DaMysterious.

Aman Haas

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Info box on the right of the thumbnail view
« Reply #7 on: February 16, 2006, 12:08:40 pm »

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.
Logged

Nibbler

  • Guest
Re: Info box on the right of the thumbnail view
« Reply #8 on: February 16, 2006, 04:29:57 pm »

You cross-posted to the 1.4 board also, decide which version you are running and stick to it.
Logged
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 20 queries.