Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 21,551 through 21,575 (of 94,541 total)
  • Author
    Search Results
  • #233163
    barodscheff
    Participant

    Hi guys

    I’ve added a custom profile menu like told here: http://blog.maximusbusiness.com/2013/06/buddypress-profile-custom-bp-menu/

    The code is outdated. So I changed this function
    bp_core_load_template()

    to this
    bp_get_template_part

    It works so far and the template is included. But at the same time I get a 404 page and my included content is outside the content div. I would like to display the content of my template within the members/profile loop which is also not loaded.

    Any suggestions?

    The code:

    function my_setup_nav() {
          global $bp;
    
          bp_core_new_nav_item( 
    		array( 
                'name' => __( 'Item One', 'buddypress' ), 
                'slug' => 'my-item-one', 
                'position' => 30,
                'screen_function' => 'mb_author_posts', 
    		) 
    	  );
    
          // Change the order of menu items
          $bp->bp_nav['messages']['position'] = 100;
    }
    
    add_action( 'bp_setup_nav', 'my_setup_nav' );
    
    function mb_author_posts(){	
    	add_action( 'bp_template_content', 'mb_show_posts' );
    	bp_get_template_part( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    }
    
    function mb_show_posts() {
        echo '<h1>Test</h1>';
    }
    Henry Wright
    Moderator

    Hi @ashvin03

    Nowhere in your function do you tell BuddyPress to change the user’s role to subscriber, therefore the problem must be coming from elsewhere. Try disabling all plugins and activating the Twenty Fifteen theme to see if the issues resolves.

    #233159
    danbp
    Participant
    Pravin Makvana
    Participant

    I am working with buddypress, I have a two user roles, 1-student 2-faculty and i have set default user role as subscriber. when user registers and activates account by clicking on link sent through mail.User role changes to default(subscriber).

    Any idea what is the issue? Below is the code assigning role to user on sign up.

    add_action('bp_core_signup_user', 'ad_user_signup_usermeta', 10, 5);
    function ad_user_signup_usermeta($user_id, $user_login, $user_password, $user_email, $usermeta) {
    
            if(isset($_POST['signup_membership']) && !empty($_POST['signup_membership']))
            update_user_meta($user_id, 'membership', $_POST['signup_membership']);
    
            $userdata = array();
            $userdata['ID'] = $user_id;
            if(!empty($_POST['signup_usertype'])) {
                if($_POST['signup_usertype'] == 'student') {
                $userdata['role'] = 'student';  
                }
                if($_POST['signup_usertype'] == 'instructor') {
                $userdata['role'] = 'instructor';   
                }   
            }
    
            if ($userdata['role']){
                wp_update_user($userdata);
            }
    
    }
    Ben Hansen
    Participant

    doesn’t currently exist in buddypress.

    lucdkny
    Participant

    Something weird happened with my site. When I create event, a new member register and so on, everything is double. I use Buddypress 2.2.0 and WordPress 4.1
    Anyone has any idea what could cause this?
    Thank you!

    skyrant
    Participant

    I like to create a new group that has access to the Group and Activity Menu in the admin dashboard. Because BuddyPress does not use standard wordpress functionality when it comes to roles or capabilities i have not found any way to do this. It’s a right mess if you ask me and your documentation is lacking to say the least.

    Even giving a Role the bp_moderate capability does not work.

    Can you please provide a solution as to how i can give a new Role i created access to these 2 menu options in the dashboard/admin tool?

    Thanks in advance.

    #233145
    djsteveb
    Participant

    @dio1987
    try the rtmedia plugin ( https://wordpress.org/plugins/buddypress-media/ ) or the newer and upcoming media press : http://buddydev.com/buddypress/presenting-mediapress-media-plugin-will-ever-need-buddypress/

    These may do what you are asking about if I understand your question.

    #233144
    peter-hamilton
    Participant

    I have been trying to change the date output, but have not been able to, can not find the right file to adjust, some conflicts between BBpress/Wordpress/Buddypress who all use different functions.

    Btw. I know nothing of PHP or Javascript so can not write a function…yet

    Thanks for your feedback youmin, update coming soon.

    Peter Hamilton

    #233135
    Melissa1968
    Participant

    I am trying to create a site for a small preschool & kindergarten. We are trying to create:

    1. Bbpress forums usable by the local geographic community at large, that any site visitor can register to post to, and,
    2. A “student portal” only for enrolled families that allows them to post to the above forums plus
    a. complete a more complex profile than the above users with some fields viewable only to other enrolled families logged in to the portal, some fields viewable only to admin, and some with visibility set by the user (this profile will function as an online student enrollment. The fields with visibility set by user will be the school directory)
    b. access restricted content pages at the site

    …and, keep both sets of users out of the back-end/dashboard area.

    Can this be done with BuddyPress?
    Thanks so much in advance for your help!!!!!

    TylerFerris
    Participant

    I am looking to change the label of “Username” on the registration page. I am using WordPress 4.1 along with BuddyPress 2.1.1. Here is a ink to my registration page: http://habbocia.x10host.com/habbo-cia-home/register/

    #233125
    Henry Wright
    Moderator

    i am trying to find how (if) BP is doing validation
    using BP 2.1.1

    Hi @ar2015

    Leaving validation to chance isn’t something that BuddyPress does, so you can be sure that it will strive to validate everything that’s necessary. For example, the user’s username and email address are validated by bp_core_validate_user_signup() and the blog URL and title are validated in bp_core_validate_blog_signup()

    Hope this helps point you in the right direction.

    #233123
    ouegy
    Participant

    Hi,

    I’d like some advice about the feasibility of the following:

    I’d like to use WordPress multisite and a suitable BuddyPress multisite plugin to create a network of social media sites, where a user becomes a member of the parent site upon sign-up and also a member of the child site based on the location they choose at sign-up.

    So, if a user chooses London from the sign-up form they would become a member of mysite.com AND london.mysite.com, and I would serve content relevant to London.

    However I would also like to retain the ability to have friendship connections between the sub-sites.

    Essentially I’d like some content to be site specific but other content to be shared between sites – but also allow the members to switch to another location (sub-site) and view the content there – similar to how Craigslist works.

    Hope this makes sense and thanks in advance for any advice!

    #233119
    Hugo Ashmore
    Participant

    @chlab @djpaul

    The template hiearchy advanced template names are correct and will overload any theme compat files as long as they are located in correct directories, and by the sound of things you have established this on a stock WP theme ( always remember that with template names such as index-create.php we are saying take full control of the template rendering bypassing BP’s content injection so the template needs to be a full WP template i.e one complete with header call and footer call and all necesary content inbetween)

    Things that can force deactivate theme compatibility are:

    
     * Theme compat is disabled when a theme meets one of the following criteria:
     * 1) It declares BP support with add_theme_support( 'buddypress' )
     * 2) It is bp-default, or a child theme of bp-default
     * 3) A legacy template is found at members/members-loop.php. This is a
     *    fallback check for themes that were derived from bp-default, and have
     *    not been updated for BP 1.7+; we make the assumption that any theme in
     *    this category will have the members-loop.php template, and so use its
     *    presence as an indicator that theme compatibility is not required
    

    Pay special attention to the possibility of members-loop.php existing from previous implementation of this custom theme in the themes root i.e members/members-loop.php

    And check through any functions files for inclusion of :
    add_theme_support( 'buddypress' )

    Both or either of these will deactivate theme compatibility and likely result in navigating to /groups/ simply displaying a plain stock WP page.php view.

    Hiren Purohit
    Participant

    Hello,

    I want to add functionality in my site like there are two role for end user {company and employee}.

    Is there any plugin or any custom code available for buddypress registration ?

    Any help would be appreciate ๐Ÿ™‚

    Thanks,

    #233113
    chlab
    Participant

    I read it here and here, but maybe it will always show up as you said because we updated from an earlier version.

    The files are named correctly, as with the twentyfourteen theme the files are being included.

    My next step will be to build a theme from scratch and see if I can get it to include the files.

    #233105
    Paul Wong-Gibbs
    Keymaster

    I read that the BP default theme has been retired and should not show up under Appearance > Themes unless itโ€™s still in use.

    That’s not quite true. If you can remember where you read it, please let me know, and I’ll see about correcting the information.

    If you had a BuddyPress site prior to version 2.0, then we will always make BP-Default available in the themes list. If you were to install BuddyPress today on a new site that did not have BuddyPress installed before, then it would not show up. I hope that makes sense.

    (I’m not sure if we started this behaviour in version 1.9 or 2.0, but it was around then).

    #233102
    AR2015
    Participant

    also, there is a

    buddypress\buddypress plugin\bp-templates\bp-legacy\js\password-verify.js

    that seems to effect only the password? is this a separate validation script from the others?

    #233101
    AR2015
    Participant

    hi,

    i am trying to find how (if) BP is doing validation
    using BP 2.1.1

    on buddypress plugin\bp-templates\bp-legacy\css\buddypress.css

    there is section 3.5 forms

    for example here are a few lines:

    #buddypress .standard-form input[type=text],
    #buddypress .standard-form input[type=text],
    #buddypress .standard-form input[type=color],
    #buddypress .standard-form input[type=date],

    this seems to coincide with wp-content\themes\test_theme\buddypress\register.php
    the action bp_signup_username_errors

    <!– here is an an example of the action hook for username validation –>
    <label for=”signup_username”><?php _e( ‘Username’, ‘buddypress’ ); ?> <?php _e( ‘*’, ‘buddypress’ ); ?></label>
    <?php do_action( ‘bp_signup_username_errors’ ); ?>
    <input type=”text” name=”signup_username” id=”signup_username” value=”<?php bp_signup_username_value(); ?>” />
    <p class=”description”>Usernames must be all one word.</p>

    so my question is, buddypress seems to have validation for username, password, and email address. there will be a red error message box popping up when the data isn’t in the correct format.

    where is this functionality passed, and how can i build on it to include other fields like Xprofile fields and WP user profile fields?

    _________________________________________
    for example:

    ‘describe yourself in 25 words or less’

    while this isn’t on the register page, its on where/how would i hook into this field with an action.. and can i use the same function page as the above validation.. just copy and modify the syntax to include the requirements for the data (25 words or less, no urls, etc)

    thanks in advance

    #233100
    chlab
    Participant

    Update:

    I copied my theme/buddypress directory into the twentyfourteen directory and now my files are being included. So the problem is with my theme. What could cause the template hierarchy to be ignored in a custom theme? I’ll try getting rid of as much as possible to see if I can get it work.

    #233096

    In reply to: Groups

    youmin
    Participant

    Edit page in theme\buddypress\groups\home.php

    #233084
    danield4226
    Participant

    I currently have 4 sites with individual buddypress and paid membership pro allowing users to sign up. We would like to be able to offer each site the ability to pay a little extra and be able to either be a member of each one of the others or all of them using there same profile name that they currently have. what would be the best way to do this. I have read about using multi site but i would like others that have had more experience to give me there input on what they think would work out best in our case. we still want each site to have the ability to have users just sign up for that site or select all sites at there choice. Any input would be greatly appreciated.

    #233083
    Henry Wright
    Moderator

    I tried to delete actiavion_key for them in wp_usermeta, but they still appear as unactivated.

    Deleting the activation key alone through the database won’t activate a user. There are more tasks that need to be done in order for a user to become activated. See the bp_core_activate_signup() function in bp-members-functions.php for details on how BuddyPress does it.

    #233071

    In reply to: import/export groups

    Jasper
    Participant

    Buddypress is a fine product, but needs an import/export feature built in, this is seriously missing. I need to do a fresh wp install and move the users and custom field data over. Please has anyone come across a relatively easy enough way of doing this? Or when will Buddypress include this?

    Thanks

    #233066
    Hugo Ashmore
    Participant
Viewing 25 results - 21,551 through 21,575 (of 94,541 total)
Skip to toolbar