Please login or register.
Login with username, password and session length
May 24, 2013, 09:11:28 PM
News: We're back! And here to stay!
collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Recent Posts

Fatal error: by mailtobala04
[May 17, 2013, 04:36:20 PM]


Backend Items (Images) don't work by bauchinj
[May 15, 2013, 04:18:55 PM]


Permissions issue: a user can upload images in other user galleries by guidocx84
[May 11, 2013, 05:17:44 PM]


Payment after loggin by mirjam
[May 11, 2013, 03:02:56 PM]


image titles without dashes by mirjam
[May 11, 2013, 02:57:48 PM]


Batch Upload Fails by mirjam
[May 11, 2013, 02:52:08 PM]


Slow Gallery with many Photos by mirjam
[May 11, 2013, 02:49:36 PM]


500 error Rackspace by mirjam
[May 11, 2013, 02:23:09 PM]

Advertisement


Pages: [1]   Go Down

Author Topic: Removing image names from gallery display  (Read 786 times)

Offline annasweb

  • Newbie
  • *
  • Posts: 3

Removing image names from gallery display
« on: March 22, 2012, 07:16:36 PM »
Hi,

I recently upgraded to the latest version of the RSGallery2.  Prior to this upgrade I could see images on my site fine without the image name on the page the image displayed on.  Now with the upgrade I see the image names above the images.  I need to see images only - no titles.  How do I do this?  I don't remember if I had to do anything on the old version to make this happen.

Thanks,
Anna

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: Removing image names from gallery display
« Reply #1 on: March 25, 2012, 01:51:16 PM »
To which version did you upgrade? 3.1.0 on Joomla 2.5 or 2.2.1 on Joomla 1.5? From which version did you upgrade?

In the gallery view (like here: http://demo.rsgallery2.nl/demo-rsgallery2/3-a-subgallery.html) you can choose if you want to show the image name below the thumbnail or not. It's a setting in the Configuration in RSGallery2's Control Panel: "Show image name below thumbnail".

On the itempage (like here: http://demo.rsgallery2.nl/demo-rsgallery2/3-a-subgallery/21-1545497.html) the image title always shows. There is no setting for that. However, you can edit the files of the template to remove the title. If you need help with that, please post the RSGallery2 version you are using. Also, this topic might be interesting for you then as well: http://www.rsgallery2.nl/display_and_templates/how_create_your_own_template_or_modify_semantic_template_16758.msg43609.html#msg43609.
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.

Offline annasweb

  • Newbie
  • *
  • Posts: 3

Re: Removing image names from gallery display
« Reply #2 on: March 25, 2012, 11:26:03 PM »
Hi,

I upgraded from 2.0 to the 2.2.1 for Joomla 1.5.  In the 2.0 I didn't have any tags at the top or under the images.  Once I uploaded the new upgrade they are there.  I'll check out the links you put in your reply and see if they help.

Thanks so much for your help.

Anna

Offline scene66

  • Newbie
  • *
  • Posts: 23

Re: Removing image names from gallery display
« Reply #3 on: May 04, 2012, 02:48:35 PM »
Hi

I'd appreciate assistance locating the code to delete the appearance of image names in single image view.

I have duplicated the template and and adjusted template name as described.

I am guessing the relevant file is html/item_image.php but beyond that I'm lost.

Thanks in advance.

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: Removing image names from gallery display
« Reply #4 on: May 04, 2012, 04:38:06 PM »
For RSGallery2 3.1.0, to remove the item name in a view like this one: http://demo.rsgallery2.nl/demo-rsgallery2/2-second-gallery/13-test3.html.

The page has
- pagination - rsg_sem_inl_Nav
- item title, image, downloadlink - rsg_sem_inl_dispImg
- pagination - rsg_sem_inl_Nav
- tabs: Description, Voting, Comments, Exif - rsg_sem_inl_ImgDetails
- RSG2 footer - rsg_sem_inl_footer
I've added the class names of the div elements, Firebug is a handy tool for Firefox to find these things. I use them as a kind of "landmarks" to search for such texts in the files with Notepadd++.

You want to remove the item title and it's in a div with class rsg_sem_inl_dispImg. That div is found in /JOOMLAROOT/components/com_rsgallery2/template/semantic/html/inline.php, on line 9-11 you see that with a function showItem all the elements within this div are generated:
Code: [Select]
<div class="rsg_sem_inl_dispImg">
    <?php $this->showItem(); ?>
</div>
You can find the function showItem in /JOOMLAROOT/components/com_rsgallery2/template/semantic/display.class.php on line 242 and further. This function outputs a table with three rows, one for the item name, one for the image and one for the downloadlink. So you can either remove the table row in which the item name is given on lines 254-256:
Code: [Select]
<tr>
<td><h2 class='rsg2_display_name' align="center"><?php echo htmlspecialchars(stripslashes($item->title), ENT_QUOTES); ?></h2></td>
</tr>
OR comment out the php statement that echos the item name on line 255:
Code: [Select]
<?php //echo htmlspecialchars(stripslashes($item->title), ENT_QUOTES); ?>
(two slashes, //, were added here).

I hope that by explaining it this way you get an idea of how to find things if you want to change more things :-)
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.

Offline scene66

  • Newbie
  • *
  • Posts: 23

Re: Removing image names from gallery display
« Reply #5 on: May 05, 2012, 12:15:55 PM »
Thank you mirjam. Terrific product. Terrific service.
Pages: [1]   Go Up
 

anything