Forums

Give help. Get help.

  • # March 9, 2009 at 9:03 pm

    Darren from Potlatch Presents here again. . .

    Can anyone give me some advice on how to move a widget object into my customized sidebars for WP? For instance: I want my MP3 Audio player to be placed in the sidebar item that says "here is our stream section." Problem is, I cant find out where this MP3 player is being called from and therefore cannot place it into the appropriate div. I successfully moved a Flickr plugin over to my sidebar by placing the following PHP into my photos.php (which is acting as a sidebar):

    Code:
    < ?php get_flickrRSS(array('num_items' => 5, ‘type’ => ‘user’, ‘id’ => ‘35472943@N03’)); ?>

    unfortunately when i try to do this with the PHP for the MP3 player, it gives an error.

    This could easily be something that is inherently screwy with the plugin that i installed, but I am hoping that I can get pointed in the right direction in order to place it where I want it to go. . .

    Once again, any help would be appreciated. This is my second post on css-tricks.com and am very thankful for the help this site has provided me with. I hope that I am presenting my issue clearly and with enough information to be comprehensible to everyone. Please let me know if you need any additional info to help with this problem.

    Here is a link to the site: http://www.potlatchpresents.com/test

    and here is relevant CSS and PHP:

    Code:
    #sounds {
    float: left;
    width: 280px;
    height: 847px;
    background: url(images/left-sb.jpg);
    text-align: left;
    }

    #sounds #stream {
    width: 240px;
    float: left;
    height: 200px;
    border: 3px solid gray;
    padding: 10px;
    margin: 0 auto;
    }

    #sounds #podcast {
    width: 240px;
    float: left;
    height: 200px;
    border: 3px solid gray;
    margin: 0 auto;
    padding: 10px;
    }

    here is the sounds.php

    Code:

    here is our stream section

    < ?php include (TEMPLATEPATH . "/flash-mp3-player/flash-player-widget.php"); ?>

    here is our podcast section

    and here is my index.php (if that helps):

    Code:
    < ?php get_header(); ?>
    < ?php include (TEMPLATEPATH . "/sounds.php"); ?>
    < ?php include (TEMPLATEPATH . "/photos.php"); ?>

    < ?php if (have_posts()) : ?>

    < ?php while (have_posts()) : the_post(); ?>

    ” rel=”bookmark” title=”Permanent Link to < ?php the_title_attribute(); ?>“>< ?php the_title(); ?>

    < ?php the_time('F jS, Y') ?>

    < ?php the_content('Read the rest of this entry »'); ?>

    < ?php the_tags('Tags: ', ', ', '
    ‘); ?> Posted in < ?php the_category(', ') ?> | < ?php edit_post_link('Edit', '', ' | '); ?> < ?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>

    < ?php endwhile; ?>

    • < ?php next_posts_link('« Older Entries') ?>
    • < ?php previous_posts_link('Newer Entries »') ?>

    < ?php else : ?>

    Not Found

    Sorry, but you are looking for something that isn’t here.

    < ?php include (TEMPLATEPATH . "/searchform.php"); ?>

    < ?php endif; ?>

    < ?php get_sidebar(); ?>

    < ?php get_footer(); ?>

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag