Forum Replies Created
-
This isn’t a buddyPress issue. Google this for WordPress. There may even be a plugin already.
If not you create an if statement on e same page template:
If user_is_logged_in {
}else{
}
I find this completely odd because BuddyPress does not auto create a username on the registration page from the database. Maybe you have mal-ware or something? Also it could be the browser auto filling.
In reply to: Replacing landing page in BPYou choose a front page just like creating a static page in WordPress.
So you basically want someone to develop a site for you? If you do not no how to develop a custom BuddyPress component then hire a developer.
You can also create your own BuddyPress component that way things you post into it will work similar to Facebook’s activity stream.
In reply to: Asking the impossible?The answer is still the same. There is no OOTB way of doing this and it would require some coding skills to pull off right. If this isn’t something you could manage you might need to hire a developer.
In reply to: Asking the impossible?Didn’t you already ask this in another forum post?
As stated in other thread this is not currently possible OOTB. You would have to code your own plugin to handle this type of thing.
The code I provided is a way to go but you need to figure out the correct if statement to make it work on sitewide activity and not a user profile.
The loop has never been easy to pick out individual items. The filtering is mainly for type AND to top it off the user activity stream is the same stream as the sitewide just filtered to an individual
Maybe someone else can suggest a way.
In reply to: Adding Custom Fields to Groups@sirspacey I’m already working on a plugin for this. You can read the discussion here: https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-add-fields-to-group-creation-with-group-extension-api-please-read/
Try something like this:
if ( $bp->current_component != $bp->activity->slug || $bp->current_component == $bp->members->slug )
Only in groups cam users be moderators. In a groups admin you click manage members and promote or demote members to moderators.
why not post a notice to have users change their username using this plugin
Allow Your Users to Change their Username on your BuddyPress Based site
oh the code above should be placed in a file bp-custom.php in the plugins folder
Hmm getting somewhere…..
if ( $activity->type ==’activity_update’ && $activity->item_id == ’34’ ) {
the item_id number is the id of the group.
Maybe someone else can suggest something. I’m not sure you can exclude something that specific in the activity loop.
I tried this code but it doesn’t exclude a specific group just each content type
`function bp_my_activity_filter( $a, $activities ) {
global $bp;if ( $bp->current_component != $bp->activity->slug )
return $activities;foreach( $activities->activities as $key => $activity ) {
if ( $activity->type ==’new_forum_topic’ ) {
unset( $activities->activities[$key] );
$activities->total_activity_count = $activities->total_activity_count – 1;
$activities->activity_count = $activities->activity_count – 1;
}
}$activities_new = array_values( $activities->activities );
$activities->activities = $activities_new;
return $activities;
}
add_action( ‘bp_has_activities’, ‘bp_my_activity_filter’, 10, 2 );`Ok, so tried to move some code from core to create a custom component and nothing worked. Never got a page to create and not sure how to link it to template files.
For example: in bp-activity it has a file bp-activity-template.php and in include array there’s an entry ‘template’. Is this pointing to that file? Do we need to include all these files listed in the array? If I had bp-example-template.php in my array id still use ‘template’?
To me it seemed much easier to create components before. I know I can still use old method but that won’t last forever.
Can somebody update the skeleton component to reflect the new method?
In reply to: I don’t want anything about buddypress on home pageDuplicate the file header.php to header2.php then call this header in the top of your page template. You can them remove the tabs and have a different header on the page
oh wait, silly me was showing you the groups loop.
https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/
It works very similar to WP post loop.
https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-groups-loop/
while ( bp_groups() ) : bp_the_group(); if(bp_get_group_name() != ‘MyGroup’ ) :
Should have looked first, man oh man the component code is so much cleaner. Well done, gents!
In reply to: Reserving usernamesanother thing you could try is just create the user accounts in the admin for the page slugs and then not login with them and it won’t activate those accounts
In reply to: Reserving usernamesIn reply to: Reserving usernamesthere’s a plugin for that