..it happens. When you get 404 errors for all pages on fresh installation, just change <modules> in web.config to <modules runAllManagedModulesForAllRequests="true">. Thats it.
This blog is about life of true developer. Projects, coding, testing, ideas, interesting customers from around the world - all these events make life of developer interesting and active. In this blog i will try to describe my experience. Hope it helps someone :)
Showing posts with label DotNetNuke. Show all posts
Showing posts with label DotNetNuke. Show all posts
Thursday, 11 September 2014
Friday, 17 January 2014
DotNetNuke 7.2.0: Prevent "Getting Started Page" for SuperUsers
In DNN 7.2.0 has been added "Getting Started Page" for Super Users. It looks like this:
So, "Getting Started Page" appears on the next conditions:
- Current User is SuperUser.
- Current TabID is equal to the param "GettingStartedTabId" (for current Portal) from the "PortalSettings" table.
- Setting "EnableGettingStartedPage" from the "HostSettings" table should be equal "True".
You can hide this message in few ways:
- Just tick a checkbox "Don't show this again" at the bottom left corner. But this will hide "Getting Started Page" for current SuperUser only, and will show it for other SuperUsers.
- Change "EnableGettingStartedPage" setting from the "HostSettings" table to "false". After this change, "Getting Started Page" will not be displayed for all SuperUsers.
- If you like to change it for all future installations you plan to do, then you can edit "Install/DotNetNuke.install.config.resources" file in your installation package. In this file you can find "<EnableGettingStartedPage>True</EnableGettingStartedPage>", what is very easy to change to "False".
BTW: I have not found a way on how to change "EnableGettingStartedPage" setting from the "HostSettings" at the FrontEnd.
Friday, 24 May 2013
DotNetNuke folder: encrypted files caused access denied error
Had to spend over the 3 hours with a client until found that files in the folder are encrypted. This caused "Access denied" error and did not allow DotNetNuke to work properly :( BTW: encrypted files in the Windows 2008 environment highlighted with green. To remove encryption just select all files, right click and remove encryption from the files.
Tuesday, 29 January 2013
DotNetNuke 7 styles checkboxes and radiobuttons
This happens at the dnn.jquery.js script (/* DNN customized checkbox/radiobox */). It makes changes for all checkboxes and radiobuttons: controls are hidden, but instead it shows styled span.
It looks beauty and great, but sometimes i need simple HTML checkboxes, like this
. Had to digg a lot, but have not found where is a problem. So had to check myself and found easy fix. All you need to show simple checkbox or radiobox, just add class="normalCheckBox" or "normalRadioButton" and your controls will be standard.
Enjoy :)
Thursday, 20 December 2012
SearchItemWordPosition grows very fast because duplicates
One of my clients got this problem. His DB went from the 80 Mb to 1 Gb in just one week. After deep research i found table SearchItemWordPosition contains 33 millions records and takes a lot of space in the DB. On deeper search i found it contains a lot of duplicates and this problem is very common in the DNN Community. So first of all i have made a script to remove duplicates:
Tuesday, 22 May 2012
ClientDependencyLoader takes 100% of CPU
One of my clients had serious problem with DotNetNuke 6.1.4 Pro. His site had small number of visitors at start, but after some advertisement, number of visitors jumped to the 30,000 uniq visitors per day. Site was under the good dedicated server (2*Xeon and 16 Gb RAM), so client did not expect any problems with performance. But one day CPU has taken 100%. Site was very hard to open. It was real problem. We had to make deep digging with JetBrain tools and at the end of end we found problem. 90% of each thread calls ClientDependencyLoader from the ClientDependency.Core! It was a source of problem. To turn it off we had to change the web.config:
<compilation debug="false" strict="false">to this one:
<compilation debug="true" strict="false">I know, this is not good trick, but at least CPU back to the normal 25-35%.
Thursday, 26 April 2012
To find pages with installed module you can run this SQL code (just replace HTML with Friendly Name of required module):
Monday, 16 April 2012
DotNetNuke Tokens
List of tokens:
[Portal:Currency] Currency String
[Portal:Description] Portal Description
[Portal:Email] Portal Admin Email
[Portal:FooterText] Portal Copyright Text
[Portal:HomeDirectory] Portal (relative) Path of Home Directory
[Portal:LogoFile] Portal Path to Logo file
[Portal:PortalName] Portal Name
[Portal:PortalAlias] Portal URL
[Portal:TimeZoneOffset] Difference in minutes between Portal default time and UTC
[User:DisplayName] User’s Display Name
[User:Email] User’s Email Address
[User:FirstName] User’s First Name
[User:FullName] [deprecated]
[User:LastName] User’s Last Name
[User:Username] User’s Login User Name
[Membership:Approved] Is User Approved?
[Membership:CreatedDate] User Signup Date
[Membership:IsOnline] Is User Currently Online?
[Profile:<Property>] Use any default or custom Property defined for user profiles as listed in Profile Property Definition section of Manage User Accounts. Please use non-localized Property titles only.
[Tab:Description] Page Description Text for Search Engine
[Tab:EndDate] Page Display Until Date
[Tab:FullUrl] Page Full URL
[Tab:IconFile] Page Relative Path to Icon file
[Tab:KeyWords] Page Keywords for Search Engine
[Tab:PageHeadText] Page Header Text
[Tab:StartDate] Page Display from Date
[Tab:TabName] Page Name
[Tab:TabPath] Page Relative Path
[Tab:Title] Page Title (Window Title)
[Tab:URL] Page URL
[Module:Description] Module Definition Description
[Module:EndDate] Module Display Until Date
[Module:Footer] Module Footer Text
[Module:FriendlyName] Module Definition Name
[Module:Header] Module Header Text
[Module:HelpUrl] Module Help URL
[Module:IconFile] Module Path to Icon File
[Module:ModuleTitle] Module Title
[Module:PaneName] Module Name of Pane where UDT resides
[Module:StartDate] Module Display from Date
[DateTime:Now] Current Date and Time
[Ticks:Now] CPU Tick Count for Current Second
[Ticks:Today] CPU Tick Count since Midnight
[Ticks:TicksPerDay] CPU Ticks per Day (for calculations)
[Portal:Currency] Currency String
[Portal:Description] Portal Description
[Portal:Email] Portal Admin Email
[Portal:FooterText] Portal Copyright Text
[Portal:HomeDirectory] Portal (relative) Path of Home Directory
[Portal:LogoFile] Portal Path to Logo file
[Portal:PortalName] Portal Name
[Portal:PortalAlias] Portal URL
[Portal:TimeZoneOffset] Difference in minutes between Portal default time and UTC
[User:DisplayName] User’s Display Name
[User:Email] User’s Email Address
[User:FirstName] User’s First Name
[User:FullName] [deprecated]
[User:LastName] User’s Last Name
[User:Username] User’s Login User Name
[Membership:Approved] Is User Approved?
[Membership:CreatedDate] User Signup Date
[Membership:IsOnline] Is User Currently Online?
[Profile:<Property>] Use any default or custom Property defined for user profiles as listed in Profile Property Definition section of Manage User Accounts. Please use non-localized Property titles only.
[Tab:Description] Page Description Text for Search Engine
[Tab:EndDate] Page Display Until Date
[Tab:FullUrl] Page Full URL
[Tab:IconFile] Page Relative Path to Icon file
[Tab:KeyWords] Page Keywords for Search Engine
[Tab:PageHeadText] Page Header Text
[Tab:StartDate] Page Display from Date
[Tab:TabName] Page Name
[Tab:TabPath] Page Relative Path
[Tab:Title] Page Title (Window Title)
[Tab:URL] Page URL
[Module:Description] Module Definition Description
[Module:EndDate] Module Display Until Date
[Module:Footer] Module Footer Text
[Module:FriendlyName] Module Definition Name
[Module:Header] Module Header Text
[Module:HelpUrl] Module Help URL
[Module:IconFile] Module Path to Icon File
[Module:ModuleTitle] Module Title
[Module:PaneName] Module Name of Pane where UDT resides
[Module:StartDate] Module Display from Date
[DateTime:Now] Current Date and Time
[Ticks:Now] CPU Tick Count for Current Second
[Ticks:Today] CPU Tick Count since Midnight
[Ticks:TicksPerDay] CPU Ticks per Day (for calculations)
Saturday, 21 May 2011
ModuleSettings and TabModuleSettings Difference in DotNetNuke
If you do not like to read preambula and want to know what is the difference between ModuleSettings and TabModuleSettings, then you can read it here.
Have been worked with it for a long time. Also asked a lot of DotNetNuke gurus, but they did not provide concrete answer about difference between ModuleSettings and TabModuleSettings. In generally it looks the same. For example, we have Settings.ascx. Inside we save some settings, for example Template. So our code should be like this:
Have been worked with it for a long time. Also asked a lot of DotNetNuke gurus, but they did not provide concrete answer about difference between ModuleSettings and TabModuleSettings. In generally it looks the same. For example, we have Settings.ascx. Inside we save some settings, for example Template. So our code should be like this:
Sunday, 8 May 2011
Create User Programmatically in DotNetNuke
One colleague asked about example on how to create user in DotNetNuke programmatically. Here is simple example on C# how to do this:
DotNetNuke Module Development Certification
Last Friday have successfully passed 2 certifications: DotNetNuke Module Development Certification and DotNetNuke Professional Certification. Both are 100% successfully done. Very good feeling after it.
This info should be published at DotNetNuke official site within new Partners Directory and should make more clear selection process for customers.
PS: Will add link, once it will be available at the official DNN site.
DotNetNuke Unauthenticated Users Cache Bug
This is very popular bug for Unauthenticated Users in DotNetNuke. User arrives to the page, clicks link and nothing happens! It looks like page does not refresh at all. No PostBacks, nothing. And this gluck happens only for Unauthenticated Users. When user is logged in, then everything works fine.
This bug relates to the Cache Settings of the module. It can be fixed in few clicks:
This bug relates to the Cache Settings of the module. It can be fixed in few clicks:
- Go to the Settings of the module.
- Scroll down to the "Page Settings" - "Basic Settings" and expand it.
- There is a param "Cache Duration (seconds)". By default it is different from zero. You should set it to zero. It fixes problem.
Hope this helps!
Friday, 6 May 2011
DotNetNuke Telerik Editor ToolBars
Each DotNetNuke developer can easy add RichEditor to the project. All what you need is to add control to your .ascx file, like this:
This code adds two RichEditors. One like simple textbox (DefaultMode="BASIC") and another fully WYSIWYG . RichEditor with WYSIWYG looks like this:
This is great! Users like it to use. It has a lot of ToolBars. Control provides very good functionality. But sometimes it needs to remove some ToolBars. So how to do this in the DotNetNuke module?
<%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx" %><dnn:TextEditor runat="server" id="tbFirst" DefaultMode="BASIC"></dnn:TextEditor><dnn:TextEditor runat="server" id="tbSecond" DefaultMode="RICH"></dnn:TextEditor>
This code adds two RichEditors. One like simple textbox (DefaultMode="BASIC") and another fully WYSIWYG . RichEditor with WYSIWYG looks like this:
This is great! Users like it to use. It has a lot of ToolBars. Control provides very good functionality. But sometimes it needs to remove some ToolBars. So how to do this in the DotNetNuke module?
Thursday, 5 May 2011
DataExporter for DotNetNuke
Very often Administrators and Developers of DotNetNuke have to work with data from the DataBase. Usually it needs to receive and to process the DataSet or transmit for processing into another application.
forDNN Team has made this module to make process of retrieving data from the DB more easy.
This module is pretty simple and fast. It allows to select DataSource: table, view or a custom query. List of tables and the view presented in the form like DropDowns. DropDowns contains names and number of entries for each of table/view.
Also module allows to choose the format in which data will be exported from the database. It supports three data formats: Excel, XML and CSV.
Module is available at the CodePlex: Installation and Source.
DotNetNuke Not Uniq Emails
Sometimes clients ask to make registration at the site with uniq emails only. It somehow prevents to appear duplicates of the users. But sometimes site is live already and have a lot of registered users, then it needs to find all users with not uniq emails in DB and to fix. It is possible with query like this:
SELECT UserID, UserName, FirstName, LastName, Email, DisplayNameFROM {databaseOwner}{objectQualifier}UsersWHERE Email IN(SELECT EmailFROM {databaseOwner}{objectQualifier}UsersGROUP BY EmailHAVING COUNT(Email)>1);Hope this helps!
Tuesday, 3 May 2011
The most stupid advertising...
The most stupid decision about advertising of the module for DotNetNuke was banner at the site AllDnnSkins. Small price $100 per month, but prepayment for 3 months forward. And only 5 visitors from this site per month! $20 per visitor - real shit. Experience is crazy expensive.
Friday, 29 April 2011
Configure Users Online in DotNetNuke
Users Online is very good module to display number of users at the site. Also it allows to show usernames of users at the site. To configure Users Online the module it needs to do few steps:
Friday, 22 April 2011
Create new page for DotNetNuke in background
Prehistory:
Some customers need to create a lot of pages at one time. This is why "Bulk Pages Creation" has been added to the Pages Admin - Tabs Manager. But few days ago one customer submitted bug. He tried to create about 500 pages in bulk. Less then 100 have been created, but other have been failed. Problem is httpRuntime executionTimeout in the web.config has small time and after 90 seconds (default value) it fails.
History:
Thursday, 21 April 2011
Number of versions in HTML module (DotNetNuke)
By default HTML module for DotNetNuke has deep of versions equal 5. And there is no way to change it with user interface. This is not good, because sometimes we need more versions to save.
We can fix it easy. Number of versions located in the Portal Settings table and can be easy changed with query like this:
UPDATE {databaseOwner}{objectQualifier}PortalSettings
SET SettingValue = '5'
WHERE (SettingName = 'MaximumVersionHistory') AND (PortalID=0);All you need is just replace '5' with number of versions you need and PortalID with ID of your portal (usually 0).
Do not forget after this query restart Application Pool (Host/Host Settings/ Restart Application). It should update a cache.
Hope this helps!
Tuesday, 19 April 2011
How to add break to the ModuleActions for DotNetNuke module
Sometimes in the module for DotNetNuke there are a lot of Actions, like this:
It is not good for usability. Would be better to group items somehow with small breaks between Actions in the list, like this:
As you see breaks between items in the menu makes it more user friendly and grouped. it is very easy to add breaks like this, just need to pass special character "~" for Title for ModuleAction object. Here is example of code (C#):
Actions.Add(GetNextActionID(),
"Suppliers",
DotNetNuke.Entities.Modules.Actions.ModuleActionType.AddContent,
"", "", EditUrl("Currency"), false, DotNetNuke.Security.SecurityAccessLevel.Edit, true, false);
Actions.Add(new DotNetNuke.Entities.Modules.Actions.ModuleAction(GetNextActionID(), "~", ""));
Hope this helps!
It is not good for usability. Would be better to group items somehow with small breaks between Actions in the list, like this:
As you see breaks between items in the menu makes it more user friendly and grouped. it is very easy to add breaks like this, just need to pass special character "~" for Title for ModuleAction object. Here is example of code (C#):
Actions.Add(GetNextActionID(),
"Suppliers",
DotNetNuke.Entities.Modules.Actions.ModuleActionType.AddContent,
"", "", EditUrl("Currency"), false, DotNetNuke.Security.SecurityAccessLevel.Edit, true, false);
Actions.Add(new DotNetNuke.Entities.Modules.Actions.ModuleAction(GetNextActionID(), "~", ""));
Hope this helps!
Subscribe to:
Posts (Atom)

