diff --git a/wp-content/plugins/bp-dedication/includes/bp-dedication-ajax.php b/wp-content/plugins/bp-dedication/includes/bp-dedication-ajax.php
index c610fc7..5436f13 100644
--- a/wp-content/plugins/bp-dedication/includes/bp-dedication-ajax.php
+++ b/wp-content/plugins/bp-dedication/includes/bp-dedication-ajax.php
@@ -16,7 +16,7 @@ function bp_dedication_ajax_autocomplete_results() {
$data = array();
foreach ( $users as $user ) {
- $suggestions[] = $user->display_name . ' (' . $user->user_login . ')';
+ $suggestions[] = $user->user_login;
$data[] = $user->ID;
}
diff --git a/wp-content/themes/score/index.php b/wp-content/themes/score/index.php
index f4c411c..3b3d6b3 100644
--- a/wp-content/themes/score/index.php
+++ b/wp-content/themes/score/index.php
@@ -1,6 +1,6 @@
@@ -13,23 +13,19 @@ $contador = 0;
$urls_video = array();
?>
-
class="shift-down">
-
+
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();
// Usuario actual puede ver la dedicatoria?
if ($post->post_status == 'private') {
- if (($current_user->ID != $from_user_id) && ($current_user->ID != $to_user_id)) {
+ if (($displayed_id != $gp_settings['from_user_id']) && ($displayed_id != $gp_settings['to_user_id'])) {
continue; // me salto esta dedicatoria
}
}
@@ -63,20 +59,9 @@ $urls_video = array();
- ID, 'ghostpool_dedication_artist', true);
- $song = get_post_meta($post->ID, 'ghostpool_dedication_song', true);
- $to_user_id = get_post_meta($post->ID, 'ghostpool_destination_user_id', true);
- $to_user = get_user_by ('id', $to_user_id);
- ?>
-
-
- ID, 24); ?>
-
TO: ID); ?>
-
-
-
TO: user_nicename; ?>
-
+
+
FROM:
+
TO:
diff --git a/wp-content/themes/score/post-loop-dedication.php b/wp-content/themes/score/post-loop-dedication.php
index e5b8bcf..494bc06 100644
--- a/wp-content/themes/score/post-loop-dedication.php
+++ b/wp-content/themes/score/post-loop-dedication.php
@@ -25,29 +25,17 @@
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();
// Usuario actual puede ver la dedicatoria?
if ($post->post_status == 'private') {
- if (($current_user->ID != $from_user_id) && ($current_user->ID != $to_user_id)) {
+ if (($displayed_id != $gp_settings['from_user_id']) && ($displayed_id != $gp_settings['to_user_id'])) {
continue; // me salto esta dedicatoria
}
- }
+ }
+
$contador += 1;
- $artist = get_post_meta($post->ID, 'ghostpool_dedication_artist', true);
- $song = get_post_meta($post->ID, 'ghostpool_dedication_song', true);
- $artist_song = $artist . '. ' . $song;
- $artist_song_span = '
'.$artist.''.'. '.$song;
- $new_name = cutstr($artist_song_span, 38, '');
- if ($new_name != $artist_song_span) {
- $new_name .= '...';
- }
-
?>
>
@@ -64,16 +52,11 @@
-
-
-
FROM:
-
-
-
-
TO:
+
+
FROM:
+
TO:
-