Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 13,676 through 13,700 (of 32,678 total)
  • Author
    Search Results
  • #166703
    @mercime
    Participant

    @64tees you can create your own members widget plugin with the modifications you want – see https://buddypress.trac.wordpress.org/browser/tags/1.7.2/bp-core/bp-core-widgets.php

    @mercime
    Participant

    @jimbaldwin1137yahoocom rename the BuddyPress folder in server e.g. wp-content/plugins/buddypress-xxx

    #166696
    yaakhi
    Participant

    Sorrry but could not find the line you mentioned 🙁 here is the whole bp_profile_as_homepage_fork.php file `<?php
    /*
    Plugin Name: BP Profile as Homepage Fork
    Description: Sets the user BP Profile as homepage on the site for logged in users. This emulates Facebook.
    Author: Mort3n
    Version: 1.0
    License: GPL2
    */

    /* Copyright 2013 Mort3n

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License, version 2, as
    published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
    */

    /**
    * Redirect logged-in user from site Homepage to Profile
    * @since 1.0
    */
    function bp_profile_as_homepage_fork_homepage(){

    global $bp;

    $selected_role = get_option( ‘bpahpf_role_choice’ );

    //redirection to profile applied to all roles
    if( ” == $selected_role ){
    if( is_user_logged_in() && is_front_page() ){

    wp_redirect( $bp->loggedin_user->domain, 302 );
    exit;
    }
    }
    //redirection to profile applied to all roles EXCEPT selected_role
    else{
    if( !bp_profile_as_homepage_fork_check_user_role( $selected_role ) && is_front_page() ){
    wp_redirect( $bp->loggedin_user->domain, 302 );
    exit;
    }
    }
    }

    /**
    * Redirect after logout
    * @since 1.0
    */
    function bp_profile_as_homepage_fork_logout_redirection(){

    global $bp;

    $redirect = $bp->root_domain;

    wp_logout_url( $redirect );
    }

    /**
    * Checks if a particular user has a role.
    * Returns true if a match was found.
    * Code for this function modified from http://docs.appthemes.com/tutorials/wordpress-check-user-role-function/
    *
    * @param string $role Role name.
    * @param int $user_id (Optional) The ID of a user. Defaults to the current user.
    * @return bool
    */
    function bp_profile_as_homepage_fork_check_user_role( $role, $user_id = null ) {

    if ( is_numeric( $user_id ) )
    $user = get_userdata( $user_id );
    else
    $user = wp_get_current_user();

    if ( empty( $user ) )
    return false;

    return in_array( $role, (array) $user->roles );
    }

    /**
    * Add the admin page to the dashboard menu
    * @since 1.0
    */
    function bp_profile_as_homepage_fork_menu(){

    load_plugin_textdomain( ‘bpahpf-menu’, false, basename( dirname( __FILE__ ) ) . ‘/languages’ );
    add_options_page( __(‘BP Profile as Homepage Fork Settings’, ‘bpahpf-menu’ ), __( ‘BP Profile as Homepage Fork Settings’,’bpahpf-menu’), ‘manage_options’, ‘bpahpfmenu’, ‘bpahpf_settings_page’);
    }

    /**
    * Outputs the settings screen and saves data when submitted
    * @since 1.0
    */
    function bpahpf_settings_page(){

    //check for capability to manage options
    if ( !current_user_can( ‘manage_options’ ) ){

    wp_die( __(‘You do not have sufficient permissions to access this page.’, ‘bpahpf-menu’ ) );

    }

    $opt_name = ‘bpahpf_role_choice’;
    $data_field_name = ‘bpahpf_role_choice’;

    $opt_val = get_option( $opt_name );

    //if nonce checks out then save submitted data
    $nonce=$_REQUEST[‘_wpnonce’];
    if( wp_verify_nonce( $nonce, ‘bpahpf’ ) )
    {
    $opt_val = $_POST[ $data_field_name ];
    update_option( $opt_name, $opt_val );
    ?>
    <div class=”updated”><p><?php _e( ‘Settings saved.’, ‘bpahpf-menu’ ); ?></p></div>
    <?php

    }

    echo ‘<div class=”wrap”>’;
    echo “<h2>” . __( ‘BP Profile as Homepage Fork Settings’, ‘bpahpf-menu’ ) . “</h2>”;
    ?>
    <p>
    <?php _e( ‘Disable Profile as Homepage for a particular user role.’, ‘bpahpf-menu’ ); ?>
    </p>
    <form name=”bpahpf-settings-form” method=”post” action=””>
    <?php wp_nonce_field( ‘bpahpf’ ); ?>
    <p><b>
    <?php _e( ‘You have selected:’, ‘bpahpf-menu’ ); ?>
    </b>
    <?php
    if ( ” == $opt_val )
    _e( ‘No One’, ‘bpahpf-menu’ );
    else
    echo $opt_val;
    ?>
    <hr />
    <?php _e( ‘Who can view Homepage:’, ‘bpahpf-menu’ ); ?>
    <select name=”<?php echo $data_field_name; ?>”>
    <option value=””>
    <?php _e( ‘No One’, ‘bpahpf-menu’ ); ?>
    </option>
    <?php wp_dropdown_roles( );?>
    </select>
    </p>
    <p class=”submit”>
    <input type=”submit” name=”Submit” class=”button-primary” value=”<?php esc_attr_e( ‘Save Changes’, ‘bpahpf-menu’ ) ?>” />
    </p>
    </form>
    </div>
    <?php
    }

    add_action(‘admin_menu’,’bp_profile_as_homepage_fork_menu’);
    add_action(‘wp’,’bp_profile_as_homepage_fork_homepage’);
    add_action(‘wp_logout’,’bp_profile_as_homepage_fork_logout_redirection’);
    ?>

    jimbaldwin1137
    Participant

    I get: Page Not Found – 404 error when trying to deactivate buddypress in WordPress and it is still active after going to that page. I cannot deactivate it. PLease help.

    #166692
    @mercime
    Participant
    #166686
    briz_dad
    Participant

    hello everyone;

    I’m new at buddypress and was informed that it will fit the need of my current project… first some intro stuff:

    I’m using WordPress 3.5.2
    Max Mag Theme By MVP Themes Version 1.12
    BuddyPress 1.7.2
    Better WP Security Version 3.5.3
    Wordfence Security Version 3.7.2

    There are other plugins installed that are currently deactivated.

    My project is a news intranet site that has 90% of the content/posts viewable by all registered “members” and 10% individualized by the plant a person works at; about 15 plants currently.

    I currently want to hide the homepage unless signed/logged in to the site.

    The settings for the chosen theme homepage is: “Front page displays Your latest posts”.

    Is BuddyPress the tool to “hide” the homepage unless one is logged in? If so, how?

    I’ve looked for support and so far find just rudimentary support for over-all set-up or dated support that doesn’t address the latest release.

    Also, my plan of action is that everyone that creates an account becomes a “member” of the site to see the 90% “for all” – and individual groups are created for each plant to address the need of the 10% seen only by those plant employees. Am I on the right track with BuddyPress?

    Sincerely,
    Greg

    #166683
    mattg123
    Participant

    You’re using wordpress’s get_avatar, bp_core_fetch_avatar is what you’re looking for

    #166682
    @mercime
    Participant

    when a contractor changed some of the styles for BP

    @mindimer Have you tried re-uploading WordPress and BuddyPress as well?

    #166677
    @mercime
    Participant

    it prevents setting a featured image.

    @mindimer You mean featured image for a Post or Page? Haven’t seen this issue reported for current nor trunk versions. Are you able to upload user Avatars? If so, then file permissions are not the issue and BP is not interfering with image uploads.

    What are your WordPress/BuddyPress versions? Could be conflict of theme with BuddyPress. What theme are you using? Have you tried changing to Twenty Twelve theme with BuddyPress to see if issue is resolved or not?

    #166668
    mindimer
    Participant

    We are seeing the error message “An error occurred in the upload. Please try again later” when trying to use the media uploader. The image is always uploaded, but we can’t verify that through the post interface, only by viewing the media gallery. Especially problematic because it prevents setting a featured image.

    Deactivated all plugins and reactivated one by one. The one plugin that seemed to be in conflict was Buddypress, which is sort of like saying your skeleton is making you sick.

    Research:
    1. Could be file permissions. http://wordpress.org/support/topic/an-error-occurred-in-the-upload-please-try-again-later-11
    2. Could be role, but don’t think so because admins are having this issue, not author as described here (http://wordpress.org/support/topic/solution-an-error-occurred-in-the-upload-please-try-again-later-1) and here (http://wordpress.org/support/topic/an-error-occurred-in-the-upload-please-try-again-later-90.

    Is this a known issue with a (please please please) known fix?

    Thanks!

    @mercime
    Participant
    #166660
    bp-help
    Participant

    @yaakhi
    Try this trick:
    BuddyPress Redirect To Profile Trick Using A Landing Page.
    To modify it to redirect to activity just change this line:
    bp_core_redirect( get_option('home') . '/members/' . bp_core_get_username( bp_loggedin_user_id() ) . '/profile' );
    To this if you want personal activity:
    bp_core_redirect( get_option('home') . '/members/' . bp_core_get_username( bp_loggedin_user_id() ) . '/activity' );
    Or to this if you want sitewide activity:
    bp_core_redirect( get_option('home') . '/activity');

    #166652
    yaakhi
    Participant

    Hi there, I am trying to redirect logged in users to activity, I found a plugin but that would redirect users to user profile. here is the plugin http://wordpress.org/plugins/bp-profile-as-homepage-fork/ can anybody modify it so it can can redirect users to activity ?

    pghjeffrey
    Participant

    I hope someone can point me to a plugin to help with this, I have found several but they did not work for what I am trying to do here.

    Short version:

    1. I want to add a link on the users buddypress profile page to the users wordpress author page.
    2. I want to add a link on the wordpress author page to the buddypress profile page.

    Long version:

    I publish several wordpress/buddypress sites where the member post most of the content. When someone is reading a blog post it points to the users author page from their username. However that reader can not find the members buddypress profile page unless the member manually added a link in their post. I have found a plugin where I can change the post to link to the buddypress profile instead of the author page, but I want my members to be able to use both their author and buddypress profile page. I would like to add a link to the buddypress profile page that shows a link to the users blogs (author page). When a reader goes to the author page I want their to be a link that takes them back to the users buddypress profile? You would think their would be a link with the buddypress activity for blog post, but there is not. The actively shows everything they do on the site and it hard to find blogs that they posted. Is there any plugins that can do this or at least one of the links?

    In case you need this to help me:
    My site: portaltaxi.net/music
    Wordpress version: 3.5.2
    Buddypress version: Version 1.7.2

    I am pretty good at figuring wordpress/buddypress out. I build the site listed, but I am not a coder so I hope someone can give me some ideas. Thanks for your time!

    Jeffrey

    #166643
    Henry
    Member

    What do you mean by locking an account? i’m not sure i’ve ever come across that before. Is it standard functionality to WordPress/ BuddyPress or does the functionality come as a plugin?

    @mercime
    Participant

    If you see clearly, http://my.telegraph.co.uk/kevin_straw/ is displayed inside my.telegraph.co.uk and not as a separate blog.

    @onesoftindiana based on the structure, WordPress Multisite and BuddyPress are installed at root of http://my.telegraph.co.uk/ and user blogs (subsites) are all using a custom theme named “Telegraph User Blogs” where the header and footer links highlight the main sections of telegraph.co.uk

    @djpaul would be the authority re my.telegraph.co.uk 🙂

    #166615

    In reply to: Designing BuddyPress

    modemlooper
    Moderator

    s2member works well with BuddyPress. When you use BP with multisite only one site on the network contains BP. However, any member of any site on the network is added to BuddyPress. BP consolidates blog postings from the entire multisite into a list.

    Alot of WP plugins work with BP. Search BuddyPlug in wordpress.org repo. Also bpinspire.com to see full sites using BuddyPress

    BobQuentok
    Participant

    Hi, something strange happened.

    Today a person wrote me, that he couldn’t register on my site http://gamezgeneration.de/registrieren

    He typed in his desired username and his email, clicked “Register” and the site just reloads.
    I tried it for myself, but it doesn’t work. Some of my stuff members told me, that they got messaged by users as well in the past days.

    We’re using latest WordPress 3.5.1 and BuddyPress 1.7.2 and never had this problem before. I neither have installed new plugins nor have I installed a new theme.

    I really don’t know how to fix this. Tonight I’m going to enable maintenance mode and disable all plugins (and maybe activate the standard BuddyPress theme).

    #166610
    Jen2020
    Participant

    Sorry if this is the wrong place to post, but I’m looking for a page/site that gives the greater picture on how to determine if BuddyPress is the best choice for my purpose (and am new to WordPress and web development).

    If I create a WordPress Multisite, does BuddyPress integrate with that, or do I need to choose one over the other? Are the plugins here different from the ones I see at WordPress (I would assume some might be compatible and others wouldn’t)? When I go to the s2Member plugin listed here, I see nothing about it being a BuddyPress plugin, just WordPress.

    It would be nice if there was a website that had a end-usage type flow chart that guided new users to the right set of software/plugins to get them started for their long term goals. Any suggestions for me?

    Thanks, Jen

    #166602
    Paul Wong-Gibbs
    Keymaster

    This is expected, because the function’s not intended to be used like this (for direct output to HTML).

    Are you trying to do this in a WordPress template — looks like on a author archive page template?

    #166584
    SK
    Participant

    Another one on my list: Hierarchical Groups with upwards member propagation: https://buddypress.trac.wordpress.org/ticket/3961

    #166582
    bp-help
    Participant

    @famous
    Try this out. This definitely works if you follow the instructions:
    BuddyPress Redirect To Profile Trick Using A Landing Page.

    #166581
    Famous
    Participant

    didn’t work, I get an infinite loop on the homepage. There has got to be an easy solution to redirect wordpress upon login?

    modemlooper
    Moderator

    BuddyPress core has no API for external communication.

    There are however, a few 3rd party API plugins.

    https://github.com/tweichart/JSON-API-for-BuddyPress
    https://github.com/modemlooper/BuddyData
    https://wordpress.org/plugins/buddypress-xml-rpc-receiver

    BuddyPress Android app: https://play.google.com/store/apps/details?id=org.yuttadhammo.buddydroid

    BuddyMobile web app: https://wordpress.org/plugins/buddymobile

    There is a WordPress json API project happening and I may rewriting BuddyData to have buddyPress endpoints to work with that API. https://github.com/rmccue/WP-API

    #166569
    @mercime
    Participant

    @freddy34 BuddyPress/WordPress versions? What theme are you using?

Viewing 25 results - 13,676 through 13,700 (of 32,678 total)
Skip to toolbar