June 19, 2019, 06:21:44 AM
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: Open Source Docs for Newbies  (Read 11195 times)

ANOOP

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 741
  • Karma: +23/-0
    • View Profile
Re: Open Source Docs for Newbies
« Reply #15 on: March 06, 2014, 08:47:12 PM »
The same problem you are facing the login screen doesnot appear and when i try inspect element in the browser it shows js error. Did all manipulations just doesnt work though

JMH

  • Full Member
  • ***
  • Posts: 203
  • Karma: +4/-0
    • View Profile
Re: Open Source Docs for Newbies
« Reply #16 on: March 07, 2014, 05:07:15 AM »
I had the same problem. Fixed it like this:
Add a folder in the root (where folders like _assets, _collections, etc. are placed) named: _studiolite-dev.
Add the following folders and files in this folder (i copied):
_assets
_collections
_common
_controllers
_libs
_models
_utils
_views
Element.js
Init.jes
StudioLite.js

Tadaaa! Login screen appears.

Now my problem is, that I am not able to modify the css and other files in a way so I can easily update to newer version without having to start editing all over again (like translating the language and other stuff). Who can point me in the right direction? :)

rknight

  • Jr. Member
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Re: Open Source Docs for Newbies
« Reply #17 on: March 07, 2014, 05:54:32 AM »
That didn't work for me, JMH.

So, Admin whats the issue..... All I'm doing to downloading the files from GitHub and uploading them to my server. I'm not modifying the files in any way yet. I just wanted to see if it works first before I did any customizing.

Is there anything else that needs to be done with the Files from Github before I upload them to my server?  Like change paths in the studiolite.html file for javascript and css.

I'm sure there's gotta be a simple reason why the BUILD number and login fields are not showing.

Please help ADMIN

Robert

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 4943
  • Karma: +35/-8
    • View Profile
Re: Open Source Docs for Newbies
« Reply #18 on: March 07, 2014, 08:22:51 AM »
JMH, provide a link so we can checkout.

Anoop,
we will release localization in the next few weeks so hold off on implementing it.
As for other changes, you can override CSS but you will need to maintain it as things are still changing rapidly and you will be bound to our release cycle changes.

rknight

  • Jr. Member
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Re: Open Source Docs for Newbies
« Reply #19 on: March 07, 2014, 09:40:13 AM »
Admin is just ignoring me now

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 4943
  • Karma: +35/-8
    • View Profile
Re: Open Source Docs for Newbies
« Reply #20 on: March 07, 2014, 11:26:30 AM »
what's your link rknight?

rknight

  • Jr. Member
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 4943
  • Karma: +35/-8
    • View Profile
Re: Open Source Docs for Newbies
« Reply #22 on: March 07, 2014, 05:21:25 PM »
you are getting an error of:

Failed to load resource: the server responded with a status of 404 (Not Found) http://www.quikmedia.tv/_studiolite-dev/StudioLite.js
Uncaught Error: Script error for: StudioLite
http://requirejs.org/docs/errors.html#scripterror require.js:166
makeError require.js:166
context.onScriptError

make sure to host it under studiolite-dev

JMH

  • Full Member
  • ***
  • Posts: 203
  • Karma: +4/-0
    • View Profile
Re: Open Source Docs for Newbies
« Reply #23 on: March 08, 2014, 05:29:28 AM »
As admin states above: You have to add StudioLite.js to the _studiolite-dev folder. Press F12 in Chrome and you will see the error.

My link is: :www.dslite.dsigne.nl, you can check it out if you want.
Currently I am not running the newest version, because as I mentioned in my earlier post, I am not able to modify the looks and lay out in such a way that it will keep that way after an update.

rknight

  • Jr. Member
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Re: Open Source Docs for Newbies
« Reply #24 on: March 11, 2014, 12:20:02 PM »
I change the folder name that I had the studio lite files in from "sslite" to "_studiolite-dev"

So, my old url was... http://www.quikmedia.tv/sslite/studiolite.html

Now it's... http://www.quikmedia.tv/_studiolite-dev/studiolite.html

So finally I can see the login fields. But the build number is still not showing. Any way to get that to show?  All I see is the variable for it ":BUILD:"

Also...Do you always have to put your Studio Lite files in a directory named "_studiolite-dev"???

Robert

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 4943
  • Karma: +35/-8
    • View Profile
Re: Open Source Docs for Newbies
« Reply #25 on: March 11, 2014, 04:39:15 PM »
First, this is open source... so there is no "Have to" on anything... you can customize all you want...
And, build numbers are only for release builds, not dev... thus you do not get any data as it is only for release builds hosted on our site, you can setup your own release cycle and your own release builds.

Second, we release a new version daily... so I recommend automating the process of grabbing from Git as well as some scripts to override your specified changes (a merge script)

Third, you can name the directory anything you want (no need for studio-dev) but you will need to modify the require.js init scripts and possibly a few other places (search and replace can come real handy).
« Last Edit: March 11, 2014, 04:41:14 PM by admin »

JMH

  • Full Member
  • ***
  • Posts: 203
  • Karma: +4/-0
    • View Profile
Re: Open Source Docs for Newbies
« Reply #26 on: March 13, 2014, 03:03:32 AM »
Yes, ofcourse we can edit the folder names. But what happens if there is a new version? Than we have to edit these files all over again right?

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 4943
  • Karma: +35/-8
    • View Profile
Re: Open Source Docs for Newbies
« Reply #27 on: March 13, 2014, 11:20:45 AM »
Keep in mind the SignageStudio lite as well as its related SDK Jalapeno are undergoing daily development and so you will lose any changes you make to your code if you overwrite it with our release builds.

To overcome this you can follow these guidelines:

1.   Always be sure to override files and not modify the original source file. This is true for both CSS and JavaScript code. Simply load your version of the CSS after ours to apply your latest changes. HTML files can be diffed (see below).

2.   Our code base is modulated and uses 100% object oriented design pattern. This allows you to sub class (aka inherit) from our classes and make your applied changes (use _.extend to mixin).

3.   You can also use pre-processor scripts which replace code segments automatically using directives.

4.   And finally, even while following steps 1-3 you may find that your code is broken due to design changes in the original repository. That’s when GitHub comes to the rescue. When your fork the source repository, you can always merge the tree onto your forked project. Use source control diff tool to merge the changes into your code and resolve any conflicts.

With the above steps you can ensure that your source code is fully customizable while still keeping it synchronized with our ongoing development efforts.

And of you built something wonderful, just send us a pull request and we can evaluate it. If we like what you did we we will merge it into our code base, so you will always receive it when you fetch our changes.

If you are not a developer you can hire professional, inexpensive help from sites like oDesk and Freelancer. Just post you are looking for a JavaScript, jQuery, Backbone experienced developer.

« Last Edit: March 13, 2014, 11:28:13 AM by admin »

 

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