Hi,
Can you send me a link to your website (also user profile page) to take a look at it?
Best regards,
thanks for replying, teodor!
at the moment I cannot provide a link, unfortunately.
which information could help?
i’m using:
wp 4.2.3
bbpress 2.5.6
profile builder 2.1.3
and this is the url-structure from profile pages:
mysite.com/forums/users/username/
Hi,
Can you update Profile Builder to the latest version 2.1.9? I see that bbPress latest version is 4.2.3. It is hard to define your problem and solve it if I can’t look into it.
Best regards,
just updated both to the latest version, bbpress and profile builder.
no changes regarding the line breaks.
<p></p> and break-tags are still ignored in front-end (profile page) and even disappear in the textbox after refreshing the editing-page.
other html-tags like link- and bold-tags work.
Hi,
Are you using the User listing module? Can you provide a screenshot of this error?
Best regards,
Thanks for your support!
no, I don’t use user listing module.
Screenshots:
Edit profile bio
and Profile page
Hi,
Basically WordPress strips html tags from the bio on save.
So what you can do is try this to change this using a bit of code that you can add to your theme’s function.php or in a custom plugin:
http://premium.wpmudev.org/blog/enable-or-disable-all-html-tags-in-wordpress-author-biography-profiles
thanks for replying!
this does not work, unfortunately.
Posted the issue here as well although I guess to need a solution with this plugin. When editing the bio info box through admin’s backend, line breaks are shown correctly.
Can you please send me a link to the profile page you sent me a screenshot of?
Perhaps I can figure out what’s causing it.
I sent you a link via cozmoslabs-ticket as I did not find any other contact to share it private. Hope you’re fine with it.
Hi Sarah,
The reason you don’t see HTML tags in the description there is because BBPress uses the WP_User class to get that information from the database. And in the case of the user description, the class itself dose something like this:
if ( 'description' == $field )
$value = esc_html( $value ); // textarea_escaped?
Basically it removes all HTML from the description and then prints it to the screen.
The only way to avoid this to either change the bbpress template or with code like so:
* Create an empty plugin like this: https://gist.github.com/sareiodata/76f701e01db6685829db
* Add the following code to the end of it:
function wppbc_show_bbpress_user_description_html( $value, $field, $filter ){
// Get the displayed user
$user = bbpress()->displayed_user;
if( $field == 'description' ){
$value = get_user_meta($user->ID, 'description', true);
}
return $value;
}
add_filter('bbp_get_displayed_user_field', 'wppbc_show_bbpress_user_description_html', 10, 3);
* Install this plugin via FTP (copy it inside wp-content/plugins) or create a zip archive with it and install it via the WordPress plugin upload functionality
Please note I haven’t tested it but it should work just fine!
If you need help with any of this, please let me know!
thanks, cristian. just created the plugin, does not work, unfortunately. same behaviour.
still struggling with this. plugin did not work and causes all css rules not to be applied for admin area.
in this bbpress topic, robkk points to <?php wpautop() ?>.
remove_filter('bbp_pre_user_description', 'wpautop' );
does not work.
Would be really happy to find a solution, I’m totally stuck.