Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 62,851 through 62,875 (of 69,044 total)
  • Author
    Search Results
  • #51735
    Jeff Sayre
    Participant

    Are you using the BuddyPress Skeleton Component as the framework with which to code your plugin? If not, you should download it and see how the example code that adds an admin page to WPMU’s backend is written.

    The example code is in bp-example-admin.php.

    #51732
    r-a-y
    Keymaster

    If you have bbPress installed, you should double-check to see if your BP group forums work.

    Post in bbPress in a BP group forum and see if that post appears in BuddyPress and vice versa.

    Also if you used any BP widgets, remove and re-add them since the widgets API in WPMU 2.8 changed.

    Lastly, check to see if your 3rd-party BP plugins work (if you have any installed).

    #51730

    In reply to: BP 1.0.4

    r-a-y
    Keymaster

    Check the trac… but be careful which patches you apply – especially those applicable to groups.

    You’ve been warned! :)

    #51728
    Kunal17
    Participant

    Is there a series of tests that we can perform to make sure that the WPMU+Buddypress upgrades have completed without any damages? WordPress says all upgrades went off well but I am still concerned about finding problems later.

    #51718
    wabugi
    Participant

    I know this post is 8 months old. But maybe there are still people looking for the answer. And here is is:

    open wp-content/plugins/buddypress/bp-blogs/bp-blogs-widgets.php

    Look for these lines:

    <?php if ( !$counter ) : ?>

    <div class=”item-content”><?php echo bp_create_excerpt($post->post_content) ?></div>

    <?php endif; ?>

    Now remove the loop. It should now look like this:

    <div class=”item-content”><?php echo bp_create_excerpt($post->post_content) ?></div>

    The widget will now display an exerpt of every blog post.

    #51714

    When it’s ready, it’ll be available through the BuddyPress/WordPress theme repo, so everyone can have at it.

    #51705
    Jeremy Winter
    Participant

    I found the P2 Theme works really well with BuddyPress, it took a lot of editing to fix up the member pages, but all in all , it was pretty easy project.

    I am using P2 across my entire site here at http://talksounders.com

    #51704
    Korhan Ekinci
    Participant

    @Erich73, Actually members do have their own blogs, I just created another blog at “wall.mysite.com”. I used the bp-community-blogs plugin, so that members of my bp site automatically became authors of “wall.mysite.com” blog. This blog uses P2 theme, so it does actually look like wall or wire whatever you want to name it. They can write infinite number of threads.

    If you wish you can disable blog creation feature for your members from the admin backend, it does not matter.

    @mikhailjon, to emove the blog authors link from the admin bar, go to:

    wp-content/plugins/buddypress/bp-core/bp-core-adminbar.php

    Open bp-core-adminbar.php file and delete these lines:

    // **** "Blog Authors" Menu (visible when not logged in) ********
    function bp_adminbar_authors_menu() {
    global $current_blog;

    if ( $current_blog->blog_id > 1 ) {
    $authors = get_users_of_blog();

    if ( is_array( $authors ) ) {
    /* This is a blog, render a menu with links to all authors */
    echo '<li id="bp-adminbar-authors-menu"><a href="/">';
    _e('Blog Authors', 'buddypress');
    echo '</a>';

    echo '<ul class="author-list">';
    foreach( $authors as $author ) {
    $author = new BP_Core_User( $author->user_id );
    echo '<li>';

    echo '<a href="' . $author->user_url . '">';
    echo $author->avatar_mini;
    echo ' ' . $author->fullname;
    echo '<span class="activity">' . $author->last_active . '</span>';
    echo '</a>';
    echo '<div class="admin-bar-clear"></div>';
    echo '</li>';
    }
    echo '</ul>';
    echo '</li>';
    }
    }
    }

    And this line:

    add_action( 'bp_adminbar_menus', 'bp_adminbar_authors_menu', 12 );

    #51702
    peterverkooijen
    Participant

    Alternative solution: Use the following Javascript to generate a username on typing:

    function copyinputuser()
    {
    var tmp = document.getElementById('field_1').value;
    tmp = tmp.toLowerCase().replace(/^\s+|\s+$/g, "").replace(/[_|\s]+/g, "");
    tmp = tmp.replace(/[^a-z0-9-]+/g, "").replace(/[-]+/g, "").replace(/^-+|-+$/g, "");
    document.getElementById('user_name').value = tmp;
    }

    And then add onkeyup=”copyinputuser()” to the field_1 input tag, which requires an ugly hack in a core file.

    #51700
    peterverkooijen
    Participant

    I see the html for the xprofile input fields is in function get_edit_html in bp-xprofile-classes.php:

    switch ( $this->type ) {
    case 'textbox':
    $html .= '<div class="signup-field">';
    $html .= '<label class="signup-label" for="field_' . $this->id . '">' . $asterisk . $this->name . ':</label>';
    $html .= $this->message . '<input type="text" name="field_' . $this->id . '" id="field_' . $this->id . '" value="' . attribute_escape( $this->data->value ) . '" />';
    $html .= '<span class="signup-description">' . $this->desc . '</span>';
    $html .= '</div>';
    break;

    So I guess I could add onkeyup=”copyinput()” there, but then all xprofile fields will get that. Would that mess up the system? The Javascript refers to the fields by ID.

    According to Jeff Sayre this method will be deprecated in version 1.1, but I need a temporary solution before I make the switch.

    Trying that now…

    #51699
    r-a-y
    Keymaster

    PS. is there a setting to be notified when a comment is made on the forums here?

    RSS is your friend!

    For example, if you wanted to subscribe to this thread, click on the RSS icon or this link:

    https://buddypress.org/forums/rss/topic/mass-messaging-to-bp-members-member-activity-manager

    #51697
    Jeff Sayre
    Participant

    If WPMU + BuddyPress is working fine–that is when you just have BuddyPress installed and activated and no other plugins activated–then this issue is best solved by posting on the WPMU forums.

    As a general rule, though, if you suspect that the issue is plugin related, then you should follow the recommended procedure for tracking down misbehaving plugins. You deactivate all plugins and then reactivate plugins one at a time, each time testing out WPMU to see if it is working. If so, you reactivate the next plugin and so on until you find the plugin that seems to be causing the issue.

    Also, make sure that you are using the most recent plugin for the version of WPMU you’re running. If a plugin is not yet updated to run in the version of WPMU you’ve installed, then that could be an issue. Contact the plugin developer and ask when they plan to update it.

    You also need to check your serve’s log files to see if there are any errors that could help in figuring out the issue. If you don’t know how to do that, your hosting firm can help.

    But please search the WPMU forums first and then post there if you cannot find an answer. This sounds like a plugin conflict and has nothing to do with BuddyPress.

    #51694
    tallydigtalbiz
    Participant

    Thanks Gaetan, I went ahead on bought the one month premium wpmu dev account and grabbed half a dozen plugins for my buddypress site. The mass email plugin worked great. I used it yesterday to announce our September contest.

    Yes DJPaul, achievements is great. I wish there was a way to add our own achievements. Something like that would be very helpful.

    PS. is there a setting to be notified when a comment is made on the forums here?

    #51684
    Paul Wong-Gibbs
    Keymaster

    Oh, there’s a variable which sets what root blog Buddypress runs on. I’m not sure if it works bugfree in the BP 1.0.3 release.

    I’m not at my computer so you’ll have to wait for someone else to post the solution.

    #51679
    alcina22
    Participant

    hi to all the buddypress friends…:)

    I have a question…

    if I would make a 4 columns layout for buddypress, with this new architecture, I do make my change in the parent theme or in the child?

    I think I will need a “sidebar2.php” and 3 in the parent theme? Is it correct?

    sorry for the question, I don’t know if it is exactly on topic, but I found this news when I was on the point to start “my” bptheme…

    so, I hope in your help!

    Thank you! maybe also a link to start with a new bp layout?

    I’m a little lost…

    thank you again!

    ciao :-)

    alcina

    P.S. sorry also for my… “english”!!!

    #51678
    pxlgirl
    Participant

    Ok, I wasn’t aware of that the plugin would be activated side wide, that explains certain behaviour. thnx!

    #51676
    abcde666
    Participant

    @John James,

    when you say:

    “I’m in the process of porting the P2 theme into the new BP 1.1 framework”

    what does that mean ? Will there be a P2-theme for BuddyPress ? Could you please explain ?

    Many thanks,

    Erich

    #51673
    elishevadpw
    Participant

    Never mind I got the log in for the admin wrong.

    My problem is now that I can’t post anything on the forum through buddypress groups.

    r-a-y
    Keymaster

    Add your register_sidebar() functions code from your existing WordPress theme’s functions.php file to your BP Member theme’s functions.php file.

    Then your WordPress sidebar should show up.

    #51670
    Mohit Kumar
    Participant

    ^

    #51659
    Jeff Sayre
    Participant

    I have set up another blog only for buddypress due to create an online community.

    You cannot set up BuddyPress on a single blog. BP is installed as a plugin suite for all of WPMU.

    Each time I activate the plugin on the community’s backend page, it is also gets activated on every other blog I’ve created.

    I’m not sure exactly what you are saying. BuddyPress will display (or list) all blogs, members can even access other members’ blogs, and there is a main sitewide blog. But, BP does not get activated on each blog.

    You could write a custom function that will only display the main blog, filtering out all other members’ blogs, but I would imagine that your members will want to have their blogs accessible to everyone.

    #51656
    abcde666
    Participant

    is there a chance that BuddyPress integrated P2-theme for the wire and forum as a standard ? I think that would be a great thing and would provide a very quick solution in order to have the posts in a threaded version – which would make BuddyPress superb !

    Any thoughts from Andy about this ?

    #51652
    r-a-y
    Keymaster

    Just experienced the OP’s problem.

    I looked into it and found a tentative fix… though a BP dev will need to look at the code.

    In “bp-core/bp-core-notifications.php”, look for the bp_core_notifications_for_user() function.

    Then look for these lines:

    $item_id = ( 1 == $action_item_count ) ? $component_action_items[0]->item_id : false;
    $secondary_item_id = ( 1 == $action_item_count ) ? $component_action_items[0]->secondary_item_id : false;

    Change this to:

    $item_id = $component_action_items[0]->item_id;
    $secondary_item_id = $component_action_items[0]->secondary_item_id;

    I don’t know why there was a check done for only 1 item and then returning false for more than 1… if a BP dev can explain why, that’d be great.

    Let me know if anyone encounters any problems.

    Trac ticket made.

    peterverkooijen
    Participant

    Success! Solution found here.

    The Javascript:

    <script type = "text/javascript">
    function copyinput()
    {
    var tmp = document.getElementById('blog_title').value;
    tmp = tmp.toLowerCase().replace(/^s+|s+$/g, "").replace(/[_|s]+/g, "");
    tmp = tmp.replace(/[^a-z0-9-]+/g, "").replace(/[-]+/g, "-").replace(/^-+|-+$/g, "");
    document.getElementById('blogname').value = tmp;
    }
    </script>

    The customized function:

    function custom_signup_show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) {
    global $current_site;

    ?>
    <div id="blog-details-fields">

    <label for="blog_title">Blog title</label>
    <?php if ( $errmsg = $errors->get_error_message('blog_title') ) { ?>
    <p class="error"><?php echo $errmsg ?></p>
    <?php }
    echo '<input name="blog_title" type="text" id="blog_title" value="'.wp_specialchars($blog_title, 1).'" maxlength="24" onkeyup="copyinput()"/></p>';

    // Blog name
    if ( 'no' == constant( "VHOST" ) )
    echo '<label for="blogname">' . __('Blog Name:', 'buddypress') . '</label>';
    else
    echo '<label for="blogname">' . __('Blog Domain:', 'buddypress') . '</label>';

    if ( $errmsg = $errors->get_error_message('blogname') ) { ?>
    <p class="error"><?php echo $errmsg ?></p>
    <?php }

    if ( 'no' == constant( "VHOST" ) ) {
    echo '<span class="prefix_address">' . $current_site->domain . $current_site->path . '</span><input name="blogname" type="text" id="blogname" value="'.$blogname.'" maxlength="50" /><br />';
    } else {
    echo '<input name="blogname" type="text" id="blogname" value="'.$blogname.'" maxlength="50" /><span class="suffix_address">.' . $current_site->domain . $current_site->path . '</span><br />';
    }

    if ( !is_user_logged_in() ) {
    echo '<p class="help-text">';
    print '(<strong>' . __( 'Your address will be ', 'buddypress' );
    if( 'no' == constant( "VHOST" ) ) {
    print $current_site->domain . $current_site->path . __( 'blogname', 'buddypress' );
    } else {
    print __( 'domain.', 'buddypress' ) . $current_site->domain . $current_site->path;
    }
    echo '</strong>. ' . __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed so choose carefully!)', 'buddypress' ) . '</p>';
    echo '</p>';
    }
    ?>
    <p>
    <label for="blog_public_on"><?php _e( 'I would like my blog to appear in search engines like Google and Technorati, and in public listings around this site.', 'buddypress' ); ?> </label>
    <label class="checkbox" for="blog_public_on">
    <input type="radio" id="blog_public_on" name="blog_public" value="1" <?php if( !isset( $_POST['blog_public'] ) || '1' == $_POST['blog_public'] ) { ?>checked="checked"<?php } ?> />
     <?php _e( 'Yes', 'buddypress' ); ?>
    </label>
    <label class="checkbox" for="blog_public_off">
    <input type="radio" id="blog_public_off" name="blog_public" value="0" <?php if( isset( $_POST['blog_public'] ) && '0' == $_POST['blog_public'] ) { ?>checked="checked"<?php } ?> />
     <?php _e( 'No', 'buddypress' ); ?>
    </label>
    </p>
    </div>
    <?php
    do_action('signup_blogform', $errors);
    }

    What this does:

    When the user starts typing the blog title – limited to 24 chars – the Javascript dynamically fills in the blogname for the URL.

    The user can manually change the blogname if he/she wants. Not sure how that would work out…

    You could probably also hide the blogname field, either through type=”hidden” or CSS. Haven’t tested all these options yet.

    But imho this looks like a very versatile solution. :-)

    Or have I overlooked some critical issues? Comments very much appreciated!

Viewing 25 results - 62,851 through 62,875 (of 69,044 total)
Skip to toolbar