Skip to:
Content
Pages
Categories
Search
Top
Bottom

BuddyBar for bbPress

Viewing 25 replies - 101 through 125 (of 153 total)

  • Rohan Kapoor
    Participant

    @rohan_kapoor

    Anyone good with .htaccess rewrite rules?

    I stuck the following in a blank .htaccess but it doesn’t seem to be executing.

    RewriteEngine On

    RewriteCond %{HTTP_HOST} ^[^.w{3}]+.zyrot.com$
    RewriteRule ^$ %{HTTP_HOST} [C]
    RewriteRule ^([^.w{3}]+).zyrot.com$ http://wpmu.zyrot.com/forums/ [R=301,L]

    What I’m trying to do is get .htaccess to execute forums.zyrot.com as wpmu.zyrot.com/forums/

    Thanks

    EDIT: I managed to get it work a little like this:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^[^.w{3}]+.zyrot.com$
    RewriteRule ^$ %{HTTP_HOST} [C]
    RewriteRule ^([^.w{3}]+).zyrot.com$ http://wpmu.zyrot.com/forums/ [R=301,L]
    </IfModule>

    My only problem is that i want it to appear as forums.zyrot.com. Any ideas people?


    matthijsv
    Participant

    @matthijsv

    Some more debuggin for the admin bar in combination with Transposh(and maybe some other WP-plugins that manipulate output in a special way)

    if(!strpos($_SERVER['SCRIPT_NAME'],'forums/rss.php') and !strpos($_SERVER['SCRIPT_NAME'],'admin')) {
    if ( !defined( 'ABSPATH' ) & !defined( 'XMLRPC_REQUEST' )) {
    define( 'WP_USE_THEMES', false );
    //
    // You will need to get the ABSOLUTE path to this file |
    // \|/
    include_once( 'public_html/wp-blog-header.php' );
    header( "HTTP/1.1 200 OK" );
    header( "Status: 200 All rosy" );
    }
    }


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    That would disallow the buddybar in the admin area, which sort-of goes against what the point of this plugin is in a way.

    There are lots of variations of how this could work though, and that is certainly one of them. Thanks for helping out!


    Mohit Kumar
    Participant

    @mohitkr05

    BP bar not working…!!!

    This is what i did

    I had a full integration – means i had copied all the keys from wp- config to bb-config accordingly.

    I had done all other settings so that a discussion forum made in buddypress is shown in bbpress.

    I uploaded the buddypress bar plugin to the my-plugin directory.

    Added the code into bb-config

    with the absolute path of FILE i.e include_once( ‘/public_html/wp-blog-header.php’ );

    activated the plugin

    nothing happened!!??

    Did i miss any step??


    Rohan Kapoor
    Participant

    @rohan_kapoor

    Can you please copy and paste your bb-config.php file with the passwords removed. It would also be appreciated if you could link us to your site.

    Thanks


    nicholaszen
    Participant

    @nicholaszen

    I think I really messed something up… I get the following error:

    Fatal error: Cannot redeclare update_user_status() (previously declared in Imy\domain\wp-admin\includes\mu.php:417) in my\domain\bb-includes\functions.php on line 1249

    Someone had a similar thing going on? Hope someone could help me out… Thanks!


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Nicholaszen, are you using a 0.9x version of bbPress? If so, this plugin will not work for you.

    In the 1.0.1 version of bbPress, that function is in functions.bb-users.php. I haven’t tried this with 1.0.3 yet myself, but I’ll be sure to give it a spin tomorrow.


    Mohit Kumar
    Participant

    @mohitkr05

    here is my wp-config with db details and auth key removed

    <?php

    if ( !defined( ‘ABSPATH’ ) & !defined( ‘XMLRPC_REQUEST’ )) {

    define( ‘WP_USE_THEMES’, false );

    include_once( ‘/public_html/wp-blog-header.php’ );

    header( “HTTP/1.1 200 OK” );

    header( “Status: 200 All rosy” );

    }

    define( ‘BBDB_NAME’, ‘database here’ );

    define( ‘BBDB_USER’, ‘user here’ );

    define( ‘BBDB_PASSWORD’, ‘pass here’ );

    define( ‘BBDB_HOST’, ‘localhost’ );

    define( ‘BBDB_CHARSET’, ‘utf8’ );

    define( ‘BBDB_COLLATE’, ” );

    define(‘BB_AUTH_KEY’, ‘


    ‘);

    define(‘BB_SECURE_AUTH_KEY’, ‘


    ‘);

    define(‘BB_LOGGED_IN_KEY’, ‘


    ‘);

    define(‘BB_NONCE_KEY’, ‘


    ‘);

    define(‘BB_AUTH_SALT’, ‘


    ‘);

    define(‘BB_LOGGED_IN_SALT’, ‘


    ‘);

    define(‘BB_SECURE_AUTH_SALT’, ‘


    ‘);

    auth keys here ^ same as that in wp-config

    $bb_table_prefix = ‘bn_’;

    define( ‘BB_LANG’, ” );

    $bb->bb_xmlrpc_allow_user_switching = true;

    ?>


    Mohit Kumar
    Participant

    @mohitkr05

    @Rohan my website is http://buzzlyf.com

    and forums are at http://buzzlyf.com/forums

    Thanks for help


    r-a-y
    Keymaster

    @r-a-y

    John James Jacoby wrote:
    I haven’t tried this with 1.0.3 yet myself, but I’ll be sure to give it a spin tomorrow.

    Just upgraded WPMU to 2.8.1 and also upgraded BP to 1.0.3 and applied the __init / __construct fix to wpmu-functions.php (https://trac.mu.wordpress.org/changeset/1875).

    And I’m up and running with the BuddyBar.

    Man upgrading isn’t fun!


    Rohan Kapoor
    Participant

    @rohan_kapoor

    @Mohit Kumar: After reviewing your bb-config.php it appears I need some more information. Are you running WPMU 2.7.1 or 2.8.1?

    @r-a-y: I tried and ended up nuking the whole site. I had to restore all the backups!


    nicholaszen
    Participant

    @nicholaszen

    JJJ, my bad.. you’re right.. I was running 0.9x.. Now I upgraded to 1.0.1, but now I got a white screen.. Like R-A-Y says.. upgrading really isn’t any fun..!


    Rohan Kapoor
    Participant

    @rohan_kapoor

    @Nicholaszen: see if you can get to /bb-admin/ if you can, then the chances are that the theme files got corruputed.. Just have it change the theme.


    Mohit Kumar
    Participant

    @mohitkr05

    its 2.7.1 !!


    nicholaszen
    Participant

    @nicholaszen

    @i Rohan: admin get me the same lovely white screen.

    Edit:

    My apache acces log shows the following: 127.0.0.1 – – [16/Jul/2009:19:31:35 +0200] “GET /forum/ HTTP/1.1” 200 –


    Rohan Kapoor
    Participant

    @rohan_kapoor

    @Mohit Kumar: I know this has to do with cookie integration but I have found that sometimes the buddybar doesn’t work if this code isn’t in your bb-config.php file if you are using WPMU 2.7.1:

    //WordPress MU Cookie Integration
    define( 'WP_AUTH_COOKIE_VERSION', 1 );

    If you could also post you WPMU wp-config.php file without the passwords and usernames it would be helpful as well.

    @Nicholaszen: When I made that upgrade, I ended up having the same problem. I moved all of the plugins from /my-plugins/ to /bb-plugins/ and the themes from /my-themes/ to /bb-themes/. That managed to reset the site enough so that I could access the forum’s admin and from there I could re-activate the theme. Try that and let us know.


    Mohit Kumar
    Participant

    @mohitkr05

    @ rohan its my wp-config

    define(‘DB_CHARSET’, ‘utf8’);

    define(‘DB_COLLATE’, ”);

    define(‘VHOST’, ‘no’);

    $base = ‘/’;

    define(‘DOMAIN_CURRENT_SITE’, ‘buzzlyf.com’ );

    define(‘PATH_CURRENT_SITE’, ‘/’ );

    define(‘SITE_ID_CURRENT_SITE’, 1);

    define(‘BLOGID_CURRENT_SITE’, ‘1’ );

    define(‘AUTH_KEY’,

    define(‘SECURE_AUTH_KEY’,

    define(‘LOGGED_IN_KEY’,

    define(‘NONCE_KEY’,

    define(‘AUTH_SALT’,

    define(‘LOGGED_IN_SALT’,

    define(‘SECURE_AUTH_SALT’,

    $table_prefix = ‘wp_’;

    define (‘WPLANG’, ”);

    if( $base == ‘BASE’ )

    die( ‘Problem in wp-config.php – $base is set to BASE when it should be the path like “/” or “/blogs/”! Please fix it!’ );

    define( “WP_USE_MULTIPLE_DB”, false );

    define( ‘WP_AUTH_COOKIE_VERSION’, 1 );

    if ( !defined(‘ABSPATH’) )

    define(‘ABSPATH’, dirname(__FILE__) . ‘/’);

    require_once(ABSPATH . ‘wp-settings.php’);

    ?>


    nicholaszen
    Participant

    @nicholaszen

    @Rohan: Nope, that trick didn’t work.. :(

    But if I delete the following from the bb-config file the site shows up again:

    if ( !defined( ‘ABSPATH’ ) & !defined( ‘XMLRPC_REQUEST’ )) {

    define( ‘WP_USE_THEMES’, false );

    include_once( ‘my/domain/wp-blog-header.php’ );

    header( “HTTP/1.1 200 OK” );

    header( “Status: 200 All rosy” );

    }


    Rohan Kapoor
    Participant

    @rohan_kapoor

    @Mohit Kumar: you are missing the cookie hash, etc. in your wp-config.php in addition to the lines I told you to add to your bb-config.php. Install the plugin https://wordpress.org/extend/plugins/bbpress-integration/

    to wpmu and add the code it tells you to to your wp-config.

    @Nicholaszen: is your wpmu site disappearing or your bbpress site? or both?


    nicholaszen
    Participant

    @nicholaszen

    @Rohan: Only the bbpress site dissapears.. The WPMU side has no problems.. But the bbpress site only dissapears with the code above.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Those of you getting white screens without any ability to see why, need to check your server error logs to figure out what’s killing it. 9 times out of 10 it’s probably an out of memory on the server side of things, as php probably isn’t getting enough memory allocated to it.


    nicholaszen
    Participant

    @nicholaszen

    @JJJ: This is the only thing I see in my logs.. If I loop it up, it says that it is ‘moved permanently’.. Does this mean I did something wrong?

    [17/Jul/2009:10:44:31 +0200] “GET /my/forum HTTP/1.1” 301 236

    [17/Jul/2009:10:44:31 +0200] “GET /my/forum/ HTTP/1.1” 200 –


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Not sure Nicholaszen. Since there’s a lot of activity going on with BuddyPress patches and MU changes, I’m going to hold off chasing any ghosts on this plugin until the next stable versions come out.

    I’m keeping an eye on this daily so I’m still supporting it, but there won’t be a new version until the next versions of MU and BP come out, unless any major flaws or bugs are uncovered.


    Unsal Korkmaz
    Participant

    @unsalkorkmaz

    i am using that plugin in http://yerleske.net/pano/

    i want to use user’s avatars in forum pages too.. i tho its possible because we are calling buddypress with this plugin right?


    r-a-y
    Keymaster

    @r-a-y

    unsalkorkmaz, that’s a totally different topic.

    Please look at this thread:

    https://buddypress.org/forums/topic/bp-avatars-and-nothing-else-in-bbpress-possible#post-17431

Viewing 25 replies - 101 through 125 (of 153 total)
  • The topic ‘BuddyBar for bbPress’ is closed to new replies.
Skip to toolbar