Search Results for 'buddypress'
-
AuthorSearch Results
-
November 11, 2009 at 7:53 am #56431
Kapil
ParticipantHey all,
Much awaited Buddypress 1.1.x compatible version of this component is out…
Please check out http://www.wpveda.com/buddypress-kaltura-media-component-for-buddypress-version-1-1/ for more information
Added Two New Widgets :
1. Recently added Photos
2. Recently added Videos
Thanks
November 11, 2009 at 7:03 am #56429In reply to: Customized Sitewide Buddypress themes
mthoma
Participantor to be able to have 3 columns of widgets with exclusively member blog posts only instead of sitewide.
November 11, 2009 at 5:33 am #56428In reply to: New Plugin – BuddyPress Links – Beta Support
4thofficial
ParticipantThanks MrMaz. I got it now … working really well. Minor suggestion: Maybe the widget title could be customizable? Depending on the site this could be presented in many different ways.
November 10, 2009 at 11:54 pm #56425In reply to: New Plugin – BuddyPress Links – Beta Support
MrMaz
ParticipantWhich version of PHP are you using? Which version of buddypress-links do you have installed?
November 10, 2009 at 11:26 pm #56424In reply to: BuddyPress Privacy Component: An Update
Jeff Sayre
ParticipantWell, I’m behind something or other. But, it’s debatable whether or not I’m working.
November 10, 2009 at 11:06 pm #56422In reply to: Friends Function Has Disappeared…
Jeff Sayre
ParticipantIf under “BuddyPress > Component Setup” you do not see a “Friends” section, then you must have an incomplete BuddyPress install. Would you please go to your site and verify that you have bp-friends.php and a directory (folder) called bp-friends installed under /buddypress/.
November 10, 2009 at 10:49 pm #56421In reply to: New Plugin – BuddyPress Links – Beta Support
Squashroby
ParticipantHi,
Just installed WPMU + Buddypress on my HSphere box. I’m getting the following error when I try to activate buddypress links:
Plugin could not be activated: fatal error
Parse error: syntax error, unexpected ‘;’, expecting ‘(‘ in /home/hsphere/local/home/planchristmas/planchristmas.com/wp-content/plugins/buddypress-links/bp-links.php on line 488
Any pointers for a newbie would be greatly appreciated.
Thanks
November 10, 2009 at 10:17 pm #56418In reply to: New Plugin – BuddyPress Links – Beta Support
MrMaz
ParticipantBP Links is totally separate from any of the WordPress links functionality. Members can add links from their profile page. There is a Links menu item directly under the Groups menu item.
November 10, 2009 at 10:17 pm #56417In reply to: Buddypress on all but Root Blog
Andy Peatling
KeymasterIs anyone interested in writing a how-to post for the main BuddyPress.org blog on this subject? It would be nice to hear it from someone who has discovered this setting.
November 10, 2009 at 9:27 pm #56414In reply to: Buddypress on all but Root Blog
Tore
ParticipantThanks a lot Scotm! I had problems with having this work but now it does!
November 10, 2009 at 9:15 pm #56413In reply to: New Plugin – BuddyPress Links – Beta Support
4thofficial
ParticipantAmazing work MrMaz I’ve downloaded and wanted to check it out, but having a few problems. I think I might not fully understand what to do next once its installed. When I go to BP Links in admin it says no links found? I”ve added a couple of links to the traditional Links section in the admin, but thats not working. I’ve also added the widget to my homepage (like your hockey site) and get nothing. I think my Links section is working correctly, but again I have the same issue of how to add links. Appreciate any advice + thanks again for amazing plugin. My sites here: http://footiemate.com
November 10, 2009 at 9:14 pm #56412In reply to: BuddyPress Privacy Component: An Update
abcde666
Participantgreat news Jeff !!!
…it seems you are woking “behind the scenes” as well…..
just kidding
November 10, 2009 at 8:54 pm #5640921cdb
ParticipantI encountered the same issue. Marked the problem down to thickbox.js which comes bundled with wordpress.
I’m afraid but i don’t have a solution for this annoying problem, but i wrote a trac ticket that you can find here:
November 10, 2009 at 8:40 pm #56406In reply to: how to access to bbpress admin from buddypress??
Jeff Sayre
Participant@hardseatsleeper
Have you enabled bbPress in WPMU’s backend as Site Admin? You go to “BuddyPress > Forums Setup” and click the appropriate button.
November 10, 2009 at 8:35 pm #56405In reply to: gzinflate error on upgrading
Jeff Sayre
ParticipantI installed via SimpleScripts on my website’s Control Panel
This is more than likely the issue. Read this post (and follow its link) for more insight:
https://buddypress.org/forums/topic/404-error-in-front-page-please-help#post-16777
November 10, 2009 at 8:33 pm #56404In reply to: how to access to bbpress admin from buddypress??
5069396
InactiveI’m also experimenting with this today. As an admin I tried to start a new group with a new forum but was given a warning on the group creation screen, saying I needed to configure forums correctly at:
/wp-admin/admin.php?page=buddypress/bp-forums.php
but that page doesn’t exist. I might not have these forums configured correctly, as I can’t see where I’m supposed to start a thread or create a new forum, as I did in bbpress.
November 10, 2009 at 8:22 pm #56402In reply to: how to access to bbpress admin from buddypress??
Jeff Sayre
ParticipantForums integrate into groups. Therefore, if bbPress has been activated and a given group has enabled forums, then you need to navigate to a group that you belong to and click the “Forum” menu. You can then see and respond to existing threads or create a new thread.
November 10, 2009 at 8:22 pm #56401In reply to: next release dates for BP 1.1.3 / BP 1.2 ?
Jean-Pierre Michaud
Participantoh, btw, do you think most of the tweaks here could be added to the next version?
https://buddypress.org/forums/topic/faq-how-to-code-snippets-and-solutions
November 10, 2009 at 8:06 pm #56398In reply to: next release dates for BP 1.1.3 / BP 1.2 ?
Jeff Sayre
ParticipantThis is pure speculation on my part, but I would guess that 1.1.3 could be released within 2-3 weeks. It could be a little sooner or later.
As far as version 1.2, if BP-release history offers anything to go on, I would guess that there could be a 1.1.4 before a 1.2 release. Even if the versioning jumps directly from 1.1.3 to 1.2, I would not expect that to happen until after the new year. There are still a few big-picture items that need to make it into BP to meet the roadmap for v1.2 and WPMU 2.9 has yet to be released.
But, what do I know. Andy and jjj are the ones to answer. I’m just an outsider waiting to hang out with the cool kids.
November 10, 2009 at 8:05 pm #56397In reply to: how to access to bbpress admin from buddypress??
Lriggle
ParticipantI can’t even find where you create a forum topic in the new integrated BBPress.
November 10, 2009 at 7:32 pm #56393Marcelo Vetter
Participant.. on all BP system.. (BuddyPress, not BB)
November 10, 2009 at 7:24 pm #56391In reply to: How to display avatars in normal theme at 125px?
abcde666
ParticipantNovember 10, 2009 at 6:57 pm #56389In reply to: How to display avatars in normal theme at 125px?
Sven Lehnert
Participant@ John James Jacoby,
I had a look in the bp-events-avatar.php to understand more what’s going on there.
I’m thinking the avatar part could be like it is now.
It would be enough, if the original resized image would be available.
I did some changes to the bp-events-avatar.php and make a plugin from it.
For the moment, I will use the modified functions in custom components until you offer a better way to do it. I think it would be really great if the original resized image would be saved by the core.
Be careful!
This Plugin is just a play around on a fun buddypress installation.
<?php
/*
Plugin Name:bp-events-avatar
Description: This plugin add a template tag bp_event_flyer() to display the event flyer
Version: 0.0.1
License: GPL
*/
function bp_event_flyer( $args = '' ) {
echo bp_get_event_flyer( $args );
}
function bp_get_event_flyer( $args = '' ) {
global $bp, $events_template;
$defaults = array(
'type' => 'org',
'width' => 'auto',
'height' => 'auto',
'class' => 'avatar',
'id' => false,
'alt' => __( 'Event avatar', 'bp-events' )
);
$r = wp_parse_args( $args, $defaults );
extract( $r, EXTR_SKIP );
/* Fetch the avatar from the folder, if not provide backwards compat. */
if ( !$avatar = bp_event_fetch_avatar( array( 'item_id' => $events_template->event->id, 'object' => 'event', 'type' => $type, 'avatar_dir' => 'event-avatars', 'alt' => $alt, 'css_id' => $id, 'class' => $class, 'width' => $width, 'height' => $height ) ) )
$avatar = '<img src="' . attribute_escape( $events_template->event->avatar_thumb ) . '" class="avatar" alt="' . attribute_escape( $events_template->event->name ) . '" />';
return apply_filters( 'bp_get_event_flyer', $avatar );
}
/*
Based on contributions from: Beau Lebens - http://www.dentedreality.com.au/
Modified for BuddyPress by: Andy Peatling - http://apeatling.wordpress.com/
*/
/***
* Set up the constants we need for avatar support
*/
if ( !defined( 'BP_AVATAR_THUMB_WIDTH' ) )
define( 'BP_AVATAR_THUMB_WIDTH', 50 );
if ( !defined( 'BP_AVATAR_THUMB_HEIGHT' ) )
define( 'BP_AVATAR_THUMB_HEIGHT', 50 );
if ( !defined( 'BP_AVATAR_FULL_WIDTH' ) )
define( 'BP_AVATAR_FULL_WIDTH', 150 );
if ( !defined( 'BP_AVATAR_FULL_HEIGHT' ) )
define( 'BP_AVATAR_FULL_HEIGHT', 150 );
if ( !defined( 'BP_AVATAR_ORIGINAL_MAX_WIDTH' ) )
define( 'BP_AVATAR_ORIGINAL_MAX_WIDTH', 450 );
if ( !defined( 'BP_AVATAR_ORIGINAL_MAX_FILESIZE' ) )
define( 'BP_AVATAR_ORIGINAL_MAX_FILESIZE', get_site_option( 'fileupload_maxk' ) * 1024 );
if ( !defined( 'BP_AVATAR_DEFAULT' ) )
define( 'BP_AVATAR_DEFAULT', BP_PLUGIN_URL . '/bp-xprofile/images/none.gif' );
if ( !defined( 'BP_AVATAR_DEFAULT_THUMB' ) )
define( 'BP_AVATAR_DEFAULT_THUMB', BP_PLUGIN_URL . '/bp-xprofile/images/none-thumbnail.gif' );
function bp_event_fetch_avatar( $args = '' ) {
global $bp, $current_blog;
$defaults = array(
'item_id' => false,
'object' => 'user', // user OR group OR blog OR custom type (if you use filters)
'type' => 'thumb',
'avatar_dir' => false,
'width' => false,
'height' => false,
'class' => 'avatar',
'css_id' => false,
'alt' => __( 'Avatar Image', 'buddypress' ),
'no_grav' => false // If there is no avatar found, return false instead of a grav?
);
$params = wp_parse_args( $args, $defaults );
extract( $params, EXTR_SKIP );
if ( !$item_id ) {
if ( 'user' == $object )
$item_id = $bp->displayed_user->id;
else if ( 'group' == $object )
$item_id = $bp->groups->current_group->id;
else if ( 'blog' == $object )
$item_id = $current_blog->id;
$item_id = apply_filters( 'bp_core_avatar_item_id', $item_id, $object );
if ( !$item_id ) return false;
}
if ( !$avatar_dir ) {
if ( 'user' == $object )
$avatar_dir = 'avatars';
else if ( 'group' == $object )
$avatar_dir = 'group-avatars';
else if ( 'blog' == $object )
$avatar_dir = 'blog-avatars';
$avatar_dir = apply_filters( 'bp_core_avatar_dir', $avatar_dir, $object );
if ( !$avatar_dir ) return false;
}
if ( !$css_id )
$css_id = $object . '-' . $item_id . '-avatar';
if ( $width )
$html_width = " width='{$width}'";
else
$html_width = ( 'thumb' == $type ) ? ' width="' . BP_AVATAR_THUMB_WIDTH . '"' : ' width="' . BP_AVATAR_FULL_WIDTH . '"';
if ( $height )
$html_height = " height='{$height}'";
else
$html_height = ( 'thumb' == $type ) ? ' height="' . BP_AVATAR_THUMB_HEIGHT . '"' : ' height="' . BP_AVATAR_FULL_HEIGHT . '"';
$avatar_folder_url = apply_filters( 'bp_core_avatar_folder_url', get_blog_option( BP_ROOT_BLOG, 'siteurl' ) . '/' . basename( WP_CONTENT_DIR ) . '/blogs.dir/' . BP_ROOT_BLOG . '/files/' . $avatar_dir . '/' . $item_id, $item_id, $object, $avatar_dir );
$avatar_folder_dir = apply_filters( 'bp_core_avatar_folder_dir', WP_CONTENT_DIR . '/blogs.dir/' . BP_ROOT_BLOG . '/files/' . $avatar_dir . '/' . $item_id, $item_id, $object, $avatar_dir );
/* If no avatars have been uploaded for this item, display a gravatar */
if ( !file_exists( $avatar_folder_dir ) && !$no_grav ) {
if ( empty( $bp->grav_default->{$object} ) )
$default_grav = 'wavatar';
else if ( 'mystery' == $bp->grav_default->{$object} )
$default_grav = BP_PLUGIN_URL . '/bp-core/images/mystery-man.jpg';
else
$default_grav = $bp->grav_default->{$object};
if ( $width ) $grav_size = $width;
else if ( 'full' == $type ) $grav_size = BP_AVATAR_FULL_WIDTH;
else if ( 'thumb' == $type ) $grav_size = BP_AVATAR_THUMB_WIDTH;
if ( 'user' == $object ) {
$ud = get_userdata( $item_id );
$grav_email = $ud->user_email;
} else if ( 'group' == $object || 'blog' == $object ) {
$grav_email = "{$item_id}-{$object}@{$bp->root_domain}";
}
$grav_email = apply_filters( 'bp_core_gravatar_email', $grav_email, $item_id, $object );
$gravatar = apply_filters( 'bp_gravatar_url', 'https://secure.gravatar.com/avatar/' ) . md5( $grav_email ) . '?d=' . $default_grav . '&s=' . $grav_size;
return apply_filters( 'bp_core_fetch_avatar', "<img src='{$gravatar}' alt='{$alt}' id='{$css_id}' class='{$class}'{$html_width}{$html_height} />", $params );
} else if ( !file_exists( $avatar_folder_dir ) && $no_grav )
return false;
/* Set the file names to search for to select the full size or thumbnail image. */
$avatar_name = ( 'org' == $type ) ? '-bporg' : '-bpthumb';
$avatar_name = ( 'full' == $type ) ? '-bpfull' : $avatar_name;
$legacy_user_avatar_name = ( 'full' == $type ) ? '-avatar2' : '-avatar1';
$legacy_group_avatar_name = ( 'full' == $type ) ? '-groupavatar-full' : '-groupavatar-thumb';
if ( $av_dir = opendir( $avatar_folder_dir ) ) {
while ( false !== ( $avatar_file = readdir($av_dir) ) ) {
if ( preg_match( "/{$avatar_name}/", $avatar_file ) || preg_match( "/{$legacy_user_avatar_name}/", $avatar_file ) || preg_match( "/{$legacy_group_avatar_name}/", $avatar_file ) )
$avatar_url = $avatar_folder_url . '/' . $avatar_file;
}
}
closedir($av_dir);
return apply_filters( 'bp_core_fetch_avatar', "<img src='{$avatar_url}' alt='{$alt}' id='{$css_id}' class='{$class}'{$html_width}{$html_height} />", $params );
}
function bp_events_delete_existing_avatar( $args = '' ) {
global $bp;
$defaults = array(
'item_id' => false,
'object' => 'user', // user OR group OR blog OR custom type (if you use filters)
'avatar_dir' => false
);
$args = wp_parse_args( $args, $defaults );
extract( $args, EXTR_SKIP );
if ( !$item_id ) {
if ( 'user' == $object )
$item_id = $bp->displayed_user->id;
else if ( 'group' == $object )
$item_id = $bp->groups->current_group->id;
else if ( 'blog' == $object )
$item_id = $current_blog->id;
$item_id = apply_filters( 'bp_core_avatar_item_id', $item_id, $object );
if ( !$item_id ) return false;
}
if ( !$avatar_dir ) {
if ( 'user' == $object )
$avatar_dir = 'avatars';
else if ( 'group' == $object )
$avatar_dir = 'group-avatars';
else if ( 'blog' == $object )
$avatar_dir = 'blog-avatars';
$avatar_dir = apply_filters( 'bp_core_avatar_dir', $avatar_dir, $object );
if ( !$avatar_dir ) return false;
}
if ( 'user' == $object ) {
/* Delete any legacy meta entries if this is a user avatar */
delete_usermeta( $item_id, 'bp_core_avatar_v1_path' );
delete_usermeta( $item_id, 'bp_core_avatar_v1' );
delete_usermeta( $item_id, 'bp_core_avatar_v2_path' );
delete_usermeta( $item_id, 'bp_core_avatar_v2' );
}
$avatar_folder_dir = apply_filters( 'bp_core_avatar_folder_dir', WP_CONTENT_DIR . '/blogs.dir/' . BP_ROOT_BLOG . '/files/' . $avatar_dir . '/' . $item_id, $item_id, $object, $avatar_dir );
if ( !file_exists( $avatar_folder_dir ) )
return false;
if ( $av_dir = opendir( $avatar_folder_dir ) ) {
while ( false !== ( $avatar_file = readdir($av_dir) ) ) {
if ( ( preg_match( "/-bpfull/", $avatar_file ) || preg_match( "/-bpthumb/", $avatar_file ) || preg_match( "/-bporg/", $avatar_file ) ) && '.' != $avatar_file && '..' != $avatar_file )
@unlink( $avatar_folder_dir . '/' . $avatar_file );
}
}
closedir($av_dir);
@rmdir( $avatar_folder_dir );
do_action( 'bp_core_delete_existing_avatar', $args );
return true;
}
function bp_events_avatar_handle_crop( $args = '' ) {
global $bp;
$defaults = array(
'object' => 'user',
'avatar_dir' => 'avatars',
'item_id' => false,
'original_file' => false,
'crop_w' => BP_AVATAR_FULL_WIDTH,
'crop_h' => BP_AVATAR_FULL_HEIGHT,
'crop_x' => 0,
'crop_y' => 0
);
$r = wp_parse_args( $args, $defaults );
extract( $r, EXTR_SKIP );
if ( !$original_file )
return false;
if ( !file_exists( WP_CONTENT_DIR . '/' . $original_file ) )
return false;
if ( !$item_id )
$avatar_folder_dir = apply_filters( 'bp_core_avatar_folder_dir', WP_CONTENT_DIR . dirname( $original_file ), $item_id, $object, $avatar_dir );
else
$avatar_folder_dir = apply_filters( 'bp_core_avatar_folder_dir', WP_CONTENT_DIR . '/blogs.dir/' . BP_ROOT_BLOG . '/files/' . $avatar_dir . '/' . $item_id, $item_id, $object, $avatar_dir );
if ( !file_exists( $avatar_folder_dir ) )
return false;
require_once( ABSPATH . '/wp-admin/includes/image.php' );
require_once( ABSPATH . '/wp-admin/includes/file.php' );
/* Delete the existing avatar files for the object */
bp_core_delete_existing_avatar( array( 'object' => $object, 'avatar_path' => $avatar_folder_dir ) );
/* Make sure we at least have a width and height for cropping */
if ( !(int)$crop_w )
$crop_w = BP_AVATAR_FULL_WIDTH;
if ( !(int)$crop_h )
$crop_h = BP_AVATAR_FULL_HEIGHT;
/* Set the full and thumb filenames */
$full_filename = wp_hash( $original_file . time() ) . '-bpfull.jpg';
$thumb_filename = wp_hash( $original_file . time() ) . '-bpthumb.jpg';
$org_filename = wp_hash( $original_file . time() ) . '-bporg.jpg';
/* Crop the image */
$full_cropped = wp_crop_image( WP_CONTENT_DIR . $original_file, (int)$crop_x, (int)$crop_y, (int)$crop_w, (int)$crop_h, BP_AVATAR_FULL_WIDTH, BP_AVATAR_FULL_HEIGHT, false, $avatar_folder_dir . '/' . $full_filename );
$thumb_cropped = wp_crop_image( WP_CONTENT_DIR . $original_file, (int)$crop_x, (int)$crop_y, (int)$crop_w, (int)$crop_h, BP_AVATAR_THUMB_WIDTH, BP_AVATAR_THUMB_HEIGHT, false, $avatar_folder_dir . '/' . $thumb_filename );
rename (WP_CONTENT_DIR . $original_file, $avatar_folder_dir . '/' . $org_filename );
/* Remove the original */
@unlink( WP_CONTENT_DIR . $original_file );
return true;
}
?>November 10, 2009 at 6:51 pm #56386pivey
ParticipantSame issue here.
No other plugin installed except buddypress.
The errors i get are the same as Marcelo Vetter describes
November 10, 2009 at 6:35 pm #56385In reply to: BuddyPress Privacy Component: An Update
Jeff Sayre
ParticipantOkay, I guess it is time for an update.
I’ve had some great feedback from a few of the alpha 1 testers. Based on that, I’m proceeding with the next phase. At this stage, I might skip the alpha 2 stage and move directly to the first public beta.
What does this mean? Well, depending on my progress, the first public beta release of my Privacy Component will be in about 3 weeks. I cannot promise that for certain, but let’s say I’m aiming for December 1st as the release date.
At that stage, the component while fully-functional, will still be considered for use in non-production environments.
-
AuthorSearch Results