Forums

Join
bbPress Support ForumsThemesbb_profile_data_form automatically generating table?

Info

bb_profile_data_form automatically generating table?

  1. 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?

  2. You could copy the function's contents to your template and edit it from there...

  3. Unfortunately that seems to be the only way for now. Thanks, though.

  4. 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();

  5. You must log in to post.