BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 eXtreme Movie Manager 8, 9, 10 Forum
 HTML Cards
 HTML Card with about.jpg

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
Lluqa Posted - 13 Feb 2015 : 17:33:35
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
7   L A T E S T    R E P L I E S    (Newest First)
JDommi Posted - 15 Feb 2015 : 14:26:21
Nevertheless I have Ale informed about that bug.
Lluqa Posted - 15 Feb 2015 : 13:50:22
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
JDommi Posted - 14 Feb 2015 : 18:19:27
You're right. _MOVIE_MOVIEFILE1_ does NOT include any folder separator.
That's a bug!
Lluqa Posted - 14 Feb 2015 : 15:43:40
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?
JDommi Posted - 13 Feb 2015 : 20:33:14
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
Lluqa Posted - 13 Feb 2015 : 19:59:30
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...
JDommi Posted - 13 Feb 2015 : 19:08:35
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.

BinaryWorks.it Official Forum © Binaryworks.it Go To Top Of Page
Generated in 0.06 sec. Powered By: Snitz Forums 2000 Version 3.4.07