iamfyrestorm (@iamfyrestorm)

Forum Replies Created

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

  • iamfyrestorm
    Member

    @iamfyrestorm

    Well, I don’t know, but since there’s a deregister view following the register view function maybe it’s not necessary.

    function bb_register_view( $view, $title, $query_args = '' ) {
    global $bb_views;

    $view = bb_slug_sanitize( $view );
    $title = wp_specialchars( $title );

    if ( !$view || !$title )
    return false;

    $query_args = wp_parse_args( $query_args );

    if ( !$sticky_set = isset($query_args['sticky']) )
    $query_args['sticky'] = 'no';

    $bb_views[$view]['title'] = $title;
    $bb_views[$view]['query'] = $query_args;
    $bb_views[$view]['sticky'] = !$sticky_set; // No sticky set => split into stickies and not
    return $bb_views[$view];
    }

    function bb_deregister_view( $view ) {
    global $bb_views;

    $view = bb_slug_sanitize( $view );
    if ( !isset($bb_views[$view]) )
    return false;

    unset($GLOBALS['bb_views'][$view]);
    return true;
    }

    I’m in trouble if I ever need to create my own views or if the views that are being created in the default-filters.php page are ever used. But until I get a response from someone that knows what’s going on, I’m running bbPress without it register views.


    iamfyrestorm
    Member

    @iamfyrestorm

    Yes, I commented out the lines that were calling bb_register_view because they pissed me off. I can change it back if you like. I don’t know what their purpose is, but I’m pretty sure it might come back to bite me in the butt at a later date.


    iamfyrestorm
    Member

    @iamfyrestorm

    I’ve done a little more troubleshoot, although it’s gotten me nowhere, but I’ll post it here in the event that someone may be able to help me:

    Line 81 in the bb-includes/default-filters.php file is:

    bb_register_view('no-replies', __('Topics with no replies'), array('post_count'=>1));

    I did a search in the files and “bb_register_view” pops up in 3 files:

    default-filters.php

    functions.php

    template-functions.php


    iamfyrestorm
    Member

    @iamfyrestorm

    I made sure that all files were there. I went as far as deleting the whole directory and then moving over the files manually. So that’s not issue…


    iamfyrestorm
    Member

    @iamfyrestorm

    I even went a step further and created a new (very empty db) just to troubleshoot and I’m still getting the same error.

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