Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 47,551 through 47,575 (of 94,544 total)
  • Author
    Search Results
  • @mercime
    Participant
    @mercime
    Participant

    == several things missing when I post a blog entry (“What’s new?”) in BP Groups … The posts don’t show up in “All Posts” on the admin page (I thought I could apply categories there). It almost seems as if they’re not “posts” as far as WP is concerned ==

    You’re right. Those are not posts but group activity updates. If you want posts by the group, you could try either:
    For WP multisite with BP install – https://wordpress.org/extend/plugins/bp-groupblog/
    For single WP or WP multisite with BP install – http://buddydev.com/buddypress/blog-categories-for-groups-plugin/

    BlinkyBill01
    Participant

    @DJPaul, I’m still having this problem described in my previous post. While the Name (Primary) (Required) returned after I re-enabled Extended Profiles, it’s not correctly linked to the actual WordPress naming system.

    If a user registers with the username “william” and they put “Bill” as the Name (Primary) (Required) their username and nicename both show as “william.” Then if the user goes into the settings to change their name to, say Toby, they get this on the BuddyPress profile page:

    Toby
    @william

    If I’m not mistaken, the Name and Nicename should automatically be changed to display the same name, just with the @ before the nicename?

    Is there any way to re-add the original files without reinstalling BuddyPress so that it correctly links up?

    #130924
    rsteer
    Member

    I’ve been looking for a way to search the forums too — finding out if a question has been answered is tough if you have to browse through something like 938 pages of topics!

    @mercime
    Participant

    @thesurfinstitute Following is the simplest way to make your theme compatible:

    If you’ve changed any of the BP template files in your theme folder, replace all of them for a clean slate by deleting the 6 BP folders in server – /activity, /blogs, /forums, /groups, /members, and /registration – then re-run Appearance > BP Compatibility. (make sure Sliding Door Child theme is activated before you run this)

    A. Copy your theme’s header.php and Save As > header-buddypress.php

    Open up header-buddypress.php and at the bottom of the file, below all other code, add this:
    `

    `

    Save file.

    B. Create a BLANK sidebar-buddypress.php and add this line only

    `

    `

    Save file.

    C. Upload header-buddypress.php and sidebar-buddypress.php to wp-content/themes/sliding-door-child/

    D. Style modifications for BP templates – you might want to use some or all of styles listed in this page https://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-ten-bp-1-5/3/

    #130922
    Jacob Schweitzer
    Participant

    I tried the bp-default theme, I’m not using any other BuddyPress plugins.

    Found a solution – the problem is a cookie set by BuddyPress that isn’t changing correctly or has the wrong expiration time.

    Line 130 of bp-groups-actions.php (in the bp-groups folder):
    setcookie( ‘bp_new_group_id’, $bp->groups->new_group_id, time()+60*60*24, COOKIEPATH );

    I commented this line out. You could also change the time to a shorter time so bots don’t create groups, is that why this is in there? As it is now, this cookie prevents anyone from creating more than 1 group per 24 hours. Why?

    #130918
    modemlooper
    Moderator

    There should be a link in your sites footer to switch back and forth, I don’t think domain mapping will work very well considering the hijacking of theme is how bp mobile currently works. There will be a future version that does away with theming in the WordPress sense and will use an API and then you will be able to put mobile version on another url. You will be able to even create a service that allows users to send content to your site from another domain. Think twitter apps.

    #28084
    bigt11
    Participant

    **UPDATED**
    -when multiple results show, it will show the AKA @ name properly now
    -added the same limit on the results returned that the original code used

    Like a lot of people, I want the auto suggest to look for display names and nice names. Below is my code to do just that. Im using a $wpdb->get_results to do my search. Im also changing up the displayed text to also include that users nice name so if the user is searching for “bob”. A user’s display name might be “bob9”, but there login = “I_am_bob” It will display avatar then display name then @username

    example output
    [avatar] bob9 AKA -> @i_am_bob

    Warning im not a coding master, but it seems to work for me. Below is the whole class-bplabs-autosuggest.php so just make a backup of your site, and overwrite inside class-bplabs-autosuggest.php with the code below

    <?php
    /**
    * @package BP_Labs
    * @subpackage Mentions_Autosuggest
    */
    
    // Exit if accessed directly
    if ( !defined( 'ABSPATH' ) )
    exit;
    
    /**
    * Implements the <a href='http://buddypress.org/community/members/message/' rel='nofollow'>@message</a> autosuggest experiment.
    *
    * <a href='http://buddypress.org/community/members/since/' rel='nofollow'>@since</a> 1.0
    */
    class BPLabs_Autosuggest extends BPLabs_Beaker {
    /**
    * Enqueue javascript
    *
    * <a href='http://buddypress.org/community/members/since/' rel='nofollow'>@since</a> 1.0
    */
    public function enqueue_script() {
    $dir = WP_PLUGIN_URL . '/bp-labs/beakers/js/jquery.mentions';
    
    if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG )
    wp_enqueue_script( 'bplabs-autosuggest-js', "{$dir}.dev.js", array( 'jquery' ), '1.2' );
    else
    wp_enqueue_script( 'bplabs-autosuggest-js', "{$dir}.js", array( 'jquery' ), '1.2' );
    
    wp_localize_script( 'bplabs-autosuggest-js', 'BPMentions', array(
    'error1'     => __( 'Sorry, an error occurred.', 'bpl' ),
    'error2'     => _x( 'Please try again.', 'an error occurred', 'bpl' ),
    'searching'  => _x( 'Searching for members to mention... one moment please...', 'started a search', 'bpl' )
    ) );
    
    // This bit of javascript is what you could add directly to your theme
    $dir = WP_PLUGIN_URL . '/bp-labs/beakers/js/autosuggest';
    
    if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG )
    wp_enqueue_script( 'bplabs-autosuggest-theme-js', "{$dir}.dev.js", array( 'bplabs-autosuggest-js' ), '1.0' );
    else
    wp_enqueue_script( 'bplabs-autosuggest-theme-js', "{$dir}.js", array( 'bplabs-autosuggest-js' ), '1.0' );
    }
    
    /**
    * Enqueue CSS
    *
    * <a href='http://buddypress.org/community/members/since/' rel='nofollow'>@since</a> 1.0
    */
    public function enqueue_style() {
    $dir = WP_PLUGIN_URL . '/bp-labs/beakers/css/jquery.mentions';
    
    if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG )
    wp_enqueue_style( 'bplabs-autosuggest', "{$dir}.dev.css", array(), '1.0' );
    else
    wp_enqueue_style( 'bplabs-autosuggest', "{$dir}.css", array(), '1.0' );
    }
    
    /**
    * Add the AJAX callback for the mention_autosuggest() method.
    *
    * <a href='http://buddypress.org/community/members/since/' rel='nofollow'>@since</a> 1.0
    */
    protected function register_actions() {
    add_action( 'wp_ajax_activity_mention_autosuggest', array( 'BPLabs_Autosuggest', 'mention_autosuggest' ) );
    }
    
    /**
    * AJAX receiver for the @mention autosuggest jQuery library. Performs a search on the string provided and returns matches.
    *
    * <a href='http://buddypress.org/community/members/global/' rel='nofollow'>@global</a> object $bp BuddyPress global settings
    * @return mixed Either HTML or JSON. If error, "-1" for missing parameters, "0" for no matches.
    * <a href='http://buddypress.org/community/members/see/' rel='nofollow'>@see</a> bp-labs/beakers/js/jquery.mentions.dev.js
    * <a href='http://buddypress.org/community/members/since/' rel='nofollow'>@since</a> 1.0
    */
    public function mention_autosuggest() {
    global $bp;
    
    if ( empty( $_POST ) || empty( $_POST ) )
    exit( '-1' );
    
    // Sanitise input
    $search_query = implode( '', (array) preg_replace( array( '|^https?<img src="smileys/irritated.gif" width="" height="" alt=":/" title=":/" class="bbcode_smiley" />/|i', '|*|', '|@|' ), '', $_POST ) );
    if ( empty( $search_query ) )
    exit( '-1' );
    
    //$args = array(
    //	'count_total' => false,
    //	'number'      => (int) $_POST,
    //	'search'      => "{$search_query}*"
    //);
    
    if ( !empty( $bp->loggedin_user->id ) )
    $args = array( $bp->loggedin_user->id );
    
    if ( bp_is_username_compatibility_mode() ) {
    //$args  = array( 'ID', 'user_login' );
    //$args = 'login';
    
    }
    else {
    //$args  = array( 'ID', 'display_name' );
    //$args = 'nicename';
    }
    
    $args = apply_filters( 'bpl_mention_autosuggest_args', $args );
    
    // Search users
    //TAO custom search using display name
    global $wpdb;
    $TAO_limit_results = (int) $_POST;
    $user_search_results = $wpdb->get_results( "SELECT ID, user_nicename, display_name, user_login FROM wp_users WHERE user_login like'%$search_query%' OR display_name like '%$search_query%' LIMIT 0, $TAO_limit_results" );
    //print_r($user_search_results);
    echo "<br>";
    echo 'Searching for members to mention with "' .$search_query .'" in their name.';
    echo "<br>";
    echo 'Click on the user you wish to mention.';
    $args = array(
    'search'      => "*{$search_query}*"
    
    );
    //$user_search_results = new WP_User_Query( $args );
    //print_r($user_search_results);
    if ( empty( $user_search_results ) ) {
    
    // Return JSON
    if ( !empty( $_POST ) && 'json' == $_POST ) {
    exit( json_encode( false ) );
    
    // Return HTML
    } else {
    printf( '<li class="section error"><span>%s</span> %s
    </li>', _x( 'No matches found.', 'no search results', 'bpl' ), _x( 'Please check your spelling.', 'no search results', 'bpl' ) );
    exit();
    }
    }
    
    // If logged in, get user's friends
    $friend_ids = array();
    if ( !empty( $bp->loggedin_user->id ) && bp_is_active( 'friends' ) )
    $friend_ids = friends_get_friend_user_ids( $bp->loggedin_user->id );
    
    $search_results = array( 'friends' => array(), 'others' => array() );
    
    // Build results
    foreach ( (array) $user_search_results as $user ) {
    $result         = new stdClass;
    $result->avatar = bp_core_fetch_avatar( array( 'item_id' => $user->ID, 'width' => 30, 'height' => 30, 'type' => 'thumb', 'alt' => __( 'Profile picture of %s', 'bpl' ) ) );
    $result->name   = bp_core_get_user_displayname( $user->ID );
    //TAO adding the nicename to do a AKA
    $result->TAO_user_nicename = $user->user_nicename;
    
    if ( bp_is_username_compatibility_mode() )
    $result->id = $user->user_login;
    else
    $result->id = $user->user_nicename;
    
    if ( in_array( $user->ID, (array) $friend_ids ) )
    $search_results[] = $result;
    else
    $search_results[]  = $result;
    }
    
    apply_filters_ref_array( 'bpl_mention_autosuggest', array( &$search_results, $args ) );
    
    // Return JSON
    if ( !empty( $_POST ) && 'json' == $_POST ) {
    exit( json_encode( $search_results ) );
    
    // Return HTML
    } else {
    $html = array();
    
    foreach ( $search_results as $section => $items ) {
    if ( empty( $items ) )
    continue;
    
    // Friends and other users
    if ( 'friends' == $section || 'others' == $section ) {
    if ( 'friends' == $section ) {
    $html[] = sprintf( '<li class="section friends">%s
    </li>', __( 'Your friends', 'bpl' ) );
    
    } elseif ( 'others' == $section ) {
    if ( !empty( $search_results ) )
    $html[] = sprintf( '<li class="section other">%s
    </li>', sprintf( __( 'Other people on %s', 'bpl' ), get_bloginfo( 'name', 'display' ) ) );
    else
    $html[] = sprintf( '<li class="section other">%s
    </li>', sprintf( __( 'People on %s', 'bpl' ), get_bloginfo( 'name', 'display' ) ) );
    }
    
    foreach ( $items as $item )
    $html[] = sprintf( '<li class="%s">%s
    </li>', esc_attr( $item->id ), $item->avatar . esc_html( $item->name ) . '&nbsp;&nbsp&nbsp;&nbsp;AKA&nbsp;&nbsp;---> @' .$item->TAO_user_nicename );
    
    // For third-party extensions
    } else {
    $custom_section = apply_filters( 'bpl_mention_autosuggest_custom_section', false, $section, $items );
    
    if ( !empty( $custom_section ) )
    $html = array_merge( $html, (array) $custom_section );
    }
    }
    
    // Safety net
    if ( empty( $html ) )
    $html[] = sprintf( '<li class="section error"><span>%s</span> %s
    </li>', _x( 'No matches found.', 'no search results', 'bpl' ), _x( 'Please check your spelling.', 'no search results', 'bpl' ) );
    
    exit( apply_filters( 'bpl_mention_autosuggest_html', implode( PHP_EOL, $html ), $html ) );
    }
    }
    }
    new BPLabs_Autosuggest();
    ?>
    @mercime
    Participant

    == There’s really nobody out there that can assist me with this!? ==

    @thesurfinstitute We’re all volunteers here living in different time zones and it just happened that your post got overlooked. A polite bump is acceptable.

    You need to fix the alignment of the BP template files with that of your WP theme https://wordpress.org/extend/themes/sliding-door

    Let me take a look and I’ll get back to you on solution.

    #28082
    dcstover1
    Member

    I have installed buddypress and bbpress on my site ontariobuyersmarket.ca and when creating new forums its giving the url, but when i explore the url it just gives me a h1 tag name of the forum name. for example “general” forum is on the url http://www.ontariobuyersmarket.ca/Q&A/forum/general/ ….sincerely confused

    shanebp
    Moderator

    https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/

    try something like
    bp_has_activites(‘type=friends’)
    in your template

    yadigit
    Participant

    This is just a though and that’s a very good idea and I will also look into it too..
    have you tried the ‘ > ‘ sign..
    I would set a $timeset = TIMERESTRICT

    Now this is something I wouldn’t know how to do but This is how i would lay out the if command..
    How would would you call the time of when the person left the group?
    if you could do that I’d set a string as
    $timeleft = TIMEPERSONLEFTGROUP

    and make the if command

    if $timeset < $timeleft {
    Can’t join time
    } else {
    Join
    }

    Im not sure if it helped too much, but I hope it gave you an idea on what to do.
    @jeffsl

    allangen
    Member

    I’ve been looking for a way to search for particular topics. There appears to be a search feature above the forums but whenever I enter a search term it takes me to the same page, http://buddypress.org/?s.

    Is there a search feature on the forums that would be more granular than the tags?
    Thanks

    #28078
    kylek9
    Member

    I have Buddypress set up with a sitewide bbPress forum. I don’t have any groups set up, because this is a small intranet type site used for my company, where we don’t need groups.

    How can I get daily digest emails of the site activity stream set up?

    I’ve tried installing the Buddypress Group Email Subscription plug-in, but that must only work with groups? Do I need to set up a group, and change to a bbPress group forum instead of sitewide for this to work?

    #28077
    jezz_cgvak
    Member

    We are facing some technical issue with adding categories to activity in BuddyPress. In this project we are also using a plugin ‘BuddyPress Activity Plus’.

    The idea was to create and maintain two separate tables (activity_category, activity_category_relation); activity_category is for holding category data and activity_category_relation will hold their relationship.

    Problem

    The problem is when somebody posts an update in the activity; we need to retrieve the particular activity id.

    When I checked codes of ‘BuddyPress’ plugin and ‘BuddyPress Activity Plus’ plugin, ‘BuddyPress Activity Plus’ plugin jquery ajax functions to post activity updates, so it seems hard to retrieve the activity post id that we are using to relate with the category id.

    Please explain if I miss anything/ did anything wrong. I’m new to BuddyPress. :)

    #130910
    @mercime
    Participant

    BuddyPress Followers plugin works only with BuddyPress plugin activated.

    I recommend that you post at WordPress forums for assistance in seeking for plugin/s that would meet your needs. Before posting there, you might consider searching for such plugins first like https://wordpress.org/extend/plugins/search.php?q=follow

    Zigster
    Member

    OK, I feel pretty stupid.

    To change the header menu you just go to Appearance > Menus, and create a custom Menu.

    Yay!

    Zigster
    Member

    Hello,

    I installed BuddyPress with the “Site Wide” Forum option.

    The Forum is working fine, but I get this error:

    “The following active BuddyPress Components do not have associated WordPress Pages: Discussion Forums. “

    When I click “Repair” it takes me to BuddyPress > Pages

    Under “Directories” there is “Discussion Forum” and a drop down menu.

    The forum that I have is not listed in the dropdown menu.

    If I hit “New Page” it just makes like a new blank blogging page and links to that.

    How do I make a link to the forum in the header next to “Home, Activity, Groups”, etc?

    Thanks

    BlinkyBill01
    Participant

    Found it. It was listed in the buddypress/bp-goups/bp-groups-template.php

    #130897

    @roxanne-bland, Buddy press is a “create your own social network” type plugin.

    if you are looking for something that will allow people to “follow” your blog you are either looking for something passive, like setting up an obvious RSS link on your blog and encouraging those who use RSS to follow yours

    Or if you are looking for something more active, then something that will email your “readers” when you post to your site.

    Currently out of the box people can “follow” a wordpress blog if they wish, usually via RSS or bookmarking the site. So i’m not really 100% sure what your are looking for?

    BlinkyBill01
    Participant

    I’m looking at this bit from the Gantry-BuddyPress plugin and it shows this:

    bp_group_type();
    bp_group_member_count();

    What BuddyPress files would I find those in?

    #130895

    Thanks @mercime. I read BP’s description of 1.5.4 and that’s not what I want. All I want is for people to be able to follow my blog if they so wish. I’ll keep looking for plugins that’ll do that. Unless you have a suggestion…?

    If I do decide to use BP, what would I set permalinks to? Custom?

    BlinkyBill01
    Participant

    Well, after hours and hours, I’ve gone through and find/replaced what I needed. Seems that RocketTheme’s Gantry-BuddyPress plugin doesn’t use the exact code to call for the language files. It was all written in html.

    I’ve also changed the language files incase they left some of the original BuddyPress code in.

    I am stumped on one thing, and this should be the last I need changed in regards to the design of my site.

    I’ve been able to change the Groups Directory to Guilds Directory as well the majority of Groups to Guilds. The only things that I haven’t found are what the search box on the groups page lists and the part that lists “Public Group / *** member” listed to the right of the group info.

    I’ve gone though every file in Gantry-BuddyPress plugin, and the theme files as well as the BuddyPress plugin folder and I can’t find anything that lists “Search Groups…”, I’ve found “Public Group” in a lot of files and changed them, but after uploading the files the site does not reflect the change.

    #28069
    InHouse
    Member

    Hi, I’m using the buddypress mobile plugin and love it with the exception that there is no domain mapping. I’d like to offer viewers the ability to switch back and forth between desktop and mobile. I’ve seen this with other mobile plugins but none of the others do what buddypress mobile does with the member directory. Is there anyway I can get my url to be m.mydomain.com and have a link in my footer to switch between the 2? Thanks in advance.

    #130893
    yadigit
    Participant

    Now the question is, is there a way to show the comments by clicking “Comment” and it will expland the rest of the hidden comments?

    I know it has something to do with the J.S
    @naijaping Any ideas?

Viewing 25 results - 47,551 through 47,575 (of 94,544 total)
Skip to toolbar