shanebp replied to the topic Warning: Missing argument 2 for bp_modify_page_title() in the forum How-to & Troubleshooting 3 hours, 53 minutes ago
@henrywright – ‘Close, but you’re way off’. -homer simpson
bp_modify_page_title( $argument1, $argument2 )
bp_modify_page_title( $argument1, $argument2, $argument3 )
bp_modify_page_title( $title, $sep, $seplocation )
shanebp replied to the topic Only friends/you in activity feed…has solution been found? in the forum How-to & Troubleshooting 20 hours, 30 minutes ago
It is simple, if you use the correct parameter, anyway…
Create a template overload of this file:
Then change this:
<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>
$friends = friends_get_friend_user_ids( bp_loggedin_user_id() );
shanebp replied to the topic Only friends/you in activity feed…has solution been found? in the forum How-to & Troubleshooting 21 hours, 45 minutes ago
That should be a simple task using the ‘include’ parameter in the activity loop.
But I just tried it and couldn’t get it to work.
Perhaps I did something dumb, but I opened a ticket:
As you can see, the avatars are added by function bp_group_list_admins
in this file:
Unfortunately, that function has no filters.
So you’ll need to create a template over-ride of group_header.php in your theme.
Then replace bp_group_list_admins() with a custom function…[Read more]
shanebp replied to the topic adding shortcodes to members header from a different plugin in the forum How-to & Troubleshooting 1 week ago
In your theme, create an over-ride this file:
Read this re over-riding files:
Add your shortcodes by…[Read more]
W3 total cache is very powerful but you need to take the time to learn it.
There are lots of sites that provide info on how to tune W3 total cache for your particular needs. Google it.
Did you ask buddyboss support about your issue?
Are you using a caching plugin like
You cannot cache everything or you will get stale pages or sections of pages.
Using a plugin like w3 total cache, you can control what is cached.
shanebp replied to the topic How do I create a child theme? Want to customize buddypress; forums, profle page in the forum How-to & Troubleshooting 1 week, 6 days ago
> I don’t know what to put on the “Template:” line.
You put the name of the parent theme there, I guess something about Weaver.
The link that hnla provided includes a link to
It’s a lot to take in at first – but you really need to _read_ the docs.
You can put this function in your theme functions.php or bp-custom.php
It will prevent the creation of activity entries for the items in $exclude
It will only do that going forward – it won’t remove existing entries.
You need to find out what the activity type(s) is for achievements and add it to the exclude array.
Sorry, I forgot to consider the save functions.
There are a lot of action / filter hooks in bp-xprofile-classes.
You should be able to add the name field to the $_POST before it starts processing, so that you don’t need an input.
Or overwrite the ‘old’ name into that field value so that the new value isn’t saved, although…[Read more]
Take a look at this file:
~Line 110 there are 2 add_action calls to create a join-group button – ‘bp_group_join_button’.
You need to write a function that checks if the user is a member of any group.
If they are, do 2 remove_action calls so that the button is not created.
Except, of…[Read more]
Copy it to your theme or child-theme
See ‘Overloading Template Compatibility theme files’ here:
The easiest path is just to add a conditional to an override of this template:
The name field is, I believe, always:
input type="text" name="field_1" id="field_1"
So in the template, change this:
if ( 'textbox' == bp_get_the_profile_field_type() )
if ( 'textbox' ==…[Read more]
shanebp replied to the topic Member Directory – how to remove 'Add Friend', 'Cancel Friendship' buttons? in the forum How-to & Troubleshooting 2 weeks, 4 days ago
In your theme dir, create an over-ride of this file.
How to over-ride a BP template
In the over-ride, remove this code:
<div class="action">[Read more]
- Load More
@shanebp active 1 second ago