Skip to content

Commit

Permalink
Updates for DNN 9
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisHammond committed Dec 5, 2022
1 parent 4f20a75 commit 0cec2f8
Show file tree
Hide file tree
Showing 20 changed files with 93 additions and 42 deletions.
Binary file not shown.
Binary file not shown.
Empty file.
2 changes: 1 addition & 1 deletion Controllers/MessageController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public ActionResult Edit(Message m)
//[ModuleAction(ControlKey = "Edit", TitleKey = "AddMessage")]
[HttpGet]
[ModuleActionItems]
public ActionResult Index()
public ActionResult Index()
{
//var messages = MessageManager.Instance.GetMessages(ModuleContext.ModuleId);

Expand Down
8 changes: 4 additions & 4 deletions MessageOfTheDay.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Christoc.Modules.MessageOfTheDay</RootNamespace>
<AssemblyName>MessageOfTheDay</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<UseIISExpress>false</UseIISExpress>
<IISExpressSSLPort />
<IISExpressAnonymousAuthentication />
<IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode />
<TargetFrameworkProfile />
<UseGlobalApplicationHostFile />
<Use64BitIISExpress />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -55,14 +56,13 @@
<HintPath>..\..\..\bin\Microsoft.ApplicationBlocks.Data.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Web.DynamicData" />
<Reference Include="System.Web.Entity" />
<Reference Include="System.Web.ApplicationServices" />
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Core" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\bin\System.Web.Helpers.dll</HintPath>
Expand All @@ -88,13 +88,13 @@
<HintPath>..\..\..\bin\System.Web.WebPages.Razor.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
</Reference>
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web" />
<Reference Include="System.Xml" />
<Reference Include="System.Configuration" />
<Reference Include="System.Web.Services" />
<Reference Include="System.EnterpriseServices" />
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Compile Include="Components\FeatureController.cs" />
Expand Down
8 changes: 8 additions & 0 deletions MessageOfTheDay.csproj.user
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
<PropertyGroup>
<ProjectView>ShowAllFiles</ProjectView>
<WebStackScaffolding_ViewDialogWidth>600</WebStackScaffolding_ViewDialogWidth>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<UseIISExpress>false</UseIISExpress>
<Use64BitIISExpress />
<IISExpressSSLPort />
<IISExpressAnonymousAuthentication />
<IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode />
<UseGlobalApplicationHostFile />
</PropertyGroup>
<ProjectExtensions>
<VisualStudio>
Expand Down
2 changes: 1 addition & 1 deletion MessageOfTheDay.dnn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<dotnetnuke type="Package" version="5.0">
<packages>
<package name="MessageOfTheDay" type="Module" version="00.00.02">
<package name="MessageOfTheDay" type="Module" version="00.00.03">
<friendlyName>MessageOfTheDay</friendlyName>
<description>Message Of The Day Module to display a random, or predefined, message.</description>
<iconFile>~/Icons/Sigma/Software_32X32_Standard.png</iconFile>
Expand Down
6 changes: 3 additions & 3 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Christoc.com")]
[assembly: AssemblyProduct("MessageOfTheDay")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyCopyright("Copyright © 2016-2022")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -30,5 +30,5 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("00.00.02.*")]
[assembly: AssemblyFileVersion("00.00.02.*")]
[assembly: AssemblyVersion("00.00.03.*")]
[assembly: AssemblyFileVersion("00.00.03.*")]
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ CREATE TABLE {databaseOwner}{objectQualifier}MOTD_Messages
LastModifiedByUserId int NOT NULL,
MessageDisplayDate datetime NULL
) ON [PRIMARY]
TEXTIMAGE_ON [PRIMARY]
/* TEXTIMAGE_ON [PRIMARY] */
GO


Expand Down Expand Up @@ -56,7 +56,7 @@ CREATE TABLE {databaseOwner}{objectQualifier}MOTD_Logs
LastModifiedOnDate datetime NOT NULL--,
/* LastModifiedByUserId int NOT NULL */
) ON [PRIMARY]
TEXTIMAGE_ON [PRIMARY]
/* TEXTIMAGE_ON [PRIMARY] */
GO


Expand Down
24 changes: 21 additions & 3 deletions ReleaseNotes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,34 @@
<p class="Contributor">
Christoc.com <br />
<a href="mailto:modules@christoc.com">modules@christoc.com</a><br />
<a href=http://www.christoc.com>http://www.christoc.com</a><br />
<a href=https://www.christoc.com>https://www.christoc.com</a><br />
</p>
<hr/>
<div class="License">
<h3>About the Message Of The Day Module</h3>

<p class="Owner">
<b>Version V00.00.03</b><br /><br />
</p>
<p>Updated the source/module to work with DNN 9.</p>


