News:

Wondering if this will always be free?  See why free is better.

Main Menu

SMF & WordPress

Started by Stixsmaster, March 31, 2007, 08:15:55 PM

Previous topic - Next topic

Powerbob

Just downloaded it myself, will give it a try later.



My SMF 2.1 Beta test site; http://www.pplb.net/smf21/index.php

tongutd

I installed this plugin with SMF 1.1.5 and WP 2.5.1 Now it's working fine.

nmpbk

1.09 is running for me on WP 2.5.1 ...  it imports my SMF users and new WP users are written to the SMF member table.

unfortunately the SMF user login/registration dies after activating its counterpart. have seen two other posts in this thread with the same issue i have - basically ABSPATH is stripping slashes, so i get an error like:

Fatal error: require_once() [function.require]: Failed opening required 'C:xampphtdocssmfwordpress/wp-includes/wp-db.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\xampp\smf\Sources\SMF_Wordpress.php on line 992


where C:xampphtdocssmfwordpress  should read C:\xampp\htdocs\smf\wordpress\

anyone else have this issue?

trmxplat

#303
When im trying to register from smf im getting this message:

Fatal error: Call to undefined function do_action() in /www/htdocs/w0088e80/ersterkontakt/wp-includes/functions.php on line 1703

I forgot: same config as nmpbk

AmazinAzn

So what are all the problems with this bridge? I really want to use this but I don't want to risk messing something up since my forum is pretty big.

waremock

Quote from: AmazinAzn on July 14, 2008, 01:50:14 AM
So what are all the problems with this bridge? I really want to use this but I don't want to risk messing something up since my forum is pretty big.

Create a test forum

waremock

Does anyone know the query I can run to import users from SMF to wordpress?

Been trying to create one and so far it has not worked, The closest I've gotten is this

insert into wp_users

select
'' as ID,a.member_name as user_login,a.passwd as user_pass,a.member_name as user_nicename,a.email_address as user_email,
a.website_url as user_url,a.date_registered as user_registered,'' as user_activation_key,'0' as user_status,a.member_name as display_name,

'0' as spam,'0' as deleted
from smf_members a,wp_users b
where a.member_name<>b.user_login


however it inserts the same user thousands of times.


Any SQl experts out there that can help me.



I am running smf 2.0 beta 3.1 and wordpress mu 1.51


scriptfordali

Quote from: Miyagi on June 16, 2008, 01:35:44 AM
anyone tried this... ?

hxxp:gumfi.de/wordpress-251-smf-forum-bridge/ [nonactive]

I might run a test environment tonight and have a play...

I tried the original one that was being developed and it failed with the errors described just above by the last couple of posters on here. 

I then saw this one and tried it and it now all works great!!  Thanks so much, mate!

I am using WP_SMF 1.09 , SMF 1.1.5 and this smf_wordpress_1.25.1 plugin for SMF and it works great!  I was able to successfully reg a new user in SMF and have it also update and work properly in WP and vice versa!  :D

Yay!!!!!!

maida

Yay!  I was able to get the bridge working and even import previous users :)


WP 2.6 with WP_SMF 1.09
SMF 1.1.5 with smf_wordpress_1.25.1

I did have to go in and change two lines of code in one file of smf_wordpress_1.25.1 as per a comment in the package author's post

QuoteIn smf_api_1.1.php, in line 166 we should change:
@mysql_connect($db_server, $db_user, $db_passwd)

to:
@mysql_connect($db_server, $db_user, $db_passwd, true)

This will prevent the SMF bridge from hogging the sql connection, thus allowing for wordpress to keep on running as usual

I found that in line 165 in the file I used.

kangkenyot

Quote from: maida on August 06, 2008, 01:31:27 AM
In smf_api_1.1.php, in line 166 we should change:
@mysql_connect($db_server, $db_user, $db_passwd)

to:
@mysql_connect($db_server, $db_user, $db_passwd, true)


worth to try :)
hope i'll success.

3nd3r

#310
Hello. Just a question...

Is there a way to import ALL posts and comments from SMF to WP with these plugins?

Edited: I mean the ones from here: http://gumfi.de/wordpress-251-smf-forum-bridge/

oldboy88

#311
I get the following error in SMF:

QuoteFatal error: Call to undefined function: hash_hmac() in /www/htdocs/xxx/forum/Sources/SMF_Wordpress.php on line 122

and this is what line 122 is about:

$key = hash_hmac('md5', $username . '|' . $expiration,$secret_key .  $vbsalt->option_value);

My Installation is  Wordpress 2.6 with WP & SMF 1.09, from this side i think, everything should be ok, in the config of the plugin is stated "connected", all users where imported into wordpress.
I´ve done manuel correction in the smf_api_1.1.php as said here some posts before.

QuoteIn smf_api_1.1.php, in line 166 we should change:
@mysql_connect($db_server, $db_user, $db_passwd)

to:
@mysql_connect($db_server, $db_user, $db_passwd, true)

And on the other side im running SMF 1.1.5 with smf_wordpress_1.25.1 ... but i cant login anymore, cant register ... all ******ed up ...

Ah, with i have done too, was to edit my SECRET_KEY to the SMF_Wordpress.php, becouse i was told so to do in the packet manager of smf.
So, in wp-admin, i have not only one secret_key, in Wp 2.6 i have: ('AUTH_KEY', 'SECURE_AUTH_KEY', 'LOGGED_IN_KEY',) but i´ve edited them out of the config, becouse i know you didnt need them, if you want not to use ssl ... so, there is

define('SECRET_KEY', 'XXX');

in the wp-config, and the "xxx" code is filled in SMF_Wordpress.smf on line 17 ...

can someone help me here ?

