Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 64,276 through 64,300 (of 69,041 total)
  • Author
    Search Results
  • #47865
    r-a-y
    Keymaster

    Sunday morning bump!

    Let me know if any of you need clarification with what I typed above.

    #47864
    r-a-y
    Keymaster

    Hey 21cdb,

    This is actually getting beyond the scope of the original post!

    I’m not sure what the $doing_admin_bar variable is; I’m assuming it’s a variable of BP’s that allows you to check if the admin bar is displayed or not.

    If that is the case, you can try this:

    function check_admin_bar() {
    global $bp;
    if($doing_admin_bar) add_action('wp_head', 'my_admin_bar_css', 1);
    else remove_action('wp_head', 'bp_core_admin_bar_css', 1);
    }
    add_action('plugins_loaded','check_admin_bar',99);

    Try that out, not sure if it will work though!

    Re: Admin bar logo. Simple way is to not use the apply_filter! Just directly link to your logo!

    function my_adminlogo() {
    echo '<a href="/"><img src="LINK TO LOGO" alt="YOUR LOGO" /></a>';
    }

    function my_adminbar_logo() {
    //replace BP logo with your logo
    remove_action( 'bp_adminbar_logo', 'bp_adminbar_logo');
    add_action( 'bp_adminbar_logo', 'my_adminlogo');
    }

    add_action( 'bp_adminbar_logo', 'my_adminbar_logo', 1);

    To do more modifications, I highly recommend reading the codex article, “Modifying the Admin Bar” that Jeff linked to:

    https://codex.buddypress.org/how-to-guides/modifying-the-buddypress-admin-bar/

    It contains mostly everything you need to know!

    #47859
    21cdb
    Participant

    Hey r-a-y,

    is it possible that you give me an example of this if-else statement?

    I also do have another question. I would like to change the admin_bar_logo.gif. I was thinking about using the following code:

    <?php
    function bp_adminbar_custom_logo() {
    global $bp;
    echo '<a>root_domain . '"><img id="admin-bar-logo" src="' . apply_filters( 'bp_admin_bar_logo_src', bloginfo('template_url') . /images/admin_bar_logo.gif . '" alt="' . apply_filters( 'bp_admin_bar_logo_alt_text', __( 'BuddyPress', 'buddypress' ) ) . '" /></a>';
    ?>

    However i have problems with bloginfo(‘template_url’) which isn’t working and i don’t get the mistake, if there is one?!

    #47858
    Paul Wong-Gibbs
    Keymaster

    The approach to take in a plugin is to hook into the various WP and BP actions and then reward achievements as and when appropriate. You need to record in the database which achievements have been obtained. And write the administration and user interfaces for BuddyPress as a custom component.

    I am myself working on an achievements plugin. I had hoped to release a test version today but I can’t promise that, it’s looking unlikely. But we shall see..

    #47855

    In reply to: Photo, not avatar

    Paul Wong-Gibbs
    Keymaster

    The trick would be to use a custom “translation” – this way when you upgrade, you won’t have to manually merge lots of files.

    See Customizing Labels, Messages, and URLs.

    #47850
    peterverkooijen
    Participant

    I’ve split the function as follows:

    function xprofile_add_signup_fields() {
    global $bp_xprofile_callback, $avatar_error, $avatar_error_msg;

    /* Fetch the fields needed for the signup form */
    $fields = BP_XProfile_Field::get_signup_fields();

    if ( $fields ) {
    ?>
    <div id="extra-form-fields">
    <?php
    for ( $i = 0; $i < count($fields); $i++ ) {
    if ( $bp_xprofile_callback[$i]['field_id'] == $fields[$i]->id && isset($bp_xprofile_callback[$i]['error_msg']) ) {
    $css_class = ' class="error"';
    } else {
    $css_class = '';
    }
    ?>
    <div class="extra-field">
    <?php if ( $css_class != '' ) { echo '<div class="error">' . $bp_xprofile_callback[$i]['error_msg'] . '</div>'; } ?>
    <?php echo $fields[$i]->get_edit_html($bp_xprofile_callback[$i]['value']); ?>
    </div>
    <?php
    $field_ids .= $fields[$i]->id . ",";
    }
    ?>
    </div>
    <input type="hidden" name="xprofile_ids" value="<?php echo attribute_escape( $field_ids ); ?>" />
    <?php
    }
    }
    add_action( 'signup_extra_fields', 'xprofile_add_signup_fields' );

    function xprofile_avatar_field() {
    global $bp_xprofile_callback, $avatar_error, $avatar_error_msg;

    if ( !(int) get_site_option( 'bp-disable-avatar-uploads' ) ) {
    ?>
    <div id="avatar-form-fields">
    <h3><?php _e('Profile Picture (Avatar)', 'buddypress'); ?></h3>
    <p id="avatar-help-text"><?php _e('You can upload an image from your computer to use as an avatar. This avatar will appear on your profile page.', 'buddypress'); ?></p>
    <?php
    if ( $avatar_error ) {
    $css_class = ' error';
    } else {
    $css_class = '';
    }
    ?>

    <div class="avatar-field<?php echo $css_class; ?>">
    <?php if ( $css_class != '' ) { echo '<div class="error">' . $avatar_error_msg . '</div>'; } ?>

    <label for="file"><?php _e( 'Select a file:', 'buddypress' ) ?></label>
    <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo get_site_option('fileupload_maxk') * 1024; ?>" />
    <input type="hidden" name="slick_avatars_action" value="upload" />
    <input type="hidden" name="action" value="slick_avatars" />
    <input type="file" name="file" id="file" />
    </div>
    <script type="text/javascript">
    jQuery(document).ready( function() {
    jQuery('form#setupform').attr( 'enctype', 'multipart/form-data' );
    jQuery('form#setupform').attr( 'encoding', 'multipart/form-data' );
    });
    </script>
    </div>
    <?php
    }
    }
    add_action( 'signup_avatar_field', 'xprofile_avatar_field' );

    Unfortunately it doesn’t work 100%. I was able to register a test user, but first name, last name and avatar were not stored.

    With the old combined function first name and last name were stored correctly, so I must have made a mistake in splitting them. Where?

    Comments + suggestions appreciated!

    #47846
    Jeff Sayre
    Participant

    Do you have any plugins other than BuddyPress installed and activated. If so, you need to distill your environment down to the lowest common denominator: Use the default BP themes that come with v1.0.1 and deactivate all other plugins.

    What happens then? If you do not have any more issues, then you know it has something to do with your custom theme, one of the plugins, or some combination.

    You then start going back up the ladder one step at a time. Switch the default BP themes for your custom themes. Does the problem return? It not, then is has to do with your plugins. Activate one plugin at a time until the issue returns.

    Here’s a thread where Paul talks about a similar error message and plugins: https://buddypress.org/forums/topic.php?id=2802#post-15313

    Let us know how your testing goes.

    #47837
    plrk
    Participant

    Both versions can be found at the codex page linked above, also here: https://codex.buddypress.org/translations/swedish-svenska-sv_se/

    #47833
    Windhamdavid
    Participant

    that someone was me – https://buddypress.org/forums/topic.php?id=2893 what I had noted is that sam’s plugins is essentially the same as bp-forums-bbpress-live.php and the only answer (at this point) is to manually construct the bp_forums_get_forum() as you’ve suggested. the problem I was incurring previously was avoiding having to use the forum ID as an argument – when set to null it returns the most recent topics. https://trac.buddypress.org/ticket/375

    #47831
    ebalchev111
    Participant

    No, i just looking for partner

    #47829
    Paul Wong-Gibbs
    Keymaster

    I sometimes think we shouldn’t bundle the Skeleton theme with the BuddyPress .zip. It confuses some people.

    #47822
    Jeff Sayre
    Participant

    If you are not in a hurry then I would recommend waiting for awhile. At some point, BuddyPress will be configured to function on single-user WordPress. I do not have a timeline for this as it has to do with merger of the WPMU codebase into WP.

    #47821
    3125432
    Inactive

    Just an update. Have played around with this a bit and sometimes the sitadmin dashboard Users section that allows you to select the preferred name to be displayed publicly works and sometimes it doesn’t.

    I’m thinking that this may have something to do with the Buddypress General Settings: Disable Buddypress from WordPress syncing? This is a total mystery to me what that means or is supposed to do. Anyone?

    Anyway, the fix that seems to work is a MySql query that anchors from the user id # and then you could structure it to replace the current data in the value field of the wp_bp_xprofile_data table with the data from the user_login field of the wp_users table.

    I have no idea how to do create that query but I am sure it is pretty easy.

    – Brian

    #47820
    r-a-y
    Keymaster

    roseeveltrp, you’re correct!

    You need WordPress MU.

    BuddyPress only works with MU at this moment in time.

    Some day down the road BuddyPress will support regular WordPress, but not now.

    Here’s a good guide for transitioning from WordPress standard to MU:

    http://welcome.totheinter.net/2008/10/04/how-to-migrate-from-wordpress-to-wordpress-mu/

    It helped me!

    #47819
    Jeff Sayre
    Participant

    what version of jQuery we can expect to see in the next BuddyPress update?

    Well, based on the new features of WP 2.8, which WPMU will merge into its codebase, I’m going to guess jQuery 1.3.2. Perhaps Andy has a different idea.

    #47816
    thebloghouse
    Participant

    Just to add I have had a smilar no cropping issue (leaving black thumbs) and isolated the issue down to the WP Carousel plugin which iteslf resolved a previous issue I was having with an old jQuery image gallery!

    I am now stuck between a rock and a hard place- have the nice image gallery rotating on the home page OR have the cropping fucntions working correctly wihtin BuddyPress :(

    Weirdest issue with this jquery compatabilty theory is that I actually modified the WP Carousel plugin so it didn’t pull in it’s own jquery.js file so there SHOULD be no conflicts.

    Will get in touch with the plugin authors but can I ask Jeff or anyone else what version of jQuery we can expect to see in the next BuddyPress update?

    If I know this I can at least give the plugin developers a little more idea as to what I would like in an ideal world (after 1.2.6) but I can see some late nights getting friendly with jQuery ahead zzzz

    #47813
    Paul Wong-Gibbs
    Keymaster

    I spoke to apeatling about this on IRC a week or two ago, and he said it was something he was aware of. You could make a ticket on the Trac just in case it is forgotten – use the same username and password for there as you do here.

    #47811

    In reply to: Import User to BP

    peterverkooijen
    Participant

    I have to do something similar. Not looking forward to it…

    I’ve found this plugin:

    User Import for BuddyPress (All Fields)

    To export member data from another WordPress installation you could use this:

    Users to CSV WordPress plugin

    Haven’t gotten to testing this yet, so let me know if it works…

    #47810
    Paul Wong-Gibbs
    Keymaster

    You do not need to start another thread about this – you’ve posted in one other. I’m going to close this thread so we keep the discussion in one place.

    #47807

    In reply to: Bug in Groups page.

    Paul Wong-Gibbs
    Keymaster

    Hi slavd

    Thanks for the post. This bug was fixed in the SVN trunk a while ago, so I’m going to mark this post as resolved. Thank you very much for taking the time to post here!

    #47806
    3215850
    Inactive

    +1

    I’ve been running a ning network and wordpress blog in parallel. Slightly integrated by way off rss feeds, but nowhere near enough. Likely to jump onto buddypress at some point.

    #47803
    glycoknob
    Member

    I can confirm this problem – I created a ticket here: https://trac.buddypress.org/ticket/799 – It looks like the unlink code don’t check wether the Images are Identical.

    #47799
    3125432
    Inactive

    Jeff,

    Thank you for taking the time to try and help us! This may seem off topic but every person on this board should take a moment to say “Thank You!” to Burt and Jeff and Andy, and the countless others who work to help solve problems.

    This is a shout out to each and all; could you check your db’s using phpadmin or whatever you use to examine your wordpress/buddypress database and tell me what ‘user_status’ setting you see for the admin, typically ID#1?

    Thanks,

    Brian

    #47793
    gwsa
    Participant

    Burt & Mike –

    Thanks for the prompt reply. Tried upgrading both manually and with the built-in plugin install function. Also tried clearing out the BP tables from the database (the site has not launched yet) hoping that would kick things into shape.

    2.7.1 was the first and only version of WPMU installed, upgraded BP from 1.0 to 1.0.1 and that’s when the themes died. Also, no hyphens in the themes’ directories.

    Went through the code and was able to see what you were talking about in terms of setting the theme_root variable to /bp-themes/, but any idea why it would be doing so outside of member pages?

    If the plugin is active, if I go to /wpmu-themes.php or /wpmu-blogs.php? in the WPMU backend, to activate themes all I see are the BP themes. Correct me if I’m wrong, but before it would also show me themes in the /themes/ directory as well. Is this an intended function? I’d prefer not to move my non BP themes into the bp-themes/ as disabling BP would then kill the site.

    Any help you could provide would be greatly appreciated.

    – Ben

    (ben at gwstudentassociation dot com)

    #47792
    Jeff Sayre
    Participant

    If you are offering paid work, you should post your request here: https://buddypress.org/groups/buddypress-job-board

Viewing 25 results - 64,276 through 64,300 (of 69,041 total)
Skip to toolbar