by
Roland Schumacher alias GENiALi
24. Juli 2010 -- 468
words -- 1 mal gelesen
A few days ago, I had once again like to make an extension for BlogEngine.NET . Yes, I have ideas. What I see over and over again in many other blogs is how many times a post has been read. I also wanted something in the shaft.
It should be but easy. I want no Java script or other things. Something very simple. Does this not interest me also whether or not the call came from a search engine. I am interested only as often the posting read / was opened.
In retrospect I included an IP still lock. I had to impossible figures in it. Now can an IP up counting a posting only every 20 minutes.
Installation should be / is hopefully not too complicated.
- Download the ZIP archives. -> GEBEE_MostRead_Extension.V.1.0.zip
- Bag in the root directory of BlogEngine.NET. The directory structure should actually fit.
- A piece of code installed in the file PostView.ascx. Only the part is important < GEBEEMostRead.Get = %... % >. The rest is only with vegetables.
< a href = "/ MostRead.aspx" target = "_blank" title = "MostReaded" > < % = GEBEEMostRead.GetById(Post,_Location).ToString()% > & nbsp; x & nbsp; read < / a >
- Because I use LINQ certainly must the Web server.NET 3.0 support. My could even 4.0. But I use only 3.5. Since the current version of BlogEngine.NET, but only the version 2.0 of.NET supports must be adapted still the web.config so that the whole story with the 3.5'er compiler is translated.
< assemblies >
< add assembly = "System.Core, Version = 3.5.0.0, culture = neutral, PublicKeyToken = B77A5C561934E089" / >
< add assembly = "System.Management..."And all at the end of the web.config:
< / system.webserver >
<! - to LINQ does the 3.5'er must be used compiler. - >
< system.codedom >
< compilers >
< compiler language = "c#; cs; csharp" extension = ".cs" type = "Microsoft.CSharp.CSharpCodeProvider, system, version 2.0.0.0 =, culture = neutral, PublicKeyToken = b77a5c561934e089" warningLevel = "4" >
< providerOption name = "Compilerversion" value = "v3. 5" / >
< providerOption name = "WarnAsError" value = "false" / >
< / compiler >
< / compilers >
< / system.codedom >
< / configuration >
The whole looks then like this.

Behind the "9 times read" there is still a link to a page with some information. Title, when was this posting opened the first time, when the last time, days between two dates, and how often an average per day the posting read/open is.

Whether the figures meaning not make white I. If you have ideas to sign up simply with me.
What I could still do / will is, incorporate the data still on the GEBEE - statistics extension . Of course so that the extension even without this one does. But that's my pending tasks no. 3566.
First enjoy it.

b10e1f3b-a738-49bc-9660-09b45399629c|0|.0
Tags: