DotNetNuke Hosting with ASPHostPortal.com

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

DotNetNuke Hosting - ASPHostPortal.com :: What's New in DotNetNuke 7.4.2?

clock Oktober 8, 2015 12:19 by author Kenny

What is New in DotNetNuke 7.4.2?

The latest version of DotNetNuke is 7.4.2. This version has been released at October 6th 2015. This release is maintenance release, bug fixes and support for incremental updates.

SECURITY ISSUES

This release resolves the following two security issues:

  • 2015-06 (Low) Potential XSS issue when using tabs dialog
  • 2015-07 (Medium) Users are getting registered even though User Registration is set to None

What started out as a relatively small maintenance release has turned into one of their largest maintenance releases ever. They spent a lot of time working to resolve a number of password management and multi-language issues along with a few performance enhancements. In total, they ran well over 5000 manual and automated tests on this release with a 99% pass rate.

MAJOR HIGHLIGHTS

  • Added upgrade support from beta release
  • Fixed issue with lists in custom registration form
  • Fixed issue with ignore words in Italian and French
  • Fixed issue with site export in multi-language site
  • Fixed issue where parameters in return URL were malformed
  • Fixed issue in sitemap for multi-language site
  • Fixed issue where control panel did not render links correctly in SSL offload environments
  • Fixed issue where pages with future start date were inaccessible
  • Fixed multiple password reset issues
  • Fixed issue where site settings could be duplicated
  • Fixed issue where dismissing all notifications removed messages as well
  • Fixed issue where file link for missing file caused exception
  • Fixed issue where localized portal settings were not getting applied when switching languages
  • Fixed issue where admin was unable to change interface language
  • Fixed issue where page name uniqueness was applied cross language
  • Fixed multiple scheduler issues

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. 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 - ASPHostPortal.com :: How to Prevent Getting Started Page for SuperUsers

clock September 25, 2015 14:38 by author Dan

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.

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. 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 - ASPHostPortal.com :: How to Create a Backup of DNN and The Database

clock September 23, 2015 07:51 by author Kenny

How to Create a Backup of DNN and The Database

This topic is very important and requires a bit of planning, especially if you do not have direct access to your database server to perform your own backups. In the following sections I will first talk about what you must backup and why some of those items are very important. I will then discuss how to perform a DNN backup and SQL Server backup.  Finally I will discuss options available for third party modules for performing backups for individuals that do not have direct access to their servers.

What to Backup?

Simply put, it is a best practice to backup your entire DotNetNuke directory on the web server as well as a full backup of the database. Some people will say that you can get by with only backing up the "portals" folder, this is not correct! To successfully restore a DotNetNuke installation you must ensure that you have all module .dll and other code files you also must have the same validation and decryption keys.  I have found that the only real method to keep your data safe is to create a backup with all files.  Given the limited file size of the core DNN installation I have not found this to be a hinderance, especially since the additional files that exist in my website are all related to the content available within and is something I must have a backup.

Performing The Backup

Performing a backup of DotNetNuke is a fairly easy two step process. First I will discuss backing up the DNN installation directory, then I will discuss options available for backing up the database.

Backing up The DotNetNuke Directory

You have two options when backing up the DotNetNuke directory. If you have direct access to the server, you can simply right click on the DotNetNuke directory and select "Send To:" -> "Compressed (Zipped) Folder". This applies for most versions of the windows operating system. You will then have a file named dnn441.zip where dnn441 was your directory name. This zip file will contain all needed backup files, you will want to store this in a safe location.

If you do not have direct access to the server and can only access it via FTP you will have an additional step to obtain a zip file for your site. You will want to connect to your FTP site and COPY all files to a temporary location on your local computer. Once all files have been copied you will want to create a zip file including ALL files and folders that were just downloaded.

NOTE: if using a program such as WinZip for zipping, ensure that the "Use Folder Names" option is enabled so that the folder structure is preserved within your zip archive.

Backing up The DotNetNuke Database

