DotNetNuke Hosting with ASPHostPortal.com

BLOG about DotNetNuke CMS, latest technology and Special DotNetNuke Hosting Package with ASPHostPortal.com

DotNetNuke Hosting Tutorial - How to Add A Paypal Form to DNN?

clock Julie 26, 2018 09:11 by author Kenny

You can create a payment button for a straightforward, single-item purchase or for a full shopping cart. You can also create payment buttons to accept a donation, set up a subscription, automate billing, or create an installment plan.

Using a few basic options, your payment button can include shipping fees and taxes, track inventory, and get profit and loss information by product or service. Advanced options enable you to completely customize the checkout page and checkout experience.

Beyond a simple payment solution, PayPal Payments Standard provides invoicing, transaction management, shipment tracking, and data integration with tools like Excel, Quickbooks, and Quicken.

How to Add A Paypal Form to DNN?

The problem is that DotNetNuke already uses a 'form' which is a way for the current page to post back information to the server. All DotNetNuke pages are forms-based, so that all the links like login, search, etc can work by sending the response back to the DotNetNuke website.

The PayPal buttons need to be on a form as well - if you look at the sample html you'll see the form tags. This is because the PayPal buttons post the information back to the PayPal server, and, as DNN already is setup to post back to your own server, it doesn't work.

Step 1. Remove the tags from your PayPal code.

Step 2. Add the following bit of code to the input button on your form:

onClick="this.form.action='https://www.paypal.com/cgi-bin/webscr';this.form.submit();"

Step 3. Add your newly edited form to an HTML module in your DNN site.

Basically you are using javascript to submit the form onclick rather than using the HTML action functionality. A generic ASP.Net page already contains a form so-to-speak and so this is just a means of using another method so you don't have to deal with changing the action field of the existing form.

Best DotNetNuke Hosting Recommendation

ASPHostPortal.com provides its customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. ASPHostPortal.com offers DotNetNuke hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable DotNetNuke Hosting, we should be your best choice.



DotNetNuke Hosting Tutorial - Reset The Passwords for All Users In A DNN Site

clock Julie 25, 2018 08:27 by author Kenny

First, The Red Tape

Now, before I go any further, it would be an absolute best practice to have and you’d be irresponsible if you didn’t have a formal policy to protect yourself and the clients you’re providing services to. Have a clear understanding of how you accept sites, how you maintain them, and when you destroy your copies of them. If you’re in support, I’d suggest destroying your backups as soon as your client confirms that their issue is solved. The rule of thumb here, don’t keep copies. Destroy them at your earliest convenience. That being said, I am not a lawyer either, so you’ll want to review your policies and the laws in your region.

Resetting the Passwords for All Users

The context of this DNN tip is to allow you access to literally impersonate the users on a DNN site. If the number of users is low, I’d suggest leaving this article now to use my DNN Demo Skin Objects. Seriously, they’re pretty cool. You should check them out.

Ideally, it would be convenient if you knew all of the passwords of the users on the site, but we won’t and we shouldn’t. Instead, we’ll change every password for every user to "password" using the ASPX file below. All you have to do is create an ASPX file in the root of the site, paste this code into it, and then view it in a web browser of your choice. From there, it’s a single click to reset all of the passwords to "password."

WARNING!!! Never do this on a production site for any reason or put this file on a production server, anywhere. Also, it should only be used for LEGAL and ETHICAL purposes.

The code below does the meat of the work for you, but you can just download the file by clicking the button below and save yourself some time.

Download Password Reset ASPX File for DNN

