Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 42,976 through 43,000 (of 64,513 total)
  • Author
    Search Results
  • #90478
    _ck_
    Participant

    I’ve been talking about this for years.

    The “performance” tag has a few gems in there I’ve written over time.

    bb-benchmark will also show you all the queries via the same method and a few other details, unfortunately the newest version is not in the plugin section right now because of how bbpress.org is broken.

    Part of the problem on the WP side is many times the plugins do not set their options to autoload (and have a whole bunch of options). I believe bbPress 1.x now has the same problem (it was avoided in 0.9 but re-introduced with backpress).

    I have a mini-plugin somewhere for 1.x to load all options with one query.

    Some setups can take hours to get the queries down, it’s exhausting

    Next you should notice that WP 3.0 + bbPress 1.x takes nearly 1 megabytes of code per instance and in some cases won’t even run on shared hosts because it goes over the PHP ini default setting of 32MB during runtime.

    If you are using a tag cloud, my “hot tags plus” will cache the complex query for the tag cloud and all rendering becomes static.

    ps. the real answer is not to do deep integration – just make a clone theme for bbpress, it’s worth the effort – the good thing about that is if WP is down, bbpress can still run

    Really helpful “Reboot Now”, thanks alot.

    Your first issue about the nonce value, I’ve never had it on any normal/shallow integration since I started specifying the all the keys in my config file. Yes it’s double handling but it’s made a huge difference.

    the bb-config file asks for this info:

    define( 'BB_AUTH_KEY', 'put your unique phrase here' );
    define( 'BB_SECURE_AUTH_KEY', 'put your unique phrase here' );
    define( 'BB_LOGGED_IN_KEY', 'put your unique phrase here' );
    define( 'BB_NONCE_KEY', 'put your unique phrase here' );

    The bb-config file tells you to get it form this location: https://api.wordpress.org/secret-key/1.1/bbpress/ . But really what you should have in the bbPress config file should be from the wordpress salt generator https://api.wordpress.org/secret-key/1.1/salt/

    I make sure I have an exact copy of my WordPress keys and a copy of my wordpress keys with “BB_” infront of them – and bam, that little issue went teh way of the dodo.

    define('AUTH_KEY',         '1');
    define('SECURE_AUTH_KEY', '2');
    define('LOGGED_IN_KEY', '3');
    define('NONCE_KEY', '4');
    define('AUTH_SALT', '5');
    define('SECURE_AUTH_SALT', '6');
    define('LOGGED_IN_SALT', '7');
    define('NONCE_SALT', '8');

    define('BB_AUTH_KEY', '1');
    define('BB_SECURE_AUTH_KEY', '2');
    define('BB_LOGGED_IN_KEY', '3');
    define('BB_NONCE_KEY', '4');
    define('BB_AUTH_SALT', '5');
    define('BB_SECURE_AUTH_SALT', '6');
    define('BB_LOGGED_IN_SALT', '7');
    define('BB_NONCE_SALT', '8');

    FYI incase anyone new to bbPress is reading this: If I do a clean bbPress install I strongly strongly advise using https://api.wordpress.org/secret-key/1.1/salt/bbpress/ instead which returns 8 lines (we get salts too) which WordPress has needed for 2 years.

    #90476
    Greg
    Participant

    I have now (1) figured out how to measure the number of queries correctly for both sides and (2) removed some very silly overhead that was immediately revealed after I achieved (1).

    The result is that both Kakumei and my custom theme do around 40 queries on the front page of the forum.

    Apologies for all the noise in the two posts before this one — a great illustration of more haste less speed.

    ps. One mod to Kevin’s extremely useful suggestion regarding the use of SAVEQUERIES to see where those queries are going… in bbPress you need to print the queries for BOTH the bbPress and WP databases. In other words, you need the following in your forum footer:

    global $wpdb, $bbdb;

    print_r($wpdb->queries);

    print_r($bbdb->queries);

    Or just to get the number of queries for both…

    global $wpdb, $bbdb;

    echo ‘WPDB Queries: ‘ . $wpdb->num_queries;

    echo ‘BBDB Queries ‘ . $bbdb->num_queries;

    Of course, the “>”s that appear in my code above should be greater than signs.

    Greg
    Participant

    My reasons for deep integration generally fall into two categories:

    A: niggly issues like the fact that I couldn’t get WP and BBP to share the same nonce value for safe logout. These all magically go away with deep integration (e.g. I now only use WP’s login/logout functions).

    B: it is much easier to create a custom user experience that crosses from blog to forum. My biggest example here is a site wide reputation system. So I need to display display profile pictures, badges and levels alongside forum posts and blog comments in the exact same way. I could do this without deep integration but then I would need to duplicate some functionality across WP and BBP plugins (e.g. writing a function on the bbPress side to get the avatar location).

    I think at its core deep integration is about a trade off between [raw performance + server cost] on the one hand and [dev cost + ttm + maintainability] on the other.

    So to your second question… the data I pull across is mainly user metadata as I described above.

    And regarding plugins… very few plugins that aren’t custom.

    One other thing: the deep integration we’re talking about is one way. I also integrate the other way (e.g. showing forum posts on blog pages) and this is done without deep integration. That is, I have created functions on the WP side to query the db for forum data.

    Ryan’s plugin is nice, very nice indeed.

    It works in the same way as my hack/plugin for WP2.3 bbP0.8 in that it outputs a hardcoded file (obviously Ryan’s code it a heck of a lot better, and more up to date). Whats not great for me is that (the last time I checked) it attempts to output a hardcoded file once every hour, so any changes you make take 60 mins to appear on the bbpress site. You can lower that time ofcourse, but in that instance you’re going to struggle with things like SEO etc.

    #90547

    I haven’t recently installed plugins on bbpress but I had some plugins on WP side.

    Could you tell us which plugins?

    #34637
    lndasa
    Member

    I had recently upgraded to bbpress 1.0.2 and I using 2.6.2 WP.

    It was working perfectly until recently it started to go to

    “This topic has been closed”. I haven’t recently installed plugins on bbpress but I had some plugins on WP side.

    Please visit http://absolutetruth.in/forums/

    #90542
    chrishajer
    Participant

    That’s the wrong location for the files. They should not be in the WordPress plugins folder. I imagine if you don’t try and activate it as a WordPress plugin from there, the worst that happens is you have to access your forum at

    http://www.example.com/wp-content/plugins/bbpress/

    which just looks silly. I think it would work though.

    I would just make sure that bbpress folder and my-plugins folder inside that have 755 permissions.

    What plugins did you install that you cannot see?

    And why did you have to create the my-plugins directory? Wasn’t it there when you installed bbPress?

    #34634
    rajada
    Member

    I’m relatively new to this, so bare with me…

    I’ve got a WordPress site integrated with a BB Press forum (one login for both) and I have created a my-plugins directory in my base directory and the permissions on it is 755 numerically. Even though I believe everything is set up correctly, and the forum itself works absolutely perfect, a total of 0 of my installed plugins show up on the administrative plugins list (default ones show up still). If I am not mistaken, someone mentioned that BB Press is not a plugin in itself, but the directory is in fact in my plugins folder.

    In other words, I install my BB plugins to:

    ftp and website address stuff…/wp-content/plugins/bbpress/my-plugins

    Every file in my-plugins is 755, and no one else seems to have this exact problem when they use plugins. So does anyone know what exactly is going on?

    WordPress version is the most up to date one, I’m using the default green theme (for the forum), and these should easily be compatible plugins.

    #90474
    Greg
    Participant

    [EDIT] Scratch the below. It seems I was only counting the bbpress-related queries. I now see 51 queries (for a logged in user), which is a lot to pay for the convenience of calling wordpress functions. I look forward to hearing more about what you come up with during those two weeks.


    These stats are not consistent with my experience.

    I have a site with deep integration between bbPress 1.0.2 and WordPress MU 2.9 (BuddyPress). The number of queries for the front page is:

    18: logged out

    23: logged in

    I switched the theme back to Kakumei and this drops to:

    14: logged out

    19: logged in

    The deep integration here is requiring ‘wp-load.php’ from bb-config. How did you do the deep integration to get the results above?

    Or is WP3.0 doing something odd when integrated with bbP?

    Also, although 56 queries is really heavy for a standard deep integration, I wouldn’t be overly concerned about that number for a sophisticated site. And you really want to know what those queries are. Not all queries are created equal.

    #90538
    hpguru
    Member

    I think there are just 2 posts. Thank you, now it was deleted. Just Googled and i not found more related topics.

    #90527
    chrishajer
    Participant

    Right, I figured it was however they are getting the bbPress information into WordPress for the front page at https://bbpress.org/

    #90537
    chrishajer
    Participant

    Those were posts that were either marked as deleted, or marked as spam. Back when that was done, deleting the only post on a topic didn’t delete the topic, it broke it. I just deleted the topics so it should be OK now. Let me know if you find more.

    #87895
    JDMojo
    Member
    #87894
    JDMojo
    Member

    Hey truthlighthouse,

    First I just want to say THANK YOU! The directions from GoDaddy for setting this up is feeble, to say the least. They should put your instructions up for everyone to see because they are straightforward and simple (and awesome!).

    The only problem I’m having is over at number 18. I uploaded my bbPress folder (which I renamed Forums) to the remote system, but for the life of me I can’t get the installation thing to pop up when I type in the URL in my browser (http://example.net/Forums). I tried moving the Forums folder into the WordPress folder (where wp-admin resides) and still no luck.

    Any ideas? Anyone?

    #90536
    hpguru
    Member

    Maybe Chris able to delete it?

    #90535
    Gautam Gupta
    Participant

    Those are very old posts, and bbPress wouldn’t have been that stable at that time.

    #34633
    hpguru
    Member
    #90526
    Gautam Gupta
    Participant

    @chris

    Yesterday and before that, the members’ name was blank. It is happening because of the anonymous posting changeset, it checks if there is a name of the user or displays Anonymous. But I don’t think it is a bbPress bug, it is something to do with bbPress.org backend.

    #90525
    hpguru
    Member

    Download button on front page is without background.

    chrishajer
    Participant

    They show properly in the forums though.

    See http://chrishajer.com/bbpress/bbpress-anon-front.png

    #87861
    chrishajer
    Participant

    Not sure who is working on it, if anyone, but it’s not me.

    #90498
    hpguru
    Member

    Thank you!

    #90497
    zaerl
    Participant
    bb_is_front()
    bb_is_forum()
    bb_is_tags()
    bb_is_tag()
    bb_is_topic_edit()
    bb_is_topic()
    bb_is_feed()
    bb_is_search()
    bb_is_profile()
    bb_is_favorites()
    bb_is_view()
    bb_is_statistics()

    that are all wrappers (a mojor part of them) of the bb_get_location() function which returns:

    front-page
    forum-page
    tag-page
    topic-edit-page
    topic-page
    feed-page
    search-page
    profile-page
    favorites-page
    view-page
    stats-page
    login-page
    register-page

    hpguru
    Member

    Just replace title in header.php in your theme:

    <title><?php bb_title() ?><?php if (bb_is_front()) { echo " - Your forum slogan";} ?><?php if ($page>1) { echo ' « Page '. $page; } ?></title>

    Unmangled: http://pastie.org/1028304

    Have a nice day and thanks to Zaerl to bb_is_front.

    I need function "if is home" to bbPress

    Example: Your topic title « Your forum name « Page 15

    If you are in topic’s page 15!

Viewing 25 results - 42,976 through 43,000 (of 64,513 total)
Skip to toolbar