Skip to content

Commit

Permalink
Merge pull request #630 from DNNCommunity/dev
Browse files Browse the repository at this point in the history
Version 8.0 release
  • Loading branch information
WillStrohl authored Dec 28, 2023
2 parents def3369 + 078390e commit 72cdade
Show file tree
Hide file tree
Showing 1,118 changed files with 34,977 additions and 8,776 deletions.
46 changes: 46 additions & 0 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
21 changes: 0 additions & 21 deletions .github/ISSUE_TEMPLATE/task.md

This file was deleted.

11 changes: 6 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,24 @@ You can erase any parts of this template not applicable to your Pull Request.

### Description of PR...


## Changes made
- Item 1
- Item 2

## How did you test these updates?
<!-- Please be as descriptive as possible. -->

## PR Template Checklist

- [ ] Fixes Bug
- [ ] Feature solution
- [ ] Other
- [ ] Requires documentation updates
- [ ] I've updated the documentation already


## Please mark which issue is solved
<!-- Type numbers directly after the #, it will show the issues with that number -->

Close #
## For epic issues, please mark which issue is related
<!-- Type numbers directly after the #, it will show the issues with that number -->

Related to epic issue #
Close #
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,8 @@ $tf/
sql/Копия 05.02.02.SqlDataProvider
.vs/
themes/.gitignore

# Ignore DNN artifacts
[Ww]ebsite/
/BuildScripts/ICSharpCode.SharpZipLib.dll
/BuildScripts/MSBuild.Community.Tasks.dll
File renamed without changes.
File renamed without changes.
File renamed without changes.
49 changes: 49 additions & 0 deletions Dnn.CommunityForums/08.00.00.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
DesktopModules/ActiveForums/WhatsNew.ascx
DesktopModules/ActiveForums/WhatsNewOptions.ascx
DesktopModules/ActiveForums/ActiveForumViewer.ascx
DesktopModules/ActiveForums/ActiveForumViewerSettings.ascx
DesktopModules/ActiveForumsViewer/ActiveForumsViewerResources.zip.manifest
DesktopModules/ActiveForums/images/ambuttonback.gif
DesktopModules/ActiveForums/images/afbuttonback.gif
DesktopModules/ActiveForums/images/af-logo.png
DesktopModules/ActiveForums/images/af_logo.gif
DesktopModules/ActiveForums/images/af16icon_over.png
DesktopModules/ActiveForums/images/af6_icon.jpg
DesktopModules/ActiveForums/ActiveForums.sln.GhostDoc.xml
DesktopModules/ActiveForums/themes/module.css
DesktopModules/ActiveForums/themes/_default/templates/_Master.ascx
DesktopModules/ActiveForums/themes/_legacy/templates/_Master.ascx
DesktopModules/ActiveForums/config/templates/AdminWatchEmail_html.txt
DesktopModules/ActiveForums/config/templates/AdminWatchEmail_text.txt
DesktopModules/ActiveForums/config/templates/BlogList.txt
DesktopModules/ActiveForums/config/templates/BlogsView.txt
DesktopModules/ActiveForums/config/templates/BlogView.txt
DesktopModules/ActiveForums/config/templates/DailyDigest_html.txt
DesktopModules/ActiveForums/config/templates/Filters.txt
DesktopModules/ActiveForums/config/templates/ForumDirectory.txt
DesktopModules/ActiveForums/config/templates/ForumTracking.txt
DesktopModules/ActiveForums/config/templates/ForumView.txt
DesktopModules/ActiveForums/config/templates/ModAlert_html.txt
DesktopModules/ActiveForums/config/templates/ModAlert_text.txt
DesktopModules/ActiveForums/config/templates/ModEmail_html.txt
DesktopModules/ActiveForums/config/templates/ModEmail_text.txt
DesktopModules/ActiveForums/config/templates/PostApproved_html.txt
DesktopModules/ActiveForums/config/templates/PostApproved_text.txt
DesktopModules/ActiveForums/config/templates/PostDeleted_html.txt
DesktopModules/ActiveForums/config/templates/PostDeleted_text.txt
DesktopModules/ActiveForums/config/templates/PostMoved_html.txt
DesktopModules/ActiveForums/config/templates/PostMoved_text.txt
DesktopModules/ActiveForums/config/templates/PostRejected_html.txt
DesktopModules/ActiveForums/config/templates/PostRejected_text.txt
DesktopModules/ActiveForums/config/templates/ProfileInfo.txt
DesktopModules/ActiveForums/config/templates/ReplyEditor.txt
DesktopModules/ActiveForums/config/templates/StatsTemplate.txt
DesktopModules/ActiveForums/config/templates/SubscribedEmail_html.txt
DesktopModules/ActiveForums/config/templates/SubscribedEmail_text.txt
DesktopModules/ActiveForums/config/templates/ToolBar.txt
DesktopModules/ActiveForums/config/templates/TopicEditor.txt
DesktopModules/ActiveForums/config/templates/TopicsView.txt
DesktopModules/ActiveForums/config/templates/TopicView.txt
DesktopModules/ActiveForums/config/templates/UsersOnline.txt
DesktopModules/ActiveForums/config/templates/_MemberList.txt
DesktopModules/ActiveForums/config/templates/_UserProfile.txt
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ protected override void OnLoad(EventArgs e)

