Forums

Import SMF posts into Wordpress (18 posts)

  1. 3nd3r
    Member
    Posted 2 years ago #

    I am inexperienced in Wordpress. I haven't installed it yet, but in a few days I will do it.
    It seems to me the ideal system for which it was looking for.
    I have a Web (http://www.pajareo.com) based on SMF system (SimpleMachinesForum) and have made some modifications to turn it to a "look-alike" weblog... Until I have seen that there is no way to continue modifying to obtain that lookk.
    I have realized that better to imitate WordPress, I must install and use WordPress (evident, no? : P)
    Well, the thing is that I do not want to lose posts and commentaries (almost 1200 posts and 2000 commentaries), so my question is:
    How can I import them?
    Perhaps using some “bridge” between SMF and WP first and then eliminating SMF…? I have looked for a way to do it in forums but I have only seen solutions about integrating SMF and WP...
    Thanks in advance for your time.

  2. MichaelH
    moderator
    Posted 2 years ago #

    Did any of the threads that are in the tag SMF help you?

    Just click on the SMF (up above) tag you added to this thread to see those other threads.

  3. 3nd3r
    Member
    Posted 2 years ago #

    Well, I did a search before posting, but what I've found talks about integration of SMF into WP or viceversa. No posts about importing (at least, no one with a solution)

  4. jjgallow
    Member
    Posted 2 years ago #

    Hey 3nd3r,

    You can do this, yes.

    DMRY's bridge has features to allow put smf posts in wordpress. However, they are at an early stage and buggy.

    http://www.dmry.net/wordpress-smf-bridge-plugin-10

    You would have to read up on it there, and do some work to build it into your site.

    I believe this is the function you would want to call:
    SMF_EnSonBasliklar($limit=10,$before_all,$before_message,$after_message,$after_all)

    Anyway, I am working on improving DMRY's script, to remove bugs and make it more user friendly.

    I would suggest trying out one of the newer versions here:
    http://www.earthorbit.com/opensource

    Keep in mind that I have not yet made it to these features, so I have no idea if they work, but they probably do.

    (when I'm happy with the script, I'll send it back to DMRY and I'd imagine he'll host it there)

  5. 3nd3r
    Member
    Posted 2 years ago #

    Thank you very much for your interest.
    I've seen that bridge, but I didn't know it can do what I want.
    I'll try yours and will tell you.

  6. 3nd3r
    Member
    Posted 2 years ago #

    Well, today I could try at last...
    And there is a little thing...
    When configuring WP_SMF plugin I must enter the path for SMF Forum... But, in my case I have this configuration:
    SMF: /home/pajareo/public_html/
    Wordpress: /home/pajareo/public_html/wp/

    And in the plugin config I only see /home/pajareo/public_html/wp/ [blank box] /

    So... What can I do?

  7. jjgallow
    Member
    Posted 2 years ago #

    That would be me being stupid with my code!

    Thank you for pointing this out.

    The problem should be fixed now if you download a fresh copy.

    I didn't change the version number, but I did fix it.

    Let me know how it goes, and thank you kindly for pointing the bug out!

  8. 3nd3r
    Member
    Posted 2 years ago #

    Ok, I didn't know this was a bug. I'm happy to contribute.

    Well, first error message after Wordpress plugin reinstalation:

    [SELECT command denied to user 'pajareo_wp'@'localhost' for table 'smf_members']
    SELECT ID_MEMBER, memberName, passwd, emailAddress, personalText, websiteUrl, aim, yim, realName from 'pajareo_smf'.smf_members ORDER BY ID_MEMBER

    That user is my wp admin user, so, I went to mySQL db area through cPanel and update smf database with all access granted for pajareo_wp adminuser... And error is gone. :-)

    So, now I'm experimenting to show SMF post with
    <?php echo SMF_EnSonBasliklar($limit=10,'<ul>','<li>','</li>','</ul>') ?>
    I will tell you how this works for me.

  9. 3nd3r
    Member
    Posted 2 years ago #

    Well... After all that isn't what I want.

    What I want is a way to IMPORT smf posts into WP posts, boards into categories, answers to smf posts into comments ... And so on. I meant, a complete db DUMP to definitively delete SMF Forum and continue with Wordpress without losing any data.

    Maybe with a similar procedure like you did with users can work?

    If not, I'll try a SQL dump from smf db to wp db... Doing a double backup first! ;-)

  10. jjgallow
    Member
    Posted 2 years ago #

    lol...ok, good luck with the dump! glad to here you're double-backing it up.

    sorry this didn't have what you were looking for with the integration yet...maybe it will in time.

  11. gecekusu
    Member
    Posted 2 years ago #

    What I want is a way to IMPORT smf posts into WP posts, boards into categories, answers to smf posts into comments ... And so on.

    This is exactly what I m looking for..I ll be waiting..

  12. jjgallow
    Member
    Posted 2 years ago #

    Well, lol...

    That sort of thing will be my next project, but I'm in no rush. The WP_SMF bridge is already, or very nearly stable now. Unfortunately, it only functions for user integration at this stage.

    As for site integration...you can display most recent posts, etc...in wordpress using the brige. As for importing...not at this stage. I will certainly consider the idea moving forward.

    Please do let me know if you figure a way out first!

    cheers :)

  13. gecekusu
    Member
    Posted 2 years ago #

    [SELECT command denied to user 'dboblog'@'localhost' for table 'smf_members']
    SELECT ID_MEMBER, memberName, passwd, emailAddress, personalText, websiteUrl, aim, yim, realName...

    I get this error message.can you please explain me how can I do this?

  14. jjgallow
    Member
    Posted 2 years ago #

    I can try...but you need to be more specific.

    What are you doing? Are you installing SMF? Are you using my bridge?

    When do you get the error?

    All I can say from what you've shown me is that your server isn't giving you the authority to access your database...and it looks like that's because it's trying to access smf information from your wordpress database.

  15. gecekusu
    Member
    Posted 2 years ago #

    oh sorry about this.my bad..
    I didnt see this
    " That user is my wp admin user, so, I went to mySQL db area through cPanel and update smf database with all access granted for wp adminuser... And error is gone. :-)"

    it works perfect now...

    thanks very much..

  16. jjgallow
    Member
    Posted 2 years ago #

    no problems gecekusu,

    I'm glad it worked out :)

  17. AmyStephen
    Member
    Posted 2 years ago #

    Do you realize that the SMF bridge violates the GPL? SMF held discussions with the FSF on bridging their proprietary forum with a GPL environment. Motoko-chan, from SMF, posted this email exchange; see the July 23rd response from Brett Smith.

    Honestly, you'd be far better off bridging to phpBB3. It's GPL and it's in RC4. GPL to GPL is compatiable.

  18. jjgallow
    Member
    Posted 2 years ago #

    Hello Amy,

    Unfortunately, this is news to me. My bridge is currently hosted on Wordpress, which they approved. For this reason, I would have to assume that, at this time, they have no concerns about the GPL licensing. As well, I could easily license the bridge under GPL since it was not created by SMF.

    Having said that, you do make a good point and there is always the possibility that Wordpress or SMF could ask for the development to cease.

Topic Closed

This topic has been closed to new replies.

About this Topic