2013-12-11, 09:13 AM
Possible to convert link below to work with mybb ?
http://www.pencilscoop.com/2013/09/how-t...avascript/
interested in this, because in fact loads much faster than using javascript
probably need create plugin
something below... but not work...
http://www.pencilscoop.com/2013/09/how-t...avascript/
interested in this, because in fact loads much faster than using javascript
probably need create plugin
something below... but not work...
$plugins->add_hook("showthread_start", "get_fb");
function get_fb ($url) {
global $url, $json_string, $json;
$url = get_permalink();
$json_string = file_get_contents('http://urls.api.twitter.com/1/urls/count.json?url=' . $url);
$json = json_decode($json_string, true);
return isset($json['count'])?intval($json['count']):0;
}