try
{
if (Settings["AFForumModuleID"] != null)
if (Settings[ForumViewerSettingsKeys.AFForumModuleId] != null)
{
string viewType = Convert.ToString(Settings["AFViewType"]);
int tmpModuleId = Convert.ToInt32(Settings["AFForumModuleID"]);
int tmpForumId = Convert.ToInt32(Settings["AFForumGroupID"]);
string viewType = Convert.ToString(Settings[ForumViewerSettingsKeys.AFViewType]);
int tmpModuleId = Convert.ToInt32(Settings[ForumViewerSettingsKeys.AFForumModuleId]);
int tmpForumId = Convert.ToInt32(Settings[ForumViewerSettingsKeys.AFForumGroupId]);
if (viewType.ToLowerInvariant() == "topics")
{
viewType = Views.Topics;
Expand All @@ -49,22 +49,19 @@ protected override void OnLoad(EventArgs e)
}
ctlForumLoader.DefaultView = viewType;
ctlForumLoader.ForumModuleId = tmpModuleId;
int tmpForumTabId = DotNetNuke.Entities.Modules.ModuleController.Instance.GetTabModulesByModule(tmpModuleId).FirstOrDefault().TabID;
if (tmpForumTabId <= 0) { tmpForumTabId = TabId; }
ctlForumLoader.ForumTabId = tmpForumTabId;
ctlForumLoader.ForumTabId = ForumTabId;
ctlForumLoader.ModuleConfiguration = this.ModuleConfiguration;
ctlForumLoader.InheritModuleCSS = false;
if (!(Convert.ToString(Settings["AFTopicsTemplate"]) == null))
if (!(Convert.ToString(Settings[ForumViewerSettingsKeys.AFTopicsTemplate]) == null))
{
ctlForumLoader.DefaultTopicsViewTemplateId = Convert.ToInt32(Settings["AFTopicsTemplate"]);
ctlForumLoader.DefaultTopicsViewTemplateId = Convert.ToInt32(Settings[ForumViewerSettingsKeys.AFTopicsTemplate]);
}
if (!(Convert.ToString(Settings["AFForumViewTemplate"]) == null))
if (!(Convert.ToString(Settings[ForumViewerSettingsKeys.AFForumViewTemplate]) == null))
{
ctlForumLoader.DefaultForumViewTemplateId = Convert.ToInt32(Settings["AFForumViewTemplate"]);
ctlForumLoader.DefaultForumViewTemplateId = Convert.ToInt32(Settings[ForumViewerSettingsKeys.AFForumViewTemplate]);
}
if (!(Convert.ToString(Settings["AFTopicTemplate"]) == null))
if (!(Convert.ToString(Settings[ForumViewerSettingsKeys.AFTopicTemplate]) == null))
{
ctlForumLoader.DefaultTopicViewTemplateId = Convert.ToInt32(Settings["AFTopicTemplate"]);
ctlForumLoader.DefaultTopicViewTemplateId = Convert.ToInt32(Settings[ForumViewerSettingsKeys.AFTopicTemplate]);
}
System.Web.UI.HtmlControls.HtmlGenericControl oLink = new System.Web.UI.HtmlControls.HtmlGenericControl("link");
oLink.Attributes["rel"] = "stylesheet";
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -52,27 +52,27 @@ private void LoadSettings()
// Load settings from TabModuleSettings: specific to this instance
LoadForums();
// Load settings from ModuleSettings: general for all instances
if (! (Convert.ToString(Settings["AFForumModuleID"]) == null))
if (! (Convert.ToString(Settings[ForumViewerSettingsKeys.AFForumModuleId]) == null))
{
drpForumInstance.SelectedIndex = drpForumInstance.Items.IndexOf(drpForumInstance.Items.FindByValue(Convert.ToString(Settings["AFForumModuleID"])));
LoadForumGroups(Convert.ToInt32(Settings["AFForumModuleID"]));
drpForumInstance.SelectedIndex = drpForumInstance.Items.IndexOf(drpForumInstance.Items.FindByValue(Convert.ToString(Settings[ForumViewerSettingsKeys.AFForumModuleId])));
LoadForumGroups(Convert.ToInt32(Settings[ForumViewerSettingsKeys.AFForumModuleId]));
}
if (! (Convert.ToString(Settings["AFTopicsTemplate"]) == null))
if (! (Convert.ToString(Settings[ForumViewerSettingsKeys.AFTopicsTemplate]) == null))
{
BindTemplates(Convert.ToInt32(Settings["AFForumModuleID"]));
drpTopicsTemplate.SelectedIndex = drpTopicsTemplate.Items.IndexOf(drpTopicsTemplate.Items.FindByValue(Convert.ToString(Settings["AFTopicsTemplate"])));
BindTemplates(Convert.ToInt32(Settings[ForumViewerSettingsKeys.AFForumModuleId]));
drpTopicsTemplate.SelectedIndex = drpTopicsTemplate.Items.IndexOf(drpTopicsTemplate.Items.FindByValue(Convert.ToString(Settings[ForumViewerSettingsKeys.AFTopicsTemplate])));
}
if (! (Convert.ToString(Settings["AFForumViewTemplate"]) == null))
if (! (Convert.ToString(Settings[ForumViewerSettingsKeys.AFForumViewTemplate]) == null))
{
drpForumViewTemplate.SelectedIndex = drpForumViewTemplate.Items.IndexOf(drpForumViewTemplate.Items.FindByValue(Convert.ToString(Settings["AFForumViewTemplate"])));
drpForumViewTemplate.SelectedIndex = drpForumViewTemplate.Items.IndexOf(drpForumViewTemplate.Items.FindByValue(Convert.ToString(Settings[ForumViewerSettingsKeys.AFForumViewTemplate])));
}
if (! (Convert.ToString(Settings["AFTopicTemplate"]) == null))
if (! (Convert.ToString(Settings[ForumViewerSettingsKeys.AFTopicTemplate]) == null))
{
drpTopicTemplate.SelectedIndex = drpTopicTemplate.Items.IndexOf(drpTopicTemplate.Items.FindByValue(Convert.ToString(Settings["AFTopicTemplate"])));
drpTopicTemplate.SelectedIndex = drpTopicTemplate.Items.IndexOf(drpTopicTemplate.Items.FindByValue(Convert.ToString(Settings[ForumViewerSettingsKeys.AFTopicTemplate])));
}
if (! (Convert.ToString(Settings["AFForumGroup"]) == null))
if (! (Convert.ToString(Settings[ForumViewerSettingsKeys.AFForumGroup]) == null))
{
drpForum.SelectedIndex = drpForum.Items.IndexOf(drpForum.Items.FindByValue(Convert.ToString(Settings["AFForumGroup"])));
drpForum.SelectedIndex = drpForum.Items.IndexOf(drpForum.Items.FindByValue(Convert.ToString(Settings[ForumViewerSettingsKeys.AFForumGroup])));
}
//If Not CType(Settings["AFEnableToolbar"], String) Is Nothing Then
// chkEnableToolbar.Checked = CType(Settings["AFEnableToolbar"], Boolean)
Expand All @@ -90,30 +90,27 @@ public override void UpdateSettings()
{
var objModules = new DotNetNuke.Entities.Modules.ModuleController();
// Update ModuleSettings
objModules.UpdateModuleSetting(ModuleId, "AFTopicsTemplate", drpTopicsTemplate.SelectedItem.Value);
objModules.UpdateModuleSetting(ModuleId, "AFTopicTemplate", drpTopicTemplate.SelectedItem.Value);
objModules.UpdateModuleSetting(ModuleId, "AFForumViewTemplate", drpForumViewTemplate.SelectedItem.Value);
objModules.UpdateModuleSetting(ModuleId, "AFForumModuleID", drpForumInstance.SelectedItem.Value);
objModules.UpdateModuleSetting(ModuleId, "AFForumGroup", drpForum.SelectedItem.Value);
objModules.UpdateModuleSetting(ModuleId, ForumViewerSettingsKeys.AFTopicsTemplate, drpTopicsTemplate.SelectedItem.Value);
objModules.UpdateModuleSetting(ModuleId, ForumViewerSettingsKeys.AFTopicTemplate, drpTopicTemplate.SelectedItem.Value);
objModules.UpdateModuleSetting(ModuleId, ForumViewerSettingsKeys.AFForumViewTemplate, drpForumViewTemplate.SelectedItem.Value);
objModules.UpdateModuleSetting(ModuleId, ForumViewerSettingsKeys.AFForumModuleId, drpForumInstance.SelectedItem.Value);
objModules.UpdateModuleSetting(ModuleId, ForumViewerSettingsKeys.AFForumGroup, drpForum.SelectedItem.Value);
//objModules.UpdateModuleSetting(ModuleId, "AFEnableToolbar", CType(chkEnableToolbar.Checked, String))
string ForumGroup;
int ForumGroupID = 0;
ForumGroup = drpForum.SelectedItem.Value;
if ((ForumGroup.IndexOf("GROUPID:", 0) + 1) > 0)
{
objModules.UpdateModuleSetting(ModuleId, "AFViewType", "AFGROUP");
objModules.UpdateModuleSetting(ModuleId, ForumViewerSettingsKeys.AFViewType, ForumViewerViewType.GROUP);
}
else
{
objModules.UpdateModuleSetting(ModuleId, "AFViewType", "TOPICS");
objModules.UpdateModuleSetting(ModuleId, ForumViewerSettingsKeys.AFViewType, ForumViewerViewType.TOPICS);
}
int @int = ForumGroup.IndexOf(":") + 1;
string sID = ForumGroup.Substring(@int);
//ForumGroupID = CType(ForumGroup.Substring(ForumGroup.IndexOf(":")), Integer)
objModules.UpdateModuleSetting(ModuleId, "AFForumGroupID", sID);
DataCache.CacheClear(drpForumInstance.SelectedItem.Value + TabId + sID + "TopicTemplate");
DataCache.CacheClear(drpForumInstance.SelectedItem.Value + TabId + sID + "TopicsTemplate");
DataCache.CacheClear(drpForumInstance.SelectedItem.Value + TabId + "ForumTemplate");
objModules.UpdateModuleSetting(ModuleId, ForumViewerSettingsKeys.AFForumGroupId, sID);
// Redirect back to the portal home page
Response.Redirect(Utilities.NavigateUrl(TabId), true);
}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%@ Control Language="C#" AutoEventWireup="false" CodeBehind="ActiveForums.ascx.cs" Inherits="DotNetNuke.Modules.ActiveForums.ActiveForums" %>
<div class="activeForums"><!-- Provices CSS Scope -->
<div class="dnn-community-forums activeForums"><!-- Provices CSS Scope -->
<asp:PlaceHolder ID="plhAF" runat="server" />
</div>
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 72cdade

Please sign in to comment.