Welcome to the Invelos forums. Please read the forum rules before posting.

Read access to our public forums is open to everyone. To post messages, a free registration is required.

If you have an Invelos account, sign in to post.

    Invelos Forums->DVD Profiler: Layouts and Reports Page: 1 2  Previous   Next
Creating layouts is not easy, when...
Author Message
DVD Profiler Desktop and Mobile RegistrantStar ContributorRander
I hate mondays...
Registered: March 13, 2007
Denmark Posts: 668
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Yes, Ken, I know this is the boring part of programming - the documentation! 

I started to try and and what I could get out of the theme-editor, and I ran in to two problems:

  • There's a TON of new tags (it seems) but they are not described in the help... I'm especially interested in the HEADER_VARS, that each new section gets in a JavaScript by default - I assume it can be used to link a stylesheet to the sections, so I don't need to define styles in each section?

  • If I create a new section, and just leave it at the default (not changing anything), the preview gives me a script error saying something like "Stringconstant unfnished in line 89, character 63." Bug?


  • Finally: Is there a chance to see the source for the standard theme? Just the General info section, so we could pick up a few pointers about the possibilities (are the tabs HTML-generated or several sections "overlayed?")
    The future is here. It's just not widely distributed yet. (William Gibson)
    DVD Profiler Unlimited RegistrantMark Harrison
    I like IMDB
    Registered: March 13, 2007
    Reputation: Great Rating
    United States Posts: 3,321
    Posted:
    PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
    Quoting Rander:
    Quote:
  • There's a TON of new tags (it seems) but they are not described in the help... I'm especially interested in the HEADER_VARS, that each new section gets in a JavaScript by default - I assume it can be used to link a stylesheet to the sections, so I don't need to define styles in each section?


  • From the Release Notes

    Quote:
    For advanced users, optionally include a tag which auto-generates JavaScript variables for all the DVD data elements


    Start a brand new HTML Window, switch to preview and view the source of the blank window.  You'll see the effects of HEADER_VARS quite quickly.
    Get the CSVExport and Database Query plug-ins here.
    Create fake parent profiles to organize your collection.
    DVD Profiler Desktop and Mobile RegistrantStar ContributorRander
    I hate mondays...
    Registered: March 13, 2007
    Denmark Posts: 668
    Posted:
    PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
    Quoting Mark Harrison:
    Quote:
    Quoting Rander:
    Quote:
  • There's a TON of new tags (it seems) but they are not described in the help... I'm especially interested in the HEADER_VARS, that each new section gets in a JavaScript by default - I assume it can be used to link a stylesheet to the sections, so I don't need to define styles in each section?

  • From the Release Notes

    Who reads those in all the excitement about a new version? 
    Quote:
    Quote:
    For advanced users, optionally include a tag which auto-generates JavaScript variables for all the DVD data elements

    Start a brand new HTML Window, switch to preview and view the source of the blank window.  You'll see the effects of HEADER_VARS quite quickly.

    Okay, it's hard to miss - and I can see the possibilities in that! You wouldn't happen to have a "JavaScript for Dummies" you could fling my way, would you? 
    The future is here. It's just not widely distributed yet. (William Gibson)
    DVD Profiler Unlimited RegistrantMark Harrison
    I like IMDB
    Registered: March 13, 2007
    Reputation: Great Rating
    United States Posts: 3,321
    Posted:
    PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
    Quoting Rander:
    Quote:
    Who reads those in all the excitement about a new version? 


    Me.

    Quote:
    Okay, it's hard to miss - and I can see the possibilities in that! You wouldn't happen to have a "JavaScript for Dummies" you could fling my way, would you? 


    I don't mess with books anymore.  I've found Google to be far more useful.  Of course it helps if you know what to Google for.

    If you have JavaScript questions, fell free to ask away.  I've been a web programmer for over 10 years and what I don't know, I sure others can answer.
    Get the CSVExport and Database Query plug-ins here.
    Create fake parent profiles to organize your collection.
    DVD Profiler Desktop and Mobile RegistrantStar ContributorRander
    I hate mondays...
    Registered: March 13, 2007
    Denmark Posts: 668
    Posted:
    PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
    Well, I have done webpages for about ten years too, but I have never done any JavaScripting - I just had no use for it, as there was nothing I could do in JavaScript that I couldn't do in PHP... 

    But, let's start with the basics: If I want to print the var DP_Title, how would I do that? I tried "echo DP_Title", which did absolutely nothing (not even an errormsg)... 
    The future is here. It's just not widely distributed yet. (William Gibson)
    Invelos Software, Inc. RepresentativeKen Cole
    Invelos Software
    Registered: March 10, 2007
    United States Posts: 4,282
    Posted:
    PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
    I'm excited to see what you guys come up with.  My JavaScript abilities are limited too, I'm afraid.  Too much reliance on ASP.Net!
    Invelos Software, Inc. Representative
    DVD Profiler Unlimited RegistrantMark Harrison
    I like IMDB
    Registered: March 13, 2007
    Reputation: Great Rating
    United States Posts: 3,321
    Posted:
    PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
    I'm not a Javascript expert either (I've mainly done ASP and .NET), but you can do this to output that value:

    <SCRIPT TYPE="text/javascript">
    <!--
    document.write(DP_Title)
    //-->
    </SCRIPT>
    Get the CSVExport and Database Query plug-ins here.
    Create fake parent profiles to organize your collection.
     Last edited: by Mark Harrison
    DVD Profiler Unlimited Registrantgoodguy
    Sita Sings the Blues
    Registered: March 14, 2007
    Reputation: Superior Rating
    Germany Posts: 1,029
    Posted:
    PM this userDirect link to this postReply with quote
    Quoting Mark Harrison:
    Quote:
    Start a brand new HTML Window, switch to preview and view the source of the blank window.  You'll see the effects of HEADER_VARS quite quickly.


    Sorry to spoil the fun, but this is currently pretty useless:

    var DP_ImageFileFront is defined twice, once with the front, then with the back. DP_ImageFileBack is missing.

    Backslashes in file paths are not duplicated (must be "C:\\dir1\\dir2" instead of "C:\dir\dir2").

    There are other issues with malformed strings that result in exceptions, probably with unsafe characters in the Overview etc fields.

    Anyway, the idea is great, it just needs to be implemented properly.
    Matthias
    DVD Profiler Unlimited RegistrantMark Harrison
    I like IMDB
    Registered: March 13, 2007
    Reputation: Great Rating
    United States Posts: 3,321
    Posted:
    PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
    Sure, there are problems.  But it doesn't hurt for now to play even if you run into a few problems.  What I was doing earlier in the Preview window was to ignore the errors, view the source, manually remove the overview, save, refresh the preview window.  It was good enough to get a few things tested.  Of course you have to start all over if you switch back to the design window.  So it's not quite ready for production.  But you can certainly play, experiment and learn until it's fixed.
    Get the CSVExport and Database Query plug-ins here.
    Create fake parent profiles to organize your collection.
    DVD Profiler Unlimited Registrantnuoyaxin
    prev. known as ya_shin
    Registered: March 13, 2007
    Reputation: High Rating
    Taiwan, Province of China Posts: 3,432
    Posted:
    PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
    Maybe this doesn't quite fit the discussion, but it does fit the topic...

    So far I only played with the basics of layouts, meaning arranging the little windows... So I'd like to add:

    "Creating layouts is not easy, when..." you have three windows below each other (2D) and trying to resize the lowest one changes the sizes of the upper two as well
    Achim [諾亞信; Ya-Shin//Nuo], a German in Taiwan.
    Registered: May 29, 2000 (at InterVocative)
    DVD Profiler Unlimited Registrantbrett
    Registered: March 15, 2007
    Posts: 1
    Posted:
    PM this userDirect link to this postReply with quote
    Does anyone know if there is a way to reference the images embedded within the DVDProfiler layouts, things like the DD images and Region code images?  I had previously created similar images for my old skin, but If I can reference these directly I'd prefer to do that within my HTML code.

    Thanks

    -Brett
    DVD Profiler Unlimited RegistrantStar Contributorpdf256
    PC, iOS and Android
    Registered: March 13, 2007
    United States Posts: 810
    Posted:
    PM this userView this user's DVD collectionDirect link to this postReply with quote
    Quoting brett:
    Quote:
    Does anyone know if there is a way to reference the images embedded within the DVDProfiler layouts, things like the DD images and Region code images?  I had previously created similar images for my old skin, but If I can reference these directly I'd prefer to do that within my HTML code.

    Thanks

    -Brett

    I can get the image tags to work in the HTML, but not in the JavaScript to save my life.

    pdf
    Paul Francis
    San Juan Capistrano, CA, USA
    DVD Profiler Unlimited Registrantdvdoug
    As seen on Slashdot...
    Registered: March 13, 2007
    Posts: 55
    Posted:
    PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
    Quoting Mark Harrison:
    Quote:
    I'm not a Javascript expert either (I've mainly done ASP and .NET), but you can do this to output that value:

    <SCRIPT TYPE="text/javascript">
    <!--
    document.write(DP_Title)
    //-->
    </SCRIPT>


    Unless your target audience includes people using Netscape 1 or IE2 I wouldn't bother with the <!-- and //-->. For HTML windows, the target audience is exclusively IE6/IE7.
    Doug

    DougWeb.org - my personal site.
    TWSNBN.com
    Unofficial DVD Profiler Resource Centre - serving hundreds of users every month!
    DVD Profiler Wiki
     Last edited: by dvdoug
    DVD Profiler Desktop and Mobile RegistrantMarcCastermans
    Registered: March 15, 2007
    Posts: 116
    Posted:
    PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
    Quoting dvdoug:
    Quote:
    Quoting Mark Harrison:
    Quote:
    I'm not a Javascript expert either (I've mainly done ASP and .NET), but you can do this to output that value:

    <SCRIPT TYPE="text/javascript">
    <!--
    document.write(DP_Title)
    //-->
    </SCRIPT>


    Unless your target audience includes people using Netscape 1 or IE2 I wouldn't bother with the <!-- and //-->. For HTML windows, the target audience is exclusively IE6/IE7.


    I wouldn't rule out us Firefox users Doug
    Greetz,
    Marc Castermans

    DVD Profiler Unlimited Registrantdvdoug
    As seen on Slashdot...
    Registered: March 13, 2007
    Posts: 55
    Posted:
    PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
    Unfortunately, the HTML windows use 'the system HTML renderer', which happens to be IE. What browser you use for 'normal browsing' doesn't matter.
    Doug

    DougWeb.org - my personal site.
    TWSNBN.com
    Unofficial DVD Profiler Resource Centre - serving hundreds of users every month!
    DVD Profiler Wiki
    DVD Profiler Desktop and Mobile RegistrantMarcCastermans
    Registered: March 15, 2007
    Posts: 116
    Posted:
    PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
    Quoting dvdoug:
    Quote:
    Unfortunately, the HTML windows use 'the system HTML renderer', which happens to be IE. What browser you use for 'normal browsing' doesn't matter.


    Ok, I'm crawling back in my 'don't disturb the specialists corner' 
    Greetz,
    Marc Castermans

        Invelos Forums->DVD Profiler: Layouts and Reports Page: 1 2  Previous   Next