Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 20,051 through 20,075 (of 94,538 total)
  • Author
    Search Results
  • #237906
    happymenet
    Participant

    Hello.
    Apologies if this is asked elsewhere I’ve searched for some time and can’t find an answer to what I am looking for.

    What I want to happen seems very obvious to be a part of buddypress.

    I’d like there to be a share or like button on a post or page that shares the post or page on the users activity feed.

    The same as a facebook like or share button but all kept inside the buddypress site. There must be something out there. I’ve used Buddypress Like but that only allows a like on the activity stream, nothing on the actual post to just lick like or share.

    Any help would be great.
    Thanks Paul

    AntaresMHD
    Participant

    Hey everyone. Here’s the deal:
    I’m trying to add a new “Order by” clause in the filter section of the Groups loop, but not using metadata from buddypress but another plugin table installed in my site. I’ve been looking at this thread for a while https://buddypress.org/support/topic/adding-new-order-by-on-members-loop/ and also this https://codex.buddypress.org/plugindev/add-custom-filters-to-loops-and-enjoy-them-within-your-plugin/#add-a-custom-filter-to-the-members-groups-and-blogs-loops, but none quite work the way I want to, or maybe I’m just missing something because I’m unable to do it.

    I made this MySQL query:

    SELECT 
    	g.id as id
    FROM 
    	'wp_user_league_prediction' as p,
    	'wp_bp_groups_members' as m,
    	'wp_bp_groups' as g
    WHERE 
    	g.id = m.group_id AND m.user_id = p.user_id
    GROUP BY
    	m.group_id

    Which queries for groups following the criteria I need (groups whose users are also present in that table referenced there) and I want to use it (or something modified for that matter) to search in the ajax of the Groups Loop filter, so I tried to repurpose the code in the first link like this

    function groups_sortby_league( $object ) {
        global $wpdb, $bp;	
    	
        if ( ! in_array( $object->query_vars['type'], array( 'user_league' ) ) ) 
    	return;
    	
    
        $field_id = $wpdb->get_var( $wpdb->prepare( "SELECT g.id FROM  {$wpdb->prefix}%s_prediction as p, {$wpdb->prefix}bp_groups_members as m, {$wpdb->prefix}bp_groups as g WHERE g.id = m.group_id AND m.user_id = p.user_id GROUP BY m.group_id", $object->query_vars['type'] ) );
    		
         $object->gid_name = 'group_id';
         $object->gid_table = $bp->group->table_name_data;
         $object->gid_clauses['select']  = "SELECT u.{$object->gid_name} as id FROM {$object->gid_table} u";
         $object->gid_clauses['where'] = " WHERE " . $wpdb->prepare( "u.field_id = %d", $field_id ); 
         $object->gid_clauses['orderby'] = "ORDER BY u.value";
         $object->gid_clauses['order']   = "ASC";		
    		
    }
    add_action( 'bp_pre_group_query', 'groups_sortby_user_league' );

    And while the new filter option does show up, it doesn’t seem like it’s doing anything. I thought the group id would be enough for this but clearly there’s something not quite working and I don’t think it’s the query itself. I don’t know what to do with the $object after that, or what does it do when the $field_id is already referenced.

    I really would appreciate some help with this, since this part of buddypress (ajax queries) has always stumped me.

    #237896
    bazaarocommunity
    Participant

    So I’ve followed the BuddyPress Codex for creating featured groups and it works nicely, but now I’m interested if anyone has expanded on that codex to enable additional features (https://codex.buddypress.org/plugindev/group-meta-queries-usage-example/). Specifically, I’d be interested in turning this into a plugin that allows for managing group metas. It would also be neat to build an extension that allowed the group owners to select from a limited selection of meta types, kind of like categories.

    #237892

    Topic: Business Portal

    in forum Ideas
    #237891
    shanebp
    Moderator

    Unless you’re specifically using the default theme, you only have to change this file:
    \buddypress\bp-templates\bp-legacy\buddypress\members\register.php

    And the recommended approach is to create a template overload in your theme:

    Theme Compatibility & Template Files

    #237890
    Dani-Girl
    Participant

    So, for a temporary solution, I edited the BuddyPress register.php page (in both Default theme and legacy template) to generate a random email address each time the register page loads, and hid the email required field.

    would like an option, however, where I don’t have to touch the actual BuddyPress code.

    @mcuk
    Participant

    Hi all,

    I’m trying to move the Favorites subnav tab and associated page so it appears instead underneath the Notifications nav tab. I don’t want to change what appears on the page by default, purely just move its location. I’m familiar with creating/removing new nav/subnav tabs but am unable to find the correct function to make the page appear as it does by default when its under the Activity nav tab.

    (I also want to do the same with the Mentions subnav tab/page).

    I’ve looked around for a good long while in the forums and the Buddypress files but am not making any headway apart from what I’ve pasted below. Am I calling the correct screen function & link?

    Code I have in my bp_custom.php is:

    <?php
    // Add a new subnav menu tab for Fave under Notifications tab
    function fave_subnav_tab() {
    global $bp;
    $parent_slug = ‘notifications’;

    //Add subnav item
    bp_core_new_subnav_item( array(
    ‘name’ => __( ‘Fave’ ),
    ‘slug’ => fave,
    ‘parent_url’ => $bp->loggedin_user->domain . $parent_slug.’/’,
    ‘parent_slug’ => $parent_slug,
    ‘screen_function’ => ‘bp_activity_screen_favorites’,
    ‘position’ => 30,
    ‘link’ => bp_activity_screen_favorites(),

    ) );
    }

    add_action( ‘bp_setup_nav’, ‘fave_subnav_tab’ );
    ?>

    WP Version: 4.1.1
    BP Version 2.2.2.1

    Thank you for any assistance!

    #237885
    danbp
    Participant

    A user contribution on Github, via Twitter ( @xac )
    https://github.com/zacwasielewski/buddypress-lock-profile-fields/

    #237882
    Dani-Girl
    Participant

    Hi Shane,

    I’m not seeing any of the suggested puglins ( Optional Email or Registration Plus Redux as they are the only 2 that meet my criteria) showing up in the Buddypress registration process.

    Since we have to assing buddypress registration pages, only buddypress’s fields are showing.

    If i deactivate buddy press and use the wplogin registration procedure, then either plugin works fine.

    what can I do to change it so that when buddypress is active and using its registration page, that either plugin’s options are showing up?

    #237880
    cirrus123
    Participant

    Hi there – I am moving servers and want to migrate a bbpress+buddypress install to a new machine. They are all the newest versions.

    What is the easiest way to do this?

    shanebp
    Moderator

    This is probably theme related.

    This is the default template:
    \buddypress\bp-templates\bp-legacy\buddypress\groups\groups-loop.php

    You’re using a custom template.
    Take a look at the code generating the links in your groups loop.
    Or there may be a function in your theme that filters bp_group_permalink() or permalinks in general.

    #237873
    shanebp
    Moderator

    You want to add a ‘Personal’ option to the ‘Show’ selector on Site Wide Activity?

    Try this in your theme/functions.php or in bp-custom.php

    function leanne_activity_filter_options() {
        if ( is_user_logged_in() )
             echo '<option value="personal">Personal</option>';
    }
    add_action( 'bp_activity_filter_options', 'leanne_activity_filter_options' );
    
    function leanne_ajax_querystring( $query_string, $object ) {
    
    	if ( 'activity' != $object ) 
    		return $query_string;
    
    	if ( ! bp_is_activity_directory() ) 
    		return $query_string;
    
    	$query_args = wp_parse_args( $query_string, array() );
    
     	$page = $query_args['page'];
    
    	if( isset( $query_args['action'] ) && $query_args['action'] == 'personal' ) {
    	
    		$query_args = array();
    		$query_args['page'] = $page;
    		$query_args['user_id'] = bp_loggedin_user_id();
    		$query_string = http_build_query( $query_args );
    
    	}
    	
    	return $query_string;
    
    }
    add_filter( 'bp_ajax_querystring', 'leanne_ajax_querystring', 20, 2 );
    globatium
    Participant

    Hi,
    I have an issue on my web http://www.prensaldia.com/ that the group links on my page goes to group forum even if there is no forum associated with the group.
    How can I solve this?
    I am using WordPress version 4.1.1 bbPress 2.5.6-5643. and BuddyPress 2.2.2.1

    Thank you!

    #237867
    danbp
    Participant

    Thought that such a tutorial doesn’t exist.

    Best place to get some in-depth technical information, is to search for AJAX on the Trac.

    #237865
    danbp
    Participant

    @leanneoleary,

    BuddyPress doesn’t handle the Media Library.
    BuddyPress doesn’t handle registration.

    It’s a bad practice to allow users to upload something to your site until they’re not fully registered. When a user register, WP considers this new account as pending. As long as the user hasn’t activate his account with the activation key, he can only visit the site.

    As you installed BuddyPress, i suggest you use your site à la BuddyPress.
    If you want your members be able to upload files, use BuddyDrive. Each user can upload files from within his profile page and can share them on different levels (public, private, friends only). And much better as the Media Library default behave, each document belong to his user. BuddyDrive attributes a folder to each user who upload a document.

    This is much simplier, well integrated and efficient in a members community as strugling with custom code (and potential errors and security issues).

    leanneoleary
    Participant

    Hi,
    I need my users to be able to upload files to the media library and therefore need to somehow automatically set the user role to something other than the default “subscriber” when they register.

    I know in Settings > General you can set the ‘New User Default Role’, however if I change this to a role that allows user uploads this gives access to the main media library. If they could upload to their own media library that would be great but I don’t want everyone seeing everyone elses files in the media library.

    I can’t find any documentation on this within Buddypress on how to do this and so have installed the Members Plugin to see if this would help but I am struggling to find out exactly how this would be implemented.

    Any help would be greatly appreciated.

    #237858
    aymanomar85
    Participant

    Hi @danbp

    I used costume theme and wordpress & buddypress in same directory but i still have same problem mention not working can you support me to solve this issues.

    or do you think some of this plugin do this issues ????

    #237857
    joym
    Participant

    Please help. My site has been plagued with these random errors for the past two days. I have no idea what the problem could be. It seems that things were running just fine…

    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 7680 bytes) in /hsphere/local/home/xxxxx/xxxxx.com/test/wp-content/plugins/buddypress/bp-core/bp-core-functions.php(138) : runtime-created function on line 1

    #237855
    ch1n3s3b0y
    Participant

    Anyone know of any good BuddyPress AJAX tutorials? Having a bit of a problem getting my head around it.

    Specifically, I am trying to get BP Profile Search to be fully AJAX, which it doesn’t appear to be (reloads page on ‘update’).

    #237853
    danbp
    Participant

    Hi,

    Config
    ——

    are you on a single or MS install ?
    Your php version is 5.2.17.
    Even if this version is still acceptable for a basic WP blog, i would recommend you use at least 5.3 or better, 5.4 You have many plugins, and working with a too old php is not recommended.

    Plugins
    ——–

    BuddyPress Toolbar is outdated and no more necessary, as Toolbar was slightly modified since WP 3.9 and BP 1.5

    BP Group Organizer is over 2 years too and group admin is anyway fully integrated to BP since 1.7

    About theme
    ———–
    You’re using a premium theme and we can’t assist you for this, as we have no free access to his code.

    BuddyPress Groups component is tailored for grouping members. You can show group members activities, but it’s not intended to categorize posts like you can do it on the blog.

    In other words, a group belongs to members, not to a blog category. So far by default. To get such a behave you have to code it yourself or you can use this plugin.

    #237852
    navinachettri
    Participant

    Thanks @modemlooper

    Understood those two.

    Can you help me achieve the task that I am set out to do i.e. have certain users (say depending on member types) links to external site rather than their buddypress profiles

    It seems that I need to modify bp_activity_action() to modify the links. Apparently this function is defined at bp-activity-template.php (which is not a template file). But this function seems to echo bp_get_activity_action() function taking some array of arguments. And I get lost after that….don’t know really what to do.

    I really could use your help here

    #237851
    modemlooper
    Moderator

    the file entry.php is an individual activity item.

    How to override bp templates https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/

    #237847

    In reply to: Warning of Buddypress

    rohi222
    Participant

    I haven’t got the answer of my initial query of <b>Warning</b>: strstr(): Empty needle in <b>../wp-content/plugins/buddypress/bp-core/bp-core-filters.php</b> on line <b>641</b><br />

    Please help me out with this.

    As far as the register link is concerned it looks the same as it has been shown on the demo when I activate the admin bar for non-logged in user it is having login and registration option out of which only login works and clicking on register link doesn’t have any effect.

    Svend Rugaard
    Participant

    I have now try a diffrent approach to make a clean install and use debug mode just to make sure also all the themes change i have make the last year wasnt make this error happen it give me these errors on member page with debug on :

    Strict Standards: Declaration of BBP_Forums_Group_Extension::display() should be compatible with BP_Group_Extension::display($group_id = NULL) in /home/www/area51.ps3geeks.dk/wp-content/plugins/bbpress/includes/extend/buddypress/groups.php on line 28
    
    Notice: bbp_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 2.3.) in /home/www/area51.ps3geeks.dk/wp-includes/functions.php on line 3547
    
    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 /home/www/area51.ps3geeks.dk/wp-includes/functions.php on line 3547
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/www/area51.ps3geeks.dk/wp-content/plugins/bbpress/includes/extend/buddypress/groups.php:28) in /home/www/area51.ps3geeks.dk/wp-includes/pluggable.php on line 1178

    Some of them even show as “Solved” on google search but obviosly they aint solved.

    #237837

    In reply to: Warning of Buddypress

    rohi222
    Participant

    I have WP 4.1.1 running and BP to the latest version 2.2.2.1.

    Even the register link not working on the top menu bar which is being provided by buddypress.

    How can I add more links to it?

    Please help.

    Thank you.

Viewing 25 results - 20,051 through 20,075 (of 94,538 total)
Skip to toolbar