Skip to content

Joomla PonyGallery tweak

In the current release of the The Mambo/Joomla PonyGallery component, support for MamboJoe's Community Builder component is hardwired into the picture detail page. The Author name is a link to the Community Builder component. If you don't have that component installed, here is how you can remove the link.

You need to edit the PonyGallery script sub_viewdetails.php. This script is in the components/mod_ponygallery directory.

Find these lines:

  1.             echo "<tr class='sectiontableentry2'><td width='30%' valign='top'><b>"._PONYGALLERY_AUTHOR.":</b></td><td width='70%' valign='top'> <a href='index.php?option=com_comprofiler&task=userProfile&user=" . $imgownerid . "'><b>" . $imgowner
  2.                      . "</b></a></td></tr>";


And replace them with this:

  1.             echo "<tr class='sectiontableentry2'><td width='30%' valign='top'><b>"._PONYGALLERY_AUTHOR.":</b></td><td width='70%' valign='top'><b>" . $imgowner
  2.                      . "</b></td></tr>";


I'm fairly sure this will be a configuration item in the next release of PonyGallery ;) Until then, if you aren't using CommunityBuilder, this will hold you over.
Defined tags for this entry: , , , ,

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

Pavatar, Gravatar, Favatar, MyBlogLog, Pavatar author images supported.
BBCode format allowed
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
Form options