Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 9,101 through 9,125 (of 32,678 total)
  • Author
    Search Results
  • ch1n3s3b0y
    Participant

    Ok, so I have successfully created a custom members loop within a normal WordPress page. A weird issue is, if I set the type to something like ‘popular’ or ‘newest’ it might only return one result, when I had set the max to two. There are eleven test members so it there must be at least 2 newest members and 2 most popular.

    Does anyone have any idea what is going wrong here?

    <?php if ( bp_has_members(bp_ajax_querystring( 'members' ).'&include=1,2,3,4,5,6,7,8,9,10&max=2&type=newest' ) ) : ?>

    #235224
    danbp
    Participant

    You’ll have more chance by asking for this on the plugin support ! 😉

    AfromanJ
    Participant

    Basically Ive been asked to fix this field problem on someone elses website, Ive just been given access to FTP so can now make changes to the server files.

    They are using a theme called Huddle and have BuddyPress install on the latest version:
    http://themeforest.net/item/huddle-wordpress-buddypress-community-theme/835549

    The theme folder has a members folder in for BuddyPress, which i assumed was the standard for BuddyPress. I have overridden the templates you suggested in /themes/huddle/members/single and the issue is still present.

    I switched to a default WordPress theme to test compatibility and the fields are working like normal. So the issues is with the Huddle theme, now that its using the correct profile-loop and edit templates im not sure what the problem can be?

    #235222
    danbp
    Participant

    Hi @rosyteddy,

    since BP 1.7 theme compatibility was introduced, which allowed the use of almost every theme on a BP powered site. Previously, you could practicaly only use bp-default theme. Since bp-default was removed (7569) from the install package, that theme lives his own life. A few time later, it was decided to publish the source code of the bp-default custom theme used on bp.org…

    I wonder then why BP is not releasing this as a default theme for BP!

    Don’t wonder ! Because devs wanted to concentrate on their plugin, not on a specifical theme. It tooks hard working to isolate bp-default. And certainly not to introduce a new one today. 😉

    You have access to the source code. You’re free to use it and to skin it to your needs.

    If you don’t see colors or any other elements, you have to check your work and redo it if you comes if you have errors or omissions.

    Difficult to tell you what you did wrong. IMO nothing, but if you’re mixing your theme and bp-default à la bp.org, you missed probably somethings.

    If you don’t know how to do this, you can hire somebody on BP Job Board forum.

    #235221
    giuseppecuttone
    Participant

    Hi @alexterchum and @sbrajesh
    I think Alex is right.
    The other BuddyPress Notifications disappears when user visit the page.
    Also the others notifications generated with the others plugins that sbrajesh has developped (BP Group Activities Notifier and BuddyPress Activity Comment Notifier) run well.
    For example if the USER A send a message to USER B, USER B receive one notification.
    When USER B visit the page whin the message (http://URLWEBSITE/members/USER-NAME/messages/view/xx/) – clicking in the notification or by other way… – the notification will be dissapear.
    Also in the page http://URLWEBSITE/members/USER-NAME/notifications/, when user visit the page with the message, the message automatically will go to the section UNREAD and it is not necessary that the user must to mark as READ the message in order to dissapear the notification.

    I have the same problem with FORUM notification (using https://wordpress.org/support/plugin/bp-forum-notifier).

    sbrajesh, can you solve the problem in the plugin “BuddyPress Notify Post Author on Blog Comment”?

    Thank’s very much

    MarionetteX
    Participant

    I’m running WordPress 4.1.1 and BuddyPress 2.2.1. I’m trying to create a private forum for my friends. I don’t just want to have open registrations that are manually approved. I don’t want anybody to be able to sign up at all unless they have been invited. Thus, I want my registration page to ask for an invite code. Does anybody know of a relatively recently updated plugin that does this?

    Unfortunately, BAW Easy Invites and Secure Invites are pretty out of date. BAW EI itself doesn’t even work with BP, you need a dev version that could be even less out of date.

    WP-Invites works, but I don’t quite like some things about it. It doesn’t give you any option to delete codes (they have to be used or just expire to go away), and I wish I could change the text that appears on the registration page.

    (If a link to my site is necessary I can provide it, but to be clear, I’m not asking for help with anything currently running on my site. I only want to find a plugin like I describe that supports or at least works okay with WP 4.1.1 and BP 2.2.1. The site is private, and I’m attempting to avoid spreading it around too much to avoid the attention of attackers.)

    #235218
    rosyteddy
    Participant

    Ideas plugin : Please see https://wordpress.org/plugins/ls-buddypress-activity-plus-tabs-extension/
    This does it for the Groups only, can you please use the code to do it for the member profile page, that is, an Images tab on the member profile. Thanks.

    chinakat
    Participant

    Clean BP install — no plugins other than BP 2.2.1
    WordPress 4.1.1
    Twenty Fifteen Theme

    I have a few posts created, and have created comments on those posts.

    When I go to /activity to see the activity stream, I am experiencing a few issues with content not appearing as expected.

    1) The dropdown menu on the activity page does not change the display when I select an option — I can select Everything, Posts, or Comments and the display does not refresh accordingly. (When I look at the /members page and make selections from that dropdown, the page refreshes reordered by last active/alphabetical/newest registered, so I’m expecting a similar page refresh on dropdown selection from the Activity dropdown.)

    2) Lots of times I will go to /activity and get the message “Sorry, there was no activity found. Please try a different filter” — this is from the top level of the activity feed, and I absolutely know there IS activity to show. Even after I clear the browser cache, I get this message. This problem seems to happen sporadically, I can’t seem to find a hard and fast way to reproduce it — but it occurs often enough to be a showstopper for me.

    I looked through the forum and didn’t see any solutions. I did make sure that “discourage search engines from indexing the site” was unchecked, as I saw some posts that were possibly related to that.

    Are there other settings I need to adjust? Please advise.

    #235182
    Hugo Ashmore
    Participant

    This is likely an issue with necessary changes BP had to make setting is_page() to zero for BP pages, sadly causing a WP bug to manifest, WP has been patched to handle this issue.

    You can apply this patch to WP core in advance of it being released to correct the problem – if that is this is the issue.

    https://core.trac.wordpress.org/attachment/ticket/24674/24674.2.diff

    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.

    #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?

    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

    #235131
    shanebp
    Moderator

    Now in the WP plugin repo:
    https://wordpress.org/plugins/bp-local-avatars/

    And still available here: PhiloPress

    #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

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

    #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();
    
    #235081
    wolfied
    Participant

    I’m not an expert on wordpress and I am afraid, I’m not sure as to how I can create the forum outside of groups. But my question is, if a group is set to public, it should be reffering that it’s visible to anyone and it must NOT be compulsory to join the group for the public groups. Why can’t this be done?

    Any guide for carrying the whole forum outside the groups ? how would it effect me?

    #235077

    In reply to: Search Member

    Henry Wright
    Moderator

    Hi @aymanomar85

    Have you tried BP Profile Search?

    #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

    #235069
    mvaneijgen
    Participant

    This works

    // hook failed login
    add_action('wp_login_failed', 'my_front_end_login_fail'); 
     
    function my_front_end_login_fail($username){
        // Get the reffering page, where did the post submission come from?
        $referrer = $_SERVER['HTTP_REFERER'];
     
        // if there's a valid referrer, and it's not the default log-in screen
        if(!empty($referrer) && !strstr($referrer,'wp-login') && !strstr($referrer,'wp-admin')){
            // let's append some information (login=failed) to the URL for the theme to use
            wp_redirect($referrer . '?login=failed'); 
        exit;
        }
    }

    http://www.wpinsite.com/code-snippets/how-to-redirect-wordpress-failed-logins

    #235067
    hutchison
    Participant

    @rosyteddy, I found that the quickest, easiest, and most efficient solution was to substitute a different login widget. This one I found really works perfectly for me:

    https://wordpress.org/plugins/sidebar-login/

    Many thanks, nonetheless, for your ongoing support and advice.

    #235052
    bp-help
    Participant
    #235036

    I’m using the Wild Community theme (which is a BuddyPress integrated theme) and for some reason my nav bar (which has dropdowns to sub-pages of the site) doesn’t work properly. I hover over the nav bar it displays the sub-page information but when I try to click on it/ access those pages they just disappear and I can’t access them (from the nav bar). I was wondering if anyone could help me out with this.

    I’m also having BuddyPress issues where I can’t set up user registration properly. I have the fields setup but something with the pages that I direct them to don’t work.

    I also am having issues updating the Theme. WordPress is giving me an error message saying the data is already there and it can’t install. I’ve tried figuring it out and just can’t.

    If you could please help my site is http://www.themusicbusinessnetwork.org

    Thank you!!!

    leanneoleary
    Participant

    I have a custom post type with custom meta which is submitted via the frontend. Whenever the form is submitted I need to register this in the activity stream. I have had a look around the documentation and using the function bp_activity_add() looks like the obvious solution but in previous forum posts it has been mentioned to use the following code instead:

    add_filter ( 'bp_blogs_record_post_post_types', 'activity_publish_custom_post_types' );
    function activity_publish_custom_post_types() {
      $media = array('videos', 'pictures');
      return $media;
    }

    Can anyone advise which would be the better options and also how to implement the code properly? I am fairly new to both wordpress and buddypress and so do not know whether to add this to the main functions.php file and if so how.

    many thanks

Viewing 25 results - 9,101 through 9,125 (of 32,678 total)
Skip to toolbar