-
Schweizer Solutions GmbH started the topic Move subnav to other tab in the forum How-to & Troubleshooting 6 years, 11 months ago
Hello!
I moved the “Change avatar” and “Change cover” subnavs from the tab “Profile” to “Setting”. It works good, but no content is displayed … I don’t know why, because the function “xprofile_screen_change_avatar” is triggered.
Does anybody has an idea?
Here is my code from the functions.php:
[Read more]
function custom_bp_menu_tabs() {
global… -
Schweizer Solutions GmbH replied to the topic Edit/delete xprofile fields (Multisite) in the forum How-to & Troubleshooting 7 years, 7 months ago
We’ve the same problem.
But we found a solution to fix it.
File: htdocswp-contentpluginsbuddypressbp-xprofilebp-xprofile-admin.php
Search the function “xprofile_admin_field” and there you replace the code from Line 609 to 630 with this:
$field_edit_url = add_query_arg(
[Read more]
array(
'page' => 'bp-profile-setup',
'group_id' => (int)… -
Schweizer Solutions GmbH replied to the topic Activate BuddyPress components programmatically in the forum Installing BuddyPress 8 years, 3 months ago
This is the output of the get_option:
array (
)And this is, what update_option use to store:
array (
'groups' => 1,
)
-
Schweizer Solutions GmbH replied to the topic Activate BuddyPress components programmatically in the forum Installing BuddyPress 8 years, 3 months ago
Thank you Henry, but we already tried this hook.
Maybe I should give you some code:
class SKS_Test {
public function __construct() {
add_action( 'activated_plugin', array( $this, 'activated_plugin' ), 99, 1 );
}public function activated_plugin( $plugin ) {
if ( $plugin == 'buddypress/bp-loader.php' && ! get_option( 'sks_installed',…[Read more]
-
Schweizer Solutions GmbH started the topic Activate BuddyPress components programmatically in the forum Installing BuddyPress 8 years, 3 months ago
Hello,
we build a One-Click-Installer for our WordPress-Multisite and we would like to activate some BuddyPress components.
First we activate the plugin programmatically and then we would like to activate the component groups per default.
We modified array in the option bp-active-components and added ‘groups’ => 1.
But it seems, that BuddyPress…[Read more] -
Schweizer Solutions GmbH replied to the topic bp_activity_add strips html in the forum How-to & Troubleshooting 8 years, 4 months ago
Hey Paul,
thats great, it works! Big thanks 🙂
Cheers
Andreas -
Schweizer Solutions GmbH started the topic bp_activity_add strips html in the forum How-to & Troubleshooting 8 years, 4 months ago
Hello,
I have a problem with the bp_activity_add function. I try to save a activity with HTML code as content. But everytime I check the result on the stream, the HTML code is stripped.
The code I use to write to the stream:
[Read more]
$bp_activity_id = bp_activity_add(array (
'user_id' => 99,
'action' => '<a href="http://example.org/members/swiss/"…
@schweizersolutions
Active 1 month, 4 weeks ago