Forum Replies Created
-
In reply to: [Resolved] Remove SPAN tag from group tab
Thanks but I’m talking about this file – bp-default/groups/single/home.php
I want to add brackets inside span like Members(12)In reply to: Shortcodes – Disable WordPress automatic formattingThanks! 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);`In reply to: Display recent topics of all groups on sidebarThere 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’)
In reply to: Display recent topics of all groups on sidebarSo there is no solution for it?
In reply to: Square member avatar and horizontal group thumbnailI hope you will add it to the next version of BP.
In reply to: Square member avatar and horizontal group thumbnailYes, 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.
In reply to: Square member avatar and horizontal group thumbnailLook here – http://imm.io/NllV
There is no way to make it square.