WordPress.org

Ready to get started?Download WordPress

Forums

Newbie question about installing xspf player (6 posts)

  1. tyronerock
    Member
    Posted 8 years ago #

    I am completely new to php. I am trying to get xspf player installed on my wp blog. I have uploaded all the files to the wp-plugins folder and such and have tried adding the code <?php xspf_player::start('category-tag'); ?> to one of my template pages but it does not even show up on the page. It does however show up in the plugins management section of wp and has been activated. If anyone could help me understand what I am doing wrong, it would be greatly appreciated.

    Which page am I supposed to be putting this code into and where? I tried putting it on the main index template.
    Thanks in advance

  2. jewishfringe
    Member
    Posted 8 years ago #

    I'm having trouble too but nobody seems to give a shit.

  3. Zvonko
    Member
    Posted 8 years ago #

    I'm having trouble as well. The player seems to work mainly in Safari.

    Please advise.

  4. Samuel B
    moderator
    Posted 8 years ago #

    Where do you want it? If in sidebar - put the <?php xspf_player::start('category-tag'); ?> wherever you want it to appear there.

    If you want to put it on a page or in a post, get a plugin like "Preserve Code Formatting" (There are plenty of others that allow code execution inside a page/post).
    http://www.coffee2code.com/wp-plugins/#preservecodeformatting
    Activate it and insert your <?php xspf_player::start('category-tag'); ?> in the page or post.

    Similarly if you want it in the header - insert code in header.php- footer - footer.php.

  5. tyronerock
    Member
    Posted 8 years ago #

    Ok...here is where I stand...

    I have added the code to embed the player and i am now trying to create a category to name in the

    "xspf_player::start('category-tag'); ?> statement, but i am getting the following error when trying to create a playlist called listen.

    "WordPress database error: [Unknown column 'random' in 'field list']
    INSERT INTO wp_xspf_player_categories(name, random) VALUES ('listen', '')

    Does anyone know how to correct this?

    Also the player is only showing in the sidebar of my comments page. The code is added to the sidebar.php of the theme template.

    Any help is much appreciated.thx

  6. Mordeth
    Member
    Posted 8 years ago #

    My problem is that i dont get how i can embed it. Could someone please give a step by step newbie help.

    I done something like this: administration=> manage=>files=>sidebar.php... and here i dont have a clue where i should insert the tag. If someone could tell me where in i.e. the default template i would really apreciate it!

Topic Closed

This topic has been closed to new replies.

About this Topic