Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 9 replies - 26 through 34 (of 34 total)
  • @elemsee

    Participant

    If that means what I hope it does, I offer myself as a life-long fan :)

    And can now gratefully retire from hunting where I can edit the text “Blog registration is currently disabled”

    @elemsee

    Participant

    @jason

    I tried your patch, editing the code in /core/bp-core-adminbar.php to:

    $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : '';

    if ( bp_blog_signup_enabled() ) {
    echo '<li' . $alt . '>';
    echo '<a href="' . $bp->loggedin_user->domain . $bp->blogs->slug . '/create-a-blog">' . __('Create a Blog!', 'buddypress') . '</a>';
    echo '</li>';
    }

    echo '</ul>';
    echo '</li>';
    }

    Does this look correct?

    If so, in layman’s terms, what should the outcome be (I want to be sure it matches up with what I’m seeing.)

    Thanks :)

    @elemsee

    Participant

    Jeff, thank you. I have tried out that option and it doesn’t do what I’d like.

    We, the admins, have set up a primary blog for our organization, as well as “user blogs:” cookbook.oursite.com; travel.oursite.com; etc. Some users will have posting access, others will not. We want user/contributors to have access to those blogs through the admin bar. We also want user-comments reflected on member “activity” pages. We simply do not want members to *create* blogs.

    In component setup, “blog tracking” is responsible for “Tracks blogs, blog posts and blogs comments for a user across a WPMU installation.”

    Disabling blog tracking as you’ve suggested does the following:

    — Removes “blogs” as an admin bar option. Yes, this removes “create a blog” but also removes access to any of the other blogs a user/contributor has permission to post to. It is removed for user/contributors and admins alike.

    — Removes the option from admin bar and member page to access the dashboard or write a new post for blogs you have posting permission — again for both user/contributors and admins.

    — Removes comment tracking: comments any user makes are no longer posted to the “activity” area.

    Respectfully, because I do appreciate anyone taking the time to answer, this is not the solution I’m looking for. Even if I decided to follow this route, and simply ask user/contributors to use the wp-login page — disabling blog tracking also disables comment tracking, which is a function I’d like to keep.

    Sorry for the tl;dr-esque response.

    @elemsee

    Participant

    @Jeff, yes, but it sounds as if your solution removes blogs from the bar altogether. We plan to make subscribers members of blogs that the Admins set up, just prevent them from creating their own blogs. Subscribers should be able to see the other blogs they’ve been added to.

    If I’m understanding the trac ticket, I agree when disabling blog creation in WPMU, the option should disappear from BuddyPress. That was our original hope, but alas no.

    Seeing the “create” option and being directed to a page that says “Sorry, no can do” doesn’t convey a user-friendly atmosphere, I think.

    @jason Your patch sounds as if it might achieve what I’m hoping. I’m earnestly studying my “Learn PHP the quick and easy way” book, so I’ll see if I can properly add this to bp_core-adminbar without … well, without screwing it up. :)

    Thank you so much for answering

    @elemsee

    Participant

    Yeah, my lack of PHP understanding is really getting in my way. I’m trying though.

    Commenting out the following just renders the site blank:

    echo '<li' . $alt . '>';
    echo '<a href="' . $bp->loggedin_user->domain . $bp->blogs->slug . '/create-a-blog">' . __('Create a Blog!', 'buddypress') . '</a>';
    echo '</li>';

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

    This tutorial doesn’t tell me how to identify the lines that specifically refer to “create a blog,” nor would it tell me, obviously, where/how to remove the “create a blog” option which appears on the Member’s profile page.

    The tutorial it refers to is the one I’ve been messing around with all day with no satisfying results. :/

    There seems to be no where listed how to identify the items to comment out, as they must be so obvious to a more skilled person.

    Keeping looking….

    @elemsee

    Participant

    Thank you socialpreneur. Originally I was hoping to accomplish the “limit to admins” feature, but I’ll settle for this. I’d only found info about hiding the admin bar, but I’ll take another look. The admin bar is not the only place where “create a blog” appears, but perhaps that is addressed in tandem to the admin bar issue.

    It would be easier all around if it was a feature that could be turned on and off, but in absence of that, I’ll take this!

    @elemsee

    Participant

    Ok, so, haha, given the lack of responses, I’m digging my way through this by rewriting Burt’s tutorial step-by-step so I can “get it.”

    Alas, the simplest thing is tripping me up. I cannot find, in any BuddyPress directory, a file called bp-custom.php

    Am I creating this file?

    … continuing to puzzle it out while hoping someone takes pity on me, lol

    @elemsee

    Participant

    People keep referring to turning certain components off, but as far as I can tell — by searching these forums and by muddling through the admin — there is no way to just “turn off” blogs so that the blog option disappears. Vanishes. As in there is no clicking on create a blog only to get a “blogs have been disabled” message. That just looks messy and like a mistake.

    Maybe I’m wrong? I’d love it if I am.

    @elemsee

    Participant

    I’m usually capable of working my way through a tutorial and learning something by the end. But this post is of a magnitude that I’m not sure I know enough to tackle all the steps. Is each of your posts, Burt, a step-by-step instruction on how to accomplish Ben’s request, or do you revise your answers along the way?

    I’d like mostly what Ben is asking for. I want to use BuddyPress as a member directory. I don’t wish for anyone to make blogs through MU/BuddyPress other than my staff. I don’t want the “create a blog” option to appear anywhere. Not in the member profile, not in the tool bar. Essentially I want the option not to exist for users. Will the tutorial above show me how to do that?

    Starting from instructions in post one, I’m finding that changing the admin setting from “only user account can be created” to “only logged in users can create new blogs” results in a “you must login to create a blog,” which takes me to the wordpress sign-in page before I have even registered.

    The “only user account” setting generated what I would like to have happen, a signup screen sans “gimme a blog.”

    Please forgive my being an ignoramus and let me know if I should patiently work my way from top to bottom, or if there is another solution outlined in a different post.

    Thanks!

Viewing 9 replies - 26 through 34 (of 34 total)
Skip to toolbar