How to remove Number of images in category

Phoca Gallery - image gallery extension
LadyIvy
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 18 Feb 2010, 01:27

How to remove Number of images in category

Post by LadyIvy »

I all,

I know,this question have been made a lot of times but....I'm not able to remove it!

I've deleted the 4 occours of

Code: Select all

if ($this->categories[$i]->numlinks > 0) {echo '<span class="small">('.$this->categories[$i]->numlinks.')</span>';}
in /components/com_phocagallery/views/categories/tmpl/default.php

and also in /components/com_phocagallery/views/category/tmpl/default.php
but the written
Number of images in category:
is still there!!! :x :x :x

Am I doing something wrong????

PS: of course I also cleared the firefox cache all the times....
LadyIvy
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 18 Feb 2010, 01:27

Re: How to remove Number of images in category

Post by LadyIvy »

ok...as always when I ask for help, after few minutes I solve my problem....

in components/com_phocagallery/views/categories/tmpl/default.php I've deleted

Code: Select all

 echo 
    '<tr><td>'.JText::_('Number of images in category') .': </td>'  
    '<td>'.$this->categories[$i]->numlinks.'</td></tr>'
    '<tr><td>'.JText::_('Category viewed') .': </td>'
  .'<td>    '.$this->categories[$i]->hits.' x</td></tr>';
Hope this will be useful for someone else! :wink:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49198
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to remove Number of images in category

Post by Jan »

:| Ok
If you find Phoca extensions useful, please support the project
hannylicious
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 26 May 2011, 19:52

Re: How to remove Number of images in category

Post by hannylicious »

I know this is an old topic - but it solves how to do exactly what I wanted.


I had a question though - is it okay to manipulate the core phocagallery files like this? Or would it be better to create a template override for this so that we can upgrade our phocagallery without worry? Would that work also?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49198
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to remove Number of images in category

Post by Jan »

Hi, depends on you which method you prefer. Small hack with updating it every time you will update the gallery, or making the override output where you maybe need to check all the new feature to implement them. :idea:

Jan
If you find Phoca extensions useful, please support the project
hannylicious
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 26 May 2011, 19:52

Re: How to remove Number of images in category

Post by hannylicious »

Good point Jan! Hadn't thought of that... and as you pointed out it's a small hack. I was just curious on your thoughts :)
Post Reply