To backup the database you must have access to the database server and the file system of the database server. If you are in a hosted environment you will need to rely on your hosting provider to obtain a backup, or you will need to look into a potential third party solution to backup the database from within DotNetNuke. If you have full access to the server please use one of the below sets of instructions to backup your database..

Backing up a Database with SQL Server and Enterprise Manager

Follow the below steps if you wish to create a databse backup file from Enterprise Manager for SQL Server using Enterprise Manager.

  • Navigate to your specific database in Enterprise Manager
  • Right click on the database and select "All Tasks" -> "Backup Database.."
  • Ensure that "Complete" is selected for the backup type
  • Click the "Add" button in the "Destination" section
  • In this section provide a full file path to the desired backup file, typically named databasename.bak where databasename is your database name
  • Click "Ok" to generate your backup, you will receive a success notice upon completion
  • You will now have a full backup file containing all tables and data for your database.

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. 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 - ASPHostPortal.com :: How to Use DotNetNuke Multiple Controller in C#

clock September 10, 2015 06:29 by author Dan

Dear All,
I hope every one worked with this control before with .net, yesterday i just use with DNN and i want to share this with you to use the Multiview controller with the control files.

Register your controls

<%@ Register Src="~/DesktopModules/BV Admin GenerateForm/Admin_GenerateForm_01_SelectCustomer.ascx" TagName="step1" TagPrefix="ke" %>
<%@ Register Src="~/DesktopModules/BV Admin GenerateForm/Admin_GenerateForm_02_AddParent.ascx" TagName="step2" TagPrefix="ke" %>
<%@ Register Src="~/DesktopModules/BV Admin GenerateForm/Admin_GenerateForm_03_AddChild.ascx" TagName="step3" TagPrefix="ke" %>
<%@ Register Src="~/DesktopModules/BV Admin GenerateForm/Admin_GenerateForm_04_formPreview.ascx" TagName="step4" TagPrefix="ke" %>
<%@ Register Src="~/DesktopModules/BV Admin GenerateForm/Admin_GenerateForm_05_SucessMessage.ascx" TagName="step5" TagPrefix="ke" %>


Here .acx are all controllers

Now you add the Multiview controller with your master ascx file

<asp:MultiView ID="MultiView1" runat="server">
        <asp:View ID="firstStep" runat="server">
                <ke:step1 ID="step1_tab" runat="server"></ke:step1>
        </asp:View>
        <asp:View ID="secondStep" runat="server">
                <ke:step2 ID="step2_tab" runat="server"></ke:step2>
        </asp:View>
        <asp:View ID="thirdStep" runat="server">
                <ke:step3 ID="step3_tab" runat="server"></ke:step3>
        </asp:View>
        <asp:View ID="forthStep" runat="server">
                <ke:step4 ID="step4_tab" runat="server"></ke:step4>
        </asp:View>
        <asp:View ID="fifthStep" runat="server">
                <ke:step5 ID="step5_tab" runat="server"></ke:step5>
        </asp:View>

</asp:MultiView>


Code behind:

For Display the active tab
 MultiView1.SetActiveView(firstStep);
"firstStep" is a view ID with i mentioned above

I hope the code will help you.

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. 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 7.4.1 Hosting - ASPHostPortal.com :: How to Use the Text DotNetNuke Skin Object

clock Augustus 28, 2015 11:54 by author Kenny

How to Use the Text DotNetNuke Skin Object

DotNetNuke is a web content management system based on Microsoft .NET. The DNN Platform Edition is open source. DNN is designed for multi-tenancy and supports an unlimited number of websites, either as root websites or for portals in a parent-child configuration. The platform's skinning feature separates content from design-related files for easier customization. Skins make it simple to maintain a common look and structure across related sites without advanced programming knowledge. DNN's core functionality can be expanded with modules for common elements, such as those for e-commerce. The software enables parent-child website resource sharing and management using specially-formed symbolic links.

How to Use the Text DotNetNuke Skin Object

What is a Skin Object?

First of all, a skin object is an ASP.Net user control that is used in DNN skins to provide a limited feature.  For example, the search box, menu, login link, copyright statement, and more, are all skin objects.  They allow a skin designer to include dynamic content without having to know how to build the content itself, or knowing any programming.

