Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 43,001 through 43,025 (of 64,513 total)
  • Author
    Search Results
  • #90496
    hpguru
    Member

    Thank you!!! This work fine.

    Have a nice day!

    #90495

    brilliant, thanks zaerl.

    While you’re here mate, are there any more functions like that (for defining testing for pages) ?

    Thanks

    #90494
    zaerl
    Participant

    bb_is_front()

    #90493

    No, there is no equivalent to the best of my knowledge.

    You could write one yourself that tests for the URL or basename of the file/folder you’re in – it’s not ideal, but very little is here.

    #90492
    Gautam Gupta
    Participant

    You can use the bb_is_front function (my previous comment went in spam).

    #90491
    hpguru
    Member

    But is there any function to title. I need slogan in web browser title and need “if is home”. If it is right, then show – My forum slogan.

    #90490
    Gautam Gupta
    Participant

    You can either put the code in front-page.php as Kevin told or use if ( bb_is_front() ) { /* Code Here */ }

    #90489

    front-page.php in your theme folder.

    Alternatively, I’ve a WordPress mimic plugin I’ll be releasing next week which should solve alot of WP to bbP issues.

    #90451
    ethanthekiwi
    Participant

    During the bbPress install it told me that I had to create a bb-config.php file and upload it to the root directory. I just copied the text, created the file and dropped it in without looking at it (I am not very familiar with php yet). Here is what it looked like on my server before:

    <?php

    /**

    * The base configurations of bbPress.

    *

    * This file has the following configurations: MySQL settings, Table Prefix,

    * Secret Keys and bbPress Language. You can get the MySQL settings from your

    * web host.

    *

    * This file is used by the installer during installation.

    *

    * @package bbPress

    */

    // ** MySQL settings – You can get this info from your web host ** //

    /** The name of the database for bbPress */

    define( ‘BBDB_NAME’, ‘bbpress’ );

    /** MySQL database username */

    define( ‘BBDB_USER’, ‘root’ );

    /** MySQL database password */

    define( ‘BBDB_PASSWORD’, ‘There was a password here’ );

    /** MySQL hostname */

    define( ‘BBDB_HOST’, ‘localhost’ );

    /** Database Charset to use in creating database tables. */

    define( ‘BBDB_CHARSET’, ‘utf8’ );

    /** The Database Collate type. Don’t change this if in doubt. */

    define( ‘BBDB_COLLATE’, ” );

    /**#@+

    * Authentication Unique Keys.

    *

    * Change these to different unique phrases!

    * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/bbpress/ WordPress.org secret-key service}

    *

    * @since 1.0

    */

    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’ );

    /**#@-*/

    /**

    * bbPress Database Table prefix.

    *

    * You can have multiple installations in one database if you give each a unique

    * prefix. Only numbers, letters, and underscores please!

    */

    $bb_table_prefix = ‘bb_’;

    /**

    * bbPress Localized Language, defaults to English.

    *

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

    * language must be installed to a directory called “my-languages” in the root

    * directory of bbPress. For example, install de.mo to “my-languages” and set

    * BB_LANG to ‘de’ to enable German language support.

    */

    define( ‘BB_LANG’, ” );

    ?>

    There were no spaces on or before the first or last lines. This is what it looked like (aside from me removing the password). I noticed the ‘put your unique phrase here’ deal and went ahead and filled those in following the instructions in the comment before it. Then I went to the page again and go the same error.

    @chrishajer

    I didn’t set the server up, but I believe it is a VMware WordPress application http://www.turnkeylinux.org/wordpress. I am afraid I don’t know where the php error log would be. The warnings are on the page itself not in a popup or anything. The url of the page with the warnings is mysite.org/bbpress/bb-login.php. I hope that helps.

    #34630
    hpguru
    Member

    I use on my WordPress function ´<?php if (is_home()) { echo ” – My blog slogan”;} ?>´ on index.php.

    But now i’m back to bbPress. Nothing in SMF or phpBB to me, try it and forget it… Install 1.0.2 and now i need slogan to just index.php.

    Thank you.

    #34629

    I’ve spent the last week working with a client on a rather large WP/bbP setup. One of the real joys of this project is that it’s large enough for me to get some time in for more than asthetics and QA. Hence, a few more posts her this last week and some code, and some BackPress help.

    Anyway, one of my junior developers came up with an interesting stat the other day that I’ve been looking into, namely Deep Integration and it’s hit/performance. I’m sure almost all of this will be obvious to a great many of you, but I thought I’d throw out some figures.

    Single Loading of software after install

    WordPress2.9.2		16 database queries
    WordPress30 19 database queries
    bbPress0.9 09 database queries
    bbPress1.0.2 16 database quieres

    Single Loading of software after setup

    WordPress2.9.2		19 database queries
    WordPress30 23 database queries ***1
    bbPress0.9 10 database queries
    bbPress1.0.2 18 database quieres

    Now the first thing I noticed is that WP3.0 took a leap in queries. Once it takes you 20+ queries to load a simple homepage with no plugins my spider sense is tingling. Turns out that WP3.0 is somewhat sruggling with it’s new menu system. ***1 It takes 6 queries minimum, plus 1 query for each taxonomy type used in the new menu (apart from hardcoded links with don’t get an additional query). That’s a heck of a leap for something as simple as a menu. I mean, menu’s are rarely dynamic – they don’t change that often. For this particular website, as will probably be the way for the others I’ve moved to WP3.0, I’m looking at a minimum of 8 database queries simply to load the data needed to display the name and link in a menu. To be clear, that’s over 30% of database queries on a clean install of WordPress that are being called by this.

    As cool as the drag/drop facility is, make every menu item a custom link and you’ll save a minimum of 2 db calls per page load.

    Even better, hardcode the actual menu and save yourself 8 database calls per page load (you can hardcode an array for the walker class to iterate through and produce the same result)

    Single loading of software after basic/core plugins:

    Now, I believe that no WordPress (nor bbPress) install can run as expected these days without certain plugins. Your thoughts on this may vary ofcourse but I find that I need a minimum of WP-Super-cache, XML-sitemaps, WP-security-scan, wp-pagenavi, headspace/All-in-one, WP-stats, and probably a few others that I can’t remember off the top of my head. Oddly for bbPress I need more plugins.

    WordPress2.9.2		23 database queries
    WordPress30 27 database queries ***1
    bbPress0.9 18 database queries
    bbPress1.0.2 29 database quieres

    That’s quite a leap. But I’m confident that I could bring down the bbPress Queries with some time spent considerably, and I could enable caching from WordPress. I’m not posting this data in itself as definative stats for everyone, so there could be optomization made for sure.

    Deep Integration of WP3.0 and bbPress1.0.2:

    WP3 & bbP1			56 database quieres

    56! With virtually no caching availible (as a plugin, for the average user with no .ini or shell access).

    56! On every page (+/- a few queries).

    Deep Integration of WP3.0 and bbPress1.0.2 – after first pass:

    WP3 & bbP1			43 database quieres

    Ok some quick theme changes and delayed/circumvented loading of certain things and I’ve brought it down considerably.

    But the fact still remains that this is a truly crazy amount of database queries per page load.

    Anyway, after presenting this (in a better looking format) to the IT director of the client, I’ve managed to re-assign myself 2 weeks to come up with a planB. We want something that allows us the functionality of Deep Integration, but without the MASSIVE overhead. I have an idea down on paper, but right now I just wanted to post a few figures and give folks a heads up.

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

    Edit: If you want to see something fun, try this:

    Add to your bb-config.php and your wp-config.php

    In bb-config.php and wp-config.php add the following line:

    define('SAVEQUERIES', true);

    Then add the following code to your footer.php in your theme (right at the bottom)

    wordpress footer

    global $wpdb;
    echo "[pre]";
    print_r($wpdb->queries);
    echo "[/pre]";

    bbpress footer

    global $bbdb;
    echo "[pre]";
    print_r($bbdb->queries);
    echo "[/pre]";

    *** replace the square brackets [] html brackets (they’re not showing up correctly)

    #87860
    mr_pelle
    Participant

    I just noticed that download links at Download page should use a background image, but it cannot be found at the moment.

    Full background attribute: url("images/button-grad.png") repeat-x scroll left top #333333

    Wow, now background attribute is gone, so download links are nearly invisible… =P

    #90467

    In reply to: bbPress Security

    _ck_
    Participant

    Someone copied my plugin (they used ALL of my lines then added a few) but they defeated the entire purpose.

    Their code only runs if there is an active user, if someone is not logged in and there is a loophole, the code would run unchallenged.

    Plus they exclude admin, so if there is a hacked account, the code is also bypassed.

    Here is my improved version of my original code

    if (strlen($_SERVER['REQUEST_URI'])>255 ||
    preg_match('@(eval|base64|unescape)[^a-zA-Z0-9]@si',$_SERVER['REQUEST_URI']))
    {
    header('HTTP/1.1 414 Request-URI Too Long');
    header('Status: 414 Request-URI Too Long');
    header('Connection: Close');
    exit;
    }

    #90374
    chrishajer
    Participant

    If you don’t want a table prefix, I suppose you could go into the bbPress code and eliminate all the references to the WordPress table prefix in the installer (and possibly elsewhere.)

    It would be much easier to rename the WordPress tables and use a table prefix than hack the bbPress code. You tried once and did not have a good result. Maybe you need to try again and figure out where it went wrong if you really want integration between bbPress and WordPress. Either way, it’s going to require some work on your part due to a decision you made earlier to eliminate the WordPress table prefix.

    #90463

    In reply to: Installation question

    chrishajer
    Participant

    bbPress is not a plugin for WordPress (unlike BuddyPress, which IS a WordPress plugin, and includes forums that are based on bbPress.)

    You install bbPress along side WordPress (or by itself even, if you want) but it does not become part of your WordPress installation like a plugin.

    Related recent post:

    https://bbpress.org/forums/topic/instalation-folder#post-70542

    #90466

    In reply to: bbPress Security

    chrishajer
    Participant

    I think it would probably work if you changed the user check to reflect bbPress users and not WordPress users and levels.

    _ck_ posted something similar a while back on the WordPress.org trac site about blocking long query strings. Maybe she will post here about this.

    simple WordPress and bbPress security plugin to block long requests

    https://core.trac.wordpress.org/ticket/8152

    gerikg
    Member

    I use deep integration for WP themes that have their own option. When you change something in the option bbPress follows.

    #90373
    gerikg
    Member

    If you don’t enter a prefix, bbPress assumes you don’t want the integration.

    #34627

    Topic: bbPress Security

    in forum Installation
    pagal
    Participant

    Can I use this wp plugin for bbpress?

    < ?php

    /*

    Plugin Name: Block Bad Queries

    Plugin URI: http://perishablepress.com/press/2009/12/22/protect-wordpress-against-malicious-url-requests/

    Description: Protect WordPress Against Malicious URL Requests

    Author URI: http://perishablepress.com/

    Author: Perishable Press

    Version: 1.0

    */

    global $user_ID;

    if($user_ID) {

    if(!current_user_can(‘level_10’)) {

    if (strlen($_SERVER) > 255 ||

    strpos($_SERVER, “eval(“) ||

    strpos($_SERVER, “CONCAT”) ||

    strpos($_SERVER, “UNION+SELECT”) ||

    strpos($_SERVER, “base64”)) {


    @header
    (“HTTP/1.1 414 Request-URI Too Long”);


    @header
    (“Status: 414 Request-URI Too Long”);


    @header
    (“Connection: Close”);


    @exit
    ;

    }

    }

    }

    ?>

    And tell me how can I make my forums more secure?

    Nedd Tips and Tricks!!

    And did anyone make any security concern plugin for bbpress?

    Thanks,

    Pagal

    #87858

    I contacted him through his personal blog (which I felt very guilty about incidently).

    I’m seeing him in Manchester in 3 weeks for the WordCamp, and was rather hoping my first sentance would be “thanks so much for the help” and not have him see a middle aged man crying the whole way through the weekend.

    He didn’t disappoint.

    http://backpress.automattic.com/ticket/18 (the blocker for 1.0.3) and http://backpress.automattic.com/ticket/25 (the annoying -> bug) have both been fixed and closed.

    If you’re listening BackPress team, first drinks on me!

    Thanks

    Kev

    #87857
    chrishajer
    Participant

    You must have summoned Westi somehow.

    http://backpress.automattic.com/ticket/18

    #90440

    In reply to: Theme not working!!!

    It’s our pleasure.

    You took screenshots, you gave us the info we wanted and we solved the bug.

    Plus its a good place to point people (we get this question about once a week).

    Enjoy your bbpress forum!

    #90438

    In reply to: Theme not working!!!

    Great! Screenshots make life so much easier.

    Ok so you physically know the files are there, but can’t load them in the browser (we get a 404).

    If you’ve had htaccess issues before, I’d have a look there first, but really if it’s loading bbPress it shouldn’t be an issue (always good to rule things out though).

    My gut, growing by the day sadly, tells me it’s a permissions issue. Which is not to say you’ve done anything wrong. Make sure that the “my-templates” directory and all directories/subfolders are at 0755.

    Test again. if things work, then change everything under the “my-templates” directory to 0644, and confirm working.

    Finally, and this is out on a limb a little, check you’re not running any caching plugins in wordpress.

    If that doesn’t work, we’ll see what we can find in the back (the back is a mythical place apparently)

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

    EDIT: Actually, do you have some form of htaccess command to change everything from http://www.shoeynet.com to just http://shoeynet.com ?

    That might not be it, but it’s something else to knock off the list.

    #90433

    In reply to: Theme not working!!!

    chrishajer
    Participant

    The files are not where you think they are, or the permissions are wrong. Or you have something weird going on with your WordPress .htaccess file. But if a physical file or directory exists on the server (like your forums directory) WordPress won’t handle the request for it.

    Can you post a screenshot from your FTP program showing the location of all the theme files in relation to your bbPress installation?

    #90432

    In reply to: Theme not working!!!

    Don’t worry about Deep Integration. If you don’t know it, you’ve not got it, and that makes life easier :)

    If you can’t load the stylesheet of the theme you want to use in your browser (and therefore independant of both wordpress and bbpress – as you’re essentially just loading a text file from a server), then that’ll be the issue.

    Activating the theme you’re after would be great, as would telling us what folder it’s in and what it’s called :)

Viewing 25 results - 43,001 through 43,025 (of 64,513 total)
Skip to toolbar