-
Jonas replied to the topic Buddypress activity plus pludin issues in the forum How-to & Troubleshooting 6 years, 6 months ago
Ah alright, my mistake 🙂
-
Jonas replied to the topic Buddypress activity plus pludin issues in the forum How-to & Troubleshooting 6 years, 6 months ago
I had some issues with this earlier too, using the code supplied in this thread should clear up your issue.
Here’s the code if you’re unable to click the link for some reason. You should put it in your bp-custom.php file.
function toa_check_page_reqiurement_and_lie_to_buddypress ($is, $component) {
[Read more]
global $bp;
if ($is || "activity" !==… -
Jonas replied to the topic How to add report/block member option? in the forum How-to & Troubleshooting 6 years, 7 months ago
-
Jonas replied to the topic How to add og:title and og:description meta tags for Facebook on BuddyPress. in the forum How-to & Troubleshooting 6 years, 7 months ago
There’s different ways of solving it, you can look to this old post for some pointers.
or you could do something like this
<?php
function opengraph_tags() {
// defaults
$title = get_bloginfo('title');
$excerpt = get_bloginfo('description');if( bp_current_component() ) {
global $post;
setup_postdata( $post);…[Read more] -
Jonas replied to the topic Prevent subscribers from creating groups in the forum How-to & Troubleshooting 6 years, 7 months ago
You could try something like this
add_filter( 'bp_user_can_create_groups', 'create_groups_hide_for_roles' );
[Read more]
function create_groups_hide_for_roles($can)
{
$user = wp_get_current_user();
$banned_roles = array(
'subscriber',
'editor' // fill in the roles who can't make groups
);
if (array_intersect($banned_roles, $user->roles))
{
return… -
Jonas replied to the topic changing default avatar – codex info not working in the forum How-to & Troubleshooting 6 years, 7 months ago
Digging into it a bit more, it seems gravatars influences it. You can disable the gravatars like so
add_filter( 'bp_core_fetch_avatar_no_grav', '__return_true' );
followed by using your original code
define ( 'BP_AVATAR_DEFAULT', 'http://example.com/default-avatar.jpg' );
[Read more]
define ( 'BP_AVATAR_DEFAULT_THUMB',… -
Jonas replied to the topic changing default avatar – codex info not working in the forum How-to & Troubleshooting 6 years, 7 months ago
You could probably do something like the following to achieve it as well
function hanza3_add_default_avatar( $url ){
return get_stylesheet_directory_uri() .'/images/imagename.jpg';
}
add_filter( 'bp_core_mysteryman_src', 'hanza3_add_default_avatar' ); -
Jonas replied to the topic Link is not embedding in the forum How-to & Troubleshooting 6 years, 8 months ago
You could give Iframely a shot, it should convert any useful link into a rich snippet embedded post.
-
Jonas replied to the topic Display more than 20 members per page in the forum How-to & Troubleshooting 6 years, 10 months ago
-
Jonas replied to the topic Localized time stamp broken with 2.7 update in the forum How-to & Troubleshooting 8 years ago
Your time stamps looks correct, I’m guessing you mean the Danish translation isn’t working correctly?
You can grab the newest Danish Buddypress translation here https://translate.wordpress.org/locale/da/default/wp-plugins/buddypress followed by merging your current buddypress-da_DK.po file in poedit like this…[Read more]
-
Jonas replied to the topic Scalability in the forum Installing BuddyPress 8 years, 1 month ago
Right now you have 62 external Javascript scripts and 35 external stylesheets, thats quite excessive. You can see how it impacts your website by making a test through gtmetrix ( https://gtmetrix.com/reports/isociali.com/LjIWHWX5 click on waterfall )
There are loads of ways to speed your site up, its all in minimizing the transactions from…[Read more]
-
Jonas replied to the topic Activity updates only available to friends in the forum Creating & Extending 8 years, 5 months ago
like Henry mentioned, you can use the bp_parse_args. You could do the following to achieve it:
// Activity stream -> friends only
function my_friends_only_activity_args( $args ) {
if( ! bp_is_activity_directory() || ! is_user_logged_in() ) {
return $args;
}$user_id = get_current_user_id();
$user_ids =…[Read more]
-
Jonas replied to the topic Remove notification count unless there is 1 or more notifications pending? in the forum How-to & Troubleshooting 8 years, 5 months ago
Hi,
you can control whether or not to show the alerts through their css classes.
I’m guessing you’ve copyied Buddypresses way of notification alerts to your own template’s custom header, something like this svn.buddypress.org/branches/2.0/bp-notifications/bp-notifications-adminbar.php
0 notifications is governed through the .no-alert class – a…[Read more]
-
Jonas's profile was updated 8 years, 9 months ago
@jonaskjodt
Active 5 years, 11 months ago