I reworked the Profiler variant of the template to include awards.
If you want to include the awards similar to my reviews, you can do this now also in DVD Profiler HTML window. Provided you use the latest version of the awards plugin.
<HTML>
<HEAD>
<script language="JavaScript">
<DP NAME="HEADER_VARS">
</script>
</HEAD>
<BODY>
[table][/tr]<br/>
[td]
<SCRIPT language=javascript>
document.write('[img]http://www.invelos.com/mpimages/' + DP_UPC.substring(0,2) + '/' + DP_UPC + 'f.jpg[/img]' );</script>
[/td]<br/>
[td] [/td]<br/>
<br/>
[td][b][size=11pt]<DP NAME="ORIGINAL_TITLE" UseTitleIfBlank="YES" >[/size] (<DP NAME="PRODYEAR">/<DP NAME="COUNTRY_OF_ORIGIN">)[/b]
<br/>
<SCRIPT language=javascript>
var IMDb = DP_Notes.match(/<IMDb>(tt\d+)<\/IMDb>/gi);
var strLink = "";
if (IMDb != null) strLink = "[url=http://www.imdb.com/title/" + IMDb + "]IMDb[/url]";
var Wiki = DP_Notes.match(/<Wikipedia>(.*?)<\/Wikipedia>/gi);
if (Wiki != null)
{
if (strLink != "") strLink += " | ";
strLink += "[url=" + Wiki + "]Wikipedia[/url]";
}
if (strLink != "") document.write(strLink + "<br/>");
</script>
[hr]<br/>
[table]<br/>
[tr][td][b]<SCRIPT language=javascript>
if (DP_MediaTypeBluRay) { document.write('[img]http://www.invelos.com/images/BluRayLogo.png[/img]') }
if (DP_MediaTypeDVD) { document.write('[img]http://www.invelos.com/images/DVDLogo.png[/img]') }</script>[/b][/td][td]<DP NAME="MEDIA_COMPANIES"> (<DP NAME="LOCALITY">)[/td][/tr]<br/>
[tr][td][b]Director:[/b][/td][td]<DP NAME="CREW_DIRECTION">[/td][/tr]<br/>
[tr][td][b]Writing:[/b][/td][td]<DP NAME="CREW_WRITING" Suffix=")" Divider="), " RoleDivider=" (" ShowRoles="YES">[/td][/tr]<br/>
[tr][td][b]Length:[/b][/td][td]<DP NAME="RUNTIME" TotalInMins="TRUE"> min.[/td][/tr] <br/>
[tr][td][b]Video:[/b][/td][td]<DP NAME="VIDFORMATS" Ratios="YES">[/td][/tr]<br/>
[tr][td][b]Audio:[/b][/td][td]<DP NAME="AUDIOTRACKS"> [/td][/tr]<br/>
[tr][td][b]Subtitles:[/b][/td][td]<DP NAME="SUBTITLES">[/td][/tr]<br/>
[/table]<br/>
[/td]
[/tr][/table]<br/>
[hr]<br/>
[b]Stars:[/b]<br/>
<DP NAME="CAST" RoleDivider=" as " ShowRoles="YES" ShowRoles="NO" MaxList="5" Divider="BREAK">
<br/><br/>
[b]Plot:[/b]<br/>
<DP NAME="OVERVIEW">
<br/><br/>
<SCRIPT language=javascript>
var ViewerDB = new ActiveXObject("CCViewerDb.clsCCVDB");
ViewerDB.Open("C:\\Users\\Tom\\Documents\\CCViewer3\\ViewerDatabase.mdb")
var OriginalTitle = DP_OriginalTitle;
if (OriginalTitle=="") OriginalTitle = DP_Title;
var CCV_Awards = ViewerDB.GetMovieAwards(OriginalTitle, DP_ProductionYear.toString(), false);
if (CCV_Awards.Count != 0)
{
document.write("[b]Awards:[/b]<br/>");
var strWon = "";
var strNom = "";
for (iAward = 0; iAward < CCV_Awards.Count; iAward++)
{
Award = CCV_Awards(iAward);
if (Award.HasWon)
{
strWon+="[tr][td]" + Award.AwardName + " (" + Award.AwardYear + ")[/td][td] [/td]";
strWon+="[td]" + Award.Category;
if (Award.GetNomineeString() != "") strWon+=" (" + Award.GetNomineeString() + ")";
strWon+="[/td][/tr]<br/>";
}
else
{
strNom+="[tr][td]" + Award.awardName + " (" + Award.awardYear + ")[/td][td] [/td]";
strNom+="[td]" + Award.awardCategory;
if (Award.GetNomineeString() != "") strNom+=" (" + Award.GetNomineeString() + ")";
strNom+="[/td][/tr]<br/>";
}
}
if (strWon != "")
{
document.write("[u]Won:[/u]<br/>[table]<br/>");
document.write(strWon);
document.write("[/table]<br/>");
}
if (strNom != "")
{
document.write("[u]Nominated:[/u]<br/>[table]<br/>");
document.write(strNom);
document.write("[/table]<br/>");
}
document.write("<br/>");
}
</SCRIPT>
[b]Extras:[/b]<br/>
[list]<br/>
<SCRIPT language=javascript>
var Features = "<DP NAME="FEATURES" Divider="|">";
var CCV_Features = Features.split("|");
for (iFeature in CCV_Features)
{
Feature = CCV_Features[iFeature];
document.write("[li]" + Feature + "[/li]<br/>");
}
</SCRIPT>
[/list]
<br/><br/>
[center][size=12pt][b][u]My Thoughts:[/u][/b][/size][/center]<br/>
<br/>
<br/>
[b]Rating:[/b]
</BODY>
</HTML>
You only have to adjust the line
ViewerDB.Open("C:\\Users\\Tom\\Documents\\CCViewer3\\ViewerDatabase.mdb")
to point to your awards database.