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  Previous   Next
InterVocative Contribution Notes
Author Message
DVD Profiler Unlimited Registrantnuoyaxin
prev. known as ya_shin
Registered: March 13, 2007
Reputation: High Rating
Taiwan, Province of China Posts: 3,436
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
I no longer have DVD Profiler 2.x installed but still, occasionally I want to look up the old Contribution Notes for a profile... So, yesterday I decided to write a small JavaScript snippet which takes the UPC of the profile and then converts it into the old InterVocative identifier and then makes a link out of that. (Obviously it won't work for profiles added by Disc-ID, but all others tested fine so far). It's probably not very pretty from a programming standpoint, but it does the job.

Since I thought some others may have the same "problem" sometimes, I thought I present the script here. Just add the code to an existing HTML window you have or maybe somewhere in the layout you use for previewing updates.

Quote:
      <script>
        longUPC = DP_UPC;
        dot = DP_UPC.indexOf(".");
        if (DP_UPC.indexOf("I") >= 0) {
          document.write("Unavailable");
        } else {
          if (dot < 0) {
            shortUPC = DP_UPC.slice(1,-1);
            locality = "";
          }
          else {
            locality = DP_UPC.slice(dot);
            shortUPC = DP_UPC.slice(0,dot)
            if (shortUPC.length==12) {
              shortUPC = shortUPC.slice(1,-1);
            } else { if (shortUPC.length==13) {
              shortUPC = shortUPC.slice(1);
              }
            }
          }
          document.write("<a href='http://www.intervocative.com/Forums.aspx?task=contributionnotes&type=DVD&ProfileUPC=" + shortUPC + locality + "' target='_blank'>" + shortUPC + locality +  "</a>");
        }
      </script>

It requires the HEADER_VARS to be activate for the window.


Maybe others have just small little code snippets on their computer but didn't think it's worth opening an entire thread for it? Well, if more little code snippets are added to this thread, I'll rename it to "JavaScript code snippet" or something appropriate and we can collect them all here.
Achim [諾亞信; Ya-Shin//Nuo], a German in Taiwan.
Registered: May 29, 2000 (at InterVocative)
DVD Profiler Unlimited RegistrantStar ContributorTomGaines
Registered Sept. 24, 2001
Registered: March 13, 2007
Reputation: High Rating
Germany Posts: 2,005
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
When using my CCViewer it's also possible. Simply hold down Ctrl while clicking on the UPC will take you to the Profiler 2 instead of the Profiler 3 contribution notes.


DVD Profiler Unlimited Registrantantolod
Since Dec 02, 2003
Registered: March 13, 2007
Reputation: High Rating
United States Posts: 940
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Thanks for this Achim. I also like to be able to look up old notes occasionally. Now I'll will only have to fire up V2.5 when it's a DiscID profile. Green arrow for that one.
Kevin
DVD Profiler Desktop and Mobile RegistrantStar Contributorm.cellophane
tonight's the night...
Registered: March 13, 2007
Reputation: High Rating
United States Posts: 3,480
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
Thanks, Achim. I can create an HTML window, but I'm pretty clueless about how to customize these things much (eg. "It requires the HEADER_VARS to be activate for the window." ).

But I figured out that if you can create an HTML window, but you don't know what any of the language means (like me ), create an HTML window with this:

Quote:
<HTML>
<HEAD>

<SCRIPT TYPE="text/javascript">
<!--
<DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False">
//-->
        longUPC = DP_UPC;
        dot = DP_UPC.indexOf(".");
        if (DP_UPC.indexOf("I") >= 0) {
          document.write("Unavailable");
        } else {
          if (dot < 0) {
            shortUPC = DP_UPC.slice(1,-1);
            locality = "";
          }
          else {
            locality = DP_UPC.slice(dot);
            shortUPC = DP_UPC.slice(0,dot)
            if (shortUPC.length==12) {
              shortUPC = shortUPC.slice(1,-1);
            } else { if (shortUPC.length==13) {
              shortUPC = shortUPC.slice(1);
              }
            }
          }
          document.write("<a href='http://www.intervocative.com/Forums.aspx?task=contributionnotes&type=DVD&ProfileUPC=" + shortUPC + locality + "' target='_blank'>" + shortUPC + locality +  "</a>");
        }
      </script>

</HEAD>
<BODY>

</BODY>
</HTML>


It's a small thing to have it's own window for, but I'll figure out how to incorporate it elsewhere...later.

Thanks again.
...James

"People fake a lot of human interactions, but I feel like I fake them all, and I fake them very well. That’s my burden, I guess." ~ Dexter Morgan
DVD Profiler Unlimited Registrantnuoyaxin
prev. known as ya_shin
Registered: March 13, 2007
Reputation: High Rating
Taiwan, Province of China Posts: 3,436
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting m.cellophaneJames, this:
Quote:
<DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False">

is what is referred to as HEADER_VARS. So, you stuck it in there and that is good

Having it on it's own is obviously a waste of space, but you'll find a space... (I have it in a window with a bunch of personal information, such as last viewed, sort title and if there is a Gallery or EPG, as well as a few links to Rules, the Notes, etc.
Achim [諾亞信; Ya-Shin//Nuo], a German in Taiwan.
Registered: May 29, 2000 (at InterVocative)
    Invelos Forums->DVD Profiler: Layouts and Reports Page: 1  Previous   Next