jazbek (@jazbek)

Forum Replies Created

Viewing 16 replies - 1 through 16 (of 16 total)
  • In reply to: bbSync

    I have it installed on WPMU and had no issues WPMU-related. The only setback is that you have to configure the bbsync setting on every blog in WPMU separately. It wasn’t a big deal for me because I only have 5 blogs on my site, but if you have more, it could be quite cumbersome.

    thanks man. :)

    In reply to: bbSync

    hey fel et al.,

    found another issue which i just spent way too much time trying to figure out.. why is it that anywhere bb_get_option is called, it returns nothing? somehow the bb_get_option function doesn’t have access to the $bb object. I placed the following 2 lines of code in my bbpress functions.php, at the top of the bb_get_option function (after the line that reads global $bb;:

    print_r($bb);
    echo " $option ";

    and i got:

    akismet_key mod_rewrite use_cache active_plugins usercookie usercookie page_topics

    — notice, the requested option names are being echoed, but there’s no output from print_r($bb). why isn’t $bb set in the bb_get_option function?

    this issue is causing bbrepliestext() to output:

    Warning: Division by zero in /httpdocs/discuss/bb-includes/functions.php on line 1465

    if the “Do you want me to load bbPress whenever to make things like links nicer?” option is checked in Options > bbSync. To be specific, the error comes from line 500 in bbsync.php

    thanks, yeah, i am not using bbpress + wordpress on the installation i’m trying to disable posts and registration on.. that’s the old one that’s getting moved to the new site that has wordpress.

    0.8 doesn’t have plugin activation, i guess everything’s just enabled by default (someone correct me if i’m wrong). i’ll have to check out capabilities.php tomorrow (i’m off to a halloween party!). thanks for the help. :)

    Do you know if the Changes Roles Stuff plugin is compatible with bbpress 0.8? i installed it, but it doesn’t seem to be getting called. I have, in my-plugins/custom-roles.php:

    <?php
    /*
    Plugin Name: Changes Roles Stuff
    Plugin URI: http://www.livibetter.com/it/
    Description: Changes Roles Stuff
    */

    function ChangesRolesStuff($roles) {
    // Changes Key Master Role's display name to 'The Boss'
    $roles['keymaster']['name'] = 'The Boss';

    $roles['member']['capabilities'] = array('read' => true);
    $roles['moderator']['capabilities'] = array('read' => true);
    $roles['administrator']['capabilities'] = array('read' => true);
    return $roles;
    }

    add_filter('get_roles', 'ChangesRolesStuff');
    ?>

    but people can still post.

    Thanks! I’ll try it out.

    In reply to: bbSync

    fel, do you think maybe you should add global $bb_cache; to the bbsync.php file instead of telling everyone to add it to their config? wouldn’t it work out of the box that way?

    In reply to: bbSync

    You didn’t scare me, but you made me laugh.. :)

    In reply to: bbSync

    Yeah, I think that did it. I just tested a post as a regular user and it worked without any errors. I am short on time right now so if anyone else has a chance to try it out, that’d be cool. Here’s all I did (all in felsyncpost()):

    1) added $bb_current_user to the globals

    2) commented out line 36

    3) added $bb_current_user = $current_user; in its place.

    Try it out. :)

    In reply to: bbSync

    slex, i just noticed that the code in my reply was screwed up and fixed it just now. i put a link to trac for the line where the user is being set, might want to re-read.

    In reply to: bbSync

    Actually, I figured out when in the felfunctions the “member” capability was being set (you may already know this) – line 36

    I thought that maybe the globals should be changed to

    global $bb_current_user;

    instead of

    global $current_user;

    That seemed to work when I was posting in wordpress as an admin, but I just tried posting with another user account and got an SQL error, so no dice. I have some other stuff to work on right now, but will come back to this later. Maybe the global $bb_current_user needs to be set to the $current_user instead of doing

    bb_set_current_user( $current_user->ID );

    ?

    In reply to: WPMU + 404 error

    my rewrite rules for the document root where wordpressmu is installed are (note, my bbpress is installed in the /discuss directory):

    RewriteEngine On

    RewriteBase /

    #uploaded files

    RewriteRule ^(.*/)?files/$ index.php [L]

    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]

    RewriteCond %{REQUEST_FILENAME} -d [OR]

    RewriteCond %{REQUEST_URI} ^/discuss(.*)$

    RewriteRule . – [L]

    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]

    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]

    RewriteRule . index.php [L]

    then, in my bbpress directory, i put in my .htaccess:

    Options +MultiViews

    if the +MultiViews thing doesn’t work for you, there’s something else you can put in there (only needed if you want to use the pretty-permalinks). Described here:

    https://bbpress.org/documentation/faq/#pretty-permalinks

    In reply to: bbSync

    hey fel,

    thanks for all the work on this plugin, before i found it, i thought i was going to have to write one myself!

    i am currently working on getting it up and running with wpmu, figuring out as i go along. i have a few suggestions, and i’ll compile them once i’m completely done hacking this thing (i’m pretty close).

    In reply to: WPMU + 404 error

    Never mind. I was over-complicating things.. it had nothing to do with WPMU. I hadn’t set the .htaccess file for bbpress up yet.

    In reply to: What is a bozo?

    Er, never mind.. just found a post that explains it. Thanks.

    In reply to: 404 on forum page

    Yep, that’s the same thing. Thanks.

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