Info
- 4 posts
- 3 voices
- Started 3 years ago by john010117
- Latest reply from imgiseverything
- This topic is resolved
bb_profile_data_form automatically generating table?
-
- Posted 3 years ago #
Hi - the template function bb_profile_data_form automatically generates HTML tables, which I really do not want in my theme. I do not understand why it cannot be put in a separate template file so that us theme designers can style it however we want. Is this planned to be "fixed" in 1.0?
-
- Posted 3 years ago #
You could copy the function's contents to your template and edit it from there...
-
- Posted 3 years ago #
Unfortunately that seems to be the only way for now. Thanks, though.
-
- Posted 2 years ago #
Another way to remove the (frankly awful) table tags is to make use of PHP's output buffering.
function cleanForm($buffer){
// do a str_replace on $buffer to remove the table tag and replace with <div>s, or whatever you fancy and return it
$buffer = str_replace('replace me', 'with me', $buffer);
return $buffer;
}ob_start("cleanForm");
bb_profile_data_form();
ob_end_flush();
-
You must log in to post.