Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 18,326 through 18,350 (of 32,499 total)
  • Author
    Search Results
  • #106424

    The sanity check that I do in the breadcrumb is to check if the root slug is being included in the forums or not. If there’s no root slug, in the URL, then there’s no definitive breadcrumb that bbPress could know about. My logic may still be flawed here though. :)

    wsokc
    Member

    Still finding out…. no luck yet.. :(

    #106422

    You can manipulate the inclusion of the links on customized setups (such as the one I know you have.) :) Check out the plugin code and adjust it to suit your needs in your custom theme.

    When 2.0 goes gold, we’re committed to the code and functions that ship with it. So some objects might shift during shipping. :)

    #100618

    If you aren’t able follow the instructions provided, these kinds of things will happen. Revisit what you couldn’t do, and that should alleviate your woes. Hint: the functions.php code is also responsible for enqueueing the CSS. :)

    #105718

    If you aren’t able follow the instructions provided, these kinds of things will happen. Revisit what you couldn’t do, and that should alleviate your woes. Hint: the functions.php code is also responsible for enqueueing the CSS. :)

    That function was removed and merged with another that did essentially the same check. The standard bbp-twentyten theme files won’t have this problem.

    You’ve just experienced first hand why it’s best to use the built in theme compatibility if, particularly if you’re not a developer that keeps up with the code changes. :)

    #106386
    tooltrainer
    Member

    FYI it appears to be related to the specific content in my post. I typed up a very short reply and posted it without a problem.

    Are there words or symbols that bbP is treating as security risks? I’ve seen this before in WP and it’s enough to drive one to drink.

    This isn’t even a code-oriented post. I at least understand it blocking posts that contain SQL queries and whatnot, but this doesn’t have any of that…

    Jonathan

    #100804

    In reply to: Where is the importer?

    scribu
    Member

    I managed to get past the fatal error by adding these two lines in my bp-config.php file:

    define('BB_DATABASE_CLASS', 'BPDB');
    define('BB_DATABASE_CLASS_INCLUDE', false);

    Now I’m getting more errors:

    Warning: Missing argument 2 for BPDB::__construct(), called in .../forum-svn/bb-settings.php on line 197 and defined in .../lomo-content/plugins/bbpress/bbp-admin/importers/bbpress.php on line 29

    Warning: Missing argument 3 for BPDB::__construct(), called in .../forum-svn/bb-settings.php on line 197 and defined in .../lomo-content/plugins/bbpress/bbp-admin/importers/bbpress.php on line 29

    Warning: Missing argument 4 for BPDB::__construct(), called in .../forum-svn/bb-settings.php on line 197 and defined in .../lomo-content/plugins/bbpress/bbp-admin/importers/bbpress.php on line 29

    Fatal error: Cannot redeclare bb_cache_users() (previously declared in .../lomo-content/plugins/bbpress/bbp-admin/importers/bbpress.php:103) in .../forum-svn/bb-includes/functions.bb-users.php on line 39

    This is using bbPress plugin 2.0-beta-2b and bbPress standalone trunk.

    #105904

    In reply to: Where is the importer?

    scribu
    Member

    I managed to get past the fatal error by adding these two lines in my bp-config.php file:

    define('BB_DATABASE_CLASS', 'BPDB');
    define('BB_DATABASE_CLASS_INCLUDE', false);

    Now I’m getting more errors:

    Warning: Missing argument 2 for BPDB::__construct(), called in .../forum-svn/bb-settings.php on line 197 and defined in .../lomo-content/plugins/bbpress/bbp-admin/importers/bbpress.php on line 29

    Warning: Missing argument 3 for BPDB::__construct(), called in .../forum-svn/bb-settings.php on line 197 and defined in .../lomo-content/plugins/bbpress/bbp-admin/importers/bbpress.php on line 29

    Warning: Missing argument 4 for BPDB::__construct(), called in .../forum-svn/bb-settings.php on line 197 and defined in .../lomo-content/plugins/bbpress/bbp-admin/importers/bbpress.php on line 29

    Fatal error: Cannot redeclare bb_cache_users() (previously declared in .../lomo-content/plugins/bbpress/bbp-admin/importers/bbpress.php:103) in .../forum-svn/bb-includes/functions.bb-users.php on line 39

    This is using bbPress plugin 2.0-beta-2b and bbPress standalone trunk.

    #95475
    Jamie Marsland
    Participant

    Just installed beta 2…. lovely so far :)

    I haven’t quite figured out the best way to reliably integrate the login/register/lost-password pages into theme compatibility yet. The tentative plan is to finish up their shortcodes so they can be used on any page and ready for 2.0.

    mhjerde99
    Member

    Looks like it is possible to register new users with a link like this:

    http://riftlabs.com/wp/wp-login.php?action=register

    This displays a page saying “WordPress – Register for this site” which is a bit confusing :-)

    Is there a way to register new users in such a way that it looks like users are signing up to the forum and not to WordPress?

    Also, the email confirmation roundtrip takes the users back to the homepage. It would be super if it took the user back to the forum.

    Cheers,

    Morten

    mhjerde99
    Member

    Hi

    The forum plugin is amazing and I love it. Huge kudos!

    I’m trying to get a forum up and running at http://www.riftlabs.com

    I’m using bbPress with an existing Woo template.

    The (only?) thing I can’t seem to add is user registration. There is no widget or shortcode for it.

    I tried adding bbPress – TwentyTen as a child theme, but that messes up the layout, which is to be expected, I guess.

    Any ideas?

    Cheers,

    Morten

    #86087

    In reply to: Umlaut in member name

    glatze
    Member

    We needed to add another filter, so the code looks like this:

    add_filter( 'get_user_display_name', 'rk_display_name' );

    add_filter( 'get_post_author', 'rk_display_name' );

    function rk_display_name($name, $ID = 0) {

    if ( !seems_utf8( $name ) ) {

    return utf8_encode( $name );

    }

    return $name;

    }

    #95468
    kai920
    Member

    @kai920 – Go to the tools/recount area of your stand alone installation, and run all of the recount functions there (just to be on the safe side.)

    I wrote a quick script (took me a lot longer than it should have) to re-populate the post_position column. If anyone needs it let me know. My ’empty first post’ problem is solved. Thanks everyone who helped!

    wsokc
    Member

    Hi,

    I dont know what happen, currently I found my bbpress (1.0.3) admin could not open the user admin page with error “You are not allowed to do this here”.

    Currently my bbpress template was integrated with wordpress they installed separately.

    You can look the page here: http://teknoinfo.web.id/forum

    previously it works fine, after i do some changes regarding bug in the count bbpress from here http://bbpress.org/forums/topic/problems-on-recount-tools-after-upgrade-102-to-103, not sure its related or not.

    From the error_log i found:

    [28-Apr-2011 02:36:13] ERROR: bbPress database error – “Table ‘latqueir_teknoforum.bb_privatemessages’ doesn’t exist” for query “SELECT * FROM bb_privatemessages” via caller “bb_activate_plugin, include, bbPM->bbPM, bbPM->update”

    [28-Apr-2011 10:33:17] ERROR: bbPress database error – “Table ‘lat_teknoforum.tekno_users’ doesn’t exist” for query “SELECT * FROM wp_users WHERE user_login in (‘raffaell’);” via caller “require_once, require_once, require_once, bb_current_user, bb_get_current_user, WP_Auth->get_current_user, WP_Auth->validate_auth_cookie, WP_Users->get_user”

    [03-May-2011 06:24:52] PHP Fatal error: Call to a member function get_terms() on a non-object in /home7/latqueir/public_html/teknoinfo/forum/bb-admin/includes/functions.bb-recount.php on line 167

    Is there anyone experience this ?

    Anointed
    Participant

    I don’t want to hijack the thread where JJJ and I were talking about the template locations filling up my theme root, so here is a new post.

    I was playing around with an idea, and before I go to far with it, I was curious what you think.

    You had mentioned that this type of system was expressly forbidden by wp, due to having to search all folders for files before proceeding. That would be a nightmare, but here I am defining the folders up front, so it ‘should’ be just as fast, though I am unsure of how to bench test it.

    If we could get a system in place like this, then it would clean up the theme area considerably.

    I am using the same logic on a number of client sites and it works perfectly, though they are not using bbpress or buddypress. I simply use it for my own custom post-types.

    example:

    public function template_include( $template ) {
    if ( get_query_var('post_type') == $this->post_type ) {

    if ( is_single() ) {
    if ( $single = locate_template( array( $this->post_type.'/single.php') ) )
    return $single;
    }
    if ( is_paged() ) {
    if ($paged = locate_template( array( $this->post_type.'/archive.php') ) )
    return $paged;
    }
    else { // loop
    return locate_template( array(
    $this->post_type . '/index.php',
    $this->post_type . '.php',
    'index.php'
    ));
    }

    }
    return $template;
    }

    This would completely change the structure of bbpress template names, but could potentially allow me to store everything inside 3 folders ‘forums/topics/replies’.

    I’m sure there would be much more to it than that….

    What do you think of this type of approach?

    *right now it is quite generic and would effect all custom post_types, which would not be good. Changing to be bbpress specific would prob just be a matter of defining types in the array vs. all

    I’m really asking because even though I know I could get this to work, I am quite curious how this would end up effecting buddypress when combined with bbpress.

    Would a system like this be a deal breaker?

    Good idea or bad?

    #106290
    seifip
    Member

    On my site admins can’t edit the posts either :/ Also, when I edit some very old posts through the admin panel, they get uncategorized and I can’t reassociate them with the correct topic as old topics can not be found in the parent drop down list.

    janoochen
    Member

    Thanks Gautam,

    I did that instead but still having the same problem.

    The only way I can solve the problem is by taking:

    <?php bbp_get_template_part( 'bbpress/form',       'reply'   ); ?><br />

    from single-topic.php out of the loop.

    #106311

    Favorite topics are public in bbPress 2.0, and always have been in previous versions.

    Is it possible the reason why they’re appearing for you when you’re logged in, and not for other users (or logged out users) because those topics exist inside a private or hidden forum?

    I did find a possible undefined variable situation that could cause an error value to be returned instead of topic ID’s, so if the topics exist in public forums, that code change might fix it.

    #95464
    kai920
    Member

    Yes, that makes sense thanks :)

    So, how do I make sure the first posts are ‘cached properly’? I ran another test import and on the screen, the feedback the plugin importer gave was:

    Added topic #2559 (LG's iPhone - the KS20) as topic #1374 with 1 replies.

    Is ‘1 reply’ same as ‘1 post’ (and no replies), or does it mean it had 1 reply to the original post?

    edit: this line isn’t returning anything (i.e. $first_post is empty)

    $first_post = bb_get_first_post( $topic->topic_id );

    edit2: turns out, there IS something wrong with my bb_posts table… the post_position column is all 0! Is there a way to repair this?

    #106298
    Anointed
    Participant

    @bryan_w

    Yes, I believe it is indeed a code problem. I have used a number of different forum systems and ordering the forums always follows the same pattern as what I outlined above.

    Meaning, I can use order #1 within each sub-forum, otherwise trying to maintain the ordering is a nightmare.

    The problem may lie within ‘nested’ orders of sub-forums.

    Anointed
    Participant

    If I mark a post as either super sticky or sticky it does indeed stick to the top.

    However, the same post shows up twice, once on the top, and also repeated again within the list of posts wherever it would normally belong.

    In my instance I made a super sticky post and can also find the same sticky post on page2 of my forum. It is even highlighted on page 2, just like it is on page 1.

    solution:

    I believe this is a similar problem that I ran into when building a featured gallery. The solution was to store the post id#s of my featured posts, and make sure to remove those from the loop calling the regular posts, i.e. no duplicates.

    Sorry, I have not read through any of the bbpress code itself beyond theme files to even have a clue on where to fix it, otherwise I would try and post a fix here.

    #38595
    pachakuti73
    Member

    Hello !

    After i finally understand what you are doing here… :D

    I checked what i need to do. A little bit confusing for me, my english isn`t that good.

    Ok, i setup a new WP (current version with twenty theme) and installed the bbpress 2 beta.

    So far so good. Will there be categories in BBpress ? Cause i just need one Forum under one menupoint with different categories with the topics inside.

    Currently i can only make different forums wich are seperatet, thant`s a little bit strange cause i have to a menupoint for every forum.

    When i click on “forum” at the breadcrump i get this error:

    The requested URL /mashup/forums/ was not found on this server.

    404, folder not found.

    Sure, there is none. Is this just a relict of the older BBPress version where normally i should have this folder ?

    First look is nice, this can be great in the future, but its in a very early beta state i guess.

    It`s the only forum wich is native in WP and runs directly in the page.

    All others like Vbulletin, PHPbb and so can`t be included and iframes are not really nice.

    so, BBPress is my hope and the only solution at the horizon.

    Thanks for your work.

Viewing 25 results - 18,326 through 18,350 (of 32,499 total)
Skip to toolbar