Hello Brajesh,
Thank you for your great plugin.Could you, please, add comparability with this plugin?
https://wordpress.org/plugins/bp-limit-activity-length/It works with standard theme activity:
Your plugin
http://prntscr.com/mqre79Standard theme:
http://prntscr.com/mqrefwThank you
Hi Max,
I am sorry we are unable to add it.The posting to activity is handled by your theme or BuddyPress(depends on which theme/template pack you are using).
The activity shortcode plugin simply includes the form from your theme. You will need to consult theme authors for limiting the size.
Since all the updates are created on user actions, BuddyPress does not provide any such filter(only from members).
You can use object=profile or object=groups to filter by component though.
Regards
BrajeshThe activity shortcode plugin simply includes the form from your theme. You will need to consult theme authors for limiting the size.
It’s working with standard theme activity.
But with your plugin – not.That is why I asked, if it’s possible to solve it.
Hi Max,
I am sorry but I am unable to assist.Please see this
We are loading it from theme.
I have no idea why these two plugins are not working(I am guessing the counter plugin is checking for specific page to load their javascript and that means, It will need a modification in the counter plugin).
Regards
BrajeshThank you.
Maybe you can assist to add your plugin define.
if ( // Load the scripts on Activity pages (defined('BP_ACTIVITY_SLUG') && bp_is_activity_component()) || // Load the scripts when Activity page is the Home page (defined('BP_ACTIVITY_SLUG') && 'page' == get_option('show_on_front') && is_front_page() && BP_ACTIVITY_SLUG == get_option('page_on_front')) || // Load the script on Group home page (defined('BP_GROUPS_SLUG') && bp_is_groups_component() && 'home' == $bp->current_action) ) { add_action( "wp_enqueue_scripts", array (&$this, 'enqueue_scripts') ); add_action( "wp_print_scripts", array ( &$this, 'print_style' ) ); }
Line 79
https://github.com/mgmartel/BP-Limit-Activity-Length/blob/master/bp-limit-activity-length.php- This reply was modified 5 years, 10 months ago by Maksim Rusakovich.
Hi Max,
I am sorry but there is no way for me to know on wp_enqueue_scripts if this page uses my shortcode(there is a hack, but I . Only you as site admin know where you have the shortcode. Is it on some page? If you can point me which page you have the shortcode, I can assist you with editing the above code.Regards
Brajesh
You must be logged in to reply to this topic.