Forum Replies Created
-
In reply to: Issue With YITH Frontend Manager Plugin
Or you can try to access to some page in WordPress admin area (e.g.: with an ajax call) ?
BuddyPress doesn’t do this by default. Considering you can’t reproduce, I expect the client is using custom code that’s causing the problem (either in their functions.php file, bp-custom.php file or in an activated plugin). Check those 3 locations on your client’s site for anything strange.
In reply to: Issue With YITH Frontend Manager PluginPage 2 seems to be loading the my-account page. That’s pretty strange. How are you customising the members/ page loop?
In reply to: Notificationshas someone created any CSS code that might be useful to get this done.
This will need a PHP solution. Unfortunately CSS won’t help.
In reply to: [access request]Documentation contributionIn reply to: NotificationsI’m not sure there is something available. Try searching through the list of plugins at wordpress.org
In reply to: NotificationsThis functionality isn’t in core so you would need to install a plugin or write some custom code to get this done.
In reply to: Warning After Install of Multisite Shared MenusYou could try opening an issue here:
In reply to: Warning After Install of Multisite Shared MenusIt might be worth messaging the Multisite Shared Menu author. If the plugin is causing PHP notices then likely the author will want to clean those up.
In reply to: admin-ajax.php Failed to load resourceHave you restricted access to the admin area in any way? Stuff like the following would cause the admin-ajax.php resource to be inaccessible.
if ( is_admin() ) { // Restrict access }In reply to: Warning After Install of Multisite Shared MenusIn the code snippet I posted, try replacing
initwithwp. If that doesn’t work then the problem would need some debugging.In reply to: Warning After Install of Multisite Shared MenusI hadn’t actually tested so it may be that the snippet doesn’t work. bp-custom.php is where it should go. You could try hooking to
wpinstead ofinit.In reply to: Warning After Install of Multisite Shared MenusThe warning is referring to a line in
bp_core_menu_highlight_parent_page(). The function adds CSS classes to the page. This is hackish but you could try this until you find a better solution.add_action( 'init', function() { remove_filter( 'page_css_class', 'bp_core_menu_highlight_parent_page', 10, 2 ); } );Also you shouldn’t have
WP_DEBUGset totrueon your live site. Better to have a development site parallel your production site and useWP_DEBUGin that environment.In your template, there will be a line of code
do_action( 'bp_directory_members_item' );.This is what your
add_pf_to_members_page()function hooks to so the output of your function will appear at that exact point in the template. If you want to move the output you’ll need to move thedo_action()call or hook to another action.Hope this helps.
In reply to: Show xprofile field in wordpress users list@notlicht
manage_users_custom_columnandmanage_users_columnsare the hooks I would use so your approach looks good to me. There’s alsomanage_users_sortable_columnsif you want to sort users by data in your custom column.In reply to: Display Name SyncIt’s a possibility
In reply to: Only enter to 1 groupYou would need to keep a tally in user meta then when a user tries to join a group that tally will need to be checked. I believe the
groups_member_before_savehook could be what you need.Ref:
https://codex.wordpress.org/Function_Reference/update_user_meta
In reply to: Display Name SyncLikely you have some custom code running which does that. Look in your active theme’s functions.php file, your bp-custom.php file and in plugin files you might have activated.
In reply to: Display Name SyncLikely you have some custom code running which does that. Look in your active theme’s functions.php file, your bp-custom.php file and in plugin files you might have activated.
In reply to: There was a problem cropping your profile photo.777 permissions can be dangerous:
https://codex.wordpress.org/Changing_File_Permissions#The_dangers_of_777
Let me know how you get on on Monday and feel free to post questions if you get stuck.
You can do this:
if ( bp_is_groups_component() && 'group-name-here' === bp_current_item() ) { // Restrict access }In reply to: Using bp-default, “Reply” doesn’t open comment form?Hey @ftlralph
Have you make any changes to the theme markup?
Hey @shirleyddsn
Which URLs do you need to restrict access to?
In reply to: reorder the activities in activity streamTry this:
add_filter( 'bp_after_has_activities_parse_args', function( $retval ) { $retval['display_comments'] = 'stream'; return $retval; } );Please note I haven’t tested.
In reply to: First time login redirectThe activation link points to the activation page. To change that you will need to change the activation link that’s generated.