CodeCanyon

Call External Script

271 posts
  • Bought between 1 and 9 items
  • Contributed a Tutorial to a Tuts+ Site
  • Europe
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 5 000 and 10 000 dollars
07happydays says

Why I cannot call in my preview files scripts from my server if envato doesn’t still support php for our files?

Thank you

CreativeAddiction
CreativeAddiction Recent Posts
Threads Started
160 posts
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Europe
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
CreativeAddiction says

you need a crossdomain.xml file.

Save the following as ‘crossdomain.xml’ and upload it to the server hosting the PHP


 <?xml version="1.0"?>

        <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">

        <cross-domain-policy>

        <allow-access-from domain="activeden.net/" />
        <allow-access-from domain="s3.envato.com/" />

        </cross-domain-policy> 

556 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 10 and 49 users
  • Sold between 1 000 and 5 000 dollars
  • United States
ThemeScience says
you need a crossdomain.xml file.

Save the following as ‘crossdomain.xml’ and upload it to the server hosting the PHP


 &lt;?xml version="1.0"?&gt;

        <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">

        <cross-domain-policy>

        <allow-access-from domain="activeden.net/" />
        <allow-access-from domain="s3.envato.com/" />

        </cross-domain-policy> 

Cross domain policy files should look like this.

<cross-domain-policy xsi:nonamespaceschemalocation="http://www.adobe.com/xml/schemas/PolicyFile.xsd">
<allow-access-from domain="activeden.net/" />
<allow-access-from domain="s3.envato.com/" />
<site-control permitted-cross-domain-policies="master-only" />
<allow-http-request-headers-from domain="*.activeden.net" secure="false" headers="*" />
</cross-domain-policy>

Mine is the updated version :)

271 posts
  • Bought between 1 and 9 items
  • Contributed a Tutorial to a Tuts+ Site
  • Europe
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 5 000 and 10 000 dollars
07happydays says

Is not about this guys, I know about crossdomain. They just rejected one of my files and told me that the rules says we cannot call server-side scripts from other domains than envato.

Thanks

3370 posts
  • Has been a member for 4-5 years
  • Contributed a Tutorial to a Tuts+ Site
  • Netherlands
  • Community Moderator
  • Microlancer Beta Tester
  • Sold between 10 000 and 50 000 dollars
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Exclusive Author
+4 more
Joost moderator says

I’ve had to deal with this in the past. The solution I was suggested was to host my entire preview on my own server and then submit a preview.swf that was basically a big button with a link to that external preview page.

Not ideal, but it worked. ;)

2309 posts
  • Beta Tester
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 10 and 49 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 100 and 1 000 dollars
  • United States
theflyingtinman says
I’ve had to deal with this in the past. The solution I was suggested was to host my entire preview on my own server and then submit a preview.swf that was basically a big button with a link to that external preview page. Not ideal, but it worked. ;)

Correct. You are not allowed to call out to scripts hosted on your own server from a preview hosted on Activeden. And you are only allowed to host the entire preview if it is substantially dependent on server scripts to demonstrate functionality of the application. (e.g. a CMS , XML Editor, etc) if the only use of PHP is for a contact form, or some other relatively minor component of the overall application whose functionality can be “faked”, then you must host the preview on Activeden and fake the PHP functionality.

by
by
by
by
by