• Fixes for the stats:
    First row not showing properly:
    Adjust row 153 from:
    $url = 'https://api.facebook.com/restserver.php?method=links.getStats&urls="'.$urls.'"';
    to
    $url = 'https://api.facebook.com/restserver.php?method=links.getStats&urls='.$urls.'';

    Footer showing on top:
    Adjust row 103 from:

    $get_analytics = fb_read_analytics($urls);
    	 }

    to:

    $get_analytics = fb_read_analytics($urls);
    	echo "</table>";
    }

    Showing pages and posts:
    Adjust row 88 from:
    query_posts('posts_per_page=30');
    To:
    query_posts( 'post_type=post&posts_per_page=-1&orderby=title&order=ASC');

    Adjust row 102 from:
    wp_reset_query();
    To:

    wp_reset_query();
    		query_posts( 'post_type=page&posts_per_page=-1&orderby=title&order=ASC');
    		//The Loop
    		if ( have_posts() ) : while ( have_posts() ) : the_post();
    		if (get_post_status($post->ID) == 'publish') {
    			$urls .= get_permalink().",";
        	  	}
    		endwhile; endif;

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thanks RPG84. We have fixed this issue.

    Thread Starter RPG84

    (@rpg84)

    Thanks for the quick response.

    I have some adjustment because the analytics did not work for people with a lot of pages/posts. Also made the stats colorised so you can see how well you are linked (you can decide if you like it and want to implement it)

    This will create 1 table
    Then after every 20 posts/pages it will get the stats from facebook. This to make sure that people with a lot of pages/post will still see stats
    Change:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    To:
    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thread Starter RPG84

    (@rpg84)

    Put the changes in a pastebin:
    https://pastebin.com/vCyY0c2x

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: facebook-share-new] Some fixes for the Statistics page’ is closed to new replies.