Learn More





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...Skins, Themes, ...Skins, Themes, ...Jquery disabled when I log outJquery disabled when I log out
New Post
11/19/2014 9:18 AM

Hi all, I have a query which is getting to me.  I have created a custom skin, on the home page of my skin that tidies up the location of the search module and the login screen module.

$('#dnn_ContentPane >  .DnnModule-SearchResults ').css("margin-left", "auto").css("margin-right", "auto").css("margin-top", "10%").css("padding-bottom", "20px").css("max-width", "60%");
$('#dnn_ContentPane >  .DnnModule--1 ').css("margin-left", "auto").css("margin-right", "auto").css("margin-top", "10%").css("padding-bottom", "20px").css("max-width", "40%");


it all works fine and dandy if i am logged in as a host, but as soon as i log out it does not work.  I'm guessing I need to register the jquery  in a <dnn:DnnJsInclude runat="server"></dnn:DnnJsInclude> tag which refers to a shared area.

I originally pointed it to "~/portals/skins/mymodule/js/jquery.js" but this does not work, please help

New Post
11/19/2014 12:43 PM
DNN loads jQuery only when needed, e.g. for the controlpanel.
if you need it for your skin, you need to register it.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group   European Network of DotNetNuke Professionals

Speed up your DNN Websites with TurboDNN
New Post
11/19/2014 12:51 PM

Use the jquery skin object, that should handle loading it if it isn't already.

<%@ Register TagPrefix="dnn" TagName="JQUERY" Src="~/Admin/Skins/jQuery.ascx" %>
<dnn:JQUERY ID="dnnjQuery" runat="server" />


New Post
11/20/2014 4:51 AM
Thanks you Timo Breumelhof this worked perfectly, so I am now back in business :)

And thank you Sebastian for always being quick to respond
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Jquery disabled when I log outJquery disabled when I log out

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.
Try Evoq
For Free
Start Free Trial
a Demo
See Evoq Live
Need More Information?