Allowing users to add HTML to BP Groups Description how can I error check html of users? [closed]
The key filter is force_balance_tags. Don’t remove that one, as it’s responsible for making sure that HTML tags are closed.
The key filter is force_balance_tags. Don’t remove that one, as it’s responsible for making sure that HTML tags are closed.
The way the feature works is by posting the message on the screen, not in the members inbox, and it requires the template tag: <?php bp_message_get_notices(); ?> So wherever you put the tag, the message will appear there. In the default buddypress theme, it shows up when you activate a message and the user is … Read more
The problem is that you’re not specifying which template BuddyPress should use to display your content. There are a couple of ways to do it (see https://github.com/boonebgorges/buddypress-skeleton-component/blob/master/includes/bp-example-screens.php for a few options), but I suggest the following // This is the screen_function called in bp_core_new_nav_item() function all_conversations_link() { add_action( ‘bp_template_content’, ‘all_conversations_content’ ); bp_core_load_template( ‘members/single/plugins’ ); } … Read more
// 2012-07-11 — turns off hyperlinking of content on Members Profile remove_filter( ‘bp_get_the_profile_field_value’, ‘xprofile_filter_link_profile_data’, 9, 2 );
There is an action where you can hook in. It is called: ‘groups_created_group’. My idea is, that you hook into that and select the last group that was created. In database groups have a field called ‘date_created’. So just read the name of the last one and create your group out of that. You have … Read more
WordPress does not save the value of the avatar image in any database. It looks in the file system for avatar image and displays it on the website. So, I am planning to download the image to the server, which is running the WordPress (BuddyPress). I need to create a directory with the name same … Read more
Think I have figured out how best to work this. For anyone that may need it sometime the code I used was: <?php if ( 1 == bp_get_the_profile_group_id()) : ?> <h4>About Me</h4> <?php endif; ?> With 1 == the profile tab where I need to add my custom HTML. If anyone has a better solution … Read more
I re-installed the wamp server with the latest one. This fixed the issue. Looks like this was the issue with Apache.
Did you enable for debug in wp-config.php, you know, that is great for developing your theme define(‘WP_DEBUG’, false);
Try pulling in the username directly from WordPress. I don’t think BP will do it for you by default. global $bp, $wp_admin_bar, $current_user; $bodytag = str_replace(“Admin”, “”, $current_user->user_login;);