collapse

* User Info

 
 
Welcome, Guest. Please login or register.

* Recent Posts

Forum closed by whazzup
[September 25, 2021, 02:56:14 PM]


How do i replace an image file with another image file by Malu
[December 16, 2020, 03:17:02 PM]


Can't get RSG "Show My Galleries" to work by Dampfnudel
[February 25, 2019, 11:01:55 AM]


Change the order of uploaded images in the gallery by whazzup
[February 19, 2019, 10:37:29 PM]


Upload timeout for large galleries (500 images each) by whazzup
[February 11, 2019, 10:07:25 PM]


Greetings from Ronald Smit by whazzup
[January 06, 2019, 03:39:22 PM]


Pluign and module by whazzup
[June 08, 2018, 11:57:13 PM]


Version 4.4.1 released by whazzup
[May 31, 2018, 04:31:16 PM]

Author Topic: Hide galery name and owner  (Read 2458 times)

Offline Malu

  • Newbie
  • *
  • Posts: 31
Hide galery name and owner
« on: October 15, 2012, 10:11:27 AM »
After a search in the gallery, the search result list shows per hit:
the thumbnail and description of the image
plus: [Galerij naam:Schilderijen] [Eigenaar: admin].

Where can I choose to hide those last two parameters?

Offline mirjam

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 670
Re: Hide galery name and owner
« Reply #1 on: October 16, 2012, 02:19:44 PM »
There is no setting in the backend that allows you to do that, you will need to change the RSGallery2 code for that.

Find the file /JOOMLAROOT/components/com_rsgallery2/lib/rsgsearch/search.html.php which has a function showResults on line 36. Scroll down to line 79 and comment it (HTML style) to remove the [Gallery name: My Gallery's name]
original line:
Code: [Select]
[<?php echo JText::_('COM_RSGALLERY2_GALLERY_NAME');?>:<a href="<?php echo JRoute::_("index.php?option=com_rsgallery2&gid=".$match->gallery_id);?>"><?php echo $match->name;?></a>]new commented line:
Code: [Select]
<!-- [<?php echo JText::_('COM_RSGALLERY2_GALLERY_NAME');?>:<a href="<?php echo JRoute::_("index.php?option=com_rsgallery2&gid=".$match->gallery_id);?>"><?php echo $match->name;?></a>]-->Added are "<!--" and "-->" at the beginning and end of the line.
Then to remove the owner text [Owner: admin] comment line 82 (PHP style) from
Code: [Select]
echo "[".JText::_('COM_RSGALLERY2_OWNER').":&nbsp;".galleryUtils::genericGetUsername($match->userid)."]";to
Code: [Select]
// echo "[".JText::_('COM_RSGALLERY2_OWNER').":&nbsp;".galleryUtils::genericGetUsername($match->userid)."]";where only "//" is added at the beginning of the line.

Please do note your changes as they will be undone whenever you'll update/reinstall RSGallery2. This is not part of the template, so creating your own template won't help with this.

With a little boy in the house I don't spend as much time on RSG2 anymore.

I still like RSG2, if you do too, please think about how you can invest some of your time in RSG2... the one remaining coding volunteer (Whazzup) can use your help!