Forum Replies Created
-
In reply to: showing like and delete button
No.
In reply to: Custom Profil Tabs> I purchased a custom profile tab plugin
Was it a custom BuddyPress profile tab plugin ?
If so, the developer did a very poor job because any BP profile tab needs to handle dynamic user ids.Tell them to simply use
$user_id = bp_displayed_user_id();in the shortcode function and to ignore or remove theuser_idfrom the shortcode attributes.In reply to: Add Column to Admin bp-groups pageMy mistake – the required hooks do exist.
Here is an example of adding a column to the Groups Admin page.> I’d like to show the pending members in the groups page.
You can see the pending requests by visiting the Group page > Manage > Requests.
In reply to: Add Column to Admin bp-groups pageThe groups admin page code does not include hooks for adding a column – afaik.
Wrong – see below.In reply to: Groups listing to bottom of pageYour issue is specific to your installation. And nobody will register on your site so that they can see
the page in question.Given that you are using Avada and the Shortcodes for Buddypress plugin – there is very little chance that anyone here can help you.
> … list the groups to this page within the setting …
Sounds like an issue with Avada > BuddyPress
For that page, rather than use Avada to build the page, you may need to create a page and assign a hand-coded template to it.
There is lots of info on how to do that.
For example: https://ithemes.com/tutorials/applying-wordpress-page-template/In reply to: Permalink CrashDo not ever – EVER – post your admin credentials on a public web page.
[ Would you hand a copy of your house keys to ‘x’ number of random strangers you pass on the street ? ]
I have removed the credentials and replaced them with the error message that you are seeing.
I don’t have a solution to your issue.
I suspect the BuddyPress prompt to reset the permalinks is a symptom of an WordPress issue in your installation.
You might try asking on the https://wordpress.org/support/ forums.In reply to: Members profile page breaks during loadbp_is_user_forums()is not used in the current BuddyPress template files.The fatal errors are due old BuddyPress files coming from your child theme – not from buddypress plugin files.
PHP Fatal error: Uncaught Error: Call to undefined function bp_is_user_forums() in /nas/content/live/thefluentself/wp-content/themes/fluent-self-2017/buddypress/members/single/home.php:88
Perhaps there is a new version of your theme ?
Or you could ask the theme creators about the error?You could try deleting all BuddyPress files in your child theme.
Or you could try updating thebuddypress/members/single/home.phpfile in your child theme.In reply to: Display first name and last initialDid you try asking on the bbPress support forums ?
In reply to: Adding to existing tables in buddypress> What is the best approach to do this without editing the database directly?
The best approach is not to do it.
Store your extra options in the group meta table; that’s what it is for.In reply to: Create shortcode with displayed user id?Why use a shortcode when you can just use this:
<?php echo bp_displayed_user_id(); ?>If you still want to use a shortcode, then share the code that you have already and actually tried.
In reply to: Why i cannot use it with page id?No.
You have to assign pages to BP.
Go to Settings > BuddyPress > Pages and assign pages – you may need to create them first.In reply to: Error in LearnDash after upgrade BuddyPressDid you ask LearnDash re whether they have tested with the latest BP?
Did you try switching to a WP theme like 2017 to see if the issue is in your preferred theme?Did you examine your error logs?
Did you try using WP_Debug ?
https://codex.wordpress.org/WP_DEBUGIn reply to: Display Certain Profile Fields in SidebarWhen not on a profile screen, use
xprofile_get_field_dataand pass in the user’s ID.In reply to: Display Certain Profile Fields in SidebarHave you tried using wpautop ?
In reply to: Send email after rejectionThanks for posting your solution – which has been updated with your correction.
In reply to: Send email after rejectionYou have the id of that member:
$friendship->friend_user_id
Getting the name is done via WP functions.
For example: get_userdataIn reply to: Making group avatar uploading mandatoryHave you tried using the hook provided in the group > create template?
For example, in this file:
buddypress\bp-templates\bp-legacy\buddypress\groups\create.php
Look for the group avatar section and use this hook:
do_action( 'bp_after_group_avatar_creation_step' );BuddyPress does not handle payments or paywalls.
You’ll need a paid membership plugin.
There are some free ones in the WP plugin repo that you could try out.So, your question is not really about BuddyPress.
Ultimately the decision on how / what to implement will depend on your research and the specifics of your project.In reply to: Question about ( bp_message_threads )I provided a link to show you how to find the filter hooks for any of the functions that you listed. You use them like any other WP filter hook.
For example:function mitchellbc_bp_get_message_thread_from( $from ) { // manipulate $from however you want $from = '<span class="text">' . $from . '</span>'; return $from; } add_filter( 'bp_get_message_thread_from', 'mitchellbc_bp_get_message_thread_from', 1, 1 );In reply to: Question about ( bp_message_threads )Use the filter hooks to modify the output.
For example, see the filter hook for: bp_message_thread_from()In reply to: Dynamic link to bp profile in function below?Are you saying
bp_loggedin_user_domain()did not work?
If so, buddypress may not be available when that filter hook fires.You could try using this:
http://mysiteurl/members/me/
When clicked, BuddyPress will redirect themeto the profile page of the logged-in user.In reply to: Members Not ShowingIt sounds like you introduced an error.
Probably easy to fix…Check your php error logs.
You may need to turn on wordpress debug so that any error message is captured.In reply to: BuddyPress for User/Role Access ManagementWhether you use BuddyPress or not, you would need to write custom code to handle the access restrictions that you described.
In reply to: Avatar jcrop not workingIt’s doubtful anyone will sign up to see the error.
Did you check your browser’s javascript console for errors while on that page?
Did you ask the theme creators ( BuddyBoss ) about your issue ?
Are you using some code or plugin that minifys javascript ?
If so, try turning it off.In reply to: Producing array of group user idsTry something like this in your shortcode:
$args = array( 'group_id' => 666, // set the ID somehow 'exclude_admins_mods' => false ); $group_members_result = groups_get_group_members( $args ); $group_members = array(); foreach( $group_members_result['members'] as $member ) { $group_members[] = $member->ID; } return implode(", ", $group_members);Check the
$argsby reviewinggroups_get_group_members()inbuddypress\bp-groups\bp-groups-functions.php