Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 22,476 through 22,500 (of 94,543 total)
  • Author
    Search Results
  • #229214
    aces
    Participant

    @myg0t

    I haven’t tried the above code, but the location of bp-custom.php should be /wp-content/plugins/bp-custom.php not the buddypress plugin directory.

    #229210
    imdreamer
    Participant

    are there following ready shortcode can be used ? i want to rearrange my buddypress profile with an ajax tab plugin, i know userpro can offer shortcode to organize profile’s layout, so i suppose buddypress shall have similar shortcode to be applied

    active
    Activity
    Profile
    Notifications
    Messages
    Friends
    Groups
    Settings

    sincerely

    #229209
    Security
    Participant

    Hi i think i know whats happening here i was working on status theme to make it work with the latest versions of both buddypress and wordpress and i faced the similar issue so this is what i did to resolve it goto wp-content>>themes>>yourthemename>>members folder>>single>>home.php and add these lines of code there

    elseif ( bp_is_user_notifications() ) :
    					locate_template( array( 'members/single/notifications.php' ), true );	
    

    just before this kinda statement // If nothing sticks, load a generic template
    next create a file named notifications.php in wp-content>>themes>>yourthemename>>members folder>>single folder and add these lines to it

    <?php
    
    /**
     * BuddyPress - Users Notifications
     *
     * @package BuddyPress
     * @subpackage bp-legacy
     */
    
    ?>
    
    <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    	<ul>
    		<?php bp_get_options_nav(); ?>
    
    		<li id="forums-order-select" class="last filter">
    			<?php bp_notifications_sort_order_form(); ?>
    		</li>
    	</ul>
    </div>
    
    <?php
    switch ( bp_current_action() ) :
    
    	// Unread
    	case 'unread' :
    		bp_get_template_part( 'members/single/notifications/unread' );
    		break;
    
    	// Read
    	case 'read' :
    		bp_get_template_part( 'members/single/notifications/read' );
    		break;
    
    	// Any other
    	default :
    		bp_get_template_part( 'members/single/plugins' );
    		break;
    endswitch;

    and try to reload your site now your problem should be solved.
    Note: only create notifications.php if its not already there and please backup your site before making these changes

    #229207
    shanebp
    Moderator

    Re: 2. Importing s2member custom fields to buddypress fields
    Instead of, for now, editing the codex page, please note the args parameter for add_action.

    So the ‘2’ here is the arguments parameter. add_action('wp_login','s2_profile_field_update',10,2);
    So the hook provides 2 arguments – very handy & useful.
    But your example doesn’t use them in the function s2_profile_field_update.
    You can use the $user arg instead of $current_user and thereby get rid of that global.
    Use this to see the data in $user:

    function hook_arg_display( $user_login, $user ) { 
       var_dump( $user ); 
    }
    add_action('wp_login','hook_arg_display',10,2);

    imo: There is no Option 1.

    #229206
    shanebp
    Moderator

    Re: Filter Users Displayed in Members Directory by s2member role.
    There a couple of ways that this can be accomplished without needing to overload the members loop template and then hack it. One of them is bp_parse_args. Please try using it.

    The goal of this new codex page is to provide simple functions that adhere to best practices for WP and BP, that users can easily paste into bp-custom.php or theme/functions.php.

    Thanks for creating the page – looking forward to your updates.

    #229202
    Myg0t
    Participant

    @mcpeanut I’ve posted the material in the codex now, so you may want to bookmark this page instead:

    https://codex.buddypress.org/developer/useful_func_s2_bp/

    I’ve already posted the option2 for the field import function. Once I get some more time and figure out how to use bp_parse_args() i’ll update the first section as well. Along with any other usefull s2member/buddypress tweaks that I find along the way.

    Glad you could find this useful!

    @hnla

    what’s the trick to formatting code in the codex? I’ve wrapped all the code in the tags, but it rips apart the formatting for the text (like indention’s)

    \M

    #229201
    Myg0t
    Participant

    @naijaping Sadly, it is not working still 🙁

    I tried the code in both childtheme/functions.php and plugins/buddypress/bp-custom.php…

    Just to clarify I should be using a link like this, yes?

    thanks guys,

    \M

    #229195
    VentureCore
    Participant

    I’m basically having the same problem as described in this thread.
    https://buddypress.org/support/topic/alphabetically-displaying-only-buddypress-users-in-multisite/

    If I select alphabitical it lists all of the members on the Network and writes them into the bp_xprofile_data table.

    I have bp multiblog true
    Networks for wordpress (network activated)
    buddypress for networks by BuddyDev (network activated)
    buddypress is activated site by site
    buddypress xprofile also

    Wp 4.0
    BP 2.1.1

    I also have a couple of blogs that only have 3 members but on the ‘members’ page is say’s it’s displaying 1-5 of 5

    I have tried to manually clean up the database but can’t seem to find where to fix that…

    If I use the BP members count tool it just ends up populating the site with every member from throughout the network.

    Thank you wpengine and vaultpress!

    #229189
    mcpeanut
    Participant

    @hnla cheers for that, it will be a few weeks i think before i integrate s2members anyhows, i am currently finishing off the overall design of my theme and customizing every aspect of it and integrating alot of css changes to the way buddypress looks, so i will bookmark this page and refare back to it when i get round to s2member, i have learned so much over the past year and a half by visiting this site thx to you guys so cheers 🙂

    #229186
    roy191991
    Participant

    Hi guys can you help me how to get all user mention to specific user and how also to get all the mention that user create

    ‘

    #229183
    Myg0t
    Participant

    @henrywright Thanks for the reply!

    unfortunately, that did not work.

    I tried putting it in both my childtheme/functions.php and my plugins/buddypress/bp-custom.php and no dice. :\

    #229179
    Myg0t
    Participant

    Hey all,

    The most recent post I saw concerning this issue was back in 2013, and it included a link to @modemlooper ‘s website.

    http://modemlooper.me/allow-youtube-embed-in-buddypress-profile-fields/

    But the URL seems to be down…

    Any chance this golden info is somewhere else? Or even better; is @modemlooper still with us today?

    Thanks,
    \M

    izzyian
    Participant

    Yep ok ill ask there but hopefully there is a function for this so I can go around core files. is the activity stream also done by them or is this question in the right spot to : https://buddypress.org/support/topic/how-to-change-the-number-of-activity-items-on-a-profile-page/ ?

    -Thank you

    #229169
    lynnham
    Participant

    Dear BuddyPress,
    I am contacting you all on behalf of my client who is currently having problems with their website. One of her staff members sent me an email saying they were unable to edit, delete or remove posts on my site’s forum. Not even their own. Their also experiencing problems with posting and/or responding to post. It sometimes allows them to write the post and press the post button but when they check to see if their post has loaded, it is nowhere to be found. I reached out to the organization that powers the forum but I don’t think they will be able to assist me. I’m not sure if WordPress or Buddypress controls the forums on various websites or if the organization that powers the forum can help with forum issues.
    My client is using WordPress 3.7.4. and bbPress 2.4.

    #229144
    Hugo Ashmore
    Participant

    @myg0t Thanks for sharing that with the community, S2 Member has wide use so this ought to be useful to people.

    One point though it’s best not to advise that people edit a core file /buddypress/bp-templates/bp-legacy/..etc BP has a fairly well defined template hierarchy overload allowing files to be copied to the theme or child theme, those are the copies one should edit.

    Another minor point rather than have to edit & pass the arguments in the template could bp_parse_args() perhaps work for this?
    Using bp_parse_args() to filter BuddyPress template loops

    In respect of the profile data would not setting the user visibility options on the profile field/s in the backend not work to provide the privacy for address fields, just a thought but I may have missed the point of this aspect.

    Lastly this could make a nice user example guide for the BP codex if you’d care to post it there and we’ll slot it under a section appropriate.

    absdigital
    Participant

    Hi guys. As you can probably guess I’m new to Buddypress so excuse me if I’m asking a stupid question.

    The website I want to create is basically a directory for tradesmen (plumbers, electricians etc.) that people can search for by their postcode (zip code).

    Features I need are:

    1. Two types of users
    – TRADESMEN: With a public profile that advertises their services.
    – USER: This is the user who is searching for tradesmen. They have the option to create an account so they can send messages, leave reviews and have a shortlist of tradesmen. This profile will obviously be private.

    2. Search by distance using postcode.

    3. Different features for different membership levels. So tradesmen who pay for a premium membership will be able to link to their website / have extra fields on their profile.

    4. Customers are able to leave reviews & star rating on tradesmen profiles.

    —–

    Is this something that Buddypress will do or am I barking up the wrong tree? Any suggestions on how to go about doing this?

    Many thanks to anyone who can help me!

    #229137
    Myg0t
    Participant

    Hey there guys, i’m working on a website where i’m integrating s2member functionality with buddypress. I thought some of the things I’ve come across may be useful to other people.

    1. Filter Users Displayed in Members Directory by s2member role.
    In your plugins/buddypress/bp-templates/bp-legacy/buddypress/members/ folder edit the file “members-loop.php”. Just under
    <?php do_action( 'bp_before_members_loop' ); ?>

    at the top 20 lines of the file we need to write some PHP code to build a comma separated list of ID’s based on the s2member role or roles that we want. In my case I wanted only members of “s2member_level2”.

    <?php
    $args = array ( 'role'  => 's2member_level2', 'fields' => array( 'id' ) );	
    
    // The User Query
    $user_query = new WP_User_Query( $args );	
    		
    $custom_ids = '';
    for($i = 0;$i < sizeof($user_query->results); $i++){
        $a = $user_query->results[$i]->id;
        $custom_ids .= $a.",";
    }
    ?>

    Now that we’ve made a comma separated string of ids ($custom_ids), we need to pass it to the members loop.

    Change
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>

    to
    <?php if ( bp_has_members('per_page=30&type=alphabetical&'.'include='.$custom_ids ) ) : ?>
    In my case I wanted to make sure atleast 30 members showed up, and that they were in alphabetical order.

    Done.

    2. Importing s2member custom fields to buddypress fields

    You may be asking; why??? Well, it turns out that when you have the s2member option to integrate with buddypress it doesn’t actually import it’d data to the buddypress tables. It just binds it’s self to the ‘Base’ group, Which will show up by default in buddypress profiles. When it doesn’t import to the buddypress tables, it was very difficult for me to manipulate how the information showed up. Particularly the fact that I have the users give me their address information, and I don’t want that to even be an option to show in user profiles.

    So instead of using s2member to integrate automatically, I wrote a function that would check a users information when they login. If they have certain information in s2member that is not in their BP Profile, it will add it automatically.

    in functions.php add the code:

    <?php
    	
    add_action('wp_head','s2_profile_field_update',10,2);
    function s2_profile_field_update() {
       global $current_user;
       get_currentuserinfo();
    		
       if( get_user_field("s2member_login_counter") < 1000 ) 
       {
         if( current_user_is("s2member_level2") ) 
         {
    	if(xprofile_get_field_data('Nationality',$current_user->id) == '' &&       get_user_field('nationality') != '') 
            {
    	 xprofile_set_field_data('Nationality', $current_user->id, get_user_field('nationality'));
    	}				
          }
        }		
      }
    
    ?>

    You can change Nationality to what ever the name is of the extended BP field (in users>profile fields).
    And of course you can duplicate the if statements for how every many fields you want to import from s2memeber -> BP.
    Also note that if(get_user_field("s2member_login_counter") < 1000) mean’s that this process will run for any user that logs in with membership role s2member_level2 and has logged in less than 1000 times. I used 1000 times because I want any member at this moment who logs in to have their profiles populated. In the future I will drop it down to 1 or 2.

    I’ll post more as I gather it. But in the mean time I hope this helps some people.

    \M

    #229136
    GSC-Dev
    Participant

    I’m using buddypress user account pro and have created 2 different user types ‘coach’ and ‘athlete’

    I’ve also created a custom tab in my groups nav menu titled ‘Coaches’

    http://www.dev.globalsportcoach.com/groups/nfl/COACHES/

    I’ve been able to add the buat shortcode to the tab which will display all coaches on the site however i’d like to only display the coaches that are part of each group eg. only display NFL coaches in the NFL group using an if statement or similar, can anyone help me out?

    function display() {
    echo do_shortcode(‘[buatp user_type=”coach”]’);
    }

    #229134

    In reply to: buddypress rtl

    Henry Wright
    Moderator

    Hi @zemenik

    Have you tried searching the WordPress Themes Directory? Perhaps search for something like “rtl language support” or just “rtl” and look through the results retuned for themes that are compatible with BuddyPress.

    imdreamer
    Participant

    Hello

    this is my first time to install buddypress, my WP is 3.9.1

    in back end, buddypress is newest version which showed this following message, how can i solve this problem ?

    Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /var/www/mysite.com/wp-includes/functions.php on line 3245

    thanks a lot

    #229126
    derock299
    Participant

    Hello,

    Please I have an issue, My s2member pro handles my member registration form, the buddypress handles group forums while bbpress handles my sitewide forums….This is what i want sir: during member registration a user registers his year of graduation lets say 1982, then i want the group forum to give him access to group 82 only. if another user inputs 1983 as his year of graduation during member registration…he should have access to only group 83 in the group forums and so on…please how can I do this please since am a novice.

    #229124

    In reply to: groups added to phpbb?

    shanebp
    Moderator

    Integrating phpbb with BuddyPress would be a lot of work and would require a good developer with strong knowledge of both BP and phpbb.

    I’m not aware of any plugin that bridges phpBB with WP and BuddyPress.

    This might get you part of the way.

    #229123
    Hugo Ashmore
    Participant

    What was the outcome when you swapped to a standard WP theme such as twentyfourteen?

    Does your install work work period in regards BP, not sure about that rather non standard server path where you have plugins under /themes/x/framework/functions/plugins/buddypress.php – to my mind that should not be working.

    #229122
    telatabi
    Participant

    Hello. I am from turkey.
    I installed buddypress and bbpress.
    Requests:
    1-I want to use default wordpress registration page, how can I do?
    2-If I want to use buddypress registiration page, There are problems below.
    I tested a lot of users. My SMTP is not problem, registiration e-mail is sending. But If I click http://www.okulsayfam.com/aktivasyon/?key=f1ee6d467bd0e031b7d73be9cbf61313 : (link is for example)

    Invalid activation key.
    Please provide a valid activation key.

    I tested a lot of users. Please hepl me, I am looking for a long time.

    #229119
    Gatera
    Participant

    Hi @modemlooper,

    Actually I realised that is not what is causing the user to be displayed. I deleted everything and started from 0, it is still showing. I am running buddypress 2.0.1 with the X theme.

    http://tinypic.com/r/6nxhew/8

    please take a look at the picture in the top left corner is where you will find the problem

Viewing 25 results - 22,476 through 22,500 (of 94,543 total)
Skip to toolbar