Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,951 through 27,975 (of 32,505 total)
  • Author
    Search Results
  • timskii
    Member

    Broken JavaScript is a non-trivial, since it will trigger a very visible error message for some users… on essentially every topic page, when logged in. The error isn’t FireFox-specific.

    Commenting out the contents of the “addLoadEvent( function() { // TopicMeta” block of code in topic-js.php appears to remove the error without creating new issues: The underlying AJAX behaviour is broken anyway. A proper fix would be appreciated.

    Edit: Ok… playing with *this* forum, it seems there is already a fix: The equivalent code in https://bbpress.org/forums/bb-includes/js/topic-js.php?ver=433 appears to work just fine.

    #63827
    _ck_
    Participant

    Let’s put it this way – bbPress is running with slugs and rewrite rules on literally thousands of servers, so the problem is likely your setup, not necessarily bbPress.

    mod_rewrite should be virtually 100% internal to apache and not really depend on the OS/filesystem underneath but there’s always a chance for something to be interfering.

    If you are using the bb-admin/rewrite-rules.php in your htaccess and you have slugs turned on and it doesn’t work, then I would bet that you have another mod_rewrite rule somewhere that is conflicting, either in the same htaccess file or in a directory above it. Do NOT use multiviews. I cannot help you if you are using multiviews.

    I need much more information, like your htaccess file, and any htaccess file in directories above your forum. Is bbpress running in /forums/ or in the webroot (ie. / )

    Also are you running wordpress at the exact same time as bbpress? I don’t mean standalone integration, I mean loading within each other. Because I am not sure how that would be handled and I never recommend it.

    #63711
    Covi
    Member

    I have troubles too with cookies, login inconsistent between WordPress and BBpress:

    Login on WordPress -> Log out on BBpress and vice versa :(

    PD: Until the latest version, with the hack for 0.83, this was working fine

    Web example: http://www.laguardiadejaen.com/web/

    :(

    #63999
    _ck_
    Participant

    I think they mean the block words would not be visible to non-members that aren’t logged in. Not to allow anonymous posting.

    A weird request but easily doable – you just take the word censoring plugin and add a if ( !bb_is_user_logged_in() ) { add_filter(blah blah blah)} to it’s add_filter.

    #63979
    _ck_
    Participant

    The bb->load_options = true brought the load of the cpu to 5 times that of the one with 30+ queries but I guess that comes from not having that many topics in the newly installed Db so I really don’t know what to make of this.

    Turn on (or increase) your mysql caching. It’s fairly obvious you are running either without any or not enough of it if you can detect any load increase with load_options=true. The query to load all options would be exactly the same across all instances for all users and mysql would pick up on that immediately and keep it in the cache, always. At least that’s what happens on my installs. I don’t have a site with 50k views a day but I have a 0.8.2.1 version with 15k views a day and it runs very fast.

    Also make sure you use a php opcode cache like eaccelerator, xcache, etc. Best thing you can do for bbPress or WordPress.

    0.9 of bbPress is not some kind of radically different change since 0.8 – there are many bug fixes and a few features added but the db calls are almost identical (some plugins however can be sloppy about not caching queries so that can cause issues).

    Try my bb-benchmark if you want to see what happening behind the scenes for each page generated.

    #63978
    andersson
    Participant

    :)

    ok ok, I believe you. 0.9.0.1 is good enough to give a try.

    Just one more thing: I’m guessing you have something like 100,000 pageviews a day in this forums which would render about 3,000,000 queries (moderate estimate) if you run bbpress 0901 out of the box. Your servers are cool with this? RAM at OK level?

    No need for exact figures but just a notion of what’s been your experience so far would be golden. 3,000,000 queries a day means around 35 queries per second. That’s some load.

    Thanks again.

    EDIT: The reason why I’m asking is that I’d really like to continue to use bbpress as my primary PHP-framework for all my sites that has logon/user needs as I’ve had a hard time to find a more suitable framework to my needs.

    #64073

    In reply to: simple bbdb query?

    Sam Bauers
    Participant

    It’s a lot safer to use the API calls.

    bb_get_user($user_id) will return an object filled with the users data and meta data.

    #63989
    chrishajer
    Participant

    If you have access to the database with phpMyAdmin, you can do something like this:

    Create a new user in bbPress. Check your email for the password email. Save that password somewhere. Now, open phpMyAdmin and take the password hash from the new user, and paste it into the password hash field for the admin user. Now, log into bbPress with your admin username. Delete the new user if you like.

    If you don’t have access to the database, then why not just reinstall?

    I think you used to be able to put a line in your config.php like this: $bb->new_keymaster = true; Then run bb-admin/install.php again.

    Read more:

    https://bbpress.org/forums/topic/cant-login-1#post-795

    #3140
    _ck_
    Participant

    It was really bothering me how a page full of links was wasting so many bytes on full absolute URI’s with the domain name, etc. when all it needed was a tidy relative URL. The front page alone is 4k bigger just because of all the full URIs on the tag cloud and views, etc.

    ie. http://www.bbpress.org/forums/forum/plugins

    vs. /forums/forum/plugins

    (multiply that by a few hundred)

    So it dawned on me just now that it’s fairly easy using filters to make all the urls relative. Just for safety, we don’t kick in the relative URLs until bbPress has gotten past the header section of the template. This makes sure that redirects, stylesheets, and javascript is handled properly.

    function bb_relative_uri($r) {return "/forums/"; }	// change forums to your path
    function bb_relative_domain($r) {return ""; }
    function bb_relative() {
    add_filter( 'bb_get_option_domain','bb_relative_domain',255);
    add_filter( 'bb_get_option_uri','bb_relative_uri',255);
    } add_action('bb_head', 'bb_relative',255);

    .

    In some cases, relative URLs actually makes Internet Explorer cache better so this may be helpful for subtle speedups too.

    I haven’t discovered anything broken by this yet but be sure to let me know if you run into anything.

    #3138
    Aeterno
    Member

    I can’t progress past step 1 of the installer… I keep getting this bloody error….

    Fatal error: Cannot redeclare bb_user_sanitize() (previously declared in /home/xxxxxx/public_html/forum/bb-includes/formatting-functions.php:125) in /home/xxxxxx/public_html/forum/bb-includes/deprecated.php on line 285

    #64026

    In reply to: New .pot files?

    Thanks!

    Swedish translation in the making now :)

    #63267

    In reply to: PHP Error

    Covi
    Member

    Why this change in the plugins system?? oO

    Thx chrishajer ;)

    #64000
    Sam Bauers
    Participant

    There is a line in the wp-config.php file that says:

    require_once(ABSPATH.'wp-settings.php');

    .

    If you add any code after that line it won’t be applied.

    #63897
    Sam Bauers
    Participant

    You should really triple check for blank lines or spaces or null characters at the start of your bb-config.php file. This part of the error: output started at /var/www/virtual/mywebsite/forums/bb-config.php:1 points to that being the problem.

    You should go into the start of the file and delete <?php completely and press the delete key a few times at the start of the file. Then add <php? back to the start of the file.

    You didn’t upload your files using Dreamweaver did you? That program has an “option” to add a utf8 BOM character to the start of files, which causes similar behaviour.

    #63972
    Sam Bauers
    Participant

    A bunch of options are now pulled from the database.

    You will see a significant reduction in queries if you add this line to your bb-config.php file…

    $bb->load_options = true;

    #63965
    Sam Bauers
    Participant

    You have just described one of the Google Summer of Code ideas that might be going ahead.

    https://codex.wordpress.org/GSoC2008#Web_Forums_Export.2FImport_Standard_and_Tools

    This is something I will be pursuing to create better interoperability between different forum platforms.

    #56426

    In reply to: invision board?

    Sam Bauers
    Participant

    We will potentially be adding import/export features during the Google Summer of Code program.

    #63914

    In reply to: Post author name?

    Sam Bauers
    Participant

    Use:

    <?php post_author(); ?>

    #3116
    m415
    Member

    What is the code for posting the author’s name in bbpress? I know <?php post_author_link(); ?> is the name with the link, but is there a different way to get just the name?

    #63912
    seidl
    Member

    Man, I should have thought of that. :P I turned off the “pretty” permalinks until I figure out how to use them without breaking the forum. Until then I’ll see if there isn’t already a post about pretty permalinks here, or else I’ll create one.

    Thanks.

    John Conners
    Participant

    Having done a completely new install of bbPress 0.9.0.1 (to make sure there wasn’t a problem with my existing templates / plugins), when I log in and browse to any topic page I get a javascript error on the following line in bb-includes/js/topic-js.php:

    favoritesToggle[ 1 === isFav ? 'removeClass' : 'addClass' ]( 'is-not-favorite' );

    Apparently favoritesToggle[....] is not a function, according to Firefox.

    Apart from that, great work!

    #3118
    silent1643
    Member

    okay not sure if this is the right forum category but i’ll ask here

    how can i make the forum display on a wordpress page? is there an object html code or something for doing this?

    ie i want the same header, footer, and sidebar as my blog, i just want the bbpress forum to show up in my content window where a normal blog post would be shown

    thanks in advace

    #63814
    Swap
    Member

    Thanks, Sam! Love the new version. I stopped using bbpress until yesterday when one of my clients needed a complicated setup. The new wp integration is so easy :)

    #63850
    lilnigsta
    Member

    Hey guys thanks for all your work on this project, I appreciate much, now I’m off to open my new present. :)

    #63812
    Swap
    Member

    CK, I guess they released 0.9 stable just when I was working on the beta build. What do you recommend? Should I do a file refresh or stick with whatever I have? :)

Viewing 25 results - 27,951 through 27,975 (of 32,505 total)
Skip to toolbar