Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 7 replies - 26 through 32 (of 32 total)
  • @m1000

    Participant

    Thanks but I’m talking about this file – bp-default/groups/single/home.php
    I want to add brackets inside span like Members(12)

    @m1000

    Participant

    Thanks! It works. The whole code will be:

    `function my_formatter($content) {
    $new_content = ”;
    $pattern_full = ‘{(\[raw\].*?\[/raw\])}is’;
    $pattern_contents = ‘{\[raw\](.*?)\[/raw\]}is’;
    $pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE);

    foreach ($pieces as $piece) {
    if (preg_match($pattern_contents, $piece, $matches)) {
    $new_content .= $matches[1];
    } else {
    $new_content .= wptexturize(wpautop($piece));
    }
    }

    return $new_content;
    }

    remove_filter(‘the_content’, ‘wpautop’);
    remove_filter(‘the_content’, ‘wptexturize’);

    remove_filter( ‘bp_get_the_topic_post_content’, ‘wptexturize’ );
    remove_filter( ‘bp_get_the_topic_post_content’, ‘wpautop’ );

    add_filter(‘the_content’, ‘my_formatter’, 99);
    add_filter(‘bp_get_the_topic_post_content’, ‘my_formatter’, 99);`

    @m1000

    Participant

    There is the same problem with this plugin.

    It’s weird that following loop bp_has_activities can display all side-wide activities on each page but bp_has_forum_topics can’t do it.

    bp_has_activities(‘max=8&object=groups&user_id=0&action=new_forum_post&scope=0&primary_id=0’)

    @m1000

    Participant

    So there is no solution for it?

    @m1000

    Participant

    I hope you will add it to the next version of BP.

    @m1000

    Participant

    Yes, I have tried to crop avatar with and without CTL, SHIFT or Command key.

    Right now I have following settings in the bp-core-avatars.php

    For function bp_core_set_avatar_constants

    if ( !defined( 'BP_AVATAR_FULL_WIDTH' ) )
    define( 'BP_AVATAR_FULL_WIDTH', 215 );

    if ( !defined( 'BP_AVATAR_FULL_HEIGHT' ) )
    define( 'BP_AVATAR_FULL_HEIGHT', 135 );

    and for function bp_core_fetch_avatar:

    'width' => 150, // Custom width (int)
    'height' => 150, // Custom height (int)

    The result is I can’t make avatars 150x150px (problem with crop) – http://imm.io/NrNw

    Like I said, I want to have 215×135 (horizontal) group thumbnails so I modified bp_core_set_avatar_constants but unfortunately member avatars have also 215×135 while I want 150×150 size.

    @m1000

    Participant

    Look here – http://imm.io/NllV
    There is no way to make it square.

Viewing 7 replies - 26 through 32 (of 32 total)
Skip to toolbar