Can't create DotNetNuke module in VS2010, template issue? - dotnetnuke

I've been following the tutorial videos for DotNetNuke and i am at the part where i am now creating my own modules. I've installed everything i need to and put the template in the required folder, but whenever i try to create a project it comess up saying
"The local IIS URL http://dnndev/desktopmodules/... specified for Web project ... has not been configured"
It then asks me to create a virtual directory but says i cant because the server "http://dnndev" is not on the local machine.
I've searched for answers for a while now and have tried editing the template file and the host file but no matter what i try i always get the same message back. Does anyone know how i can fix this?
Thanks

If you follow these steps for setting up your Development environment than the templates should work as is.
http://www.dotnetnuke.com/Resources/Wiki/Page/development-environment.aspx
If you are using a different path for your website I would recommend customizing the templates.
http://www.dotnetnuke.com/Resources/Wiki/Page/Customize-Project-Template.aspx

I assume you are using dotnetnuke wiki page link which seems confusing. For better steps go to: http://www.dotnetnuke.com/Resources/Blogs/BlogID/16.aspx and locate "Let's Build a Module #1 - Project Introduction" which is a first video in step by step series of videos which will help you to clearly understand the process.
Let me know if you need more help.

Related

Seeing calls to analytics.tiktok.com in our DNN site

We have a DNN site and I noticed on our home page that the dev tools show an error with an events.js file that is trying to call "analytics.tiktok.com". It is being blocked. I don't know if this is purposeful and I've searched our DNN modules code but haven't found an such reference.
The other devs can confirm they haven't added such code. I've searched the code folders for a file named events.js but haven't found one. I'm aware that DNN has large portions of it that are data driven but I don't know what tables to query to see if there's code that has that URL.
Is anyone aware if DNN or kendo controls has an references to tiktok?
It is definitely not part of DNN.
Another place to look for these calls are the skin (theme) controls in use, or the default.aspx. Anyway, if no one is aware of this stuff, I would check if you have a security hole (old Telerik libraries, unsafe passwords in FTP accounts...)
I would start by looking at the location in which that is embedded into the source of your webpage. Depending on where it is, that might help you track down "where" it is coming from.
It could be coming from inside source for a module, in the content of a module, in module settings, in a container, in a skin/theme, etc.

drupal site UI stopped working for reasons unknown

Am working on a drupal-7 site but it suddenly has stopped showing the correct theme and just shows a garbled UI.
have thought about it and cannot seem to locate the reason for this.
wanted to ask that if any suggestions can be given of this . secondly is there a way to refresh the drupal site (i.e. run the drupal site installation process again without re-installing/deleting any physical file/database).
hope to have made the question clear :)
Two common reasons.
The last thing you did broke it.
Someone hacked it.
Reinstall the exact same version of drupal in a new folder with a new empty database. If the only things you changed were the content (no PHP patches etc), then you should be able to simply switch databases. You could also diff the installations to see if any files were altered.
issue solved. problem came apparently from a module (custom made) which had function name same as used somewhere else on site.
thank you for time and suggestions

uBootstrap for Umbraco

I have a legacy Umbraco site which I need to make responsive. I decided to use uBootstrap for this. I downloaded the files, but I cannot find any documentation on how to integrate this with my current site. Is there something I need to install? There's no installer file.
There is documentation here, presumably where you downloaded it from:
http://our.umbraco.org/projects/starter-kits/ubootstrap
It is a starter kit, so you will probably only really be able to use it when you are creating a brand new site.
Packages listed at http://our.umbraco.org will always have a "Package discussions" link at the bottom for reading or raising questions just like this.

DotNetNuke Module Packaging

Does anyone know of any simple, concise tutorials for packaging DotNetNuke modules for DotNetNuke 4 and DotNetNuke 5? Preferably something concerning DotNetNuke 5.4, since that's what I'm running.
The examples that I've seen all assume background knowledge, or they are about short-cuts to the existing process. I'm a beginner, so I need the simple basics.
Yeah, it's kind of a nightmare the first time.
I started here: Creating a DotNetNuke® Module - For Absolute Beginners! It's DNN 4.x, so a few of the conventions may have changed, but it will probably be close enough to get you going.
Creating a DNN Module and Understanding DNN Architectural Approach goes into more detail:
I suppose the important concept is: you're writing a WebControl using the MVC pattern. The DNN Module Wizard will create a "view" page for you, and you add code to suit.
there's some good resources here for info on packages:
http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryId/1140/Packaging-and-protecting-your-DotNetNuke%C2%AE-Module.aspx
by Michael Washington (mentioned above)
http://www.dotnetnuke.com/Development/Forge/ModuleReports/tabid/970/EntryId/453/DotNetNuke-4-3-Starter-Kit-and-Item-Templates.aspx
by Shaun Walker
Simple basics...
When you start with the DNN module template in Visual Studio there's a standard .dnn file there. this file must be modified to include all files needed to run the module (resx, images, dlls, ascx, .sqldataprovider) without any of the sourcecode files (.cs, .vb).
zip all of the files mentioned in the .dnn file up with the dnn file (all files in root of the zip) and submit it to the upload new module page (logged in as Host).
the zip is automatically extracted, the .dnn file is read and all files are placed in the appropriate places.
resources for creating packages:
http://www.codeproject.com/KB/dotnet/DnnModulePackager.aspx
http://www.mitchelsellers.com/blogs/articletype/articleview/articleid/200.aspx
by looking at these you can also further your understanding of package creation.
i'm using 4.9 currently so someone may want to correct me on changes that i'm unaware of.
Google for Michael Washington and / or Mitchel Sellers and they have excellent work on Module Development.
Mark Breen
Ireland
Chris Hammond has recently written two blog posts on dotnetnuke.com about packaging modules, you should really have a look that those, they are super, he tells you how to set up your environment and how to create a C#Template for your modules.
thanks
Mark
A good place to start is use the IFrame module. It's all code behind so no compile needed before deployment. Look in the dnn file to see where the files are copied to.
You might also want to look at https://github.com/dazinator/DnnPackager which is a NuGet package that when added to your module project, automates production of the install zip, and has other features

Can this be done by skinning?

I am working on DNN 4.09.03. I want to modify the look and feel of a links module. I know how to change the outer looks with containers, but I want achieve a mouseover effect for the links itself.
Looking closely it appears that the links are placed into a table datacell. I want to set the background of that cell to and image, and on mouseover swap it for another image. Can this be done with skinning?
If not, I need some assistance in extending/customising the links module source. I need to know how to set up the development environment to do this first. I have the DotNetNuke solution (with source code) working in VS2008. How do I integrate the source of the links module, so i can customise it (and rename - maybe mylinks)?
I don't think you can do this by containers. If you can do it by any chance, I bet doing it by modifying the code is easier. You have to remember that you might have problems upgrading the links module in future if you modify it.
Just add the Links module to DNN VS2008 solution as a web application. You can do whatever change you won't to do in it. And then use a nant script to just package it and copy to DNN/Install/Modules folder. And then hit the DNN installation URL:
http://<dnn_url>/Install/Install.aspx?mode=installresources
Alternatively you can write some post-build commands in VS2008 it self to copy stuff. Have a look at the existing modules and where each different part files of a module (.ascx, .dnn, .sqldataprovider) is stored in DNN after installation.
This is possible with some creative CSS and maybe even a little jQuery - i did a lot of this sort of thing for the Blog module without having to touch the core module -

Resources