Posted by gianfrasoft on December 4, 2008 at 5:28pm
Jump to:
| Project: | Open Flash Chart API |
| Version: | 5.x-2.8 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | jvandervort |
| Status: | closed (fixed) |
Issue Summary
Open Flash Chart API didn't function in my project until I modified the row 969 in this way:
this is the original:
$tmp[] = 'var so = new SWFObject("/'. $this->swf_path .'/open-flash-chart.swf", "ofc", "'. $this->width .'", "'. $this->height .'", "9", "#FFFFFF");';this is mine fixed:
$tmp[] = 'var so = new SWFObject("'.base_path().'/'. $this->swf_path .'/open-flash-chart.swf", "ofc", "'. $this->width .'", "'. $this->height .'", "9", "#FFFFFF");';The basepath of Drupal in my server is /var/www/html/drupal and not /var/www/html/. Without this fix, the first parameter for SWFObject method doesn't link correctly SWF file.
Gianfrasoft.
Comments
#1
Give the nightly dev snapshot a try. That fix was added, but never released back on Nov17.
#2
Sorry, but something don't go...
I tried this version:
open_flash_chart_api 5.x-3.x-dev
redndahead - November 26, 2007 - 21:45
Nightly development snapshot from CVS branch: DRUPAL-5--3
but now my Drupal gives back to me these messages:
* warning: Missing argument 2 for open_flash_chart_api_help() in /var/www/html/drupal/modules/open_flash_chart_api/open_flash_chart_api.module on line 1108.
* warning: Missing argument 2 for open_flash_chart_api_help() in /var/www/html/drupal/modules/open_flash_chart_api/open_flash_chart_api.module on line 1108.
and also my bar chart doesn't show all the bars because the image is not correctly resized (horizontally) in the chart area.
The previous version didn't show correctly the horizontal labels (putting all of them on the bottom left side of the image), now the that problem seems to be fixed.
Thanks a lot, redndahead.
Gianfrasoft.
#3
This is the version you want: 5.x-2.x-dev
It is on the top level module page under "Development snapshots" in pink.
That 3.x branch doesn't have anything useful in it yet.
#4
Don't thank me thank jvandervort. he's been pimping out the latest releases. Wahoo!!
#5
Now everything seems to go.
Thanks a lot, jvandervort!
Bye,
Gianfrasoft.
#6
Automatically closed -- issue fixed for two weeks with no activity.