Skip to content

Commit

Permalink
Updated Developer Doc and installer
Browse files Browse the repository at this point in the history
  • Loading branch information
mac committed Feb 24, 2017
1 parent 787ece7 commit 777c8bd
Show file tree
Hide file tree
Showing 18 changed files with 2,168 additions and 2 deletions.
9 changes: 9 additions & 0 deletions FrameworkLibrary/FrameworkLibrary.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
<HintPath>..\packages\linqtotwitter.4.1.0\lib\net45\LinqToTwitter.net.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="MailChimp.Net.V3, Version=1.9.0.0, Culture=neutral, PublicKeyToken=37d26d538413c581, processorArchitecture=MSIL">
<HintPath>..\packages\MailChimp.Net.V3.1.9.0.0\lib\net45\MailChimp.Net.V3.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="MaxMind.Db, Version=2.0.0.0, Culture=neutral, PublicKeyToken=66afa4cc5ae853ac, processorArchitecture=MSIL">
<HintPath>..\packages\MaxMind.Db.2.1.3\lib\net45\MaxMind.Db.dll</HintPath>
<Private>True</Private>
Expand Down Expand Up @@ -151,6 +155,10 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Microsoft.Net.Http.2.2.29\lib\net45\System.Net.Http.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.AspNet.WebApi.Client.5.2.3\lib\net45\System.Net.Http.Formatting.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Net.Http.Primitives, Version=4.2.29.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Microsoft.Net.Http.2.2.29\lib\net45\System.Net.Http.Primitives.dll</HintPath>
Expand Down Expand Up @@ -302,6 +310,7 @@
<Compile Include="Helpers\IOHelper.cs" />
<Compile Include="Helpers\jGrowlHelper.cs" />
<Compile Include="Helpers\jGrowlMessage.cs" />
<Compile Include="Helpers\MailChimpHelper.cs" />
<Compile Include="Helpers\PreloadHelper.cs" />
<Compile Include="Helpers\RedisCacheHelper.cs" />
<Compile Include="Helpers\RequestToolGZipSimple.cs" />
Expand Down
43 changes: 43 additions & 0 deletions FrameworkLibrary/Helpers/MailChimpHelper.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
using MailChimp.Net;
using MailChimp.Net.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FrameworkLibrary
{
public class MailChimpHelper
{
public static async void AddEmailAddressToFlexDotNetCMSInstallerList(string emailAddress)
{
try
{
var mailChimpManager = new MailChimpManager("f23d1a1ec667a40691014801ed84f096-us15");

var listId = "6923a0bab7";
// Use the Status property if updating an existing member

var memberExists = await mailChimpManager.Members.ExistsAsync(listId, emailAddress);
Member member = null;

if (memberExists)
{
member = new Member { EmailAddress = emailAddress, Status = Status.Subscribed };
}
else
{
member = new Member { EmailAddress = emailAddress, StatusIfNew = Status.Subscribed };
}

member = await mailChimpManager.Members.AddOrUpdateAsync(listId, member);

}
catch (Exception ex)
{

}
}
}
}
2 changes: 2 additions & 0 deletions FrameworkLibrary/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
<package id="elmah.corelibrary" version="1.2.2" targetFramework="net45" />
<package id="EntityFramework" version="6.1.3" targetFramework="net45" />
<package id="linqtotwitter" version="4.1.0" targetFramework="net45" />
<package id="MailChimp.Net.V3" version="1.9.0.0" targetFramework="net452" />
<package id="MaxMind.Db" version="2.1.3" targetFramework="net452" />
<package id="MaxMind.GeoIP2" version="2.7.2" targetFramework="net452" />
<package id="Microsoft.AspNet.Razor" version="3.2.3" targetFramework="net45" />
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net452" />
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="net45" />
<package id="Microsoft.Bcl.Build" version="1.0.21" targetFramework="net45" />
<package id="Microsoft.Bcl.Compression" version="3.9.85" targetFramework="net45" />
Expand Down
Binary file not shown.
Binary file not shown.
Binary file modified WebApplication/Admin/media/docs/FlexDotnetCMSGuide.docx
Binary file not shown.
2 changes: 2 additions & 0 deletions WebApplication/Installer/Default.aspx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ protected void UpdateCMSAdminLogin_Click(object sender, EventArgs e)
{
DisableInstallerPanel.Visible = true;
Messages.Text = "Successfully updated CMS Admin Login Credentials";

MailChimpHelper.AddEmailAddressToFlexDotNetCMSInstallerList(admin.EmailAddress);
}
}

Expand Down
10 changes: 9 additions & 1 deletion WebApplication/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<add key="PayPalBuisnessID" value="[GET_IT]" />
<add key="MailChimpApiKey" value="[GET_IT]" />
<add key="InstagramClientID" value="69b47bd8e3864ed4b6e933facd10752e" />
<add key="EnableInstaller" value="False" />
<add key="EnableInstaller" value="True" />
</appSettings>
<connectionStrings>
<add name="Dev" connectionString="Data Source=192.168.121.20;Initial Catalog=FlexDotNetCMS;Integrated Security=False;Persist Security Info=True;User ID=dbuser;Password=dbpassword1234$" providerName="System.Data.SqlClient" />
Expand Down Expand Up @@ -293,6 +293,14 @@

</dependentAssembly>

<dependentAssembly>

<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />

<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />

</dependentAssembly>

</assemblyBinding>

</runtime>
Expand Down
Binary file modified WebApplication/bin/FrameworkLibrary.dll
Binary file not shown.
Binary file modified WebApplication/bin/FrameworkLibrary.pdb
Binary file not shown.
Binary file added WebApplication/bin/MailChimp.Net.V3.dll
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 777c8bd

Please sign in to comment.