Topic: Remove "Number of Images" in Gallery

0 Members and 2 Guests are viewing this topic.

April 23, 2010, 07:15 AM

Offline carolsim

  • Newbie
  • *
  • Posts: 4
    • View Profile
Is it possible to remove the "Number of Images" feature in the Gallery?

Thanks

Bob S.

May 03, 2010, 09:20 AM

Offline komita

  • Newbie
  • *
  • Posts: 3
    • View Profile
I'd like to find this out also.

May 13, 2010, 03:33 PM

Offline ejde

  • Newbie
  • *
  • Posts: 4
    • View Profile
Yes, this would be a nice feature to have in the parameter settings.  Anybody figure out the hack needed right now?

May 13, 2010, 04:09 PM

Offline ejde

  • Newbie
  • *
  • Posts: 4
    • View Profile
Figured out a hack...

1) Go to the components -> com_jphoto -> category -> tmpl folder

2) Edit default.php - look for the following line:
Code: [Select]
<p><?php JText::printf('This gallery contains %s%s images%s''<strong>'$imgs'</strong>'); ?></p>
</div>
and comment it out using HTML comment tags (that would be <!-- for the beginning of the line of code and --> for the end of the line).

3) Do the same thing in the components -> com_jphoto -> categories -> tmpl -> default.php file for the following line of code: 
Code: [Select]
<p><?php JText::printf('%sStats:%s %s Galler'.(($gals>1)?'ies':'y').' with %s images''<strong>''</strong>'$gals$imgs); ?></p>
This will effectively remove Stats from your galleries, but in a non-destructive kind of way, just in case you want to reactivate the feature at a later point.