Skip to:
Content
Pages
Categories
Search
Top
Bottom

How comments_open() function operates in bbpress topics

Published on September 29th, 2011 by common8308

I was fixing a certain existing WP plugin to my taste to make it work in bbpress, and experienced comments_open() function is not stably working in bbpress.

In most cases it returned true in open topics/replies. but in less than 5% cases it returned false although the topic was open and making replies were available..

I just replaced comments_open() function to (is_user_logged_in() && is_bbpress()) and it worked fine. (Thank you for this function!)

I don’t think it’s not much important in using bbpress, but just curious to know how comments_open() function works in bbpress if it’s not too complicated.

Problem with multiple bbPress installations sporting a single wp user table

Published on September 29th, 2011 by holger_gamua

Hello everyone,

I just recently integrated a second bbPress installation with a wp site’s user table (another bbPress was already successfully integrated) and I think I messed up:

My users currently have the problem that they get notification e-mails (via Post Notification plugin) and private messages (via bbPM) for topics from the wrong bbPress installation.

Up until now I figured out that the reason for this is that e.g. a user’s favorite topics are stored as a comma separated list of topic IDs in the wp “wp_usermeta” table under the key “bb_favorites”. Now, if both bbPress installations use the same key for this it would easily explain why user’s get notified for the wrong topics. –> both bbPress installs would get the list and see that topic 4 is in the user’s favorites. Since every install has a topic 4 both bbPress installations would send a notification for it – unfortunately topic 4 is a different topic on each installation. Meh.

So here comes the wall of questions I am trying to understand:

1) Is the “bb_favorites” key a fixed value or is it using the “bb_” table prefix?

Unfortunately both of my bbPress installations have the same table prefix, which is okay since the live in different table spaces, but not okay if bbPress puts together its “wp_usermeta” keys like this: prefix+”favorites”.

2) I took a look at the other keys in the user meta table and found out that bbPM (private messaging plugin) uses “bbPM” as a prefix to all its keys. So even if the above assumption is true and the “bb_” prefix is dynamically added according to the table prefix of the current bbPress installation, fixing the table prefixes won’t work for this plugin. That’s why I wonder if it would work to use a SEPARATE “wp_usermeta” table for the second bbPress installation but the SAME “user” table? Probably not, but I thought it’s worth asking.

Thank you very much in advance!

Holger

can't edit posts

Published on September 29th, 2011 by clocky

if i edit a post as admin i get an error “Every post needs an author name!” > back to forum.

anybody an idea?

– i have the standalone version 1.1

– posts deleting works fine

BackPress, what's that?

Published on September 29th, 2011 by amirsaam

umm, I wanna ask exactly what is BackPress?!?

I got some info about it but I’m not sure, I’ll be in doubt of you if explain it for me :)

disabling breadcrumbs

Published on September 29th, 2011 by binarymoon

Anyone know a simple way to disable the breadcrumbs? My theme has it’s own breadcrumb system that seems to work better than the bbpress one so I would like to stop the built in one from showing, perhaps by overriding the breadcrumb template file?

remove default template styles

Published on September 29th, 2011 by binarymoon

I would like to use the default template and override the styles that are included. Does anyone have any tips on how to acheive this?

Currently I am using:

function bm_bbpress () {
wp_dequeue_style ('twentyten-rtl');
wp_dequeue_style ('twentyten');
wp_dequeue_style ('bbp-twentyten-bbpress');
}

add_action ('bbp_enqueue_scripts', 'bm_bbpress', 100);

WordPress Newbie Installation/Integration question…

Published on September 29th, 2011 by TechKnow

Greetings WordPress/bbPress people!

I have finally abandoned DotNetNuke in favor of WordPress. I have to say I am quite pleased with the simplicity with which I was able to set it up.

After looking around for what the Interwebs conclude is the best WP forum I selected this one.

After a ridiculously easy install I got bbPress up and running as well.

NOW… If I can only figure out how to add a forum to a page I would be on my way. I am sure this is an easy thing to do once you know how to do it…

Incidentally, my WP install is located at http://politicule.com/wp while my forums are at http://politicule.com/wp/?forum=politicule-community-forums-2&preview=true&preview_id=23&preview_nonce=86034f336b

I appreciate your assistance in advance!

Page Not Found

Published on September 28th, 2011 by harryv

I just started a brand new wp site. Initially, I was going to install a phpbb under

http://<url>/forums

After uploading the phpbb, I found bbpress plugin and activated it. Now all links to the forums are in the format

http://<url>/forums/forum/<topic>

What is worse is that when I click to that link, it returns invalid. I tried removing the ‘forums’ and ‘forum’ and it still doesn’t go anywhere. I have since removed that /forums folder and the phpbb but the plugin still has the permalink saved despite removing and reinstalling the plugin.

How can I resolve this?

Redirecting /bbpress to http://domain.com

Published on September 28th, 2011 by nsiinc

Hi all.

Can bbpress be constructed to be visible as the main site where the WordPress site is installed? i.e. http://domain.com is the main WP site and http://domain.com/bbpress is the wordpress site.

What I am looking for is creating http://domain.com the main bbpress site, skipping the WP blog.

Advise is appreciated.

Thanks.

Introducing bbConverter – Convert your current forums for use with bbPress 2x

Published on September 28th, 2011 by Anointed

Thanks to AWJunkie we are proud to announce the official release of bbConverter, the only tool you will ever need to convert your current forums for use with bbPress 2x.

Currently supported platforms:

1. bbPress 1x

2. Vbulletin 3x – 4x

3. Invision Power Board

Future platform support already in progress:

1. PHPbb 3x

2. Xenforo

Platforms being considered

1. myBB

Download:

https://wordpress.org/extend/plugins/bbconverter/

Installation:

1. Upload the bbConverter folder to the /wp-content/plugins/ directory

2. Activate bbConverter through the ‘Plugins’ menu in WordPress

3. Go into your WordPress admin under ‘Settings’ and choose ‘Converter’

4. BACKUP YOUR WORDPRESS DATABASE!

5. Choose the platform you want to convert from and fill in the database information. Click start

6. Once the conversion has completed, visit the WordPress Admin ‘Tools’ section and click ‘Recount’

7. Do NOT deactivate the plugin once it is finished as it is needed for user password management.

Did I forget to mention — BACKUP YOUR WORDPRESS DATABASE BEFORE STARTING!

Important Note:

It is important to understand that this script is going to be modifying your wordpress database in order to bring over your forums/topics/replies/tags/ and users from your old forum setup. This means we are directly modifying your database which means backup is paramount.

Ok, now that is out of the way, let’s get to the plugin itself.

Each Forum sofware, whether bbPress 1x, vbulletin, or Invision Powerboard, has its own configuration file. For example vbulletin calls the file config.php

This is the file which contains your database connection information and you need to save this information in order to fill out the plugin start screen.

Required options:

1. Platform you are converting from – dropdown

2. Database server — usually localhost

3. Database port — (example: vbulletin uses 3306)

4. Database Username

5. Database Password

6. Database Name

7. Database Table Prefix — If you installed your forum software using a prefix enter it here. ( example: vbulletin default uses vb_ ) If there is no prefix, then leave it blank.

8. Rows Limit — This represents the number of database rows the plugin will convert during a single cycle. I would start this number at 50 or below at first. Keep in mind that forum conversion takes a huge load on the server mysql so if you are on a shared host, you may want to notify your host before running the script.

If you are on a dedicated server with shell access, then I would suggest opening up a terminal window and monitoring the resources. You can change the ‘Rows Limit’ at any time while the script is running. I have gone as high as 2500 instead of 50 on my servers. ( don’t click stop/start as it is not needed to change the limits )

9. Delay time — Suggested to use 1. This is the number of seconds that the server waits between the conversion cycles. It gives your server a second to catch its breath.

Other Options:

1. Clean — If something actually goes wrong, then you can choose to clean the database. This will effectively remove all the imported data and allow you to start the conversion over.

2. Restart — Restart allows you to pick up where the script left off should you have the need to stop and start the process. Example is when your browser or computer window closes during the conversion process. If you close the browser during conversion for any reason, then the conversion stops.

3. Users — You have the option of choosing not to import your users. If you are using bbPress 1x and have the forums linked to your WordPress install already, then you do not need to import users. Do not check the box. Otherwise you do want to import your users.

Once Import is complete:

1. Recount — Once everything is finished, then go to the wp-admin/tools and choose recount. This is going to present you with a screen full of checkboxes. Check every box and click submit. This is going to line up all the topic/replies/user posts counts etc.

2. Keep bbConverter plugin active after conversion.

bbConverter has a special script which will allow your users to maintain their old forum username and password. In a nutshell, when a user signs in for the first time after the forums convert, the script will check their old password, validate it, and then use the WordPress system to generate the identical password for the user in the appropriate place. This means that you need to keep bbConverter active until every single user has logged into the forums in order to maintain password management. This is not at all resource intensive, and you won’t even notice the plugin running in the background.

That’s it your finished.

O, did I mention… BACKUP YOUR WORDPRESS DATABASE FIRST!

Enjoy!

Skip to toolbar