dickleeza / googlechartseasyphpclass

Automatically exported from code.google.com/p/googlechartseasyphpclass
0 stars 0 forks source link

Fix for BBCodes #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Also it does not work on forums with the [IMG] tag…
It would be usefull for the PHP class to load the url as binary and 
outputs it as .png, so that it can be recognized everywhere.

Original issue reported on code.google.com by josemaug...@gmail.com on 7 Jan 2008 at 5:07

GoogleCodeExporter commented 8 years ago
I appended '&chxr.png' to the end of the chart url by default now so it can be 
picked
up as a PNG image. That should fix the BBCode problem. The changes to the 
source for
this are these two lines:

function draw($noReturn=true,$append='&chxr.png') {

if ($noReturn) echo '<img class="googleChart" src="'.$return.$append.'" />'; 
else
return $return.$append;

Thanks for pointing out the error, I hope this fixes that prob.

Original comment by whatfhefck@gmail.com on 16 Jan 2008 at 8:31