Image buttons not working on Will Strohl lightbox Gallery for DNN DotNetNuke

November 19, 2010 at 2:34 pm Leave a comment

WillStrohl LightboxGallery version 01.04.01 IE Problem

I recently came accross the JQuery lightbox by Will Strohl which is a plugin for DotNetNuke (DNN) and thought it looked great. Especially as it was open source!!!

However I had trouble getting it to work, even after ensuring  my DotNetNuke install was up to date and everything; the buttons for next, previous and close were not visible in IE, they worked fine in Firefox :(

After mutch digging around I figured out that the problem was in fact due to the paths to the images that were specified in the /* IE */ section of the jquery.fancybox-1.3.1.css CSS file. I read somewhere that you should use a full url with http://yourdomains.com  and eveything but, that would be a problem with DNN running multiple portals! So here is what you do:

Open jquery.fancybox-1.3.1.css and replace the src references in the bit at the bottom of the CSS file in the section /* IE */ changing the instances of for example:

src=’fancybox/fancy_close.png’

to

src=’./DesktopModules/WillStrohl.LightboxGallery/js/fancybox/fancy_close.png’ 

Below is the CSS for the entire section /* IE */ copy and paste it over the existing.

/* IE */

#fancybox-loading.fancybox-ie div { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='./DesktopModules/WillStrohl.LightboxGallery/js/fancybox/fancy_loading.png', sizingMethod='scale'); }
.fancybox-ie #fancybox-close  { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='./DesktopModules/WillStrohl.LightboxGallery/js/fancybox/fancy_close.png', sizingMethod='scale'); }

.fancybox-ie #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='./DesktopModules/WillStrohl.LightboxGallery/js/fancybox/fancy_title_over.png', sizingMethod='scale'); zoom: 1; }
.fancybox-ie #fancybox-title-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='./DesktopModules/WillStrohl.LightboxGallery/js/fancybox/fancy_title_left.png', sizingMethod='scale'); }
.fancybox-ie #fancybox-title-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='./DesktopModules/WillStrohl.LightboxGallery/js/fancybox/fancy_title_main.png', sizingMethod='scale'); }
.fancybox-ie #fancybox-title-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='./DesktopModules/WillStrohl.LightboxGallery/js/fancybox/fancy_title_right.png', sizingMethod='scale'); }

.fancybox-ie #fancybox-left-ico  { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='./DesktopModules/WillStrohl.LightboxGallery/js/fancybox/fancy_nav_left.png', sizingMethod='scale'); }
.fancybox-ie #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='./DesktopModules/WillStrohl.LightboxGallery/js/fancybox/fancy_nav_right.png', sizingMethod='scale'); }

.fancybox-ie .fancy-bg { background: transparent !important; }

.fancybox-ie #fancy-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='./DesktopModules/WillStrohl.LightboxGallery/js/fancybox/fancy_shadow_n.png', sizingMethod='scale'); }
.fancybox-ie #fancy-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='./DesktopModules/WillStrohl.LightboxGallery/js/fancybox/fancy_shadow_ne.png', sizingMethod='scale'); }
.fancybox-ie #fancy-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='./DesktopModules/WillStrohl.LightboxGallery/js/fancybox/fancy_shadow_e.png', sizingMethod='scale'); }
.fancybox-ie #fancy-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='./DesktopModules/WillStrohl.LightboxGallery/js/fancybox/fancy_shadow_se.png', sizingMethod='scale'); }
.fancybox-ie #fancy-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='./DesktopModules/WillStrohl.LightboxGallery/js/fancybox/fancy_shadow_s.png', sizingMethod='scale'); }
.fancybox-ie #fancy-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='./DesktopModules/WillStrohl.LightboxGallery/js/fancybox/fancy_shadow_sw.png', sizingMethod='scale'); }
.fancybox-ie #fancy-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='./DesktopModules/WillStrohl.LightboxGallery/js/fancybox/fancy_shadow_w.png', sizingMethod='scale'); }
.fancybox-ie #fancy-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='./DesktopModules/WillStrohl.LightboxGallery/js/fancybox/fancy_shadow_nw.png', sizingMethod='scale'); }

The only other issue was changing the page doctype encoding to XHTML which is done by adding an XML file into your portals skin folder called something like: default.doctype.xml

The code I put into mine was the following:

<SkinDocType>

            <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>">]]>

</SkinDocType>

I love this module, now that it works.  If you haven’t got it you can download it from http://wnslightbox.codeplex.com/

Enjoy!

Advertisement

Entry filed under: DNN, DotNetNuke, Uncategorized, Website Design. Tags: .

Microsoft Office 2010

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

November 2010
M T W T F S S
« Jun    
1234567
891011121314
15161718192021
22232425262728
2930  

Most Recent Posts


Follow

Get every new post delivered to your Inbox.