Forum Replies Created
-
In reply to: can't set visibilityIn reply to: Visibility issueIn reply to: Kunena converter for bbPress 2.4
Oh… So it is, I’ll upload a new version of Kunena2.php now with that fixed ๐
In reply to: user identification and integration with woocommerceI haven’t tested this myself but there are a few themes out there that support WordPress, bbPress, BuddyPress & WooCommerce so I would think that a few people have this up and running pretty much out of the box.
Your main issue I would start looking into would be managing your users and user profiles.
A seriously quick search for ‘WordPress & bbPress’ revealed this:
In reply to: Converting Forums – how long should it take?Click ‘Stop’ wait a few seconds, click ‘Start’ and it will resume from where it left off.
For that size forum you mention I would think 10 minutes should be ample.
In reply to: Any plans to merge O2 features into bbPress?I also saw watched this stream from WordCamp SF 2013 and it looks quite cool.
The features as you mention @sadr share some similar goals I agree. Some people say why run a forum at all these days, why not just a blog with comments and a good theme. I think the same approach should probably apply here for O2 also. What does O2 do for you that a WP blog or bbP forum does not and will it fit my needs better than the current solutions available.
I would also love to see these same features you mention available either in bbPress or as plugins, sadly my coding skills just aren’t there to contribute such awesomeness. ๐
That all said if O2 is a plugin for available in the WordPress plugins directory I would hope O2 has support for custom post types then why would it not work with bbPress? (hack, hack, hack, see slide 62 “Template compatibility is hard”)
And I’ll leave with this:
Getting bbPress working there would be a very different project from what weโre doing with o2.
http://johnjamesjacoby.wordpress.com/forums/topic/bbpress-support/ ๐
In a short answer no, bbPress uses the ‘forum’, ‘topic’ and ‘reply’ slugs (or your alternate via bbPress settings) to tell WordPress that the content is from a custom post type ‘Forum’, ‘Topic’ or ‘Reply’.
In reply to: Multiple ForumsSure is possible ๐
Take a read of this to help you on your way https://codex.bbpress.org/getting-started-with-bbpress/
Make a category (forum) called ‘Fruits’ and then make your sub forums ‘Apples’, ‘Oranges’ etc
Make another category (forum) called ‘Vegetables’ and sub forums ‘Potatoe’, ‘Carrots’ etcCreate a WordPress page for each of your categories ‘Fruits’ and ‘Vegetables’
Use the
[bbp-single-forum id=$forum_id]
bbPress shortcode on each of these pages with the forum_id of each category.In reply to: Forums index in the same layout as other bb softwareNice, will take a closer look when I get the chance ๐
In reply to: Multiple BBPress forums for BuddyPress groupI don’t think things have progressed much further than what you have found thus far. The best place to keep track of this would be to subscribe to the bbPress Trac ticket #2191.
In reply to: "Import Forums" stalling out at 70,000 repliesYou should upgrade your bbPress v1.02 to bbPress v1.2 and then import into bbPress v2.x.
In reply to: Issue since upgrade to 2.4I haven’t got much else to add except I think you have tried everything to find ‘spot the difference’ ๐
I am glad it is sorted though.
If you have SSH access to your host go on a code hunt ๐
grep -i -r 'bbp_list_forums' *
and/orgrep -i -r 'bbp-forums-list' *
This will find any reference to the term ‘bbp_list_forums’, there might be some rogue hiding spot where this is being used as a custom function somewhere.
In reply to: Kunena converter for bbPress 2.4Which version are you using? Make sure you are using the latest (and correct) version.
There are now three versions of the Kunena importer:
- Kunena1.php for Kunena v1.x
- Kunena2.php for Kunena v2.x
- Kunena3.php for Kunena v3.x
In reply to: Help with importing from WBB3.1Forum Section
- Added Forum Display Order using
wbb1_1_board.sortOrder
- Added wbb1_1_board.boardType and callback method
callback_forum_type
where category =1 & forum = 0 - wbb1_1_board.isClosed & callback method
callback_forum_status
where closed =1 & open = 0 - (Are the above values correct for these DB fields? I have guessed these ;))
Topic Section
- Changed callback method for Topic Language from
callback_topic_reply_count
tocallback_topic_language
- Added topic author ip
- Your SQL join for the topic content looks good
Reply Section
- Fixed ‘Reply parent forum id’ (we need the ‘parent forum’ here not the first ‘post id’, the inline docs were not very clear here)
- Removed ‘Reply Unregistered Author name’ (See #2347for more info)
User Section
- Added ‘User Signature’
wcf1_user.signature
Generally cleaned up the code and inline docs to match the other importers.
The updated version here: https://gist.github.com/ntwb/41b8bb57df78d1a1bd01
The differences between versions here: https://gist.github.com/ntwb/41b8bb57df78d1a1bd01/revisionsIn reply to: Help with importing from WBB3.1Monday morning ๐ I’ll download your updated file and take a look now.
In reply to: Help with importing from WBB3.13. some users are twice now (like myself..who have been admins of wordpress and users of the forum). Can I simply merge them with
UPDATE wp_posts SET post_author = โ1โฒ WHERE post_author = โ2โฒ; and it will count for the forum, too?If a user already exists in WordPress during the import a new user will be created called ‘Imported_Username’, you can go to wp-admins user panel and when you select ‘Delete User’ you will be prompted to delete all posts or attribute them to another user, select the later and all the topics/replies etc will be attributed to the user you selected.
4. the passwords โ in WBB they are hashed by this:
$passwort = sha1($row->salt.sha1($row->salt.sha1($_POST[‘passwort’])));
so what do I write at the end of wbb3.php
public function authenticate_pass( $password, $serialized_pass ) {
$pass_array = unserialize( $serialized_pass );
return ( $pass_array[‘hash’] == md5( md5( $password ). $pass_array[‘salt’] ) );
}
or is this impossible and the users have to get the new password by mail?I am going to look at passwords next week for all the importers as my skills with PHP are only just beginning so this is all a bit tricky for me at the moment. ๐
So the best workaround is to have the users reset their password by email for now.
5. the imported users have no โForum Roleโ. Is is โnormalโ? Is there any chance to automatically give them the forum role โParticipantโ?
Go to bbPress tools and run the repair tool ‘Remap existing users to default forum roles’ and that will do the trick. https://codex.bbpress.org/repair-forums/
6. do I have to keep the wbb3.php โforeverโ because of the passwords or can I delete it one day, even if not all members have com back yet?
If the passwords are not being converted you do not need to keep it, though I don’t see any issues why you would need to delete it.
Speaking of keeping it, can we include your WBB v3 Importer and distribute it with bbPress?
7. until now we have everything like private messages, profiles, friends and especially user groups (Moderators, crew members) with hidden forums. Do I see correct, that I can install both, import bbpress and afterwards attach for example our โMods Onlyโ to the group โModeratorsโ as group forum?
Currently bbPress only has: https://codex.bbpress.org/getting-started-with-bbpress/#creating-your-first-forum
Visibility: decide whether your forum is public, private or hidden.
Public โ Anyone can see these forums
Private โ Only logged in registered users can see these forums
Hidden: Only Moderators/Admins can see these forumsI see that every user gets a new User ID โ old IDs are saved in table _bbp_converter_translator โ will that table be kept? Maybe by this I have a chance to later import โ somehow โ private messages for buddy press!?
The translator table is not kept and the old user ID is stored in wp_usermeta as per this item in the ‘Example.php’ importer.
https://bbpress.trac.wordpress.org/browser/trunk/includes/admin/converters/Example.php#L458
// Store old User id (Stored in usermeta) 459 $this->field_map[] = array( 460 'from_tablename' => 'users_table', 461 'from_fieldname' => 'the_users_id', 462 'to_type' => 'user', 463 'to_fieldname' => '_bbp_user_id' 464 );
I’ll take closer look at the importer and structure you linked to over the weekend and post back with anything else I can think of.
In reply to: Import problem PHPbb – bbPressAs far as I know there are no issues importing from phpBB v3.0.11
This doc has any known issues when using the phpBB importer:
https://codex.bbpress.org/import-forums/phpbb/Did your import fail at one point and you started the import again which would have caused duplicates?
To debug the issue further I would need some detailed information, particularly some SQL examples would be helpful.
If you still have issues after resting your forums and this constantly happpens please create a ticket on Trac https://bbpress.trac.wordpress.org/ with some detailed steps to reproduce the issue and I will take a look.
In reply to: SMF Import to bbPressJoe,
Thanks for looking at this I uploaded a new version with the fix above for the ‘to_type’ you mentioned above.
I have not started with the passwords as of yet, this is next weeks job to look at all the importers passwords sections and begin writing custom callbacks for all of them. With my limited PHP skills this is going to be a challenge indeed. I will be calling heavily on the code found in the phpBB importer to base the code on and then changing any calculating/algorithms as needed.
If you beat me to it, I could live with that ๐
In reply to: Import BB data from CSV file to bbPress forumAhhh… Yes… That would make sense, probably a dedicated ‘User CSV Import’ plugin eg. https://wordpress.org/plugins/search.php?q=csv+user plugin that matches your requirements.
You shouldn’t have to assign passwords, users can do this themselves later.
Once you have your users you will want to update your topic.csv & reply.csv files with the new user ID’s.
In reply to: Import BB data from CSV file to bbPress forumFirstly, thanks for looking further into this, it gave me enough info to run a quick test import.
bbPress uses WordPress tables and doesn’t create any of its own and not having answers to something you don’t know doesn’t make anyone dumb. ๐
Ok…. Here we go….
I installed this plugin https://wordpress.org/plugins/wp-ultimate-csv-importer/
I realised the csv file had to be split into 3, one for the forum, one for topics and one for replies. Here is a copy of the 3 CSV files I used https://gist.github.com/ntwb/6532360
Next jump into WP Admin and and open up the WP CSV Tool and select ‘Custom Post’ to import from and select your forum.csv file to upload and click import.
Set the options and field mappings as per this:
Import Data Configuration
Select Post Type = forum
Import with post status = publish
post_author = post_author
post_date = post_date
post_content = post_content
post_title = post_titleAnd click import.
Topics is up next and you will notice that it includes the field ‘post_parent’ so this is the forum ID that the topic will be imported into. As we do not know the forum ID you will need to open up the bbPress forums panel in wp-admin. Select the forum you want the topics to be imported and this will take you into the forum edit section, look at the URL in your browser and it should be similar to /wp-admin/post.php?post=348830&action=edit what we want here is the ‘348830’ as that will be the parent forum for each topic imported. Update your topic.csv file with this number as per my sample linked above.
Back to the CSV importer to import your topics.csv
Set the options and field mappings as per this:
Import Data Configuration
Select Post Type = topic
Import with post status = publish
post_author = post_author
post_date = post_date
post_content = post_content
post_title = post_title
post_parent = post_parentThe replies section is basically the same as the topics section, you need to get the ID orf each topic ID for each reply and update your reply.csv file for each entry.
Lastly run each of the ‘Recalculate’ and ‘Count’ bbPress ‘Repair Tools’ from wp-admin-> Tools- Forums -> Repair Forums (more info here https://codex.bbpress.org/repair-forums/)
And I think that’s it, there is a bit of juggling your data around, give it a bash and let me know how it works out for you and here’s the result ๐
In reply to: Import BB data from CSV file to bbPress forumCool ๐ Once you have tried them let me which one worked for you. If none work we will then look at forking one of them and writing a custom version for bbPress. If that doesn’t work we can come up with a custom CSV format to import directly into MySQL and then write an extension for the bbPress importer. In the end there will be a way. ๐
In reply to: Import BB data from CSV file to bbPress forumI’d highly suggest you take a look at some of these CSV importers that support ‘Custom Post Types’, I have had a quick look at a couple of them the other day and I am quite sure they will work fine to import into bbPress.
It is just a matter of finding the one that suits you and your CSV data.
There is no need to create multiple topics on the same subject, closing this one.
In reply to: bbPress 2.4 Now Available@hamed-hosseini Thanks, take a look at these resources to get started translating bbPress:
https://codex.bbpress.org/bbpress-in-your-language/
https://translate.wordpress.org/getting-startedIn reply to: Import BB data from CSV file to bbPress forumI hadn’t really thought about importing from CSV, until now.
The importer included with bbPress is setup to only import from a MySQL database.
We could create a guide to create a simple to database that you could import your CSV into and then bbPress import from that.
Otherwise using the built in importer within WordPress (wp-admin -> tools -> import /wp-admin/import.php) there are some https://wordpress.org/plugins/search.php?q=CSV+importer CSV importers that might do the job. You could modify one of these to import the data instead of WordPress post type ‘post’ you would want your topics to use the ‘topic’ post type for bbPress (Forums are ‘forum’ and Replies are ‘reply’)
Either of the ways above should be rather straight forward and I might take a look at few of those importers and fork one specifically for importing from CSV to bbPress in the future.