diff --git a/wp-content/plugins/bp-dedication/includes/js/dedication-script.js b/wp-content/plugins/bp-dedication/includes/js/dedication-script.js index 39ef0e5..0a90e07 100644 --- a/wp-content/plugins/bp-dedication/includes/js/dedication-script.js +++ b/wp-content/plugins/bp-dedication/includes/js/dedication-script.js @@ -56,6 +56,10 @@ jQuery(document).ready(function(){ } }); + if (j('#video_url').val()) { + j('#video_url').trigger('change'); + } + j("#user-list li a.remove").live("click", function() { var friend_id = j(this).prop('id'); diff --git a/wp-content/themes/score/dedications/single/new-dedication.php b/wp-content/themes/score/dedications/single/new-dedication.php index 63bd28e..93408b7 100644 --- a/wp-content/themes/score/dedications/single/new-dedication.php +++ b/wp-content/themes/score/dedications/single/new-dedication.php @@ -1,19 +1,47 @@ ID, 'ghostpool_dedication_artist', true); + $song = get_post_meta($post->ID, 'ghostpool_dedication_song', true); + + break; + default : die(); + + } + ?> -

@@ -29,7 +57,6 @@ global $members_template; -
  • @@ -38,15 +65,15 @@ global $members_template;
  • - +
  • - +
  • - +
  • diff --git a/wp-content/themes/score/lib/buddypress/functions-buddypress.php b/wp-content/themes/score/lib/buddypress/functions-buddypress.php index 7f06144..8b2addd 100644 --- a/wp-content/themes/score/lib/buddypress/functions-buddypress.php +++ b/wp-content/themes/score/lib/buddypress/functions-buddypress.php @@ -523,7 +523,7 @@ function bp_member_add_dedicate_a_song_button() { 'block_self' => true, 'wrapper_class' => 'dedicate-button dedicate-song', 'wrapper_id' => 'dedicate-button-' . $friend_id, - 'link_href' => wp_nonce_url( $bp->loggedin_user->domain . bp_get_dedication_slug() . '/new-dedication/' . $friend_id . '/', 'dedications_new_dedication' ), + 'link_href' => wp_nonce_url( $bp->loggedin_user->domain . bp_get_dedication_slug() . '/new-dedication/user/' . $friend_id . '/', 'dedications_new_dedication' ), 'link_text' => __( 'Dedicate a song', 'buddypress' ), 'link_title' => __( 'Dedicate a song', 'buddypress' ), 'link_id' => 'member-' . $friend_id, diff --git a/wp-content/themes/score/single-video.php b/wp-content/themes/score/single-video.php index 3b8256c..9e2d196 100644 --- a/wp-content/themes/score/single-video.php +++ b/wp-content/themes/score/single-video.php @@ -1,4 +1,3 @@ -

    diff --git a/wp-content/themes/score/video-slider.php b/wp-content/themes/score/video-slider.php index 19af53c..2008dcc 100644 --- a/wp-content/themes/score/video-slider.php +++ b/wp-content/themes/score/video-slider.php @@ -5,10 +5,10 @@ require(ghostpool_inc . 'options.php'); if ( is_user_logged_in() ): -global $gp_settings, $current_user, $bp; +global $current_user, $bp; get_currentuserinfo(); -//if (is_home() || is_front_page()) { +if (is_home() || is_front_page() || ( $bp->current_component == 'dedications' )) { $posts_per_page = $theme_video_slides; $dedication_orderby = "date"; @@ -24,14 +24,14 @@ get_currentuserinfo(); 'post_status' => $post_status, 'category_name' => $category_name, ); + query_posts($args); +} - -//} - -query_posts($args); +if (is_singular()) { + // +} if (have_posts()) { - $slide_counter = 0; ?> @@ -67,13 +67,13 @@ if (have_posts()) { $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 "post->ID => " . $post->ID; echo "from_user_id => " . $from_user_id; echo "to_user_id => " . $to_user_id; - echo "displayed_id " . $displayed_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 ( $bp->current_component == 'dedications' ) { if (($displayed_id != $from_user_id) && ($displayed_id != $to_user_id)) { continue; // me salto esta dedicatoria } @@ -115,6 +115,7 @@ if (have_posts()) { ?>
  • + @@ -166,7 +167,7 @@ if (have_posts()) { @@ -178,6 +179,7 @@ if (have_posts()) {