Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...HOWTO: Add thickbox facility to DotNetNukeHOWTO: Add thickbox facility to DotNetNuke
Previous
 
Next
New Post
1/4/2009 6:50 PM
 

So now we have jquery packaged with DNN 5.0 I thought it would be a good idea to utilise that on a new site I am developing, specifically I mean use it to provide a lightbox style effect to some pictures on my new website.

 

After some research (5 minutes with google),  I found an excellent blog article http://dnnuke.blogspot.com/2007/12/integrating-lightbox-js-2033-image.html which covers integrating lightbox, but I also discovered a jQuery / Thickbox script that I felt would be a better option.

 

So, very similar to the above blog posting I have successfully and relatively easily integrated the Thickbox plug-in into the Minimal Extropy skin, and here is how.

 

The website I used to obtain the thickbox script is http://jquery.com/demo/thickbox/

 

 

I created a directory in the Minimal Extropy skin folder called thickbox.

 

Into this folder, I downloaded the file ‘thickbox-compressed.js’

 

I then downloaded the css file, ThickBox.css and pasted its contents to the bottom of the skin.css file for the Minimal Extropy skin.

 

I then open each of the index####.ascx files and added the following 2 lines

 

<script type="text/javascript" src="/Resources/Shared/Scripts/jquery.js"></script>

<script type="text/javascript" src="<%=skinpath%>/thickbox/thickbox-compressed.js"></script>

 

After the section containing the  <%@ Register TagPrefix="dnn"…. Lines.

 

Lastly I downloaded the loadingAnimation.gif image into the images folder off of the root directory, and then opened the thickbox-compressed.js file, and set the variable tb_pathToImage = “/images/loadingAnimation.gif”

 

You can then follow the instructions at the thickbox page for any images on your site (so long as they are on a page using the Minimal Extropy skin), and you are set.

 

I’m sure there will be an easier or simpler way, but this worked for me and I hope it can be of benefit to others.

 

 
New Post
1/22/2010 6:21 AM
 

Thank you!!  This is exactly the information I was looking for.  I assume this would work for all query plugins, wouldn't it? 

 
New Post
1/22/2010 11:42 AM
 

It works for most jquery, but may not work for all.  Remember that DNN has some jquery in it and that third party modules may add more, so adding jquery scripts into the skin can cause conflicts.  Of course, you'd find that on testing.  :)

Jeff

 
New Post
1/22/2010 12:32 PM
 

That's great info, it just sucks that ThickBox seems to be no longer maintained.

"While Thickbox had its day, it is not maintained any longer, so we recommend you use some alternatives.

    * colorbox
    * jQueryUI Dialog
    * fancybox
    * DOM window
    * shadowbox.js

-The Management. 9.30.2009 (and Paul Irish) "

I liked the ability to use iFrame'd content in ThickBox, does anyone know off the top of their heads if any of the alternatives offers similar functionality?

Thanks!


Wells Doty Jr
Online Content Development
 
New Post
1/22/2010 1:13 PM
 

I was all excited about using ClueTip but it doesn't seem to want to work.  At least the following I hacked to gether from your post and the cluetip samples and some other tidbits of advice I made the following attempt in my skin:

<script type="text/javascript" src="/Resources/Shared/Scripts/jquery.js"></script>
<script type="text/javascript" src="/Resources/Shared/jquery/js/jquery.hoverIntent.js"></script>

<!-- optional -->

<script type="text/javascript" src="/Resources/Shared/jquery/js/jquery.cluetip.js"></script>
<script type="text/javascript" src="/Resources/Shared/jquery/js/jquery-ui-1.7.2.custom.min.js"></script>
<link rel="stylesheet" href="/Resources/Shared/Jquery/CSS/jquery.cluetip.css" type="text/css" />
<link type="text/css" href="/Resources/Shared/Jquery/css/pepper-grinder/jquery-ui-1.7.2.custom.css" rel="stylesheet" /> 

<script type="text/javascript">
    jQuery(document).ready(function() {

    jQuery('a.siClueTip').cluetip();
        ('#houdini').cluetip({
            splitTitle: '|', // use the invoking element's title attribute to populate the clueTip...                     
            // ...and split the contents into separate divs where there is a "|"
            showTitle: true // hide the clueTip's heading
        });
    });
</script>
 

I moved the scripts to the shared resource folder thinking maybe that would make a difference over using <%=skinpath%>.  Unfortunately all I get is "Microsoft JScript runtime error: Object doesn't support this property or method" at the "jQuery('a.siClueTip').cluetip();" line.

Is this a problem with jQuery.UI, or ClueTip or something I screwed up in my hacking?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...HOWTO: Add thickbox facility to DotNetNukeHOWTO: Add thickbox facility to DotNetNuke


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out