November 29, 2023, 11:49:39 PM
Welcome, Guest. Please login or register
News: Stay up to date with everything that's happening at http://plus.digitalsignage.com

MediaSignage support forum



Author Topic: White Lable code in Wordpress Page  (Read 5018 times)

rexn8r

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
White Lable code in Wordpress Page
« on: July 10, 2012, 06:43:02 AM »
Need help to setup white lable code in wordpress page.

To get it work, I had to move following code into header.php

+++++++++++++++++++++++++++++++++++++ header.php starts +++++++++++++++++++++++++++++++++++
<script src=" newbielink:http://galaxy.signage.me/WebService/install/DownloadUtils.js [nonactive]" language="javascript"></script>

<script src=" newbielink:http://galaxy.signage.me/WebService/install/AC_RunActiveContent.js [nonactive]" language="javascript"></script>

=+=+=++==++==++++====== this is the code to load up variables for studio ===+++===+++===+++===+++===
<script language="JavaScript" type="text/javascript">
         var badgeDirectory = " newbielink:http://galaxy.signage.me/WebService/install/ [nonactive]"

         var airApplicationImage = ' newbielink:http://galaxy.signage.me/WebService/install/AIRSudioInstall.png'; [nonactive]

         var airApplicationArguments = 'f7bee07a7e79c8f1d7951b4d24de4713c22f140e5bb6617b';

         var airApplicationURL = " newbielink:http://galaxy.signage.me/Code/cloudStudio.air [nonactive]";

          var airApplicationName = "Air Studio";         
      </script>
=+=+=++==++==++++====== =+=+=++==++==++++====== =+=+=++==++==++++====== ===+++===+++===+++===+++===

=+=+=++==++==++++====== this is the code to load up variables for player ===+++===+++===+++===+++===
<script language="JavaScript" type="text/javascript">

         var airApplicationImage = ' newbielink:http://galaxy.signage.me/WebService/install/AIRPlayerInstall.png'; [nonactive]

         var airApplicationArguments = 'f7bee07a7e79c8f1d7951b4d24de4713c22f140e5bb6617b';

         var airApplicationURL = " newbielink:http://galaxy.signage.me/Code/cloudPlayer.air [nonactive]";

          var airApplicationName = "Air Player";         

      </script>
=+=+=++==++==++++====== =+=+=++==++==++++====== =+=+=++==++==++++====== ===+++===+++===+++===+++===
+++++++++++++++++++++++++++++++++++++++++++ header.php ends ++++++++++++++++++++++++++++++++++++++++++++++

Now in the actual download page, i am calling following script for both (studio as well as player) from white lable code;

++++++++++++++++++++++++++++++++++ download.php starts +++++++++++++++++++++++++++++++++++++++++
=+=+=++==++==++++====== =+=+=++==++==++++====== =+=+=++==++==++++====== ===+++===+++===+++===+++===
<script src=" newbielink:http://galaxy.signage.me/WebService/install/InstallBadge.js [nonactive]" language="javascript"></script>   
=+=+=++==++==++++====== =+=+=++==++==++++====== =+=+=++==++==++++====== ===+++===+++===+++===+++===

++++++++++++++++++++++++++++++++++ download.php ends +++++++++++++++++++++++++++++++++++++++++

the problem with the above code is that it loads "Air Studio" as the download button for both studio as well player links.

If i move the scripts to load the variables into download page and place it before the installbadge.js call (as specified in the white lable code), then the page throws javascript error ("airApplicationName" is undefined).

If any body can help me resolve this problem, that'd be highly appreciated.

Thanks

 

Carbonate design by Bloc
variant: carbon
SMF 2.0.12 | SMF © 2016, Simple Machines