Help please with(Adding HTML Player in the right place in index.template) :D

Started by Elizabeth II, November 30, 2013, 04:34:55 PM

Previous topic - Next topic

Elizabeth II

I'm trying to add this code to index.template

<!-- Wikplayer -->
<script type="text/javascript" src=""
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':''},{'title':'All%20I%20Want%20For%20Christmas%20Is%20You','url':''},{'title':'Let%20It%20Snow','url':''},{'title':'Jingle%20Bell%20Rock','url':''},{'title':'Driving%20Home%20For%20Christmas','url':''},{'title':'Merry%20Christmas%20Everybody','url':''},{'title':'Winter%20Wonderland','url':''},{'title':'Santa%20Baby','url':''},{'title':'It%27s%20Beginning%20To%20Look%20Alot%20Like%20Christmas','url':''},{'title':'Christmas','url':''},{'title':'Jingle%20Bells','url':''},{'title':'Run%20Run%20Rudolph','url':''},{'title':'Baby%20It%27s%20Cold%20Outside','url':''},{'title':'Rocking%20Around%20The%20Christmas%20Tree','url':''},{'title':'Silent%20Night','url':''},{'title':'Holly%20Jolly%20Christmas','url':''},{'title':'Have%20Yourself%20A%20Merry%20Little%20Christmas','url':''},{'title':'Santa%20Claus%20Is%20Coming%20To%20Town','url':''},{'title':'Last%20Christmas','url':''},{'title':'Merry%20Christmas%20Everyone','url':''},{'title':'Shake%20Up%20Christmas','url':''},{'title':'Deck%20The%20Halls','url':''},{'title':'Carol%20Of%20The%20Bells%20(Pentatonix)','url':''},{'title':'Rudolph%20The%20Red%20Nose%20Reindeer','url':''},{'title':'The%20Christmas%20Song','url':''},{'title':'I%20Wish%20It%20Could%20Be%20Christmas%20Everyday','url':''},{'title':'Do%20They%20Know%20It%27s%20Christmas','url':''},{'title':'Feliz%20Navidad','url':''}]}" ></script>
<!-- Wikplayer code end -->

It is html music player for christmas, when I add it right at bottom of index template it works fine but everything seems a bit bigger, board descriptions, whos online etc ect..

It says in instructions "Please place the code for your music player into your HTML page, immediately under the beginning of the <body> tag or <body ..." but I think I'm messing up somewhere when I try and add it there I get template parse error..

Can someone maybe add it in the right place for me? Thank you!

Burke ♞ Knight

How do I ask support questions the smart way?
How can I get my problems solved faster?

Please do not use Help as a topic. Be descriptive in subject, so we can know what it is about.

Elizabeth II

Elizabeth II

Quote from: BurkeKnight on November 30, 2013, 04:45:55 PM
Try this.

Got this;

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 ';'

Burke ♞ Knight

Replace with the original.
There is something in the code you are trying to insert that causes the template parse error.

A link to where you got it would be good.

Elizabeth II

Quote from: BurkeKnight on November 30, 2013, 04:54:31 PM
Replace with the original.
There is something in the code you are trying to insert that causes the template parse error.

A link to where you got it would be good.

Well if I add it right to the end of the file it works fine, it's just the issue of the size of resolution of the board descriptions and other things seem to increase

(Btw, this is my test forum, it may not seem that much bigger but on my original forum with the amount of boards the increase is very noticeable.

Burke ♞ Knight

That is because you must be putting it outside the php closing.

As for changing the sizes, that is also due to the way it is coded.
I think even if got it to work the other way, it would have done same thing.


I would strongly discourage this sort of thing.

The music will start playing as soon as it has loaded - and I don't think it'll keep its position between pages, so if a user sees the first page, music starts playing, then they go to the next page and the music restarts. This is likely to be more annoying than cute.
No good deed goes unpunished / All helpful urges should be circumvented

I have something to say: it's better to burn out than to fade away. There can be only one.

Elizabeth II

Noted, but it seems anything I add fonts seem to go bigger..

If I add this (without player)

<script src="" type="text/javascript"></script>

It will have the same issue as adding the media player with bigger fonts.. and generally the forum looking bigger..

Burke ♞ Knight

Then they may have something in their javascript file that is conflicting.

I agree with Arantor.
Music coming on right as page loads is major turn off on sites.
If I come across one, I close the tab right away.

Also, he does have a point about changing pages.
Not sure if it will reset the music or not.

Elizabeth II

It's strange because when I try it with the headers and footers mod it works without the fonts going bigger (the snow html code) but if I try with the music player code when I reload it the forum will come up for a brief moment (the fonts normal size), flash, and I can then only see the background image of the forum, nothing else, and the music plays tho..

Elizabeth II


Put it in a popup window so people can use it if they want, and the player isn't reset by switching pages.