Skip to:
Content
Pages
Categories
Search
Top
Bottom

bb_profile_data_form automatically generating table?

  • 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?

Viewing 3 replies - 1 through 3 (of 3 total)

  • Ben L.
    Member

    @nightgunner5

    You could copy the function’s contents to your template and edit it from there…

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


    imgiseverything
    Member

    @imgiseverything

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar