Skip to:
Content
Pages
Categories
Search
Top
Bottom

Plugins for WordPress integration

Viewing 25 replies - 1 through 25 (of 34 total)

  • Trent Adams
    Member

    @trent

    Mdawaffe,

    I really love these 2 plugins! Thank you! Could I make a suggestion though? Would it be possible to add an option to have accounts that are created in bbPress and marked as ‘bozo’ not be added to WordPress. I am having trouble with ‘many’ and I mean ‘many’ spam bots registering in bbPress and then moved over to WordPress. I know they cannot really add comments because of Akismet, but I hate going in and seeing these users in WordPress.

    If I leave the user as Bozo, is it worth deleting them or leaving them as bozo anyway? Should I move them to ‘blocked’ or delete them? It really makes it tough as I am not quite sure what to do!

    Thanks,

    Trent


    Trent Adams
    Member

    @trent

    One more thing….where exactly (when integrated with wordpress) does it store the ‘bozo’ information on a user? I have went through all the tables in bbPress and WordPress and I can’t seem to find it. I thought maybe adding a filter in the plugin might work, but I don’t know how to call it since it isn’t a database call.

    Trent


    sidzzz
    Member

    @sidzzz

    hmm, I dint know spam bots were on to this already… i guess they can still have a profile on BBpress and have a link and promote their site? ( i am not sure how the profile thing works here so keep my comment at that:P )

    But I can say one things its damn fast and keeps spam at bay! but hmm i wouldnt want a junk list of profiles or users adding up either..

    jus my 2 cents..


    sidzzz
    Member

    @sidzzz

    I take my above comment back this isnt in an open discussion forum. Next time i will try to be more constructive :P

    An interesting situation :) I’ll look into it.

    Thanks for bring it up!


    Trent Adams
    Member

    @trent

    That would be great! I was actually suprised that Akismet doesn’t stop the registrations as well as the comments considering the power that it has. I can’t seem to find any way to limit spam registrations on bbPress, but something may exist.

    If we can stop the ‘bozo’ user from integrating over to the WordPress side, then would it be best to leave that ‘bozo’ user in bbPress? Would it be worth having something that would delete ‘bozo’ users automatically at some point?

    What would you recommend I do about this?

    Thank you kindly,

    Trent Adams

    Little duplication, but since this is a sticky post, I thought I would add it here:

    It is important to make sure for integration to work that you have the following plugin for sure installed in WordPress and the table prefix (in options of plugin in admin area of WP) correctly installed.

    bbpress-integration plugin

    This plugin will pull all registrations from bbPress into WordPress as well as make the login integration work properly.

    If you have users in WordPress that you want to be able to login to bbPress prior to the integration, it might be worth you while to place the following plugin in your /my-plugins/ directory of bbPress.

    wordpress-integration

    The first plugin will work for most users, but the second is available if needed.

    Thanks,

    Trent

    I have installed wordpress in the main dierctory, and bbpress as a subdirectory. They are both working fine.

    I read the following entry :https://bbpress.org/documentation/integration-with-wordpress/

    However I would like to doble check.

    “defining WP_BB as true” does it mean ..= ‘wp_bb’ ; or …= ‘true’ ; ?

    and,

    “define $bb->wp_home and $bb->wp_siteurl as your WordPress blog address and WordPress address, respectively.”

    does it mean :

    $bb->wp_home = ‘url of wp’;

    and,

    $bb->wp_siteurl = ‘url of wp’;

    Thank you!

    define('WP_BB', true);

    and

    $bb->wp_home = 'http://www.yoursite.com; // WordPress - Options->General: Blog address (URL) // No trailing slash

    $bb->wp_siteurl = 'http://www.yoursite.com'; // WordPress - Options->General: WordPress address (URL) // No trailing slash

    Hope that helps.

    Trent

    I have done a fresh install of the latest WP (2.0.5) and latest bbPress (0.73) earlier today and installed the WordPress plugin as described. I have also added the code described above to bbPress’s config.php.

    Wordpress is installed on my root domain, and bbPress in a folder named /forums/

    User registration integration is not working, is there something I have missed?

    Thanks – pilks (AWSpress.com)

    Could you describe what steps you took to integrate, what you are seeing when you move between the two programs and possibly post an edited (no password, username info) config.php to compare against.

    Trent

    Hi Trent, thanks for the response :)

    After installing WP (via fantastico) I uploaded the bbpress files to /forums/, set up database&user, ran the bbpress install script.

    I then added the WP plugin as described above, activated it and configured it with bb_ (taken from my config.php).

    I added a directory /forums/my-plugins/ and put the described bbpress plugin in there (although I probably didnt need to as it is a fresh install)

    Below is my config.php that I edited as described (maybe I misunderstood somthing here?)

    Thanks again for your help…

    code

    <?php

    // ** MySQL settings ** //

    define(‘BBDB_NAME’, ‘xxxxxx_xxxx’); // The name of the database

    define(‘BBDB_USER’, ‘xxxxxxx_xxxxx’); // Your MySQL username

    define(‘BBDB_PASSWORD’, ‘xxxxx’); // …and password

    define(‘BBDB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value

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

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

    // If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.

    // Adjust the domain and path to suit your actual URL.

    // Just the domain name; no directories or path. There should be no trailing slash here.

    $bb->domain = ‘http://awspress.com&#8217;; // Example: ‘http://bbpress.example.com&#8217;

    // There should be both a leading and trailing slash here. ‘/’ is fine if the site is in root.

    $bb->path = ‘/forums/’; // Example: ‘/forums/’

    // What are you going to call me?

    $bb->name = ‘Amazon plugin for WordPress’;

    // This must be set before running the install script.

    $bb->admin_email = ‘simon@xxxx.com’;

    // Set to true if you want pretty permalinks.

    $bb->mod_rewrite = true;

    // 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 = 0;

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

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

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

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

    $bb->wp_home = ‘http://awspress.com&#8217;; // WordPress – Options->General: Blog address (URL) // No trailing slash

    $bb->wp_siteurl = ‘http://awspress.com&#8217;; // WordPress – Options->General: WordPress address (URL) // No trailing slash

    define(‘WP_BB’, true);

    require_once(‘/home/xxxxxxx/public_html/wp-config.php’);

    /* Stop editing */

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

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

    ?>

    /code

    Pilks,

    Just looking through the config file, everything looks good. I may try adding some cookie information into config.php

    $bb->cookiedomain = '.awspress.com';

    $bb->cookiepath = '/';

    As well, if you are not trying to load WP functions in bbPress, you probably can do without the:

    define('WP_BB', true);

    require_once('/home/xxxxxxx/public_html/wp-config.php');

    Maybe take it out and see if you can get it going and then add it in later. Let’s try it at the lowest common denominator….

    Trent

    Hi Trent

    I tried this, one additonal problem is that the logout function on the forums doesn’t work now, I have to log out from a WP page. Other than that, nothing has changed! Would it be easier if I were to delete the account from my server and try again, or do you enjoy the challenge?

    <?php

    // ** MySQL settings ** //

    define(‘BBDB_NAME’, ”); // The name of the database

    define(‘BBDB_USER’, ”); // Your MySQL username

    define(‘BBDB_PASSWORD’, ”); // …and password

    define(‘BBDB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value

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

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

    $bb->cookiedomain = ‘.awspress.com’; // Thanks Trent! https://bbpress.org/forums/topic/12?replies=10

    $bb->cookiepath = ‘/’; // Thanks Trent! https://bbpress.org/forums/topic/12?replies=10

    // If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.

    // Adjust the domain and path to suit your actual URL.

    // Just the domain name; no directories or path. There should be no trailing slash here.

    $bb->domain = ‘http://awspress.com&#8217;; // Example: ‘http://bbpress.example.com&#8217;

    // There should be both a leading and trailing slash here. ‘/’ is fine if the site is in root.

    $bb->path = ‘/forums/’; // Example: ‘/forums/’

    // What are you going to call me?

    $bb->name = ‘Amazon plugin for WordPress’;

    // This must be set before running the install script.

    $bb->admin_email = ”;

    // Set to true if you want pretty permalinks.

    $bb->mod_rewrite = true;

    // 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 = 0;

    // 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 = ”;

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

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

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

    $bb->wp_home = ‘http://awspress.com&#8217;; // WordPress – Options->General: Blog address (URL) // No trailing slash

    $bb->wp_siteurl = ‘http://awspress.com&#8217;; // WordPress – Options->General: WordPress address (URL) // No trailing slash

    /* Stop editing */

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

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

    ?>

    I would imagine that you need to check the database and see if bbpress has it’s own bb_users table or if it doesn’t exist. I created a user in bbPress and it didn’t move over to WP. That would mean that the cookies are not moving right and the plugin isn’t working. If it was working, WP would know that I exist. When I went to ‘forgot password’ in WP, the user didn’t even exist. That would mean that users are being created in bbPress.

    I would check the database and see what tables exist for bbPress and report back.

    Trent

    I have no trouble logging in and out of bbPress, just not integrated with the wp_users table. You are using Wp 2.05 as well?

    Trent

    I have the following tables in my bb_ database:

    bb_forums

    bb_posts

    bb_tagged

    bb_tags

    bb_topicmeta

    bb_topics

    wp_usermeta

    wp_users

    wp_users has 8 users, none of which coincide with the 3 users in my wp_users table in wordpress.

    I am using wp2.05.

    I can now log in/out of bbpress with no problem, maybe I was seeing things before, sorry!

    Cheers – Simon

    Simon,

    I would change the cookie domain to be just awspress.com (without the period before it).

    That should get the logout link on bbPress working better. I was not able to login as TrentAdams and come back to WP with an account created in bbPress, but when I created an account Trent with WP and then went back to bbPress, the user worked and so did the integration. It didn’t matter which program I logged in Trent with, it worked going back and forth.

    That seems to me that the wordpress-integration plugin in bbPress is working and the bbpress-integration plugin in WP is not. I would uninstall that plugin and reinstall it after updating the cookie information in the config.php file for bbPress.

    Let me know how you make out and I can test it some more.

    Trent

    Trent,

    I changes the cookie domain as you recommended removing the period, then deactivated the plugin, deleted it from the server, refreshed my plugins page to ensure that it had gone, uploaded it again, activated it and set the bb_ prefix.

    I’m still not having any luck with registering on either one & the account carrying to the other. Did you register both on WP and bb? because I can log into either with my admin username and the cookie carries as you say. I cannot, however, log out whilst on the bbPress dashboard.

    Yours confusedly, Simon (or pilks, sorry for switching names halfway through a thread)

    Take the cookie domain and path information right out for now. It should work without it anyways and let’s do some more testing.

    Trent

    OK, done :)

    Does anyone else have any ideas that we might be missing here?

    Trent

    Hi again Trent

    I’ve had another go. Here are the steps I have taken:

    Created a new account on my server (taxdeduct.net)

    Installed WP 2.0.5 via fantastico

    Downloaded BB from this site

    Created database and user through cpanel. Added user to database with all privileges >> sidenote: https://bbpress.org/documentation/installation/ does not mention setting up the database. A bit confusing.

    Copied config-sample.php to config.php, edited with my info

    Uploaded to host

    Ran bb-admin/install.php

    Downloaded https://trac.bbpress.org/attachment/ticket/438/bbpress-integration.php – uploaded to WP plugins dir, activated and configured with tables prefix.

    Created new user on bbpress… couldn’t log in to WP.

    Created new user on WP… couldn’t log in to bbpress.

    My head hurts from pulling at my hair :(

    Another question: do you have to allow new user registrations on your blog for the plugin to work?


    bakedlogdotcom
    Member

    @bakedlogdotcom

    I have successfully setup my site to integrate registrations/logins between wordpress on its own DB and domain (blog.bakedlog.com) and bbpress on its own DB and domain (forum.bakedlog.com).

    Files:

    WP: wp-content/plugins/bbpress-integration.php

    BBP: my-plugins/wordpress-integration.php

    • I can create a user in wordpress and log into bbpress with it.
    • I can create a user in bbpress and log into wordpress with it.(although the default role set for wordpress does not let me write (how do i change this?))

    However, I too cannot get cookies to authenticate between the two systems.

    I have included the following in bbpress’s config.php:

    $bb->cookiedomain = 'bakedlog.com';

    $bb->cookiepath = '/';

    I monitored the cookies created on my computer as I logged into each system, and noticed that bbpress was creating the cookie correctly, domain: bakedlog.com, while when I logged into wordpress it would set the domain on the cookie to blog.bakedlog.com.

    So the problem is with WordPress..

    Looking in WordPress’ wp-settings.php I see:

    if ( !defined('USER_COOKIE') )

    define('USER_COOKIE', 'wordpressuser');

    if ( !defined('PASS_COOKIE') )

    define('PASS_COOKIE', 'wordpresspass');

    if ( !defined('COOKIEPATH') )

    define('COOKIEPATH', $current_site->path );

    if ( !defined('SITECOOKIEPATH') )

    define('SITECOOKIEPATH', $current_site->path );

    if ( !defined('COOKIE_DOMAIN') )

    define('COOKIE_DOMAIN', '.' . $current_site->domain);

    So, in WordPress’ wp-config.php I inserted:

    // BBPRESS INTEGRATION

    define('COOKIE_DOMAIN', 'bakedlog.com');

    Clearing my cookies and logging into WordPress, I see the cookie domain is correct and matches my BBPress’.

    But, there is still another problem, the cookies set by BBPress appends an md5 hash based on the site url and table prefix to the cookie’s name (ie: wordpressuser_bf17f59023eb22f…..) while WordPress’ cookie name is only: wordpressuser

    I looked around in bb-settings.php and found:

    define('BBHASH', $bb->wp_siteurl ? md5($bb->wp_siteurl) : md5($bb_table_prefix) );

    if ( !isset( $bb->usercookie ) )

    $bb->usercookie = ( $bb->wp_table_prefix ? 'wordpressuser_' : 'bb_user_' ) . BBHASH;

    if ( !isset( $bb->passcookie ) )

    $bb->passcookie = ( $bb->wp_table_prefix ? 'wordpresspass_' : 'bb_pass_' ) . BBHASH;

    So, the next step is to define $bb->usercookie and $bb->passcookie in BBPress’ config.php:

    // COOKIE SHARING WITH WORDPRESS

    $bb->cookiedomain = 'bakedlog.com';

    $bb->cookiepath = '/';

    $bb->usercookie = 'wordpressuser';

    $bb->passcookie = 'wordpresspass';

    I cleared my cookies and tested it, VOILA! I can log into either section (bbpress or wordpress) and switch to the other without losing authentication!

    ==========SOLUTION===========

    BBPRESS CONFIG.PHP:

    // COOKIE SHARING WITH WORDPRESS

    $bb->usercookie = 'wordpressuser';

    $bb->passcookie = 'wordpresspass';

    WORDPRESS WP-CONFIG.PHP:

    // COOKIE SHARING WITH BBPRESS

    define('COOKIE_DOMAIN', 'bakedlog.com');

    ==========********===========

    Thats it I believe, let me know if it works for you or if you see anything I have done that could crash either program.

    -BHensley.com

    -Bakedlog.com

    I am having problems with the integration. I installed the bbpress_integration on my wordpress blog which is installed at dearauthor.com/wordpress.

    I have a redirect that makes the blog address dearauthor.com

    I then installed the bb forum at dearauthor.com/forum.

    I set the bbPress Integration as bb_

    I have this in the config.php file for bbPress

    $bb->wp_table_prefix = 'wp_'; //

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

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

    $bb->cookiedomain = ‘dearauthor.com’;

    $bb->cookiepath = ‘/’;

    require_once(‘http://dearauthor.com/wordpress/wp-config.php&#8217;);

    I am getting this error.

    bbPress database error: [Table ‘dearauth_bbdb.wp_users’ doesn’t exist]

    SELECT * FROM wp_users WHERE ID = 1 AND user_status % 2 = 0

    Anonymous`

    Thanks.

Viewing 25 replies - 1 through 25 (of 34 total)
  • You must be logged in to reply to this topic.