Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • in reply to: Buddy Press Group Types #139047
     valuser
    Participant

    Thanks for pushing this up to devs.

    Now updated to kleo v. 4.1.5

    BuddyPress Group Types Codex Page is now updated.

    So i have in kleo (v.4.1.5) functions.php the following functions

    COPY CODE
    function my_bp_custom_group_types() {
        bp_groups_register_group_type( 'team', array(
            'labels' => array(
                'name' => 'Teams',
                'singular_name' => 'Team'
            ),
            // New for 2.7 - Change 'teams' to whatever slug you want your group type directory to have.
            'has_directory' => 'teams',
            'show_in_create_screen' => true,
            'show_in_list' => true,
            'description' => 'Teams are good',
            'create_screen_checked' => true
        ) );
    }
    add_action( 'bp_groups_register_group_types', 'my_bp_custom_group_types' );

    no response from theme to insert group types

    whereas in twenty sixteen see the following attachments.

    I think perhaps that the buddypress group component in your theme needs updating

    please keep me posted

    Attachments:
    You must be logged in to view attached files.
     valuser
    Participant

    ok the solution is at

    https://archived.seventhqueen.com/forums/topic/attachment-and-post-buttons-for-whats-new-posts-on-groups-were-hidden

    add this to your functions.php

    COPY CODE
    add_action( 'wp_enqueue_scripts', 'load_buddypress_js' );
    function load_buddypress_js () {
    if (bp_is_group() || is_page( 'activity' )) {
    wp_enqueue_script('buddypress_query',plugins_url() . '/buddypress/bp-core/js/jquery-query.min.js',array("jquery"));
    wp_enqueue_script('buddypress_members',plugins_url() . '/buddypress/bp-core/js/widget-members.min.js',array("jquery"));
    wp_enqueue_script('buddypress_cookie',plugins_url() . '/buddypress/bp-core/js/jquery-cookie.min.js',array("jquery"));
    wp_enqueue_script('buddypress_scroll',plugins_url() . '/buddypress/bp-core/deprecated/js/jquery-scroll-to.min.js',array("jquery"));
    wp_enqueue_script('buddypress_js',get_template_directory_uri() . '/buddypress/js/buddypress.min.js',array("jquery"));
    }
    }
     valuser
    Participant

    I now have examined two (almost) identical sites on different servers.

    The differences (in regard to javascripts) are as follows:

    The five scripts put into functions.php – as per your advice – are coming in to the “bad” server (wpengine) like this: (with the wp version 4.1 not the bp version 2.1.1 as in the “good” server (bluehost).)

    COPY CODE
    <script type='text/javascript' src='http://dogdrill.com/wp-content/plugins/buddypress/bp-core/js/jquery-query.min.js?ver=4.1'></script>
    <script type='text/javascript' src='http://dogdrill.com/wp-content/plugins/buddypress/bp-core/js/widget-members.min.js?ver=4.1'></script>
    <script type='text/javascript' src='http://dogdrill.com/wp-content/plugins/buddypress/bp-core/js/jquery-cookie.min.js?ver=4.1'></script>
    <script type='text/javascript' src='http://dogdrill.com/wp-content/plugins/buddypress/bp-core/depreciated/js/jquery-scroll-to.min.js?ver=4.1'></script>
    <script type='text/javascript' src='http://dogdrill.com/wp-content/themes/kleo/buddypress/js/buddypress.min.js?ver=4.1'></script>

    AND

    only on the good server this (the “heartbeat” file) comes in:

    COPY CODE
    <script type='text/javascript'>
    /* <![CDATA[ */
    var heartbeatSettings = {"ajaxurl":"\/wp-admin\/admin-ajax.php","nonce":"3ca3c1a148"};
    /* ]]> */
    </script>
    <script type='text/javascript' src='http://www.rvews.com/wp-includes/js/heartbeat.min.js?ver=4.1'></script>
    <script type='text/javascript'>
    /* <![CDATA[ */
    var BP_DTheme = {"accepted":"Accepted","close":"Close","comments":"comments","leave_group_confirm":"Are you sure you want to leave this group?","mark_as_fav":" ","my_favs":"My Favorites","rejected":"Rejected","remove_fav":" ","show_all":"Show all","show_all_comments":"Show all comments for this thread","show_x_comments":"Show all %d comments","unsaved_changes":"Your profile has unsaved changes. If you leave the page, the changes will be lost.","view":"View","newest":"Load Newest","pulse":"15"};
    /* ]]> */
    </script>

    this is not to be seen on the “bad” server.

    Any help at all very much appreciated

     valuser
    Participant

    ok so far – just a more complete rendition of what is missing in the “bad” server compared to a similar setup on a “good” server.
    immediately following the heartbeat line is also missing —–
    <script type=”text/javascript”>var BP_DTheme{}</script>

    COPY CODE
    <script type="text/javascript">
    /* <![CDATA[ */
    var heartbeatSettings = {"ajaxurl":"\/wp-admin\/admin-ajax.php","nonce":"1d1a7d444d"};
    /* ]]> */
    </script>
    <script type="text/javascript" src="http://mydomain.com/wp-includes/js/heartbeat.min.js?ver=4.1"></script>
    <script type="text/javascript">
    /* <![CDATA[ */
    var BP_DTheme = {"accepted":"Accepted","close":"Close","comments":"comments","leave_group_confirm":"Are you sure you want to leave this group?","mark_as_fav":" ","my_favs":"My Favorites","rejected":"Rejected","remove_fav":" ","show_all":"Show all","show_all_comments":"Show all comments for this thread","show_x_comments":"Show all %d comments","unsaved_changes":"Your profile has unsaved changes. If you leave the page, the changes will be lost.","view":"View","newest":"Load Newest","pulse":"15"};
    /* ]]> */
    </script>

    Whe i googled var BP_DTheme the first result is a three year old thread https://buddypress.org/support/topic/comments-are-not-working/ which must mean i’m getting closer!!

    Please understand I just haven’t any great clue about this stuff but would greatly appreciate any help that you van give

     valuser
    Participant

    no problem.

    Now, if possible bear with me on this.

    First cursory comparison: the file at mydomain/wp-includes/js/heartbeat.min.js?ver=4.1 is not being loaded to the unresponsive site while it is being loaded to the “good” site on the “good” server.

    the missing bit (thats not on the “bad” server) is

    COPY CODE
    <script type="text/javascript">
    /* <![CDATA[ */
    var heartbeatSettings = {"ajaxurl":"\/wp-admin\/admin-ajax.php","nonce":"ef57d07069"};
    /* ]]> */
    </script>
    <script type="text/javascript" src="http://mydomain.com/wp-includes/js/heartbeat.min.js?ver=4.1"></script>

    Could that possibly be relevant ??

    /**
    * Heartbeat API
    *
    * Heartbeat is a simple server polling API that sends XHR requests to
    * the server every 15 – 60 seconds and triggers events (or callbacks) upon
    * receiving data. Currently these ‘ticks’ handle transports for post locking,
    * login-expiration warnings, autosave, and related tasks while a user is logged in.

    If not I will do a detailed comparision, hopefully, tomorrow.

    in reply to: Kleo 2.3 update problem – only in Safari ??? #39384
     valuser
    Participant

    Point taken. and my issue is NOT a big deal. this only happens in Safari.

    However

    In multisite installations it is sometimes the case that

    the Network root site has just the logo in the header

    and subsites have the logo Plus the subsite title.

    eg network home Chanel – logo only
    subsites Chanel Perfumes logo + title
    Chanel Eau de— logo + title

    temporary fix appears to be to specify the width via a function with php browser detect plugin/wp-mobile-detect (in use anyway)

    COPY CODE
    function add_safari_fix_header() {
    global $current_user, $wpdb;
    if (function_exists('wpmd_is_phone') && !wpmd_is_phone() && is_safari() ) { ?>
    <style type="text/css">
    .logo {width: 400px !important;}
    </style>
     <?php
    }//end if
    }
    add_action('wp_head', 'add_add_safari_fix_header');
    in reply to: Sharing when bp-moderation is active #27966
     valuser
    Participant

    To activate Buddypress Moderation successfully see http://wordpress.org/support/topic/fatal-error-can-not-activate

    Change the following at wp-content/plugins/bp-moderation/bpModLoader.php on line 119

    COPY CODE
    function call_activate()
    {
    $this->call_installer('activate', func_get_args());
    }

    to

    COPY CODE
    function call_activate()
    {$fargs = func_get_args();
    $this->call_installer('activate', $fargs );
    }
    in reply to: Mulltisite – /blogs/ page #20510
     valuser
    Participant

    Thank you.

    Did take a look at bp profile search and it does work well with your theme.

    In the end though, because your theme is so well written, a more suitable (for me) was just a new page “Special Members”

    Where the condition is “special”

    I did this as follows:-

    1) putting the condition in a new loop — special-members-loop.php
    in
    kleo-child/buddypress/members/special-members-loop.php

    2) then making a new page “Special Members”

    3) copying kleo/buddypress/members/index.php to the new page “Special Members”

    4) calling special-members-loop.php from that page (towards the end) a la

    COPY CODE
    <div id="members-dir-list" class="members dir-list">
    
    		<?php bp_get_template_part( 'members<strong>/special</strong>-members-loop' ); ?>
    
    </div><!-- #members-dir-list -->
    

    the ‘snazzy’ treatment for the blogs page would complete the theme (i think anyway)

    Cheers

    in reply to: Mulltisite – /blogs/ page #20187
     valuser
    Participant

    Thanks for reply.

    Yes – i have css in the child theme that may have interfered.

    Fixed/Resolved

    with

    COPY CODE
    #buddypress ul.item-list li {
    	min-height: 100px !important;
    }
    
    #blogs-list .action .meta {margin-top: 50px !important}
    

    In a future version do you intend giving this page (blogs) the (for want of a better word) Javascript treatment so that it appears all “snazzy” like the “Members” and the “Groups” pages ?

    Also some guidance on how to base a page on say the members loop but filtered by a conditional profile field.

    ie Members with (say) profile field gender = male

Viewing 9 posts - 1 through 9 (of 9 total)

Log in with your credentials

Forgot your details?