John James Jacoby (@johnjamesjacoby)

Forum Replies Created

Viewing 25 replies - 726 through 750 (of 2,355 total)
  • @johnjamesjacoby

    Keymaster

    No idea what royal_login() is, but it’s not related to bbPress.

    @johnjamesjacoby

    Keymaster

    I’d advise against reverting back. Instead, in your theme’s functions.php, put…

    $GLOBALS['bbp'] = bbpress();

    @johnjamesjacoby

    Keymaster

    Some plugin is not filtering queries correctly, and is intercepting bbPress’s query and breaking it. Try deactivating plugins and seeing which one isn’t playing nicely.

    In reply to: phpBB

    @johnjamesjacoby

    Keymaster

    What error do your users get?

    @johnjamesjacoby

    Keymaster

    I’m a little confused by what netweb is telling you to do. The bbPress Moderation plugin is actually the thing that ENABLES the behaviour you’re experiencing. Without that plugin, your users should be allowed to create topics and replies on their own without any intervention from you or anyone else.

    Deactivate the bbPress Moderation plugin, deactivate bbPress, activate bbPress. That should reset all of bbPress’s role and capability mapping, in the event something is broken.

    @johnjamesjacoby

    Keymaster

    There is documentation, at codex.bbpress.org. It’s a wiki, so you’re free to teach yourself how bbPress works, and contribute your knowledge upstream so others can learn from you.

    That said, what you want to do is as easy as making a bbpress.php template in the root of your theme. It will act as the wrapper for all bbPress content.

    @johnjamesjacoby

    Keymaster

    Files in the /extras/ folder are not actually used by bbPress’s theme compatibility, and are only there as extra root level templates for people that want to make their own themes.

    Most likely it’s using your page.php as a wrapper, and pulling in the template parts in /bbp-theme-compat/bbpress/user-…

    @johnjamesjacoby

    Keymaster

    That’s annoying. Replace that call with bbp_get_forum_parent_id().

    @johnjamesjacoby

    Keymaster

    Deactivate bbPress, and activate it again. It sounds like something is preventing roles and capabilities from working correctly. Are you using some kind of plugin to privatize your site?

    @johnjamesjacoby

    Keymaster

    Thinking long-term, I’d like for there to be a ‘Use bbPress topics for comments’ option also, and that plugin is doing something along those lines. Thanks for sharing your site, and happy that it’s working out for you so far.

    @johnjamesjacoby

    Keymaster

    Most likely directly in a custom theme’s template file, where ever it’s appropriate.

    /bbpress/loop-single-reply.php

    maybe?

    @johnjamesjacoby

    Keymaster

    That’s, odd. Categories do have some specific handling in them, so it’s possible this is a bug.

    Voices do not look for email addresses or names, only unique user ID’s. As such, they only count registered users. This prevents long topics with thousands of replies from needing to do literal string comparisons on meta data that is not readily available in the cache or users tables.

    There are no plans to look into counting non-registered users in the future.

    If the count is off, and all of your users are registered, you can visit Tools > Forums and do a recount on the voices.

    In reply to: Private messages

    @johnjamesjacoby

    Keymaster

    BuddyPress is pretty much your best option right now. Though it’s setup and theme’ing is not currently as elegant as bbPress is.

    @johnjamesjacoby

    Keymaster

    A few things. First, this won’t work in bbPress 2. It’s already done for you, and the function names are different. Also, it’s a bad idea to trust any global value to be output directly to the screen, as any plugin can manipulate them directly. You’ll want to wrap that output in an esc_url() call. Lastly, this post is almost 4 years old; bumping it with a simple ‘thanks’ type reeks of being spam.

    Closing this so it doesn’t get bumped again, and anyone that finds this should take heed using that code in bbPress or WordPress going forward, as there are more elegant solutions.

    @johnjamesjacoby

    Keymaster

    This plugin currently only comes with templates for the bbp-twentyten theme with is a table-based layout. Otherwise, it’s a really good plugin and works really well.

    @johnjamesjacoby

    Keymaster

    Because bbp_reply_author_id() does not return, it echo’s.

    Use bbp_get_reply_author_id() instead. It will return a value.

    get functions always return, their counterparts always echo. 🙂

    @johnjamesjacoby

    Keymaster

    Something similar to:

    $user = get_userdata( $user_id );
    if ( !empty( $user->user_nicename ) ) {
        $user_nicename = $user->user_nicename;
    }

    …should do it. You’ll need to sort out the context of how to get the $user_id though.

    @johnjamesjacoby

    Keymaster

    Not a bug, though it’s something you may wish to be concerned about in your own site. Anonymous posting is just that, so this is by design.

    @johnjamesjacoby

    Keymaster

    Once you get it right, I’ll delete your other posts.

    In reply to: Forum not displaying

    @johnjamesjacoby

    Keymaster

    Check your error logs. Looks like something in your theme is halting page output, or is overly aggressively filtering the content area.

    @johnjamesjacoby

    Keymaster

    Can’t think of a reason this would happen, unless a plugin is actively stopping other post types from being registered correctly.

    @johnjamesjacoby

    Keymaster

    Since those actions happen inside of the BBP_Admin class, you’ll need to hook a function on to the ‘bbp_theme_compat_actions’ action, and remove them from there.

    function jjj_blah( $admin ) {
        remove_action( 'bbp_enqueue_scripts', array( $admin, 'enqueue_styles'  ) );
        remove_action( 'bbp_enqueue_scripts', array( $admin, 'enqueue_scripts' ) );
    }
    add_action( 'bbp_theme_compat_actions', 'jjj_blah' );
    

    @johnjamesjacoby

    Keymaster

    Possibly a bug. Possibly a plugin conflict. Any more information you can provide?

    In reply to: front page text plugin

    @johnjamesjacoby

    Keymaster

    This is not for bbPress 2.1 and above. You can use normal WordPress pages for this.

    @johnjamesjacoby

    Keymaster

    There are a few tags you could use, but the normal bbPress CSS isn’t written to be broken up and conditionally loaded; you’ll need to do that yourself. They are conveniently called is functions:

    https://bbpress.trac.wordpress.org/browser/branches/plugin/bbp-includes/bbp-common-template.php#L91

Viewing 25 replies - 726 through 750 (of 2,355 total)