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
link to trailer in dvd profiler?
Author Message
DVD Profiler Unlimited Registrantm.holm.rasmussen
Registered: July 4, 2007
Posts: 13
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Yeah I would very much like it, so that i can get a link to a trailer for each movie in dvd profiler. can someone help me with a step by step guide on how i put this in?
for example I am Legend....

so i go here I am Legend trailer
by pressing the link in dvd profiler.

I have read all of this topic YouTube/Google Video HTML Window

But i do not understand it (Yeah i am very much of noob) so i would like it is someone could provide me with an easy step by step guide to getten this to work. Or maybe just the code in where i put the url to the trailer, sp it shows up as a link in dvd profiler...

can anyone please help me with this?

mholmrasmussen
DVD Profiler Unlimited RegistrantStar Contributornorthbloke
Registered: March 15, 2007
Reputation: High Rating
United Kingdom Posts: 5,459
Posted:
PM this userDirect link to this postReply with quote
<removed as it didn't work>
 Last edited: by northbloke
DVD Profiler Unlimited Registrantm.holm.rasmussen
Registered: July 4, 2007
Posts: 13
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
thank you very much....but after i put that text in notes of I am legend, it keeps giving me some kinf of script error, any way to solve this?

Is it possible to get the link to a buton in general info?
 Last edited: by m.holm.rasmussen
DVD Profiler Unlimited RegistrantStar Contributornorthbloke
Registered: March 15, 2007
Reputation: High Rating
United Kingdom Posts: 5,459
Posted:
PM this userDirect link to this postReply with quote
If you want it in notes then all you have to do is use:

<a href="http://www.imdb.com/title/tt0480249/trailers-me60407838">I Am Legend trailer</a>

And make sure you've checked the "Use HTML for Notes" tickbox under Display in Options.

edit: the only way to get it under General Info would be to create a customised General Info window - very difficult!
 Last edited: by northbloke
DVD Profiler Unlimited Registrantm.holm.rasmussen
Registered: July 4, 2007
Posts: 13
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
ok, thanks....one question though....now i've created a new html window, and it does show the link correctly to the I am legend trailer, but it shows the same trailer now for every movie, in the trailer window. and I can't change it in "Edit" how do i change it for each movie then?

sorry if i seem retarded, but am really dumb at this stuff...

One more question...when i click the link, it opens up in the html window...I would like it to open up in my browser, which is firefox...is that possible? and is it possible do have it resumé?
 Last edited: by m.holm.rasmussen
DVD Profiler Unlimited RegistrantStar ContributorAddicted2DVD
Registered: March 13, 2007
Reputation: Highest Rating
United States Posts: 17,329
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
html windows don't work this way... you need something like the YouTube/Google Video HTML Window you linked to... that is what I use.

You need the main code in an html window and then put the youtube/googlevideo ID into the notes section using the code specified in that thread.

So in an HTML Window you have...

Quote:
<html>
<head>
<style type="text/css">
<!--
* { color: white; font-family: verdana; font-size: 10pt; }
html, body { background-color: rgb(0, 0, 83); }
body { background-repeat: repeat-x; background-image:url($DPIMAGES.bgimage.jpg); }
h1.vid { text-align: center; }
a { font-size: 8pt; }
li { margin-left: 5pt; }
#code { clear: left; font-size: 6pt; text-align: right; margin-bottom: 15pt; }
.off { color: gray; }
.on { color: white; }
-->
</style>
<script type="text/javascript">
<!--
<DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False">
/*
######## Video Loader ########
@title - Video Loader
@filename - VideoLoader_1.1.1.html
@version - 1.1.1
@date - 2007-06-07
@author - xyrano
@dependencies - DVD Profiler v3+, IE.

@1.1.1 update
- Added additional Tag support (for links)

@1.1 update
- Added options for unlimited players
- Added Tag support (for verbose)

@1.0.1 update
- No video bug fixed (Thanks RossRoy)

@1.0 inital release
*/
// -------- Configuration block - Start --------
// "Player name", "Notes field attribute", "Player URL", "Player link path", "Player embed path", "Player as link"
var vid = new Array(
  ["Google", "googlevideo=", "http://video.google.com/", "videoplay?docid=", "googleplayer.swf?docId=", false, []],
  ["Video Detective", "videodetective=", "http://www.videodetective.com/", "codes/player.swf?PublishedID=", "codes/player.swf?PublishedID=", true, []],
  ["YouTube", "youtube=", "http://www.youtube.com/", "watch?v=", "v/", false, []],
  ["@"]
);
var asl = false;
var wid = 300; // a width value dividable by 25
var der = true; // Display a 'No * Available' message?

// Tags
var useTags = true;
var tagHierarchy = "9: Preferences/Video Loader/"
var tagAsLinks = tagHierarchy + "As links"; // Controlles asl from a tag
var tagVerboseOff = tagHierarchy + "Verbose off"; // Controlles der from a tag
// -------- Configuration block - End --------

