BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 eXtreme Movie Manager 8, 9, 10 Forum
 HTML Cards
 HTML Card with about.jpg
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Lluqa
Starting Member

17 Posts

Posted - 13 Feb 2015 :  17:33:35  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,

on my TV i show my movies with all informations with a network media tank. All infos are on a about.jpg in the movie folder (XBMC/Kodi)generated with Thumgen. Now i try to use this file in a HTML Card. It is possible, if i put every single about.jpg as a second movie file ... but is there an another way... i need a field wich contains the movie path like _MOVIE_PATH_... to use the about.jpg directly

<head>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title></title>
<style type="text/css">
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}

#hintergrund {
width: 100%;
height: 100%;
position: relative;
z-index: 1;
}

#content {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 2;
overflow: auto;
}
</style>
</head>
<body>
<img id="hintergrund" src="_MOVIE_MOVIEFILE2_" border="0">
</body>

</html>

Thanks for your help

Lluqa

JDommi
Administrator

Germany
4652 Posts

Posted - 13 Feb 2015 :  19:08:35  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Are these pics always in the same folder as the movie? Then you only have to parse the path of the movie file and add about.jpg with a small javascript function.
When they all are in the same folder with the same name as your moviefile or the movie name in your database then you can use a javascript function, too.
Only if there is no regularly expression in the naming convention you have to use another field just like on of the CustomFields.

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
Go to Top of Page

Lluqa
Starting Member

17 Posts

Posted - 13 Feb 2015 :  19:59:30  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The about.jpg is alway in the same folder as the movies. I don't know anything about javascript :-( ... maybe Mr or Mrs Google could help...
Go to Top of Page

JDommi
Administrator

Germany
4652 Posts

Posted - 13 Feb 2015 :  20:33:14  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
try it this way.

replace:
<img id="hintergrund" src="_MOVIE_MOVIEFILE2_" border="0">

by:
<script type="text/javascript">
str = "_MOVIE_MOVIEFILE1_";
str = str.substring(0, str.lastIndexOf("/"))+"about.jpg";
document.write('<img id="hintergrund" src="'+str+' border="0">');
</script>

But you're right "Uncle Google" can mostly help - or SelfHTML

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
Go to Top of Page

Lluqa
Starting Member

17 Posts

Posted - 14 Feb 2015 :  15:43:40  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello JDommi,

after asking our Uncle ... is think the problem is the backsplash in the moviepath.

Changing "_MOVIE_MOVIEFILE_" to "_MOVIE_MOVIEFILE1_" (that is the fieldname) and trying to replace \ with / the result is a path without / and \... also encodeURIComponent()failed...

<script type="text/javascript">
str = "_MOVIE_MOVIEFILE1_"
str1 = str.replace(/\\/g,"/");
document.write (str1);
</script>

U:Name (Year)Name (Year).mkv

Any other idea or hint?
Go to Top of Page

JDommi
Administrator

Germany
4652 Posts

Posted - 14 Feb 2015 :  18:19:27  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You're right. _MOVIE_MOVIEFILE1_ does NOT include any folder separator.
That's a bug!

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
Go to Top of Page

Lluqa
Starting Member

17 Posts

Posted - 15 Feb 2015 :  13:50:22  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Yes it seems so... For me it's ok, because i found a solution. Thumgen can create a second "about.jpg" with a different name in every folder. So the Movie-Card looks for a picture with a name like "moviename.ext.jpg" in the folder...

<body>
<img id="hintergrund" src="_MOVIE_MOVIEFILE1_.jpg" border="0">
</body>

Nevertheless thank you very much for your help
Go to Top of Page

JDommi
Administrator

Germany
4652 Posts

Posted - 15 Feb 2015 :  14:26:21  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Nevertheless I have Ale informed about that bug.

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BinaryWorks.it Official Forum © Binaryworks.it Go To Top Of Page
Generated in 0.12 sec. Powered By: Snitz Forums 2000 Version 3.4.07