ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Invalid URI while trying to embed unity3d

February 11, 2010 7:08pm

Subscribe [4]
  • #1 / Feb 11, 2010 7:08pm

    w84me

    95 posts

    I am trying to embed a unity3d file but the site gives me “Invalid URI”

    I’ve added the application/vnd.unity .unity3d mime type to my server.

    I think it’s a problem from EE.

    Here is a link

    http://www.3dmedicaleducation.co.uk/3dmed_dev/index.php/clinical_conditions/ankylosing_spondylitis/

  • #2 / Feb 11, 2010 7:29pm

    w84me

    95 posts

    I’ve hard coded the url and it works…If i use weblog’s custom field in Chrome it displays Invalid URI and in FF it breaks the html…

  • #3 / Feb 11, 2010 7:52pm

    Adam Dorsey

    1439 posts

    I’ve hard coded the url and it works

    Are you embedding this via an entry or a template?

  • #4 / Feb 12, 2010 3:38am

    w84me

    95 posts

    Via an entry. When I use this custom field {exp:weblog:entries}{cf_cc_unity3d}{/exp:weblog:entries} with the same url as the hardcoded one it doesn’t work.

  • #5 / Feb 12, 2010 9:28am

    Ingmar

    29245 posts

    I am not too sure about what exactly you’re attempting here. Where and when exactly are you getting an “Invalid URI” error?

    Also, what version and build of EE are you on?

  • #6 / Feb 12, 2010 4:33pm

    w84me

    95 posts

    Actually I’ve found what causes the problem but i don’t know how to solve.

    The script unity3d uses to embed its player uses [removed] (note that I entered the slash in document in order to be displayed in the post).

    How can I enter {} inside [removed]?

    if (DetectUnityWebPlayer()) {
                        
                        d/ocument.write('<object id="UnityObject" classid="clsid:444785F1-DE89-4295-863A-D46C3A781394" width="882" height="500"> \n');
                        d/ocument.write('   \n');
                        d/ocument.write('  <embed id="UnityEmbed" src="{cf_cc_unity3d}" width="882" height="500" type="application/vnd.unity" pluginspage="http://www.unity3d.com/unity-web-player-2.x" /> \n');
                        d/ocument.write('</object>');
                    }
  • #7 / Feb 12, 2010 4:35pm

    w84me

    95 posts

    OK…

    False alarm

    I just made a var path = {cf_cc_unity3d} and used it in the code.

  • #8 / Feb 12, 2010 5:37pm

    Sue Crocker

    26054 posts

    Glad you were able to figure out what the problem was. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases