Stephen Edgar (@netweb)

Forum Replies Created

Viewing 25 replies - 2,076 through 2,100 (of 3,352 total)
  • In reply to: phpbb import hanging?

    @netweb

    Keymaster

    At what point do I give up and start again. Should it take over four hours?

    You should see it start and offer you some sort of notice that it has within seconds.

    Via FTP or your web host cPanel admin etc, open your phpBB config file /public_html/phpbbv3/config.php and make sure these are the values you are using on the bbPress importer screen.

    <?php
    // phpBB 3.0.x auto-generated configuration file
    // Do not change anything in this file!
    $dbms = 'mysqli';
    $dbhost = 'localhost';
    $dbport = '3306';
    $dbname = 'my_phpbb_database';
    $dbuser = 'my_user_name';
    $dbpasswd = 'abcdefgh';
    $table_prefix = 'phpbb_';
    

    (The $dbhost & $dbport may be blank as thats the default so use the settings I list above which are the default on the bbPress importer anyway)

    @netweb

    Keymaster

    bbPress is a plugin for WordPress and will only use the WordPress database.

    If your WordPress instances, instance “A” and instanace “B” are sharing databases already bbPress will use whatever database you have WordPress setup with.

    I think if you had a look at configuring WordPress to use multisite
    https://codex.wordpress.org/Create_A_Network

    @netweb

    Keymaster

    Everything is still going fine, I ran some phpBB imports yesterday whilst implementing a few minor updates.

    Details are here https://bbpress.trac.wordpress.org/ticket/2467

    Feel free to download the latest from here:

    https://bbpress.trac.wordpress.org/browser/trunk/includes/admin/converters/phpBB.php

    In reply to: SMF Import to bbPress

    @netweb

    Keymaster

    You should have this file on your server /public_html/smf/Settings.php

    Open up that file in a text editor

    ########## Database Info ##########
    $db_server = 'localhost';
    $db_name = 'db_smf';
    $db_user = 'db_user';
    $db_passwd = 'abcdefghigh';
    $db_prefix = 'smf_';
    

    They are the settings you need to use for your import.

    In reply to: SMF Import to bbPress

    @netweb

    Keymaster

    Just uploaded a new version of SMF.php, the core changes of the forum import have not changed. The main changes are the regex (regular expressions) to convert SMF’s BBCode.

    It is a start and only a few tweaks are left to do, alas it’s 10pm Friday night and I’m done for the night 😉

    https://bbpress.trac.wordpress.org/attachment/ticket/2380/SMF.3.php
    https://bbpress.trac.wordpress.org/ticket/2380#comment:7

    @netweb

    Keymaster

    Again, you can extend bbPress with custom views.

    One of the sites in that link list has 4 views:

    Most popular topics
    Topics with no replies
    Topics with most replies
    Latest topics

    That doesn’t mean they are part of bbPress, check your themes functions.php file for something like this:

    function wphc_register_custom_views() {
    	bbp_register_view( 'popular-topics', __( 'Popular Topics' ), array( 'meta_key' => '_bbp_reply_count', 'orderby' => 'meta_value_num' ), false );
    	bbp_register_view( 'unpopular-topics', __( 'Unpopular Topics' ), array( 'meta_key' => '_bbp_reply_count', 'orderby' => 'meta_value_num', 'order' => 'asc' ), false );
    	bbp_register_view( 'random-topic', __( 'Random Topic' ), array( 'orderby' => 'rand' ), false );
    	bbp_register_view( 'closed', __( 'Recently Closed' ), array( 'post_status' => 'closed' ), false );
    	
    
    }
    add_action( 'bbp_register_views', 'wphc_register_custom_views' );

    @netweb

    Keymaster

    You will find it very hard to find a plugin that will work due to the massive changes in roles & capabilities introduced in newer versions of bbPress.

    I suggest you update to bbPress 2.4.1 and most of what you are after will be able to be configured without the need of a plugin.

    @netweb

    Keymaster

    I did some pretty exhaustive testing of this a couple of days ago and was not able to reproduce this behaviour. Can you give us some more details with some direct links to your site highlighting the issue.

    @netweb

    Keymaster

    Check your forum settings, anonymous posting may be enabled.

    https://codex.bbpress.org/forum-settings/

    Anonymous posting
    Any site visitor can post a new topic or reply without the need of logging into your site. They will still be required to enter a name and email to post, but will not be required to create a username or password and will not be shown in the list of WordPress Users.

    @netweb

    Keymaster

    You can give it a shot, time permitting I’ll try to help where I can, there is a lot of info in those links I shared above and in the codex I linked to also.

    @netweb

    Keymaster

    It might be worth that being explained somewhere as I can’t be the only person whom that’s confused.

    I made a note of this at https://codex.bbpress.org/import-forums/vanilla/

    A CSV import will work perfectly, it is just a matter of matching the to & from fields in the dataset, good data = good import.

    @netweb

    Keymaster

    You could just make the data anonymous, if there is username, emails etc after your export just normalize the data,

    Eg. Username: Donta -> user1
    Email donta@mydomain.com -> user1@example.com

    The same for IP addresses, topic title, or any other data you can just change this ‘recognizable’ data to some generic text, the sql you export will be in plain text so you can edit this in any text editor.

    The key information needed is:

    * 3-5 rows from the forum table
    * 3-5 rows from the thread table that are listed in the above forums sql
    * 10-15 rows from the post table that show replies from the above topics sql
    * 1-3 rows from the user table that shows users from the above topics & replies sql

    @netweb

    Keymaster

    bbPress only includes two views ‘out of the box’ and they are both translatable.

    Most popular topicshttps://bbpress.trac.wordpress.org/browser/tags/2.4.1/languages/bbpress.pot#L301
    &
    Topics with no replieshttps://bbpress.trac.wordpress.org/browser/tags/2.4.1/languages/bbpress.pot#L305

    Check if you have these in a custom function or another plugin.

    @netweb

    Keymaster

    The bbPress importer only supports importing from self hosted versions of Vannila from http://vanillaforums.org/get/vanilla-core

    If you want to import to bbPress you will need to find a way to export your data and then do a custom CSV import.

    Here is probably the best place to start http://vanillaforums.com/search?Search=export

    Also CSV imports https://bbpress.org/forums/topic/custom-import/ & https://bbpress.org/forums/topic/import-bb-data-from-csv-file-to-bbpress-forum/

    @netweb

    Keymaster

    I said:

    If you are comfortable in phpMyAdmin and you could export half a dozen rows from each of the ‘forum’, ‘thread’, ‘post’, ‘tagcontent’, ‘tag’ & ‘user’ tables I could have a closer look at why this isn’t working for you.

    So if you can export some sample data add the exports to a .zip file and link to it here I will take a look.

    @netweb

    Keymaster

    It is depreciated in favor of the new bbPress Roles & Caps thus why it is not called.

    (If you want to see all this history see the change sets attached to #1939

    And if you want more https://bbpress.org/forums/topic/roles-and-capabilities-in-bbpress-2-2/

    @netweb

    Keymaster

    Is this a page or a post? redhorsecrm.com/forums

    @netweb

    Keymaster

    Your sign in issues are WordPress & MediaWiki issues, nothing to do with bbPress, I suggest you ask on WordPress Support https://wordpress.org/support/

    Your bbPress issue is not existant now as all I see is SimplePress on your site.

    @netweb

    Keymaster

    Having a quick look you should be able to export the ‘questions’ via /wp-admin/export.php

    As the plugin uses ‘Custom Post Types’ you should be able to then edit the exported XML file and find do a search and replace:

    Find <wp:post_type>question</wp:post_type>

    Replace <wp:post_type>topic</wp:post_type>

    I had issues with the plugin on my site so I am not sure if it uses ‘question’ for the answers or uses ‘answers’ as a CPT for them, if it does use ‘answers’ then search and replace:

    Find <wp:post_type>answers</wp:post_type>

    Replace <wp:post_type>reply</wp:post_type>

    Once you have done that then import them back into WordPress and see how they look, no doubt there will be a few issues such as topics not associated with a forum and depending on how many of these you have editing them in bbPress topic/reply panels should help you fix up any issues, if you have thousands then doing some more tweaking in the XML would be your best bet.

    To get an idea of what you would need the best idea would be to export some bbPress forums, topics & replies and have a look at the XML and this should help you work out what values you need to use for search and replace.

    In reply to: Custom Import

    @netweb

    Keymaster

    Cool, things look good on your site now 🙂

    For the users simply check the following box when you are importing your forum 😉
    Convert Users - Attempt to import user accounts from previous forums
    (Yes, you will have to reset bbPress and run your import again https://codex.bbpress.org/reset-forums/)

    @netweb

    Keymaster

    I would suggest you ask your web host as to why you are getting this error.

    Also try deactivating all your other plugins so make sure there is no plugin conflicts, also try using one of the built in themes such as Twenty Eleven/Twenty Twelve/Twenty Thirteen

    @netweb

    Keymaster

    Cool, let me know how it all ends up 🙂

    @netweb

    Keymaster

    Also I have only tested the vBulletin importer with importing from vBulletin v4.2 so there might be a few changes in the database structure between 4.1x & 4.2x but as I can’t get my hands on vBulletin 4.15 I cannot confirm this.

    If you are comfortable in phpMyAdmin and you could export half a dozen rows from each of the ‘forum’, ‘thread’, ‘post’, ‘tagcontent’, ‘tag’ & ‘user’ tables I could have a closer look at why this isn’t working for you.

    @netweb

    Keymaster

    I’d suggest looking up how phpBB deals with imported vBulletin user passwords, some importers convert the password after the fact, so until userxyz logs into phpBB the password isn’t converted to the phpBB forums format.

    In reply to: Custom Import

    @netweb

    Keymaster

    Everything looks pretty good 🙂

    I could only see the one issue

    You have:

    // Forum parent id (If no parent, then 0. Stored in postmeta)
    $this->field_map[] = array(
    'from_tablename' => 'forum_forums',
    'from_fieldname' => 'ForumGroupID',
    'to_type' => 'forum',
    'to_fieldname' => '_bbp_forum_parent_id'
    );
    

    And this should be either 'from_fieldname' => 'ParentID', or 'from_fieldname' => 'GroupID'

    I tried it again using my cpanel login which should be a sql login and now it’s got a growing line of dashes across the screen. It’s been running for over 30 minutes and there are less than 200 posts, so I’m not sure what it’s doing. Is there anything I can check to see what it’s doing? If anything?

    This looks right in that using your cPanel login, I would double check your webhost help section to confirm what your MySQL user/pass are (You can also grab these typically from your WordPress wp-config.php file via FTP.

    The ‘——–‘ is a horrible bug that happens more than I would like but debugging this has been a pain to say the least and I haven’t been able to find what causes it yet alone a fix for it. Typically logging out and logging back in ‘seems to fix it’ most of the time.

    With all that said though if you can get past that ‘bug’ then it looks like you are good to go.

    EDIT: With ~200 posts the whole process should be completed in under 5 minutes.

Viewing 25 replies - 2,076 through 2,100 (of 3,352 total)