Register   Login
     
  Latest Posts  
RE: NA Latest - Template question
by Blondie on 3/17/2010 9:03 PM
RE: Multiple images in RSS feed
by eyesocketnet on 3/17/2010 8:20 PM
RE: Images/Lightbox on Listing template
by eyesocketnet on 3/17/2010 8:15 PM
Resouce Files
by IMISOFT on 3/17/2010 5:59 PM
RE: BUG So many 404's with rssbutton.gif
by smcculloch on 3/17/2010 4:30 PM
BUG So many 404's with rssbutton.gif
by greenflash on 3/17/2010 2:45 PM
RE: thumbnails and W3C validation
by greenflash on 3/17/2010 2:38 PM
RE: Dual PA modues on site for different levels of access?
by robax on 3/17/2010 1:38 PM
RE: Where is the NA Latest Article Module setting stored?
by ray-isc on 3/17/2010 1:10 PM
RE: Where is the NA Latest Article Module setting stored?
by Declic Video on 3/17/2010 12:46 PM
  Forums  
Subject: Adding a hyperlink to image description = no-go
Prev Next
You are not authorized to post a reply.

Author Messages
ROBAXUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:1018


2/08/2010 9:39 PM  

I've managed to stump myself with this one.

With Simple Gallery in Lightbox display mode, add a link to the description field of an image. Do this by typing something like this:

 

Then try it out. View the image, the link will be there. It looks and behaves like a link, but it can't be clicked.

I can't for the life of me see what is messing with the link, but I have removed all CSS and all HTML using Firebug to find what makes it work again. It is the div id="lightbox-container-image-data-box" that does it, but it isn't caused by any of the CSS applied to that div. It must be something else.

I'm wondering if there's something in the js perhaps?

Any solutions are much appreciated.

Rob

ROBAXUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:1018


2/08/2010 9:52 PM  
p.s. I can't make the forum code add-on above display the link html properly. It's just a basic link though.
ROBAXUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:1018


2/08/2010 10:15 PM  

I've found the offending section in the js file:

That's the unpacked version.

This bit of code makes the lower lightbox panel not-clickable so that the overlay isn't closed by clicking on it. This obviously also makes any links inside that sections unclickable.. hence my problem.

Can the js be altered to allow clickable links in the description, without making the unlinked parts of the description close the overlay when clicked?

The description is held inside id="lightbox-container-image-details-description".

Any ideas are appreciated

Rob

Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17192


2/08/2010 10:20 PM  
You are correct, the lightbox scripts captures the click event and cancels it.

I'll see what I can do for the description section.

Scott McCulloch
Site Administrator
ROBAXUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:1018


2/08/2010 10:25 PM  
That'd be great, thanks Scott.

I've found I can set
if(this.id == 'lightbox-container-image-data-box') to { return true; }
and this makes the links work, but then the remaining description area closes the overlay, which is also a pain.

Thanks heaps
Rob
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17192


2/09/2010 6:55 AM  
Yes, that's the problem, it will close the lightbox.


Scott McCulloch
Site Administrator
Ismet DumlupinarUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:349

2/14/2010 6:38 AM  
Scott, if it wouldn't be against Adsense TOS, would you consider adding a support for including custom script (Adsense Code) at the bottom of Lightbox window?

Ismet Dumlupinar MCP/MCDST/MCT
Daily DotNetNuke Tips and Tutorials
Install DotNetNuke to Godaddy Root
Dramakor Blog
Daily Life Tips
DotNetNuke Türkçe
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17192


2/15/2010 4:29 AM  
Could be possible, it is just html.

Scott McCulloch
Site Administrator
You are not authorized to post a reply.
Forums > Modules > Simple Gallery > Adding a hyperlink to image description = no-go



ActiveForums 3.7