Skip to content

Commit 2545dcf

Browse files
committed
Added welcome page, few minor UI tweaks
1 parent 6b3d057 commit 2545dcf

6 files changed

Lines changed: 22 additions & 30 deletions

File tree

BlogEngine/BlogEngine.Core/RemoteFile.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ private WebRequest GetWebRequest()
167167
var request = (HttpWebRequest)WebRequest.Create(this.Uri);
168168
request.Headers["Accept-Encoding"] = "gzip";
169169
request.Headers["Accept-Language"] = "en-us";
170+
request.UserAgent = "Mozilla / 5.0(Windows NT 6.2; WOW64; rv: 40.0) Gecko / 20100101 Firefox / 40.0";
170171
request.Credentials = CredentialCache.DefaultNetworkCredentials;
171172
request.AutomaticDecompression = DecompressionMethods.GZip;
172173

BlogEngine/BlogEngine.NET/App_Data/settings.xml

Lines changed: 16 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<settings>
3-
<displayratingsonrecentposts>True</displayratingsonrecentposts>
4-
<enablecontactattachments>True</enablecontactattachments>
53
<showpostnavigation>True</showpostnavigation>
6-
<mobiletheme>Standard</mobiletheme>
74
<enablehttpcompression>False</enablehttpcompression>
8-
<disqusaddcommentstopages>False</disqusaddcommentstopages>
5+
<customfrontpage />
96
<htmlheader />
107
<theme>Standard</theme>
118
<emailsubjectprefix>Weblog</emailsubjectprefix>
@@ -16,10 +13,9 @@
1613
<description>Short description of the blog</description>
1714
<enablepingbacksend>True</enablepingbacksend>
1815
<enabletagexport>True</enabletagexport>
19-
<commentblacklistcount>3</commentblacklistcount>
16+
<iscocommentenabled>False</iscocommentenabled>
2017
<compresswebresource>False</compresswebresource>
21-
<commentwhitelistcount>2</commentwhitelistcount>
22-
<addiptowhitelistfilteronapproval>False</addiptowhitelistfilteronapproval>
18+
<endorsement>http://www.dotnetblogengine.net/syndication.axd</endorsement>
2319
<themecookiename>theme</themecookiename>
2420
<remotefiledownloadtimeout>30000</remotefiledownloadtimeout>
2521
<trustauthenticatedusers>True</trustauthenticatedusers>
@@ -28,12 +24,12 @@
2824
<searchbuttontext>Search</searchbuttontext>
2925
<showincludecommentsoption>False</showincludecommentsoption>
3026
<createblogonselfregistration>False</createblogonselfregistration>
31-
<endorsement>http://www.dotnetblogengine.net/syndication.axd</endorsement>
27+
<enablewebsiteincomments>False</enablewebsiteincomments>
28+
<enablecontactattachments>True</enablecontactattachments>
3229
<blogrollmaxlength>23</blogrollmaxlength>
3330
<language>en-US</language>
3431
<smtpserver>mail.example.com</smtpserver>
3532
<disqusdevmode>False</disqusdevmode>
36-
<customfrontpage />
3733
<postsperpage>10</postsperpage>
3834
<enabletrackbackreceive>True</enabletrackbackreceive>
3935
<enableopensearch>True</enableopensearch>
@@ -42,7 +38,7 @@
4238
<removeextensionsfromurls>True</removeextensionsfromurls>
4339
<smtpusername>username</smtpusername>
4440
<enablepasswordreset>True</enablepasswordreset>
45-
<enableerrorlogging>True</enableerrorlogging>
41+
<disqusaddcommentstopages>False</disqusaddcommentstopages>
4642
<alternatefeedurl />
4743
<errortitle>Ooops! An unexpected error has occurred.</errortitle>
4844
<email>name@example.com</email>
@@ -54,38 +50,33 @@
5450
<enablereferrertracking>False</enablereferrertracking>
5551
<disquswebsitename />
5652
<handlewwwsubdomain />
57-
<culture>Auto</culture>
53+
<commentprovider>BlogEngine</commentprovider>
5854
<postsperfeed>3</postsperfeed>
5955
<sendmailoncomment>True</sendmailoncomment>
60-
<enablerecaptchaoncontactform>False</enablerecaptchaoncontactform>
56+
<culture>Auto</culture>
6157
<remotemaxfilesize>524288</remotemaxfilesize>
62-
<redirecttoremovefileextension>False</redirecttoremovefileextension>
58+
<enablequicknotes>True</enablequicknotes>
6359
<syndicationformat>Rss</syndicationformat>
64-
<contactthankmessage>&lt;h1&gt;Thank you&lt;/h1&gt;&lt;p&gt;The message was sent.&lt;/p&gt;</contactthankmessage>
6560
<blogrollvisibleposts>3</blogrollvisibleposts>
6661
<geocodinglatitude>0</geocodinglatitude>
6762
<numberofreferrerdays>1</numberofreferrerdays>
6863
<israzortheme>False</israzortheme>
69-
<thumbnailserviceapi>http://www.robothumb.com/src/?url={0}</thumbnailserviceapi>
7064
<iscommentsenabled>True</iscommentsenabled>
65+
<redirecttoremovefileextension>False</redirecttoremovefileextension>
7166
<searchdefaulttext>Enter search term or APML url</searchdefaulttext>
7267
<smtpserverport>25</smtpserverport>
7368
<smtppassword>password</smtppassword>
74-
<blockauthoroncommentdelete>False</blockauthoroncommentdelete>
7569
<iscommentnestingenabled>True</iscommentnestingenabled>
7670
<timestamppostlinks>False</timestamppostlinks>
77-
<avatar>wavatar</avatar>
78-
<addiptoblacklistfilteronrejection>False</addiptoblacklistfilteronrejection>
79-
<timezone>0</timezone>
71+
<avatar>identicon</avatar>
72+
<timezoneid>UTC</timezoneid>
73+
<enablerecaptchaoncontactform>False</enablerecaptchaoncontactform>
8074
<enableoptimization>False</enableoptimization>
8175
<name>Name of the blog</name>
82-
<moderationtype>Auto</moderationtype>
8376
<enablepingbackreceive>True</enablepingbackreceive>
8477
<showlivepreview>True</showlivepreview>
85-
<enablequicknotes>True</enablequicknotes>
86-
<galleryfeedurl>http://dnbe.net/v01/nuget</galleryfeedurl>
78+
<facebookappid />
8779
<searchcommentlabeltext>Include comments in search</searchcommentlabeltext>
88-
<displaycommentsonrecentposts>True</displaycommentsonrecentposts>
8980
<enablerelatedposts>True</enablerelatedposts>
9081
<enableenclosures>False</enableenclosures>
9182
<authorname>My name</authorname>
@@ -94,10 +85,10 @@
9485
<errortext>
9586
This one's down to me! Please accept my apologies for this - I'll see to it that the developer responsible for this happening is given 20 lashes (but only after he or she has fixed this problem).
9687
</errortext>
97-
<geocodinglongitude>0</geocodinglongitude>
98-
<enablewebsiteincomments>False</enablewebsiteincomments>
88+
<contactthankmessage>&lt;h1&gt;Thank you&lt;/h1&gt;&lt;p&gt;The message was sent.&lt;/p&gt;</contactthankmessage>
9989
<descriptioncharactersforpostsbytagorcategory>0</descriptioncharactersforpostsbytagorcategory>
10090
<commentreportmistakes>False</commentreportmistakes>
91+
<geocodinglongitude>0</geocodinglongitude>
10192
<selfregistrationinitialrole>Editors</selfregistrationinitialrole>
10293
<enableselfregistration>False</enableselfregistration>
10394
<blogrollupdateminutes>60</blogrollupdateminutes>

