Blog

Archive

Posts Tagged ‘DNN Tips’

Empty Search Results in DNN 4.x

July 25th, 2009

When using the DotNetNuke 4.x search and no results are returned (search didn’t find content that matched the search criteria), this code will display “No Search Results Found” instead of the displaying an empty search results page.

We’ve also modified the search result item layout to make the page easier to read.

NOTE: DNN 4.x ONLY, not compatible with DNN 5.x.

  1. Download our custom SearchResults.aspx file.
  2. Create a backup copy of you current file DNNROOT\Admin\Search\SearchResults.aspx
  3. Overwrite existing file with the downloaded file DNNROOT\Admin\Search\SearchResults.aspx
  4. Give it a try!

Full width DNN events calendar with 12px font

July 20th, 2009

We’ve noticed that most or our clients find the default DNN calendar font too small. That’s why we usually add our own Events Theme for use with our custom DNN skins. You can download it for free and see if it works for you.

Leave a comment if you have any suggestions for improvement or just want to say how much you liked it.

Installation Instructions Read more…

How to add Flash Video (.flv) with controller to the Text/HTML Module in DNN

July 9th, 2009

Flash Video IconThis tutorial describes one of the many ways to add a Flash Video (.flv file) with video controller to the Text/HTML Module in DNN.

We will use 5 files for this tutorial. Read more…

SQL code lists email addresses of all members of DNN security role by name

June 29th, 2009

This is a very simple (and portable) SQL statement that will list the email addresses of all members of a DNN security role by the security role name.

This is useful if you use 3rd party newsletter or email listserv software and need the email addresses of all members of a DNN security role.

SELECT u.Email FROM Users u, UserRoles ur, Roles r
WHERE r.RoleID = ur.RoleID AND
ur.UserID = u.UserID AND
r.RoleName = 'Registered Users'

You can replace 'Registered Users' with any Security Role name.

This can be executed from the Host>SQL page or using the Microsoft SQL Server Management Studio.

Adding HTML Form Submission to the Text/HTML module in DNN

June 25th, 2009

Question: How can I add an HTML <form></form> element to the Text/HTML module in DNN?

Problem: When editors add a <form></form> tag to the Source of the Text/HTML module, the <form></form> tags are removed after they click the Update link on the “Edit Text/HTML” form.

Cause: ASP.NET only allows one form per page and by default creates its own form just inside the <body></body> tags.

Solution: Here’s an example form we will add to our Text/HTML module.

Read more…