Search Results for 'wordpress'
-
Search Results
-
Under 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 | +--------------------------------------+--------+-----------+---------+Topic: Move Facebook Login button
I’m new to all this so please bear with me.
I’m helping to build a social networking site with BuddyPress. One of the requirements is that it has to have a “login with Facebook” option (to the new social network, not WP). I have already done this with the JS SDK. My problem is that this gives me a generic button on my website’s footer. I don’t want it there and I can’t seem to figure out how to move it. There was already a placeholder button added with WordPress tools. I would like to either: move the new login button to where the old one is and customize it, or, transfer the functionality of the new button to the old one. As an added note, when I open the editor to move things around, the button doesn’t show up as a customizable item. I’m using the X Child theme, if that has any importance.
Thank you so much in advance.
I’m using WordPress version 4.5.3, BuddyPress version 2.5.3. I can’t provide a link to the site because it’s not live yet.
I’m trying to get WordPress to use the BuddyPress email template when users reset their passwords, any pointers on how best to achieve this?
Thanks,
^JDHi,
I am new to wordpress. I created some profile fields using buddy press in signup page.
After clicking the sign-up page the values which I am submitting is not saved in db.
How can I fix this ? Kindly somebody help me.
I created dynamic menus to the Buddy Press groups using the following code
`$url = site_url().”/groups/”.$groupslug;’
The $url variable has the correct variable, but while clicking from there, wordpress switches to the intended group, but I get a warning that says –
“Notice: bp_nav was called incorrectly. These globals should not be used directly and are deprecated. Please use the BuddyPress nav functions instead. Please see Debugging in WordPress for more information. (This message was added in version 2.6.0.) in /home/…/functions.php on line 3897”I dont get the same warning when I click through the normal buddpress pages.
Hi, I’m using Buddypress Version 2.5.3 and WordPress 4.5.2.
I’m running a multisite wordpress installation, Right now I’m trying to exclude the suscribers in the members directory, this is the code i found:
function bpdev_exclude_users($qs=false,$object=false){ //list of users to exclude if($object!='members')//hide for members only return $qs; $excluded_user = implode(',',get_users('role=subscriber&fields=ID')); $excluded_admins = implode(',',get_users('role=administrator&fields=ID')); //$excluded_self=bp_loggedin_user_id(); $args=wp_parse_args($qs); //check if we are searching for friends list etc?, do not exclude in this case if(!empty($args['user_id'])) return $qs; if(!empty($args['exclude'])){ $args['exclude']=$args['exclude'].','.$excluded_user; $args['exclude']=$args['exclude'].','.$excluded_admins; //$args['exclude']=$args['exclude'].','.$excluded_self; } else { $args['exclude']=$excluded_user; if(!empty($args['exclude'])) $args['exclude']= $args['exclude'].','.$excluded_admins; else $args['exclude']=$excluded_admins; //$args['exclude']=$excluded_self; } $qs=build_query($args); return $qs; } add_action('bp_ajax_querystring','bpdev_exclude_users',20,2);but right now, the get_users function won’t show any subscriber because there are not suscribers on this site, but on the other ones. Anyway, the buddypress is showing all users including the ones in the other sites.
any hint?
Thanks
Some themes are designed for BuddyPress. They have app-like header menus like what you’ll find on Facebook, Twitter, Quora, ProductHunt, etc.
What are the typical features of such header menus?
– AJAX search
– live notifications
– profile dropdownThat’s a standard formula formula for web apps these days: http://imgur.com/10lKZnK . In one bar: you have the logo, an AJAX search, a notification dropdown with an unread counter, and user profile dropdown.
This forum has 2 of them integrated with the menu, while BuddyPress on default WordPress websites adds this to the wp-admin bar on top.
Some themes display these very well:
– http://imgur.com/zqw5kRd
– http://imgur.com/XJihK17How do I get this effect on any custom theme? Are there plugins for these search, notification, and profile features?
After the BP 2.6 update(s) I still can’t getting the BP Group Hierarchy plugin to work again on my Boss theme. Even with the recommended fix (https://github.com/ddean4040/BP-Group-Hierarchy/pull/21/files) I am still getting the fatal error:
Fatal error: Class ‘BP_Groups_Component’ not found in [….]/wp-content/plugins/bp-group-hierarchy/bp-group-hierarchy-loader.php on line 6
Anyone know what the problem could be? – Some others seem to have a similar problem:
https://wordpress.org/support/topic/breaks-boss-theme-with-buddypress-261WP 2.5.3/BP 2.6.1.1/Boss 2.2.1
- WordPress