Amin (@aminima)

Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • @aminima

    Participant

    put it in your theme’s function.php file.
    or if you have buddypress installed too, put it in bp-custom.php.

    @aminima

    Participant

    Glad to hear that 🙂

    @aminima

    Participant

    It woked. Thank you so much 🙂 🙂
    I wish I knew you as well…

    @aminima

    Participant

    I would appreciate it if any developer can help.

    In reply to: Allow HTML from users

    @aminima

    Participant

    I’m using this, and it works fine:

    if ( !function_exists( 'ja_filter_bbpress_allowed_tags' ) ) {
    function ja_filter_bbpress_allowed_tags() {
    return array(
     
    // Links
    'a' => array(
    'href' => array(),
    'title' => array(),
    'rel' => array()
    ),
     
    // Quotes
    'blockquote' => array(
    'cite' => array()
    ),
     
    // Code
    'code' => array(),
    'pre' => array(),
     
    // Formatting
    'em' => array(),
    'strong' => array(),
    'del' => array(
    'datetime' => true,
    ),
    'span' => array(
    'lang' => array(),
    'style' => array()
    ),
    'p' => array(
    'dir' => array(),
    'style' => array()
    ),
    'div' => array(
    'class' => array()
    ),
    // Lists
    'ul' => array(),
    'ol' => array(
    'start' => true,
    ),
    'li' => array(),
     
    // Images
    'img' => array(
    'src' => true,
    'border' => true,
    'alt' => true,
    'height' => true,
    'width' => true,
    )
    );
    }
    }
    add_filter( 'bbp_kses_allowed_tags', 'ja_filter_bbpress_allowed_tags' );

    @aminima

    Participant

    I tried many times, but i couldn’t successfully convert forums from bbpress1 to bbpress2 in a Buddypress installation. So I gave up! That was totally a mess.
    I have +10,000 posts in bbpress1, and during migration I allways got timeout errors.
    after a partly migration, all forums were empty in buddypress (but in bbpress URLs, they was ok). So nothing worked in buddypress.
    Users avatars also changes to the default picture in bbpress2.
    AT FIRST, BACKUP YOUR DATABASE.

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