Page 1 of 1

File path in html?

Posted: 2013-11-21 15:16:28
by Elderewen
Hi.

I'm a new user of the software. I tried to build my own template from those available.

As you can see, I tried to add a link that automatically plays the movie form the html file :

Image

However, I don't understand how to use the information contained in the file path field:

Image

Thanks in advance for help and replies.

Posted: 2013-11-22 15:16:25
by fulvio53s03
Maybe better if you post the code of your template....
:??:

Posted: 2013-11-22 22:16:45
by Elderewen
Sorry. Here is my template :

Code: Select all

<html><head>
<style TYPE="text/css">
/* Generated by CaScadeS, a stylesheet editor for Mozilla Composer */

  body { background-color: rgb(229, 229, 229);
    }

  font, th, td, p { font-family: Verdana,Arial,Helvetica,sans-serif;
    }

  a:link, a:active, a:visited { color: rgb(38, 38, 38);
    }

  a:hover { text-decoration: underline;
    color: rgb(221, 105, 0);
    }

  hr { border-style: solid;
    border-color: rgb(209, 215, 220);
    border-width: 1px 0px 0px;
    height: 0px;
    }

  .bodyline { border: 1px solid rgb(152, 170, 177);
    background-color: rgb(255, 255, 255);
    }

  .forumline { border: 2px solid rgb(38, 38, 38);
    background-color: rgb(255, 255, 255);
    }

  td.row1 { background-color: rgb(239, 239, 239);
    }

  td.row2 { background-color: rgb(222, 227, 231);
    }

  td.row3 { background-color: rgb(209, 215, 220);
    }

  td.rowpic { background-color: rgb(255, 255, 255);
    background-repeat: repeat-y;
    background-image: url(images/cellpic2.jpg);
    }

  th { color: rgb(255, 255, 255);
    font-size: 11px;
    font-weight: bold;
    background-color: rgb(38, 38, 38);
    height: 25px;
    background-image: url(images/cellpic3.gif);
    }

  td.cat, td.catHead, td.catSides, td.catLeft, td.catRight, td.catBottom { border: medium solid rgb(255, 255, 255);
    background-image: url(images/cellpic1.gif);
    background-color: rgb(209, 215, 220);
    height: 28px;
    }

  td.cat, td.catHead, td.catBottom { border-width: 0px;
    height: 29px;
    }

  th.thHead, th.thSides, th.thTop, th.thLeft, th.thRight, th.thBottom, th.thCornerL, th.thCornerR { border: medium solid rgb(255, 255, 255);
    font-weight: bold;
    height: 28px;
    }

  td.row3Right, td.spaceRow { border: medium solid rgb(255, 255, 255);
    background-color: rgb(209, 215, 220);
    }

  th.thHead, td.catHead { border-width: 1px 1px 0px;
    font-size: 12px;
    }

  th.thSides, td.catSides, td.spaceRow { border-width: 0px 1px;
    }

  th.thRight, td.catRight, td.row3Right { border-width: 0px 1px 0px 0px;
    }

  th.thLeft, td.catLeft { border-width: 0px 0px 0px 1px;
    }

  th.thBottom, td.catBottom { border-width: 0px 1px 1px;
    }

  th.thTop { border-width: 1px 0px 0px;
    }

  th.thCornerL { border-width: 1px 0px 0px 1px;
    }

  th.thCornerR { border-width: 1px 1px 0px 0px;
    }

  .maintitle, h1, h2 { font-weight: bold;
    font-size: 22px;
    font-family: "Trebuchet MS",Verdana,Arial,Helvetica,sans-serif;
    text-decoration: none;
    line-height: 120%;
    color: rgb(0, 0, 0);
    }

  .gen { font-size: 12px;
    }

  .genmed { font-size: 11px;
    }

  .gensmall { font-size: 10px;
    }

  .gen, .genmed, .gensmall { color: rgb(0, 0, 0);
    }

  a.gen, a.genmed, a.gensmall { color: rgb(38, 38, 38);
    text-decoration: none;
    }

  a.gen:hover, a.genmed:hover, a.gensmall:hover { color: rgb(221, 105, 0);
    text-decoration: underline;
    }

  .mainmenu { font-size: 11px;
    color: rgb(0, 0, 0);
    }

  a.mainmenu { text-decoration: none;
    color: rgb(38, 38, 38);
    }

  a.mainmenu:hover { text-decoration: underline;
    color: rgb(221, 105, 0);
    }

  .cattitle { font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;
    color: rgb(38, 38, 38);
    }

  a.cattitle { text-decoration: none;
    color: rgb(38, 38, 38);
    }

  a.cattitle:hover { text-decoration: underline;
    }

  .forumlink { font-weight: bold;
    font-size: 12px;
    color: rgb(38, 38, 38);
    }

  a.forumlink { text-decoration: none;
    color: rgb(38, 38, 38);
    }

  a.forumlink:hover { text-decoration: underline;
    color: rgb(221, 105, 0);
    }

  .nav { font-weight: bold;
    font-size: 11px;
    color: rgb(0, 0, 0);
    }

  a.nav { text-decoration: none;
    color: rgb(38, 38, 38);
    }

  a.nav:hover { text-decoration: underline;
    }

  .topictitle { font-weight: bold;
    font-size: 11px;
    color: rgb(0, 0, 0);
    }

  a.topictitle:link { text-decoration: none;
    color: rgb(38, 38, 38);
    }

  a.topictitle:visited { text-decoration: none;
    color: rgb(84, 147, 180);
    }

  a.topictitle:hover { text-decoration: underline;
    color: rgb(221, 105, 0);
    }

  .name { font-size: 11px;
    color: rgb(0, 0, 0);
    }

  .postdetails { font-size: 10px;
    color: rgb(0, 0, 0);
    }

  .postbody { font-size: 12px;
    }

  a.postlink:link { text-decoration: none;
    color: rgb(38, 38, 38);
    }

  a.postlink:visited { text-decoration: none;
    color: rgb(84, 147, 180);
    }

  a.postlink:hover { text-decoration: underline;
    color: rgb(221, 105, 0);
    }

  .code { border: 1px solid rgb(209, 215, 220);
    font-family: Courier,'Courier New',sans-serif;
    font-size: 11px;
    color: rgb(0, 102, 0);
    background-color: rgb(250, 250, 250);
    }

  .quote { border: 1px solid rgb(209, 215, 220);
    font-family: Verdana,Arial,Helvetica,sans-serif;
    font-size: 11px;
    color: rgb(68, 68, 68);
    line-height: 125%;
    background-color: rgb(250, 250, 250);
    }

  .copyright { font-size: 10px;
    font-family: Verdana,Arial,Helvetica,sans-serif;
    color: rgb(68, 68, 68);
    letter-spacing: -1px;
    }

  a.copyright { color: rgb(68, 68, 68);
    text-decoration: none;
    }

  a.copyright:hover { color: rgb(0, 0, 0);
    text-decoration: underline;
    }

  input, textarea, select { border-color: rgb(0, 0, 0);
    color: rgb(0, 0, 0);
    font-family: Verdana,Arial,Helvetica,sans-serif;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    font-size: 11px;
    line-height: normal;
    font-size-adjust: none;
    font-stretch: normal;
    }

  input.post, textarea.post, select { background-color: rgb(255, 255, 255);
    }

  input { text-indent: 2px;
    }

  input.button { background-color: rgb(239, 239, 239);
    color: rgb(0, 0, 0);
    font-size: 11px;
    font-family: Verdana,Arial,Helvetica,sans-serif;
    }

  input.mainoption { background-color: rgb(250, 250, 250);
    font-weight: bold;
    }

  input.liteoption { background-color: rgb(250, 250, 250);
    font-weight: normal;
    }

  .helpline { border-style: none;
    background-color: rgb(222, 227, 231);
    }

  .style1 {
	color: #FF0000;
	font-weight: bold;
	}
	
  .style2 {
	color: #B1D7DA;
	font-weight: bold;
	}
