Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 20,926 through 20,950 (of 94,542 total)
  • Author
    Search Results
  • #235191
    Doremdou
    Participant

    Hello everyone 🙂

    I would like to add a friendship cancel confirmation button to both side,
    (example: if BOB wants to cancel his friendship with JACK, BOB will receive a cancel confirmation button “Are you sure?” and JACK will also receive a cancel confirmation button like “BOB wants to cancel your friendship, accept?”) any ideas how I could do that? ^^

    I found this plugin http://buddydev.com/buddypress/bp-confirm-actions-ask-users-to-confirm-the-cancel-friendshipleave-group-actions/ on buddydev which would ask BOB “are you sure?” but I don’t know how to add a cancel button to JACK side.

    Thank you very much for your help and advices! 🙂
    Sophie

    #235187
    giuseppecuttone
    Participant

    Hi @mercime
    I have seen the topic “How to disable Group Activity updates?” in the following link:
    https://buddypress.org/support/topic/how-to-disable-group-activity-updates/
    This is a topic created 3 yars ago.
    But I don’t understand if I need remove or add the codec.
    Can you explain me?
    How must to do in order to disable comments and replies in a group, and let at the administrator of the group to be able to do comments and replies in the group.
    Thank’s very much.

    b2marketing
    Participant

    Hi

    I have created some widget areas and hooked them into some pages using conditional tag and using Genesis hooks. It works on all pages (the conditional tags are respected) except on buddypress pages. My custom widget areas should not be showing up on these buddypress pages but they do.

    It worked before updating. So something has changed between 2.1.1 and current version.

    Anyone had this issue?

    Thanks

    Hugo Ashmore
    Participant

    You need to explain just what you’re doing template wise with your site.

    If you have updated to latest BP version then you should have correct templates, unless you have overloaded/copied them to a theme, have you?

    Why haven’t you access to move files around? No cpanel, ftp etc to transfer files to a theme folder?

    Why are you referencing files from the github account – not that you can’t just a bit unusual.
    https://github.com/buddypress/BuddyPress/tree/master/src/bp-templates/bp-legacy/buddypress/members/single/profile
    Is the directory you want, profile-loop and edit templates.

    #235178
    Hugo Ashmore
    Participant

    @simpleone

    
    Registration page
    
    If you are on the registration page, BuddyPress will use the following template hierarchy:
    
        /buddypress/members/index-register.php
        The rest of the base templates as listed here.
    
    

    If you now rename the existing file you have overloaded as per the instructions for working with BP templates in a theme or child theme to the above what will happen is that BP will consider it a template handling and indeed needing all the necessary template parts i.e header and footer and all parts in between – think of the file now as similar to your page.php template but with the register content where the page loop for title and content would be. You now can traet this file as standalone and modify as you require.

    AfromanJ
    Participant

    Hey, I could be using the wrong view and edit templates as they do not look the same as the profile pages on buddypress.org.

    I do not have full access to replace files on the server manually, I have updated WordPress and BuddyPress to the latest versions.

    Do I need to manually replace the legacy files on the server with these files?
    https://github.com/buddypress/BuddyPress/tree/master/src/bp-templates/bp-legacy/buddypress

    I thought this would correct itself when the plugin is updated.

    #235175
    rosyteddy
    Participant

    How to add style css in bp-custom.php so that it loads *after* all the wp and bp css ?

    Thanks for your help.

    PS : In https://codex.buddypress.org/getting-started/customizing/changing-internal-configuration-settings/ some stuffs seem dated. Is there any updated version of this page with a fuller list of things you can do? Thanks.

    #235165
    tendersqatar
    Participant

    I have a wordpress website with enfold theme.
    I had created a local host replica with bitnami of the website after importing the contents
    no pligins are active except buddypress.
    but while registering a new user, nothing happens, just shows weak password notification while typing password. i had used alphanumeric while creating password for the registration , but why?

    #235151
    shanebp
    Moderator

    I’ve updated the groups loop codex page to include that usage.

    #235147
    kyxsune
    Participant

    Found it, Jetpack and specifically the photon module within jetpack was causing a dynamic resize of the generated thumbnails that failed.

    Thanks for your consideration, I hope this helps someone else down the line.

    Same solution as given here: https://buddypress.org/support/topic/avatar-cropping-errors/

    #235146
    shanebp
    Moderator

    Read the page in the codex.

    Try
    bp_has_groups( 'user_id=NULL' )

    #235136

    Topic: Google Indexing

    in forum Miscellaneous
    independent hostels
    Participant

    We have built a large website using buddypress to provide members profiles advertising the businesses of our members. We have (with difficulty) included the profile pages in our sitemap and we have submitted this site map to google. Goggle has quickly indexed all the other pagse on our website but excluded the buddypress profiles. This is a disaster for our members. Does anyone know why google will not index the buddy press member pages ?

    Hugo Ashmore
    Participant

    I ran across this the other day, and it’s been ticketed and will be looked into:
    https://buddypress.trac.wordpress.org/ticket/6167

    #235124
    kyxsune
    Participant

    So sorry to bother you all with this issue, I cant seem to figure out.

    Profile images are not showing up when one visits a users page, however the show up in widgets and in forum posts.

    Inspecting the element gives a 400(bad request), this is due to the way the resizing is foramtted:
    ‘resize=-30%2C-30’ when inserting into the image location. This can be seen by following this link

    Without the resize argument the image does in fact display correctly, Its annoying but I don’t know how to address this issue.

    Any advice or instructions would be greatly appreciated, and thank you for your time.

    Theme: Arcade Basic
    Wordpress Version: 4.1.1
    Buddypress Version: 2.2.1

    5high
    Participant

    Thanks for your reply @hnla.

    I’ve read through some of the codex and form what I understand I need to make a buddypress folder in my child theme and then add the files I want to edit into this so it loads first – all good there. OR that I cam edit BP actions by putting edits in a newly created bp-custom.php – which I’ve done and added into the root folder for the main plugins (/wp-content/plugins) ready for any customizations.

    I’ve searched extensively in the BP files on my server including:
    /wp-content/plugins/buddypress/bp-members/bp-members-activity.php
    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress-functions.php
    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/index.php
    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/activity.php
    … but can’t find the “whats-new-form” referenced there.

    I’ve found some info re. “whats-new-form” in a couple of files:
    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/activity/post-form.php
    /wp-content/plugins/buddypress/bp-themes/bp-default/activity/post-form.php
    …both of which seem to relate to the role=”complementary”, so not related to the member activity only section that I’m after (role=main).

    And the activity index file you mentioned:
    /wp-content/plugins/buddypress/bp-themes/bp-default/members/single/activity.php
    …did contain role=main but not the “whats-new-form”.

    My grasp of php is limited and I can’t for the life of me work out what to do with all this!

    Your suggestions would be appreciated – or links to info for this instead.

    many thanks.

    #235115
    Reginald
    Participant

    I am using wordpress 4.1.1 and buddypress Version 2.2.1

    When I try to create a new Group it allows me to Put in the name of the Group, and when I hit next, it shows in the browser like it goes to the settings page, but it does not bring up any of the settings.

    Whem I click next nothing comes up. I can type in the browser this link http://www.earndailypay.com/groups/create/step/group-avatar/
    and it will act like it’s on the Avator page, but nothing on the page like the settings page.

    When I maually type in the browser groups/create/step/group-invite/ it acts as it going to the invite page but again nothing comes up. When I click Finish it goes back to the Details Page.

    When I type in the Group Name in the Browser it appears there, but it will not all me to create any new ones. That group still shows like it needs to be finished, although it appears in my groups.

    I have tried to, switch to twenty fourteen and still getting the same error so I tried to uninstall buddypress, deleting it and reinstalled it, and I am still getting that error. My Tested one of my other WP Sites the same version of BP & WP and it creates new groups just fine amy suggestions.

    #235114
    SimpleOne
    Participant

    @hnla thank you for the guidance. FWIW, I did try doing as much research as possible (and trying out a few things) before posting my question here.

    I reviewed the information contained in the link you provided. Thanks for that. But after reading through that information, what I’m still unclear about is how/what template I should modify in order to affect ONLY the BP Registration page. (FYI, I’m not a php developer, so I do need a bit of hand holding for some of this kinda stuff.)

    I read through the info on how to “Customize the layouts of BuddyPress pages within the WordPress Default Themes”. However, the instructions provided there seem to apply to scenarios where a site admin is wanting to make page template changes that apply to all BP pages on a site (i.e., by placing a customized buddypress.php file in the child theme folder).

    In my case, I’m only wanting to change a single page (the Registration page) to remove the headers and footers. So I’m still unsure how I would go about doing that (even after reading through the info). Thank you very much for any specific guidance you can provide me with to accomplish this.

    #235109
    mcpeanut
    Participant

    @henrywright hey henry thx for the update, i still have not had full chance to use this plugin yet as i have had my head stuck into building some pretty complex search forms for the past few days for one of my none buddypress websites lol, which i wasn’t planning to do just yet, you know how it is 🙂 start one thing then end up doing something totally opposite! But i might even use this in one of my sites yet so i will definitely be trying it out at some point soon.

    #235102
    Hugo Ashmore
    Participant

    🙂 did you check the BP codex before embarking on above?

    The docs is first port of call, we attempt to document as much as possible there on an ongoing basis, some pages are undergoing re-freshing & updating but still provide useful reference like this page:

    Template Tag Reference

    Where you might try bp_is_directory()

    Or scan through bp-core-template.php in the core files where you’ll find reference to: bp_is_members_directory()

    which actually is a very simple check to see if !bp_is_user() && bp_is_members_component() the difference remaining can only be the members main directory.

    Generally BP is well specified for template tags and ‘is’ function checks.

    #235098
    Enaijo
    Participant

    Hi

    I’m using WP 4.1.1, BuddyPress 2.2.1 and bbPress 2.5.4. My problem is, that I can’t invite users to a group with the frontend, although I can add members with the backend.

    If I try to invite members with the frontend, it shows me the members as invited (the checkbox is checked and the avatar of the member is showing), but the member in question does not get any invitation.

    The server is running with nginx and everything is working fine, except for this particular problem.

    There are no JS-errors and no errors in the network-log of Chrome/Firefox. If I tick the checkbox to invite a member to a group, the browser sends two POST-requests to admin-ajax.php (/wp-admin) and they are both working (status 200).

    #235097
    gatelli
    Participant

    Hi,
    @mention auto suggest are working well in activity forms, but not inside forum (reply form). Is it a bug or intentional ?

    Thanks

    #235092
    danbp
    Participant

    The dropdown is sorted alphabetically by default.

    I don’t know how those plugins are workingbuilt, but with a little chance they have a language file.
    “Buddypress Activity privacy” comes before “Buddypress Edit Activity”
    Modify the name to get P after E !
    “Buddypress Privacy Activity” or more simple: use Activity Edit and Activity Privacy

    #235083
    leanneoleary
    Participant

    Thanks for your help with this but I am still not sure what I need to do. The function I posted was just an example that I had found from an earlier forum, I do not need to add videos and pictures to the activity stream.

    I need to add details of a custom post type every time a custom form is submitted from the frontend by a user. The custom post type is “Files”. Below is a class for the form and it is within the CMB (custom meta boxes) plugin folder. Can you advise on how to implement the code to record these forms posts in the activity stream?

    class uploadForm {
    
        // Set prefix
        public $prefix = '_cmb_'; 
    
        /**
         * Construct the class.
         */
        public function __construct() {
            add_filter( 'cmb_meta_boxes', array( $this, 'cmb_metaboxes' ) );
            add_shortcode( 'cmb-form', array( $this, 'do_frontend_form' ) );
            add_action( 'init', array( $this, 'initialize_cmb_meta_boxes' ), 9 );
           /* add_action( 'cmb_save_post_fields', array( $this, 'save_fields' ), 10, 4 );*/
            add_action( 'save_post', array( $this, 'save_fields' ), 10, 4 );
           /*add_filter( 'bp_blogs_record_comment_post_types', 'add_activity' );   IS THIS CORRECT?  */ 
        }
    
        /**
         * Define the metabox and field configurations.
         */
        public function cmb_metaboxes( array $meta_boxes ) {
    
            /**
             * Metabox for the "Memorials" front-end submission form
             */
            $meta_boxes['upload_files_metabox'] = array(
                'id'         => 'files',
                'title'      => __( 'Upload files', 'cmb' ),
                'pages'      => array( 'Files' ), // Post type
                'context'    => 'normal',
                'priority'   => 'high',
                'show_names' => true, // Show field names on the left
                'fields'     => array(
                    array(
                        'name'       => __( 'File description', 'cmb' ),
                        'desc'       => __( 'File title or description', 'cmb' ),
                        'id'         => $this->prefix . 'title',
                        'type'       => 'text',
                    ),
                    array(
                        'name'     => __( 'Project stage', 'cmb' ),
                        'desc'     => __( 'select stage (optional)', 'cmb' ),
                        'id'       => $this->prefix . 'category',
                        'type'     => 'taxonomy_select',
                        'taxonomy' => 'stages', // Taxonomy Slug
                    ),
                    array(
                        'name' => __( 'Link to website', 'cmb' ),
                        'desc' => __( 'Add url to website (optional)', 'cmb' ),
                        'id'   => $this->prefix . 'url',
                        'type' => 'text_url',
                        'protocols' => array('http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet'), // Array of allowed protocols
                        // 'repeatable' => true,
                    ),
                   array(
                        'name' => __( 'Upload image', 'cmb' ),
                        'desc' => __( 'Upload an image or enter a URL.', 'cmb' ),
                        'id'   => $this->prefix . 'image',
                        'type' => 'file',
                    ),
    
                  array(
                      'name'         => __( 'Upload files', 'cmb' ),
                      'desc'         => __( 'Upload or add multiple images/attachments.', 'cmb' ),
                      'id'           => $this->prefix . 'file_list',
                      'type'         => 'file_list',
                  ),
                  array(
                    'name' => __( 'oEmbed', 'cmb' ),
                    'desc' => __( 'Enter a youtube, twitter, or instagram URL. Supports services listed at <a href="https://codex.wordpress.org/Embeds">https://codex.wordpress.org/Embeds</a>.', 'cmb' ),
                    'id'   => $this->prefix . 'embed',
                    'type' => 'oembed',
                 ), 
                ),
            );
    
            return $meta_boxes;
        }
    
        /**
         * Shortcode to display a CMB form for a post ID.
         */
        public function do_frontend_form() {
    
            // Default metabox ID
            $metabox_id = 'upload_files_metabox';
    
            // Get all metaboxes
            $meta_boxes = apply_filters( 'cmb_meta_boxes', array() );
    
            // If the metabox specified doesn't exist, yell about it.
            if ( ! isset( $meta_boxes[ $metabox_id ] ) ) {
                return __( "A metabox with the specified 'metabox_id' doesn't exist.", 'cmb' );
            }
    
            // This is the WordPress post ID where the data should be stored/displayed.
            $post_id = 0;
    
            if ( $new_id = $this->intercept_post_id() ) {
                $post_id = $new_id;
                echo 'Thank You for your submission.';
            } 
    
            // Shortcodes need to return their data, not echo it.
            $echo = false;
    
            // Get our form
            $form = cmb_metabox_form( $meta_boxes[ $metabox_id ], $post_id, $echo );
    
            return $form;
        }
    
        /**
         * Get data before saving to CMB.
         */
        public function intercept_post_id() {
    
            // Check for $_POST data
            if ( empty( $_POST ) ) {
                return false;
            } 
             
            
    
            // Check nonce
            if ( ! ( isset( $_POST['submit-cmb'], $_POST['wp_meta_box_nonce'] ) && wp_verify_nonce( $_POST['wp_meta_box_nonce'], cmb_Meta_Box::nonce() ) ) ) {
                return;
            }
            
            // Setup and sanitize data
            if ( isset( $_POST[ $this->prefix . 'title' ] ) ) {
                           
              
                //add post data to database    
                $this->new_submission = wp_insert_post( array(
                    'post_title'            => sanitize_text_field( $_POST[ $this->prefix . 'title' ] ),
                    'post_author'           => get_current_user_id(),
                    'post_status'           => 'publish', // Set to draft so we can review first
                    'post_type'             => 'file',
                ), true );
    
                // If no errors, save the data into a new post draft
                if ( ! is_wp_error( $this->new_submission ) ) {
                    
                    return $this->new_submission;
                    
                   
                } 
    
            }
    
            return false;
        }
    
        /**
         * Grant temporary permissions to subscribers.
         */
        public function grant_publish_caps( $caps, $cap, $args ) {
    
            if ( 'edit_post'  == $args[0] ) {
                $caps[$cap[0]] = true;
            }
    
            return $caps;
        }
        
       
        
    
        /**
         * Save custom fields and uploaded files 
         */
        public function save_fields( $post_id, $post  ) {
    
                if($_POST['_cmb_category'] != ''){
                    add_post_meta( $post_id, '_cmb_category', $_POST['_cmb_category'], true );
                }
                if($_POST['_cmb_url'] != ''){
                    add_post_meta( $post_id, '_cmb_url', $_POST['_cmb_url]'], true );
                }
                if($_POST['_cmb_image'] != ''){
                    add_post_meta( $post_id, '_cmb_image', $_POST['_cmb_image'], true );
                }
                if($_POST['_cmb_image_id'] != ''){
                    add_post_meta( $post_id, '_cmb_image_id', $_POST['_cmb_image_id'], true );
                }
                if($_POST['_cmb_file_list'] != ''){
                    add_post_meta( $post_id, '_cmb_file_list', $_POST['_cmb__file_list'], true );
                }
                if($_POST['_cmb_embed'] != ''){
                    add_post_meta( $post_id, '_cmb_embed', $_POST['_cmb_embed'], true );
                }
           
    
        }
    
        /**
         * Initialize CMB.
         */
        public function initialize_cmb_meta_boxes() {
    
            if ( ! class_exists( 'cmb_Meta_Box' ) ) {
                require_once 'init.php';
            }
    
        }
        
        /**
         * Add to buddypress activity timeline. - HOW???
         */
        public function add_activity($post_types) {
    
           /* $activity_id = bp_activity_add( $args );
            
            return $activity_id;*/
    
           /*   $post_types[] = 'file'; 
              return $post_types;*/
        }  
        
    
    } // end class
    
    $uploadForm = new uploadForm();
    
    #235079
    Henry Wright
    Moderator

    Hi @leanneoleary

    bp_blogs_record_post_post_types filters the post types to track. The function you posted is telling the Blogs component to track videos and pictures.

    bp_activity_add() simply adds items to the activity stream. See here for how it’s used.

    Now, I think posts of type videos and pictures will be automatically added to the stream due to activity_publish_custom_post_types(). But, if they aren’t you’ll need to use bp_activity_add() as well.

    Does this help?

    #235071

    Topic: Privacy

    ouegy
    Participant

    WordPress 4.1
    BuddyPress 2.1.1

    Hi,

    Is there a way in version 2.1.1 to restrict access to a persons profile to friends only?

    There is an old thread on this which suggests the following code – would this still be the way to go about this?

    <?php
    
    global $bp;
    
    $potential_friend_id = $bp->displayed_user->id;
    
    $friend_requester_id = $bp->loggedin_user->id;
    
    $friend_status = BP_Friends_Friendship::check_is_friend( $friend_requester_id, $potential_friend_id );
    
    if ( $friend_status != 'is_friend' && $potential_friend_id !=  $friend_requester_id) {
    
    echo '<br><br>Oops! You must be friends with <div style="font-weight:bold; display:inline">' . $bp->bp_options_title . '</div> to view this profile.<br>Click the "Add Friend" button above to request friendship.' . bp_add_friend_button();
    
    } else { ?>

    Thanks

Viewing 25 results - 20,926 through 20,950 (of 94,542 total)
Skip to toolbar