|
|
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: Desktop Feature Requests |
Page:
1 2 3 Previous Next
|
Customize IMDb Link |
|
|
|
Author |
Message |
Registered: March 14, 2007 | Reputation: | Posts: 6,744 |
| Posted: | | | | Quoting Rifter: Quote: Why are you people so obsessed with using IMDB? We can't use ANY of the data from it anyway, so what's the point of trying to add something that links to it? Copied & shortened from here. Quoting myself: Quote: To be honest, I don't use the cast function of DVDP at all. If I'm interested in a cast, I go to IMDb. My reasons for that: DVDP only shows those movies that I've got in my collection but when I look up an actor I want to see all his appearences and not only those on movies I own. PS: Sorry, didn't see that the topic is not new but rather old and was "ressurected". | | | Karsten DVD Collectors Online
| | | Last edited: by DJ Doena |
| Registered: March 14, 2007 | Posts: 97 |
| Posted: | | | | Quoting Addicted2DVD: Quote: for anything in notes that I don't want to show... I put in brackets... so it would be <tt#>.... and then of course make sure in options you have notes set to "show notes as html"... or something like that. Don't have my program open at the moment. Hmm, but you have to have the <imdb> </imdb> tags at either end. The notes show the tt number in the middle. If you put <> either end then you just end up with the tt number in brackets showing. No biggie but it would be nice for it not to show like the gallery or epguides. |
| Registered: March 13, 2007 | Reputation: | Posts: 17,334 |
| Posted: | | | | sorry... don't use the imdb window.... didn't know it was different then the others. | | | Pete |
| Registered: November 17, 2007 | Posts: 5 |
| Posted: | | | | ...wuff.. | | | Matti |
| Registered: March 13, 2007 | Reputation: | Posts: 3,436 |
| Posted: | | | | Quoting eggerty: Quote: Hmm, but you have to have the <imdb> </imdb> tags at either end. The notes show the tt number in the middle. If you put <> either end then you just end up with the tt number in brackets showing. No biggie but it would be nice for it not to show like the gallery or epguides. I don't use that script either, but I have the IMDb number in my Notes for different reasons... I am sure the script can be modified to use a slightly different IMDb number tag, such as "<imdb number=xxxxxxx> which will then not show up in the Notes field (if displayed as HTML). | | | Achim [諾亞信; Ya-Shin//Nuo], a German in Taiwan. Registered: May 29, 2000 (at InterVocative) |
| Registered: March 13, 2007 | Reputation: | Posts: 3,436 |
| Posted: | | | | I was initially too lazy to look for the IMDb window code to make the adjustments. Then I noticed this is actually the thread where it was in So, here is a new version of the script: Quote: <HTML> <HEAD> <SCRIPT TYPE="text/javascript"> <!-- <DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False"> /**************************************************/ // Open IMDb page for the profile function imdb() { var imdbCode=""; if (DP_Notes.toLowerCase().search("\<imdb\>") >= 0) { var imdbStart = DP_Notes.toLowerCase().indexOf("\<imdb\>") + 8; var imdbEnd = DP_Notes.toLowerCase().indexOf("\<\/imdb\>"); var imdbCode = DP_Notes.slice(imdbStart, imdbEnd); } if (DP_Notes.toLowerCase().search("\<imdb number\=") >= 0) { var imdbStart = DP_Notes.toLowerCase().indexOf("\<imdb number\=") + 13; var imdbEnd = DP_Notes.toLowerCase().indexOf("\>", imdbStart); var imdbCode = DP_Notes.slice(imdbStart, imdbEnd); } if (imdbCode.length == 0) { var title = DP_Title; var imdbLink = ("http://www.imdb.com/find?s=tt&q=" + title.replace(/ /g, "+")); document.write("You need to add <IMDB>ttXXXXX</IMDB> or <IMDB number=XXXXX> to your notes for this to work.") } else { var imdbLink = ("http://www.imdb.com/title/tt" + imdbCode + "/"); } window.location.href= imdbLink; } //--> </SCRIPT> </HEAD> <BODY onload="imdb();"> </BODY> </HTML> This script will either accept <imdb>tt xxxxxx</imdb> OR <imdb number= xxxxxxx> (without the "tt") in the Notes field. If an empty tag or nothing at all is found, then a Title search is initiated after a short display of a "warning" message. The second kind of tag will not visible in the Notes field when displayed as HTML. Having both optionally recognized will make transition easy; you can take your time modifying your Notes while still using the window. Personally I only have an IMDb logo in another window which calls above script when clicking the image. A small adjustment to the script would be necessary, which I can provide upon request. | | | Achim [諾亞信; Ya-Shin//Nuo], a German in Taiwan. Registered: May 29, 2000 (at InterVocative) |
| Registered: March 13, 2007 | Reputation: | Posts: 3,480 |
| Posted: | | | | I like this version a lot, Achim. Thanks. I figured out how to get this into a sliding window now too. Not sure if that's the technical term, but I was pretty excited by it. (eg. an HTML window that expands and slides out when activated, but slides away when not in use.) | | | ...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 |
| Registered: March 13, 2007 | Reputation: | Posts: 3,436 |
| Posted: | | | | Quoting m.cellophane: Quote: I figured out how to get this into a sliding window now too. Not sure if that's the technical term, but I was pretty excited by it. (eg. an HTML window that expands and slides out when activated, but slides away when not in use.) You mean a "tabbed window"? Otherwise you have some explaining to do, as I want to know more... | | | Achim [諾亞信; Ya-Shin//Nuo], a German in Taiwan. Registered: May 29, 2000 (at InterVocative) |
| Registered: March 28, 2007 | Reputation: | Posts: 1,299 |
| Posted: | | | | In case anyone wants an HTML window to just go to IMDb with the standard search (with varying results in terms of accuracy) here's the code for that: Quote: <HTML> <HEAD> <SCRIPT TYPE="text/javascript"> <!-- <DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False"> /**************************************************/ // Open IMDb page for the profile function imdb() { var imdbLink = ("http://www.imdb.com/find?s=tt&q=" + DP_Title); window.location.href= imdbLink; } //--> </SCRIPT> </HEAD> <BODY onload="imdb();"> </BODY> </HTML> | | | Tags, tags, bo bags, banana fana fo fags, mi my mo mags, TAGS! Dolly's not alone. You can also clone profiles. You've got questions? You've got answers? Take the DVD Profiler Wiki for a spin. |
| Registered: March 13, 2007 | Reputation: | Posts: 3,436 |
| Posted: | | | | Quoting nuoyaxin: Quote: I was initially too lazy to look for the IMDb window code to make the adjustments. Then I noticed this is actually the thread where it was in
So, here is a new version of the script:
Quote: <HTML> <HEAD> <SCRIPT TYPE="text/javascript"> <!-- <DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False"> /**************************************************/ // Open IMDb page for the profile function imdb() { var imdbCode=""; if (DP_Notes.toLowerCase().search("\<imdb\>") >= 0) { var imdbStart = DP_Notes.toLowerCase().indexOf("\<imdb\>") + 8; var imdbEnd = DP_Notes.toLowerCase().indexOf("\<\/imdb\>"); var imdbCode = DP_Notes.slice(imdbStart, imdbEnd); } if (DP_Notes.toLowerCase().search("\<imdb number\=") >= 0) { var imdbStart = DP_Notes.toLowerCase().indexOf("\<imdb number\=") + 13; var imdbEnd = DP_Notes.toLowerCase().indexOf("\>", imdbStart); var imdbCode = DP_Notes.slice(imdbStart, imdbEnd); } if (imdbCode.length == 0) { var title = DP_Title; var imdbLink = ("http://www.imdb.com/find?s=tt&q=" + title.replace(/ /g, "+")); document.write("You need to add <IMDB>ttXXXXX</IMDB> or <IMDB number=XXXXX> to your notes for this to work.") } else { var imdbLink = ("http://www.imdb.com/title/tt" + imdbCode + "/"); } window.location.href= imdbLink; } //--> </SCRIPT> </HEAD> <BODY onload="imdb();"> </BODY> </HTML> This script will either accept <imdb>ttxxxxxx</imdb> OR <imdb number=xxxxxxx> (without the "tt") in the Notes field. If an empty tag or nothing at all is found, then a Title search is initiated after a short display of a "warning" message.
The second kind of tag will not visible in the Notes field when displayed as HTML. Having both optionally recognized will make transition easy; you can take your time modifying your Notes while still using the window.
Personally I only have an IMDb logo in another window which calls above script when clicking the image. A small adjustment to the script would be necessary, which I can provide upon request. I noticed today that the IMDb tab is no longer working. Well, it does start to load, but then crashes DVD Profiler. While I initially helped create this version, I am no programmer and simply combined existing code until it worked... I have recently installed to the latest Windows 10 update and that is the only thing I m sure is strongly different since the last time I used the IMDb tab (although, I may actually never have used this within Windows 10 at all). I understand that Windows 10 uses Edge rather than IE, however, IE is still there (as some people still need it for Active-X, for example) and I am therefore not sure if this could be related at all. And even if, how to fix it. Anyway, anyone else using this and having issues with this? I wouldn't mind getting the tab, that opens up the IMDb page of a film based in a HTML window right within DVDP, back... | | | Achim [諾亞信; Ya-Shin//Nuo], a German in Taiwan. Registered: May 29, 2000 (at InterVocative) |
| Registered: November 24, 2007 | Posts: 15 |
| Posted: | | | | IMDb:
<HTML> <HEAD> <SCRIPT TYPE="text/javascript"> <!-- <DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False"> /**************************************************/ var imdbStart = ""; var imdbEnd = ""; var imdbCode = ""; var imdbLink = ""; var imdbFound = false; var imdbURL = "http://www.imdb.com/title/";
// Open IMDb page for the profile function imdb() { imdbStart = DP_Notes.toLowerCase().indexOf("\<imdb") + 6;
if (imdbStart>5) { if (DP_Notes.toLowerCase().indexOf("\<\/imdb\>", imdbStart)>1) { imdbEnd = DP_Notes.toLowerCase().indexOf("\<\/imdb\>", imdbStart); alert("This profile still uses the old style code."); } else { imdbEnd = DP_Notes.toLowerCase().indexOf("\/\>", imdbStart); } imdbCode = DP_Notes.slice(imdbStart, imdbEnd); imdbLink = (imdbURL + imdbCode); imdbFound = true; window.location.href = imdbLink; } else { document.write("There is no IMDb code in the notes."); } } //--> </SCRIPT> </HEAD> <BODY onload="imdb();"> </BODY> </HTML>
OFDB:
<HTML> <HEAD> <SCRIPT TYPE="text/javascript"> <!-- <DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False"> /**************************************************/ var ofdbStart = ""; var ofdbEnd = ""; var ofdbCode = ""; var ofdbLink = ""; var ofdbFound = false; var ofdbURL = "http://www.ofdb.de/film/";
// Open ofdb page for the profile function ofdb() { ofdbStart = DP_Notes.toLowerCase().indexOf("\<ofdb") + 6;
if (ofdbStart>5) { if (DP_Notes.toLowerCase().indexOf("\<\/ofdb\>", ofdbStart)>1) { ofdbEnd = DP_Notes.toLowerCase().indexOf("\<\/ofdb\>", ofdbStart); alert("This profile still uses the old style code."); } else { ofdbEnd = DP_Notes.toLowerCase().indexOf("\/\>", ofdbStart); } ofdbCode = DP_Notes.slice(ofdbStart, ofdbEnd); ofdbLink = (ofdbURL + ofdbCode); ofdbFound = true; window.location.href = ofdbLink; } else { document.write("There is no ofdb code in the notes."); } } //--> </SCRIPT> </HEAD> <BODY onload="ofdb();"> </BODY> </HTML>
Rotten Tomatoes:
<HTML> <HEAD> <SCRIPT TYPE="text/javascript"> <!-- <DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False"> /**************************************************/ var rottenStart = ""; var rottenEnd = ""; var rottenCode = ""; var rottenLink = ""; var rottenFound = false; var rottenURL = "http://www.rottentomatoes.com/m/";
// Open rotten page for the profile function rotten() { rottenStart = DP_Notes.toLowerCase().indexOf("\<rotten") + 8;
if (rottenStart>7) { if (DP_Notes.toLowerCase().indexOf("\<\/rotten\>", rottenStart)>1) { rottenEnd = DP_Notes.toLowerCase().indexOf("\<\/rotten\>", rottenStart); alert("This profile still uses the old style code."); } else { rottenEnd = DP_Notes.toLowerCase().indexOf("\/\>", rottenStart); } rottenCode = DP_Notes.slice(rottenStart, rottenEnd); rottenLink = (rottenURL + rottenCode); rottenFound = true; window.location.href = rottenLink; } else { document.write("There is no rotten code in the notes."); } } //--> </SCRIPT> </HEAD> <BODY onload="rotten();"> </BODY> </HTML>
Schnittberichte.com:
<HTML> <HEAD> <SCRIPT TYPE="text/javascript"> <!-- <DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False"> /**************************************************/ var schnittberichteStart = ""; var schnittberichteEnd = ""; var schnittberichteCode = ""; var schnittberichteLink = ""; var schnittberichteFound = false; var schnittberichteURL = "http://www.schnittberichte.com/svds.php?Page=Fassung&ID=";
// Open schnittberichte page for the profile function schnittberichte() { schnittberichteStart = DP_Notes.toLowerCase().indexOf("\<schnittberichte") + 17;
if (schnittberichteStart>16) { if (DP_Notes.toLowerCase().indexOf("\<\/schnittberichte\>", schnittberichteStart)>1) { schnittberichteEnd = DP_Notes.toLowerCase().indexOf("\<\/schnittberichte\>", schnittberichteStart); alert("This profile still uses the old style code."); } else { schnittberichteEnd = DP_Notes.toLowerCase().indexOf("\/\>", schnittberichteStart); } schnittberichteCode = DP_Notes.slice(schnittberichteStart, schnittberichteEnd); schnittberichteLink = (schnittberichteURL + schnittberichteCode); schnittberichteFound = true; window.location.href = schnittberichteLink; } else { document.write("There is no schnittberichte code in the notes."); } } //--> </SCRIPT> </HEAD> <BODY onload="schnittberichte();"> </BODY> </HTML>
Youtube Trailer Window:
<HTML> <HEAD> <SCRIPT TYPE="text/javascript"> <!-- <DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False"> /**************************************************/ var youtubeStart = ""; var youtubeEnd = ""; var youtubeCode = ""; var youtubeLink = ""; var youtubeFound = false; var youtubeURL = "http://www.youtube.com/embed/";
// Open youtube page for the profile function youtube() { youtubeStart = DP_Notes.toLowerCase().indexOf("\<youtube") + 9;
if (youtubeStart>8) { if (DP_Notes.toLowerCase().indexOf("\<\/youtube\>", youtubeStart)>1) { youtubeEnd = DP_Notes.toLowerCase().indexOf("\<\/youtube\>", youtubeStart); alert("This profile still uses the old style code."); } else { youtubeEnd = DP_Notes.toLowerCase().indexOf("\/\>", youtubeStart); } youtubeCode = DP_Notes.slice(youtubeStart, youtubeEnd); youtubeLink = (youtubeURL + youtubeCode); youtubeFound = true; window.location.href = youtubeLink; } else { document.write("There is no youtube code in the notes."); } } //--> </SCRIPT> </HEAD> <BODY onload="youtube();"> </BODY> </HTML>
Youtube Trailer Window with autoplay:
<HTML> <HEAD> <SCRIPT TYPE="text/javascript"> <!-- <DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False"> /**************************************************/ var youtubeStart = ""; var youtubeEnd = ""; var youtubeCode = ""; var youtubeLink = ""; var youtubeFound = false; var youtubeURL = "http://www.youtube.com/watch?v=";
// Open youtube page for the profile function youtube() { youtubeStart = DP_Notes.toLowerCase().indexOf("\<youtube") + 9;
if (youtubeStart>8) { if (DP_Notes.toLowerCase().indexOf("\<\/youtube\>", youtubeStart)>1) { youtubeEnd = DP_Notes.toLowerCase().indexOf("\<\/youtube\>", youtubeStart); alert("This profile still uses the old style code."); } else { youtubeEnd = DP_Notes.toLowerCase().indexOf("\/\>", youtubeStart); } youtubeCode = DP_Notes.slice(youtubeStart, youtubeEnd); youtubeLink = (youtubeURL + youtubeCode); youtubeFound = true; window.location.href = youtubeLink; } else { document.write("There is no youtube code in the notes."); } } //--> </SCRIPT> </HEAD> <BODY onload="youtube();"> </BODY> </HTML>
All HTML pages based on this code in the notes, also working in phpMyProfiler 1.1, 1.2dev:
<YOUTUBE=bmnLrzG2zKw /> <IMDB=tt0103594 /> <OFDB=1138,1492---Die-Eroberung-des-Paradieses /> <ROTTEN=1492_conquest_of_paradise /> <SCHNITTBERICHTE=10007 /> |
| Registered: November 24, 2007 | Posts: 15 |
| Posted: | | | | Since a few weeks, Youtube Trailer Window script don't work anymore, only black window, the Youtube Trailer Window with autoplay work fine. Tried with latest 3.9.1 (Build 1657) and 4.0.0 on Win 8.1. If I copy the link http://www.youtube.com/embed/(youtube code) in the browser, FF, Chrome and IE, this will work.
Any advice? Thank you. |
|
|
Invelos Forums->DVD Profiler: Desktop Feature Requests |
Page:
1 2 3 Previous Next
|
|
|
|
|
|
|
|
|