.genmed1 {font-size: 11px;
}
.gensmall1 {font-size: 10px;
}
</style></head>
<body bgcolor=body>
$$ITEM_BEGIN
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
	<tr>
		<th height="25" colspan="2" align="left" nowrap="nowrap" class="postlink postbody">  $$ITEM_TRANSLATEDTITLE</th>
	</tr>  
	 
	<tr>
		<td>
		
		<table width="100%" border="0">
  <tr>
    <td class="row1" align="center" valign="middle" height="50"><table width="170px" border="0">
      
	  <tr>
        <td align="center"><a href="$$ITEM_URL" target=_blank>$$ITEM_PICTURE</a></td>
      </tr>
	<tr>
        <td align="center">$$ITEM_APPR10</td>
      </tr>
    </table></td>
    <td class="row2" align="center" valign="middle" height="50">
	<table width="100%" border="0">
      <tr>
        <td><table width="100%" border="0">
      <tr>
        <td><table width="100%" border="0">
          <tr>
            <td><table width="400px" border="0">
              <tr>
                <td width="80px"><span class="genmed1"><b>Catégorie</b></span></td>
                <td><span class="gensmall1">$$ITEM_CATEGORY</span></td>
              </tr>
              <tr>
                <td width="80px"><span class="genmed1"><b>Année</b></span></td>
                <td><span class="gensmall1">$$ITEM_YEAR</span></td>
              </tr>
			  <tr>
                <td width="80px"><span class="genmed1"><b>Réalisateur</b></span></td>
                <td><span class="gensmall1">$$ITEM_DIRECTOR</span></td>
              </tr>
              <tr>
                <td width="80px" valign="top"><span class="genmed1"><b>Acteurs</b></span></td>
                <td><span class="gensmall1">$$ITEM_ACTORS</span></td>
              </tr>
            </table></td>
			
            <td><table width="100%" border="0">
                            <tr>
                <td width="80px"><span class="genmed1"><b>Pays</b></span></td>
                <td><span class="gensmall1">$$ITEM_COUNTRY</span></td>
              </tr>
			  <tr>
                <td width="150px"><span class="genmed1"><b>Titre original</b></span></td>
                <td><span class="gensmall1">$$ITEM_ORIGINALTITLE</span></td>
              </tr>
             <tr>
                <td width="80px"><span class="genmed1"><b>Durée</b></span></td>
                <td><span class="gensmall1">$$ITEM_LENGTH min</span></td>
              </tr>
              <tr>
                <td width="150px"><span class="genmed1"><b>Taille</b></span></td>
                <td><span class="gensmall1">$$ITEM_SIZE Mo</span></td>
              </tr>
			  
			
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>		  
	 </tr>
    </table></td>
      </tr>
      <tr>
        <td width="100%"><table width="100%" border="0">
          <tr>
            <td width="80px" valign="top"><span class="genmed1"><b>Description</b></span></td>
            <td><span class="gensmall1">$$ITEM_DESCRIPTION</span></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
		
		</td>
	</tr>
</table>

<br>
$$ITEM_END
<p><span class="forumlink">Total : $$TOTALMOVIES films - Catalogue créé le $$DATE avec <a href="http://www.antp.be/software/moviecatalog/" target="_blank">Ant Movie Catalog</a></span></p>
</body></html>
I just would like to add a link that automatically launches the default video player. :/
But my skills in html are very limited. :hum:

Posted: 2013-11-22 23:03:03
by soulsnake
Hi,

After this :

Code: Select all

     <tr>
        <td align="center"><a href="$$ITEM_URL" target=_blank>$$ITEM_PICTURE</a></td>
      </tr>
you can add this :

Code: Select all

     <tr>
        <td align="center"><a href="$$ITEM_FILEPATH">PLAY</a></td>
      </tr>
Just be careful your relative link is ok regarding your generated html file.

Soulsnake.