John James Jacoby (@johnjamesjacoby)

Forum Replies Created

Viewing 25 replies - 26 through 50 (of 1,967 total)

  • John James Jacoby
    Keymaster

    @johnjamesjacoby

    Enable the Fancy Editor in your forum settings.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Unfortunately, this won’t scale very well. Notifications and Favorites are stored in a serialized array is usermeta, and keeping track of every topic will eventually slow things down significantly.

    Instead, I’d filter `bbp_is_user_subscribed` and invert the results. That way you’re subscribed to all topics, and bbPress only stores the topics your users are not subscribed to.

    Make this into a plugin:

    `function invert_subscribe( $is_subscribed ) {
    return ! $is_subscribed;
    }
    add_filter( ‘bbp_is_user_subscribed’, ‘invert_subscribe’ );`


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Sounds like a conflict somewhere. bbPress should be redirecting back to the exact same topic/reply that each user creates, similar to how it does here.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Check Settings > Forums, and make sure there’s no trailing slashes on any of your settings. We can trim off the trailing slash when you save your settings, though it may have negative consequences if anyone actually relies on that.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    @kannued – Also, please include links to your site.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Depends what the boolean function is comparing. Can you open a new topic in the forums here, and be more specific?


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Sigh. No; first I’ve heard of it, and totally lame that’s happening.

    Do you mind opening a ticket over at http://bbpress.trac.wordpress.org?


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Looks like it did change, but only for the positive in this regard:

    http://bbpress.trac.wordpress.org/changeset/4336


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    My guess is no; or that the default option value changed in 2.3 (I don’t recall) and there is no option in the DB.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Did you modify files in the bbPress plugin folder? If so, they get wiped out on every update, which is why the theme compatibility feature exists. (Do a search for it in the codex to learn more.)


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    This CSS rule is getting in the way:

    `#content .post ul li,
    #content .page ul li,
    #content article ul li,
    .catalyst-widget-area ul li {
    margin: 0 0 0 20px;
    list-style-type: square;
    }`

    You`ll probably want to make these rules more specific to your needs, or write a bit of CSS to reset these in your forums.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Calling is_user_logged_in() in a plugin’s init file causes bbPress to error

    Plugins shouldn’t be calling any user related functions until after the user is actually loaded. The soonest place you can do this is on the ‘init’ action; doing it sooner is `_doing_it_wrong()` and will cause other hidden issues in your installation later. bbPress provides that debug notice to let you know your approach was incorrect.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Categories don’t lump all child topics together into one view. Rather, they are a container for other subforums. It’s more odd that the forums aren’t appearing. Maybe that part was removed in one of your custom templates?


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Fixed in 2.3 branch and trunk. Thanks for the report.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Huh. This looks like a bug to me. Moderators should still have access to view a trashed topic, just like they can see trashed replies in the topic itself.

    I’ll have this fixed in 2.3.1.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    This appears to be working for me, too.

    When you visit domain.com/topics, what happens?


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Not entirely sure how you arrived at that solution, but I can’t imagine any of it ever working correctly. :)

    The `wp` action happens before WP_Roles is called, so it’s too soon in the stack. You’re also missing a bunch of sanity checks that `bbp_set_current_user_default_role` already does for you; no sense in duplicating only some of that work.

    You could try hooking into `init` but, again, I suspect something in the iMember360 plugin is interfering and won’t allow that to work correctly either.

    You *should* actually be debugging the `setup_current_user` action, to see if `bbp_set_current_user_default_role` is even firing, and if it is, where it’s failing.

    If you’re looking for a brute-force kludge, something like this is probably closer to what you need:

    `function earthman_force_current_user_caps() {
    global $current_user;

    // Only for logged in users
    if ( ! is_user_logged_in() )
    return;

    // Reload the current user with correct capabilities
    $current_user = bbpress()->current_user = get_user_by( ‘id’, bbp_get_current_user_id() );

    // Try to give them a role on the site, if they need one
    bbp_set_current_user_default_role();
    }
    add_action( ‘bbp_template_redirect’, ‘earthman_force_current_user_caps’, -99 );`


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    `/wp-content/plugins/bbpress/includes/users/capabilities.php`

    Thanks for the kind words. WordPress core doesn’t need a ton of work in this regard; a few small fixes would go a long way.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    @earthman100 – Search for `bbp_set_current_user_default_role` – it’s hooked to `bbp_setup_current_user`, which is hooked to `setup_current_user`, which seems odd that any plugin would bypass completely, since pretty much everything a user does is linked to it.

    Which is to say, I don’t think manually handling the login or user-creation process is the problem; I think this plugin is `_doing_it_wrong()` by invoking the current user far too early, before bbPress ever has a chance to hook in.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Try updating to bbPress 2.3. I’m not able to duplicate this using the latest version, using either the wp-signup.php way, or via the Network admin area.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    @premitheme – I’ve used and tested with PHP 5.2/5.3/5.4 without incident.

    The “Are you sure you wanted to do that?” errors come from nonce requests failing inside of the `bbp_verify_nonce_request()` function. My guess is the `$requested_url`, `$matched_url`, and `$home_url` are coming up with some kind of mismatch, causing `$result` to return `false` and the nonce check to fail.

    It’s also possible that the parsing and comparisons in `bbp_verify_nonce_request()` could use improvement. This function was modified in 2.3 to allow for reverse-proxying, which may have broken some other type of URL. If so, would love your help there. :)


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    i seem to be a newbie at this, can you please walk me through the steps?

    You’ll want to search bbPress’s files for the above function, and test to make sure it’s working correctly. If you’re operating a site as the main developer, you’ll want to know how to touch files on the server (with an code editor, FTP program, etc…)

    Then, you’ll want to search the web for common PHP debugging techniques (var_dump(), echo(), die(), debug_backtrace(), etc…) so you can gain a better understanding of how the code you’re trusting to make your site function works.

    This is one of those times where, hopefully, a little tough love will pay in dividends for you later.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    @clickmac – You can check the results of `bbp_user_has_profile()` to make sure they are returning `true`. This is the only place in bbPress where it would specifically prevent a user’s profile from being visible (and instead invoke a 404 response) though it seems unlikely to be the cause.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    I don’t quite understand exactly what you’re describing. Can you be a bit more specific? Feel free to link to a screenshot if you think it will be helpful.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    What happens if you try a normal WordPress theme (twentyten, twentyeleven, twentytwelve?)

    Something tells me a plugin or your theme is filtering the topics query, resulting in it returning 0 results.

Viewing 25 replies - 26 through 50 (of 1,967 total)