Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 60,226 through 60,250 (of 64,515 total)
  • Author
    Search Results
  • #2251
    adriengeille
    Member

    Hi,

    I’m trying to add a bbpress managed forum to my wordpress blog but i have some difficulties even so the installation instructions seemed easy. I use the same database for both blog and forum. The only thing i have is blank page when i launch the install.

    Here is my config.php file

    <?php

    define(‘DB_NAME’, ‘xxxx’); // Le nom de la base de donnees

    define(‘DB_USER’, ‘xxxx’); // Votre identifiant MySQL

    define(‘DB_PASSWORD’, ‘xxxx’); // …et votre mot de passe

    define(‘DB_HOST’, ‘localhost’); // Dans la plupart des cas, vous n’aurez pas a modifier cette ligne

    // Vous pouvez faire plusieurs installation sur une meme base de donnees en leur donnant un prefixe unique

    // Change the prefix if you want to have multiple forums in a single database.

    $bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!

    // The full URL of your bbPress install

    $bb->uri = ‘http://www.subventions.fr/forum/&#8217;;

    // What are you going to call me?

    $bb->name = ‘Le forum des subventions à la création et au développement d’entreprise’;

    // This must be set before you run the install script.

    $bb->admin_email = ‘webmaster@subventions.fr’;

    // Set to true if you want pretty permalinks, set to ‘slugs’ if you want to use slug based pretty permalinks.

    $bb->mod_rewrite = ‘slugs’;

    // The number of topics that show on each page.

    $bb->page_topics = 30;

    // A user can edit a post for this many minutes after submitting.

    $bb->edit_lock = 60;

    // Your timezone offset. Example: -7 for Pacific Daylight Time.

    $bb->gmt_offset = -2;

    // Change this to localize bbPress. A corresponding MO file for the

    // chosen language must be installed to bb-includes/languages.

    // For example, install de.mo to bb-includes/languages and set BBLANG to ‘de’

    // to enable German language support.

    define(‘BBLANG’, ”);

    // Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage

    // of Akismet’s powerful spam blocking, you’ll need one. You can get an Akismet key at

    // http://wordpress.com/api-keys/

    $bb->akismet_key = ‘xxxx’; // Example: ‘0123456789ab’

    // The rest is only useful if you are integrating bbPress with WordPress.

    // If you’re not, just leave it as it is.

    $bb->wp_table_prefix = ‘wp_’; // WordPress table prefix. Example: ‘wp_’;

    $bb->wp_home = ‘http://www.subventions.fr&#8217;; // WordPress – Options->General: Blog address (URL) // Example: ‘http://example.com&#8217;

    $bb->wp_siteurl = ‘http://www.subventions.fr/wordpress&#8217;; // WordPress – Options->General: WordPress address (URL) // Example: ‘http://example.com&#8217;

    $bb->cookiepath = ‘/’;

    $bb->cookiedomain = ‘.subventions.fr’;

    define(‘WP_BB’, true);

    require_once(‘/wordpress/wp-blog-header.php’);

    /* Stop editing */

    if ( !defined(‘BBPATH’) )

    define(‘BBPATH’, dirname(__FILE__) . ‘/’ );

    require_once( BBPATH . ‘bb-settings.php’ );

    ?>

    Is there something wrong in what I wrote? Beside that i installed the integration plugin under wordpress and modified the wp-config.php concerning the cookies.

    Thank you for your help

    #52548
    Sam Bauers
    Participant

    I’ve added the option to create views for all support status types in the plugin

    The new version is 2.2, should be available here soon:

    https://bbpress.org/plugins/topic/16

    #52547
    Sam Bauers
    Participant

    I assume you are using the plugin now and not a really old version of bbPress…

    Although you can now change the default status, the view still only shows the unresolved topics.

    It shouldn’t be too hard to add this as an option to the plugin.

    I’ll see what I can do.

    #60001
    _ck_
    Participant

    Feel free to play with page load times:

    http://bbpress.dreamhosters.com/forums/

    vs.

    http://bbpress.dreamhosters.com/smf/

    The server is absolutely crawling right now so it’s a great time to see how bad each one is. With “fastload” bbpress is respectable against smf.

    I’ve unblocked the hidden bb-benchmarks so any user can see them if you do a view source and scroll to the bottom if you want to see all the stats.

    #59999
    _ck_
    Participant

    Yeah I’ve seem some really interesting hosting methods by running bbpress on several cheap shared hosts just to see how it behaves.

    SMF still freaks me out though. Then again they have like 5 years of development or much more if you include YaBB experience.

    I have this clever little idea to trick dreamhost by storing the “fastload” plugins and includes as mysql blobs and using eval. Their mysql stays consistently fast.

    #59994
    _ck_
    Participant

    Well every millisecond on the output does matter and the reasons you listed are very valid, but on heavily loaded servers, I have to believe the biggest weakness is the sheer number of files that have to seek and load. If they aren’t in the server’s file cache (dreamhost might have 1000 virtual hosts per node or more) that can cause long delays. Even if using an opcode cache, the cache still has to check the file date/size in the OS before it allows execution.

    But even bbpress’s output template requires 3+ files to be included. SMF does it entirely differently in one single file.

    I’ve built a prototype “fastload” plugin that concatinates two pools of files:

    1. includes (except a few outside the general block in bb-settings)

    2. all plugins

    It actually works to some degree to speed things up on dreamhost when they are are at insane loads.

    By reducing the number of files to seek from 40 to less than 10 the page load times are much better.

    #55101
    ronchicago
    Member

    Maybe this has been addressed above, not sure. The install menu reminds me I am not in the WordPress directory and will need some code tweeking in order for cookies to match with WP, as well as, getting WP functions. To get the WP functions to work in bbPress, more tweeking is required. Is there any advantage to not putting bbPRess inside the directory?

    Ultimately, I simply wish to have one WP blog address with a forum capability inside the WP blog.

    Should I move bbPress inside the WP subdirectory? Or leave it as is and fine tune?

    #59993
    Sam Bauers
    Participant

    Here are a couple of other reasons why SMF might be faster.

    * SMF doesn’t use php-gettext for translation, it uses an array of text that can be replaced. This method approaches the speed of a native gettext implementation.

    * bbPress has a lot of functions to register.

    * SMF has (auto-detecting) built in support for memcached, eAccelerator, MMCache, AlternativePHP Cache and the Zend Optimiser

    * Most (all?) of SMF is written inside PHP, i.e. the HTML is in strings that are echoed out of PHP, this is slightly quicker than dropping in and out of PHP to output to the browser.

    * Many bbPress plugins don’t need to load on every page, they could start with some sort of conditional that requests the current bbPress location and then just send a “return” when they aren’t required.

    That’s all I can think of after a quick look.

    #2250
    Heliotropen
    Member

    I am looking, for at decent theme, that is available for several platforms (bbpress + wordpress + mediawiki) – more specific 3 diffrent themes that look alike (or as alike as “possible”).

    I have used mistylook before, but i am now using several subforums in the newest version of bbpress, and can’t get this to work with the “old” mistylook theme for bbpress.

    Any advide, or direction, anything (how to fix the problem with mistyllok, or new theme) would be soooo appreciated

    thnx in advance

    /Dennis

    #59992
    _ck_
    Participant

    Ah, here’s SMF’s secret against bbPress – sheer number of files + size.

    This definitely makes me want to go ahead with making a “quick loader” that will concat all the includes and then all the plugins as two blobs that can be either loaded from disk or mysql at user discretion based on the weakness of their shared server:

    Front pages compared:

    (keep in mind SMF actually has even more features than the dozen plugins loaded with bbPress, online user tracker, etc)

    SMF 1.1.3
    files for front page: 8 files, 338.45 Kb

    index.php : 14.31 Kb
    Settings.php : 3.71 Kb
    Sources/QueryString.php : 18.84 Kb
    Sources/Subs.php : 132.37 Kb
    Sources/Errors.php : 15.94 Kb
    Sources/Load.php : 92.47 Kb
    Sources/Security.php : 29.88 Kb
    Sources/MessageIndex.php : 30.93 Kb
    =====================================================

    `

    bbPress 0.8.3 alpha

    files for front page: 40 files, 437.15 Kb

    index.php : 0.44 Kb

    bb-load.php : 0.46 Kb

    config.php : 2.28 Kb

    bb-settings.php : 7.14 Kb

    bb-includes/db-mysqli.php : 12.77 Kb

    bb-includes/functions.php : 71.73 Kb

    bb-includes/wp-classes.php : 3.37 Kb

    bb-includes/classes.php : 37.98 Kb

    bb-includes/formatting-functions.php : 8.73 Kb

    bb-includes/template-functions.php : 59.12 Kb

    bb-includes/capabilities.php : 13.15 Kb

    bb-includes/cache.php : 8.52 Kb

    bb-includes/deprecated.php : 8.17 Kb

    bb-includes/wp-functions.php : 36.06 Kb

    bb-includes/kses.php : 17.65 Kb

    bb-includes/l10n.php : 1.76 Kb

    bb-includes/bozo.php : 10.1 Kb

    bb-includes/akismet.php : 8.14 Kb

    bb-includes/default-filters.php : 4.45 Kb

    bb-includes/script-loader.php : 9.2 Kb

    bb-includes/compat.php : 0.57 Kb

    my-plugins/_bb-benchmark.php : 4.79 Kb

    my-plugins/_cookie-year.php : 0.92 Kb

    my-plugins/bb-polls.php : 21.04 Kb

    my-plugins/bb-signatures.php : 11.52 Kb

    my-plugins/report-post.php : 3.92 Kb

    my-plugins/user-topics-to-favorites.php : 0.59 Kb

    my-plugins/bb-topic-views.php : 5.91 Kb

    my-plugins/my-views.php : 10.13 Kb

    my-plugins/notification.php : 2.26 Kb

    my-plugins/my-views-started-participated-topics.php : 1.52 Kb

    my-plugins/my-views-most-least-views.php : 2.7 Kb

    my-plugins/plugin-browser.php : 21.72 Kb

    my-plugins/my-views-installed-available-plugins.php : 6.61 Kb

    bb-includes/pluggable.php : 8.86 Kb

    bb-includes/locale.php : 6.91 Kb

    bb-templates/kakumei/front-page.php : 3.03 Kb

    bb-templates/kakumei/header.php : 1.6 Kb

    bb-templates/kakumei/logged-in.php : 0.21 Kb

    bb-templates/kakumei/footer.php : 1.13 Kb

    =====================================================

    #59991
    _ck_
    Participant

    I just installed SMF on the my dreamhost account next to bbpress.

    SMF blows away bbpress’s performance, every time.

    I have to investigate how the heck they do that. It feels like they are using partial page caching but their performance stats say they are using the same number of queries.

    Then again I know bbpress’s weakness is not the queries, it’s all those plugins getting included and then firing up when the filters/actions first trigger.

    Bugs the heck out of me. bbPress should be as fast!

    #58887
    neyoung
    Member

    I’m learning slowly :) Figured it out.

    #60017
    neyoung
    Member

    Well, it turns out I shouldn’t play with bbpress/wpmu when I’m tired at 2am. I never ended up activating the plugin o.O . Anyways, I got the code that Detective wrote to work once I pulled my head outta my butt!

    Here’s for anyone else that has this problem…

    toss this into a file called default-role.php and put it in your my-plugins directory within your bbpress install folder.

    <?php

    /*

    Plugin Name: bbpress wpmu default role

    Plugin URI: https://bbpress.org/forums/topic/yet-another-integration-bug-no-role-set-on-registration?replies=5

    Description: Sets a default WPMU role for all new bbpress users.

    Author: Detective

    Author URI: http://www.ryuuko.cl/

    */

    function wpbb_add_user_role_rk($user_id) {

    $user = new WP_User($user_id);

    $user->set_role(get_option(‘default_role’));

    }

    add_action( ‘bb_new_user’, ‘wpbb_add_user_role_rk’);

    ?>

    #2249
    viamedia
    Member

    Here is a Korean language file for bbpress. It is just in nascent stage, but I hope it helps Korean users interested in bbpress.

    download: http://www.skhcafe.org/dev/Korean_bbpress_070815.zip

    1. Upload the ko.mo and ko.po files to bb-includes/languages. (if do not have it, create the folder.)

    2. Edit config.php – find define(‘BBLANG’, ”); and change to define(‘BBLANG’, ‘ko’);

    That’s it!

    비비프레스 한글 번역 화일을 올립니다. 개인적인 포럼 구축에 사용하려고 시도해 본 번역인데, 다듬어야 할 부분이 많습니다. 관심있는 분들이 발전시켜 주면 좋겠군요.

    설치 방법

    1. 두 화일(ko.po 와 ko.mo)을 다운로드하여 비비프레스의 언어 폴더(bb-includes/languages)에 올립니다. 폴더가 없으면 만들어 주세요.

    2. config.php 화일을 열어서 다음과 같이 고쳐줍니다. define(‘BBLANG’, ”); 을 define(‘BBLANG’, ‘ko’); 으로.

    #55098
    chrishajer
    Participant

    The bbPress forum is not really a part of the blog, it’s sort of next to it. With integration, you get login information shared between WP and bbPress, but you will need to do the CSS customization to a bbPress template to make it look like your blog.

    And yes, you can play all you want with the bbPress CSS, it won’t affect your blog at all. They’re totally separate files. I would making a new directory for your new template, so you can always revert to the default template if something goes wrong.

    If you search the forums, there are some people who have had a lot of success making their bbPress installation look like their blog.

    #55095
    ronchicago
    Member

    Not sure where things go either. I wish to integrate the forum into existing WP blog (more on this later) so I have common registered users, similar look, and I can easily go back and forth from blog to forum.

    Blog resides here = mydomain.com/blog

    or another way = public_html/blog

    I am going to change the folder name of “bbpress” to “forum” so I position just like blog rather than “inside” blog.

    mydomain.com/forum

    public_html/forum

    Right?

    #2248
    ganzua
    Member

    I’m translating bbpress to spanish (using a custom mo file) and so far there are 3 phrases that I can’t translate;

    In topic view I can’t translate;

    ” You must log in to post. “

    ” Posted 2 weeks ago # ” (in this case “weeks” appears translated but not the rest of the phrase)

    ” Allowed markup: a blockquote br code em strong ul ol li img.

    Put code in between backticks. “

    I can’t locate them, where ca I find them so I can hand translate? or what do you need to put in the .po file so it works?

    #60020
    _ck_
    Participant

    First a quick tip: when you customise templates with a plugin function embeded, instead of this:

    <? show_blah(); ?>

    do this:

    <? if (function_exists('show_blah')) { show_blah();} ?>

    and that way if you deactivate a plugin, it will fail quietly and let the page still render.

    Now to address your problem, that error can happen if something is trying to call bb_get_header before bbpress is completely loaded somehow. Or an include could accidentally get renamed. Or some whitespace got inserted at the end of a plugin somewhere (after the ending ?>)

    You need more info. Go into your config.php and add this as the first line or so:

    error_reporting(E_ALL);

    And see what it throws at you.

    #59988
    _ck_
    Participant

    That’s exactly right about Dreamhost.

    I am working on a technique to try to load all the bbpress includes and plugins directly from the eaccelerator memcache instead of seeking on the disk first to check if they have changed (and just let the mysql plugins registry manage that).

    I suspect I can eliminate the 400ms lag if I can pull that off. Not an easy feat though. Requires a replacement bb-settings.php

    Oh and you’re probably paying per month for your dedicated what I pay per year for my VPS (I’ve migrated twice to get better neighbors):

    === benchmark & query results ===

    12:08:28 up 25 days, 3:37, 0 users, load average: 0.07, 0.04, 0.00

    total page time: 0.045 seconds.

    time to reach each section:
    bb_underscore_plugins_loaded = 0.005
    bb-polls.php loaded = 0.005
    bb-signatures.php loaded = 0.005
    report-post.php loaded = 0.006
    my-views.php loaded = 0.006
    bb-topic-views.php loaded = 0.006
    user-topics-to-favorites.php loaded = 0.006
    admin-post-anything.php loaded = 0.006
    tweaks.php loaded = 0.006
    my-views-most-least-views.php loaded = 0.007
    my-views-started-participated-topics.php loaded = 0.008
    my-views-installed-available-plugins.php loaded = 0.008
    ignore-member.php loaded = 0.009
    bb_plugins_loaded = 0.009
    bb_init = 0.011
    bb_index.php_pre_db = 0.011
    bb_index.php = 0.016
    front-page.php = 0.016
    header.php = 0.017
    logged-in.php = 0.018
    footer.php = 0.045

    time to render page: 0.0429 seconds (query time subtracted)

    total query count: 12

    total query time: 0.0021 seconds

    slowest call was # 1 : 0.0005 seconds
    SELECT * FROM bb_forums LIMIT 1 server:dbh_local connect: 0.38ms

    #60016
    neyoung
    Member

    I’ve got μ loaded through the config.php file. I’ll look into some of the μ functions and see what I can do.

    I don’t think that trk_addDefaultRole function is being called from bb_new_user at all. Is there a way I can test to see if it is?

    #60015
    fel64
    Member

    I don’t know why nothing would happen, but I’d advise you to use the API instead of a db query. If μ isn’t already loaded when you load bb, it might be good to load it when someone registers and use a μ function to set their role instead.

    #60014
    neyoung
    Member

    Sorry for the duplicate post, I think I was tired when I posted the other one and I’d sort of forgot about it.

    Anyways, I’ve been playing with the two bits of code and I think I’ve ‘almost’ got it working. If I execute Detectives query manually from the terminal it works, but for some reason when I put it all in a little plugin nothing happens. Is there a type-o or a noob error somewhere?

    `<?php

    /*

    Plugin Name: bbpress wpmu default role

    */

    function trk_addDefaultRole($user_id) {

    global $bbdb;

    $bbdb->query(“INSERT INTO wp_usermeta ( user_id, meta_key, meta_value ) VALUES ( ‘$user_id’, ‘wp_1_capabilities’, ‘a:1:{s:10:”subscriber”;b:1;}’ )”);

    }

    add_action(‘bb_new_user’, ‘trk_addDefaultRole’);

    ?>

    #2247

    Got a bit of a weird error happening – Let me begin

    Yesterday I did a bit of work sorting out my quite frankly flaky forums – Got everything working quite nicely but then I decided to remove the Avatar Upload plugin because I couldn’t get it looking nice against the users in the forums in the time I had left

    However having turned it off I then found I couldn’t access any of the user profile pages including my own – I just get a completely blank page

    I’ve removed the calls to show the avatar on the profile page itself but its still falling over

    The site error log is reporting the following:

    [Wed Aug 15 04:24:42 2007] [error] [client 86.158.248.246] PHP Fatal error: Call to undefined function bb_get_header() in /home/httpd/vhosts/<sitename>/httpdocs/forums/profile.php on line 1, referer: http://<sitename>/forums/

    Now I know that this simply isn’t true – bb_get_header() is part of the core and its more likely that one of the plugins has gone screwy but I’ve tried turning off the plugins but I’ve done quite a bit of customisation and the majority of the plugins don’t die quietly – they cause major blow-outs if not available so I’m now having to go through all my template code and put if blocks around them to stop them

    The list of plugins I have installed are as follows

    Limit Latest Discussion 0.73

    Simple Onlinelist 1.5

    My Views 0.05

    BBPress Private Messaging 0.80

    Posts since last visit 0.5-beta

    Report Post 0.11

    Avatar Upload 0.8.2

    Private Forums 5.2

    Use Display Name 0.7.2

    bbPress signatures 0.14

    My Views module – Started/Participated Topics 0.05

    Any help would be really appreciated

    #59986
    _ck_
    Participant

    Yeah dreamhost certainly does suck. I just have a $20 per year promo account that I completely forgot about until recently when I wanted to test bbpress on various hosts (I’m looking for other super cheap hosts to try it on if you know of any, especially pay-as-you go like nearlyfreespeech.net)

    What’s really strange is that some other forum software works MUCH faster on dreamhost and I am trying to figure out why. Take a look at WP plugin author GamerZ’s SMF (simple machines forum, evolved from YaBB) which is on another Dreamhost node:

    http://forums.lesterchan.net

    It’s incredibly responsive. Not even running an opcode cache. Of course SMF has half a decade of development behind it, but still, it’s impressive. I suspect they use partial page caching somehow. Meanwhile GamerZ’s WP blog running on the same account, crawls at times.

    #60013
    Trent Adams
    Member

    I would imagine that since no one answered the first time, you won’t get much more on a duplicate type thread…..

    Trent

Viewing 25 results - 60,226 through 60,250 (of 64,515 total)
Skip to toolbar