private int PortalId
{
get
{
return PortalController.GetCurrentPortalSettings().PortalId;
}
}
protected void ProcessUsers(object sender, EventArgs e)
{
try
{
IterateThroughUsers();
}
catch (Exception ex)
{
Exceptions.ProcessModuleLoadException(this, ex, true);
}
}
private void IterateThroughUsers()
{
var sb = new StringBuilder();
var totalRecords = 0;
sb.Append("
Updating Superusers
");
var superUsers = UserController.GetUsers(false, true, Null.NullInteger);
UpdateUserInfo(superUsers, ref sb);
sb.Append("
Updating Normal Users
");
var normalUsers = UserController.GetUsers(PortalId, -1, -1, ref totalRecords, true, false);
UpdateUserInfo(normalUsers, ref sb);
plcUserLog.Controls.Add(new LiteralControl(sb.ToString()));
}
private void UpdateUserInfo(ArrayList users, ref StringBuilder sb)
{
foreach (var user in users)
{
// convert the user object to UserInfo
var oUser = (UserInfo)user;
// update the password
// REQUIRES: Change the enablePasswordRetrieval attribute to True in the web.config
// for newer versions of DNN, use this:
//MembershipProvider.Instance().ResetAndChangePassword(oUser, "password");
var success = DotNetNuke.Security.Membership.MembershipProvider.Instance().ChangePassword(oUser, string.Empty, "password");
sb.AppendFormat(
success
? "
{0} {1} ({2}) updated with a new password.
"
: "
{0} {1} ({2}) NOT UPDATED!
", oUser.FirstName, oUser.LastName,
oUser.Username);
// save the user
UserController.UpdateUser(PortalId, oUser, false);
}
}

Best DotNetNuke Hosting Recommendation

ASPHostPortal.com provides its customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. ASPHostPortal.com offers DotNetNuke hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable DotNetNuke Hosting, we should be your best choice.



DotNetNuke Hosting Tutorial - Modifying the User Defined Table to Allow Hyperlinking of URLs

clock Julie 19, 2018 13:06 by author Kenny

I had a request from my users to allow any email or URLs entered into a User Defined Table module in DotNetNuke to be automatically Hyperlinked. This tutorial shows you how to modify the stored procedure to allow for this.

I figured out the easiest way without having to modify any of the base modules was to modify the stored procedure that returns the rows for the table. In the following procedure it was modified to check the value of the field to see if it contains either a “@“ or “http://“. This is done using the TSQL CASE statement, which basically checks for the condition that the FieldValue field contains what were looking for, if it does, then we add the appropriate HTML string to the field so it will display as a hyperlink, if not then it just displays the data within the field.

In addition, for this stored procedure there is an additional “Order By“ statement included which is not part of the original 1.0.9 distribution, this was a fix I added in order to display the row information correctly.

ALTER procedure dbo.GetUserDefinedRows
 
@ModuleId int
as
select UserDefinedRows.UserDefinedRowId,
UserDefinedFields.FieldTitle,
'FieldValue' =
Case charindex('http:', UserDefinedData.FieldValue)
When 0 Then
Case charindex(
'@', UserDefinedData.FieldValue)
When 0 Then
UserDefinedData.FieldValue
Else
'' + UserDefinedData.FieldValue + ''
End
Else
'' + UserDefinedData.FieldValue + ''
End
from UserDefinedRows
left outer join UserDefinedData on UserDefinedRows.UserDefinedRowId = UserDefinedData.UserDefinedRowId
inner join UserDefinedFields on UserDefinedData.UserDefinedFieldId = UserDefinedFields.UserDefinedFieldId
where UserDefinedRows.ModuleId = @ModuleId
Order by UserDefinedData.UserDefinedRowId

 

Best DotNetNuke Hosting Recommendation

ASPHostPortal.com
ASPHostPortal.com provides its customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. ASPHostPortal.com offers DotNetNuke hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable DotNetNuke Hosting, we should be your best choice.



DotNetNuke Hosting Tutorial - View Event Viewers in DotNetNuke

clock Julie 11, 2018 12:35 by author Kenny

In this tutorial, you will learn how to view error log exceptions in DNN. You will also able to specify which log exceptions you want to record or ignore.
To view the error logs, you will need to have administrator portal access. Once you have login on the website, please go to the admin menu and you will see there is a menu called Event Viewer.

By default, all the error or event logs will be displayed on the site, you have an option to narrow the result list by specifying the log type by selecting one of the option in the dropdown list.

How to turn off the event logs in DNN?

To turn off specific event logs in DNN is pretty simple, if you scroll further down, you will be able to see there is a button called Edit Log Settings.

To enable or disable the event log, click the pencil edit icon. This will load another window popup and there is a tick box for you to untick it if you want to disable the event log.

Best DotNetNuke Hosting Recommendation

ASPHostPortal.com
ASPHostPortal.com provides its customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. ASPHostPortal.com offers DotNetNuke hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable DotNetNuke Hosting, we should be your best choice.



About ASPHostPortal.com

We’re a company that works differently to most. Value is what we output and help our customers achieve, not how much money we put in the bank. It’s not because we are altruistic. It’s based on an even simpler principle. "Do good things, and good things will come to you".

Success for us is something that is continually experienced, not something that is reached. For us it is all about the experience – more than the journey. Life is a continual experience. We see the Internet as being an incredible amplifier to the experience of life for all of us. It can help humanity come together to explode in knowledge exploration and discussion. It is continual enlightenment of new ideas, experiences, and passions

Author Link


 photo ahp banner aspnet-01_zps87l92lcl.png

Corporate Address (Location)

ASPHostPortal
170 W 56th Street, Suite 121
New York, NY 10019
United States

Tag cloud

Sign in