magland
Forum Replies Created
-
Forum: Plugins
In reply to: [Activity Reactions For Buddypress] loading stylesheet erorrForum: Plugins
In reply to: [Activity Reactions For Buddypress] Error 400 admin-ajax.phpWorks great, thanks!
Forum: Plugins
In reply to: [Activity Reactions For Buddypress] MIME type is text/htmlChanging file ai_bp_reactions_dynamic_css.php to this:
<?php header('Content-Type: text/css'); require_once( explode( "wp-content" , __FILE__ )[0] . "wp-load.php" ); echo ai_bp_main_animation_css(); ?>
and function ai_bp_reaction_dynamic_style_init in class/class.php to:
function ai_bp_reaction_dynamic_style_init() { if(bp_current_component('activity') ) { wp_enqueue_style('dynamic-css', esc_url(plugins_url('activity-reactions-for-buddypress/css/ai_bp_reactions_dynamic_css.php') ), null, null, null); } }
fixed it for me.
Only difference I notice is that the icons now animate in on hover.
Forum: Plugins
In reply to: [Activity Reactions For Buddypress] MIME type is text/htmlI’ve also got this problem
Also looking for this…
Forum: Plugins
In reply to: [BP Group Documents] Can’t download documents in Internet Explorer 11This is a mime type issue for docx, xlsx files. I’ve fixed it in my install as below.
In the file you suggested (/wp-content/plugins/bp-group-documents/include/filters.php)
Find this line in function cac_catch_group_doc_request():
$mime_type = mime_content_type( $doc_path );
Replace it with this (assuming your PHP version is higher than 5.3.0):
if( phpversion() >= '5.3.0' ) { $result = new finfo(); if (is_resource($result) === true) { $mime_type = $result->file($doc_path, FILEINFO_MIME_TYPE); } } else { $mime_type = mime_content_type( $doc_path ); }
The function used in the plugin:
https://php.net/manual/en/function.mime-content-type.php#87856Doesn’t list docx, xlsx, pptx, etc as supported mime types but the above code fixes it using an alternative.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Buddypress global search compatibility issueyup that seems to have fixed it, thanks!
- This reply was modified 7 years, 4 months ago by magland.
Forum: Plugins
In reply to: [BP Activity Share] Custom post type activitiesI’ve continued to attempt to fix this, the below seems to be working for me. I’ve highlighted by changes / additions in bold. This starts at line 68 in bp_activity_action_bp_share_activity() in class-bp-activity-share-public-ajax.php
// Checking if sharing is in site-wide activity or in the group.
if ( ‘bpas-sitewide-activity’ === $share_to ) {// If current activity’s component is activity.
if ( ‘activity’ === $current_activity[‘activities’][0]->component ) {
if ( 0 === $current_activity[‘activities’][0]->item_id || 0 === $current_activity[‘activities’][0]->secondary_item_id || null === $current_activity[‘activities’][0]->secondary_item_id ) {
// User ID as a current activity’s User ID
$user_id = $current_activity[‘activities’][0]->user_id;// Item id as an activity ID.
$item_id = $current_activity[‘activities’][0]->id;
} else {
$activity_id = $current_activity[‘activities’][0]->secondary_item_id;if($activity_id == “” ) {
$activity_id = $current_activity[‘activities’][0]->activity_id;
}// Getting parent activity using Item ID.
$parent_activity = bp_activity_get_specific( array( ‘activity_ids’ => $activity_id ) );if($parent_activity[‘activities’][0]->user_id == “”) {
$parent_activity = $current_activity;
}// User ID as a parent activity’s User ID.
$user_id = $parent_activity[‘activities’][0]->user_id;// Item id as an item ID.
$item_id = $current_activity[‘activities’][0]->item_id;
}} elseif ( in_array( $current_activity[‘activities’][0]->component, array( ‘groups’, ‘profile’ ), true ) ) {
Forum: Plugins
In reply to: [Activity Reactions For Buddypress] Like comments?I’ve done it myself.
Please see this version:
https://www.pobl.systems/downloads/activity-reactions-for-buddypress-with-comments.zip
Hopefully the author will include my revisions in the official version of this plugin.
hi @arete-it
I have extended your plugin to allow reactions for comments.
It would be great if you could test and include the functionality officially.
Please try my version here:
https://www.pobl.systems/downloads/activity-reactions-for-buddypress-with-comments.zip
Forum: Plugins
In reply to: [Activity Reactions For Buddypress] Activity reactions to commentshi @joe704la, I got tired of waiting for this functionality so I’ve had a go at doing it myself.
I’m sure it’s not the most elegant way of doing things but I have it working on my buddypress install.
If you want to try my version please download the zip file here:
https://www.pobl.systems/downloads/activity-reactions-for-buddypress-with-comments.zip
It would be great to know if it works outside of my setup.
Forum: Plugins
In reply to: [WordPoints] Buddypress extension – points for joining groupsNo problem, my mistake. Perhaps ‘User’ should be the default option for Award to for that type though… ??
Forum: Plugins
In reply to: [WordPoints] Buddypress extension – points for joining groupsSorry, just noticed the type is configured as:
Join Group
Joining a group on the BuddyPress social network.Award To (cannot be changed)
Group >> CreatorDoes this mean the points get awarded to the group creator even when someone else joins the group?!
If so my bad, I guess I should have selected User! Oops!
Forum: Plugins
In reply to: [BuddyPress Compliments] email sent no formattingSorry to jump in on this discussion. I have this same issue, removing the $headers as you have suggested does make a small difference to the formatting of the email however the compliments email is in a different style to all the other notifications generated by my site.
Is there a reason you are not using the buddypress emails api?