Welcome Guest Search | Active Topics | Log In | Register

Source for YAF193 and DNN483 integration. Options · View
Boskone
#1 Posted : Thursday, June 19, 2008 11:18:03 PM

Rank: YAF Commander



Joined: 3/27/2004
Posts: 135
Location: Canada
Here is the complete project for yaf_dnn.dll as well as the DotNetNukeModule.ascx and DotNetNukeModuleEdit.ascx.
This is not an official release by the YAF team, only what I have done while testing.
This is in VS2008 format.
File Attachment(s):
YAF193-DNN483Source.zip (22kb) downloaded 32 time(s).
Boskone - A DotNetNuke user.
DotNetNuke Modules
Guillermo
#2 Posted : Friday, June 20, 2008 10:01:26 AM

Rank: YAF Forumling


Joined: 6/18/2008
Posts: 5
Location: Madrid
Thanks Smile

I'm new in DotNetNuke!
Should I drag this in the DesktopModules\YetAnotherForumDotNet folder?
Anything else?
Boskone
#3 Posted : Saturday, June 21, 2008 2:42:39 AM

Rank: YAF Commander



Joined: 3/27/2004
Posts: 135
Location: Canada
Guillermo wrote:
Thanks Smile

I'm new in DotNetNuke!
Should I drag this in the DesktopModules\YetAnotherForumDotNet folder?
Anything else?


The DotNetNukeModule.ascx and DotNetNukeModuleEdit.ascx along with the corresponding .cs files go in the YetAnotherForumDotNetFolder.
The yaf_dnn project builds a .dll file which goes in the DotNetNuke bin directory.

I believe i uploaded an install.cs file as well. It goes in the YetAnotherForumDotNet\install directory.
Boskone - A DotNetNuke user.
DotNetNuke Modules
Boskone
#4 Posted : Wednesday, June 25, 2008 6:10:50 AM

Rank: YAF Commander



Joined: 3/27/2004
Posts: 135
Location: Canada
UPDATE:

I changed the role provider in my web.config to the standard AspNetRoleProvider so it looks like this now.

Code:
<anonymousIdentification enabled="true" cookieName=".ASPXANONYMOUS" cookieTimeout="100000" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" cookieProtection="None" domain="" />
    <membership defaultProvider="AspNetSqlMembershipProvider" userIsOnlineTimeWindow="15">
      <providers>
        <clear />
        <!-- Configuration for DNNSQLMembershipProvider:
              connectionStringName="string"               Name corresponding to the entry in <connectionStrings> section where the connection string for the provider is specified
              passwordAttemptThreshold="int"              The number of failed password attempts, or failed password answer attempts that are allowed before locking out a user?s account
              passwordAttemptWindow="int"                 The time window, in minutes, during which failed password attempts and failed password answer attempts are tracked
              enablePasswordRetrieval="[true|false]"      Should the provider support password retrievals
              enablePasswordReset="[true|false]"          Should the provider support password resets
              requiresQuestionAndAnswer="[true|false]"    Should the provider require Q & A
                    minRequiredPasswordLength="int"                  The minimum password length
                    minRequiredNonalphanumericCharacters="int"  The minimum number of non-alphanumeric characters
              applicationName="string"                    Optional string to identity the application: defaults to Application Metabase path
              requiresUniqueEmail="[true|false]"          Should the provider require a unique email to be specified
              passwordFormat="[Clear|Hashed|Encrypted]"   Storage format for the password: Hashed (SHA1), Clear or Encrypted (Triple-DES)
              description="string"                        Description of what the provider does
        -->
        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="SiteSqlServer" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" requiresUniqueEmail="false" passwordFormat="Encrypted" applicationName="DotNetNuke" description="Stores and retrieves membership data from the local Microsoft SQL Server database" />
      </providers>
    </membership>
    <!-- YAF Support -->
    <roleManager enabled="true" defaultProvider="AspNetSqlRoleProvider">
      <providers>
        <clear/>
        <add connectionStringName="SiteSqlServer" applicationName="DotNetNuke"
            name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
      </providers>
    </roleManager>
    <profile enabled="true" defaultProvider="YafProfileProvider" inherits="YAF.Classes.Utils.YafUserProfile">
      <providers>
        <clear/>
        <add connectionStringName="SiteSqlServer" applicationName="DotNetNuke" name="YafProfileProvider" type="YAF.Providers.Profile.YafProfileProvider"/>
      </providers>
    </profile>
    <!-- END -->
  </system.web>


DotNetNuke does not use a standard role provider so this has no effect on its operation.
With this change I was able to remove code to add a user to the yaf_prov tables.

Role syncronization works, partly. It is only one way.

I have attached a new DotNetNukeModule.cs file.
File Attachment(s):
DotNetNukeModule.ascx.cs.zip (2kb) downloaded 9 time(s).
Boskone - A DotNetNuke user.
DotNetNuke Modules
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC1 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.096 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET