Requiring Comments to be Moderated

11. April 2010

Comments must now be approved - too much spam!

Looked into spam blocking a little, but don't want to spend alot of time on this...

Definitely a weakness for BlogEngine.NET...

BlogEngine.NET ,

Session State setting in BlogEngine.NET

13. March 2010

After a long investigation why a Captcha image wasn't being generated, I discovered that BlogEngine.NET has the session state disabled in web.config.  I am generating a Captcha image via a webpage and storing the text string in a session variable.  I chose to turn the session state back on as this is acceptible for my needs.

Search in web.config for:

enableSessionState="false"

and change it to

enableSessionState="true"

 

BlogEngine.NET , ,

User Control

28. February 2010

This is an implementation of a generic contest entry user control using the BlogEngine.NET format.  Validation is done on the client and once validated, the data is encrypted and then entered into SQL Server.  (Go ahead and try it out - don't worry any data entered will be deleted).  I also added a captcha to prevent programs from entering contests.

Enter the Sweepstakes below for your chance to WIN!
Must be 18 to enter
Contest Runs Between 8/6/2010 and 10/5/2010
Gender 
First Name  
Last Name  
Address 1 
Address 2
City  
State 
Zipcode  
Year of Birth  
Home Phone  
Email  
Enter Text     
No purchase necessary to enter or win. See the Official Rules for eligibility requirements and complete details.
 

 

BlogEngine.NET , , , ,

Restricting access to certain Blogs

27. February 2010

I wanted to restrict access to certain blogs on this website. 

Note: This is not a SECURE solution! - it just limits the blogs to certain users which have the allowed role for a particular category of blogs.

Used the PostSecurity extension solution developed by LavaBlast
http://blog.lavablast.com/post/2008/08/BlogEnginenet-Post-Security.aspx
and further refined by
http://www.bookofkai.com/post/2008/09/20/Well-that-didnt-take-long.aspx
which hides some of the traces of the restricted blogs and allows the Administrator to view everything.

Had to rebuild blog core and website and upload to hosted site.

I am using Sql Server backend - so to add a role to a restrict access to a Category had to go into the SQL Table be_Role.  Add a new role
by typing in role name in the table.  The role id is automatically created.

Then go into the PostSecurity Extension and add the Category and Role.

Then go to users and add the Role to the desired users.

Worked pretty well.

BlogEngine.NET ,

I'm using BlogEngine.NET

17. February 2010

I'm blogging with BlogEngine.NET 1.6 which is an open source blogging tool: http://www.dotnetblogengine.net/.   I chose BlogEngine.NET for the .NET framework and C# coding.  Tried DotNetNuke, but that was much more complicated.   I am using a SQL Server backend to store the blog information. 

BlogEngine.NET , ,

TinyMCE settings in BlogEngine.NET

17. February 2010

Had problem loading SWF files onto blog in Tiny MCE Editor.  Turned out you had to add "media" to the settings in admin/tinyMCE.ascx.

BlogEngine.NET ,

Problem with BlogEngine.NET installation

17. February 2010

Had problem installing BlogEngine.NET on Verio server.

Problem discussed in this link: http://blogengine.codeplex.com/WorkItem/View.aspx?WorkItemId=10150

Ended up removing requestLengthDiskThreshold=16384 from web.config from httpRuntime tag.

Worked fine after this.

BlogEngine.NET