Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '\"wordpress\'

Viewing 25 results - 18,576 through 18,600 (of 26,846 total)
  • Author
    Search Results
  • #87298

    In reply to: wordpress integration

    Add the code just after this :

    <?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
    */

    #87137

    You guys are missing out something. I will come up with something to help once I am free from my schedule.

    #87297

    In reply to: wordpress integration

    kikko088
    Member

    nothing, I try to add also this line but nothing…:( clean install of bbpress and 0 plugin wp.

    my bb-config.php

    <?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’, ‘mio’ );

    /** MySQL database username */

    define( ‘BBDB_USER’, ‘root’ );

    /** MySQL database password */

    define( ‘BBDB_PASSWORD’, ‘root’ );

    /** 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’, ” );

    require_once(dirname(__FILE__) . ‘/../wp-load.php’);

    OR

    (

    /* Deep integration */

    if ( !defined(‘ABSPATH’) & !defined(‘XMLRPC_REQUEST’)) {

    define(‘WP_USE_THEMES’, false);

    include_once(dirname(__FILE__) . ‘/../wp-blog-header.php’ );

    header(“HTTP/1.1 200 OK”);

    header(“Status: 200 All rosy”);

    }

    )

    ?>

    I I’m not expert on php, I add correctly the line?

    #87136
    jakshi
    Member

    @huafeihua116

    Not at all.

    @ashfame

    I agree with “salts were never included in sample config file”, When I do integrations – I get salts values from options.

    I and many other people will very happy if developers of bbpress says us what difference between your good working wordpress and bbpress cookie integration, and their wordpress and bbpress cookie integration that don’t work.

    But for now – it’s still unresolved issue :)

    #87296

    In reply to: wordpress integration

    Plugins can cause that, timeout issue, memory limit but I would suggest that try this code for deep integration

    /* Deep integration */
    if ( !defined('ABSPATH') & !defined('XMLRPC_REQUEST')) {
    define('WP_USE_THEMES', false);
    include_once(dirname(__FILE__) . '/../wp-blog-header.php' );
    header("HTTP/1.1 200 OK");
    header("Status: 200 All rosy");
    }

    and remove your line of code which includes wp-load.php

    #87135
    ekitel
    Member

    I just tried installing on a different host, gator as opposed to dreamhost but it still doesn’t work.

    I find that when you logout of one it does automatically log you out of the other. Also when you log in into one when already logged into the other it logs you out of the other, so effectively you can only be logged into one at a time.

    When looking at the cookies that are set I see that WP sets 2:

    wordpress_ada20ea306634ad9f83718aa733fc431

    wordpress_logged_in_ada20ea306634ad9f83718aa733fc431

    When logging into BBP it only sets 1:

    wordpress_logged_in_ada20ea306634ad9f83718aa733fc431

    I notice in WP the values for wordpress_ and wordpress_logged_in_ don’t match, are they supposed to be different?

    If already logged in with WP and then logging in with BBP I notice that the value of wordpress_logged_in_ changes. I’m sure that’s why if you go back to WP then you find yourself logged out.

    As far as I can tell the value set for wordpress_logged_in_ by WP is not recognized by BBP so you are not automatically logged in to it. I wonder why that is if I’ve followed all the cookie integration steps?

    #85184

    Oh, and on that note (not to steal from the other thread).

    I’ve only ever used 32 length keys, never 64.

    Again, mightprobably will have 0 impact, but right now it works so…

    I’ve also copied the SALTs from the wordpress and bbpress options page onto the config file.

    Again, probably 100% overkill, but right now it works so…

    This may sound daft, but I’ve accepted that integration isn’t going to be the exact science I think it should be, so i just try to cover the bases.

    #85183

    Yo dudes,

    @Zaerl

    I know matey, wasn’t meant in a bad way at all :)

    In terms of backward compatability, there’s quite a bit of change to how constructs and classes are handled, and depending on when the code was written, could cause some hidden issues.

    bbPress 0.7,0.8 & 0.9 weren’t major rewrites of any of the basic backend code. A huge chunk of them were written by Matt over a weekend some 7 years ago and the move to backPress was a definative leap (fully awesome OOPness – as much as its kinda useless ).

    So what i meant wasn’t just the leap from PHP4final to PHP5; but also things that were not aimed for PHP4 but that PHP4 supported. i.e. The code that was still in bbPress0.9 that was written when PHP3 was still around.

    @Ashfame

    Long time bro.

    I know the problem of which you speak mate, and while not knowing exactly which bit of code makes it go away, I’ve not had it in ages.

    Login in wordpress >>> check that i’m “logged in” on bbPress >>> access admin.

    Yeah it all works. I’ll have to delve into the code when home, but I think the sites I’m testing on are using “super anne” code/plugin. I also doubt these are on the latest versions of bbpress/wordpress. Frankly I’ve accepted that installing bbpress means not upgrading wordpress.

    As i recall from the long long long thread in 2008, the key thing was having:

    in wordpress config:

    define(‘COOKIE_DOMAIN’, ”);

    define(‘COOKIEPATH’, ‘/’);

    in bbPress config:

    $bb->authcookie = ‘wordpress_’;

    $bb->cookiedomain = ”;

    $bb->cookiepath = ‘/’;

    $bb->sitecookiepath = ”;

    The basic theory was that the bbPress admin, wasn’t reading the wordpress cooking properly or at all, something to do with when it was assigning/pulling data from the “$bb” global variable; so it wouldn’t let you access the admin panel of bbPress. But by setting this info in the config (loaded first) it solved it.

    That may be pie in the sky my friend, but thats what my brain is telling me.

    #87454
    zaerl
    Participant

    and i get alot of errors

    What errors? Please notice that bbPress isn’t a WordPress/buddypress plugin but a standalone software.

    #87134

    I have working setups with 64length keys. Nicely integrated with only the issue of bbPress dashboard redirection when logged in from WordPress side (users don’t need have access to bbPress dashboard, so its just for admin & mods). Other than this the integration works flawlessly for me. Both simple and deep integration.

    @jakshi

    AFAIK, salts were never included in sample config file, if they are not present they are generated internally and then saved.

    kieranyo
    Member

    After the success with the Nissan Cube Owners Club forum (http://forum.cubeownersclub.co.uk/), when one of my clients asked about a forum I decided again to use BBPress.

    I run the website for a UK TV Nature Presenter called Kate Humble and wanted to use a forum that could be integrated with the rest of the site (which is in WordPress) and have the same look and feel. I think it’s turned out pretty nicely and the new users are enjoying and participating.

    The URL is http://katehumble.com/forum

    It’s running a very customised theme obviously, a new homepage and I’ve also removed the tags feature.

    I’ve installed a few plugins, modified a few too and I’ve also implemented the new Facebook “like” feature on the top of every topic. If I get time (and enough interest) maybe I’ll try and implement this as a BBPress plugin.

    Because this time it lives in a sub folder instead of a sub domain, one of the technical hurdles I had to get round was the WordPress .htaccess file conflicting with it so all I had to do was put 1 line of code in the root .htaccess file telling it to ignore (and stop processing) everything in /forum.

    Let me know what you think :)

    #85181

    @kevin

    Tell me this –

    • login into WordPress
    • It should be reflected on bbPress side. Right?
    • Try to access bbPress dashboard. Are you able to?

    This seems to be a random problem of all integrations I have done so far.

    #87133
    huafeihua116
    Member

    Thanks jakshi!

    #85180

    I absolutely agree that this is far from a “guarenteed” fix, but I’ve long found that the more things we can rule out when going through a bbPress to WordPress integration the easier life becomes.

    For example, I still define the following in my WordPress config file:

    define(‘AUTH_KEY’, ‘authkey’);

    define(‘SECURE_AUTH_KEY’, ‘secureauthkey’);

    define(‘SECURE_AUTH_SALT’, ‘secureauthsalt’);

    define(‘LOGGED_IN_KEY’, ‘loggedinkey’);

    define(‘LOGGED_IN_SALT’, ‘loggedinsalt’);

    define(‘SECRET_KEY’, ‘secretkey’);

    define(‘SECRET_SALT’, ‘secretsalt’);

    define(‘NONCE_KEY’,’nonce_key’);

    define(‘NONCE_SALT’, ‘nonce_salte’);

    define(‘COOKIE_DOMAIN’, ”);

    define(‘COOKIEPATH’, ‘/’);

    define(‘CUSTOM_USER_TABLE’, ‘wp_users’);

    define(‘CUSTOM_USER_META_TABLE’, ‘wp_usermeta’);

    And the following in my bbPress config file:

    define(‘BB_AUTH_KEY’, ‘authkey’);

    define(‘BB_SECURE_AUTH_KEY’, ‘secureauthkey’);

    define(‘BB_SECURE_AUTH_SALT’, ‘secureauthsalt’);

    define(‘BB_LOGGED_IN_KEY’, ‘loggedinkey’);

    define(‘BB_LOGGED_IN_SALT’, ‘loggedinsalt’);

    define(‘BB_SECRET_KEY’, ‘secretkey’);

    define(‘BB_SECRET_SALT’, ‘secretsalt’);

    define(‘BB_NONCE_KEY’,’nonce_key’);

    define(‘BB_NONCE_SALT’, ‘nonce_salte’);

    $bb->wp_siteurl = ‘http://www.mydomain.com/&#8217;;

    $bb->wp_home = ‘http://www.mydomain.com/&#8217;;

    $bb->wp_table_prefix = ‘wp_’;

    $bb->user_bbdb_name = ‘XXXXX’;

    $bb->user_bbdb_user = ‘XXXXX’;

    $bb->user_bbdb_password = ‘XXXXX’;

    $bb->user_bbdb_host = ‘localhost’;

    $bb->custom_user_table = ”;

    $bb->custom_user_meta_table = ”;

    $bb->authcookie = ‘wordpress_’;

    $bb->cookiedomain = ”;

    $bb->cookiepath = ‘/’;

    $bb->sitecookiepath = ”;

    $bb->wp_table_prefix = ‘wp_’;

    Now I know that most of that code is redundant, and left over from older integration methods; but by using this as a base that I know works for bbPress0.9/1.0.2 to WP2.5->2.9 I’ve found that I’ve not hit any real integration issues that weren’t procedural or human error in over a year.

    Adding “AddHandler php5-script .php” to my .htaccess file wont cause any overhead (as i should be using PHP5 anyway), and will also help rule out that 1 out of 100 times that installation/integration hits an issue.

    @Zaerl and Chris

    PHP4 to 5 was a huge change, a leap into correctly written OOP.

    bbPress1.0.2 (for all its faults) and specifically backPress are really brilliantly written OOP code; and while not 100% sure, i’m quietly confident that using backPress/bbPress1.0.2 on PHP4 would throw some inconsistances.

    I doubt this fix is anywhere near “guarenteed” to solve anything, but if it works for 1 out of 100 people, it should go in the “win” column

    #84910

    Hi Transmutator,

    Question – Why not simply make bbPress themes/templates function like WordPress themes?

    They do.

    The ease of theming bbPress is one of it’s real strong points.

    The problem is that you’re confusing some of the phrases (its not your fault, its not brilliantly clear unless you’ve been here a while).

    Integration = bbPress + WordPress using same cookies for log on.

    Deep Integration = bbPress loading WordPress every time, allowing access to WordPress code.

    So when you say “fully integrate” i’m guessing you mean “deep integration” which isn’t supported or intended. We can offer some advice on it, but its a by product, not a feature.

    The realism is that copying large sections of your theme (mostly the ‘outer’ sections such as header and footer) and your current WP stylesheet will start to make a huge difference to how your bbPress theme looks. Just make sure to remove any “wordpress” specific code or plugin calls; they’re really superfluous to 99% of forums.

    Transmutator
    Member

    Folks, I have been trying to get bbPress to fully integrate into my WordPress site for like weeks. I happened up a gentleman who had it figured out. He sent me his notes and I am giving them to you here. One word of caution, even though I followed the instructions carefully, I still don’t have it working – this doesn’t mean his instructions are incorrect … just that I am not skilled enough to figure out all the elements.

    His name is Adam Kayce of Bright Coconut. I hope you enjoy his instructions and they speed you toward full integration (and then if you have time, come help me!).

    Integrating the Theme:

    I have a link to my forum in my global nav by creating an empty page with a slug that is the same as the directory name as where I have bbpress installed.

    But I also load the wp-load.php file in my bb-config.php file

    define(‘WP_BB’, true);

    if ( !defined(‘DB_NAME’) ) {

    require_once( dirname(__FILE__) . ‘/../wordpress/wp-config.php’);

    }

    $bb->wp_table_prefix = ‘wp_’; // your wordpress db prefix is

    $bb->wp_home = ‘http://www.trashfilmorgy.com/wordpress <http://www.trashfilmorgy.com/wordpress&gt; ‘;

    $bb->wp_siteurl = ‘http://www.trashfilmorgy.com <http://www.trashfilmorgy.com/&gt; ‘;

    Then I went into my bbpress theme and changed every instance of bb_get_header() with get_header(), and bb_get_footer() with get_footer().

    Since I want to have my wordpress sidebars show up in the forum, too, I also added get_sidebar() right above the call to get_footer().

    I could also add other sidebars, too – the theme I use adds two columns below the main content area and uses the dynamic sidebar functionality to add them in to each page. I could see how adding other or more sidebars and going in to the templates could be really useful.

    From : http://bbpress.org/forums/topic/how-do-ican-i-integrate-my-bbpress-forum-into-my-wordpress-layout

    AND

    to remove the ‘Log Out’ link: kakumei/logged-in.php – delete the function

    if using bbPM: go into Admin area, copy function, uncheck box, and paste function in logged-in.php where you deleted the old function from

    AND

    to get the backslashes out of apostrophes:

    1) open up /bb-includes/functions.bb-template.php

    2) replace line 1074 with:

    return stripslashes(apply_filters( ‘get_topic_title’, $topic->topic_title, $id ));

    3) and line 1782:

    return stripslashes(apply_filters( ‘get_post_text’, $bb_post->post_text, $bb_post->post_id ));

    #84909
    Transmutator
    Member

    Question – Why not simply make bbPress themes/templates function like WordPress themes?

    I have been trying my darnedest to “integrate” bbPress into my client’s site (www.awaketeahouse.com -ask and I’ll give you a membership) but the sidebar won’t go where its supposed to go and, though I have managed to get the theme ported over it won’t collect or remember user login information. (I know this is cookie stuff but I’m currently burned out.

    So, rather than going through all this rigamarole to fully integrate it with my main site, if I could simply add my main site’s theme to bbPress then, at least it would easily look the same. Then there’d only need to be a plugin in bbPress/WordPress that connects the users from WP to bbP.

    #87295

    In reply to: wordpress integration

    gerikg
    Member

    Sometimes it’s a plugin in bbpress or wordpress that causes that. usually a cache program

    #87294

    In reply to: wordpress integration

    chrishajer
    Participant

    If it’s returning a blank page, I think that means you’re getting a Internal Server Error code 500. If you take that line out, can you use bbPress?

    #87293

    In reply to: wordpress integration

    zaerl
    Participant

    wp-load.php is just a file that contains WordPress code and doesn’t echo anything.

    #87132
    jakshi
    Member

    I created my wp-config.php and bb-config.php with examples from wp-config-sample.php and bb-config-sample.php .

    After every upgrade I check for changes in wp-config-sample.php and bb-config-sample.php .

    So, as I understand, AUTH_SALT and others *_SALT don’t needed anymore.

    #34088
    kikko088
    Member

    hi at all, i want to integrate bbpress and wordpress, i put “require_once(dirname(__FILE__) . ‘/../wp-load.php’);” in my bb-config.php but the retrn is a blank page, bbpress is in a folder inside wp folder.

    where is the problem?

    thank at all

    kikko088

    #87086

    In reply to: Compatibility ….

    evilgeek23
    Member

    kevin , i said i will use that DOMAIN , not that website …. i use that website for testing any php scripts i code… my wordpress blog is local currently ….

    and btw , signatures aint workin in 1.0.2

    #87131
    Anonymous User
    Inactive

    Hi together,

    in my working integration between WordPress and bbPress I’ve the following cookie keys matched:

    WordPress:

    define(‘AUTH_KEY’, ’32charsalphanumerickeys’);

    define(‘SECURE_AUTH_KEY’, ’32charsalphanumerickeys’);

    define(‘LOGGED_IN_KEY’, ’32charsalphanumerickeys’);

    define(‘NONCE_KEY’,’32charsalphanumerickeys’);

    define(‘AUTH_SALT’, ’32charsalphanumerickeys’);

    define(‘LOGGED_IN_SALT’, ’32charsalphanumerickeys’);

    define(‘SECURE_AUTH_SALT’, ’32charsalphanumerickeys’);

    bbPress:

    define( ‘BB_AUTH_KEY’, ’32charsalphanumerickeys’ );

    define( ‘BB_SECURE_AUTH_KEY’, ’32charsalphanumerickeys’ );

    define( ‘BB_LOGGED_IN_KEY’, ’32charsalphanumerickeys’ );

    define( ‘BB_NONCE_KEY’, ’32charsalphanumerickeys’ );

    define(‘BB_AUTH_SALT’, ’32charsalphanumerickeys’);

    define(‘BB_LOGGED_IN_SALT’, ’32charsalphanumerickeys’);

    define(‘BB_SECURE_AUTH_SALT’, ’32charsalphanumerickeys’);

    Evtl. you need the Salt Keys too?

    Without the Salt Keys my old installation doesn’t work, in my new (fresh) installation it worked without the Salt Keys.

    Markus

    http://www.bbp-forever.de (beta)

    #87130
    ekitel
    Member

    My cookie keys match between the 2 configs. I didn’t have the COOKIEPATH definition in bbpress, only in wp, so I put that in but still no luck.

    I have wp installed in a sub-directory so my statement is: define(‘COOKIEPATH’, ‘/blogs/’);

    I just tried another test install without sub-directory and that won’t work either!

Viewing 25 results - 18,576 through 18,600 (of 26,846 total)
Skip to toolbar