Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
sporyk
tagDiv Member

It’s requires few more steps.

1. After applying changes in code of the plugin you have to modify you config
2. Make sure you have line define(‘WP_DEBUG’, true); in /wp-config.php
3. Refresh the page in browser – you will see actual number of followers in FB counter
4. Change /wp-config.php as it was before (i.e. define(‘WP_DEBUG’, false); )

sporyk
tagDiv Member

Just add after line 68 in /wp-content/plugins/td-social-counter/td_social_api.php the following lines

if(true === WP_DEBUG){
$service_data = $this->get_service_data($service_id, $user_id, $access_token);
td_remote_cache::set(__CLASS__, $service_cache_key , $service_data, self::$caching_time);
}

is will allow to refresh social counter cache when WP_DEBUG is true )))

I know its hack, but it works.

sporyk
tagDiv Member

Its an error in /wp-content/plugins/td-social-counter/js/td_social_counter.js

Viewing 3 posts - 1 through 3 (of 3 total)