Ah, if this is relevant, the wordpress blog is installed on root, the board in a directory called "forum", so [root]/forum ....


maida

I think you are making this more complicated than it needs to be.  When I did my install, I only changed the one file that I mentioned.

For your issue, I would try uploading your original smf_wordpress.php and not changing anything.  I didn't change anything in that file at all.

Restore your wp_config.php as well.  Put the lines you took out back in.  Just because you don't use them, doesn't mean you should delete them.


define('AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('SECURE_AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('LOGGED_IN_KEY', 'put your unique phrase here'); // Change this to a unique phrase.


and remove the line you added (I'm not sure why you would add a new variable)

define('SECRET_KEY', 'XXX');

That should get you back to working - as long as all your files are uploaded and complete.

Good luck

cassie

I would love to have a way to integrate SMF and WP. It looks like the plugin is buggy though.

I can't tell from this thread which plugin is the current, working one. Can someone post the link again?

What happens down the line if this plugin isn't developed and updated as SMF and WP update? That's what I'm concerned about. Don't want problems down the line.

oldboy88

Quote from: maida on August 19, 2008, 10:27:39 AM
I think you are making this more complicated than it needs to be.  When I did my install, I only changed the one file that I mentioned.

For your issue, I would try uploading your original smf_wordpress.php and not changing anything.  I didn't change anything in that file at all.

Restore your wp_config.php as well.  Put the lines you took out back in.  Just because you don't use them, doesn't mean you should delete them.


define('AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('SECURE_AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('LOGGED_IN_KEY', 'put your unique phrase here'); // Change this to a unique phrase.


and remove the line you added (I'm not sure why you would add a new variable)

define('SECRET_KEY', 'XXX');

That should get you back to working - as long as all your files are uploaded and complete.

Good luck

re-edited my wp-config ...

have deleted the changed files of the package from the server, so that i can login, then i installled a clean version, nothing changed on the files through the packageinstaller ... but, same result ...

did you have your package files of both plugins on your harddrive ?

thanks for your help !

@cassie
if you want to try, the working versions where which maida posted some posts ago, you can see his post in the quotationmarks ...

Soulgirl

Hello there... can you help me? I installed your SMF plugin to smf v1.1.5 and wordpress v2.6.1

On trying to register on the wordpress I get this error:


WordPress database error: [Table 'soulgirl_soulgirl.wp_wpsmf_users' doesn't exist]
SELECT * FROM wp_wpsmf_users WHERE user_id = '8′ AND meta_key = 'Smf_User_ID'

WordPress database error: [Table 'soulgirl_soulgirl.wp_wpsmf_users' doesn't exist]
INSERT INTO wp_wpsmf_users ( user_id, meta_key, meta_value ) VALUES ( '8′, 'Smf_User_ID', '6′ )


It does register the new user on wordpress and on the smf but of course, because it brings up that error on registering in wordpress people might go back and keep trying or get put off completely.  I've turned the wordpress plug in off for now.

Can you help?

Karen x

oldboy88

#316
ok, now .. for a moment, i thought it works, so my setup, in detail:

Wordpress 2.6 + WP & SMF 1.09 (edited smf_api_1.1.php)

and on the smf side

SMF 1.1.5 + smf_wordpress_1.25.1 (nothing changed on a file or something)

I´ve activated the plugin, alle users where in my wordpress panel, an i could surf through my board as i want, then i logged me out ... and the same error as mentioned follows, when i want to login again:

Fatal error: Call to undefined function: hash_hmac() in /www/htdocs//forum/Sources/SMF_Wordpress.php on line 122

So, all things where ok when i was logged in ... on top of that, i am surfing with firefox, so ich opened IE, to test if i could register me as a new user, and what happend ? It works! The user was created in wordpress too ... but, once i logged out in firefox, i couldnt login with any acccount :\

Whe i register a new acconount, and gets directly logged in, i can surf through the board too ... but when i logout, i cant login anymore :\

SO ... could it be a cookie problem or something ? .\


Edit:

Ok, i tested following:
i deleted the follwing part in the SMF_Wordpress.php completly:

$key = hash_hmac('md5', $username . '|' . $expiration,$secret_key .  $vbsalt->option_value);

//$hash = hash_hmac('md5', $username . $expiration, $key);
$hash = hash_hmac('md5', $username . '|' . $expiration, $key);
$vb_cookie = $username . '|' . $expiration . '|' . $hash;


Now i can login, now i can register me as a new user, can login with this user on wordpres, can logon the board ...

but i dont know what i´ve done there with deleting this code :\
i think wordpress will have an diffrent sceme as md5, sha1 oder something like that, could that be the answer to my problem ? :\

eporedieis

#317
Quote from: maida on August 06, 2008, 01:31:27 AM
Yay!  I was able to get the bridge working and even import previous users :)


WP 2.6 with hxxp:www.earthorbit.com/opensource/ [nonactive]
SMF 1.1.5 with hxxp:gumfi.de/wordpress-251-smf-forum-bridge/ [nonactive]
I've installed they, but there is an error. Anyone know how to do?
Fatal error: wp_password() [function.require]: Failed opening required 'wp-includes/wp-db.php' (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/eporedie/public_html/forum/Sources/SMF_Wordpress.php on line 1073

eporedieis

I've done all like "boy". All ok in the smf => wp, but there are password problems in wp => smf because every user has invalid password. I close registration in wp and i link to smf to do it, and then i have no other problems!

devnet

Bridge doesn't work currently with 2.6.1 and SMF 1.1.5.

It doesn't allow registration and all logins were messed up on my test site.  I'm electing to go with SSI.php stuff in my sidebar on wordpress instead of this.

Advertisement: