Results 1 to 4 of 4

Thread: Remove number of 'today' views

  1. #1
    Thread Starter
    chroniclehouse's Avatar
    Join Date
    Jul 2012
    Location
    South Africa
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Remove number of 'today' views

    I am in includes/appthemes-functions.php , not sure if it is the right file that I am editing.

    Code:
    // get the page view counters and display on the page
    function appthemes_get_stats($post_id) {
    	global $posts, $app_abbr;
    
    	$daily_views = get_post_meta($post_id, $app_abbr.'_daily_count', true);
    	$total_views = get_post_meta($post_id, $app_abbr.'_total_count', true);
    
    	if(!empty($total_views) && (!empty($daily_views)))
    		echo number_format($total_views) . ' ' . __('total views', 'appthemes'). ', ' . number_format($daily_views) . ' ' . __('today', 'appthemes');
    	else
    		echo __('no views yet', 'appthemes');
    }
    I changed the code to remove today and it's views. But it is not reflecting on the website. Is there anything else that I need to change?

    Code:
    // get the page view counters and display on the page
    function appthemes_get_stats($post_id) {
    	global $posts, $app_abbr;
    
    	$daily_views = get_post_meta($post_id, $app_abbr.'_daily_count', true);
    	$total_views = get_post_meta($post_id, $app_abbr.'_total_count', true);
    
    	if(!empty($total_views) && (!empty($daily_views)))
    		echo number_format($total_views); 
    	else
    		echo __('no views yet', 'appthemes');
    }
    today.png

  2. #2
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Expired Customer spiderz's Avatar
    Join Date
    Dec 2012
    Location
    Pakistan
    Posts
    52
    Thanks
    5
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Veteran ajamm's Avatar
    Join Date
    Nov 2011
    Location
    New Zealand
    Posts
    309
    Thanks
    26
    Thanked 32 Times in 29 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Did this post help you? Did I save you time? Click Thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Total views and today's views remain the same
    By amersvoort in forum Report ClassiPress Bugs
    Replies: 7
    Last Post: August 27th, 2015, 07:15 AM
  2. Number of views
    By orangemedia in forum Report Vantage Bugs (Legacy)
    Replies: 1
    Last Post: June 1st, 2012, 03:53 AM
  3. [SOLVED] Total Views and Today Views Not showing up ????
    By stolarczykk in forum Report ClassiPress Bugs
    Replies: 13
    Last Post: March 24th, 2012, 06:51 AM
  4. [MOD NEEDED] disable number of views in User Dashboard
    By 3shades in forum ClassiPress General Discussion
    Replies: 1
    Last Post: October 27th, 2011, 10:04 AM
  5. Remove or Comment Out - Total & So Far Today Views
    By epreneur in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: September 19th, 2010, 01:59 PM