Skip to content
This repository was archived by the owner on Feb 12, 2018. It is now read-only.

Commit 8f68c68

Browse files
committed
Final 01.02.00 changes
1 parent 2b272d1 commit 8f68c68

18 files changed

+188
-84
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,9 @@ $RECYCLE.BIN/
149149

150150
# Mac crap
151151
.DS_Store
152+
*.zip
153+
*.dll
154+
*.pdb
155+
obj/Release/Connect.Modules.AccountRegistration.xml
156+
obj/Release/Connect_AccountRegistration.vbproj.FileListAbsolute.txt
157+
*.cache

App_LocalResources/Settings.ascx.resx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,16 @@
198198
<data name="lblInterface.Text" xml:space="preserve">
199199
<value>External Interface</value>
200200
</data>
201+
<data name="lblAddToRoleStatus.Help" xml:space="preserve">
202+
<value>Select the status of the role membership after submitting the form</value>
203+
</data>
204+
<data name="lblAddToRoleStatus.Text" xml:space="preserve">
205+
<value>Role status after submit:</value>
206+
</data>
207+
<data name="StatusApproved.Text" xml:space="preserve">
208+
<value>Approved</value>
209+
</data>
210+
<data name="StatusPending.Text" xml:space="preserve">
211+
<value>Pending</value>
212+
</data>
201213
</root>

AssemblyInfo.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
3131
' by using the '*' as shown below:
3232
' <Assembly: AssemblyVersion("1.0.*")>
3333

34-
<Assembly: AssemblyVersion("01.01.00")>
35-
<Assembly: AssemblyFileVersion("01.01.00")>
34+
<Assembly: AssemblyVersion("01.02.00")>
35+
<Assembly: AssemblyFileVersion("01.02.00")>

Connect_AccountRegistration.dnn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<dotnetnuke type="Package" version="5.0">
22
<packages>
3-
<package name="Connect AccountRegistrationForm" type="Module" version="01.01.00">
3+
<package name="Connect AccountRegistrationForm" type="Module" version="01.02.00">
44
<friendlyName>Connect: AccountRegistration</friendlyName>
55
<description>A community module that handles account registrations and login in DNN</description>
66
<iconFile>Images/icon_extensions.gif</iconFile>

ReleaseNotes.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,22 @@
88
<div class="License">
99
<h3>Release Notes</h3>
1010

11+
<p class="Owner">
12+
<b>Version 01.02.00</b><br /><br />
13+
</p>
14+
<p>Extended Token Support</p>
15+
<h4>Changes</h4>
16+
<ul>
17+
<li>New conditional token: [IFSOCIALMEMBERSHIPPENDING:XXX]...[/IFSOCIALMEMBERSHIPPENDING:XXX] renders everything in between the tokens if the current user is in the specified XXX social group and the group membership is pending.</li>
18+
<li>New conditional token: [IFSOCIALMEMBERSHIPAPPROVED:XXX]...[/IFSOCIALMEMBERSHIPAPPROVED:XXX] renders everything in between the tokens if the current user is in the specified XXX social group and the group membership is pending.</li>
19+
<li>New conditional token: [IFSOCIALMEMBERSHIPNONE:XXX]...[/IFSOCIALMEMBERSHIPNONE:XXX] renders everything in between the tokens if the current user is not yet in the specified XXX social group and also has not applied yet for becoming a member.</li>
20+
<li>New conditional token: [IFISINROLE:XXX]...[/IFISINROLE:XXX] renders everything in between the tokens if the current user is in the specified XXX role.</li>
21+
<li>New conditional token: [IFNOTISINROLE:XXX]...[/IFNOTISINROLE:XXX] renders everything in between the tokens if the current user is not in the specified XXX role.</li>
22+
<li>New control token: [CTL:ROLEMEMBERSHP:XXX] renders a checkbox that - once checked - will add the user account to the specified XXX role.</li>
23+
<li>New control token: [CTL:ROLEMEMBERSHP:XXX:Pending] will do the same but will rather make the role membership pending.</li>
24+
<li>New Setting: When adding users to a role through the modulesettings you can now set the status of that role membership</li>
25+
</ul>
26+
1127
<p class="Owner">
1228
<b>Version 01.00.01</b><br /><br />
1329
</p>

Resources.zip