Other than the previous description, this post will assume that you know how to create and package your own skin.

Text Skin Object

The Text skin object itself is a very useful feature in skinning, as it allows you to include localized text, while not having to create a copy of the skin for each language, or using any other number of workarounds.

For example, if you have static text next to your login skin object that says, “Welcome, “ then you might want to have alternatives for another language, if you plan to support it.

I am going to use that example for the rest of this post.

The Code

There is minimal code needed to implement the Text skin object.  If you’re using an HTML skin, then you would simply need to do the following:

<object id="dnnTEXT-Welcome" codetype="dotnetnuke/server" codebase="TEXT">
    <param name="Text" value="Welcome, " />
    <param name="CssClass" value="NormalBold" />
    <param name="ResourceKey" value="Welcome.Text" />
    <param name="ReplaceTokens" value="False" />
</object>

If you are using a ASCX skin, then you would need two updates.  First, put this line of code into the top section of the source:

<%@ Register TagPrefix="dnn" TagName="TEXT" Src="~/Admin/Skins/Text.ascx" %>

Next, put this code into the appropriate spot of the source in the skin:

<dnn:TEXT runat="server" id="dnnTEXT-Welcome" Text="Welcome, "
CssClass="NormalBold" ResourceKey="Welcome.Text" ReplaceTokens="False" />

Resource Files

Next, you need to make sure your skin has resource files.  In your skin package, you should have a folder namedApp_LocalResources.  This folder will contain the necessary files to tell your skin the appropriate text to use for the skin object when the specific language is asked for during page request life cycle.

If your skin file is named index.ascx or index.html, then your default resource file for English would be namedindex.ascx.resx.  If your additional supported language is French, your filename might be index.fr-FR.ascx.resx.

The English file code would be something like this:

<?xml version="1.0" encoding="utf-8"?>
<root>
  <data name="Welcome.Text">
    <value>Welcome, </value>
  </data>
</root>

The respective code for the French language file might look like this:

<?xml version="1.0" encoding="utf-8"?>
<root>
  <data name="Welcome.Text">
    <value>Accueil, </value>
  </data>
</root>

Text Skin Object Properties Explained

There are a few properties that you’ve seen in the previous examples that you might be wondering about.  Here is an explanation of those properties:

  • Runat – (required, ASCX only) The value must be ‘server’ 
  • Id – (required) This is a unique name for the tag, much like in standard HTML 
  • Text – (optional) This value will be used as the default, should an appropriate resources file for the current language not be found 
  • CssClass – (optional) This value is the name of a CSS class that will be available to the rendered HTML page to stylize the text in the web browser 
  • ResourceKey – (required) This value references the id (name) of the text to retrieve from the resources file 
  • ReplaceTokens – (optional) This true/false value will tell DNN to look for system tokens and replace them with the appropriate text


DotNetNuke Hosting - ASPHostPortal.com :: How to Solve DNN 7 can't go into edit mode or not working with control bar

clock Augustus 18, 2015 07:33 by author Dan

Today when i install the DNN 7 then i found and issue in edit mode after installation.

