Page 1 of 1

Lightup player and Google sites

Posted: Mon Jul 23, 2012 6:18 pm
by BAZMEDIA
Firstly I'd like to say, (as a long term user of Sketchup, and a long term proponent of Lightup), how much I love Sketchup even more, now Lightup is available.

My wish would be that the Lightup player could be used with Google sites.

The problems I have encountered are due to Google sites restrictions on linking to external javascripts, css scripts and resources in general. :(

Baz.

Re: Lightup player and Google sites

Posted: Tue Jul 24, 2012 5:45 am
by AdamB
Can you explain a bit more what you mean?

LightUp WebPlayer comes as a browser plugin (on Mac and PC) for Chrome, Safari, Firefox etc as well as an ActiveX plugin for Microsoft Internet Explorer.

You may find you need to enable ActiveX in your browser preferences, as nowadays it's turned off by default, but other than that the players are all securely Digitally Signed.

What specific problem are you seeing?

Adam

Re: Lightup player and Google sites

Posted: Tue Jul 24, 2012 7:23 am
by BAZMEDIA
Hi Adam,
Please check out this webpage,as it clear explains the procedure for including java and css in your Google site and the limitations.

http://www.steegle.com/websites/google- ... s/html-box

Baz.

Re: Lightup player and Google sites

Posted: Wed Jul 25, 2012 4:20 pm
by BAZMEDIA
By way of an update and possibly to help others, with Google sites, to implement the Lightup player:

Having created a luca file in Lightup...

[*]Upload the luca file you have created to your Google site. This may be to a filing cabinet page you have created within the site, or as an attachment to the webpage where the luca file will be viewed.

[*]Copy the code (below) to Notepad(?) and edit the CAPITALISED text ('https://sites.google.com/site/MY SITE/MY SITES PAGE/Name of my luca file.luca') to reference the web page address location and the name of the luca file you just uploaded.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="MY PROJECT GADGET" />
<Content type="html"><![CDATA[
<html>
<head>
   <!--  YOU NEED THE CSS AND JAVASCRIPT -->
   <link href="http://light-up.co.uk/resources/webplayer/webplayer.css" rel="stylesheet" type="text/css"></link>
   <script src="http://light-up.co.uk/resources/webplayer/luwebplayer.js" type="text/javascript"></script>
</head>
<body>
   <!-- YOU NEED AN OUTER CONTAINER SETTINGS SIZE/POSITION -->
   <div id='lup1' style="z-index:10000; position:relative; width:512px; height:512px; ">

      <!-- ACTUAL LIGHTUP PLAYER ADDED USING createLUPLayer2() -->
      <script language="javascript1.1" type="text/javaScript">
                             createLUPlayer2('lup1_objemb', 'https://sites.google.com/site/MY SITE/MY SITES PAGE/Name of my luca file.luca', 
                             true, {"multisample" : 4, "autostart" : 1});
               </script>
   </div>
</body>
</html>
]]></Content>
</Module>
[*]Save the notepad file with the extension .xml (To my understanding you need a separate xml player file for each luca file(?), so why not name the player file to reference the luca file, then you'll know which luca file goes with which xml player.)

[*]Upload the xml player to your site (or anywhere else you like on the net) and note the web address where it is located.

[*]Go to the page where you wish to view it, and Edit the part of the page to Insert, More Gadgets, Add Gadget by URL.

[*]Paste or type the web address of your xml player file in to the http:// box provided.

[*]A dialogue box will appear where you can configure the gadget (xml player)

[*]Save the page changes, and enjoy!


Baz.

Re: Lightup player and Google sites

Posted: Wed Jul 25, 2012 5:12 pm
by AdamB
Thats great BAZMEDIA!

One thing to keep in mind is that all the JavaScript and CSS styling are just for convenience - eg checking that the user has the LightUp WebPlayer installed and prompting to install updates and adding a simple Play,Pause,Reset control panel.

If you have the LightUp WebPlayer installed, the ONLY thing you need to add is the <object> / <embed> tags linking to your .luca content. (Thats what createLUPlayer2() is doing for you)

Adam

Re: Lightup player and Google sites

Posted: Wed Jul 25, 2012 6:28 pm
by BAZMEDIA
Thanks for the further explanation Adam.
I'm not at all literate when it comes to coding, so what I think your saying is I could create a bare bones xml file using embed and object tags with just the createLUPlayer2 bit?
Is it possible to have multiple createLUPlayer statements within the same xml, referencing different luca files?

Andrew.