Jared Atchison (@jaredatch)

Forum Replies Created

Viewing 25 replies - 651 through 675 (of 703 total)
  • @jaredatch

    Member

    No problem, glad I can help.

    I’m going to submit this simple plugin to the wp.org repo. Once it’s up I’ll talk to @jjj and see if it warrants a sticky. :)

    Regarding the missing tag, closing PHP tags (?>) isn’t required (at the end of the file) and it’s usually good practice to omit them. More info on that http://stackoverflow.com/questions/4410704/php-closing-tag

    @jaredatch

    Member

    https://wordpress.org/extend/plugins/bbpress-custom-css-file/

    bbPress will use bbpress.css from your theme folder.

    So to recap:

    1. Copy the master bbPress css file to your theme directory and rename it to bbpress.css.

    2. Go to the plugin page in the admin. Activate bbPress Custom CSS File.

    3. profit.

    @jaredatch

    Member

    Try adding a check for bbPress, such as

    add_action( 'bbp_ready', 'ja_login_detect' );
    function ja_login_detect() {
    if ( is_bbpress() ) {
    include_once "/dap/dap-config.php";

    if ( !Dap_Session::isLoggedIn() )
    header( "Location: /dap/login.php" )
    }
    }

    @jaredatch

    Member

    What version of bbPress/BuddyPress are you using?

    In reply to: Forum migration tool

    @jaredatch

    Member

    The problem with this is that bbPress is maintained by @jjj and a few other contributors. So the time and features have to be prioritized.

    Writing an importer is a *lot* of work. Right off the bat a forum importer is going to be at least twice as much work as, say, a MovableType -> WordPress importer.

    Now you have to take into account how many, ultimately, separate importers you would have to write. Let’s see here… vBulletin, phpBB, Vanilla, punBB, SMF, IPB… and those are just some of the popular ones. So 6 importers *might* cover most off people’s needs.

    Then you have to keep in mind that the importers are constantly breaking because of software updates to the original forums packages. I’d say ever 2-4 months you can expect breakage due to an update.

    Bottom line? You are looking at 6 importers (at least) to cover the popular forum suites, that not only would take a huge time investment to get off the ground, but would have to be constantly maintained and updated so they don’t break or get out of date.

    Is it do-able? Sure. However, if you want @jjj to tackle this don’t expect to ever see another bbPress update or feature again – it’s just a matter of time.

    This is really where contributors need to step in and help out. This would ideally be written and maintained by different contributors.

    @jaredatch

    Member

    If you want to hide the menu item completely from non-logged in members there is no easy way to do that using the WordPress menu system except using CSS.

    @jaredatch

    Member

    Add it in your menu. Appearance > Menus.

    @jaredatch

    Member

    First reset you permalinks by going to Settings > Permalinks. (after you activated bbP of course)

    Once that is done try going to yoursite.com/forums/ (this is created for you, no page is needed)

    @jaredatch

    Member

    Yes there is, I wrote a quick plugin for it.

    Take the code from https://gist.github.com/1902067 and put it in a bbpress-css.php file inside your wp-content/plugins/ directory.

    Then go to your plugins page and activate the plugin.

    It will use bbpress.css from your theme directory, so my suggestion would be to make a copy of bbPress’s CSS file and move it there as a starting point, then you can edit as needed.

    @jaredatch

    Member

    Yeah that is weird, at least you have it narrowed down to your theme for the likely cause of your problem.

    @jaredatch

    Member

    My last suggestion would be to deactivate all other plugins *except* bbPress. Then go and switch your theme to either TwentyTen or TwentyEleven.

    This will at least eliminiate plugin/theme conflicts.

    @jaredatch

    Member

    Just to make sure I would delete the bbPress plugin (you won’t lose any of the data that is there) directory and then reinstall it.

    @jaredatch

    Member

    It might be easier to use some of the bbPress body classes in addition to what you are using now.

    For example you might be using a custom body class called ‘my-header-image’.

    So if you wanted to use that on your bbpress portion of the site you would just add the bbpress body class to your css, such as

    .my-header-image,
    .bbPress {
    background: url(myimage.jpg);
    }

    There are other body classes available from bbPress, but you get the picture :)

    @jaredatch

    Member

    This is a total guess and not tested, but you should be able to put something like this in your theme’s functions.php file

    add_action( 'bbp_init', 'do_custom_body_classes' );
    function do_custom_body_classes() {
    add_filter( 'body_class', 'genesis_custom_body_class', 15 );
    }

    @jaredatch

    Member

    A better way would be to edit it in the template or use the bbp_get_reply_author_avatar filter in place.

    What you did will work fine, however keep in mind that when the next version of bbP comes out you will lose the edits you made to the plugin.

    @jaredatch

    Member

    This thread is waay old. Please start a new one :).

    @jaredatch

    Member

    If you want to just do minor CSS tweaks then just put the changes at the bottom of your theme’s style.css and it *should* override things.

    @jaredatch

    Member

    Add this to your wp-config.php and see if it sheds any light:

    define(‘WP_DEBUG’, true);

    @jaredatch

    Member

    You’ll want something like this. And it should go in your theme’s functions file.

    add_action( 'bbp_ready', 'ja_login_detect' );
    function ja_login_detect() {
    include_once "/dap/dap-config.php";

    if ( !Dap_Session::isLoggedIn() )
    header( "Location: /dap/login.php" )
    }

    @jaredatch

    Member

    Is bbP activated? Does it show up in the plugin listings? Moving WP shouldn’t affect bbP. If your other plugins work it should too.

    @jaredatch

    Member

    You are going to have to wrap it in something that checks for bbPress.

    Similar to:

    if ( is_bbpress() ) {
    include_once "/dap/dap-config.php";

    if( !Dap_Session::isLoggedIn() ) {
    header("Location: /dap/login.php");
    exit;
    }
    }

    However it’s going to likely take more polish than that.

    @jaredatch

    Member

    I looks like this issue is due to a CSS conflict in your theme’s CSS. Specifically line 733 which reads:

    .reply {
    float: left;
    margin: 0;
    }

    You are going to have to play around with it. I’d start with adding something like this to your theme’s CSS:

    .bbp-replies .reply {
    float: none;
    }

    .bbPress #content .single-entry-content {
    float: none;
    }

    @jaredatch

    Member

    Well from your code above, it seems that if a user isn’t loggedin via DAP then they would get redirected to /dap/login.php.

    @jaredatch

    Member

    I don’t know there is one out there (yet) that is specifically written for bbPress.

    I assume you need this because you are allowing Guest posting?

    In bbP 2.1 spam detection with Akismet is improved so hopefully you might not even need it (unless you are worried about members posting in-appropriate material).

    @jaredatch

    Member

    If you are 2.1 (which from my testing is stable and full of awesomeness) you can place the bbPress template files in your theme and bbP will use those instead of the pre-packaged ones.

    See https://bbpress.org/forums/topic/bbpress-21-theme-compatibility

Viewing 25 replies - 651 through 675 (of 703 total)