Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'forum'

Viewing 25 results - 19,051 through 19,075 (of 20,260 total)
  • Author
    Search Results
  • Burt Adsit
    Participant

    Here’s two functions that change the way the admin bar displays user blogs.

    // sort array of blog objs by $blog->role according to the order of $blog_roles
    // roles not included in $blog_roles array will not be displayed
    function filter_blogs_by_role($blogs){
    global $bp, $blog_roles;

    $blog_roles[] = __( 'Admin', 'buddypress' );
    $blog_roles[] = __( 'Editor', 'buddypress' );
    $blog_roles[] = __( 'Author', 'buddypress' );
    $blog_roles[] = __( 'Contributor', 'buddypress' );
    $blog_roles[] = __( 'Subscriber', 'buddypress' );

    // get roles
    foreach ($blogs as $blog){
    $blog->role = get_blog_role_for_user( $bp->loggedin_user->id, $blog->userblog_id );
    }

    // eliminate roles not in $blog_roles
    foreach ($blogs as $key => $value){
    if (!in_array($value->role, $blog_roles))
    unset($blogs[$key]);
    }

    // sort by $blog_roles sequence if there are any left
    if ($blogs){
    usort($blogs, 'compare_roles');
    }

    return $blogs;
    }

    // i love php.net. stolen from php.net usort manual, user mkr at binarywerks dot dk's
    // contribution for priority list comparision function.
    function compare_roles($a, $b){
    global $blog_roles;

    foreach($blog_roles as $key => $value){
    if($a->role==$value){
    return 0;
    break;
    }

    if($b->role==$value){
    return 1;
    break;
    }
    }
    }

    You can put those two fns in your bp-custom.php file. The fn filter_blogs_by_role() does the work and the fn compare_roles() is just a helper fn.

    filter_blogs_by_role() takes the array of blog objects returned by the fn get_blogs_of_user() in the admin bar’s bp_adminbar_blogs_menu() fn. It first gets all the roles for the user’s blogs and then removes all of the roles that are not listed in the $blog_roles array. That way you can eliminate some roles such as ‘Subscriber’ if you want. Next it sorts the blogs by the sequence of roles defined in $blog_roles. However you list them in that array is how they will display in the admin menu.

    1) So, put those two fns in bp-custom.php

    2) Arrange the roles defined by $blog_roles in the fn filter_blogs_by_role() however you want the roles to appear in the menu

    3) Comment out the roles you do *not* want to appear in the menu

    4) Put the call to filter_blogs_by_role() on line 133 in bp-core-adminbar.php like this:

    if ( !$blogs = wp_cache_get( 'bp_blogs_of_user_' . $bp->loggedin_user->id, 'bp' ) ) {
    $blogs = get_blogs_of_user( $bp->loggedin_user->id );
    wp_cache_set( 'bp_blogs_of_user_' . $bp->loggedin_user->id, $blogs, 'bp' );
    }

    $blogs = filter_blogs_by_role($blogs);

    Just in case the forums trash the code I also stuck it here: http://pastie.org/445729

    #42583
    jfcarter
    Participant

    When I go into bbpress admin settings, there is no option to enable xmlrpc and pingbacks. Why and what should I do?

    1. So far, WPMU, BuddyPress and bbpress have installed.

    2. I can create forums in Groups on BP, but I can\’t see them on bbpress

    3. When I try to enter a post in the Group forum in BP, I get the red square and error message: “There was an error posting that topic.”

    4. Also, even if I’m logged in as admin in BP (which is mapped to Keymaster in bbpress), I still have to sign in again when I reach the bbpress forums.

    5. This leads me back to: xmlrpc and pingbacks (why are the checkboxes not visible?)

    #42575
    mStudios
    Participant

    yeah, I installed about 6+ times and made it work in the end, but don\’t know what the difference is to the 5 times before that. I was going to write down the exact steps I used but then it was so late and promptly forgotten the next day and now it\’s a week later and gosh, no way to exactly trace back… the only thing I remember was that I simplified and actually did LESS than some of the posts suggest. also, as with the alpha I was constantly getting \’table not found\’ error regarding the user table during install, so I ended up not going with 2 db\’s but added this one to the wpmu db – no more error during install and smooth sailing between the two (except that I still need to put the cookies in, as it will not remember as whom I\’m logged in or if at all when switching between buddypress and bbpress… as an admin and a regular user this can become tricky).

    not very helpful at this point (sorry about that), I know, and I dread the time that I will have to go through that setup again, but at least I made it work on this one :-)

    #42573

    It’s neither actually anymore.

    It involves “deep integration” on the bbPress side, including WordPress/BuddyPress inside bbPress, and then making a new theme for bbPress that matches. :)

    Trent and I are working on a comprehensive walk-through on how to do this soon.

    #42572
    gaetanbuddypress
    Participant

    (When I’ve activated the share users data base between BP and bbPress, the bbpress admin panel desapeared, even if i add /bb-admin. Next, when I log in bbPress, as user or as admin…, I can’t write a post or start a new topic anymore).

    I don’t know if there is a link between everiything…?

    #42570
    Jeff Sayre
    Participant

    First, please read this entire thread (all the posts) at least two times through before starting: https://buddypress.org/forums/topic.php?id=1994

    Then read through these links:

    https://codex.wordpress.org/Upgrading_WPMU

    https://buddypress.org/forums/topic.php?id=1285#post-9999

    http://subversion.tigris.org/faq.html

    https://codex.buddypress.org/developer-docs/installing-through-svn/

    Once you’ve done that, have a SVN client installed, and feel confident, go back to the first link in this post and follow the instructions.

    From where do I get the most recent versions?

    Those links are provided in the detailed instructions contained in the first link above.

    #42567
    Jeff Sayre
    Participant

    Read this thread and see if that helps:

    https://buddypress.org/forums/topic.php?id=1651

    #42564
    gaetanbuddypress
    Participant

    And no problem, don’t hesitate to let me know if it is not clear enough!;-)

    Jeff Sayre
    Participant

    There was a recent change (Changeset 1295) to bp-blogs.php that stopped spam comments from being recorded in activity streams.

    As Burt points out, newer versions of BP no longer have individual user activity tables, but I suppose this bug combined with an older version of BP could expose you to significant spam problems. I cannot verify this without looking at the older code. It is just a hunch.

    I would recommend taking your site offline (if in production) and then upgrading your installation following the instructions found here: https://buddypress.org/forums/topic.php?id=1994

    #42530
    Oliver Wrede
    Participant

    Update:

    I seem to have an issue related to the WPMU-Version.

    On the page https://buddypress.org/forums/topic.php?id=1994 I overlooked the “Please also make sure you are not using the MU trunk, but the 2.7 branch.” note — I was using the WPMU trunk. So I “downgraded” to the 2.7 branch.

    Now I have “Activate XYZ plugin sitewide”-Options in the Plugin area. I still have a single BP-Plugin though. I activated the BP Plugin sitewide. And it seems to worl fine.

    But I ran into following problem:

    I needed to update “/wp-includes/capabilities.php” to the one of the trunk-Version. The one of the 2.7-branch gave me this error on all pages:

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in
    /www/wpmu/wp-includes/capabilities.php on line 537

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in
    /www/wpmu/wp-includes/capabilities.php on line 537

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in
    /www/wpmu/wp-includes/capabilities.php on line 539

    Discussion is not continuing on https://buddypress.org/forums/topic.php?id=1994

    #42525
    Oliver Wrede
    Participant

    Update:

    I was wondering about BP behaving like a ordinary plugin – so I re-read the forum post regarding the movement from /mu-plugins/ to the /plugins/ directory (see https://buddypress.org/forums/topic.php?id=1994)

    I stumbled over the part “enable each plugin but CORE first” there. In my context the BP plugins shows up as a single ordinary plugin. I can’t “enable CORE first” I wonder if that is realted to the issue I see here…

    #42523
    Oliver Wrede
    Participant

    I am confused by step #4:

    Log in as a site admin, and head to the \”Plugins\” admin panel. You will need to activate each plugin (activate CORE first).

    In my context the BuddyPress plugin in shows up as a single plugin – I can’t enable “each plugin and activate CORE first”.

    I also seem to have the problem, that all my MU sites are “out of the BP context” now. Their activity/comments do now show up in the global activity stream anymore until I manually enable the (singular) BuddyPress-Plugin on each MU site. (see this thread here https://buddypress.org/forums/topic.php?id=2122).

    Odd….

    #42489
    mypop
    Participant

    @johnjamesjacoby

    How did you create that page: http://delsolownersclub.com/discussions

    That’s exactly what I want to do on my site.

    I’ve got @Burtadsit’s bbGroup plugin up and running.

    How did you integrate it into your buddypress theme?

    Is it a ‘page’ in the root blog or a special page?

    Thx, Gordon

    #42486
    nicolagreco
    Participant

    i’m doing that via xmlrpc, i’ll update you asap on that :)

    nicolagreco
    Participant

    If you want moderators for wpmu, add new admins or new collaborators to your mu

    if you want moderators for group forums, you’ve to add new moderators in bbpress (or vb)

    #42476

    In reply to: Add fields to wp_users

    peterverkooijen
    Participant

    Thanks Jeff. Those function reference pages look very useful. I’ll dive back into PHP hell next Saturday…

    I’ve been struggling with this crap, including html/css, javascript, etc., since about 2002. I usually want what I think are basic requirements, like in this case a pretty straightforward members table. So far I’ve had most luck stitching together simpler PHP scripts that I could sort of follow.

    The more mature packages, like WordPress, are great for teens/tweens that want to add widgets and play around with templates, but they drop the ball on some basic grown-up business requirements and are much harder to customize unless you\’re a hardcore programmer.

    I can’t afford to spend the time to become a programmer. I’d hire a 3rd party developer if I could get a clearer picture of what I need and what’s possible in WP. I did do Google searches and have posted lots of related questions on the WP and WPMU forums.

    BTW, an intern from NYU Polytechnic was supposed to work on my project. He was a real PHP programmer, but had never heard of WordPress and seemed to know even less than I did.

    #42474

    In reply to: Add fields to wp_users

    Jeff Sayre
    Participant

    Peter-

    I realize that you are not getting the answers you desire. You must have a sufficient understanding of and comfort level with PHP before you can delve too deeply into hacking your own solutions or coding your own theme templates. Otherwise, you need to use the stock WPMU and BuddyPress install and then customize with any plugins and 3rd-party themes that may be useful.

    Since we do not have any idea of your particular coding skills, we are trying to point you in the right direction. Please realize that beyond a certain point, we cannot help you write your own custom code.

    We all started at the beginning when it came to coding and then had another learning curve when it came to understanding the inner workings of WordPress and BuddyPress. It can be frustrating along the way but it is indeed possible to accomplish!

    Here are a few more tips:

    1. Since you do seem to be wanting to group all user data within stock WP tables, you should search the WP and WPMU forums and ask your questions there
    2. Visit these WP Codex pages to help shed more light:
    3. Google for tips on learning data-driven PHP coding
    4. Hire a 3rd-party developer who can do the work: hacking files directly or create a plugin that will accomplish what you’re after

    Please hang in there and don’t give up hope.

    #42450
    Jeff Sayre
    Participant

    I assume you’re using the Recent Comments widget. That is a WPMU widget and not specifically a BuddyPress Widget.

    You have three options:

    • Search the WordPress plugin repository to see if someone has created a plugin to do just that
    • Search the forums on the WPMU site for an answer. If you don’t find one, then post a question.
    • Hack WPMU’s widgets.php file yourself to provide the necessary functionality

    Anointed
    Participant

    I just had the ‘bleeding edge’ upgrade completed a few hours ago. Prior to that I am unsure what vs. I was using.

    As to admin rights:

    Is it possible to have a usergroup that can ‘moderate’ the posts on any forum but do nothing else like touch the plugins, themes etc?

    I’d like to have 2 groups,

    admins that can erase posts

    mods that can ‘suspend’ posts or unpublish them, and have a message sent to the site admin that the content was inappropriate etc… Kind of how like vbulletin does things. We have warning systems, mods, admins, super-admins, etc… I am able to create custom groups with custom permissions etc, to allow them to do only things I want. This has saved my butt more times than I care to talk about.

    As to deleting the user:

    For the most part I wouldn’t want to be that drastic.

    I have many people that come to the forums, and post stuff that I don’t agree with, or don’t really believe belongs on my site. They are usually well meaning people, but have much lower standards than I try to keep up with on my site. These people I usually just make part of a separate group, with very few permissions, like only able to post in certain forums, no pm system etc….

    Usually I can ‘work’ with them, to let them know what I found offensive, and many times the problem does not come up again. If I had simply banned them, then very few people would survive on my site.

    There are the people that just come in to spam our site from time to time. Those people I have no problem simply deleting.

    I hope what I am trying to express makes sense.

    #42415
    Burt Adsit
    Participant

    – It is possible, in the profile, to show the posts list and favorite topics that the user added of the blog and forum

    Everything except the above is a standard part of bp.

    dainismichel
    Participant

    From my perspective, this thread continues the topics brought up here nicely:

    https://buddypress.org/forums/topic.php?id=1632&replies=4#post-10361

    #42373
    Burt Adsit
    Participant

    There is a job board in the dev section. Nothing but a wire now. https://buddypress.org/groups/buddypress-job-board

    Emails go out to all those who are members of that group. You could also post a topic here since the job board doesn’t have a forum yet. Post it here and one of the mods will close it after posting. People can contact you through your profile in a PM.

    #42365
    Burt Adsit
    Participant

    See this topic for info about that: https://buddypress.org/forums/topic.php?id=1994

    #42317

    In reply to: Pagination function

    Jeff Sayre
    Participant

    Read this thread and see if the issue you’re experiencing is the same. If so, go to the bottom for the solution.

    https://buddypress.org/forums/topic.php?id=2051

    How do I find my old posts/quetions in this forum?

    To locate your forum posts, go to the main forum page and look for the link at the top that says, “You can also view your started and replied topics.”

    #42307
    Erwin Gerrits
    Participant

    All you have to do is create a php file called “add_forum_to_menu.php” with the following code:

    <?php
    function add_forums_to_main_menu() {

    $class = (bp_is_page('forums')) ? ' class="selected" ' : '';

    echo '<li ' . $class. '><a href="' . get_option('home') . '/forums"
    title="' . __( 'Forums', 'buddypress' ) .'">' .
    __( 'Forums', 'buddypress' ) .'</a></li>';

    }

    add_action('bp_nav_items','add_forums_to_main_menu');
    ?>

    and put it in the mu-plugins directory. Make sure the “/forums” path in the above code points to your forum directory (mine is at http://www.domain.com/forums)

Viewing 25 results - 19,051 through 19,075 (of 20,260 total)
Skip to toolbar