Groups > Application developers > Community Server Setup and Installation > Re: Problem with Photo Views Count




Problem with Photo Views Count

Problem with Photo Views Count
Fri, 9 Nov 2007 01:52:36 +0000
Forgive me for my lack of knowledge:

I am new to using community server and have reinstalled about 3 times now all
because of the Views Count not increasing for my photos.  In my IIS logs I know
users have been going to my site.  As I have been myself.  It seems that for
some reason “unknown to me” why they don’t.

Can someone help me understand how I can correct this as I love this product but
wish I knew how many times photos have been viewed?
Post Reply
Re: Problem with Photo Views Count
Sun, 11 Nov 2007 17:16:05 +000
You need to edit the skin file for the photo. Adding
IncrementViewCount="true" on the FormattedBody GalleryPostData
control.

The file should be ~/Themes/Default/Galleries/gallerypost.aspx

Line: 123

<CSGallery:GalleryPostData Property="FormattedBody"
IncrementViewCount="true" runat="server" /> 

If that doesn't solve the problem, then there's an issue with caching
Post Reply
Re: Problem with Photo Views Count
Tue, 13 Nov 2007 00:31:05 +000
Well I went and remove the cache by deleting the files there and that did not
help.

I am not using the default theme but am using the \Themes\leanandgreen\ theme.

I found the entry that you posted and that is correct. 

I am at a loss in this.  If there is a cache issue how does one correct it.

My site seems to be working normal (http://www.jermsmit.com/) .
Post Reply
Re: Problem with Photo Views Count
Tue, 13 Nov 2007 21:14:24 +000
Setting any GalleryPostData control to increment the viewcount should work. 
It's not a cache issue with the file cache, but the memory cache.  Touching the
web.config file should reset that cache
Post Reply
Re: Problem with Photo Views Count
Wed, 14 Nov 2007 00:37:02 +000
Initially that’s what I did I opened the web.config file and just saved it.  I
can tell the server had to “I guess the term would be” rebuilt the asp cache
after I did this as the file changed, but no luck it did not change the issue.

I have reinstalled the application 3 times starting over from scratch each time
with no success.
Post Reply
about | contact