Page 1 of 1

Easy to edit: template for TV display & template for myH

Posted: 2003-04-07 18:39:23
by Graal_CPM
1/ A template designed to be viewed on a TV (big letters, dark non-smeering colors)... and to be VERY easily edited to change colors, language, etc... (edit the CSS file)

1.1/ HTML File (to be used as indiv in AMC) :

Code: Select all

<html>
<head><link rel="stylesheet" href="myAMC.css" TYPE="text/css"></head>

<body class="bgmain"><table border="0" cellpadding="5" cellspacing="0">

<tr>
 <td><table border="0" cellspacing="4" cellpadding="4">
<tr>
 <td colspan="3" class="title">$$ITEM_FORMATTEDTITLE2</td></tr>

<tr>
 <td rowspan="9" width="10%" class="tag">
 <a href="$$ITEM_URL"><img src="$$ITEM_PICTUREFILENAME" border=0 width="215" height="308"></a></td>
 <td class="field">Rating : </td>
 <td class="tag"><img src="rating$$ITEM_RATING.gif"> (07/10) </td></tr>
 <td class="field">Director :</td>
 <td class="tag">$$ITEM_DIRECTOR</td></tr>
 <td class="field">Country :</td>
 <td class="tag">$$ITEM_COUNTRY</td></tr>
 <td class="field">Genre :</td>
 <td class="tag">$$ITEM_CATEGORY</td></tr>
 <td class="field">Year :</td>
 <td class="tag">$$ITEM_YEAR</td></tr>
 <td class="field">Language :</td>
 <td class="tag">$$ITEM_LANGUAGES</td></tr>
 <td class="field">Subtitle :</td>
 <td class="tag">$$ITEM_SUBTITLES</td></tr>
 <td class="field">Lenght :</td>
 <td class="tag">$$ITEM_LENGTH</td></tr>
 <td class="field">Media :</td>
 <td class="tag">$$ITEM_TYPE #$$ITEM_NUMBER</td></tr>
</table>

<table border="0" cellspacing="4" cellpadding="4">
 <tr class="field">
 <td>Description :</td></tr>
 <tr class="tag">
 <td>$$ITEM_DESCRIPTION</td></tr>
 <tr class="field">
 <td>Actors :</td></tr>
 <tr class="tag">
 <td>$$ITEM_ACTORS</td></tr>
 <tr class="field">
 <td>Comments :</td></tr>
 <tr class="tag">
 <td>$$ITEM_COMMENTS</td></tr>
</table>

<table width="100%" border="0" cellspacing="4" cellpadding="4">
<tr>
 <td class="field">Video Format :</td>
 <td class="tag">$$ITEM_VIDEOFORMAT</td>
 <td class="field">Audio Format :</td>
 <td class="tag">$$ITEM_AUDIOFORMAT</td></tr>
<tr>
 <td class="field">Resolution :</td>
 <td class="tag">$$ITEM_RESOLUTION</td>
 <td class="field">Framerate :</td>
 <td class="tag">$$ITEM_FRAMERATE</td></tr>
<tr>
 <td class="field">Size (Mb) :</td>
 <td class="tag">$$ITEM_SIZE</td>
 <td class="field">Disks :</td>
 <td class="tag">$$ITEM_DISKS</td></tr>
</table>

</td>
</tr>
</table>
<div align="center">
<form><input class="css" type="button" value="Close" onClick="window.close()"></form></div>
</body>
</html>
You need to get some gif with filename ratingX.gif (X from 0 to 10) from another template.


1.2/ CSS file (to be copied into your target directory for exporting) :

Code: Select all

<!--
.About {Graal_CPM myAMC template 05-April-2003}

.bgmain { 
 background-attachment: fixed;
 background-image: url(bkgd01_800x600.jpg)
 }

.title {
 font-family: Arial, Helvetica, sans-serif;
 font-size: 24pt;
 font-style: normal;
 background-color: #330066;
 text-align: center;
 }

 body { 
 scrollbar-3d-light-color: #800080;
 scrollbar-arrow-color: #666666;
 scrollbar-base-color: #666666;
 scrollbar-dark-shadow-color: #FFFFFF;
 scrollbar-face-color: #370037;
 scrollbar-highlight-color: #555555;
 scrollbar-shadow-color: #330066;
 font-family: Arial, Helvetica, sans-serif;
 color: #FFF0FF;
 font-weight: bold
 }

.field {
 font-weight: bold;
 font-size: 14pt;
 background-color: #370037
 }

.tag {
 font-size: 16pt;
 font-weight: bold;
 background-color: #330066
 }

.cellpix {
 background-color: #330066;
 clip:    rect(   );
 height: 0px; width: 0px}

input.css {
font-family:arial;
sans-serif;
font-size:14pt;
font-weight:bold;
background:#370037;
color:#FFF0FF;
border-width:1px;
border-style:solid;
width:96px;
height:30px;
cursor:hand;
padding:0px}
-->

2/ Here is a template to generate a metadata file for myHTPC :

Code: Select all

$$ITEM_BEGIN
[$$ITEM_NUMBER]
title=$$ITEM_FORMATTEDTITLE2
subtitle=$$ITEM_LENGTH Minutes $$ITEM_CATEGORY by $$ITEM_DIRECTOR
overview=$$ITEM_DESCRIPTION
produced=$$ITEM_TYPE #$$ITEM_NUMBER
rating=
review=$$ITEM_RATING
images=$$ITEM_PICTUREFILENAME
chain="Movie details",$$ITEM_FILEINDIV
category=Country,"$$ITEM_COUNTRY"
category=Director,"$$ITEM_DIRECTOR"
category=Genre,"$$ITEM_CATEGORY"
category="Lang & Sub","$$ITEM_LANGUAGES $$ITEM_SUBTITLES"
category=Year,$$ITEM_YEAR
category=Media,"$$ITEM_TYPE"
category="Date added",$$ITEM_DATEADD
$$ITEM_END
To use it :
-Export under the name myAMC.html.
-Rename the generated myAMC.html to myAMC.my.
-In myHTPC, create a new Media.
-General tab : grouping method=single metadata file, filename=c:\path\myAMC.my, uncheck ALL cache settings, play with other settings as you wish.
-Player : Excecutable=c:\whateverpath\iexplorer.exe, parameters=-k, Current dir=where you exported your catalog

It displays the whole movie database in myHTPC, allowing to sort by country, director, genre, etc. A click on "play" pops up Explorer with indiv template and all details about the movie in kiosk mode (no borders, ctrl-W to close, up/down arrows to scroll, alt-left/right arrows to go back/forward).
A click on the picture launch the associated URL on the internet. If no URL is available it will display windows files (!), sorry it's not very clean, just close the window with ctrl-W.

Enjoy!

Posted: 2003-04-07 18:44:24
by antp
thanks, I will try to not forget to include it with the program ;)

Posted: 2003-04-07 20:09:15
by Graal_CPM
J'en serais très honoré :hihi: !

By the way the bkgd01_800x600.jpg inluded in this template comes from this site : http://www.webpromotion.com/htp/htpcbackgrounds.html.
It's free and matches the colors of the template quite well.

But... you can get 100.000+ backgrounds and gfx stuff at http://www.wincustomize.com/
This site just rocks if you take time to dig in.

No image on my catalog

Posted: 2003-08-10 06:09:39
by Nicmae
I discover myHTPC, thanks it's so wonderfull! Windows Media Center suck ;-)

Juste a little question, i haven't the pic with my film.... can you help me?
Thanks a lot!