<h4>Requirements</h4>
<ul>
<li>DNN 9 +</li>
<li>A Bootstrap V3.3+ skin (we recommend the Free open source HammerFlex2 skin <a href="http://cjh.am/hammerflex2">http://cjh.am/hammerflex2</a></li>
</ul>


<h4>New Features</h4>
<ul>
<li>No new featured added this release</li>
</ul>

<p class="Owner">
<b>Version V00.00.02</b><br /><br />
</p>
<p>The initial Release of the Message of the Day Module allows you to create messages and have those messages randomly loaded on the page.
Check out the Future Features for a better idea of what is coming in the next couple of weeks.</p>
<p></p>


<h4>Requirements</h4>
Expand Down
38 changes: 21 additions & 17 deletions Resources.zip.manifest
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
<dotnetnuke type="ResourceFile" version="5.0">
<files>
<file>
<path />
<name>License.txt</name>
<path>Views/Shared/</path>
<name>_Layout.cshtml</name>
</file>
<file>
<path />
<name>module.css</name>
<path>Views/Settings/</path>
<name>Settings.cshtml</name>
</file>
<file>
<path />
<name>ReleaseNotes.txt</name>
<path>Views/Message/</path>
<name>AdminList.cshtml</name>
</file>
<file>
<path>Views/Message/</path>
<name>Edit.cshtml</name>
</file>
<file>
<path>Views/Message/</path>
<name>Index.cshtml</name>
</file>
<file>
<path>App_LocalResources/</path>
<name>Messsage.resx</name>
<name>Message.resx</name>
</file>
<file>
<path>App_LocalResources/</path>
Expand All @@ -25,20 +33,16 @@
<name>_ViewStart.cshtml</name>
</file>
<file>
<path>Views/Message/</path>
<name>Edit.cshtml</name>
</file>
<file>
<path>Views/Message/</path>
<name>Index.cshtml</name>
<path />
<name>License.txt</name>
</file>
<file>
<path>Views/Settings/</path>
<name>Settings.cshtml</name>
<path />
<name>module.css</name>
</file>
<file>
<path>Views/Shared/</path>
<name>_Layout.cshtml</name>
<path />
<name>ReleaseNotes.txt</name>
</file>
</files>
</dotnetnuke>
39 changes: 29 additions & 10 deletions Web.config
Original file line number Diff line number Diff line change
@@ -1,24 +1,43 @@
<?xml version="1.0"?>
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor">
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor" requirePermission="false" />
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor" requirePermission="false" />
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor" requirePermission="false"/>
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor" requirePermission="false"/>
</sectionGroup>
</configSections>
<system.web.webPages.razor>
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc"/>
<pages pageBaseType="DotNetNuke.Web.Mvc.Framework.DnnWebViewPage">
<namespaces>
<add namespace="System.Linq"/>
<add namespace="System.Web.Helpers" />
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="System.Web.WebPages" />
<add namespace="System.Web.Helpers"/>
<add namespace="System.Web.Mvc"/>
<add namespace="System.Web.Mvc.Ajax"/>
<add namespace="System.Web.Mvc.Html"/>
<add namespace="System.Web.Routing"/>
<add namespace="System.Web.WebPages"/>
<add namespace="DotNetNuke.Web.Mvc.Helpers"/>
</namespaces>
</pages>
</system.web.webPages.razor>
</configuration>
<!--
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
The following attributes can be set on the <httpRuntime> tag.
<system.Web>
<httpRuntime targetFramework="4.7.2" />
</system.Web>
-->
<system.web>
<compilation targetFramework="4.7.2"/>
</system.web>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30AD4FE6B2A6AEED" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
Binary file modified install/MessageOfTheDay_00.00.02_Install.zip
Binary file not shown.
Binary file modified install/MessageOfTheDay_00.00.02_Source.zip
Binary file not shown.
Binary file added install/MessageOfTheDay_00.00.03_Install.zip
Binary file not shown.
Binary file added install/MessageOfTheDay_00.00.03_Source.zip
Binary file not shown.
Binary file modified obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown.
4 changes: 3 additions & 1 deletion obj/Debug/MessageOfTheDay.csproj.FileListAbsolute.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ c:\websites\dnndev.me\bin\MessageOfTheDay.dll
c:\websites\dnndev.me\bin\MessageOfTheDay.pdb
c:\websites\dnndev.me\desktopmodules\MVC\MessageOfTheDay\obj\Debug\MessageOfTheDay.dll
c:\websites\dnndev.me\desktopmodules\MVC\MessageOfTheDay\obj\Debug\MessageOfTheDay.pdb
c:\websites\dnndev.me\desktopmodules\MVC\MessageOfTheDay\obj\Debug\MessageOfTheDay.csprojResolveAssemblyReference.cache
C:\Websites\dnndev.me\DesktopModules\MVC\MessageOfTheDay\obj\Debug\MessageOfTheDay.csproj.AssemblyReference.cache
C:\Websites\dnndev.me\DesktopModules\MVC\MessageOfTheDay\obj\Debug\MessageOfTheDay.csproj.CoreCompileInputs.cache
C:\Websites\dnndev.me\DesktopModules\MVC\MessageOfTheDay\obj\Debug\MessageOfTheDay.csproj.CopyComplete
Binary file modified obj/Debug/MessageOfTheDay.dll
Binary file not shown.
Binary file modified obj/Debug/MessageOfTheDay.pdb
Binary file not shown.

0 comments on commit 0cec2f8

Please sign in to comment.