AllenPayne
Forum Replies Created
-
Forum: Plugins
In reply to: [uCAT - Next Story] Custom post type … uCat doesn't work properly.Maybe if I make uCat browse posts by publish date? would that work? not sure how it’s done currently.
I fixed it by adding one line (see below) to this function in the nextend-facebook-connect.php file.
Can anyone check and tell me if what i did is a good solution?
add_filter('get_avatar', 'new_fb_insert_avatar', 5, 5); function new_fb_insert_avatar($avatar = '', $id_or_email, $size = 96, $default = '', $alt = false) { $id = 0; if (is_numeric($id_or_email)) { $id = $id_or_email; } else if (is_string($id_or_email)) { $u = get_user_by('email', $id_or_email); $id = $u->id; } else if (is_object($id_or_email)) { $id = $id_or_email->user_id; } if ($id == 0) return $avatar; $pic = get_user_meta($id, 'fb_profile_picture', true);
if($pic) $avatar = "<img alt='fb_avatar' src='$pic' class='avatar avatar-{$size} photo' height='{$size}' width='{$size}' />"; return $avatar; // this is the line i added
if (!$pic || $pic == '') return $avatar; $avatar = preg_replace('/src=("|\').*?("|\')/i', 'src=\'' . $pic . '\'', $avatar); return $avatar; }
How did you do it? I used this function to show page,post & event comments in BP activity. It works for Pages and Posts, but it doesn’t work for Events.
Any ideas?
function activity_publish_post_type_comments( $types ) { $types[] = 'page'; $types[] = 'post'; $types[] = 'new_event'; return $types; } add_filter( 'bp_blogs_record_comment_post_types', 'activity_publish_post_type_comments' );
I have no idea how to write a function to fetch the Buddypress avatars.
Any plans to add this feature to the next version?
Forum: Plugins
In reply to: [Plugin: Events-Manager] user capabilities not savingI have the same problem.
I save the settings and everything works fine. Then after a few days the settings reset to default.
Any ideas?
I also use EM with BP and S2Member Pro.
Forum: Plugins
In reply to: [Smooth Slider] slider Event Manager plugin – Hide past eventsThe author of Smooth Slider said a year ago that he would release this feature in the next version.
Any news on that?
Forum: Plugins
In reply to: [Download Manager] how to add links to buttons .i’d like to know this as well. I don’t want to upload the files on my server. How can i add a direct link from a different place?
Thanks @gabriel.
Forum: Plugins
In reply to: [CubePoints] Has this plugin been abandoned?myCreed looks great indeed. The only thing that concerns me is, will it work with the Cubepoints Buddypress Integration plugin?
Forum: Plugins
In reply to: [CubePoints] Has this plugin been abandoned?@madegood. It certainly is. I would even pay to see this plugin updated on a regular basis.
It would be really nice if someone would take over and continue to develop Cubepoints.
Forum: Plugins
In reply to: [CubePoints] Has this plugin been abandoned?Forum: Plugins
In reply to: [Author Avatars List/Block] Show Only Avatars with Images?I still can’t figure out where to place your code. I would really appreciate some help. Thanks.
Forum: Plugins
In reply to: [Author Avatars List/Block] Show Only Avatars with Images?Okay, but where do i put this code? I use shortcode to display the avatar list on my site.
Forum: Plugins
In reply to: [Author Avatars List/Block] Show Only Avatars with Images?Well, I use buddypress and my members can upload an avatar (or use gravatar) on the profile page.
The default avatar is currently displayed to all users who haven’t uploaded an avatar yet (or don’t have gravatar).
The default avatar (mystery-man.jpg) is located at:
wp-content/plugins/buddypress/bp-core/images/mystery-man.jpg
Forum: Plugins
In reply to: [Author Avatars List/Block] Show Only Avatars with Images?Can anyone help?