The problem is when i go to edit mode the page refresh with out enabling the edit mode, after a short research on Google i found the solution. I hppe it save your time

  1. Backup your web.config
  2. Open your web.config in a text editor
  3. Within the web.config file, find the <system.webserver><modules> section.
  4. If the <modules> section says <modules runAllManagedModulesForAllRequests="false"> change it to <modules runAllManagedModulesForAllRequests="true"
    OR if it just says <modules>, change it to <modules runAllManagedModulesForAllRequests="true">
  5. Save the config file.
  6. Retry by refreshing the page and trying again.  You can also test this out by trying to a do a journal post (which also uses the services framework in an authenticated way.

If some how its will not work then, you must change the control panel bar from control bar to ribbon bar

Here are the steps
Go to host tab > Host settings > Other settings > Change control panel bar from control bar to ribbon bar

Regards

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. 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 - ASPHostPortal.com :: How to Solve Error: Cannot Edit or Add Modules, Redirected to Home Page

clock Junie 23, 2015 07:03 by author Dan

Error:

On a new install of DNN 7, when you click on managementand edit buttons, rather than editing you are redirected to the home page (home.aspx).

Happens when using the below actions:

    Edit Page > Edit This Page
    Modules > Add a module
    Uploading images and logos to the Appearance section of Site Settings

Solution:

    After installation is complete, create a duplicate of the web.config and rename web.config.orig
    Open web.config and find the modules node in the <system.webServer> section and add the paramenter below

        <modules runAllManagedModulesForAllRequests="true" >

Test for functionality

Now when you click on the edit page > edit this page button, you should see the edit tools. This may repair a number of other issues revolving around editing, popups, dragging, uploading images & logos, etc.

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 $0. 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 - ASPHostPortal.com :: How to Fix DotNetNuke "Value Cannot Be Null" Error

clock Junie 4, 2015 06:20 by author Dan

If you have performed an upgrade to your DNN installation and received the following error after the upgrade had completed with a successful report then this article may help you in correcting this error.

Value cannot be null.
Parameter name: type
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: type

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

You maybe able to correct this error by following these steps.

1) Log into your control panel.

2) Select the option "Domains" from the Main Menu. Select your domain from the list of Hosted Domains on your account.

3) You should now be at the Domain Menu for the selected Hosted Domain. Locate the option for "File Manager" and click on it. This will show you a Browser window with all of your domain's folders. Click on the "wwwroot" folder to view it's contents and then click on the "Bin" folder to view inside of it.

4) Locate the file named "DotNetNuke.Provider.Membership.SqlDataProvider.dll" within the Bin folder and delete it.

5) Try launching your site again at this time and see if this has corrected the issue. If it did not correct the issue, you must call technical support staff from your hosting provider.

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 $0. 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 - ASPHostPortal.com :: Integrate DNN with ADFS Without Writing a New Authentication Provider

clock Februarie 27, 2015 05:29 by author Ben

I lately went via the discomfort of attempting to integrate ADFS with DNN. I hope to spare an individual else the pain I went through.

My companion organization already had ADFS setup. My purpose was to have the partner organization authenticate the user after which have DNN automatically recognize the user, not obtaining to enter any far more credentials. From there we wanted to manage the groups and permissions by way of the standard DNN portal.

I was initially beneath the misconception that I couldn't make use of the present DNNMembershipProvider and I'd have to generate a whole new Authentication Provider and gather the credentials and pass them to my partner organization.

What I have figured out is that you can use the existing DNNMembership provider, but you've got to make the user ahead of the request gets towards the DNNMembership provider making use of the info offered by ADFS.

Note: This approach is really a straight pass-through from ADFS to DNN. No measures are taken to authenticate the user or to check any from the inputs from ADFS.

As an aside, this method performs not just with ADFS but in addition any other external 3rd-party Authentication approach that sends user info in headers or cookies. Change the context_AuthenticateRequest approach to suit your requirements.

Right here are the pre-conditions to this article. I expect:

  • Your partner organization has ADFS up and running
  • You have your ADFS proxy up and running and it talks to the partner organization.
  • ADFS Web Agent is installed on the server you are running.

Let’s get begin.


HTTPModule

What you've to complete is produce an HTTPModule that will intercept the AuthorizeRequest events ahead of DNN does. An over-simplified definition of an HTTPModule is, it is a piece of code that runs ahead of any web page gets hit. You can listen for a large amount of distinct events. For much more data, click right here.

To make the HTTPModule you'll need to:

  • Open Visual Studio and produce a brand new class library.
  • Generate a brand new class and copy the code attached to this blog.
  • Add References to the following DLLs
    • DotNetNuke
    • System.Web
    • System.Web.Security.SingleSignOn
    • System.Web.Security.SingleSignOn.ClaimsTransform
    • System.Web.Security.SingleSignOn.Permissions
  • Compile the solution
  • The DLL that is created will need to be placed in the bin directory of your website.
  • Make changes to your web.config (explained in a later section).

