我正在尝试将wikiplayer添加到我的SMF论坛,但我遇到了一些麻烦......我正试图把它放在我的index.template.php中:
<!-- Wikplayer http://www.wikplayer.com -->
<script type="text/javascript" src="http://www.wikplayer.com/code.js"
data-config="{'skin':'skins/wikfull/plainBlack/skin.css','volume':50,'autoplay':true,'shuffle':true,'repeat':1,'showcomment':false,'marqueetexton':true,'placement':'bottom','showplaylist':false,'playlist':[{'title':'It%27s%20The%20Most%20Wonderful%20Time%20Of%20The%20Year','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DgFtb3EtjEic'},{'title':'All%20I%20Want%20For%20Christmas%20Is%20You','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DyXQViqx6GMY'},{'title':'Let%20It%20Snow','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DmN7LW0Y00kE'},{'title':'Jingle%20Bell%20Rock','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DitcMLwMEeMQ%23t%3D36'},{'title':'Driving%20Home%20For%20Christmas','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DczhZbqpyBm8%23t%3D27'},{'title':'Merry%20Christmas%20Everybody','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D0A8KT365wlA'},{'title':'Winter%20Wonderland','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DSHE0Jo82_34%23t%3D56'},{'title':'Santa%20Baby','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dg7T0IK99ELs'},{'title':'It%27s%20Beginning%20To%20Look%20Alot%20Like%20Christmas','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DcHh7pW29Fy8'},{'title':'Christmas','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D5aw2yuYAKoE'},{'title':'Jingle%20Bells','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DVKtOBLvPs5Q'},{'title':'Run%20Run%20Rudolph','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dl849CulLhGQ'},{'title':'Baby%20It%27s%20Cold%20Outside','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D2Rhvtzzmq-Y'},{'title':'Rocking%20Around%20The%20Christmas%20Tree','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DbnIqLlBwzrc%23t%3D15'},{'title':'Silent%20Night','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DPGjByOI9Iqw'},{'title':'Holly%20Jolly%20Christmas','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DKjiMMDZoKmY'},{'title':'Have%20Yourself%20A%20Merry%20Little%20Christmas','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DnZ6yQgBvuoI'},{'title':'Santa%20Claus%20Is%20Coming%20To%20Town','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DSnA52s7qceM'},{'title':'Last%20Christmas','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DE8gmARGvPlI'},{'title':'Merry%20Christmas%20Everyone','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D5PkUWkxGWj0'},{'title':'Shake%20Up%20Christmas','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DJ-8VCL4uSUc'},{'title':'Deck%20The%20Halls','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D3-ykZUb3AEE'},{'title':'Carol%20Of%20The%20Bells%20(Pentatonix)','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DVOGByYObUqE'},{'title':'Rudolph%20The%20Red%20Nose%20Reindeer','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D0byH9h1ClBY'},{'title':'The%20Christmas%20Song','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DSOszvL9lgSs'},{'title':'I%20Wish%20It%20Could%20Be%20Christmas%20Everyday','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DZoxQ4Ul_DME'},{'title':'Do%20They%20Know%20It%27s%20Christmas','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1AcD7hho9fs'},{'title':'Feliz%20Navidad','url':'http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DQ6ziiLE92Zg'}]}" ></script>
<!-- Wikplayer code end -->
但我总是得到这个解析错误:
Template Parse Error!
There was a problem loading the /Themes/zone99/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.
You may want to try to refresh this page or use the default theme.
syntax error, unexpected T_STRING, expecting ',' or ';'
如果我在?&gt;之外添加此代码在最后它会工作,但然后所有的论坛字体看起来更大,太大...任何人都可以用简单的方式指导我解决这个问题?谢谢!
此外,我将包括我的index.template.php @ https://www.mediafire.com/?vj0jpbn7cae9of0
答案 0 :(得分:0)
因为你得到解析错误。这意味着您在某处遗漏了冒号;
或撇号'
。如果问题仍然存在,请查找这些内容尝试在echo
语句中编写脚本。
echo '<script> your script here</script>'