Feed
Google+
Contact
XING
LinkedIn
Twitter
ICQ
meebo.com

GEBEE - WordCount extension 1.0

by Roland Schumacher alias GENiALi 27. August 2009 -- 336 words  -- 0 mal gelesen

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.

GEBEEWordCount

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.
Install Extension

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.

Register Extension

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" / >

Impelent Extension

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.

kick it on dotnet-kicks.de

Tags:

Kommentare sind geschlossen

Statistik

Gesamte Posts: 1025
Dieses Jahr: 7
Diesen Monat: 1
Diese Woche: 0
Kommentare: 929
Total Bewertungen: 91
Ø Bewertung: 4,42
Meisten Kommentare
Google+ ... (28)
Beste Ø Bewertung
Tastaturlayout von Visual Stud ... (5)
Meiste Bewertungen
Windows 7 und die ersten Erfah ... (5)

Buttons

Stop Spam Harvesters, Join Project Honey Pot Benutzerprofil von GENiALi connection speed test network connection Bloggeramt.de Slug.ch Blog Verzeichnis und Blog Webkatalog Schumacher Roland Seitwert Valid XHTML 1.0 Transitional

writing