Ajax View Count Customization

Posted in: Newsmag
Post count: 18

Hi Team,

I would like Ajax view count to be visible for visitors only if that page view count goes beyond 100 or any specific number. Is that possible? Thanks!

Post count: 6535

Hi

You can achieve that by editing the loop file corresponding with the post template used for post like here: http://screencast.com/t/mP59b3MKLw

<?php
                    $check_views = td_page_views::get_page_views($td_mod_single->post->ID);
                    if($check_views > 10){
                        echo $td_mod_single->get_views();
                    }
                    ?>

You just need to replace the number from the condition wit your number.
Thanks!

  • This reply was modified 10 years by Andrei L..
Post count: 53

HI,

Is there any way to automatically multiply the post view result in all the post views?? I know there is custom setting to modify the post views manually but can it be done automatically and the result will get multiplied by 3 times or 4 times of the actual.

Thanks.

Post count: 6535

Hi

An automatically method to multiply the post view number would be to multiply this value with the desired number: http://screencast.com/t/2fTt6BcC

Thanks!

Post count: 53

Thanks Andrei.

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.