I will walk through a bit of the code. Here is the first snippet of code. We start listening for the AuthenticateRequest event. All other events pass through untouched.

public void Init(HttpApplication context)
{
//Start listening for each authentication request
context.AuthenticateRequest += new EventHandler(context_AuthenticateRequest);
}

Now, what do we do when this event is fired off? To shorten the namespace I added the statement

using SSO = System.Web.Security.SingleSignOn;

First off, we need to get the information that ADFS has sent us by casting the User.Identity into the ADFS object SingleSignOnIdentity.

public void context_AuthenticateRequest(object sender, EventArgs e)
{
HttpApplication app = (HttpApplication)sender;
//By the time the request gets to here, it should have been authenticated
//against ADFS.
SSO.SingleSignOnIdentity id = (SSO.SingleSignOnIdentity)app.User.Identity;

At this point you will have access to the user’s Identity and any claims coming from the ADFS server. You can access them through id.SecurityPropertyCollection. You can use them to populate the new user account. You can iterate through the claims with the following code

foreach(SecurityProperty sp in id.SecurityPropertyCollection)
{
    Console.WriteLine(sp.Name);
    Console.WriteLine(sp.Value);
}

Subsequent, we check to determine in the event the use currently exists within the database by utilizing the DNN API function GetUserByName. If it doesn’t, then the user is created by the common DNN API function CreateUser and logged in. If the user does exist currently then we log them in automatically. The user will automatically be added to the Registered Users and Subscribers security groups.

//'See if user exists in DNN Portal user DB
UserInfo objUserInfo = UserController.GetUserByName(currentPortal.PortalId, id.Name);
//' user does exist - try to create on the fly
if (objUserInfo == null)
{
    objUserInfo = new UserInfo();
    objUserInfo.DisplayName = id.Name;
    objUserInfo.FirstName = id.Name;
    objUserInfo.LastName = id.Name;
    objUserInfo.Username = id.Name;
    objUserInfo.Membership.Password = "AReallyStrongPassword";
    objUserInfo.PortalID = currentPortal.PortalId;
    objUserInfo.Email = id.Name;
    UserCreateStatus objUserCreateStatus = UserController.CreateUser(ref objUserInfo);
    //See if the user was added successfully
    if (objUserCreateStatus == UserCreateStatus.Success)
    {
        //We have created them successfully, so let them into the site
        LetsLogUserIn(objUserInfo);
    }
    else
    {
        //This will send the error to the error log, but the user will experience an infinite loop
        throw new Exception("User not created successfully: " + objUserInfo.Username + "- " +         objUserCreateStatus.ToString());
}

Here is the LetsLogUserIn function:

private void LetsLogUserIn(UserInfo objUserInfo)
{
    try
    {
    //Get the current portal
    PortalSettings currentPortal = PortalController.GetCurrentPortalSettings();
    //set the language to the default language of the portal
    Localization.SetLanguage(currentPortal.DefaultLanguage);
    //Log the user in
        UserController.UserLogin(currentPortal.PortalId,
            objUserInfo,
            currentPortal.PortalName,
            HttpContext.Current.Request.UserHostAddress,
            false);
    }
    catch(Exception ex)
    {
        Exceptions.LogException(ex);
    }
}

Web.Config

We need to make several changes to the web.config. First we need to make the changes necessary for ADFS and then we need to make changes for our HTTPModule.

The ADFS changes are the standard web.config changes you would do for any ADFS claims-aware site. You first need to add the section groups to your web.config.

<sectionGroup name="system.web">
    <section name="websso" type="System.Web.Security.SingleSignOn.WebSsoConfigurationHandler,                                  System.Web.Security.SingleSignOn, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null" />
</sectionGroup>

Then you need to add the actual section. The <returnurl> needs to be EXACTLY what is put into ADFS. Remember, this URL needs to have a / at the end to prevent ADFS from posting to a directory listing. The <fs> element needs to be changed to reflect the name of your server.

<system.web>

    <websso>
        <authenticationrequired />
        <auditlevel>55</auditlevel>
        <urls>
            <returnurl>https://your_application/</returnurl>
        </urls>
        <fs>https://fs-server/adfs/fs/federationserverservice.asmx</fs>
    </websso>

</system.web>

If you would like to have logging (and who doesn’t like loggingJ) you will need to add the following section at the end of your web.config

<configuration>

<system.diagnostics>
     <switches>
       <!-- enables full debug logging -->
       <add name="WebSsoDebugLevel" value="255" />
     </switches>
     <trace autoflush="true" indentsize="3">
       <listeners>
         <!-- either create a c:\logs directory and grant Network Service permission to write to it, or remove this listener -->
         <add name="MyListener"
              type="System.Web.Security.SingleSignOn.BoundedSizeLogFileTraceListener, System.Web.Security.SingleSignOn, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null"
              initializeData="c:\logs\webagent.log" />
       </listeners>
     </trace>
   </system.diagnostics>
</configuration>

Ultimately, you need to add the HTTPModules for ADFS and our HTTPModule. Order matters a good deal for the HTTPModules. We require the ADFS Web Agent to become listed first, to ensure that any request will likely be redirected to our partner’s logon screen. Right away following the Web Agent should be our HTTPModule. This will make sure that we'll automatically log them on just before DNN even see it.

<system.web>
<httpModules>
    <add name="Identity Federation Services Application Authentication Module"                       type="System.Web.Security.SingleSignOn.WebSsoAuthenticationModule, System.Web.Security.SingleSignOn, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null" />
 
    <add name="HTTP_Module_Test" type="HTTP_Module_Test.SSO_Module, HTTP_Module_Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>

There you have it Hope it helps someone.

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 - ASPHostPortal.com :: Simple jQuery/CSS Tabs In DotNetNuke

clock Februarie 6, 2015 07:26 by author Ben

There are many jQuery tabs to pick from out there. You will discover even quite a few DotNetNuke Tab Modules accessible. But imagine if you'd like only a basic down and filthy list of tabs that just receive the career kept away from needing to depend upon other jQuery libraries or make bloat?

I’m likely to showcase a really easy tab structure that utilizes jQuery and CSS originally made by SOHTANAKA which i have adapted to my DNN website and into Ventrian House Agent.


Structuring The Tabs

The tab framework may be very simple. Just an unordered record to the tabs, and also a div box to deal with the tab information. The crucial thing to recollect when building your tabs is the fact that just about every tab wants a novel id connected to it.

<div class="tabsBlock">
  <ul class="tabs">
    <li><a href="#tab1">Tab 1</a></li>
    <li><a href="#tab2">Tab 2</a></li>
    <li><a href="#tab3">Tab 3</a></li>
    <li><a href="#tab4">Tab 4</a></li>
  </ul>
  <div class="tab_container">
    <div id="tab1" class="tab_content">
      <p>Enter Content</p>
    </div>
    <div id="tab2" class="tab_content">
      <p>Enter Content</p>
    </div>
    <div id="tab3" class="tab_content">
      <p>Enter Content</p>
    </div>
    <div id="tab4" class="tab_content">
      <p>Enter Content</p>
    </div>
  </div>
</div>
<!--Want Another Set of Tabs? -->
<div class="tabsBlock">
  <ul class="tabs">
    <li><a href="#tab5">Tab 1</a></li>
    <li><a href="#tab6">Tab 2</a></li>
    <li><a href="#tab7">Tab 3</a></li>
    <li><a href="#tab8">Tab 4</a></li>
  </ul>
  <div class="tab_container">
    <div id="tab5" class="tab_content">
      <p>Enter Content</p>
    </div>
    <div id="tab6" class="tab_content">
      <p>Enter Content</p>
    </div>
    <div id="tab7" class="tab_content">
      <p>Enter Content</p>
    </div>
    <div id="tab8" class="tab_content">
      <p>Enter Content</p>
    </div>
  </div>
</div>

Add Styling For your Tabs

Styling the tabs as well as the tab content is extremely straightforward to attain and can be simply changed with some creativity and imagination. I’ll be referencing my css styling for the tabs that I use. If you'd like much more examples, possess a look at examples provided by SOHTANAKA and verify the comments in his tutorial for additional designed by other customers.

In case you are an Active Social user, you are going to discover that if you're utilizing these jQuery tabs, you'll be able to simply transfer the appear and feel by means of CSS for the AS tab interface located on profile journals, group journals, and also the message center. For demonstration purposes, I’ve decided to leave in my css code utilised for the Active Social Message Center. When you do not use AS, simply take away all references to “am-ui-tab-n”.

.tabsBlock {margin-bottom:10px;}
 
ul.tabs,ul.am-ui-tab-strip {
height:29px;
list-style:none;
position:relative;
padding:1px 5px 0;
display:block;
font-size:12px;
/* CSS3 Rounded Corners For Top Left/Top Right of Tabs */
-moz-border-radius-topleft:8px;
-moz-border-radius-topright:8px;
-webkit-border-radius-topleft:8px;
-webkit-border-radius-topright:8px;
-khtml-border-radius-topleft:8px;
-khtml-border-radius-topright:8px;
}
 
ul.tabs li,ul.am-ui-tab-strip li,ul.am-ui-tab-strip li {
margin:2px 2px 0 0;
padding:4px 8px;
border:solid 1px transparent;
background:url(http://cdn.northeastok.com/common/2-0bg-blue.gif) center center repeat-x;
position:relative;
float:left;
text-decoration:none;
border-bottom-width:0 !important;
outline:none;
cursor:pointer;
}
 
ul.tabs li.active,ul.am-ui-tab-strip li.am-ui-tab-selected {
border-bottom:solid 1px #fff !important;
border:solid 1px #ccc;
background:#fff;
}
    
ul.tabs li:hover,ul.tabs li.active:hover,ul.am-ui-tab-strip li:hover,ul.am-ui-tab-strip li.am-ui-tab-selected:hover  {
border-bottom:solid 1px #fff !important;
border:solid 1px #555;
background:url(http://cdn.northeastok.com/common/grad-horz-grey.gif) top center repeat-x;
color:#444;
}
 
ul.tabs li a,ul.am-ui-tab-strip li a {
color:#fff;
font-weight:700;
}
 
ul.tabs li a:hover,ul.tabs li.active a,ul.am-ui-tab-strip li a:hover,ul.am-ui-tab-strip li.am-ui-tab-selected a {
color:#444;
}
 
.tab_container {
background:url(http://cdn.northeastok.com/common/grad-horz-rev-grey.gif) bottom center repeat-x;
border:solid 1px #ccc;
margin-bottom:6px;
}
 
.tab_content {
display:block;
min-height:100px;
padding:10px;
/* CSS3 Rounded Corners For the Box Outline */
-moz-border-radius:6px;
-webkit-border-radius:6px;
-khtml-border-radius:6px;
}

You will notice that I've several photos referenced because the background pictures for my tabs and tab container. All you may have to complete is modify the backgrounds to a colour or reference your individual image files.
The jQuery Tab Script

Now that the HTML and CSS is full, all we have to accomplish is add within the script. Out of habit, when producing scripts, I save them in my DNN directory to "/Resources/Shared/scripts" or if jQuery, I save to "/Resources/Shared/scripts/jquery". We’ll get in touch with this script "jquery.tabs.js" and save it to my shared jquery scripts folder.

Whenever you reference the script, just add in <script type="text/javascript" src="/Resources/Shared/scripts/jquery/jquery.tabs.js"></script>. In case you design and style in HTML5, you can drop "type="text/javascript". Add the reference for the bottom of the skin file, module template, or under DNN page settings > advanced settings within the page header tags. You can also add to the header or footer of module settings.

jQuery(document).ready(function() {
jQuery.fn.tabsBlock = function(){
    //Default Action
    jQuery(this).find(".tab_content").hide(); //Hide all content
    jQuery(this).find("ul.tabs li:first").addClass("active").show(); //Activate first tab
    jQuery(this).find(".tab_content:first").show(); //Show first tab content
    
    //On Click Event
    jQuery("ul.tabs li").click(function() {
        jQuery(this).parent().parent().find("ul.tabs li").removeClass("active"); //Remove any "active" class
        jQuery(this).addClass("active"); //Add "active" class to selected tab
        jQuery(this).parent().parent().find(".tab_content").hide(); //Hide all tab content
        var activeTab = jQuery(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
        jQuery(activeTab).show(); //To Fade in the active content, change ".show" to ".fadeIn"
        return false;
    });
};//end function
jQuery("div[class^='tabsBlock']").tabsBlock(); //Run function on any div with class name of "tabsBlock"
});

Using Tabs In Ventrian Home Agent

The tabs as they currently stand can simply be utilised in Property Agent. What I need to show you is how you can extend the tabs a little bit additional to let for targeting precise customers.

Say you have a get in touch with type, or possibly you've a assessment type within your view template that you simply only want to show for registered users. Why not wrap the tab with tokens to show or hide the tabs? This really is only one instance I’ll show, but it is possible to see where this leads to additional customizations.

<div class="tabsBlock">
  <ul class="tabs">
    <li><a href="#overview">Overview</a></li>
    <li><a href="#reviews">Reviews ([REVIEWCOUNT])</a></li>
    <li><a href="#write-review">Write A Review</a></li>
    <!-- Show Tab only when a property has no owner -->
    [HASNOAGENT]
    <li><a href="#claim">Claim It</a></li>
    [/HASNOAGENT]
  </ul>
  <div class="clearfix tab_container">
    <div id="overview" class="tab_content">
      <p>[CUSTOM:Details]</p>
    </div>
    <div id="reviews" class="tab_content"> [HASNOREVIEWS]
      <p class="alert-frame">No reviews yet. Why not be the first to review &quot;[CUSTOM:TITLE]&quot;. Simply "click" on the "Write A Review" tab above to get started.</p>
      [/HASNOREVIEWS]
      [HASREVIEWS][REVIEWS][/HASREVIEWS] </div>
    <div id="write-review" class="tab_content">
      <h4 class="p5 bgblue">Create A Review for [CUSTOM:TITLE]</h4>
      <!-- Show a message to guests that cant write a review --->
      [ISINROLE:Unauthenticated Users]
      <p class="info-frame">Sorry, but in order to write a review for [CUSTOM:TITLE], you must be a site member. Becoming a site member is completely free with no obligations. The NortheastOK Community wants to hear what you have to say about [CUSTOM:TITLE]. So feel free to see more about our <a href="/Help/Membership">"membership details"</a>, or get started and <a href="/Help/Sign-Up">"Sign Up"</a> today! If you are already a site member, you just need to <a href="/Login">"log in"</a> to write your own review of [CUSTOM:TITLE]</p>
      [/ISINROLE:Unauthenticated Users]
      <!-- Show only to registered users -->
      [ISINROLE:Registered Users]
      <div class="divcenter min80 max80 p5 tblw100"> [REVIEWFORM]</div>
      [/ISINROLE:Registered Users] </div>
    <!-- Show Tab Content only when a property has no owner -->
    [HASNOAGENT]
    <div id="claim" class="tab_content">
      <p class="alert-frame">Is this your Website? Fill out the form provided below to be contacted by an administrator to claim &quot;[CUSTOM:TITLE]&quot;. As the owner of this listing, you will be able to make updates and changes.</p>
      [COMMENTFORM]
      <!-- Show only comments to Admins -->
      [HASCOMMENTS][ISINROLE:Administrators]
      <hr />
      [COMMENTS][/ISINROLE:Administrators][/HASCOMMENTS]</div>
    [/HASNOAGENT] </div>
</div>

So as it is possible to see above, I've a tab called "Claim It". So whenever there's a listing with no an owner, the tab shows to permit a user to comment on the listing and claim that listing. I then possess the comments to show only to Admins. An admin can evaluation the listing and assign the listing towards the user, or make extra inquiry and get in touch with with that user. That is only a single instance of wrapping the tabs with tokens in Property Agent. Yet another notion is usually to also develop a tab that may be only visible to home owners to show stats, comments, and so on, or possibly a tab for brokers. On and on.

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