DNN Professor Member Login
December 04, 2008

 You Are Here: ..:: Discussion Forums ::..
Forum Topics  

ForumsDNN Professor Forums


Subject: Business Directory and Photo Gallery LightBox
Prev Next
You are not authorized to post a reply.

Author Messages
Buck AndersonUser is Offline
Authors
DNN Master
DNN Master
Posts:311

Send This Member a Private Message

08/26/2008 3:32 PM  

Since the release of DotNetNuke 4.8.4, there has been some changes on how jQuery is affecting the DNN navigation menu when jQuery is used in other applications.

It appears that other applications are being affected since the changes in DNN 4.8.4.

Here is a DotNetNuke forum thread that I am looking into.

The current affect on Business Directory occurs when you click more info and the details page is causing the navigation menu to not appear.

jQuery is used on the detail page to create the LightBox effect on the images when you select slide show mode.

I can resolve the menu from disappearing by passing the noconflict directive to jquery.js and it does resolve the menu issue. The problem is that the noconflict directive forces the light box images to open in a new window instead of the expected overlay.

The menu disappearance seem to be able to resolve by adding the bolded line below to the details page code:

[script type="text/javascript" src="/DesktopModules/XMod/scripts/jquery.js"][/script]
[script type="text/javascript" src="/Portals/3/BusinessDirectory/js/thickbox.js"][/script]
[script]jQuery.noConflict();[/script]
[/xmod:scriptblock]

I have replaced arrows with brackets so the code will render in this post.

Further research is showing that the Thickbox jQuery is not compatible with the version now used with DNN 4.8.4.

The ThickBox code is what creates the image lightbox effect on the details page.

Currently, the alternatives are to leave the code as is and the LightBox will still perform, or add the fix above which will render the navigation menu but the LightBox images will open in  window vs. the overlay style they were designed to do.

If anybody has some lightbox alternatives or suggestions, let me know and I will test implementation.

Resources:

ThickBox 3.1

The original code base post on ThickBox

Buck

 

You are not authorized to post a reply.
Forums > Product Forums > Business Directory > Business Directory and Photo Gallery LightBox



ActiveForums 3.7

Copyright 2008 by Jive Media Group LLC. All Rights Reserved.  | Terms Of Use | Privacy Statement