BlogEngine/BlogEngine.NET/BlogEngine.NET.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@
129129
<Content Include="admin\themes\standard\css\08.posts.css" />
130130
<Content Include="admin\themes\standard\css\09.custom.css" />
131131
<Content Include="admin\themes\standard\css\10.newpost.css" />
132+
<Content Include="App_Data\posts\f39c3289-e861-48f7-a4b7-edaaffe6f6dc.xml" />
132133
<Content Include="Content\images\blog\icon-left.svg" />
133134
<Content Include="Content\images\blog\icon-pass.svg" />
134135
<Content Include="Content\images\blog\icon-user.svg" />
@@ -2715,7 +2716,6 @@
27152716
<Folder Include="App_Data\datastore\extensions\" />
27162717
<Folder Include="App_Data\files\" />
27172718
<Folder Include="App_Data\packages\SimpleBlog.1.1.0\" />
2718-
<Folder Include="App_Data\posts\" />
27192719
<Folder Include="bin\" />
27202720
</ItemGroup>
27212721
<ItemGroup>

BlogEngine/BlogEngine.NET/admin/filemanager.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
</div>
103103
</div>
104104
<div class="btn-group befdv pull-left">
105-
<button ng-click="addFolder()" class="btn btn-sm btn-warning" type="submit" title="Add folder"><i class="fa fa-folder"></i></button>
105+
<button type="button" ng-click="addFolder()" class="btn btn-sm btn-warning" type="submit" title="Add folder"><i class="fa fa-folder"></i></button>
106106
<button ng-disabled="itemsChecked() === false" ng-click="processChecked('delete')" title="Delete" class="btn btn-sm btn-danger"><i class="fa fa-trash"></i></button>
107107
</div>
108108
<div class="pull-left" style="margin-left: 5px">

