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 3  Previous   Next
New HTML Window - Extended Features
Author Message
DVD Profiler Unlimited RegistrantStar ContributorAddicted2DVD
Registered: March 13, 2007
Reputation: Highest Rating
United States Posts: 17,334
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
OK... I am attempting a new html window for extended features... as this is something that has been requested time and time again. Unfortunately I think the only real way to do this is to have an html file for each profile like we do for the episode guides. Matter of fact I updated an old episode guide html window for this purpose.... and got...



The Code:
Quote:
<HTML>
<HEAD>
<SCRIPT TYPE="text/javascript">
<!--
<DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False">
//-->

function showEF()
{
var ef = ("C:/ef/ef-" + DP_UPC + ".html");
var notes = DP_Notes.indexOf("ef=1");
if (notes != -1) {
window.location.href= ef ;
}
else {
document.write("No Extended Features Available!");
}
}
</SCRIPT>
</HEAD>
<BODY onload="showEF()">
</BODY>


So what you have to do is store the html files in a folder called ef andname the files ef-upc Number.html

Of course this is a very simple code as I am not a code writer... barely smart enough to convert a code for my purposes. If you think you know of a better way to do this... please do! I would love to see it and hopefully make this work until Ken sees fit to do something more in the extras section.

Thoughts?
Pete
DVD Profiler Unlimited RegistrantRossRoy
Registered: March 13, 2007
Posts: 793
Posted:
PM this userDirect link to this postReply with quote
Interesting idea! And it gives much more flexibility than anything that can ever be added to the software.

I took the liberty of modifying your code a little. Basically, I've added back the Xyrano's code to strip the locality from the UPC, as well as defining a filename prefix and suffix.

If you're interested:
Quote:

<HTML>
<HEAD>
<SCRIPT TYPE="text/javascript">
<!--
<DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False">
//-->

// -------- Configuration block - Start --------
// Extended Features Storage Location
var pathToEfStorage = DP_ProgramPathDatabase + "/ef/"; // <-- SET

// filename
var fileNamePrefix = ""; // <-- SET
var excludeLocality = true; // <-- SET true/false
var fileNameSuffix = ".html"; // <-- SET .htm/.html

// -------- Configuration block - END --------


function showEF()
{
var notes = DP_Notes.indexOf("\<ef=1\>");
if (notes != -1) {
var upc = DP_UPC;
if (excludeLocality == true && upc.indexOf(".") != -1)  upc = upc.substring(0, upc.lastIndexOf("."));
pageToLoad = pathToEfStorage + fileNamePrefix+ upc + fileNameSuffix;

window.location.href = pageToLoad;
} else {
document.write("No Extended Features Available!");
}
}

</SCRIPT>
</HEAD>
<BODY onload="showEF()">
</BODY>
 Last edited: by RossRoy
