Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 12,851 through 12,875 (of 73,986 total)
  • Author
    Search Results
  • #259973
    modemlooper
    Moderator

    * Please refrain from @ mentioning specific users in the topics.

    Most of these are plugin territory. The great thing about WordPress and BuddyPress is the nature of plugins and being able to choose the functionality you need to create a custom user experience.

    #259971
    r-a-y
    Keymaster

    Ran into this issue recently regarding getting TinyMCE to work on BP group forum pages.

    The following code fixes this:

    /**
     * Enable at-mention autocomplete on BuddyPress group forum textareas.
     */
    function my_enable_mentions_in_group_forum_textareas( $retval ) {
    	$bbpress = false;
    
    	// Group forum reply.
    	if ( bp_is_group() && 'topic' === bp_action_variable() && bp_action_variable( 1 ) ) {
    		$bbpress = true;
    	}
    
    	// Group forum topic.
    	if ( bp_is_group() && bp_is_current_action( 'forum' ) ) {
    		$bbpress = true;
    	}
    
    	// Do stuff when on a group forum page.
    	if ( true === $bbpress ) {
    		$retval = true;
    		
    		// Ensure at-mentions autocomplete works with TinyMCE for bbPress.
    		add_filter( 'tiny_mce_before_init', 'cac_enable_mentions_in_group_forum_tinymce', 10, 2 );
    	}
    
    	return $retval;
    }
    add_filter( 'bp_activity_maybe_load_mentions_scripts', 'my_enable_mentions_in_group_forum_textareas' );
    
    /**
     * Ensure at-mentions autocomplete works with TinyMCE for bbPress.
     *
     * @param array  $settings   An array with TinyMCE config.
     * @param string $editor_id Unique editor identifier, e.g. 'content'.
     * @return array  $mceInit   An array with TinyMCE config.
     */
    function my_enable_mentions_in_group_forum_tinymce( $settings, $editor_id ) {
    	// Add bbPress' editor IDs to enable BP mention autocomplete.
    	if ( 'bbp_topic_content' === $editor_id || 'bbp_reply_content' === $editor_id ) {
    		$settings['init_instance_callback'] = 'window.bp.mentions.tinyMCEinit';
    	}
    
    	return $settings;
    }
    #259970
    karennadine
    Participant

    Hello Scott,

    My site is not really focused on images and videos so I did not have to export/import a lot of this, but the media I did import went well.

    Comments on blogs (from Ning) were imported so I guess this could work out well for comments on photos/videos as well. The only thing is whenever you have a lot of media content it will take some time to export.

    You just would give it a try to see how it works out. I took the following steps:
    Installed WP
    Installed Buddypress
    Installed BBPress
    Downloaded the Ning Export tool (http://www.ning.com/help/?p=5219) and started exporting
    Downloaded and installed Import from Ning tool https://wordpress.org/plugins/import-from-ning/

    I used ftp to upload the Ning files, to avoid errors I did this step by step (not all content at once).

    Good luck with it!

    #259969

    In reply to: the_ID = 0

    danbp
    Participant

    A partial explanation about “why”can be found here:
    https://buddypress.trac.wordpress.org/ticket/6230#comment:11

    #259968

    In reply to: the_ID = 0

    shanebp
    Moderator

    The id is zero due to the way BP constructs those pages.
    The how and why is a long answer – you may want to look at the codebase to see the how.

    In any event, you will not be able to change that.
    Your best bet is to add to the display conditions the user has set.

    Perhaps…

    Give them an option to select the Groups Directory page.
    Then use bp_is_groups_directory() to check if they are on that page.

    Or maybe specific single groups.
    Then check to see if they are on a single group page by using groups_get_current_group().

    So the basic approach is to use template tags to find out where the user is and then show or not show an ad based on the the display conditions the user has set.

    #259966
    Henry Wright
    Moderator

    I know that Buddypress is a good growing project, but, needs very Important Native (by Default) features.

    Not everyone will want the features you mention. The idea is to keep things as simple and bloat-free as possible. The plugin system will allow you to add features specific to your business needs.

    #259963
    livingflame
    Participant

    ——>>>> Notes:

    * Add for Members template: Online Now. Yes, Bp has: Last Active, Newest and Alphabetical, but ONLY for a Widget > Online Members. Please! Add this for Page too, with Indicator (green point for online, blue for newest and gray for offline).

    13 * Buddypress Preview Links (from Youtube, Tumblr, Vimeo, PDF, Docs, GIF too…)

    * Buddypress Message with Attachments (jpg, png, mp3, mp4, doc, txt, pdf –– links: a small preview. Internal function like Facebook).

    From Bp Opt. Panel you can Enable or Disable what Attach you want for you site.

    14. Buddypress Social Media (links and share buttons, yes, like Blogger has!)

    * Buddypress More Customizable > My Own Photo Album (you Enable this for: A part for the Cover, for a Widget. Example: https://goo.gl/KVOs4Z or like Twitter –> here Look at > Cover, Info Position, Photos, etc. https://twitter.com/ezramillerfans ).


    @johnjamesjacoby


    @djpaul


    @boonebgorges


    @imath


    @mercime


    @hnla


    @tw2113

    #259962

    In reply to: Members showing

    shanebp
    Moderator

    You mean you’re using this [bp_members] as a shortcode?
    BuddyPress does not provide that shortcode, afaik.
    So, you are using some plugin that provides that shortcode.
    You need to pose your question the the author of that plugin.

    #259961
    aladinDr
    Participant

    Hello ,i like to ask why buddypress and bbpress bothe are not compatible with wordpress 4.6.1 (the latest version ) because with wp 4.6.1 many bugs are fixed , so i look to buddypress plugin require 4.5.4 !

    #259959
    livingflame
    Participant

    I know that Buddypress is a good growing project, but, needs very Important Native (by Default) features.

    1) Buddypress Block User (allow users to block other users –– really allow to hide your info, activities, etc. for a specific @user-1 e.g, auto-unfriend, no more messages from the blocked. This feature integrated with rtMedia too).
    OR FOR NOW: Buddypress Report User (with Custom Motives, p. ej. “@user-1 is sending me hateful messages”, “@user-2 published an annoying activity”). So, Admin can to impose a Sanction for @user-1, e. eg. 7 days without Post, 15 days without Sending Messages… or Community Expulsion -–> Block, Delete, Banned Email). Admin can too, to Sent a Message (previously edited for auto ms saying: @user-1 you are banned for…. 30 days. Sincerely the Admins).

    * Buddypress CONFIRM Account immediately after Sign Up.

    A Social or Community without this Function is Nothing. PLEASE!!

    2) Buddypress Chat (too, Message Template, to read Messages in a specific page).

    3) Buddypress Message with Attachments.

    4) Buddypress Global Search.

    5) Buddypress Custom Menu with Account Alerts (e. g. https://goo.gl/reojsE ). Yes. I know, if you go to WP Menus, you can add to your Navbar or Menu – Profile, Activity, Notifications, etc. BUT WITHOUT Bubbles or Account Alerts… That is very very Impractical.

    6) Buddypress Media (yes I know, we have rtMedia, but its add-ons are very expensive. The complete pack = US$500 more or less).

    7) Buddypress Follow/er Native.

    8) Buddypress Share (from activity).

    9) Buddypress Autocomplete Fields (for a specific text area, e. g. City: New York, Fruits: Apple, etc.), Range Fields (e. g. I’m searching friends from 20 to 21). Buddypress Birthdate normal, but, with an option to show only the Age! 10) Buddypress Advance Search. With this you can create an advance Form with Fields for Show on Members Page or in a Widget.

    11) Buddypress with Ads Area (inside Activity, Groups, Members and Forums). (Optional from Buddypress Option Panel)

    12) Buddypress More Customizable. >> A button over Cover Profile for Easy Photo Change (yes, like Facebook has)… The CPanel with MORE Options… MORE Options for: Profile / Settings / Profile Visibility and PRIVACY!!

    For now is all. Thanks!


    @johnjamesjacoby


    @djpaul


    @boonebgorges


    @imath


    @mercime


    @hnla


    @tw2113

    #259955
    livingflame
    Participant

    How I can:
    1) Show notifications in the navigation bar (yes with bubble or indicator).
    2) Having a template only for messages.

    Examples
    Message Notifications ––> https://goo.gl/8CsyU2
    Template Example ––> https://goo.gl/ZEhuuk

    You know, by Default, if you want to see your messages, you Go to: Profile / Message, but, in this example you can go directly to a Message Template, like Facebook.

    Please, comments practical solutions.

    #259947
    haluhe
    Participant

    Hello everybody,

    I am contributing to Advanced Ads, an ad management plugin, and we recently had a customer who wanted to inject an ad only into the group page. We already did have a solution implemented for displaying ads only on certain pages, however, it did not work for BuddyPress generated pages. When we had a closer look at it, we realized that it did not work simply because of the fact that the id of the page got altered to 0 when BuddyPress was using it.

    When a page is loaded, we check if there are any ads that should be displayed by comparing the current pages ID to the IDs of the content specified by the display conditions the user has set. This does not work for the reason mentioned above.

    Is there a workaround for this issue and if there is none, what is the reason for this behavior?

    WordPress: 4.6.1
    BuddyPress: 2.6.2, 2.7-beta1

    danbp
    Participant

    You can add such a link very simply to your main menu by using the menu customizer:
    http://example.com/members/me/

    Read: https://buddypress.org/support/topic/dynamic-profil-link/#post-259834

    Henry Wright
    Moderator

    bp_core_get_user_domain( $user_id ) will output something like http://example.com/members/andy/

    Note:

    1. You will need to get $user_id before hand. How you get that will depend on the page you’re viewing on the site. This article will explain more:

    Playing with the user’s ID in different contexts

    2. To append ‘activity’ to the URL, you can use a period .

    For example bp_core_get_user_domain( $user_id ) . 'activity' will output something like http://example.com/members/andy/activity

    3. To wrap that URL in mark up

    <a href="<?php echo esc_url( bp_core_get_user_domain( $user_id ) ); ?>"><?php esc_html_e( 'Text', 'text-domain' ); ?></a>

    #259942
    Henry Wright
    Moderator

    Instead of filtering ajax_querystring, how about using bp_parse_args()?

    Ref https://buddypress.trac.wordpress.org/browser/tags/2.2.1/src/bp-groups/bp-groups-template.php#L431

    #259940
    danbp
    Participant

    As already said: it’s constructed.
    The site url is defined in WP general settings and stored in wp_options table
    The user name is stored in wp_users table
    For the other questions about DB, read:

    BuddyPress Database Diagram

    WordPress database schema

    #259939
    danbp
    Participant

    @henrywright

    Nothing ! I can sort them, but i was unable to assign them correctly. Whatever i tried until yet, didn’t work. It’s like the default group filters keep precedance. My feeling about group type, is that it is implemented to be used inside of group create step first and in a single group as second. In brief, it’s an information for single groups.

    Also, this curious slug (groups/groupname/type/typename/) applied to the group type name showing up on a group header. This pseudo ‘type’ sub-page is used to display a directory of groups using the same type. But this directory isn’t the site group directory !
    Despite this, the default group nav menu is also on that page. And when you click for example on All Groups (the default group directory page) you remain on /groups/groupname/type/typename/. Bad UX !

    That’s what i discovered after unpacking 2.7 RC2. I opened a ticket and Ray patched it a few hours later. Seems to resolve partialy that specific menu problem, but for the moment it’s only a patch and a bug- not the final solution.

    Now, add to that issue, the fact that the group directory is ajaxified, that groups sort options have apparently priority whatever you add as custom option and also the (imho) complex way groups_get_groups applies his filters is far away from what i’m able to do. The mangle of doc and use examples related to types is also an obstacle.

    There is most probably a filter missing. The question is: what, how and where to apply it. Do we use bp_ajax_query_string or groups_get_groups ? Or both or something other ?

    That said, my low php knowledge is probably the first obstacle. 😉 If you have a brilliant idea to surround this, don’t hesitate to share.
    I you want i can send you a copy of what i’m trying to do, bundled as plugin.

    #259937
    Antipole
    Participant

    On my site I have a members directory tab. Users can enter a search term in the Search Members… field to find those members with the search term.

    However, I am seeing occasional false positives, i.e. a member is being returned who does not have the search term. For example, if you search on south, the last user listed Paul does not have south anywhere in his profile.

    I have tried switching to a standard theme Twenty Sixteen – no different. I have removed all plugins except BuddyPress and still the same. I have combed the errant profile using the backend and cannot find the string anywhere.

    NB1 Some of the extended profile fields on this site are not publicly visible. I know that the search finds profiles regardless of permissions but it then displays the profile without the private information. But, in the instances I am seeing, the found term does not exist at all – at least I cannot find it as admin looking in the user’s profile in the backend.

    Any suggestions, anyone?

    NB2. My test site has several plugins that might cause this issue, but I have demonstrated it to be present with only BuddyPress active.

    WordPress 4.6.1; BuddyPress 2.6.2; bbPress 2.5.10

    #259930
    Renato Alves
    Moderator

    I’m working on something very similar to the scenario you just described. Here is an idea it might work for you:

    You could add/associate the contractors/user IDs with the WooCommerce cart. It would allow severals contractors to be associated with the same WooCommerce order/cart.

    Here is a possible workable model.

    – Add a project as a product;
    – Add BuddyPress profile users IDs to the product in the cart;
    – With the user IDs, you would fetch the users information to show their details;
    – Go to the cart/checkout process as normally you would;
    – Hook in WooCommerce to send the order but not charge it yet;
    – Send the job to the contractor/user;
    – Contractor accepts the job, hook in your payment gateway to perform the charge;
    – Contractor performs the job as suggested/described by you;
    – After job delivered by the contractor and accepted by the customer.

    A friend suggested I should consider using WooCommerce Pre-Orders.

    juicyroots
    Participant

    We’re working on a new project where someone (shopper) needs to add one or more BuddyPress users (contractors) to the cart. I’m not sure how to explain this, but here goes…

    In other words, a ‘shopper’ has a project they need worked on (they need to be able to add details about their project, and the work they need done)… Then, they would browse through profiles on the site, and add a ‘BuddyPress user/profile’ (contractor) to their cart (related to a particular project), checkout, etc. The BuddyPress users (contractors) are responsible for completing the work that the ‘shopper’ needs done.

    The difference between this model and other models, is that multiple contractors can be working on the exact same project for a single shopper’s project. Also, the costs are a little simpler than most models… Each ‘engagement’ is a fixed price and a fixed amount of work. If you want multiple contractors to be working on it at the same time, that is just another (more expensive) fixed price or package.

    Example:

    As a shopper: I visit the site, create a new project with details, and then browse through the profiles of users in BuddyPress… find one(s) that I would like to complete my project… and add that user to the cart like a product.

    The contractor(s) then gets the details of the project and can accept or reject working on the project (they probably need to accept or reject before the ‘shopper’ is charged. Once the project work is complete, the contractor sends it back to the ‘shopper’ as digital files.

    This model is very close to picking a designer or coder for a project, with the exception that multiple people can be chosen to perform the same work. Projects are not hourly, they are fixed in price.

    Anyone have any experience, developers, plugins, sites, etc. that are similar to this?

    Thanks,
    T

    #259912
    kniool
    Participant

    Hi everyone,

    I use classiads theme.
    The user can register and insert profile picture.
    But i also use buddypress which it have is own profile picture.

    I would have that :
    when the user change his profile picture theme, it also change his profile picture buddypress (to have the same in the two cases).

    Someone could give me the buddypress function to do this?
    (i already search but i didn’t find it)

    Thanks in advance,

    Kniool

    #259909
    danbp
    Participant

    Usually, when the BP pages are “empty” it’s because you omitted to set the permalinks or because you assigned them a template model. BP pages shoud stay empty ! Just a title and nothing else.

    Getting Started

    #259906
    danbp
    Participant

    i need some advice or help about the following function. (i use BP 2.7 RC2)

    While it display correctly a list of all typed groups, i want also that all different types stays together.

    The list is sorting by alphatetical order group names as expected, but it seems more logic to get such a list sorted by types first – as we use a cutom group directory filter “by types”

    To be clear, what i expect it this when i click on Order by: Types

    Type A
    – group 1
    – group 2

    Type B
    – group 1 (has 2 types allocated)
    – group 3
    – group 4

    Type C

    and so on.

    I’m unable to add any array sort (or better i don’t know how to write the correct one) for this. I also haven’t found a BP filter (if exist)…

    If somebody could tell me how to achieve this, it would be great ! (@boonebgorges, @r-a-y, @ ….)

    // add a filter option on group directory
    function bpex_group_order_options() {    
        if( bp_is_active( 'groups' ) && bp_is_groups_directory() ) {
    ?>
    	<option value="gtype"><?php  _e( 'Types', 'buddypress' ); ?></option>
    <?php
    	}
    }
    add_action( 'bp_groups_directory_order_options', 'bpex_group_order_options' );
    
    // my problem is with this function:
    
    //ajax query for group types
    function bpex_group_types_filter_ajax_querystring( $querystring = '', $object = '' ) {
       
        if( $object != 'groups' )
            return $querystring;
    
        $defaults = array('type' => 'active' );
     
        $bpex_querystring = wp_parse_args( $querystring, $defaults );
     
        if( $bpex_querystring['type'] != 'gtype' )
            return $querystring;
           
        // query types
        $q_types = bp_groups_get_group_types();   
    
        $bpex_querystring = array( 'group_type' =>  $q_types );
        $bpex_querystring['type'] = 'alphabetical';
    
        return apply_filters( 'bpex_gtq_filter_ajax_querystring', $bpex_querystring, $querystring );
    
    }
    
    add_filter( 'bp_ajax_querystring', 'bpex_group_types_filter_ajax_querystring', 20, 2 );

    For those interested by extending their group directory for types, i wrote a tutorial (in french) with all snippets to get a tab for each type, displayable on the main group nav or on the new group type nav bar.

    If you use the tabed types display, you don’t really need a the filter option to check only for typed groups. But if you don’t want tabs more tabs, by lack place or whatever, you may want to access them via the group directory filter.

    chtn2109
    Participant

    I am going to create a new custom notification for a user that if someone mention the user in any review with @, the related user will get a email and a new notification has been generated, this notification I created dynamically, but I get empty message showing on user profile notification area, I checked the db_table for notification as well it has proper entries as well,

    $description = apply_filters_ref_array( 'bp_notifications_get_notifications_for_user', array( $notification->component_action, $notification->item_id, $notification->secondary_item_id, 1, 'string', $notification->component_action, $notification->component_name, $notification->id ) );

    In the above line I found that ‘bp_notifications_get_notifications_for_user’ filter return me the empty description of my notification from line no 523 in function “bp_get_the_notification_description” of file buddypress/bp-notifications/bp-notifications-template.php

    Below is my custom code for generate notification:

    
    //add new notification mention_in_comment
    function mention_in_comment_filter_notifications_publish_post_get_registered_components( $component_names = array() ) {
     
        // Force $component_names to be an array
        if ( ! is_array( $component_names ) ) {
            $component_names = array();
        }
     
        // Add 'custom' component to registered components array
        array_push( $component_names, 'mention_in_comment' );
     
        // Return component's with 'custom' appended
        return $component_names;
    }
    add_filter( 'bp_notifications_get_registered_components', 'mention_in_comment_filter_notifications_publish_post_get_registered_components' );
    
    //show new notification text
    function bp_mention_in_comment_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
        // New custom notifications
        if ( 'mention_in_comment_action' === $action ) {
          
            $comment_info = get_comment( $item_id );
            $author_name = ($comment_info->user_id) ? get_the_author_meta( 'display_name', $comment_info->user_id ) : $comment_info->comment_author; 
            $custom_title = $author_name. ' mentioned you in a new comment on '.get_the_title($comment_info->comment_post_ID);
            $custom_link  = get_comment_link( $comment_info->comment_ID );
            $custom_text = $author_name. ' mentioned you in a new comment: <br/>' . $comment_info->comment_content;
     
            // WordPress Toolbar
            if ( 'string' === $format ) {
                $return = apply_filters( 'mention_in_comment_filter', '' . esc_html( $custom_text ) . '', $custom_text, $custom_link );
     
            // Deprecated BuddyBar
            } else {
                $return = apply_filters( 'mention_in_comment_filter', array(
                    'text' => $custom_text,
                    'link' => $custom_link
                ), $custom_link, (int) $total_items, $custom_text, $custom_title );
            } 
            //var_dump($return);
            return "Just say hello.";        
        }    
    }
    add_filter( 'bp_notifications_get_notifications_for_user', 'bp_mention_in_comment_format_buddypress_notifications', 1, 5 );
    
     //add notification to the mentioned user
        $notification = bp_notifications_add_notification( array(
                          'user_id'           => $user_id,
                          'item_id'           => $comment->comment_ID,
                          'secondary_item_id' => $user_id,
                          'component_name'    => 'mention_in_comment',
                          'component_action'  => 'mention_in_comment_action',
                          'date_notified'     => bp_core_current_time(),
                          'is_new'            => 1) );

    Could you please let me knwo what is wrong with my code or something else, how can more debug and solve this.

    #259898
    karennadine
    Participant

    I have moved my site from Ning to Wp/Buddypress with a bbpress integration a few weeks ago. I was able to import a lot of content except the forum topics/responses.

    What I did was this:
    – used the export tool from Ning
    – used the import tool to import ning to Buddypress
    All my members (not that many, around 34 at that time) and their profiles, usernames, etc were transferred. All blogposts from Ning were imported as well.
    It was easy for members to activate their account on my new Wp/Buddypress site.

    The only down thing was that I had to manually copy topics and responses from the forum since I was unable to import this due to an error in the json file. I tried to repair that file but with no succes.

    I hope this helps, should you have any questions please let me know. Like you I browsed many old topics and was unable to find any recent topics, so I just started out with trail and error to do it all myself.

    Karen

Viewing 25 results - 12,851 through 12,875 (of 73,986 total)
Skip to toolbar