![]() ![]() |
Oct 30 2006, 17:06
Post
#1
|
|
|
Member Group: Full Members Posts: 15 Joined: 6-December 05 Member No.: 2436 Mp3tag Version: 2.38 |
Hi, I made my own template based on the html_dano_albumlist_js_ex, now as I wanted to try this out I get "[ SYNTAX ERROR IN FORMATTING STRING ]" in the output-file. Problem is that I'm totally new to this and can't find what I made wrong. Would be amazing if some could take look at it and tell what I was doing wrong...
CODE $filename(%_workingdir%_albumlist_js_ex.html)<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Music</title> <script language=JavaScript type=text/JavaScript> <!-- function show(id) { if(document.getElementById("show" + id).style.display == ''none'') { document.getElementById("show" + id).style.display = ''''; }else{ document.getElementById("show" + id).style.display = ''none''; } } //--> </SCRIPT> <style type="text/css"> <!-- body { background-color: #000000; font-family: 'Lucida Grande', Geneva, Arial, Verdana, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; text-align: center; margin: 0px; padding: 0px; color: #878787; } #header { width: 900px; text-align: left; vertical-align: middle; padding: 0px; margin-top: 30px; margin-right: auto; margin-bottom: 15px; margin-left: auto; } #nav { width: 900px; text-align: center; margin-top: 10px; margin-right: auto; margin-bottom: 0px; margin-left: auto; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #2c2c2c; vertical-align: middle; padding: 0px; } #footer { width: 900px; text-align: center; margin-top: 10px; margin-right: auto; margin-bottom: 5px; margin-left: auto; border-top-width: 1px; border-top-style: solid; border-top-color: #2c2c2c; vertical-align: middle; padding: 0px; font-size: 10px; color: #4E4E4E; } #content { width: 790px; text-align: left; padding: 0px; margin-right: auto; margin-left: auto; } ul { margin: 0pt; padding: 0pt 0pt 1em; list-style-type: none; list-style-image: none; list-style-position: outside; } ul.square { margin: 0pt 0pt 0pt 15px; padding: 0pt 0pt 1em; list-style-type: square; list-style-image: none; list-style-position: outside; } ul.circle { margin: 0pt 0pt 0pt 15px; padding: 0pt 0pt 1em; list-style-type: circle; list-style-image: none; list-style-position: outside; } ul.blank { margin: 0pt 0pt 0pt 15px; padding: 0pt 0pt 1em; list-style-type: none; } li { padding-bottom: 0.3em; } #nav li { margin: 0pt 38px 0pt 0pt; display: inline; } #nav li a:link { text-decoration: none; color: #FFFFFF; font-size: 11px; font-weight: bold; } #nav li a:visited { text-decoration: none; color: #FFFFFF; font-size: 11px; font-weight: bold; } #nav li a:hover { color: rgb(68, 68, 68); } #content h1 { margin: 0pt 0pt 0.5em; font-size: 24px; font-weight: normal; color: #FFFFFF; } #mainlnk { margin: 0pt; font-size: 12px; color: #FFFFFF; text-decoration: none; font-weight: bold; } #sublnk { margin: 0pt; color: #CCCCCC; text-decoration: none; } #content p { margin: 0pt 0pt 1em; } #content p.intro { font-weight: bold; color: #878787; } --> </style> </head> <body> <div id="nav"> <ul> <li><a href="#" id="navtext">Classical</a></li> <li><a href="#" id="navtext">Heavy</a></li> <li><a href="#" id="navtext">Indie</a></li> <li><a href="#" id="navtext">Misc</a></li> <li><a href="#" id="navtext">Newage</a></li> <li><a href="#" id="navtext">Pop</a></li> <li><a href="#" id="navtext">Rock</a></li> <li><a href="#" id="navtext">Soundtrack</a></li> </ul> </div> <div id="header"><img src="images/artwork_a.png" width="206" height="273" /><img src="images/artwork_b.png" width="167" height="273" /><img src="images/artwork_c.png" width="166" height="273" /><img src="images/artwork_d.png" width="166" height="273" /><img src="images/artwork_e.png" width="195" height="273" /></div> <div id="content"> <h1>$loop(%album%,1)$loopend()%_max_counter% Albums in Classical listed...</h1> <p class="intro">Overall there are %_total_files% Files in the list with a total filesize of %_total_size%. This results a total Playtime of %_total_time% Hours. <br /> To view the Albums of each Artist just click on the Name to expand the List, this is exactly the same how to view the Tracks of an Album. To make a request simply click on the ID-Number shown on the left of an Artist/Album and you'll be forwarded to a E-Mail form. Have fun! </p> <br /> $loop(%artist%) <!ARTIST START> <table width="785px" border="0" align="center" cellpadding="4"> <tr> <td width="30" align="center"><a href="#" id="mainlnk">$num(%_counter%,3)</a></td> <td id="id%artist%" width="733" align="left"><a href="java script:show(''%artist%_'');" id="mainlnk">%artist%</a> (contains $loop(%album%,1)$loopend() %_max_counter% Album(s), %_total_files% Files overall)</td> </tr> </table> <table style="display:none;" width="785" border="0" align="center" cellpadding="0" cellspacing="4">$loop(%_folderpath%) <!ALBUM START> <tr> <td width="38" align="center"><a href="#" id="sublnk">$num(%_counter%,2)</a></td> <td id="id$replace(%album%,'',)" width="735" align="left"><a href="java script:show(''$replace(%album%,'',)'');" id="sublnk">%album%</a> (contains %_total_files% Files)</td> </tr> <tr style="display:none;" id="show$replace(%album%,'',)"> <td> </td> <td>$loop(%_filename_ext%) [$num(%track%,2)] %title% $loopend() ($loop(%_filename_ext%) %_length% Minutes at %_bitrate% kbps $replace(%_codec%,Free Lossless Audio Codec,FLAC))$loopend()</td> </tr>$loopend() </table> $loopend() </div> <div id="footer"><br />Last Update on %_date%</div> </body> </html> This post has been edited by dano: Oct 30 2006, 18:25 |
|
|
|
Oct 30 2006, 18:24
Post
#2
|
|
![]() Moderator Group: Moderators Posts: 5506 Joined: 4-September 03 From: Germany Member No.: 201 Mp3tag Version: 2.55a |
If you want to use the ' sign, you must write two of them: ''
[]$% also have a special function and must be escaped, like '[' or %% -------------------- |
|
|
|
Oct 30 2006, 18:32
Post
#3
|
|
|
Member Group: Full Members Posts: 15 Joined: 6-December 05 Member No.: 2436 Mp3tag Version: 2.38 |
|
|
|
|
Oct 30 2006, 18:43
Post
#4
|
|
|
Member Group: Full Members Posts: 15 Joined: 6-December 05 Member No.: 2436 Mp3tag Version: 2.38 |
Tried that, the only thing i changed was font-family: 'Lucida Grande' to font-family: ''Lucida Grande'' , couldn't find anything else. Are the more characters than '[]$% or have i simply forgotten sth else?
|
|
|
|
Oct 30 2006, 18:47
Post
#5
|
|
![]() Moderator Group: Moderators Posts: 5506 Joined: 4-September 03 From: Germany Member No.: 201 Mp3tag Version: 2.55a |
QUOTE of an Artist/Album and you'll be forwarded to a E-Mail form. Have fun! See it? -------------------- |
|
|
|
Oct 30 2006, 19:11
Post
#6
|
|
|
Member Group: Full Members Posts: 15 Joined: 6-December 05 Member No.: 2436 Mp3tag Version: 2.38 |
Aight, thanks a lot, awesome! (:
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 24th May 2013 - 23:09 |