RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : December 02, 2008, 08:29:35 am
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  Display and Templates (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  border for display image
Advanced search
  « previous next »
Pages 1
Author
Topic: border for display image  (Read 4659 times)
« on: May 26, 2008, 08:49:15 am »
Andy Offline
Newbie
*
Posts: 5



Hello,

it is possible to make a border around the display image?
I missing a class name for the display image.

kind regards, Andy


Logged
 
Reply #1
« on: May 27, 2008, 08:42:51 am »
brandon Offline
Newbie
*
Posts: 13



link to the page you are trying to add the border to please.

Logged
 
Reply #2
« on: May 28, 2008, 08:09:36 am »
Andy Offline
Newbie
*
Posts: 5



http://www.mtb-rhein-main.de/index.php?option=com_rsgallery2&Itemid=52
Logged
 
Reply #3
« on: May 29, 2008, 06:56:15 am »
brandon Offline
Newbie
*
Posts: 13



I am going to assume here that you mean the images in the TOP 5 random images column since the gallery images already have a white border around them.

find these two lines in helper.php in the rsg2_random module folder:

Code:
return '<tr><td align="center"><a href="index.php?option=com_rsgallery2&page=inline&id='.$id.'">'.
                '<img src="images/rsgallery/thumb/'.$filename.'.jpg" alt="'.$title.'" border="0" /></a></td></tr>'; 

 and


return '<tr><td align="center"><a href="index.php?option=com_rsgallery2&page=inline&id='.$id.'">'.$title.'</a></td></tr>';



change them to:

Code:
return '<tr><td align="center"><div class="module_menu"><a href="index.php?option=com_rsgallery2&page=inline&id='.$id.'">'.
                '<img src="images/rsgallery/thumb/'.$filename.'.jpg" alt="'.$title.'" border="0" /></a></div></td></tr>'; 

 and


return '<tr><td align="center"><div class="module_menu"><a href="index.php?option=com_rsgallery2&page=inline&id='.$id.'">'.$title.'</a></div></td></tr>';


That should make those thumbnails look similar to the top thumbnail on the left side. If not let me know.



Logged
 
Reply #4
« on: May 30, 2008, 02:00:36 am »
Andy Offline
Newbie
*
Posts: 5



hello brandon,

thank you this is a good idea!

But this is not what I looked for. I need a small border (1 px)  around the large image for better look
and I think there is no css class available to do this change.

kind regards, andy
Logged
 
Reply #5
« on: June 02, 2008, 02:43:09 am »
Andy Offline
Newbie
*
Posts: 5



 Grin I have a solution  Grin

Go to Semantic - Default display template
Edit Display
Search function showDisplayImage()

In the tabble replace <div align="center"> with <div align="center" class="img-shadow">

OLD:
<table border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr>
    <td><h2 class='rsg2_display_name' align="center"><?php echo htmlspecialchars(stripslashes($item->title), ENT_QUOTES); ?></h2></td>
  </tr>
  <tr>
    <td><div align="center">

NEW:
<table border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr>
    <td><h2 class='rsg2_display_name' align="center"><?php echo htmlspecialchars(stripslashes($item->title), ENT_QUOTES); ?></h2></td>
  </tr>
  <tr>
    <td><div align="center" class="img-shadow">

Thanks brandon,

your example brought me on the solution.

Cheers, Andy
« Last Edit: June 02, 2008, 02:55:30 am by Andy » Logged
 
Reply #6
« on: June 21, 2008, 07:24:59 am »
Angelo Offline
Newbie
*
Posts: 3



Hi guys,

I try your settings and all works but you loose the central allignment of the photos ,
all the photos are shown with alignment left.

I think it's a code problem.

bye
Angelo
Logged
 
Print  Pages 1
« previous next »
Jump to: