Wednesday, September 17, 2008 @ 2:09 PM For some reason the "remember me" checkbox in DotNetNuke websites usually does not function correctly. In fact, it does not remember you at all!
The fix is to update your web.config file. Find the setting called PersistentCookieTimeout in the appSettings section, it's probably set to 0. Change this to whatever value you like (in minutes). I like 10080 to remember users for 1 week.
Tuesday, September 02, 2008 @ 11:37 AM The other day I needed to promote a regular DotNetNuke user account to a "SuperUser" account and couldn't find any info on how to do it. Well it turns out it's quite easy if you can run a quick SQL script on your DNN database. Here's all it takes:
-- Promote regular user to SuperUser
declare @username varchar(50)
set @username = 'theUsernameToPromote'
UPDATE Users SET IsSuperUser = 1 WHERE username = @username
DELETE FROM UserPortals WHERE UserId = (SELECT UserID FROM Users WHERE username = @username)
Run the script above on your DNN database and whoila!
Friday, May 16, 2008 @ 10:39 AM I needed to programmatically hide a DotNetNuke module today and I couldn't find any examples of how to do it. So here's how to do it. This hides the entire module, including the container and title.
In your Page_Init method in your code-behind, use this little baby:
ContainerControl.Visible = false;
Tuesday, March 04, 2008 @ 10:05 PM Today marks the end of my first round of "30 days". My goals for the past 30 days were...
Read the rest of this post...Sunday, February 24, 2008 @ 5:18 PM Today marks the end of "Week 3" for my current set of goals. I've been doing pretty well with them, I'd say about 95% achievement thus far :)
I'm starting to think about what I should add on for the next "cycle".
Monday, February 11, 2008 @ 7:46 AM 7 days in, still going strong. In order to wake up at 5:30 each weekday, I had to move my alarm clock across the room so I'd be forced to get out of bed to turn it off. As for the fast food thing, I used to eat fast food the most at lunch time for work, my plan so far has been to just pack my own lunch and bring it with me so I won't be tempted by eating out. So far it's working.