[Solved]: how to remove albums number text [Solved]: how to remove albums number text
 

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

[Solved]: how to remove albums number text

Started by NoBob, August 10, 2004, 09:50:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

NoBob

Could you tell me how I hide the "(X number of) albums on X page(s)" text on the index and thumbnails pages? It can say something like "11 albums on 1 page(s)." I can't find the code in theme.php. Thanks.

NoBob.

Nibbler

Try the language file - $lang_list_categories

NoBob

I found this:

$lang_list_categories = array(
  'home' => 'Home',
  'stat1' => '<b>[pictures]</b> files in <b>[albums]</b> albums and <b>[cat]</b> categories with <b>[comments]</b> comments viewed <b>[views]</b> times', //cpg1.3.0
  'stat2' => '<b>[pictures]</b> files in <b>[albums]</b> albums viewed <b>[views]</b> times', //cpg1.3.0

How do I hide it? With <!-- code --> ?

NoBob

Nibbler

Just change them to empty strings.

'stat1' => '';

NoBob

I did that and then refreshed the index page. The language just changed to Polish and the info about album numbers was still there.

NoBob

Casper

If the language change to polish, and your usual language is not that, just go into config and change it back.

And obviously, as this fix uses the language file, any viewer using an unmodified language will still see the stats.

It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Casper

I suggest you use the following method.

Open themes/yourtheme/theme.php, and find;

<!-- BEGIN footer -->
       <tr>
           <td colspan="3" class="tableh1" align="center"><span class="statlink"><b>{STATISTICS}</b></span></td>
     </tr>
<!-- END footer -->


and change it to;

<!-- BEGIN footer -->
       <tr>
          <!--     <td colspan="3" class="tableh1" align="center"><span class="statlink"><b>{STATISTICS}</b></span></td>
    -->   </tr>
<!-- END footer -->


and then find;

<p class="album_stat">{ALB_INFOS}</p>

and remove that.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

NoBob

#7
I did that

<!-- BEGIN footer -->
        <tr>
                <!-- <td colspan="3" class="tableh1" align="center"><span class="statlink"><b>{STATISTICS}</b></span></td> -->
        </tr>
<!-- END footer -->


and did this

{ADMIN_MENU}
                        <p>{ALB_DESC}</p>
                        <!-- <p class="album_stat">{ALB_INFOS}</p> -->
                </td>


but no change... www.rtwtravel.com/pictures

NoBob.

NoBob

Anybody know why the fix doesn't work?

NoBob

Joachim Müller

this is not a hotline, allow days for supporters to react and answer, not hours! >:(

GauGau

NoBob

Well, a few days have passed...I still haven't been able to remove the "x number of files in album" text from the index page. Would someone mind helping me out please?

NoBob.

skybax

in lang (english.php) find:

'stat1' => '<b>[pictures]</b> files in <b>[albums]</b> albums and <b>[cat]</b> categories with <b>[comments]</b> comments viewed <b>[views]</b> times',

and comment out the 'stat1' and 'stat2' lines. upload and you should be good to go.
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.skybax.com%2FhotImage%2Fpost_footer.gif&hash=338b65c57a59f0b06311094e697c87794e43d945)
Don't contact me for support over PM or email unless I requested you to do so. Instead: post on the proper board.

NoBob

Hi,

I put a couple of slashes in front of the stat lines. But the index page didn't change.

$lang_list_categories = array(
  'home' => 'Home',
  //'stat1' => '<b>[pictures]</b> files in <b>[albums]</b> albums and <b>[cat]</b> categories with <b>[comments]</b> comments viewed <b>[views]</b> times', //cpg1.3.0
  //'stat2' => '<b>[pictures]</b> files in <b>[albums]</b> albums viewed <b>[views]</b> times', //cpg1.3.0
  'xx_s_gallery' => '%s\'s Gallery',
  'stat3' => '<b>[pictures]</b> files in <b>[albums]</b> albums with <b>[comments]</b> comments viewed <b>[views]</b> times', //cpg1.3.0
);

I replaced the stat lines with 'stat1' => ''; and 'stat2' => '';

$lang_list_categories = array(
  'home' => 'Home',
  'stat1' => ''; //cpg1.3.0
  'stat2' => ''; //cpg1.3.0
  'xx_s_gallery' => '%s\'s Gallery',
  'stat3' => '<b>[pictures]</b> files in <b>[albums]</b> albums with <b>[comments]</b> comments viewed <b>[views]</b> times', //cpg1.3.0
);

but got the following error on the gallery index page:

Parse error: parse error, unexpected ';', expecting ')' in /home/httpd/vhosts/rtwtravel.com/httpdocs/pictures/lang/english.php on line 814

What did I do wrong?

NoBob.

coolhead

Quote from: NoBob on August 10, 2004, 09:50:44 PM
Could you tell me how I hide the "(X number of) albums on X page(s)" text on the index and thumbnails pages? It can say something like "11 albums on 1 page(s)." I can't find the code in theme.php. Thanks.

NoBob.

Open the file "english.php" find where say

$lang_album_list = array(
'album_on_page' => '%d albums on %d page(s)'
);


and try to change to

$lang_album_list = array(
'album_on_page' => ''
);


I don't have test this solution, good luck!!

Joachim Müller

#14
you can only comment out lines in php using the double slash if you don't "destroy" the surounding structure. In your case, you messed inside an array definition that stretches over several lines. Do as coolhead  suggested, he is right.

GauGau

NoBob