From d6a5799abef34cd4f2d19696f9b2d1ec446fc16d Mon Sep 17 00:00:00 2001 From: david Date: Thu, 9 Aug 2012 15:25:34 +0000 Subject: [PATCH] =?UTF-8?q?Tarea=20#979=20->=20Pedir=20un=20alias=20cuando?= =?UTF-8?q?=20se=20hace=20una=20dedicatoria=20a=20un=20usuario=20no=20regi?= =?UTF-8?q?strado=20Tarea=20#980=20->=20Separar=20m=C3=A1s=20la=20bandera?= =?UTF-8?q?=20y=20el=20"TO"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@93 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6 --- .../includes/bp-dedication-create-dedication.php | 5 +++++ .../score/dedications/single/new-dedication.php | 3 +++ wp-content/themes/score/loop-dedication-data.php | 11 +++++++---- wp-content/themes/score/video-slider.php | 2 +- 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/wp-content/plugins/bp-dedication/includes/bp-dedication-create-dedication.php b/wp-content/plugins/bp-dedication/includes/bp-dedication-create-dedication.php index 4beb869..5c9de10 100644 --- a/wp-content/plugins/bp-dedication/includes/bp-dedication-create-dedication.php +++ b/wp-content/plugins/bp-dedication/includes/bp-dedication-create-dedication.php @@ -30,6 +30,10 @@ function bp_dedication_create_new_dedication() { if (isset($_POST['friend_email'])) { $friend_email = $_POST['friend_email']; + if (isset($_POST['dedicate_to_name'])) { + $friend_name = $_POST['dedicate_to_name']; + } + if (isset($_POST['dedicate_to_country'])) { $friend_country = $_POST['dedicate_to_country']; } @@ -127,6 +131,7 @@ function bp_dedication_create_new_dedication() { } if (isset($friend_email) && (is_email($friend_email))) { + add_post_meta($post_id, 'ghostpool_destination_user_name', $friend_name); add_post_meta($post_id, 'ghostpool_destination_user_email', $friend_email); add_post_meta($post_id, 'ghostpool_destination_user_country', $friend_country); } diff --git a/wp-content/themes/score/dedications/single/new-dedication.php b/wp-content/themes/score/dedications/single/new-dedication.php index b787457..4e3d595 100644 --- a/wp-content/themes/score/dedications/single/new-dedication.php +++ b/wp-content/themes/score/dedications/single/new-dedication.php @@ -53,6 +53,9 @@ global $bp;