BuddyDev

Search

BuddyPress Activity Shortcode – symbol counter

  • Participant
    Level: Enlightened
    Posts: 95
    Maksim Rusakovich on #21148

    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/mqre79

    Standard theme:
    http://prntscr.com/mqrefw

    Thank you

  • Participant
    Level: Enlightened
    Posts: 95
    Maksim Rusakovich on #21155

    + How to show only Updates of the members?

  • Keymaster
    (BuddyDev Team)
    Posts: 21785
    Brajesh Singh on #21156

    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
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 95
    Maksim Rusakovich on #21159

    The 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.

  • Keymaster
    (BuddyDev Team)
    Posts: 21785
    Brajesh Singh on #21163

    Hi Max,
    I am sorry but I am unable to assist.

    Please see this

    https://github.com/buddydev/bp-activity-shortcode/blob/master/core/class-bpas-shortcode-helper.php#L201

    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
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 95
    Maksim Rusakovich on #21168

    Thank 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

  • Keymaster
    (BuddyDev Team)
    Posts: 21785
    Brajesh Singh on #21176

    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.

This topic is: not resolved