array('post'), 'order' => $dedication_order, 'orderby' => $dedication_orderby, 'posts_per_page' => -1, 'post_status' => $post_status, 'category_name' => $category_name, ); //} query_posts($args); if (have_posts()) { $slide_counter = 0; ?>

    ID, 'ghostpool_destination_user_id', true); $to_user = get_user_by('id', $to_user_id); $to_user_email = get_post_meta($post->ID, 'ghostpool_destination_user_email', true); $displayed_id = bp_displayed_user_id(); echo "post->ID => " . $post->ID; echo "from_user_id => " . $from_user_id; echo "to_user_id => " . $to_user_id; echo "displayed_id " . $displayed_id; // En el perfil del usuario sólo mostrar las dedicadas por él y para él. El resto se descartan. if ( bp_is_active( 'dedications' ) ) { if (($displayed_id != $from_user_id) && ($displayed_id != $to_user_id)) { continue; // me salto esta dedicatoria } } // Usuario actual puede ver la dedicatoria? if (get_post_status($post-ID) == 'private') { if (($current_user->ID != $from_user_id) && ($current_user->ID != $to_user_id)) { continue; // me salto esta dedicatoria } } $video = get_post_meta($post->ID, 'ghostpool_dedication_url', true); $artist = get_post_meta($post->ID, 'ghostpool_dedication_artist', true); $song = get_post_meta($post->ID, 'ghostpool_dedication_song', true); // Video Type $vimeo = strpos($video, "vimeo.com"); $yt1 = strpos($video, "youtube.com"); $yt2 = strpos($video, "youtu.be"); if (($vimeo) OR ($yt1) OR ($yt2)) { if ($yt2) { //youtu.be $video_id = substr(parse_url($video, PHP_URL_PATH), 1); $data_type = 'youtube_single'; $data_path = 'http://gdata.youtube.com/feeds/api/videos/' . $video_id . '?v=2&alt=jsonc'; } if ($yt1) { //youtube.com $video = parse_str(parse_url($video, PHP_URL_QUERY), $my_array_of_vars); $video_id = $my_array_of_vars['v']; $data_type = 'youtube_single'; $data_path = 'http://gdata.youtube.com/feeds/api/videos/' . $video_id . '?v=2&alt=jsonc'; } if ($vimeo) { //vimeo.com $video_id = substr(parse_url($video, PHP_URL_PATH), 1); $data_type = 'vimeo_single'; $data_path = 'http://vimeo.com/api/v2/video/' . $video_id . '.json'; } ?>
  • FROM: ID); ?>TO: ID); ?> TO: ID, 'ghostpool_destination_user_name', true); ?>
1) { ?>
controls_prev
controls_playlist_toggle
controls_next
facebook
twitter
google