BlogEngine/BlogEngine.NET/admin/views/dashboard.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ <h4 class="modal-title">{{lbl.logFile}}</h4>
4040
<div class="panel-title">{{lbl.stats}}</div>
4141
</div>
4242
<ul class="list-group panel-collapse dashboard-stats collaps in" id="collapseOne">
43-
<li class="list-group-item"><a href="{{SiteVars.RelativeWebRoot}}admin/#/content?fltr=pub">{{lbl.publishedPosts}} <span class="item-stats-info item-stats-info-green">{{stats.PublishedPostsCount}}</span></a></li>
43+
<li class="list-group-item"><a href="{{SiteVars.RelativeWebRoot}}admin/#/content/posts?fltr=pub">{{lbl.publishedPosts}} <span class="item-stats-info item-stats-info-green">{{stats.PublishedPostsCount}}</span></a></li>
4444
<li class="list-group-item"><a href="{{SiteVars.RelativeWebRoot}}admin/#/content/pages?fltr=pub">{{lbl.publishedPages}} <span class="item-stats-info item-stats-info-green">{{stats.PublishedPagesCount}}</span></a></li>
45-
<li class="list-group-item"><a href="{{SiteVars.RelativeWebRoot}}admin/#/content?fltr=dft">{{lbl.draftPosts}} <span class="item-stats-info item-stats-info-yellow">{{stats.DraftPostsCount}}</span></a></li>
45+
<li class="list-group-item"><a href="{{SiteVars.RelativeWebRoot}}admin/#/content/posts?fltr=dft">{{lbl.draftPosts}} <span class="item-stats-info item-stats-info-yellow">{{stats.DraftPostsCount}}</span></a></li>
4646
<li class="list-group-item"><a href="{{SiteVars.RelativeWebRoot}}admin/#/content/pages?fltr=dft">{{lbl.draftPages}} <span class="item-stats-info item-stats-info-yellow">{{stats.DraftPagesCount}}</span></a></li>
4747
<li class="list-group-item"><a href="{{SiteVars.RelativeWebRoot}}admin/#/content/comments?fltr=apr">{{lbl.approvedComments}} <span class="item-stats-info item-stats-info-green">{{stats.PublishedCommentsCount}}</span></a></li>
4848
<li class="list-group-item"><a href="{{SiteVars.RelativeWebRoot}}admin/#/content/comments?fltr=pnd">{{lbl.unapprovedcomments}} <span class="item-stats-info item-stats-info-yellow">{{stats.UnapprovedCommentsCount}}</span></a></li>

BlogEngine/BlogEngine.NET/admin/views/security/users.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h4>{{lbl.roles}}</h4>
4646
</div>
4747
</div>
4848
<div class="modal-footer">
49-
<button data-ng-click="saveUser()" class="btn btn-success pull-right btn-tabkey"><i class="fa fa-save"></i>{{lbl.save}}</button>
49+
<button type="button" data-ng-click="saveUser()" class="btn btn-success pull-right btn-tabkey"><i class="fa fa-save"></i>{{lbl.save}}</button>
5050
<button type="button" class="btn btn-default" data-dismiss="modal" ng-click="focusInput=false"><i class="fa fa-ban"></i>{{lbl.cancel}}</button>
5151
</div>
5252
</div>

0 commit comments

Comments
 (0)