Skip to:

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • squattingturnip


    Thank you, thank you, thank you.

    Your code works like a charm, and you have taught me a great deal about how BuddyPress (and WPMU) works. I really, really appreciate it.

    Incidentally, the changes I made are as follows, in case your or anyone else is curious:

    global $current_user;
    if ( isset( $roles['administrator'] ) || isset( $roles['editor'] ) || isset( $roles['contributor'] ) || is_site_admin() )

    was added to the “my_can_user_create_a_blog” function. Kind of an odd set of conditions, but, well…whatever. I\’m going to do a little bit of digging around later on, and see if I can condense that down a little (initially I’d planned to have it as a sort of “if user level is great than x” thing, but my cursory examination didn’t turn that up, so this is a decent stopgap for now).

    I also added an if statement that draws on the “my_can_user_create_a_blog” function for the “my_blogs_setup_nav” function, so that now everything it does is wrapped thusly:

    if (my_can_user_create_a_blog()==true) {

    and changed “is_user_logged_in” in the “my_adminbar_blogs_menu” function to call “my_can_user_create_a_blog” instead.

    Again, I can’t thank you enough. I only hope some day I can help someone out the way you’ve helped me.



    Looks like this post hasn’t been active for a month or so, but I’ll put this here anyway… I wanted to do the same thing you do, but without loosing the completely widgetized front page, so I wrote a new widget of my own by pretty much just copying the BP Recent Posts widget and modifying one line so that it displays the whole post, instead of just the excerpt.

    The line in questions was

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

    which I changed to

    <div class="item-content"><?php echo $post->post_content ?></div>

    If you’d like to use the plugin I made to load that widget, so I didn’t have to modify the core files, you can get it here: Just download that and make it .php instead of .txt, and you should be good to go!

Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar