Ajax Post View Counter

Posted in: Newspaper
Post count: 364

Hi,

Since I need to make some customizations, could you please tell me in which files I find the code for the ajax post view counter?

Thanks!

Yeah, my 301 post, thanks for the new badge!

Post count: 35449

Hi,
It was our pleasure to set on the new badge!
For cloud templates the post view element is on this path wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_post_views.php and for standard templates is on this path wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php -> https://i.imgur.com/Ol41hk5.png also in wp-content/plugins/td-composer/legacy/common/wp_booster/td_ajax.php is set the ajax function for post view count -> https://i.imgur.com/xN6MaV1.png
I hope this will help you!

Post count: 364

Hi Calin,

Two additional questions to this,

How do you call the functions (on_ajax_get_views and on_ajax_update_views) via Javascript?

And is there any cache related code that busts the cache for counting the post views?

Thanks!

Post count: 21065

Hello!

Yes, via Javascript. Unfortunately, all javascript files from our theme get combined into a bigger, minified javascript file which gets delivered to the client and original files get removed from the package. So, even though you edit the original files, they will not get recompiled at all and so the changes will not take effect to your website.

For customization and other services you can contact our custom work team here: https://tagdiv.com/premium-customization-services/

Thank you for your understanding!

Post count: 364

Hello Bettina,

Thanks for your reply and this info. I feel that I close to fix my issue. Can you please tell me where I find the file tdAjaxCount.js?

Thanks!

Post count: 21065

Hello!

How I explained you above, you have no access to it.

Thank you for understanding!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.