Author |
Message |
Registered: March 13, 2007 | Reputation: | Posts: 17,334 |
| Posted: | | | | 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 |
|
Registered: March 13, 2007 | Posts: 793 |
| Posted: | | | | 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 |
|
Registered: March 13, 2007 | Reputation: | Posts: 17,334 |
| Posted: | | | | Thanks... will update mine shortly! | | | Pete |
|
Registered: March 13, 2007 | Posts: 793 |
| Posted: | | | | 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) |
|
Registered: March 13, 2007 | Reputation: | Posts: 17,334 |
| Posted: | | | | Looks great! | | | Pete |
|
Registered: March 13, 2007 | Reputation: | Posts: 17,334 |
| Posted: | | | | 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 |
|
Registered: March 13, 2007 | Reputation: | Posts: 1,911 |
| Posted: | | | | So, the html file is the #upc#.html, correect? Is anyone going to share these? | | | Signature banned: Reason out of date... |
|
Registered: March 13, 2007 | Posts: 793 |
| Posted: | | | | 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 |
|
Registered: March 13, 2007 | Reputation: | Posts: 17,334 |
| Posted: | | | | 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 |
|
Registered: March 13, 2007 | Reputation: | Posts: 17,334 |
| Posted: | | | | 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 |
|
Registered: March 13, 2007 | Reputation: | Posts: 1,911 |
| Posted: | | | | | | | Signature banned: Reason out of date... | | | Last edited: by NewEnglander |
|
Registered: March 13, 2007 | Reputation: | Posts: 17,334 |
| |
Registered: March 13, 2007 | Posts: 793 |
| |
Registered: March 14, 2007 | Reputation: | Posts: 1,029 |
| Posted: | | | | 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 |
|
Registered: March 13, 2007 | Reputation: | Posts: 17,334 |
| Posted: | | | | 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 |
|
Registered: March 13, 2007 | Reputation: | Posts: 1,911 |
| Posted: | | | | 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 |
|