By Will Strohl on 4/28/2009
Some twitter conversations today led me to see the need for a jQuery tips blog entry to help DotNetNuke developers integrate jQuery into their modules easier. There are a handful of things that can easily stumble someone new to the jQuery scene. Make sure you call jQuery.noConflict();. This is necessary to not cause other client scripts and libraries to run errors. This is due to the fact that other client scripts might be using the $ designator for a JavaScript class. [ jQuery.noConflict(); documentation] If manually adding jQuery, try to load the jQuery library in the header before all others. Not doing this can lead to the jQuery...
|
By Will Strohl on 4/26/2009
Last month, the family and I went to the Annual Pig on the Pond event. It is basically a carnivore festival where the kids ride the rides, and the adults “pig” out on outstanding Bar-B-Que. Yummy! While the fireworks were a dud this year (pun intended), we still managed to get some great pictures, and even some where I was playing with my low light settings.    ...
|
By Will Strohl on 4/25/2009
Even though there is a Map Module available to DotNetNuke, I had a need to use the Live Maps, instead of the default Google Maps. I found a couple of modules that looked to provide the Live Maps, but the project I was working on didn’t have a budget to purchase any of the modules. A friend sent me a snippet of code to get me started with the map, and everything sky-rocketed from there! First of all, the easiest and most reliable way to get the map properly initiated on page load requires a bit of jQuery. I have posts that can help you include jQuery in your DNN site, if you are not yet upgraded to version 5. DNN Version 5.00.00 and higher have jQuery support out of the box. No modifications are necessary. Adding jQuery to DotNetNuke 4.09.02+ Using the Injector ModuleAdd jQuery Support to Pre-DNN 5 Sites Using PageBlaster Once you have jQuery added to your site, we can move on. Add a Text/HTML Module to your page. Go to edit the text of the Text/HTML Module. Make sure that you switch to the Basic Text Box view, and then to HTML mode.  Now comes the fun part. Add some HTML to the textbox to load the map into. Also, be sure to include the script for the Live Maps client-side API. Here is a snippet: div id="mapDiv" style="position:relative;display: block; width:550px; height:600px;">div>...
|
By Will Strohl on 4/24/2009 |
By Will Strohl on 4/24/2009 Pretty much every community event these days has an after party of some kind. I wouldn’t dream of disappointing you, and having the Day of DotNetNuke be different. After consulting with someone local to the area, our Microsoft Developer Evangelist, Joe Healy, the choice of an after party has come down to one of two choices. Unfortunately, I have not been to either place. So, I will not be able to give you any constructive clues to help you vote. And that is just...
|
By Will Strohl on 4/23/2009
I recently read from someone that they suggest to always perform a Server.HtmlEncode on user-entered text. While this is good advice, it reminded me that the DotNetNuke core gives us some additional security options in the DotNetNuke.Security.PortalSecurity class. I figured that I would blog about this, as the DNN core gives us a great deal of pre-written methods to help make development easier and faster. Even though a ton of functionality is written and provided to us, most people don’t know that much of this functionality exists. The DotNetNuke.Security.PortalSecurity Class The PortalSecurity class contains several methods to help you provide encryption, decryption, portal permissions, and user entry security to your modules and providers. Here is a listing the publically available methods in DNN version 5.00.01: ClearRoles() – This method deletes the “portalroles” cookie. As a result, the current user will not match any roles...
|
By Will Strohl on 4/22/2009 |
By Will Strohl on 4/22/2009
Growing up, I didn’t really have a preference for pizza. I had not idea how good pizza could possibly be. It was not until a family vacation to Philadelphia and New Jersey in 2002 that I found out how different GOOD pizza was from what I had been eating. I am a fan of New York style pizza, but that’s mostly because I have never had good Chicago style. Anyhow, a GOOD New York style pizza has a somewhat thin crust, the best and freshest ingredients, and oregano on the sauce. When it comes out of the oven, the pizza is as greasy as they come. But the taste is so incredible!  When we returned from our vacation,...
|
By Will Strohl on 4/21/2009 If you don’t already know, there will be a free one-day event that focuses only on DotNetNuke in Tampa, Florida on June 13. This is just around the corner, and information will begin to flow very fast. This event is being called the Day of DotNetNuke! If you are on twitter, you can follow the event and event news by following @DayOfDNN. And we are using the #dodnn...
|
By Will Strohl on 4/21/2009
For those of you that don’t know, I am German, American Indian, and Guamanian. Did I confuse you with the last one? If I did, that means that my Grandfather was shipped over here as a child during WWII from a little island in the middle of the Pacific, called Guam. I used to more closely resemble my family in terms of my skin tone, but I rarely spend as much time in the sun as I used to. Which was a lot of time… My family takes pride in many things, not the least of them being cooking. One of my favorite family recipes is for a food called Lumpia, which can very easily be described as a mini seafood egg roll. They are absolutely delicious! However, they take a long time to prepare. For some reason, they are usually gone in a matter of minutes though. I am not going to give you the entire recipe. That’s partially because I do not give out family recipes, and also because for better or worse we learn to cook by sight, and...
|