|
Title: border for display image Post by: Andy on May 26, 2008, 09:49:15 am Hello,
it is possible to make a border around the display image? I missing a class name for the display image. kind regards, Andy Title: Re: border for display image Post by: brandon on May 27, 2008, 09:42:51 am link to the page you are trying to add the border to please.
Title: Re: border for display image Post by: Andy on May 28, 2008, 09:09:36 am http://www.mtb-rhein-main.de/index.php?option=com_rsgallery2&Itemid=52
Title: Re: border for display image Post by: brandon on May 29, 2008, 07:56:15 am 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. Title: Re: border for display image Post by: Andy on May 30, 2008, 03:00:36 am 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 Title: Re: border for display image Post by: Andy on June 02, 2008, 03:43:09 am ;D I have a solution ;D
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 Title: Re: border for display image Post by: Angelo on June 21, 2008, 08:24:59 am 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 |