• fuxor

    (@fuxor)


    I am using the Audio Player plugin but I want to place the “WP-PostRatings” and “WP-PostViews” code in the custom html for the audio player area in the plugin’s script…

    // Not in a feed so return formatted object tag
    else {
    if( get_option(“audio_player_transparentpagebg”) ) $bgparam = ‘<param name=”wmode” value=”transparent” />’;
    else $bgparam = ‘<param name=”bgcolor” value=”‘ . get_option(“audio_player_pagebgcolor”) . ‘” />’;
    return ‘<table width=”412″ height=”112″ border=”0″ cellpadding=”0″ cellspacing=”5″ background=”https://www.therundown.tv/images/bg-audio_player.jpg&#8221; bgcolor=”#333333″><tr><td width=”100″ height=”100″ valign=”top”><image src=”https://www.therundown.tv/images/akonthumb.jpg”></td><td><table width=”100%” height=”100″ border=”0″ cellspacing=”0″ cellpadding=”0″><tr><td height=”33″></td></tr><tr><td height=”38″><table width=”100%” height=”100%” border=”0″ cellpadding=”0″ cellspacing=”0″ bgcolor=”#333333″><tr><td><image src=”https://www.therundown.tv/images/layout_audioplayer_rating.jpg”></td><td width=”142″ rowspan=”2″> </td><td align=”right”><image src=”https://www.therundown.tv/images/layout_audioplayer_listens.jpg”></td></tr><tr><td>6456</td><td align=”right” style=”padding-right:4px;”>’ . $listens . ‘</td></tr></table></td></tr><tr><td height=”5″></td></tr><tr><td height=”24″ bgcolor=”#333333″><object type=”application/x-shockwave-flash” data=”‘ . $ap_playerURL . ‘” width=”290″ height=”24″ id=”audioplayer’ . $ap_playerID . ‘”><param name=”movie” value=”‘ . $ap_playerURL . ‘” /><param name=”FlashVars” value=”‘ . $flashVars . ‘” /><param name=”quality” value=”high” /><param name=”menu” value=”false” />’ . $bgparam . ‘</object></td></tr></table></td></tr></table>’;
    }
    }

    ==========

    BELOW is the call for “WP-PostViews” view count display…

    ### Function: Display The Post Views
    function the_views($display = true) {
    $post_views = intval(post_custom(‘views’));
    $views_options = get_option(‘views_options’);
    $output = str_replace(‘%VIEW_COUNT%’, number_format($post_views), $views_options[‘template’]);
    if($display) {
    echo $output;
    } else {
    return $output;
    }
    }

    ============

    BELOW is the variable for “WP-PostRatings” ratings display…

    %RATINGS_IMAGES%

    How can I include both of these for my “Audio Player” plugin’s customization code area?

Viewing 1 replies (of 1 total)
  • Thread Starter fuxor

    (@fuxor)

    ‘ . $listens . ‘

    is the area i wanted my post views to display…

Viewing 1 replies (of 1 total)
  • The topic ‘Questoin about Audio Player plugin’ is closed to new replies.