5.55 KB
Binary file not shown.

Settings.ascx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@
4040
<asp:DropDownList ID="drpAddToRole" runat="server" DataTextField="RoleName" DataValueField="RoleId"></asp:DropDownList>
4141
</div>
4242

43+
<div class="dnnFormItem">
44+
<dnn:Label ID="lblAddToRoleStatus" runat="server" Text="Role status once submitted:"></dnn:Label>
45+
<asp:DropDownList ID="drpRoleStatus" runat="server">
46+
<asp:ListItem Text="Pending" Value="Pending"></asp:ListItem>
47+
<asp:ListItem Text="Approved" Value="Approved"></asp:ListItem>
48+
</asp:DropDownList>
49+
</div>
50+
4351
<div class="dnnFormItem">
4452
<dnn:Label ID="lblNotifyRole" runat="server" Text="Send confirmation e-mail to Role:"></dnn:Label>
4553
<asp:DropDownList ID="drpNotifyRole" runat="server" DataTextField="RoleName" DataValueField="RoleId"></asp:DropDownList>

Settings.ascx.designer.vb

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Settings.ascx.vb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Namespace Connect.Modules.UserManagement.AccountRegistration
2525
If (Settings.Contains("AddToRoleOnSubmit")) Then drpAddToRole.SelectedValue = Settings("AddToRoleOnSubmit").ToString()
2626
If (Settings.Contains("NotifyRole")) Then drpNotifyRole.Items.FindByText(Settings("NotifyRole").ToString()).Selected = True
2727
If (Settings.Contains("NotifyUser")) Then chkNotifyUser.Checked = CType(Settings("NotifyUser"), Boolean)
28+
If (Settings.Contains("AddToRoleStatus")) Then drpRoleStatus.SelectedValue = CType(Settings("AddToRoleStatus"), String)
2829

2930
End If
3031
Catch exc As Exception 'Module failed to load
@@ -45,6 +46,7 @@ Namespace Connect.Modules.UserManagement.AccountRegistration
4546
'we need the rolename for sending mails to users, therefor store here the rolename rather than the id!
4647
objModules.UpdateTabModuleSetting(TabModuleId, "NotifyRole", drpNotifyRole.SelectedItem.Text)
4748
objModules.UpdateTabModuleSetting(TabModuleId, "NotifyUser", chkNotifyUser.Checked.ToString)
49+
objModules.UpdateTabModuleSetting(TabModuleId, "AddToRoleStatus", drpRoleStatus.SelectedValue)
4850

4951
Catch exc As Exception 'Module failed to load
5052
ProcessModuleLoadException(Me, exc)

View.ascx.vb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -570,8 +570,7 @@ Namespace Connect.Modules.UserManagement.AccountRegistration
570570
strAdminBody = strAdminBody.Replace("[REGISTRATIONMODE]", Localization.GetString("RegistrationMode_Public.Text", LocalResourceFile))
571571
End If
572572

573-
strAdminBody = strAdminBody.Replace("[USERURL]", NavigateURL(UsermanagementTab, "", "uid=" & oUser.UserID.ToString))
574-
573+
strAdminBody = strAdminBody.Replace("[USERURL]", NavigateURL(UsermanagementTab, "", "uid=" & oUser.UserID.ToString, "RoleId=" & PortalSettings.RegisteredRoleId.ToString))
575574

576575

577576
Dim ctrlRoles As New RoleController
@@ -639,7 +638,11 @@ Namespace Connect.Modules.UserManagement.AccountRegistration
639638
If AddToRoleOnSubmit <> Null.NullInteger Then
640639
Try
641640
Dim rc As New RoleController
642-
rc.AddUserRole(PortalId, oUser.UserID, AddToRoleOnSubmit, Null.NullDate)
641+
If AddToRoleStatus.ToLower = "pending" Then
642+
rc.AddUserRole(PortalId, oUser.UserID, AddToRoleOnSubmit, RoleStatus.Pending, False, Date.Now, Null.NullDate)
643+
Else
644+
rc.AddUserRole(PortalId, oUser.UserID, AddToRoleOnSubmit, RoleStatus.Approved, False, Date.Now, Null.NullDate)
645+
End If
643646
Catch
644647
End Try
645648
End If

0 commit comments

Comments
 (0)