jbakuk
Forum Replies Created
-
Forum: Plugins
In reply to: [BuddyPress Activity Stream Bump to Top] WORKING ALTERNATIVE!Hi Alex (@sweeny),
Yes this code will bump an activity item when a new comment is added. I suggest you add the code & try it out to see for yourself.
I don’t think it will affect older activity items, only new ones as they happen.
Forum: Plugins
In reply to: [BuddyPress Activity Stream Bump to Top] WORKING ALTERNATIVE!@karthick-dev this is the code from solvemyquest.com, the site is still down. It works for me so I’d guess it’ll work for anyone. It’s not my code though so I can’t offer any support, give it a try.
function smquest_bp_activity_bump_comment_posted( $comment_id, $params )
{
global $bp, $wpdb;extract( $params, EXTR_SKIP );
$activity_parent = bp_activity_get_specific( array( ‘activity_ids’ => $activity_id ) );
if ( !$activity_parent = $activity_parent[‘activities’][0] )
return;if ( smquest_bp_activity_bump_denied_activity_type_check( $activity_parent->type ) )
return;if ( !smquest_bp_activity_bump_denied_user_check() )
return;//be nice and save the date_recorded
if ( !bp_activity_get_meta( $activity_id, ‘bp_activity_bump_date_recorded’) )
bp_activity_update_meta( $activity_id, ‘bp_activity_bump_date_recorded’, $activity_parent->date_recorded );$activity = new BP_Activity_Activity( $activity_id );
$activity->date_recorded = gmdate( “Y-m-d H:i:s” );
if ( !$activity->save() )
return false;
}
add_action( ‘bp_activity_comment_posted’, ‘smquest_bp_activity_bump_comment_posted’, 1, 2 );function smquest_bp_activity_bump_time_since( $content, $activity )
{
global $bp;
if ( !$bumpdate = bp_activity_get_meta( $activity->id, ‘bp_activity_bump_date_recorded’) )
return $content;
$content = ‘<span class=”time-since”>’ . sprintf( __( ‘ updated %s’, ‘bp-activity-bump’ ), bp_core_time_since( $activity->date_recorded ) ) . ‘</span>’;
return apply_filters( ‘etivite_bp_activity_bump_time_since’, ‘<span class=”time-since time-created”>’ . sprintf( __( ‘ %s’, ‘buddypress’ ), bp_core_time_since( $bumpdate ) ) . ‘</span> · ‘ . $content, $activity->date_recorded, $bumpdate, $content );
}
add_filter( ‘bp_activity_time_since’, ‘smquest_bp_activity_bump_time_since’, 1, 2 );function smquest_bp_activity_bump_denied_activity_type_check( $type )
{
$types = (array) maybe_unserialize( get_option( ‘bp_activity_bump_denied_activity_types’) );
return in_array( $type, apply_filters( ‘smquest_bp_activity_bump_denied_activity_types’, $types ) );
}function smquest_bp_activity_bump_denied_user_check()
{
global $bp;
//all, super, wp_cap
$types = maybe_unserialize( get_option( ‘bp_activity_bump_denied_user_types’) );
if ( $types && ( $types[‘super_admin’] || $types[‘user_cap’] ) )
{
if ( current_user_can( $types[‘user_cap’] ) )
return true;if ( $types[‘super_admin’] && $bp->loggedin_user->is_super_admin )
return true;return false;
}return true;
}Forum: Plugins
In reply to: [BuddyPress Activity Stream Bump to Top] WORKING ALTERNATIVE!Hi @karthick-dev,
Looks like the site is having issues, or worse still has closed down which would be a shame.
Sorry I am on mobile right now, I will post the code here tomorrow.
Forum: Reviews
In reply to: [BuddyPress Activity Stream Bump to Top] Essential but deadUpdate – as of today there is an issue posting comments at solvemyquest.com, also the contact us page is blank lol. Please try to thank them, I’m sure it’ll be fixed up soon ??
Forum: Plugins
In reply to: [BuddyPress Activity Stream Bump to Top] WORKING ALTERNATIVE!Update – as of today there is an issue posting comments at solvemyquest.com, also the contact us page is blank lol. Please try to thank them, I’m sure it’ll be fixed up soon ??
Forum: Reviews
In reply to: [BuddyPress Activity Stream Bump to Top] Essential but deadHi everyone,
I found a working alternative here – https://solvemyquest.com/move-new-commented-activity-stream-to-top/
Just add the code to your bpcustom.php file. No idea what that is? Go to your plugins folder in Cpanel or via FTP and create a file called bpcustom.php. This is where you can add custom codes for Buddypress that will not be overwritten when updating Buddypress.
Please be sure to comment at solvemyquest.com and thank the author for the fix. ??
Forum: Plugins
In reply to: [Tooltipy (tooltips for WP)] Glossary only shows when excluded ?Ok great, Thanks again for being so helpful (and fast too). I’ve left a comment on your website and purchased the premium add on as a thank you.
Keep up the great work Jamel, 10/10 from me ??
Forum: Plugins
In reply to: [Tooltipy (tooltips for WP)] Glossary only shows when excluded ?Ah I see, my apologies.
So just to clarify I should avoid:
/ and ” and &
Forum: Plugins
In reply to: [Tooltipy (tooltips for WP)] Glossary only shows when excluded ?Thanks
Forum: Plugins
In reply to: [Tooltipy (tooltips for WP)] Glossary only shows when excluded ?Thank you ??
Forum: Plugins
In reply to: [Tooltipy (tooltips for WP)] Glossary only shows when excluded ?here you go, let me know if you need a login
Forum: Plugins
In reply to: [Tooltipy (tooltips for WP)] Glossary only shows when excluded ?Rather than leaving debug mode switched on, here’s a screenshot. The line at the bottom is repeated 20+ times.
Forum: Plugins
In reply to: [Tooltipy (tooltips for WP)] Glossary only shows when excluded ?Also I’ve noticed the two lines at the top of the page (below), also show on every page through the site.
Notice: Undefined index: bt_kw_alt_img in /home/pielink/public_html/wp-content/plugins/bluet-keywords-tooltip-generator/index.php on line 109
Notice: Undefined index: bt_kw_for_posts in /home/pielink/public_html/wp-content/plugins/bluet-keywords-tooltip-generator/index.php on line 71
Forum: Plugins
In reply to: [Tooltipy (tooltips for WP)] Glossary only shows when excluded ?Hi Jamel,
Thanks for replying so quickly, I was asleep then at work (I’m in UK) so only just got back to this.
Thought I’d best reply here so anyone else that has the issue in the future can see this thread.
I activated debug, you can follow the link I posted earlier to view it.
Thanks again
Jamie
Forum: Plugins
In reply to: [Tooltipy (tooltips for WP)] Glossary only shows when excluded ?Hi Jamel,
Great plugin, just when we needed, thank you ??
I’m having this same Issue though. The glossary page was working fine but now the page is just blank. When I exclude keywords the glossary shows but the keywords are just plain text without tooltips.
I’ve not installed any new plugins since installing this one.
take a look here
If you’d like more info email me – [email protected]
Thanks