English > Scripts and Templates

html export question

(1/3) > >>

dan16326:
hey guys i'm just wondering how to fix an issue. everything works fine when i export but for each movie the title is stated twice ie. Watchmen - Watchmen (2009). how do i fix this so the title doesn't show twice? thx

also how would i setup a hyperlink in the details page to a url (like a trailer on youtube)

sorry i'm pretty clueless with html.

here's my current setup for refferance:

%OPTIONS%
filter="HTML Files|*.html;*.htm"
encoding="UTF8"
sortby="0"
sortdir="sdDecending"
itemsperpage="50"
recordtemplate="pages\movie.ptm"
recordfilename="movie%d.html"
pagestpl="pages\pg.ptm"
prevtpl="pages\prev_pg.ptm"
nexttpl="pages\next_pg.ptm"
pagelinktpl="pages\link_pg.ptm"
pagecurtpl="pages\cur_pg.ptm"
imagepath="images\"
fullstar="images\star_on.gif"
halfstar="images\star_on_half.gif"
nonestar="images\star_off.gif"
copyfile="images\star_on.gif<->images\star_on.gif"
copyfile="images\star_on_half.gif<->images\star_on_half.gif"
copyfile="images\star_off.gif<->images\star_off.gif"
%OPTIONS%
%HEAD%<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My Video Database</title>
<style type="text/css">
<!--
.style1 {
   font-size: 24px;
   font-weight: bold;
   color: #FFFFFF;
}
.style2 {
   font-size: 12px
}
.style3 {font-size: 14px}
.style4 {color: #FFFFFF}
.style5 {
   color: #000000;
}
.border {
   border-bottom-width: 1px;
   border-top-style: none;
   border-right-style: none;
   border-bottom-style: solid;
   border-left-style: none;
   border-bottom-color: #999999;
}
.center {
   vertical-align: middle;
}
body {
   background-color: #CCCCCC;
}
-->
</style>
</head>

<body>
<table width="760" border="0" align="center" cellspacing="0" cellpadding="0">
  <tr>
    <td bgcolor="#003399"><div align="center" class="style1">My Video Database</div></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="5">
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="5">%HEAD%

          <tr>
            <td width="50" class="border"><div align="right"><span class="style3">{%value=203}</span>.&nbsp; </div></td>
            <td width="50" class="border"><img src="{%value=poster width="48" height="62"}" /></td>
            <td width="710" class="border"> &nbsp;<a href="movie{%value=mid}.html" class="style5">{%value=origtitle} - {%value=title} ({%value=year})</a><br />
               &nbsp;<span class="style2">{%value=genre}</span><br /></td>
          </tr>         
        %FOOT%</table></td>
      </tr>
      {%value=211}
    </table></td>
  </tr>
  <tr>
    <td bgcolor="#003399"><div align="center" class="style2"><a href="http://www.videodb.info" class="style4">Generated by Personal Video Database</a></div></td>
  </tr>
</table>
</body>
</html>%FOOT%

nostra:

--- Quote ---hey guys i'm just wondering how to fix an issue. everything works fine when i export but for each movie the title is stated twice ie. Watchmen - Watchmen (2009). how do i fix this so the title doesn't show twice?
--- End quote ---

replace this text:
--- Code: ---{%value=origtitle} - {%value=title} ({%value=year})
--- End code ---
with this one:
--- Code: ---{%value=title} ({%value=year})
--- End code ---


--- Quote ---also how would i setup a hyperlink in the details page to a url (like a trailer on youtube)
--- End quote ---

How are these links stored in the database?

dan16326:
thank you new code worked like a charm.


i currently don't have links in my database but i could put them in my comments field as i don't use them.

dan16326:
sorry i lied the movie is still being double listed but now it's only like that in the details page

Luke_S:
Hey Dan,

You need to change the following line inside the movie.ptm file as well:


--- Code: ---<title>{%value=origtitle} - {%value=title} ({%value=year})</title>
--- End code ---

to


--- Code: ---<title>{%value=origtitle} ({%value=year})</title>
--- End code ---

This is just one of the minor annoyances that I fixed in my own version of the html-export page. Seeing as some users might already find it agreeable I will put a link for a zip-file with the changes I made (and a short description) under this post:

http://www.videodb.info/forum_en/index.php?topic=1414.0


/Luke

Navigation

[0] Message Index

[#] Next page

Go to full version