-
shanebp replied to the topic Filter Member Loop to show only members of a particular group in the forum How-to & Troubleshooting 11 years ago
It’s not a filter, it’s an argument.
Look at
function bp_has_members in
bp-members/bp-members-template.phpYou will see this argument
'include' => false, // Pass a user_id or a list (comma-separated or array) of user_ids to only show these users
So write some sql, something like :
global $wpdb;
[Read more]
$group_ids =… -
shanebp replied to the topic Sitewide Chat for Buddypress in the forum Creating & Extending 11 years ago
Arrowchat is the usual solution.
-
shanebp replied to the topic Remove User Activations in the forum How-to & Troubleshooting 11 years ago
You can avoid the need for activation email by using this code in bp-custom.php
function bp_disable_validation( $user_id ) {
global $wpdb;$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->users SET user_status = 0 WHERE ID = %d", $user_id ) );
}
add_action( 'bp_core_signup_user', 'disable_validation' );add_filter(…[Read more]
-
shanebp replied to the topic Help needed – Limiting group admins and what they can see to specific groups in the forum How-to & Troubleshooting 11 years ago
>- The ideal, which I’ve not entertained (as it does not seem possible at present) is that the activity stream is retained but correctly hidden from users who are not members of the group.
Easy to do. Take a look at:
buddypressbp-templatesbp-legacybuddypressgroupssinglehome.php>1. I don’t like customisations, the more we make the more we nee…[Read more]
-
shanebp replied to the topic Filtering bp_format_time in the forum How-to & Troubleshooting 11 years ago
> looking at formatting the date in private messages … $just_date is false.
Then the filter will work fine.
The time will be part of the string passed in $date.
[ In your filter, var_dump $date – what do you see ? ]
You just have do some string and date operations on that string. -
shanebp replied to the topic Filtering bp_format_time in the forum How-to & Troubleshooting 11 years ago
$date doesn’t include the time unless $just_date is false.
$time is never sent as a separate variable.So you’ll have to figure out how to call bp_format_time() without setting $just_date to true.
Or write your own function.grep bp_format_time()
I think you’ll see that usually BP calls it with a true value for $just_date. -
shanebp replied to the topic How to display multiple custom "single group (headers)" on a single page? in the forum How-to & Troubleshooting 11 years ago
Have a look at how group loops are used in the files here:
pluginsbuddypressbp-templatesbp-legacybuddypressgroups -
shanebp replied to the topic How to display multiple custom "single group (headers)" on a single page? in the forum How-to & Troubleshooting 11 years ago
Create a custom template that uses a group loop and output whatever you want.
Create a page and assign your custom template to it.
-
shanebp replied to the topic Filtering bp_format_time in the forum How-to & Troubleshooting 11 years ago
In your filter, var_dump $date – what do you see ?
-
shanebp replied to the topic Group activity is missing in the forum Installing BuddyPress 11 years ago
To over ride the BP template files for single Groups:
Copy this folder
pluginsbuddypressbp-templatesbp-legacybuddypressgroupssingleInto your theme folder – make sure you use the same folder structure.
So when done, it should look like this:your-themebuddypressgroupssingle
Then you can edit the files in the ‘single’ folder and maybe solve…[Read more]
-
shanebp replied to the topic Members Directory sort function not working in the forum How-to & Troubleshooting 11 years ago
> reinstalling buddypress back to all default settings
That won’t fixed any issues introduced via /plugins/bp-custom.php
Make a copy of that file and then delete it from your server.Also deactivate any plugins that ‘your’ developer installed.
-
shanebpdev updated the Adding Your Plugin’s Link to the BuddyPress Member Toolbar Menu page, on the BuddyPress Codex 11 years ago
If you’ve added a new navigation item to the single Member page, you may want to add the same link to the Toolbar Menu.
Let’s say you added a tab called ‘Dogs’ – this will add the same link to the Toolbar […]
-
shanebp replied to the topic How to prevent users from changing their avatars in the forum How-to & Troubleshooting 11 years ago
Take a look at bp_core_remove_subnav_item()
Or do a template over-ride of this file and put a message to the member in it.
buddypressbp-templatesbp-legacybuddypressmemberssingleprofilechange-avatar.php -
shanebp replied to the topic BuddyPress Constantly Crashes Server in the forum How-to & Troubleshooting 11 years ago
No, I’m saying that you need to try and narrow things down re whatever is creating all the session files and never killing them.
-
shanebp replied to the topic BuddyPress Constantly Crashes Server in the forum How-to & Troubleshooting 11 years ago
> billions of sess files so I increased /tmp/ folder to 8GBs
That increase will only push back the point where the crash happens.
You need to determine what is creating the session files.
Try turning off WooCommerce. -
shanebp replied to the topic Private Message button only appears sometimes in the forum How-to & Troubleshooting 11 years, 1 month ago
Switch to the BP default theme or a WP theme like Twenty Thirteen.
Does the problem still exist?
If not, then the problem is in your custom theme. -
shanebp replied to the topic Notify system in the forum Creating & Extending 11 years, 1 month ago
Those emails are already sent by either WordPress or BuddyPress.
In BP, on your profile page there is a tab called ‘Settings’.
There you will find options to receive or not receive emails.WP gives you the option to send emails re new post comments.
-
shanebp replied to the topic How to add item to main activity Subnav in the forum How-to & Troubleshooting 11 years, 1 month ago
Does the correct link exist somewhere else?
If so, paste it here.
-
shanebp replied to the topic How to add item to main activity Subnav in the forum How-to & Troubleshooting 11 years, 1 month ago
try this:
function bp_myadd_tabto_mainactivity() {
echo '<li id="activity-invito"><a href="/invite-friends">Invite your friends</a></li>';
}
add_action( 'bp_activity_type_tabs','bp_myadd_tabto_mainactivity'); -
shanebp replied to the topic How do I customize this on Admin bar in the forum Installing BuddyPress 11 years, 1 month ago
Near the bottom:
Adding Your Plugin’s Link to the BuddyPress Member Toolbar Menu
- Load More
@shanebp
Active 1 hour, 51 minutes ago