1 robertc Jan 03, 2011 00:16
3 robertc Jan 03, 2011 11:13
[url=http://www.boogdesign.com/b2evo/index.php/links-for-january-2nd?blog=4]Here it is[/url].
Rob
4 gerardp Jan 10, 2011 18:01
After updating a week ago, I realized today that view counts do not update.
Is there a solution yet?
Thanks!
Gerard
5 sam2kb Jan 11, 2011 06:10
6 robertc Jan 11, 2011 15:20
My skin does not have its own _item_content.inc.php, it's using the default one.
Rob
7 gerardp Jan 11, 2011 16:25
Ditto. My _item_content.inc.php is up to date and my skin (Simple Zen) uses the default
8 sam2kb Jan 11, 2011 23:59
What about FTP access, can I login and check what's going wrong?
9 gerardp Jan 12, 2011 03:19
Sure. Give me an email address to send the log-in data.
Are U using Dreamweaver or another program? (Just so I know what to send you)
10 sam2kb Jan 12, 2011 04:39
Can you PM it to me?
All I need is hostname to connect to, username and password
ps I removed your email
11 gerardp Jan 12, 2011 18:52
Did you get it?
12 sam2kb Jan 12, 2011 21:14
Yes, I got your message. I'll check the server later today.
13 gerardp Jan 14, 2011 05:36
Good. Hope you find something.
G. >>de nederlandse mafia...
14 sam2kb Jan 14, 2011 07:10
Thanks to GerardP I found a problem in b2evo. I'll try to fix it in next few days.
In two words, b2evo doesn't count views because it marks them as page refresh.
Hit::is_new_view() is false
15 gerardp Jan 14, 2011 09:05
We all love problems, however, we love even more to fix them. THX SAM for figuring this one out.
Awaiting any suggestions you may have.
THX.,
GP
16 gerardp Jan 26, 2011 02:58
Anything yet????
17 lytspeed May 20, 2011 03:58
GerardP wrote:
Anything yet????
I'm on 4.0.5, and I'm having the same problem, so if it was fixed in 4.0.3, it didn't carry over. It's been a few months since anyone posted in here, so I'm hoping that a fix is out there somewhere.
Stace
18 sam2kb May 20, 2011 06:10
AFAIK it's not fixed yet.
19 renton Jun 27, 2011 02:32
Is there any progress yet? I got the same issue over here with v 4.0.5.
20 lytspeed Jul 04, 2011 21:17
sam2kb wrote:
AFAIK it's not fixed yet.
If it's not fixed in the main version, is there at least a quick fix we can do on our own? It seems like it would jut be a matter of replacing a variable in the skin file with the variable that shows browser hits on the admin stats page.
Stace
21 sam2kb Jul 05, 2011 05:04
It should be fixed in the upcoming release.
I personally don't know of any working patch fo this issue.
22 romputer Aug 20, 2011 02:32
Same issue here and I am using the latest version... "No views"
23 sam2kb Aug 20, 2011 06:49
It looks like this is fixed in v4.1, there's also a new feature added to count user sessions, which is actually more precise.
24 lytspeed Aug 20, 2011 08:31
sam2kb wrote:
It looks like this is fixed in v4.1, there's also a new feature added to count user sessions, which is actually more precise.
That's great news! Any idea when 4.1 is coming out?
25 sam2kb Aug 20, 2011 14:44
There's only one person who can answer your question, and that's not me :)
You can read b2evo news on twitter
http://twitter.com/#!/b2evolution
26 lytspeed Oct 05, 2011 19:48
sam2kb wrote:
It looks like this is fixed in v4.1, there's also a new feature added to count user sessions, which is actually more precise.
Well, 4.1.1 is out, and I've upgraded to it, but my views are still showing up as 0. I suspect that my custom skin (based on Purple Beauty) is not smart enough to know what changes need to be made to use the fixed count or the user session count. Sam2kb, can you (or anyone) point me to where I can find information about what to change in my skin?
Thanks,
Stace
27 sam2kb Oct 05, 2011 21:22
I didn't find anything in default Purple Beauty skin that can disable view counter. Did you add any custom *.php files to the skin?
Try this, edit the following in index.main.php
global $shutdown_count_item_views;
while( $Item = & mainlist_get_item() )
{ // For each blog post, do everything below up to the closing curly brace "}"
// Increment view count on ALL posts
$shutdown_count_item_views[] = $Item->ID;
28 lytspeed Oct 06, 2011 17:40
sam2kb wrote:
I didn't find anything in default Purple Beauty skin that can disable view counter. Did you add any custom *.php files to the skin?
No, I didn't add any custom *.php files, but I did modify many of them.
sam2kb wrote:
Try this, edit the following in index.main.php
global $shutdown_count_item_views; while( $Item = & mainlist_get_item() ) { // For each blog post, do everything below up to the closing curly brace "}" // Increment view count on ALL posts $shutdown_count_item_views[] = $Item->ID;
I tried that, but it didn't make any difference.
Here's the section of code from my skin's index.main.php file that actually displays the number of views:
<div class="bSmallPrint">
<?php
$Item->issue_time( array(
'before' => ' ',
'after' => '',
'date_format' => 'M d Y',
));
echo ', ';
$Item->wordcount();
echo ' '.T_('words');
echo ', ';
$Item->views();
?>
I can see that the variable it's trying to display is just "views()". Is that the correct variable to display in 4.1.1?
As always, thanks for your help.
Stace
29 sam2kb Oct 06, 2011 20:41
I believe it's correct. You can also find post views in backoffice when viewing full posts.
Can you PM me FTP access to your server so I can check where the script breaks?
30 lytspeed Oct 06, 2011 21:03
sam2kb wrote:
Can you PM me FTP access to your server so I can check where the script breaks?
Unfortunately, I can't. It's behind a municipal government firewall. :(
I did notice this, though. I browsed the skins on the demo server and found one that works correctly with 4.1.1 running on that server: andreas_01.
I downloaded and installed andreas_01 on my production server, and I'm now getting "1 view" on the top post of the main page. I switched back to my skin, and I'm still seeing "1 view" on the top post. I switched to a different machine to force a new session and it incremented to 2 views, other posts I looked at are still showing "No views". I guess it's sort of working after the code change you suggested above. I'll keep an eye on it and report back.
Thanks,
Stace
31 sam2kb Oct 06, 2011 21:07
You can easily check counters by pointing several browsers to your blog
http://browsershots.org/
Also note that if you open a category only the first post (the top one) increases its counter, so for test purposes you should point browsers to a single post
32 lytspeed Oct 06, 2011 21:13
sam2kb wrote:
You can easily check counters by pointing several browsers to your blog
http://browsershots.org/
That's handy! I'll remember that for later. Unfortunately, since this server is not publicly accessible yet, it won't do me a lot of good. I can have a bunch of different users go to specific posts, though, and watch to see if the individual post numbers increment.
Thanks again. I'll let you know what I find out.
Stace
33 insobiors Nov 23, 2011 08:06
Post your views and ideas in this section only..
Can you give a link to the post? This looks like a bug.