Heise technology review will each report number characters displayed. Is really special. But each time, when I read a report there, I ended up with my view on this figure. Every time.
Therefore I wanted to like this for my blog. However, not the number of characters but just the number of words. There me less numerous, but intrigued anyway. :-)
If this extension is installed, it might appear.
I will now show how the extension GEBEEWordCount is installed in the blog.
1. First do I downloaded the extension.
GEBEE_WordCount_Extension.V.1.0.zip (2.15 kb)
Extension see BlogEngine.NET 1.5.1.18 and the version that is shown here at the bottom was tested.
2. After this the ZIP archive and based on the folder structure, the files are installed/distributed.
The directory structure in BlogEngine.NET looks like the red part. GEBEEWordCount.cs file is copied to the folder "/ App_Code / extensions". There are still some files. The "user controls" are treated similarly.
3. Now you must adapt the PostView.ascx file. This shows a single posting. As counts the words of a posts the extension must be registered the extension there. Depending on the chosen theme of BlogEngine.NET is the file in a different folder. The following code must be inserted.
< % @ register src = "~/User controls/GEBEE/UserControls/WordCount.ascx" tagname = "Word Count" tagprefix = "GEBEE" % >
Should be made on line 2.
4. Now is the place in the PostView.ascx searched where the number of words are displayed.
The following piece output code the number counted words.
< GEBEE: WordCount ID "Word Count" = runat = "server" / >
5. If someone not "n words" would like to have displayed, but "n words" can he change in the WordCount.ascx. This file is located under "/ user controls/GEBEE/UserControls".
< asp: literal ID = "litWordCount" runat = "server" text = "{0} words" > < / asp: literal > Simply text "{0} words" customize where the {0} is replaced by the number on the Web. This remains so in it.
Have fun and thanks.