Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
Remove hyphen link betwee images

 

 


RapidWeb
User

Jan 1, 2012, 8:38 AM

Post #1 of 2 (198 views)
Shortcut
Remove hyphen link betwee images Can't Post

Hi,
I am using Lightbox2 to display images on a detail listing page (thank you to all on the board that helped me implement it!).
There is a hyphen between each image that links to each image. How can I remove it?

The code is here:


Code
  

<div align="center">

<?php foreach ($hotelsRecord['images'] as $upload): ?>

<?php if ($upload['hasThumbnail']): ?>

<a href="<?php echo $upload['urlPath'] ?>" rel="lightbox[images]" title="<?php echo $upload['info1'] ?>">

<img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight']?>" />

</a>

<?php elseif ($upload['isImage']): ?>

<a href="<?php echo $upload['urlPath'] ?>" rel="lightbox[images]" title="<?php echo $upload['info1'] ?>">

<img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" />

</a>

<?php else: ?>

<a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a>

<?php endif ?>

<?php endforeach ?>

</div>






My detail listing TEST page is here:

http://www.koshertravelinfo.com/kosher-hotels/kosher-hotel.php?Churchill-Suites-Crown-Miami-Beach-2


Jason
Staff / Moderator


Jan 2, 2012, 9:38 AM

Post #2 of 2 (190 views)
Shortcut
Re: [RapidWeb] Remove hyphen link betwee images [In reply to] Can't Post

Hi,

Those lines seem to be a continuation of each link. This is probably being caused by extra white space between each link.

Try this code:


Code
<div align="center">   

<?php foreach ($hotelsRecord['images'] as $upload): ?>

<?php if ($upload['hasThumbnail']): ?>

<a href="<?php echo $upload['urlPath'] ?>" rel="lightbox[images]" title="<?php echo $upload['info1'] ?>"><img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight']?>" /></a>

<?php elseif ($upload['isImage']): ?>

<a href="<?php echo $upload['urlPath'] ?>" rel="lightbox[images]" title="<?php echo $upload['info1'] ?>"><img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" /></a>

<?php else: ?>

<a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a>

<?php endif ?>

<?php endforeach ?>

</div>


Hope this helps
---------------------------------------------------
Jason Sauchuk - Programmer 
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/