Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 65,951 through 65,975 (of 69,016 total)
  • Author
    Search Results
  • #43335
    Jeff Sayre
    Participant

    @Chris-

    Still thinking here, but a few more questions:

    Are you using the new wp-config.php file that comes with WPMU 2.7.1? Or, did you use and older version?

    If so, there is an additional define line added to WMPU’s config file:

    define('SITE_ID_CURRENT_SITE', 1);

    Also, before installing BuddyPress, but after upgrading WPMU to 2.7.1, did you got to Site Admin > Upgrade in site admin and finish the upgrade?

    #43330
    chriscarter
    Participant

    Just installed trunk 1401 and the problem persists. I feel like the answer is either right under my nose or far beyond anything I would understand. Either way, I’m clueless.

    Again, for the record:

    BP 1.0 RC 2, trunk 1401

    WPMU 2.7.1

    Standard BP member theme at /wp-content/bp-themes/buddypress-member/

    Standard BP home theme at /wp-content/themes/buddypress-home

    .htaccess is in the root

    No errors in log.

    When going to the URL /members, /groups, /blogs, I get the message:

    You do not have any BuddyPress themes installed.

    Please move “/wp-content/plugins/buddypress/bp-themes/” to “/wp-content/bp-themes/” and refresh this page. You can download more themes here.

    If it matters, I’m running WPMU in the subdirectory, not subdomain, way.

    I think that’s all the information I know.

    #43327
    Timschmi
    Participant

    Hello,

    our PmWiki-plugin is now working under:

    http://www.elloandfriends.uni-osnabrueck.de

    You can sign up and test it. Please use hidden wikis, if you are not interested in english linguistics.

    #43326

    In reply to: Translating BuddyPress

    bohdaq
    Participant

    Hi!

    I translated BuddyPress in my own Ukrainian language ;-)

    The post on my blog: http://arys-my.name/?p=445

    The files: http://arys-my.name/wp-content/uploads/2009/04/buddypress-uk-lang-rc1.zip

    thebigk
    Participant

    @John: I’m in a fix now. I already have 1700 user data. I’m running RC1 with WPMU 2.7.

    I’m not able to backup the database because of timeouts …and upgrading without backup is going to be a HUGE risk :(

    I also found out that backups restored through phpMyadmin don’t work!

    Shall I start repainting my decision to use buddypress? Or is there any ray of hope?

    Jeff Sayre
    Participant

    JJJ-

    The party was great! But, it ended last night. ;)

    #43318

    Make sure you have a .htaccess file in the root of your install.

    Make sure which ever theme you’re using as your home theme has the functions.php from the buddypress-home theme. It’s responsible for doing some funky routing of some pages.

    I’m going to check the trunk out now on a fresh install and see if I can duplicate anything.

    I missed this party somehow, but wanted to offer my support.

    Wherever this party moves to, I’m there. :)

    #43315
    chriscarter
    Participant

    Pugins page says I am running BuddyPress 1.0-RC2. /plugins/buddypress/bp-themes/ no longer exists and /bp-themes/buddypress-member/ is confirmed.

    An edit to my initial message: I’m running trunk 1387, not 1381.

    #43311
    chriscarter
    Participant

    Thanks Jeff but none of that seemed to help. No error messages in the log, no other plugins running, everything is where it should be. I didn’t say before but everything was running fine when I was on an older trunk and WPMU 2.7. It was after the upgrade when the problem started. I’m running everything stock and am still getting this message:

    You do not have any BuddyPress themes installed.

    Please move “/wp-content/plugins/buddypress/bp-themes/” to “/wp-content/bp-themes/” and refresh this page. You can download more themes here.

    #43307

    In reply to: buddypress + p2 theme

    Andy Peatling
    Keymaster

    Use the latest trunk, I believe this was a bug I fixed.

    #43306
    Burt Adsit
    Participant

    I thought about the actual utility of pasting it there. One thing it does is get me thinking about the difference between programming for wpmu and wp.

    #43304

    In reply to: buddypress + p2 theme

    tomaszg
    Participant

    In user blog is OK post + comment (ex tom3.jatymy.eu). In main site (jatymy.eu) in Site Wide Activity post appears really after writing comment in user blog.

    #43302

    In reply to: buddypress + p2 theme

    Paul Wong-Gibbs
    Keymaster

    I can’t understand what you are saying. I believe p2 uses posts for each update even thought they look like comments so I think this is working correctly.

    #43295

    In reply to: Dashboard skin

    takuya
    Participant

    dashboard? wp and wpmu has the same dashboard design…

    If u want social networking funtion within the dashboard, there’re wpmu plugins to enable friends and messages rather than using buddypress.

    #43282
    squattingturnip
    Participant

    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.

    #43278
    Burt Adsit
    Participant

    Limiting the creation of blogs to certain user roles such as Site Admin

    This thread describes how to modify the both the admin bar and the member theme navigation functions using bp-custom.php. No core mods needed. It can give you an idea of how to modify any bp function that responds to an action.

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

    #43277
    Burt Adsit
    Participant

    @Tutsie, upgrade to RC2/trunk. That feature was added some time ago.

    @Hyrxx, you’d have to move the logo into the actual <ul><li> structure of the menu itself. Right now it sits outside of that. It’s not really part of the menu as of now. I just finished doing a tutorial on altering the admin bar as part of this thread: https://buddypress.org/forums/topic.php?id=2283

    Believe it or not I’m getting kinda burned out on the admin bar. I know it’s one of the most visible aspects of bp. It is also one of the easiest ways to allow your users to navigate to important areas of your site. I just don’t have time to tackle that right now. I have a project I’m working on that needs attention.

    #43276
    isuru
    Participant

    sry, this is the source code. i have mentioned the functions which i modified only.

    the screen “create new group” appears with added field, the error is given when saving.

    what are the other files to be modified????????

    <?php

    /**********************

    bp-group.php

    **********************/

    function groups_install() {

    /*some code goes here*/

    $sql[] = “CREATE TABLE {$bp->groups->table_name} (

    …………..

    author varchar(50) NOY NULL,

    ………….

    ) {$charset_collate};”;

    /*some code goes here*/

    }

    function groups_check_installed() {

    if(is_site_admin()){

    if ( !$wpdb->get_var(“SHOW TABLES LIKE ‘%” . $bp->groups->table_name . “%'”) || ( get_site_option(‘bp-groups-db-version’) < BP_GROUPS_DB_VERSION ) )

    groups_install();

    }

    /*some code goes here*/

    }

    function groups_screen_group_admin_edit_details() {

    /*some code goes here*/

    if ( $bp->current_component == $bp->groups->slug && ‘edit-details’ == $bp->action_variables[0] ) {

    if ( $bp->is_item_admin || $bp->is_item_mod ) {

    if ( isset( $_POST[‘save’] ) ) {

    if ( !groups_edit_base_group_details( $_POST[‘group-id’], $_POST[‘group-name’], $_POST[‘group-desc’], $_POST[‘group-news’], $_POST[‘author’], (int)$_POST[‘group-notify-members’] ) ) {

    bp_core_add_message( __( ‘There was an error updating group details, please try again.’, ‘buddypress’ ), ‘error’ );

    } else {

    /*some code goes here*/

    }

    /*some code goes here*/

    }

    do_action( ‘groups_screen_group_admin_edit_details’, $group_obj->id );

    bp_core_load_template( ‘groups/admin/edit-details’ );

    }

    }

    }

    add_action( ‘wp’, ‘groups_screen_group_admin_edit_details’, 4 );

    function groups_create_group( $step, $group_id ) {

    /*some code goes here*/

    if ( is_numeric( $step ) && ( 1 == (int)$step || 2 == (int)$step || 3 == (int)$step || 4 == (int)$step ) ) {

    if ( !$group_obj )

    $group_obj = new BP_Groups_Group( $group_id );

    switch ( $step ) {

    case ‘1’:

    if ( !check_admin_referer( ‘groups_step1_save’ ) )

    return false;

    if ( $_POST[‘group-name’] != ” && $_POST[‘group-desc’] != ” ) {

    /*some code goes here*/

    $group_obj->author = stripslashes($_POST[‘author’]);

    /*some code goes here*/

    if ( !$group_obj->save() )

    return false;

    /*some code goes here*/

    }

    break;

    /*some code goes here*/

    }

    }

    function groups_screen_create_group() {

    /*some code goes here*/

    if ( isset( $_POST[‘save’] ) || isset( $_POST[‘skip’] ) ) {

    /*some code goes here*/

    if ( !$group_id = groups_create_group( $create_group_step, $_SESSION[‘group_obj_id’] ) ) {

    /* error message*/

    } else {

    /*some code goes here*/

    }

    /*some code goes here*/

    }

    /*some code goes here*/

    bp_core_load_template( ‘groups/create’ );

    }

    function groups_edit_base_group_details( $group_id, $group_name, $group_desc, $group_news, $group_author, $notify_members ) {

    /*some code goes here*/

    if ( !check_admin_referer( ‘groups_edit_group_details’ ) )

    return false;

    if ( empty( $group_name ) || empty( $group_desc ) )

    return false;

    /*some code goes here*/

    $group->news = $group_news;

    /*some code goes here*/

    if ( !$group->save() )

    return false;

    if ( $notify_members )

    groups_notification_group_updated( $group->id );

    /*some code goes here*/

    }

    function groups_screen_group_admin_edit_details() {

    /*some code goes here*/

    if ( $bp->current_component == $bp->groups->slug && ‘edit-details’ == $bp->action_variables[0] ) {

    if ( $bp->is_item_admin || $bp->is_item_mod ) {

    if ( isset( $_POST[‘save’] ) ) {

    if ( !groups_edit_base_group_details( $_POST[‘group-id’], $_POST[‘group-name’], $_POST[‘group-desc’], $_POST[‘group-news’], $_POST[‘author’], (int)$_POST[‘group-notify-members’] ) ) {

    /*error message*/

    } else {

    /*some code goes here*/

    }

    /*some code goes here*/

    }

    /*some code goes here*/

    }

    }

    }

    //add_action();

    /**********************

    bp-groups-classes.php

    **********************/

    class BP_Groups_Group {

    /*some code goes here*/

    var $news;

    function populate( $get_user_dataset ) {

    /*some code goes here*/

    if ( $group ) {

    /*some code goes here*/

    $this->author = stripslashes($group->author);

    /*some code goes here*/

    }

    }

    function save() {

    /*some code goes here*/

    if ( $this->id ) {

    $sql = $wpdb->prepare(

    “UPDATE {$bp->groups->table_name} SET

    author = %s,

    WHERE

    id = %d

    “,

    /*some code goes here*/

    $this->author,

    /*some code goes here*/

    );

    } else {

    $sql = $wpdb->prepare(

    “INSERT INTO {$bp->groups->table_name} (

    news,

    ) VALUES (

    %s

    )”,

    /*some code goes here*/

    $this->author,

    /*some code goes here*/

    );

    }

    /*some code goes here*/

    }

    }

    /**********************

    bp-groups-filters.php

    **********************/

    add_filter( ‘bp_group_author’, ‘wptexturize’ );

    add_filter( ‘bp_group_author’, ‘convert_smilies’ );

    add_filter( ‘bp_group_author’, ‘convert_chars’ );

    add_filter( ‘bp_group_author’, ‘wpautop’ );

    add_filter( ‘bp_group_author’, ‘make_clickable’ );

    /**********************

    bp-groups-templatetags.php

    **********************/

    /*some code goes here*/

    function bp_group_author() {

    global $groups_template;

    echo apply_filters( ‘bp_group_author’, stripslashes($groups_template->group->author) );

    }

    function bp_group_author_editable() {

    global $groups_template;

    echo apply_filters( ‘bp_group_author_editable’, $groups_template->group->author );

    }

    /*some code goes here*/

    function bp_group_create_form() {

    /*some code goes here*/

    ?>

    <form action=”<?php echo $bp->displayed_user->domain . $bp->groups->slug ?>/create/step/<?php echo $create_group_step ?>” method=”post” id=”create-group-form” class=”standard-form” enctype=”multipart/form-data”>

    <?php switch( $create_group_step ) {

    case ‘1’: ?>

    <label for=”author”>* <?php _e(‘Author’, ‘buddypress’) ?></label>

    <textarea name=”author” id=”author”><?php echo ( $group_obj ) ? $group_obj->author : $_POST[‘author’]; ?>

    </textarea>

    <?php do_action( ‘groups_custom_group_fields_editable’ ) ?>

    <p><input type=”submit” value=”<?php _e(‘Create Group and Continue’, ‘buddypress’) ?> »” id=”save” name=”save”/></p>

    <?php wp_nonce_field( ‘groups_step1_save’ ) ?>

    <?php break;

    /*some code goes here*/

    }

    }

    ?>

    #43275
    hyrxx
    Participant

    is it possible to have the admin menu start on the buddypress image, rather than my account,

    i plan to rewrite all the menu items when i redesign my site, and i want to attach a menu to the buddypress ‘home’ link

    #43274
    Burt Adsit
    Participant

    Back from break. Since I\’ve been creating this stuff out of thin air and it might be a good time to test this. brb.

    Well, something went right today. This seems to work. I had to add a hook for the \’wp_footer\’ action that actually triggers the admin menu. The code in a copy/paste format is available here:

    http://buddypress.pastebin.com/fce770ad

    Copy and paste that into your bp-custom.php file. You can then alter the minimal logic in the function my_can_user_create_a_blog() to determine who and when people can see the \’create a blog\’ menu items scattered throughout bp.

    Let me know how this works for you or if I’ve missed anything.

    #43273

    In reply to: Problem with News CSS

    Tutsie
    Participant

    I am using the orange “Download” version of BuddyPress, I tried switching back to the default theme and it didnt fix it, I deactivated the WP-Forums plugin and that fixed it……I would like to continue to use WP-Forums so why is that plugin affecting it?

    #43268

    In reply to: Still no Avatar fix?

    Jeff Sayre
    Participant

    Do you have any other plugins besides BuddyPress installed? Do you receive any error messages?

    Have you read this post? https://buddypress.org/forums/topic.php?id=2190#post-11864

    #43265
    Burt Adsit
    Participant

    We’ve unhooked the current fns and hooked up our replacement fns. So far they do exactly the same thing as the current fns. We need the ability to decide who gets to see the menu item. I choose to create yet another fn to decide yes or no on blog creation.

    function my_can_user_create_a_blog(){

    if (is_site_admin())

    return true;

    else

    return false;

    }

    That goes in bp-custom.php also. Ya, all it does is check if the current user is the site admin. I’m not sure what you mean by only letting ‘Admins’ create blogs. There are blog admins and one site admin. Everyone with a blog gets to have the wp role ‘administrator’. Not sure what you want so i’ve wrapped the logic in a fn so you can change it to whatever you like.

    Now we need to alter our new replacement fns to skip the display of the menu items if that returns false.

    In our my_blogs_setup_nav() there is a line like this:

    bp_core_add_subnav_item( $bp->blogs->slug, ‘create-a-blog’ __(‘Create a Blog’,

    ‘buddypress’), $blogs_link, ‘bp_blogs_screen_create_a_blog’ );

    We need to wrap it like this:

    if (my_can_user_create_a_blog()){

    ‘bp_core_add_subnav_item( $bp->blogs->slug, ‘create-a-blog’Create a Blog’,’buddypress’), $blogs_link, ‘bp_blogs_screen_create_a_blog’ );

    }

    Also the function my_adminbar_blogs_menu() has code that looks like this:

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

    You need to wrap that the same way:

    if (my_can_user_create_a_blog()){

    ..all that stuff..

    }

    #43264
    Jeff Sayre
    Participant

    To better help you, we need a few more details.

    1. Are there any errors in the log files? If so, what are they?
    2. Are you using any plugins other than BuddyPress? If so, have you tried deactivating them and seeing what happens?
    3. Did you make any changes to the .htaccess file? If so, what were they?
    4. Did you install the .htaccess file in WPMU’s root?

    Here are some other things to do before replying:

Viewing 25 results - 65,951 through 65,975 (of 69,016 total)
Skip to toolbar