Forum Replies Created
-
In reply to: Email template folder
See this section: Customize Email Template on this codex page.
In reply to: Incorrect activation email senderBP recently added the BP Email API which uses its own methods.
You can place the code in bp-custom.php rather than your theme/functions.php
In reply to: Incorrect activation email senderTry this in your theme/functions.php
add_action( 'bp_email', function( $email_type, $email_obj ) { $email_obj->set_from( "you@yoursite.com", "Your Site" ); }, 10, 2 );Did you try using the provided filter hook in
function bp_blogs_visit_blog_button?apply_filters( 'bp_get_blogs_visit_blog_button', $button )$buttonis an array that includes class elements.In reply to: CPT in Activity with Detail…build the CPTs in a more traditional way.
That would be useful knowledge, but registering CPTs for BP can be a bit different.
If you haven’t, look at this codex page.
And you may actually want to build a custom BP component.In reply to: CPT in Activity with DetailI’m not familiar with Pods.
…it does not appear to fire at all
Then it’s not being filtered when the activity loop is being output.
Check the database activity table for an entry for one of your CPTs.
Make a small edit and see if it appears.
If so, the database entry is being used.
Therefore you may need to filter the entry when it is created.Take a look at the filters in
function savein theclass BP_Activity_Activity
or maybe
function bp_activity_create_summaryIn reply to: CPT in Activity with DetailIt sounds like you want to filter the content body of the activity item.
There is a filter hook for that:
apply_filters_ref_array( 'bp_get_activity_content_body', array( $activities_template->activity->content, &$activities_template->activity ) );
infunction bp_activity_content_body()in
buddypress\bp-activity\bp-activity-template.phpI think the main issue will be determining if the entry is related to your CPT.
And that will be affected by how you created the CPT.
There may be some info in the second argument – maybe in["type"]?Try:
function ben_filter_activity_body( $content, $activity ) { var_dump( $activity ); $content = ' Start of your content ' . $content; return $content; } add_filter( 'bp_get_activity_content_body', 'ben_filter_activity_body', 25, 2 );In reply to: Mobile members pageThe members search box is visible on mobile when using a standard WP theme like 2013.
So there is most likely an issue with your theme.
To confirm, trying switching momentarily to a WP theme.
In reply to: Private Member?I don’t believe
bp_parse_args()was available when I wrote that codex page.But you should use it instead; it should solve your issue:
https://codex.buddypress.org/developer/using-bp_parse_args-to-filter-buddypress-template-loops/In reply to: Setting geo_lat and geo_meta keysI haven’t test his code but…
I think he means that you have to set up a Profile field for zipcodes.
Once you do that, adjustfunction set_lat_longso that it uses thefield_idfor that field.
Then, if a member has entered a zipcode, ageo_latandgeo_longmetadata should be created.Is distance searching really important to you?
Would a google map showing the location of members be just as or more useful?In reply to: Profile menu new tab/linkOk, try:
$my_link = bp_loggedin_user_domain() . '/kalender';In reply to: Profile menu new tab/linkWhy did you add quotes to the variable and turn it into a string?
'link' => $my_link,In reply to: Profile menu new tab/linkTry creating a variable. Something like:
$my_link = '<a href="' . bp_loggedin_user_domain() . '/kalender">Kalender</a>'; ... 'link' => $my_link, ...In reply to: restrict per user pluginYou’ll need to write custom code to do that.
In reply to: virtual kiss or winkYou could probably adapt this:
https://wordpress.org/plugins/bp-poke/In reply to: Removing options for private and hidden groups
I’ve found another create.php
Make a small change in it and see if it is visible.
Your task is very logical – but fraught with danger.
Have you noticed that emails can be edited from a Profile page via Settings?
And how a confirmation email is sent?And this setting:
wp-admin/admin.php?page=bp-settings > Profile Sync?So it’s possible but not easy.
Display of those fields is fairly simple – but writing handlers to save those fields… eek.If it was me, I’d just add Profile fields for bio and website – and move on.
In reply to: 2.5 HTML email styling not workingI would like to give suggestions, if buddypress team should be given backend options like select content type (1)HTML email (2)Plain text
because buddypress have not given any hook for changes content type textYou can create an enhancement ticket here using the same login as you use for these forums.
In reply to: Removing options for private and hidden groupsSome themes include BP files.
To see if that is the case with your theme, try switching momentarily to a WP theme like 2013.In reply to: associating and embedding posts to particular Groupsrequests for help in these forums don’t seem to get much attention to me
Everyone here is a volunteer. Nobody is obligated to answer your questions – especially ones steeped in entitlement.
If you want more attention and faster attention – hire a developer.
Or at least use gist to share the code you’ve written in attempting to find a solution.
For your task, I would use the Group Extension API.
In reply to: Using Buddypress forums with LearnDash coursesHave you tried making the groups Private?
Have you asked LearnDash?
They have a BP extension, afaik.
And may be able to make suggestions.It is an html error in some code in your installation that first checks to see if the user is logged in.
You’ll have to search through your theme files for this text: Νέο,Θέμα
And correct the error.If you cannot find it in your theme, it may be coming from a plugin.
In reply to: Removing options for private and hidden groupsIs your edited file in the correct place?
It should be here:
.../wp-content/themes/your-theme/buddypress/groups/create.phpIn reply to: Removing options for private and hidden groupsCreate a template overload of this file:
buddypress\bp-templates\bp-legacy\buddypress\groups\create.phpThen, in your template overload, remove the html for the Private and Hidden options.
Please do not double post. Your other post has been deleted.
The redirect for the register page while logged in is in this file:
buddypress\bp-core\bp-core-catchuri.phpYou can adjust it by using this filter hook:
apply_filters( 'bp_loggedin_register_page_redirect_to', bp_get_members_directory_permalink() );