Recent Comments
Oops, there not exist any comments now.

How to set DotNetNuke SMTP

There are many details of which we need to take care when we set the DNN SMTP. Using the right settings combination in SMTP is very important.

Common SMTP setting

For most E-mail account, we need to provide SMTP Authentication information when we try to use SMTP server,so for most E-mail account, you should choose "Basic" under “SMTP Authentication:” and fill the "SMTP Username" and "SMTP Password"

Important! "Host Email" field under "Host Details" section in host settings menu must be modified to the Email address correspond to you SMTP. Such as your use smtp@163.com SMTP server, Host Email muse be yourusername@163.com.

image

How to add module's source package to DNN development environment

Download the source package

You should get the source package of the module you want to modify. For DNN official module, source package shipped with PA package in the sometime, for third part module, if it's open source, you can find a source package on it's website.

For example, DNN official Announcement module:

image

Customize the login interface of DNN

Sometimes, we want to customize the login interface of DNN,

One quick way is modifying the ascx file of login control. In DNN 4.x+, you can find the login control at Admin/Authenticaion/Login.ascx

But when you open the Login.ascx, you will find you can not see the User Name and Login field, what’s the problem?

For supporting multiple authentication way, DNN 4.x+ redesigned the login control. Administrator can config DNN use many authentication provider, so User Name and Password field will be dynamic injected, in Admin/Authenticaion/Login.ascx, we can find those code:

How to change the default language of DNN

Step one: "Admin->Site Settings -> Languages" uncheck Enable Browser Language Detection For Current Portal? Disabling this option will show the site in the default language of the site. Setp two: "Admin->Site Settings" in "Site Settings" "Advanced Settings->Other Settings->Default Language", switch to the language you want.

Onclick event only accessible by a user with edit rights

I having the following problem with all of my custom modules. When I add a linkbutton or button in my custom module "View" page the onclick event of this button is only accessible by a user with edit rights on the module. I need for Every user (unregistered) to be able to click the button.

Even in a simple Module that does not even have an Edit page and with no settings needed. Just a view page that does one simple thing the DNN wont let you click any custom buttons if the user does not have edit rights