var int = DP_Notes.indexOf("<videos ");
if (int != -1) {

  var d = 0;
  var hei = (wid / (d = (wid / 25))) * (d - 2);

  // Get code(s).
  // 1.1 updated
  var not = "";
  not = DP_Notes.substring(int, DP_Notes.indexOf("/>", int));
  not = not.replace("<videos ", "");
  if (not.indexOf("aslink") != -1) {
    not = not.replace("aslink", "");
    not = not.replace(/^\s+|\s+$/g, "");
    asl = true;
  }
  for (rowk in vid) {
    if (vid[rowk][0].length > 0 && not.indexOf(vid[rowk][1]) != -1) {
      var str = not.slice(not.indexOf(vid[rowk][1]), not.legnth);
      str = str.slice(0, cleanString(str, rowk));
      str = str.replace(vid[rowk][1], "");
      vid[rowk][6] = (str.indexOf(";") != -1) ? str.split(";"): str;
    }
  }

  // Tags
  // 1.1.1 updated
  if (useTags == true)  for (var i = 0;  i < DP_Tags.length;  i++) {
    if (tagAsLinks.length != 0 && DP_Tags[i].toLowerCase() == tagAsLinks.toLowerCase()) asl = true;
    if (tagVerboseOff.length != 0 && DP_Tags[i].toLowerCase() == tagVerboseOff.toLowerCase()) der = false;
  }
}

// 1.1 updated
function drawIt() {

  var html = "";
  var i = 0;
  for (row in vid) {
    if (vid[row][0].length > 1)
    if (vid[row][6] != undefined && vid[row][6] != "") {
      html += ((asl || vid[row][5]) ? vid[row][0] + ' video link': '') + selectFactory(row);
    } else {
      html += (der) ? 'No ' + vid[row][0] + ' videos Available<br />': '';
      i++;
    }
  }
  if (i==3) html = "No Videos Available<br />";
  document.getElementsByTagName('h1')[0].innerHTML = html;
}

// 1.1 updated
function selectFactory(row) {

  var obj = vid[row][6];
  var html = "";
  if (asl || vid[row][5]) {
    document.getElementsByTagName('h1')[0].className = 'on';
    if (typeof obj == "object") {
      html += "s: ";
      for (i in obj) html += '<li>' + link(vid[row][2] + vid[row][3], obj[i]) + '</li>';
    } else html += ": " + link(vid[row][2] + vid[row][3], obj);
    html += '<br />';
  } else {
    if (typeof obj == "object") for (i in obj) html += embedVideoFactory(vid[row][2] + vid[row][4], obj[i]);
    else html += embedVideoFactory(vid[row][2] +vid[row][4], obj);
  }
  return html;
}

// 1.1 updated
function embedVideoFactory(pth, str) {

  var obj = splitIt(str);
  var cde = getCode(obj);
  var eyt ='';
  eyt = '<span style="background-color: black;">';
  eyt += '<div style="background-color: black; width: ' + wid + '; height: ' + ((wid / 6) * 5) + ';">';
  eyt += '<object width="' + wid + '" height="' + ((wid / 6) * 5) + '">';
  eyt += '<param name="movie" value="' + pth + cde + '" />';
  eyt += '<param name="wmode" value="transparent" />';
  eyt += '<param name="autostart" value="false" />';
  eyt += '<embed src="' + pth + cde + '" type="application/x-shockwave-flash" autostart="false"';
  eyt += ' wmode="transparent" width="' + wid + '" height="' + ((wid / 6) * 5) + '"></embed>';
  eyt += '</object>';
  eyt += '</div>';
  eyt += '<div id="code" style="width: ' + wid + ';"';
  eyt += ' title="' + pth + cde + '"';
  eyt += ' onMouseOver="flashIt(this, true); return false;"';
  eyt += ' onMouseOut="flashIt(this, false); return false;"';
  eyt += ' class="off">' + ((typeof obj == "object") ? obj[0] + ': ': '') + cde + '</div>';
  eyt += '</span>';
  return eyt;
}

// 1.1 updated
function link(pth, str) {

  var obj = splitIt(str);
  var cde = getCode(obj);
  var lnk = '<a href="' + pth + cde + '" target="_new" onFocus="blur(this);"';
  if (typeof obj == "object") lnk += ' title="' + cde + '"';
  lnk += '>';
  lnk += (typeof obj == "object") ? obj[0]: obj;
  lnk += '</a>';
  return lnk;
}

// 1.1 new
function cleanString(str, r) {

  for (row in vid) if (vid[row][0].length > 0 && r != row && str.indexOf(vid[row][1]) != -1) return str.indexOf(vid[row][1]);
  return str.length;
}

