Search Results for 'custom activity page'
-
Search Results
-
Topic: Modifying Activity Page
Site:http://www.vwrx-project.co.uk Using WordPress 4.6 and BuddyPress 2.6.2
I’ve just installed BuddyPress as I want to create a community based website within WordPress.
My end goal is to have a site where multiple users can add content regarding their car project/build, where each update they add is displayed on the homepage of the site, but where viewing a users profile you could, should you wish, view someones project in its entirety with all posts and content or view just the images they’ve uploaded.
I’m in the process of creating my own theme for this website but I’m having a hard to changing anything within BuddyPress.
I’ve copied the entire BuddyPress plugin directory into my theme and then each document I edit I make a note of, so then I can remove any files I haven’t touched. I wanted to start with something simple before moving onto bigger modifications so opted to try and change the Site-Wide Activity title that displays.
I have found bp-activity-actions.php line 450 & class-bp-activity-component.php line 125 and edited, saved and uploaded/overwrote these files into my themes version of Buddypress but can’t get the title to change.
Once I’d done that I was hoping to edit the activity page to remove almost everything, the only part I really wanted to keep was the activity feed itself so that anyone visiting my sites homepage will see the most recent updates etc.
Have I missed/overlooked something silly. I’m more accustomed to creating websites myself with CSS and PHP etc but as I want this site to be easy to use and accessible to multiple people adding content I felt this would be a better route to take.
Hope everybody is doing well.
Im having trouble using a plugin. The plugin is by likebtn.com and allows me to sort activity by most liked content. However it requires modifying a bit of code and im having quite the difficult time. I have tried pasting this line of code into a few different files. Currently im trying to paste it into ‘public_html/wp-content/plugins/buddypress/bp-activity/bp-activity-template.php’. When i try to include it into the PHP file the activity page breaks and a syntax error appears saying there was an unexpected ‘<‘ at the top of the new code. Here is where i pasted the code and the instructions provided by likebtn.comfunction bp_has_activities( $args = '' ) { global $activities_template; // Get BuddyPress. $bp = buddypress(); /* * Smart Defaults. */ //Filtering by Likes.Custom Code. <?php query_posts($query_string . '&meta_key=Likes&orderby=meta_value&meta_type=numeric&order=DESC'); ?> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', get_post_format() ); ?> <?php endwhile; ?> // User filtering. $user_id = bp_displayed_user_id() ? bp_displayed_user_id() : false;https://likebtn.com/en/wordpress-like-button-plugin#sort_posts_by_likes
Hi!
First of all thanks for the amazing work you are doing..
In my buddypress installation I’ve a rating associated to each member (each member can rate each other) and I would like to add “rating” to the “order by” option of the member page.Now I can do it with a widget that orders members with the function I report below. But I would like to add the possibility to order members by rating in the “order by” option.
I’ve seen the topic https://buddypress.org/support/topic/adding-new-order-by-on-members-loop/ trying to adapt it to my case, but the order by rating option do not work properly.
It is possible to adapt that solution (or another working) to my case?
Thanks in advance.function prorevs_users_by_rating($limit) { global $wpdb; if (current_user_can('administrator')): $users = $wpdb->get_results( $wpdb->prepare( "SELECT a.ID as id, a.user_login AS name, a.display_name AS displayname, AVG(star) AS rating, COUNT(star) AS reviews FROM {$wpdb->prefix}users AS a LEFT JOIN {$wpdb->prefix}bp_activity AS b ON a.ID = b.usercheck WHERE (b.is_activated is null or b.is_activated=1) GROUP BY id ORDER BY rating DESC LIMIT %d", $limit ) ); else: $users = $wpdb->get_results( $wpdb->prepare( "SELECT a.ID as id, a.user_login AS name, a.display_name AS displayname, AVG(star) AS rating, COUNT(star) AS reviews FROM {$wpdb->prefix}users AS a LEFT JOIN {$wpdb->prefix}bp_activity AS b ON a.ID = b.usercheck WHERE (b.is_activated is null or b.is_activated=1) GROUP BY id ORDER BY rating DESC LIMIT %d", $limit ) ); endif; return prorevs_print_users($users); } function prorevs_users_by_rating_shortcode($atts) { extract(shortcode_atts(array('limit' => 10), $atts)); return prorevs_users_by_rating($limit); }Hi Guys
Im using custom post activities to pull in rss feeds into user activity feeds. I use wp rss aggregator and feedtopost to create a custom posts feed from other social networks which i can then assign to individual members. So at the moment I have pull in the feed excerpt as a title and the featured image into the feed using this code<?php // Don't forget to add the 'buddypress-activity' support! add_post_type_support( 'social_feed', 'buddypress-activity' ); function customize_page_tracking_args() { // Check if the Activity component is active before using it. if ( ! bp_is_active( 'activity' ) ) { return; } bp_activity_set_post_type_tracking_args( 'social_feed', array( 'component_id' => buddypress()->blogs->id, 'action_id' => 'new_social_feed', 'bp_activity_admin_filter' => __( 'My Social Feed', 'custom-domain' ), 'bp_activity_front_filter' => __( 'Social Feed', 'custom-domain' ), 'contexts' => array( 'activity', 'member' ), 'activity_comment' => true, 'bp_activity_new_post' => __( '%1$s posted a new <a href="%2$s">Social Media Update</a>', 'custom-textdomain' ), 'bp_activity_new_post_ms' => __( '%1$s posted a new <a href="%2$s">Social Media Update</a>, on his profile', 'custom-textdomain' ), 'position' => 100, ) ); } add_action( 'init', 'customize_page_tracking_args', 1000 ); // Adds title of custom Blog Post Type instead of excerpt function record_cpt_activity_content( $cpt ) { if ( 'new_social_feed' === $cpt['type'] ) { $cpt['content'] = get_the_title(); } return $cpt; } add_filter('bp_after_activity_add_parse_args', 'record_cpt_activity_content'); // Adds custom blog featured image to activity feed function record_cpt_activity_content_featured_image( $cpt ) { if ( 'new_social_feed' === $cpt['type'] ) { global $wpdb, $post, $bp; $theimg = wp_get_attachment_image_src( get_post_thumbnail_id( bp_get_activity_secondary_item_id() ) ); $cpt['content'] .= '<img src="' . $theimg[0] . '" width="160px" height="30px">'; } return $cpt; } add_filter('bp_after_activity_add_parse_args', 'record_cpt_activity_content_featured_image'); ?>This works well but i would like to add a link back to the original social media post.I have setup wp rss aggregator to add the original link as the permalink for each of the custom posts.So I wanted to know how to work the permalink in so the title and image are linked back to the original post.
ThanksHi there,
I was just wondering if you could help me; I’m trying to start a Buddypress sub-community on my existing website. We currently have a user system that enables the use of our services; however I was trying to create a forum as a sub-page on our website and a community from that. I realised, however, that WP was finding it difficult to distinguish users on our current system with users of Buddypress. Is there a way of creating a completely separate user-type for Buddypress, so as to prevent cross-over from our two systems?
I want to work towards:
-Different details required for our user system than Buddypress
-Different menu items for our users than for forum users
-Our user details and activity goes into a massive database; however I don’t want this to be impacted by the forum usersThanks a lot for your help!
Running: WordPress 4.5.3 on Customizr theme
Buddypress 2.6.2I’m going to design & develop a theme for BuddyPress to help pay the bills around here.
The theme will be made open-source until I have an audience then I may put a price on the theme to maintain it and help pay my bills.
This is my research before embarking on the project. I’d really appreciate the help.
Should I make a light or dark theme?
What components are most important, I will build in this order and release for testing once each component is functional. Please order accordingly.
1. Activity Stream
2. Member Profiles
3. Member Directory
4. Group Pages
5. Group Directory
6. Network
7. BBPress ForumsAre you interested in being a beta tester? You will get access to the theme files to use in your own projects in return.
What customisations would you like built in? Things like custom logos, and colours? That type of thing.
How many custom navs are required?
Do you want full WordPress support for posts and pages? Things like post format, post thumnbails and HTML5 when and where possible.
What about templates, would you like an optional custom front-page?
Anything else you feel like discussing please do so.
After the theme gets off the ground I may decide to release it as a premium theme to help pay the bills, but for now I’m looking for an audience to get started with.
Lastly, I was going to blog about the progress in my site buddycore.com to keep anyone who is interested up to date.
Thanks for your help.
I found this function ‘bp_dtheme_post_update’ in ‘/wp-content/plugins/buddypress/bp-themes/bp-default/_inc/ajax.php’. Im guessing this is the one who handles new post in activity page. I just would like to make the textarea in the activity page always required even when uploading image. Im using rtmedia plugin, btw.
Hi, I’m using WordPress 4.5.3–en_GB, with BuddyPress version 2.6.1.1, running on a Customizr child theme.
I wish to apologise if my following details are too long winded, I wish to include as much details as possible.
I have included a link in my side menu to view site activity.
It displays all recent site activity. New members, new group creations, new media uploaded, comments on photos etc.. All is displayed well except for the comment on photo part in the activity list.
When user posts an ‘update’ / photo in group, the thumbnail is there on the activity page, and when clicked it displays lightbox feature along with photo details and comments on the right. But when user has commented on the photo, the update displayed in the activity page is correct (user has commented on a Photo in the group xxx, but upon clicking the link, it shows only lots of words.
This is the link to the many words displayed instead of the same lightbox effect as stated above.
http://vacahost.info/groups/sg-24hr-halal-foodfinders/media/7/
Message displayed: Dedicated to shift workers that have to source for food in the wee hours of the night or morning. Group Admins HomeMembers 2Send InvitesMedia 4Manage All4Albums1Photos4Videos0Music0 20160616_232320 EditDelete Like Comment 0 people like this AyraAdelia 12 July 2016 Selling […]Once again, apologies for the detailed description.
Kindly help me, did I enable or disable something by mistake?
Regards,
shanehidirUnder certain circumstances, there is an infinite loop inside the
bp_legacy_theme_new_activity_comment()function. Specifically, when all of thesecondary_item_idfields are zero, the$parent_idwill continually be set to zero. An infinite loop ensues and eventually the script will time out. This causes new activity items to not display until the page is refreshed, as mentioned here: https://buddypress.org/support/topic/activity-comments-post-blank-until-refresh/.This error happens when attempting to add a comment to a group post. I believe this is a similar problem as the one expressed here: https://buddypress.org/support/topic/activity-comments-post-blank-until-refresh/
For information:
- WordPress
4.5.3 - BuddyPress
2.6.1.1 - Single site install in web root
- There are indeed other plugins activated on this site. The full list is below. This site is for a client, and I’m unsure of which plugins can be safely deactivated to test.
- We’re using a customized theme, but I have tested with the TwentySixteen theme and found the same results.
- The core BuddyPress files have not been modified to my knowledge.
- The site is hosted on Page.ly, but I can reproduce the problems in a local VVV install
- The live site is http://www.lifeofdad.com/
I believe that this may be a problem inside BuddyPress itself, as the function with the infinite loop is part of BuddyPress. The Javascript that makes the Ajax request is part of the BuddyPress Wall plugin, but from what I can tell the problem is in the aforementioned
bp_legacy_theme_new_activity_comment()function.My specific concern is this loop:
// Load the new activity item into the $activities_template global. bp_has_activities( 'display_comments=stream&hide_spam=false&show_hidden=true&include=' . $comment_id ); // Swap the current comment with the activity item we just loaded. if ( isset( $activities_template->activities[0] ) ) { $activities_template->activity = new stdClass(); $activities_template->activity->id = $activities_template->activities[0]->item_id; $activities_template->activity->current_comment = $activities_template->activities[0]; // Because the whole tree has not been loaded, we manually // determine depth. $depth = 1; $parent_id = (int) $activities_template->activities[0]->secondary_item_id; while ( $parent_id !== (int) $activities_template->activities[0]->item_id ) { $depth++; $p_obj = new BP_Activity_Activity( $parent_id ); $parent_id = (int) $p_obj->secondary_item_id; } $activities_template->activity->current_comment->depth = $depth; }I’ve run XDebug locally to inspect the items in the loop as it is running. If some of the raw variable data is required, I can provide that.
I have tried making some changes to the code in this loop to prevent the infinite loop from occurring. While successful in that endeavor with a few tweaks, the result is that the comment sent back through the Ajax response is the wrong comment, and a page refresh is still needed.
I considered filing a bug in Trac, but I wasn’t certain whether something else could possibly be interfering.
+--------------------------------------+--------+-----------+---------+ | name | status | update | version | +--------------------------------------+--------+-----------+---------+ | akismet | active | none | 3.1.11 | | all-in-one-seo-pack | active | available | 2.3.7 | | appbuddy | active | available | 2.0.7 | | appcamera | active | available | 2.0.0 | | appfbconnect | active | none | 2.3.0 | | apppresser | active | none | 2.5.0 | | apppush | active | available | 2.1.0 | | appshare | active | none | 2.1.0 | | appswiper | active | available | 2.2.1 | | bp-profile-search | active | none | 4.5.2 | | buddypress | active | none | 2.6.1.1 | | buddypress-activity-plus | active | none | 1.6.4 | | bp-moderation | active | none | 0.1.7 | | buddypress-nocaptcha-register-box | active | none | 1.1.3 | | buddypress-toolbar | active | none | 1.6.0 | | buddypress-wall | active | none | 0.9.4 | | buddypress-xprofile-image-field | active | none | 2.0.1 | | category-posts | active | none | 4.6.1 | | contact-form-7 | active | none | 4.4.2 | | contact-form-7-to-database-extension | active | none | 2.10.20 | | cubell-themes-functionality | active | none | 3.1 | | envato-wordpress-toolkit | active | none | 1.7.3 | | hashbuddy | active | none | 1.5.2 | | login-with-ajax | active | none | 3.1.6 | | mailchimp-for-wp | active | none | 3.1.11 | | nav-menu-roles | active | none | 1.8.2 | | nextend-facebook-connect | active | none | 1.5.9 | | buddypress-media | active | none | 4.0.4 | | vine-embed | active | none | 0.2 | | wds-lod-automatic-friends | active | none | 0.1.0 | | wds-lod-base | active | none | 0.1.0 | | wds-lod-bp | active | none | 0.1.0 | | wds-lod-post-types | active | none | 0.1.0 | | wds-lod-widgets | active | none | 0.1.0 | | wordpress-importer | active | none | 0.6.1 | +--------------------------------------+--------+-----------+---------+Wordpress: 4.5.3
Buddypress: 2.6.1.1
Theme: Child of Twentyfourteen
Site: http://social.tgdgaming.com/activity/ (to get you past the login)Plugins:
Bowe Codes
Buddypress Activity Plus
Buddypress Friend of a Friend (FOAF)
BuddyPress Groups Extras
BuddyPress Profile Shortcodes —-(Has a bad profile link as well, {site.com/members/user//} has //)
Custom Admin Footer Text
Custom Menu Wizard
iFlyChat ————– (Stopped working around the same time as the other issues)
jonradio Multiple Themes
Menu Icons
Mutual Buddies
Peter’s Login Redirect
Scrollbar
WYSIWYG Widgets / Widget BlocksProblem Pages:
Profile Edit: site.com/members/user/profile/edit/
Profile Activity: site.com/members/user/activity/ (on profile view site.com/members/user/ —works)
Group Manage: site.com/groups/group/admin/More Info:
I believe the issues started when I was screwing around trying to add a extra sidebar. I did try to add one manually and with plugins (that may have been the cause). Trying to go to these links gives a white screen with nothing loaded in when inspecting with chrome.Troubleshooting:
Disabling plugins one by one.
Disabling all non-essential plugins (all but buddypress and jonradio Multiple Themes).
Re-installing the Base Theme.
Re-installing Buddypress.
Overwriting WordPress with Fresh files.Any help is greatly appreciated. I can try to get anymore info you need
Ps. Please excuse the bad styling had a bad upload with a style.css that overwrote the main theme with another theme and it’s being reworked with better css practices.Topic: Custom post type
Hi,
I’m running a plugin called ignitiondeck for wordpress. This plugin creates a custom post type for projects called ‘ignition_product’. These pages allow for comments, but I can’t get buddypress to track mentions in these comments.
Site tracking is on and comment notifications works for my page comments. I’ve tried using in my functions.php but it doesn’t help.
add_filter ( ‘bp_blogs_record_post_post_types’, ‘activity_publish_custom_post_types’,1,1 );
function activity_publish_custom_post_types( $post_types ) {
$post_types[] = ‘ignition_product’;
return $post_types;
}Running 2.6.1.1
I’ve been attempting to customize the feed item generated for my custom post type on my buddypress/multisite installation. I’m really just trying to change the default text.
I’ve found what SHOULD be the correct code and I’ve set it up for my site, but… the changes never take. I’m not caching anything so that’s one potential complication excluded.
This is my current code (placed in bp_custom.php in my /plugins folder) :
add_post_type_support( 'webcomic', 'buddypress-activity' ); function customize_webcomic_tracking_args() { // Check if the Activity component is active before using it. if ( ! bp_is_active( 'activity' ) ) { return; } bp_activity_set_post_type_tracking_args( 'webcomic', array( 'component_id' => buddypress()->blogs->id, 'action_id' => 'new_webcomic_update', 'bp_activity_admin_filter' => __( 'Updated the Comic', 'custom-domain' ), 'bp_activity_front_filter' => __( 'Webcomic', 'custom-domain' ), 'contexts' => array( 'activity', 'member' ), 'activity_comment' => true, 'bp_activity_new_post' => __( '%1$s posted a new <a href="%2$s">comic page</a>', 'custom-textdomain' ), 'bp_activity_new_post_ms' => __( '%1$s posted a new <a href="%2$s">comic page</a>, on the site %3$s', 'custom-textdomain' ), 'position' => 100, ) ); } add_action( 'bp_init', 'customize_webcomic_tracking_args' );So the custom post type “webcomic” is generated via a plugin (called Webcomic), it’s not something I’m registering in my functions.php file. I’ve tried every “fix” I can find, and none of the changes can make this code stick! (this includes changing bp_init to just init).
I’m running buddypress 2.6. I would really appreciate it if someone could help me troubleshoot this. Even just confirming that the above code is correct would be a big help!
Thank you very much!
Hi, I am working with this code I found to show a CPT of fb_url_submit links. It works great but I would like to add other CPT’s to display in the same way on the Buddypress activity feeds, but with a different link of course.
When I try it says I cannot duplicate one of the CPT activity actions, and I am not a coder, so could someone please help me figure how to add the CPT’s of “news” and “images” while also showing them in the activity stream, and able to change the link that is displayed?
Thank you in advance!
<?php
function inspired_record_more_types( $types ) {
$types[] = 'fb_url_submit';
return $types;
}
add_filter( 'bp_blogs_record_post_post_types', 'inspired_record_more_types');
?><?php
add_filter('bp_blogs_activity_new_post_action', 'record_cpt_activity_action', 1, 3);
function record_cpt_activity_action( $activity_action, $post, $post_permalink ) {
global $bp;
if( $post->post_type == 'fb_url_submit' ) {
if ( is_multisite() )
$activity_action = sprintf( __( '%1$s added a new Facebook Page', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '' . $post->post_title . '', '' . get_blog_option( $blog_id, 'blogname' ) . '' );else
$activity_action = sprintf( __( '%1$s added a new Facebook Page', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '' . $post->post_title . '' );}
return $activity_action;
}
- WordPress
Hi, I’m using Buddypress (2.6.1.1) and LearnDash (2.2.1.1) and the BuddyPress for LearnDash add-on (1.1.0.0) with WordPress (4.5.3) to create a website that allows users to learn more about certain subjects and also gives them a place where they can speak about the content that’s on the website, for this I decided to use BuddyPress since it’s Activity Feed and use of Groups seemed like a very good fit for what I was looking for.
I’m having a bit of trouble getting comments made on the LearnDash Courses appearing in the BuddyPress Activity feed, I was following this:
Post Types Activities Page
When I add:
add_post_type_support( 'sfwd-courses', 'buddypress-activity' );to bp-custom.php the creation of a new course is posted to the activity feed, however you can’t comment on it from the activity feed and comments on the Course Page don’t show on the Activity Feed.
Adding the function Customize_page_tracking_args() to my bp-custom.php also doesn’t change anything and I’m still told that “Admin has added a new item”
Activity Feed Post
Pastebin of bp-custom.php