That’s great your including it in the core. I put the filter back in the Users section that excludes the Deleted users and updated the Gist again. That filter worked, the UserRole join was what we were jacking with up above; never got that to work.
One thing left to do:
1) Passwords with a type of Vanilla are the same hash that WP uses, so they convert over nicely. Vanilla allows you to integrate a user with Facebook, and some other systems. I didn’t have any of those users, but some kind of call-back would need to be built for it. Also, this converter includes some password functions at the bottom, but I don’t think it’s used.
Outside of that, I got a perfect conversion from this one. I would also be happy to post the SQL code I used to clean up the User table, and also SQL code I used to move posts from Vanilla Users that already existed in WP (Admins and authors).
Jack,
You can try this one, it’s works for me. A couple notes, I didn’t finish the “Tags” section because I don’t have any tags in my Vanilla Forum. Also, I didn’t have any child Categories, but the converter “should” work for parent/child Categories. I also removed the code that excludes Deleted and Comment Email statuses, so those will get imported.
https://gist.github.com/4591432
I have a full test server setup however, and would happy to help tweak this converter so it works for you.
I have made quite a few tweaks 😉
You can see the revisions I made up until last night here
https://gist.github.com/4633175/revisions
(It is a fork or your gist with my changes)
I have just added ‘topic tags’ and just cleaning up the code ready to submit for bbPress core 😉
What else have you changed? If you update your original gist, I can look at any differences and merge those also.
Nope. That did not do it. It reverts back to style.css rather than bbpress.css and I know this because the two styles are two completely separate colors. Also, I just realized something. I deactivated bbPress to see if I had coded style-forums.css correctly (now named bbpress.css) and when I reactivated bbPress, my forums have disappeared. So, I went to Forums > All Forums and it still shows them as being there, but they are not appearing on my Forums page like they were before. So, I guess I now have two problems.
Edit: And I just deleted bbPress and reinstalled it. The various forums still appear in Forums > All Forums, but they are not showing up on my Forums page. Sigh.
Are you using the builtin importer included with bbPress?
https://codex.bbpress.org/import-forums/
https://codex.bbpress.org/import-forums/simplepress
Were any replies imported or did the converter stop at topic 490?
Once the conversion stops if you click ‘start’ again without changing any options does it then complete or stop at the same point?
If it does continuously stop in the same position open phpMyAdmin and open the `wp_options` table and bump the value stored in `_bbp_converter_start` by 1 and click start again, if it fails again bump this value again.
When you want to start again fresh and remove all topics, forums, topic tags & replies previously imported check the ‘Start Over’ & ‘Purge Previous Import’ checkboxes.
Can’t figure out how to display code here. Can’t find a “how-to.”
Example code (that does not work):
`<nav class="usernav```">wp_nav_menu
Spoke too soon. Displays extra class at all times, hiliting the nav item when it should not be hilited. Wish I could show the code here, and someone could point out my errors.
This topic should be in “troubleshooting”. Sorry, didn’t see different forums initially.
I have 2 separate forums in 2 separate sections of a website. Adding shortcode to a child page under each top-level parent page, current-page-ancestor allows hiliting of the correct top level nav item.
However, as soon as a topic or reply is clicked, the ancestor/child relationship is lost, and the navigation item is un-hilited. Slugs for topics from one forum look identical to slugs from the other (except for topic name, of course).
If I only had one forum, it would be fairly simple to make all topics and all replies hilite the same nav item, but with 2 forums in separate sections, I need to distinguish between topics and replies that belong with one forum or the other. Is there a conditional that allows me to determine which forum a topic or reply is associated with?
This is what I am using as a custom plugin on a site:
if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => 'false', 'meta_key' => '_bbp_last_active_time', 'orderby' => 'meta_value', 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 5 ) ) )
bbp_get_template_part( 'bbpress/loop', 'topics' );
Where post_parent = ‘any’ forum or change this to a specific forum id
It is based on this https://gist.github.com/4207064
I tried to import Phpbb forum to bbpress, with the import tool :
http://codex.bbpress.org/import-forums/
I disable Forums and start the process, and i have this :
“Repair any missing information: Continue
Conversion Complete
No replies to convert
No tags to convert
No topics to convert
No forum parents to convert
No forums to convert
No passwords to clear
No users to convert
Starting Conversion
”
My informations :
– phpBB
– Port : 3306
– Name BDD : The name in my wp-config (i use the same base for forum and a wordpress installation)
– Name user BDD : The user in my wp-config
– Pass : The Pass in my wp-config
– Prefix : PhpBB3
and Start.
I show all the informations many times and they are all right… I don’t understand where is the problem.
Thanks for your responses
Hi guys I am trying to list the 3 freshest bbpress topics from a specific forum. How Can I do that?
This is my code for displaying latest 3 topics from bbpress (not specific forum):
get_results("SELECT post_title, guid, post_date, post_type, post_modified, post_type from wp_posts where post_type LIKE 'topic' && post_type LIKE 'topic' ORDER by post_date DESC limit 3","ARRAY_N");
if ($forumslist)
{
foreach ($forumslist as $row)
{
echo '<li><a href="'.$row[1].'" rel="nofollow">'.$row[0].'</a>'.date('F d, Y', strtotime($row[2])).'</li>';
}
}
else
echo 'Error fetching data';
?>
Now I would like to get the most fresh topics under a certain parent. So I know I can do something like:
$forumslist1 = $wpdb->get_results("SELECT post_title, guid, post_date, post_modified, post_type, post_parent from wp_posts where post_type LIKE 'topic' && post_parent LIKE '1263' ORDER by post_modified DESC limit 3","ARRAY_N");
but how can I order those by freshness? You can see I tried to order them by post_modified but I didnt have luck there…
So I need to know how to get the freshest topics…
Thanks,
Mario
Hi,
I have this problem. After user is registered, he is automaticaly logged. But after he log out, it is imposible to log in again. I’ve search why and find out that the password used in registration is not saved in database.
Dou anybody know where is the pice of code, in which I can find the procedure handling this action, saving password to DB after registration?
I’m using BP v.1.5.2 with WP 3.5.
I found out,that this is probably handling in the class WP_Users in _put_user($args = null). But I couldn’t find where is the problem.
It inserts the nicename,url,user_name, but not the password, or the activation key (which appears in email). The sends email is also without password (nor the user defined or generated one).
I guess that this stores all the data in DB.Found nothing wrong.
Thanks
Is this the full solutions already?
Yes
Or the known issues are still there at https://codex.bbpress.org/import-forums/mingle/ ?
This is up to date, anything listed here are the ‘workarounds’ you will need to do manually.
1) Which folder to put this file Mingle.php ?
Download `Mingle.php` using this link and upload the file with FTP to `/wp-content/plugins/bbpress/includes/admin/converters`
2) Just quickly have a look at my phpMyAdmin http://visionopen.com/questions/phpMyAdmin.png, is there any potential issue(s) for me to proceed with this Mingle.php?
Everything looks good here, on the import screen where it asks for table prefix use `wp_`
Remember to backup your web site pages and database first though…
Is this the full solutions already?
Or the known issues are still there at https://codex.bbpress.org/import-forums/mingle/ ?
Anyway, can this be more clear for entry-level users like me?
1) Which folder to put this file Mingle.php ?
2) Just quickly have a look at my phpMyAdmin http://visionopen.com/questions/phpMyAdmin.png, is there any potential issue(s) for me to proceed with this Mingle.php?
cheers
Pei
Well I don’t know how or why but as soon as I made that change, the issue went away and nothing else has broken (yet). As soon as I changed the code back to how it was, the issue reappeared. So since I have nothing else to go on, I will take this as a solution.
The code above just removes the redirect to field completely, which can’t possibly work correctly.
Can you create a bug ticket over at trac for this please
https://bbpress.trac.wordpress.org/
Just for clarification, I tried the full “do_shortcode” call just as Ben posted:
`echo do_shortcode(‘[bbp-topic-form]‘);`
which had no effect.
I am having this same issue; I created a “partner” page for /forums/ and put in the `bbp-topic-index` as well as the `bbp-topic-form`, but only admin users can use the create new topic form.
I tried creating a custom template for this page like Ben tried, but the “echo shortchode” call does nothing.
We need users a way to add new topics quickly and easily, without having to drill down to the one and only forum.
Today when i tested my websites for flaws i saw that the visual editor box text color had changed into white instead of black. This made the text invisible unless you highlighted the written text.
When i did some research on how to change it i saw that this problem goes back years.
Most forum threads didn’t even got solved.
I have found a simple solution for this problem.
When i checked my source code i saw that the visual editor .css was located in public-html/wp-includes/css/editor.min.css
Call it a lucky guess but when i searched for ‘white’ it got me to this part of the code:
wp-editor-area{color:black}
I changed it into wp-editor-area{color:white} and this solved my problem.
I hope this helps allot of frustrated people!.
I found he solution for the white text in visual editor problem when using BBpress.
Go to your ftp and open public-html/wp-includes/css/editor.min.css ( I found it viewing my site’s source code)
You will see a whole bunch of code making it almost impossible to find the right part to change.
Call it a lucky guess but when i searched the word ‘white’ i only found 1 code:
-wp-editor-area{color:white}
I changed it into black and this solved the white text problem!
so just search for wp-editor-area{color:white} and change it into:
-wp-editor-area{color:black}