// 1.1 new
function splitIt(str) { return (str.indexOf(vid[vid.length - 1][0]) != -1) ? str.split(vid[vid.length - 1][0]): str; }
function getCode(obj) { return ((typeof obj == "object") ? obj[1]: obj).replace(/^\s+|\s+$/g, ""); }

// 1.0
function flashIt(obj, bool) { obj.className = (bool) ? 'on': 'off'; }
//-->
</script>
</head>
<body onload="drawIt();" scroll="auto">
<h1 class="vid"></h1>
</body>
</html>


and in notes For the trailer of Spiderman 3 (for example)... you have (how I have mine)...

<videos youtube=Trailer@szh5ZsAcgJU />

And this places the actual trailer in the html window.. not just the link.
Pete
 Last edited: by Addicted2DVD
DVD Profiler Unlimited RegistrantStar Contributornorthbloke
Registered: March 15, 2007
Reputation: High Rating
United Kingdom Posts: 5,459
Posted:
PM this userDirect link to this postReply with quote
ok, you're best off not using an html window to do this as you're right - it would show the same link for every profile, Can't believe I didn't pick up on that! 
However, in order to change it for every profile you're looking at code similar to the Google/youtube window, which you said was too difficult. It would also involve pasting info into Notes anyway, so if you're going to do that you might as well just put the link in notes, it'll be easier for you.

If you click a link in an HTML window it will always open IE, not the default browser. I can change the link to open in a new window, but it won't be in Firefox.
I have to admit, I'm not sure what happens when you click a link in Notes as I don't have Firefox installed.

Edit: I'm not having a very good night, I forgot the corrected code:

<a target="_blank" href="http://www.imdb.com/title/tt0480249/trailers-me60407838">I Am Legend trailer</a>

Put this in your notes section and it will open the link in a new window.
 Last edited: by northbloke
DVD Profiler Unlimited RegistrantStar ContributorAddicted2DVD
Registered: March 13, 2007
Reputation: Highest Rating
United States Posts: 17,329
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
If you click a link in notes it will still use IE instead of Firefox (or whatever your default is)
Pete
DVD Profiler Unlimited Registrantm.holm.rasmussen
Registered: July 4, 2007
Posts: 13
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
ok, thanks very much for your help. I will just use the link in notes, and manually put in trailers for each movie and thet watch it in the notes window.

once again, thanks alot for all your help, both of you 
DVD Profiler Unlimited RegistrantStar ContributorAddicted2DVD
Registered: March 13, 2007
Reputation: Highest Rating
United States Posts: 17,329
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
Just a link in the notes window will not play the trailer in the notes window... it will bring up Internet Explorer to got to the trailer's page.
Pete
DVD Profiler Unlimited Registrantm.holm.rasmussen
Registered: July 4, 2007
Posts: 13
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
<a href="LINK TO TRAILER HERE">Trailer</a>

this put in notes, will show the trailer in the notes window
DVD Profiler Unlimited RegistrantStar ContributorAddicted2DVD
Registered: March 13, 2007
Reputation: Highest Rating
United States Posts: 17,329
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
no... that will open the Internet Explorer browser and take you to the page with the trailer on it.
Pete
DVD Profiler Unlimited RegistrantStar Contributornorthbloke
Registered: March 15, 2007
Reputation: High Rating
United Kingdom Posts: 5,459
Posted:
PM this userDirect link to this postReply with quote
I'm confused - do you want to see the trailer embedded in Profiler or do you want a link to the trailer in Profiler?
Cos I thought you wanted a link... but now you want the trailer in the notes window?
DVD Profiler Unlimited Registrantm.holm.rasmussen
Registered: July 4, 2007
Posts: 13
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
well before I did it with 2 different movies and in both it opens up the page with the trailer in the notes window and starts the trailer....Just did it again with another movie and it does again

this is what i wrote in notes, try it yourself....

<a href="http://www.scope.dk/film.php?id=4425&fil=6">Trailer</a>


Edit: At first i wanted a link, but you tell me the link can't open up the page in firefox, so now I just use the above and watch it embedded in the notes window, it's fine for me
 Last edited: by m.holm.rasmussen
DVD Profiler Unlimited RegistrantStar Contributornorthbloke
Registered: March 15, 2007
Reputation: High Rating
United Kingdom Posts: 5,459
Posted:
PM this userDirect link to this postReply with quote
Oh I see, because the link is opened inside the the notes window rather than a new window.
Well, if you're happy with that it's not for us to argue! 

You may still want to have a play with the youtube/google video window as it would give you a tidier look in Profiler, but that's completely up to you.
DVD Profiler Unlimited Registrantm.holm.rasmussen
Registered: July 4, 2007
Posts: 13
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
okay...maybe I will...but for now it's too complicated for me, im way too tired, I might try it out another time, but probably can't get it to work  then I might ask you guys for help again 
    Invelos Forums->DVD Profiler: Layouts and Reports Page: 1 2  Previous   Next