George
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Popular Posts] Less popular posts are shownThanks a lot! Unfortunately, there is still a problem… Now there are 5 posts in list, as it should be. But the views count is low, and other posts had to replace them a long time ago. I have a much higher traffic, but your stats tab show 6-7 views for a couple posts at max. And my quiz (which is usually a top visited page) is not even on the list.
Something is defintely off with views count. And I am logged-in as admin, so the results are not cached for me. Maybe I need to exclude something else from js-combining, other than that min.js file?
Forum: Plugins
In reply to: [WordPress Popular Posts] Less popular posts are shownThanks for the answer! Yes, I do use a plugin, that minifies JS-code. However, it excludes all files, that have “min.js”.
However, the problem was related to JS-combining. I’ve just excluded the path of that minified js-file, and everything started to work correctly.
I’ve had this file added in exceptions before, but a developer of “Asset Cleanup Pro” fixed the incompability long time ago, so I removed the file from exceptions.
But now, I guess, the problem returned… I wrote to a developer of this plugin, to report about it. Is this problem surely from his side, but not from yours, right?
Forum: Plugins
In reply to: [WordPress Popular Posts] To add front-end post views count?@hcabrera , I’ve just spoke to another programmer, about this:
Technically yes, it is possible. However, WordPress Popular Posts doesn’t collect any user identifiable data (like IP addresses for example) for privacy and?GDPR?compliance reasons and so it can’t do any advanced stuff like counting “unique” pageviews like Google Analytics does for example.
He said, that you can add this option for site owners from other countries, who are not under GDPR rules, right? Also, he said, that you probably can keep IP hash (that it’s encrypted irreversibly), so nobody can count it as a personal information?
I am not a programmer, so I am just passing this information :p
Forum: Plugins
In reply to: [WordPress Popular Posts] To add front-end post views count?Somehow it disappeared from unloading rule of my Asset Cleanup Pro plugin. Maybe it has some dynamic value, that changes, and that’s why it cannot be fully unloaded? ??
However, I’ve just rechecked, and it’s marked, as HTML Tag, but not JS-script: https://postimg.cc/1VcfzpQy
So, idk, what exactly did I unload then ??
Forum: Plugins
In reply to: [WordPress Popular Posts] To add front-end post views count?It’s not really new, the plugin has been using that script for?years?at this point. That script keeps track of pageviews, loads your popular posts list, etc. You just didn’t notice it was there until now.
I’ve just tried to unload this script on my website, and [wpp shortcode] is still working correctly in sidebar. And the posts views count is still increasing as well (at the beginning each post – with the help of the code, that you gave me today).
So, in my case the script is not needed, and I can keep it unloaded? Or do I lose something?
Forum: Plugins
In reply to: [WordPress Popular Posts] To add front-end post views count?Now it works perfectly (at least, visually)!
I can’t thank you enough for that. You didn’t have to spend your time and help me like that, but you did it anyway. So thank you ??
And also, it can help other people as well. Lots of useful things ??
Forum: Plugins
In reply to: [WordPress Popular Posts] To add front-end post views count?Thanks a lot! I did try your code, and it worked almost perfectly, with 1 exception: for some reason, it added ’85’ before the actual post publication date. So it looks like this:
Forum: Plugins
In reply to: [WordPress Popular Posts] To add front-end post views count?And also: I want to change number format, by putting ‘false’ there. I read your documentation, but I didn’t understand, where exactly (and what type of code) do I need to put, to set it to ‘false’? :
<div class="entry-meta">
<?php
if ( function_exists('wpp_get_views') ) {
echo '<i class="fa fa-eye"></i> <span>ПРОСМОТРОВ:</span> <span>' . wpp_get_views( get_the_ID() ) . '</span>';
}
?>
</div>Forum: Plugins
In reply to: [WordPress Popular Posts] To add front-end post views count?You may need to reach out to your developer for assistance with that one.
Unfortunately, it is not my website’s code. The calendar with post’s publication date is put by Posts Views Counter plugin (by this code, in my case):
<div class="entry-meta">
<?php
$myviews77 = pvc_post_views( $post_id = 0, $echo = true );
echo $meta, $myviews77;Can I offer an idea for your plugin, to put a calendar icon with post’s publication date as well? (in addition to other parameters, that you offer for wpp_get_views)
Forum: Plugins
In reply to: [WordPress Popular Posts] To add front-end post views count?Thanks a lot for a quick and detailed answers!
Yes, I am not that experienced in WP development, so I’ll try to forget that inique views count thing ??
However, I’d still like to try your post views count option. But I want to imitate the style, like here: https://litfan.ru/poleznye-resursy-dlya-pisatelej/gde-razmestit-rasskaz-v-internete-top-10-sajtov/
Here is, what I am talking about: https://postimg.cc/dDxvyCzt
Can you please give me an advice, how to modify your code above, so it’ll contain not only an eye icon, but ПРОСМОТРОВ: text (it means ‘views’) before views number, and a calendar icon with a post publication date? Here is a current code:
<div class="entry-meta">
<?php
if ( function_exists('wpp_get_views') ) {
echo '<i class="fa fa-eye"></i> <span>' . wpp_get_views( get_the_ID() ) . '</span>';
}
?>
</div>And also, can I change somehow margins etc for these icons, text?
Forum: Plugins
In reply to: [WordPress Popular Posts] To add front-end post views count?And I’ve just noticed a new script, when updated your plugin:
<script type="text/javascript" id="wpp-js" src="https://site.ru/wp-content/plugins/wordpress-popular-posts/assets/js/wpp.min.js" data-sampling="0" data-sampling-rate="100" data-api-url="https://site.ru/wp-json/wordpress-popular-posts" data-post-id="0" data-token="***" data-lang="0" data-debug="0"></script>
Just wanted to ask, what is it for? And what will happen, if I unload it?
Forum: Plugins
In reply to: [WordPress Popular Posts] To add front-end post views count?And since I wrote here, I want to ask another question:
I read, that in newer versions .widget class was removed from your plugin. I’ve just checked: in the past I changed styles for .widget_custom_html class.
Was .widget_custom_html class removed as well, or everything will still work fine?
Forum: Plugins
In reply to: [WordPress Popular Posts] To add front-end post views count?Hi, @hcabrera
I’ve just tested the code, that you gave me above. It does work, but it counts every visit from the same user, on the same page (at least in incognito mode). So, If I refresh the page 5 times, then the view count will increase +5 views.
Is it possible to restrict every post with the rule “1 view from 1 unique user on 1 page in 24 hours”, or smth like that?
And also, does it count my visits as well (in admin role)? If yes, then can I exclude myself somehow?
Forum: Plugins
In reply to: [WordPress Popular Posts] To add front-end post views count?@hcabrera I added meta-item and fa fa-eye class in functions.php file of the plugin.
Also, I added this code in WordPress’ content-single.php file, after <?php if ( $meta = shamrock_get_meta_data() ) : ?> :
<div class="entry-meta">
<?php
$namehere = pvc_post_views( $post_id = 0, $echo = true );
echo $meta, $namehere;
?>
</div>Forum: Plugins
In reply to: [Table of Contents Plus] PHP Warning: Attempt to read property “post_content”I have the exact same error. It also appears on some other plugins on my website. One developer has already fixed it.
Please, fix it too.