Forum Replies Created
-
If you switch to a WP theme like 2013, does the problem still occur?
In reply to: Help email new topicDid you try asking your question on the support forum for bbPress ?
In reply to: Display profile fields on members pageYou don’t need to touch the members-loop template file.
Try putting this in your theme/functions.php or in plugins/bp-custom.phpfunction add_age_to_members_loop() { $field_content = bp_get_member_profile_data( 'field=Age' ); if( $field_content != false ) echo "Age: " . $field_content; } add_action( 'bp_directory_members_item', 'add_age_to_members_loop' );In reply to: Can no longer manually edit register.phpBasic html issue?
Try putting it right before this:
</div><!-- #basic-details-section -->In reply to: Can no longer manually edit register.phpI’m not sure where I would put the bp_signup_validate code you linked. Some specific file?
It can go in your theme/functions.php or in plugins/bp-custom.php
Re overload register:
Make sure you start with this file:
buddypress\bp-templates\bp-legacy\buddypress\members\register.phpI just did an overload via this path:
/wp-content/themes/twentythirteen/buddypress/members/register.php
And the changes appear, so the overloaded template is being loaded.You might try switching to a WP theme like 2013 – if the issue disappears, that’s a clue.
In reply to: Can no longer manually edit register.phpUnless you are explicitly using the bp-default theme, you should only be using a template overload of this file:
\wp-content\plugins\buddypress\bp-templates\bp-legacy\buddypress\members\register.phpThere is no need to touch this file:
\wp-content\plugins\buddypress\bp-members\bp-members-screens.phpYou can add your challenge to the overload template and then check it using the
bp_signup_validatehook.
Example: https://code.hyperspatial.com/all-code/buddypress-code/buddypress-signup-form-hook/In reply to: Does buddypress have (native) shortcodes?There is no ‘core’ set of shortcodes.
You can write your own.
https://codex.wordpress.org/Function_Reference/add_shortcodeOr perhaps search here for an existing plugin:
https://wordpress.org/plugins/In reply to: Group NavigationI’m using the “BuddyPress Group Extras – Extend Your Groups plugin”.
Therefore you should submit your question to the creator of that plugin:
https://wordpress.org/support/plugin/buddypress-groups-extrasIn reply to: Group Navigationafaik, BP does not provide a submenu called ‘Extras’ under ‘Manage’ in Groups.
So you are using custom code or another plugin to provide that submenu – therefore you should contact the creator of that code.Otherwise, to add a menu item to Groups, you will need to write code using the BP_Group_Extension API.
In reply to: Admin screen goes white on BuddyPress activationCheck your server ( apache? ) error logs ( they’re different from php logs ) or ask GoDaddy about them.
In reply to: Admin screen goes white on BuddyPress activation… a limit to the number of groups & users that BuddyPress can manage; something like 20k users
There is no limit – provided you have the necessary server resources available.
There is a difference between total users and # of concurrent users – meaning the # of users that are performing operations at any one time.It’s impossible to diag your issue without access to your server.
Some suggestions:- Turn on wp-debug and then check error logs.
- Deactivate bbPress and all related plugins.
- Test with ONLY a WP theme like 2013 and BP
White screens can be tricky to diagnose – but a decent developer can at least narrow down the possible factors.
What is the reason that make you think that can be a plugin?
Your issues may not be due to a plugin, but your error log shows entries that are usually caused by a theme or other plugins.
Start by deactivating plugins related to activity.
If all else fails, delete BP 2.4.3 and install BP 2.4.2
You can download prior versions of BP here.If the problems go away, you may have found a bug in 2.4.3
You can submit a ticket here with the same user/pw you use for these forums.In reply to: User profile filteringYour error log suggests that the problem may be in some custom code, a plugin or your theme.
To confirm, try switching to a WP theme such as 2013.
If the problems go away, then there is an issue in your theme.If not, try deactivating your other plugins one at a time and then test for the problem.
Which versions of WP and BP are you using?
In reply to: Notification Email TemplatesIn reply to: modifying the email template of friend requestsFor friend request emails, use the filter hooks in
function friends_notification_new_request
located in this file:buddypress\bp-friends\bp-friends-notifications.phpFor example:
function panda_friend_request_message( $message, $initiator_name, $initiator_link, $all_requests_link, $settings_link ) { $message = 'This will completely replace the message'; return $message; } add_filter( 'friends_notification_new_request_message', 'panda_friend_request_message', 15, 5 );Not that easy, but currently the only available method.
There is a new method being developed and scheduled for BP 2.4.5 which has a target release date of March 2016.
https://buddypress.trac.wordpress.org/ticket/6592In reply to: Create new subnav with a static linkSupport questions for 3rd party plugins should be directed at the creator of those plugins – in this case https://premium.wpmudev.org
Your posting above of code from one of their premium plugins is probably in violation of the terms of purchase.
In reply to: landing page for site visitorsI made a small adjustment to the code in an attempt to solve the issue you reported on the plugin support forums.
Can you confirm that it is working?Re “removing the toolbar and menu for all users except admin” – please do not double post.
Please use your existing thread:
https://buddypress.org/support/topic/disabling-the-toolbar-for-members-except-admin/In reply to: landing page for site visitorsI made an adjustment to the plugin and replied to your entry on the plugin support forum.
In reply to: Question about bp_activity_actionDo you know which file holds all of the buddypress specific filters and actions?
They are mainly grouped according the component being used.
Look inbuddypress/bp-activity/for activity related filters and actions.If you have a decent file editor ( notepad++ ? ) you can do a find-in-files search.
In reply to: Question about bp_activity_actionWhen looking at the bp-default one
Unless you are explicitly using the bp-default theme, you should be looking at this file:
buddypress\bp-templates\bp-legacy\buddypress\activity\entry.phpAs for the function, it says:
* @uses bp_get_activity_action()So look at that function which you will find right below the one you looked at.
And you will see:* @param array $args { * @type bool $no_timestamp Whether to exclude the timestamp.In reply to: Private Category not workingIn reply to: How to display a custom field?I showed you how to use
bp_get_profile_field_data– but you didn’t make the changes.Your function in bp-custom won’t be called if order.php does not contain a
do_action.In reply to: Profile picture updateThis approach won’t remove existing ‘profile pic’ updates, but will prevent new ones from being created.
function mrky_dont_save_some_activity( $activity_object ) { $exclude = array( 'new_avatar', 'updated_profile' ); if( in_array( $activity_object->type, $exclude ) ) $activity_object->type = false; } add_action('bp_activity_before_save', 'mrky_dont_save_some_activity', 1, 15 );In reply to: How to display a custom field?Did you also try
xprofile_get_field_data?You can always make a direct sql call to the database using the $wpdb global.
https://codex.wordpress.org/Class_Reference/wpdb