I'm Keyvan Nayyeri, a 25 years old Ph.D. student at
the Computer Science department of
the University of Texas at San Antonio.
I'm also
a Software Architect and Developer and previously held a B.Sc.
degree in Applied Mathematics.
This is my blog where I publish content about various topics specifically Programming Languages and Compilers, Software
Engineering, and Programming.
Fahrenheit Marketing is a top-dog Austin Web Design firm offering a complete portfolio of online services.
After upgrading my site to Community Server 2007 Service Pack 2, I noticed a problem in my views counter in blog Control Panel: all my views counters stopped and Community Server didn't increment statistics after upgrade.
The first step was to check everything and make sure I haven't missed any upgrade step, jobs are running, my site has a correct structure and there is no exception logged in database about this issue. And nope, they were not the reason. After asking on private alias and Community Server forums, I got no response and finally decided to stick with it to solve the problem myself.
As I didn't see any similar issue on Community Server forums, I thought this may be a result of my custom blog theme so tried to see what's new in blog themes which can cause my problem. After comparing Chameleon controls, I belief that there is a new addition to WeblogPostData control: IncrementViewCount property.
This property is set to false by default and this will stop the views counter from incrementing values so it's necessary to set this property to true in order to have a correct views counter value.
So here is the element that should be placed inside the page where you want to display the post body:
<CSBlog:WeblogPostData ID="WeblogPostData3" runat="server" Property="FormattedBody" IncrementViewCount="true">
This was listed as a feature enhancement in announcement post for Service Pack 2. Using this new property, views counter won't be updated for truncated posts (for example, what you see in my blog homepage for post bodies) and helps to have real statistics for each post.
Fahrenheit Marketing is your resource for Search Engine Optimization in Austin.
Dave Burke
Jun 14, 2007 9:42 PM
#
Dave Burke's Community Server Bits
Jun 14, 2007 9:52 PM
#
Community Blogs
Jun 14, 2007 10:19 PM
#
Yoda's Blog
Jun 17, 2007 5:03 PM
#
Susan
Jun 19, 2007 12:55 PM
#
Keyvan Nayyeri
Jun 20, 2007 7:21 AM
#
Susan,
You have to search for all <CSBlog:WeblogPostData /> elements and add that new IncrementViewCount attribute to all elements that should be considered in statistics.
skylin.xin
Jun 28, 2007 8:22 PM
#
Rich Wallace
Jul 12, 2007 1:48 PM
#
le_sloth
Sep 01, 2007 4:34 PM
#
Ron Crumbaker
Oct 17, 2007 8:36 AM
#
Chris Millensifer
Nov 29, 2007 7:38 AM
#
Leave a Comment