Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 77,901 through 77,925 (of 94,576 total)
  • Author
    Search Results
  • #69737
    r-a-y
    Keymaster

    Don’t trial and error functions!

    Look in bp-core-templatetags.php to find conditionals.

    It takes less than five minutes to do this.

    bp_is_my_profile()

    bp_is_directory()

    bp_is_profile_component()

    bp_is_activity_component()

    bp_is_blogs_component()

    etc.

    It’s all there.

    [EDIT]

    Just updated the conditional template tags page in the codex:

    https://codex.buddypress.org/developer-docs/conditional-template-tags/

    #69735
    Robert
    Member

    I’ve upgraded using the Beta Testers plugin > Bleeding edge nightlies 4 / 5 hours ago.

    #69733
    modemlooper
    Moderator

    somebody asked how to add the login form to the front page.

    In widget.php

    find:

    <div id="third-section" class="widgetHome">

    add this right after:

    <?php if ( is_user_logged_in() ) : ?>

    <?php do_action( 'bp_before_sidebar_me' ) ?>

    <div id="sidebar-me">
    <a href="<?php echo bp_loggedin_user_domain() ?>">
    <?php bp_loggedin_user_avatar( 'type=thumb&width=40&height=40' ) ?>
    </a>

    <h4><?php bp_loggedinuser_link() ?></h4>
    <a class="button logout" href="<?php echo wp_logout_url( bp_get_root_domain() ) ?>"><?php _e( 'Log Out', 'buddypress' ) ?></a>

    <?php do_action( 'bp_sidebar_me' ) ?>
    </div>

    <?php do_action( 'bp_after_sidebar_me' ) ?>

    <?php if ( function_exists( 'bp_message_get_notices' ) ) : ?>
    <?php bp_message_get_notices(); /* Site wide notices to all users */ ?>
    <?php endif; ?>

    <?php else : ?>

    <?php do_action( 'bp_before_sidebar_login_form' ) ?>

    <p id="login-text">
    <?php _e( 'To start connecting please log in first.', 'buddypress' ) ?>
    <?php if ( bp_get_signup_allowed() ) : ?>
    <?php printf( __( ' You can also <a href="%s" title="Create an account">create an account</a>.', 'buddypress' ), site_url( BP_REGISTER_SLUG . '/' ) ) ?>
    <?php endif; ?>
    </p>

    <?php if(function_exists('twit_connect')){twit_connect();} ?>

    <form name="login-form" id="sidebar-login-form" class="standard-form" action="<?php echo site_url( 'wp-login.php', 'login' ) ?>" method="post">
    <label><?php _e( 'Username', 'buddypress' ) ?><br />
    <input type="text" name="log" id="sidebar-user-login" class="input" value="<?php echo attribute_escape(stripslashes($user_login)); ?>" /></label>

    <label><?php _e( 'Password', 'buddypress' ) ?><br />
    <input type="password" name="pwd" id="sidebar-user-pass" class="input" value="" /></label>

    <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="sidebar-rememberme" value="forever" /> <?php _e( 'Remember Me', 'buddypress' ) ?></label></p>

    <?php do_action( 'bp_sidebar_login_form' ) ?>
    <input type="submit" name="wp-submit" id="sidebar-wp-submit" value="<?php _e('Log In'); ?>" tabindex="100" />
    <input type="hidden" name="testcookie" value="1" />
    </form>

    <?php do_action( 'bp_after_sidebar_login_form' ) ?>

    <?php endif; ?>

    #69732
    Andrea Rennick
    Participant

    Which version of WP out of trunk did you use? Was it from the last 2-3 weeks?

    #69728
    Gianfranco
    Participant

    Standard WP – Getting rid of the “subdirectory” in permalinks when WP is installed in a subdirectory

    Create a file called “bp-custom.php” in wp-content/plugins.

    Paste this:

    function my_bp_override_core_domain() {
    $domain = get_bloginfo('url');
    return $domain;
    }
    add_filter('bp_core_get_root_domain','my_bp_override_core_domain');

    Now, instead of having: mysite.com/subfolder/activity, you have: mysite.com/activity.

    via https://buddypress.org/forums/topic/permalinks-setup-with-wp-intalled-in-subdirectory-and-indexphp-in-root#post-43767

    #10019
    Robert
    Member

    1- Installed WordPress 2.9.2

    2- Upgrade to WordPress 3.0 alpha using the Beta Testers plugin – OK

    3- Installed BuddyPress – OK

    4- Created test users and groups with custom avatars – OK

    5- Installed the multi-blogs network: Everything seems to work fine, the users are there and no data was lost with one exception: the custom avatars are missing. Tried to upload a new custom avatar but it doesn’t show on the crop screen. Checking the folders wp-content/uploads/avatars I’ve verified that all the custom avatars are still there and if you upload an image it’s stored there. It doesn’t show on screen.

    #69715
    Anointed
    Participant

    Thank you, worked perfectly!

    In case anyone else runs into this issue, here are the changes

    bp-groups/bp-groups-widgets.php

    line 29:

    <?php if ( bp_has_groups( 'type=popular&per_page=' . $instance['max_groups'] . '&max=' . $instance['max_groups'] ) ) : ?>

    change to:

    <?php if ( bp_has_groups( 'type=popular&user_id=""&per_page=' . $instance['max_groups'] . '&max=' . $instance['max_groups'] ) ) : ?>

    One last question:

    I use widget_logic on my sidebars, what is the logic to say ‘is on members profile page’?

    Basically I duplicated the groups widget, one with the user logic, and one without. I can use my modified version in the footer, and the old one in the sidebar. That way I can also show what groups the member belongs to.

    I only want that widget to show up on buddypress profile pages. I just don’t see the logic statement anywhere.

    #69714
    thirdnote
    Member

    getting the same error as @pedromiguel

    could not see any directions for the facebook side of the the setup, just setup facebook to get api info?

    I am running fb-connect and another Wordbooker and WP-FB-AutoConn with no issues

    Also running tweetstream with no issues:

    http://thirdnote.net/activity/ is my connection url in the facebook app

    – is that a needed setting, as it is the only one I set up

    ok, simply – here is the error code:

    ‘Fatal error: Uncaught exception ‘FacebookRestClientException’ with message ‘Updating status requires the extended permission status_update’ in /home/content/g/n/o/gnowels5a33qb/html/wp-content/plugins/facestream/facebook/facebookapi_php5_restlib.php:3374 Stack trace: #0 /home/content/g/n/o/gnowels5a33qb/html/wp-content/plugins/facestream/facebook/facebookapi_php5_restlib.php(1819): FacebookRestClient->call_method(‘facebook.users….’, Array) #1 /home/content/g/n/o/gnowels5a33qb/html/wp-content/plugins/facestream/facestream.php(372): FacebookRestClient->users_setStatus(‘lets see if we …’, ‘1.0000012430197…’) #2 /home/content/g/n/o/gnowels5a33qb/html/wp-content/plugins/facestream/facestream.php(339): facestream_facebookIt(‘lets see if we …’) #3 [internal function]: facestream_activityToFacebook(‘lets see if we …’) #4 /home/content/g/n/o/gnowels5a33qb/html/wp-includes/plugin.php(166): call_user_func_array(‘facestream_acti…’, Array) #5 /home/content/g/n/o/gnowels5a33qb/html/wp-content/plugins/buddypress/bp-activity/ in /html/wp-content/plugins/facestream/facebook/facebookapi_php5_restlib.php on line 3374′

    #69713
    r-a-y
    Keymaster

    Hope you knew that you didn’t need to move to WPMU for BuddyPress now… you can use standard WP since BP 1.2.

    dpee
    Participant

    Hi I recently switched from wordpress to wordpress MU so i could use buddypress on http://mysportspress.com Im loving it, however when users sign up they do not automatically get added to the mysportspress blog, Ive exhausted all options and just have to add each person manually, Does anyone know how to get people automatically authorized on the main blog?

    Of course ive gone into the options and set mysportspress as the default blog for people to subscribe to, but still no luck

    r-a-y
    Keymaster
    dpee
    Participant

    Hi, ive seen this done on another buddypress site, and I was wondering if anyone knew how to place things within the admin bar, so that they will show up on the main blog, and all of the other blogs, Id like to put a search bar in there and a link or two, anyone know how to do this, I cant seem to find what flie specifically i need to edit to put things in

    #69708
    mlemberg
    Participant

    Thanks for a GREAT plugin!

    I’ve found a small bug I hope you can fix:

    When I write an update on Buddypress containing the letters æøå Facebook will convert them to:

    &aelig;&oslash;&aring;

    #69706
    r-a-y
    Keymaster

    Try setting the following in wp-config.php:

    define( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE', true );

    For more info, read this:

    https://codex.buddypress.org/how-to-guides/changing-internal-configuration-settings/

    r-a-y
    Keymaster

    Hey Ted,

    A ticket is already created:

    https://trac.buddypress.org/ticket/2137

    Also related:

    https://trac.buddypress.org/ticket/2055

    Bumping ticket to major.

    Ted Mann
    Participant

    Before submitting this as a ticket, I was curious if others have seen this same problem: When you add a new author to a blog using the WPMU site admin menu, it does grant the user the ability to publish to that blog, yet it fails to update the BuddyPress buddybar on my installs. I’m using WPMU 2.9.2 and BP 1.2.1.

    Have others seen this issue?

    John Stringfellow
    Participant

    First of all, I want to thank you all for your help. Sometimes I feel like I am writing to myself when I ask questions here. I am very grateful to have gotten so many responses and such good help!

    r-a-y,

    I will check into that option. I had used widget logic and one point for another issue, but I never thought about it in this context.

    Andrea_r,

    I did make a new page and apply that template. That’s why I don’t understand it not working!

    Bowe,

    I will try your option and see if I can get it working. Does your blog sidebar not show at all? And if it doesn’t show, what is showing in that space, no sidebar and just a wider content section?

    John

    #69699
    avi-m
    Participant

    Hey boon I tired your plugin again and Still not working for me. I think I will just give up this one for a while as it would the cosmos doesn’t want me using it just now.

    However I thought I would share the error messages in case they are of use.

    Warning: Variable passed to each() is not an array or object in /home/jewsbych/public_html/wp-content/plugins/forum-attachments-for-buddypress/forum-attachments-for-buddypress-bp-functions.php on line 461

    #69698
    Pedro Miguel
    Participant

    Fatal error: Uncaught exception ‘FacebookRestClientException’ with message ‘Updating status requires the extended permission status_update’ in /home/*******s/domains/**********.com/public_html/wp-content/plugins/facestream/facebook/facebookapi_php5_restlib.php:3374 Stack trace: #0 /home/******/domains/**********s.com/public_html/wp-content/plugins/facestream/facebook/facebookapi_php5_restlib.php(1819): FacebookRestClient->call_method(‘facebook.users….’, Array) #1 /home/******************/domains/***********************.com/public_html/wp-content/plugins/facestream/facestream.php(372): FacebookRestClient->users_setStatus(‘Estamos a fazer…’, ‘1.00000551739E+…’) #2 /home/******************/domains/***********************.com/public_html/wp-content/plugins/facestream/facestream.php(339): facestream_facebookIt(‘Estamos a fazer…’) #3 /home/******************/domains/***********************.com/public_html/wp-includes/plugin.php(166): facestream_activityToFacebook(‘Estamos a fazer…’) #4 /home/******************/domains/***********************.com/public_html/wp-content/plugins/buddypress/bp-activ in /home/******************/domains/***********************.com/public_html/wp-content/plugins/facestream/facebook/facebookapi_php5_restlib.php on line 3374

    Any clue how to solve this?

    (This when sending a mesage from my site)

    #10011
    chopo87
    Participant

    Hi,

    I’m trying to make a plugin to allow users to upload documents to their buddypress profile. I’ve manage to setup the database, and the admin settings menu. Now what I need to do is add the code that generates a tab within the user’s profile where the user can upload/delete files and others can brows through them.

    I don’t really have a deep understanding of the inner workings of BuddyPress, all I’ve done so far is based on reading through other similar plug-ins and forum posts:

    The current code I’ve writer when activated brakes the individual members profile to the point that wordpress returns a blank page with not a single html tag. Here is the relevant code I’ve written so far. All I want to do at the moment is make the tab appear when I click on a users profile. I’ll deal with populating it later,

    // Create Slugs and global variables<br />
    if ( !defined( 'BP_PROFILE_DOCUMENTS_SLUG' ) )<br />
    define ( 'BP_PROFILE_DOCUMENTS_SLUG', 'profile_documents' );</p>
    <p> function bp_profile_documents_setup_globals() {<br />
    global $bp, $wpdb;</p>
    <p> /* For internal identification */<br />
    $bp->profile_documents->id = 'profile_documents';<br />
    $bp->profile_documents->table_name = $wpdb->base_prefix . 'bp_profile_documents';<br />
    $bp->profile_documents->format_notification_function = 'bp_profile_profile_format_notifications';<br />
    $bp->profile_documents->slug = BP_PROFILE_DOCUMENTS_SLUG;</p>
    <p> /* Register this in the active components array */<br />
    $bp->active_components[$bp->profile_documents->slug] = $bp->profile_documents->id;</p>
    <p>}</p>
    <p>/*/ add navigation item for user --<br />
    function bp_group_documents_setup_nav() {<br />
    global $bp, $current_blog, $group_object;</p>
    <p> bp_core_new_nav_item( array(<br />
    'name' => __( 'Chopo87' ),<br />
    'slug' => $bp->profile_documents->slug,<br />
    //'position' => 50,<br />
    //'show_for_displayed_user' => false,<br />
    //'screen_function' => 'messages_screen_inbox',<br />
    //'default_subnav_slug' => 'inbox',<br />
    //'item_css_id' => $bp->messages->id<br />
    ) );<br />
    }/**/

    As you can see the “bp_group_documents_setup_nav()” function definition is commented out. This is because as soon as I insert that piece of code I brake the user profile web page. I’ve added the other code based on the group documents plugin to see if it helped, but this may not be necesary or helpful. I’ve also commented out most of the bp_core_new_nav_item as i read (here http://codex.buddypress.org/developer-docs/functions/core/bp_core_new_nav_item/) that they are optional.

    You can find my full code at http://aitzol.com/buddypress_profile_documents.txt

    Any help would be apreciated

    Chopo

    @mercime
    Participant

    You can add the code in wp-config.php right after “The Database Collate type…” section of the file

    #69689
    @mercime
    Participant
    #10010
    @mercime
    Participant

    Export-Import CSV or XML of BuddyPress Data such as

    – Members and/or

    – Groups and/or

    – Forums and/or

    – BP components

    More ways to backup and restore, the better

    #10009
    tezmc
    Member

    Hi,

    Our registration form isn’t working properly on our Buddypress install.

    If you don’t fill in all the required fields, the errors are outputted twice. If you fill in the data correctly, a user is added to the database, but you are redirected back to the registration page with 2 errors saying that the email and username have already been used.

    It looks to me as if the registration process is being looped through twice. Does anyone know what would cause this? We are using the latest versions of both WP and BP.

    Many thanks

    #69687
    chembro303
    Member

    works like a charm now! Thanks guys!

Viewing 25 results - 77,901 through 77,925 (of 94,576 total)
Skip to toolbar