DVD Profiler Unlimited RegistrantStar ContributorAddicted2DVD
Registered: March 13, 2007
Reputation: Highest Rating
United States Posts: 17,334
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
Thanks... will update mine shortly! 
Pete
DVD Profiler Unlimited RegistrantRossRoy
Registered: March 13, 2007
Posts: 793
Posted:
PM this userDirect link to this postReply with quote
Just finished (sort-of, I just copied what's written on the backcover) my first EF file! (and it also happens to show my new layout for 1280x1024)

DVD Profiler Unlimited RegistrantStar ContributorAddicted2DVD
Registered: March 13, 2007
Reputation: Highest Rating
United States Posts: 17,334
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
Looks great!
Pete
DVD Profiler Unlimited RegistrantStar ContributorAddicted2DVD
Registered: March 13, 2007
Reputation: Highest Rating
United States Posts: 17,334
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
I finally upgraded to what you did... and I kept getting a 404 error in the page... I got playing with it... finally got it to work by removing... "DP_ProgramPathDatabase +" form the storage location section. Weird... but working now so cool
Pete
DVD Profiler Desktop and Mobile RegistrantStar ContributorNewEnglander
Registered: 11/13/2003
Registered: March 13, 2007
Reputation: High Rating
United States Posts: 1,911
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
So, the html file is the #upc#.html, correect? Is anyone going to share these?
Signature banned: Reason out of date...
DVD Profiler Unlimited RegistrantRossRoy
Registered: March 13, 2007
Posts: 793
Posted:
PM this userDirect link to this postReply with quote
Quoting pplchamp:
Quote:
So, the html file is the #upc#.html, correect? Is anyone going to share these?


They could probably eventually be updated to the EPG site, they are an extension of it after all.

edit: hmmm.. "probably eventually"... that doesn't sound right 
 Last edited: by RossRoy
DVD Profiler Unlimited RegistrantStar ContributorAddicted2DVD
Registered: March 13, 2007
Reputation: Highest Rating
United States Posts: 17,334
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
Quoting pplchamp:
Quote:
So, the html file is the #upc#.html, correect? Is anyone going to share these?


Actually got it set as ef-upc number.html

Not yet... but I have done a handful so far.... so far I done...
- Bringing Out the Dead (097363356448)
- Cheerleader Camp (013131273694)
- Darkwolf (024543070733)
- Edward Scissorhands (024543005384)
- Return of the Living Dead: Rave to the Grave (031398204558)
- Dentist 2: Brace Yourself (031398701033)
- Disturbia (097363483441)

At this point all I did is simple html lists... no images no nothing... just background color and list.  but if you want any of them glad to share... each are only 1k each.
Pete
 Last edited: by Addicted2DVD
DVD Profiler Unlimited RegistrantStar ContributorAddicted2DVD
Registered: March 13, 2007
Reputation: Highest Rating
United States Posts: 17,334
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
Quoting RossRoy:
Quote:
Quoting pplchamp:
Quote:
So, the html file is the #upc#.html, correect? Is anyone going to share these?


They could probably eventually be updated to the EPG site, they are an extension of it after all.

edit: hmmm.. "probably eventually"... that doesn't sound right 


Totally up to ajm... he is hosting the epg's for me. so I don't want to talk for him. 
Pete
DVD Profiler Desktop and Mobile RegistrantStar ContributorNewEnglander
Registered: 11/13/2003
Registered: March 13, 2007
Reputation: High Rating
United States Posts: 1,911
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
If you would like to send me Edward Scissorhands and if RossRoy would send me that ultra cool Death Proof

plchamp1@comcast.net" target="_new">pplchamp1@comcast.net
Signature banned: Reason out of date...
 Last edited: by NewEnglander
DVD Profiler Unlimited RegistrantStar ContributorAddicted2DVD
Registered: March 13, 2007
Reputation: Highest Rating
United States Posts: 17,334
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
Quoting pplchamp:
Quote:
If you would like to send me Edward Scissorhands and if RossRoy would send me that ultra cool Death Proof

plchamp1@comcast.net" target="_new">pplchamp1@comcast.net


Sent... you may want to make a change or 2... it is really a very basic one.
Pete
DVD Profiler Unlimited RegistrantRossRoy
Registered: March 13, 2007
Posts: 793
Posted:
PM this userDirect link to this postReply with quote
Quoting pplchamp:
Quote:
if RossRoy would send me that ultra cool Death Proof

plchamp1@comcast.net" target="_new">pplchamp1@comcast.net


Sent. But I have modified it a little since
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 RossRoy:
Quote:
Interesting idea! And it gives much more flexibility than anything that can ever be added to the software.

I don't want to spoil all the fun, but what exactly is the flexibility? All that information can usually be obtained by looking at the back cover (scan). And since it is in an external file, you can't search for data from within DVD Profiler. Or do I miss something?
Matthias
DVD Profiler Unlimited RegistrantStar ContributorAddicted2DVD
Registered: March 13, 2007
Reputation: Highest Rating
United States Posts: 17,334
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
For me it is just to have until Ken can do something for us on this. And there is info here that is not on the back of the box... like the movie titles for all the trailers on  the disc.  As well as name of the individuals that has bios, filmographies, interviews... and I also been putting the running time for each featurette. There is many possibilities in my opinion.

If you don't see it as being worth it to you... that is cool... but there is those of us that would like to have this info... and that is cool too.
Pete
DVD Profiler Desktop and Mobile RegistrantStar ContributorNewEnglander
Registered: 11/13/2003
Registered: March 13, 2007
Reputation: High Rating
United States Posts: 1,911
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
Also, you can add the run time of the trailer(s), featurettes, documentaries, etc.

The options are limitless on this.

Edit: Corrected spelling, my brain is faster than my fingers.
Signature banned: Reason out of date...
 Last edited: by NewEnglander
    Invelos Forums->DVD Profiler: Layouts and Reports Page: 1 2 3  Previous   Next