hi,
does anybody know how to active amcharts licence?
I got from them someting like this:

so.addVariable("key", "SOME_CODE");

You should add this line to your HTML code, above the so.write("flashcontent") line.

This will remove the link to amcharts.com (only if you use it on sslinvest.com domain or its subdomains).

but this being triggered with SWFTools, I have no idea how or where to add the code.

Comments

rsevero’s picture

Assigned: Unassigned » rsevero
Category: support » feature
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

As I don't have a license I need you to test.

Please include the following code on line 234 of charts_graphs/apis/charts_graphs_amcharts/charts_graphs_amcharts.class.inc:

    if (isset($this->key) && !empty($this->key)) {
      $flashvars['key'] = $this->key;
    }

With the new code in place, please test setting "$canvas->key" to your license code and report back.

websites-development.com’s picture

Status: Postponed (maintainer needs more info) » Reviewed & tested by the community

yes, I figured it out myself. That's the way to do it. Thanks.

rsevero’s picture

Status: Reviewed & tested by the community » Fixed
nabeelanwer’s picture

this line didnt work for me ... please help :(

so.addVariable("key", "Some_Code");

how much the code should be??? I have amline_data.xml, amline_settings.xml, swfobjects.js and amline.html

Let me know what to do ?

nabeelanwer’s picture

As I don't have a license I need you to test.

Please include the following code on line 234 of charts_graphs/apis/charts_graphs_amcharts/charts_graphs_amcharts.class.inc:
if (isset($this->key) && !empty($this->key)) {
$flashvars['key'] = $this->key;
}
With the new code in place, please test setting "$canvas->key" to your license code and report back.
________________________________________________________________________________________________________

i dont have this file any other alternative

rsevero’s picture

Please take a look at Advanced Help pages provided by Charts and Graphs for amCharts for details on how to set your license key.

If you still have problems please open an specific issue as this one is already closed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.