Ticket #944 -> Habilitar invitaciones al portal aparte de las dedicatorias

Ticket #921 -> Arreglado fallo

git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@44 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6
This commit is contained in:
David Arranz 2012-07-27 17:52:27 +00:00
parent ff1fc7a7fc
commit 846bfef61b
4 changed files with 17 additions and 2 deletions

View File

@ -612,7 +612,7 @@ function invite_anyone_screen_one_content() {
<li>
<input type="checkbox" name="invite_anyone_groups[]" id="invite_anyone_groups-<?php bp_group_id() ?>" value="<?php bp_group_id() ?>" <?php if ( $from_group == bp_get_group_id() || array_search( bp_get_group_id(), $returned_groups) ) : ?>checked<?php endif; ?> />
<label for="invite_anyone_groups-<?php bp_group_id() ?>" class="invite-anyone-group-name"><?php bp_group_avatar_mini() ?> <span><?php bp_group_name() ?></span></label>
<label for="invite_anyone_groups-<?php bp_group_id() ?>" class="invite-anyone-group-name"><?php bp_group_avatar(array('width' => 100, 'height' => 100)) ?> <span><?php bp_group_name() ?></span></label>
</li>
<?php endwhile; ?>

View File

@ -51,6 +51,7 @@ class Top_Members extends WP_Widget {
* The frontend function
*/
function widget( $args, $instance ) {
global $bp;
extract( $args );
// default values
@ -170,6 +171,13 @@ class Top_Members extends WP_Widget {
{
$user->user_firstname = $user->user_login;
}
$invite_anyone_link = '';
if (bp_is_active(BP_INVITE_ANYONE_SLUG) ) :
$_link = $bp->loggedin_user->domain . $bp->invite_anyone->slug . '/';
$invite_anyone_link = '<a class="button" title="' . __( 'Invite your friends' ) . '" href="' . $_link . '">' . __( 'Invite your friends' ) . '</a>';
endif;
//replace anchors in usertemplate
//author_slug / display_name
@ -186,6 +194,8 @@ class Top_Members extends WP_Widget {
$output = str_replace("%nrofposts%",$post,$output);
$output = str_replace("%nickname%",$user->user_login,$output);
$output = str_replace("%displayname%",$user->display_name,$output);
$output = str_replace("%invitefriends%",$invite_anyone_link,$output);
$gravatar_detect = strpos($output,"%gravatar%");

View File

@ -1244,4 +1244,9 @@ color: #325670;
padding: 20px;
float: left;
width: 42%;
}
#invite-anyone-group-list li {
height: 100px !important;
list-style: none !important;
}

View File

@ -105,7 +105,7 @@ if (have_posts()) {
}
}
$urls_video[] = $videos;
$urls_video[] = $video;
// Video Type
$vimeo = strpos($video, "vimeo.com");