Ready to get started?Download WordPress


[Plugin: WordPress.com Stats] Graph does not display (1 post)

  1. technorious
    Posted 4 years ago #

    Hello Andy,

    First of all thank you for this wonderful plugin. There is a little issue with the plugin that I had been facing quiet long but today I got the time to digg into it and found the issue.

    Screenshot: http://technorious.com/wp-content/uploads/2010/06/wordpress-stats-error.png

    The reason I was seeing this is because on my blog I had separate url defined for plugins i.e plugins.domain.com and that is why the plugin stopped showing the graph. The rest of the stats seems to work fine but it just does not show graphs in flash.

    So I applied a quick hack and hardcoded my blog url in the plugin file. at line 223 in stats.php:

    $swf_url = "http://technorious.com/wp-content/plugins/stats/open-flash-chart.swf?data=";<br />
    $html = preg_replace('!(<param name="movie" value="|<embed src=")(.+?)&data=!', "$1$swf_url", $html);

    My blog is: http://technorious.com

Topic Closed

This topic has been closed to new replies.

About this Topic