Forum Replies Created

Viewing 15 replies - 1 through 15 (of 175 total)
  • Thread Starter George

    (@giorgos93)

    @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

    Thread Starter George

    (@giorgos93)

    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 ??

    Thread Starter George

    (@giorgos93)

    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?

    Thread Starter George

    (@giorgos93)

    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 ??

    Thread Starter George

    (@giorgos93)

    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:

    https://postimg.cc/G8MvnqVw

    Thread Starter George

    (@giorgos93)

    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>
    Thread Starter George

    (@giorgos93)

    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)

    Thread Starter George

    (@giorgos93)

    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?

    Thread Starter George

    (@giorgos93)

    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?

    Thread Starter George

    (@giorgos93)

    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?

    Thread Starter George

    (@giorgos93)

    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?

    Thread Starter George

    (@giorgos93)

    @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>

    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.

    Thread Starter George

    (@giorgos93)

    @sergeykuzmich , I guess, it did help. No warnings for 9 hours. Thanks!

    Also, can I ask you??Is it possible to create several spoilers inside 1 spoiler with the help of your plugin? If not, then is it possible to add this function in future? It would be very useful to put my subcategorial posts’ links inside category spoilers (and not create separate spoilers for them, like I do now).

    Thread Starter George

    (@giorgos93)

    Hi, @sergeykuzmich

    Sure. I use latest WP version (6.5.3). And I use latest php version (8.3.2). Theme:?Shamrock (1.1) by Meks. You can see your plugin on this page of my website: https://litfan.ru/vse-stati/

    Active plugins: AnyComment 0.3.6, Append Link on Copy 0.2, ARI Stream Quiz 1.8.5, Asset CleanUp Pro: Page Speed Booster 1.2.5.0, Broken Link Checker 2.2.4, Classic Editor 1.6.3, Contact Form 7 5.9.5, Easy Affiliate Links 3.7.3, Fixed Widget 6.1.0, Inline Spoilers 1.5.4, Loco Translate 2.6.9, MaxButtons 9.7.8, Popup Maker 1.19.0, Post Views Counter 1.4.6, Really Simple SSL 8.1.3, Responsive Lightbox & Gallery 2.4.7, Table of Contents Plus 2402.1, Webcraftic Clearfy – WordPress optimization plugin 2.2.1, WordPress Popular Posts 6.4.2, Wp-Insert 2.5.1, WP External Links 2.60, WP Fastest Cache 1.2.7, WPFront Notification Bar 3.4.2, WP Mail SMTP 4.0.1, Yet Another Related Posts Plugin (YARPP) 5.30.10, Yoast SEO 22.7

Viewing 15 replies - 1 through 15 (of 175 total)