by
Roland Schumacher alias GENiALi
27. August 2009 -- 306
words -- 1 mal gelesen
I had an extension under dasBlog. Such gimmicks like simply very good. I then found an extension for BlogEngine.NET at klaus_b. It offers good basic information what but not enough for me. So I built an own extension. It looks like this.
I will now show how the extension GEBEEStatistics is installed in the blog.
1. First do I downloaded the extension.
GEBEE_Statistics_Extension.V.0.9.BETA.zip (3.26 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. GEBEEStatistics.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 site.master file. This shows the blog as a whole. Because the extension displays statistical information from the blog the extension must be installed in the site.master. 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/Statistics.ascx" TagName = "Statistics" TagPrefix = "GEBEE" % >
Should be made on line 3.
4. Where the statistics you want to appear for the place in the site.master.
The following piece output code statistics.
< GEBEE: statistics id = "Statistics" runat = "server" / >
5. If someone quickly wants the text in English this can be done in the file Statistics.ascx. This file is located under "/ user controls/GEBEE/UserControls".
< asp: literal ID = "TotalPostings" runat = "server" text = "total posts: {0}" > < / asp: literal > < br / >
Simply text "total posts: {0}" Customize. {0} Construct must be still there. This is replaced with the current number.
Have fun and thanks.
d165ebac-c333-43f3-ab07-050941974948|0|.0
Tags: