News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMF & WordPress

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

Previous topic - Next topic

af3

this is working ok for me on wpmu2.6.3 + smf1.1.7 on all browsers except firefox3 and chrome: i cant login at all. when logging in, it will just go back to the login screen. pls help.

btw, another one small issue: when a user register in wpmu, this user registration stats is not inserted in the smf database, so the smf month stats will show zero registration. any idea where to fix this in the file? is this ins smf-wordpress file? thanks

Chris369

Has anyone got a working integration? I have SMF 1.1.5 and WP 2.6.3

I want my SMF users to be able to login n to WP with the same login details.

And it would be cool if blog posts/blog comments translated into SMF threads/SMF posts as well.

Anyone know of a working solution?

I've tried this - http://wordpress.org/extend/plugins/wp-smf-a-simplemachines-bridge/ - but whenever I change the directory of my forum in the plugin settings I can't get any blog pages to load ... get some error about not being able to open stream on line 384 (?) of wp_smf.php (I think it was that file anyway).

chaky!

Quote from: Chris369 on November 14, 2008, 02:08:37 PM
Has anyone got a working integration? I have SMF 1.1.5 and WP 2.6.3

I want my SMF users to be able to login n to WP with the same login details.

And it would be cool if blog posts/blog comments translated into SMF threads/SMF posts as well.

Anyone know of a working solution?

I've tried this - http://wordpress.org/extend/plugins/wp-smf-a-simplemachines-bridge/ - but whenever I change the directory of my forum in the plugin settings I can't get any blog pages to load ... get some error about not being able to open stream on line 384 (?) of wp_smf.php (I think it was that file anyway).

I recived the same error... someone fixedit?

af3

Quote from: af3 on November 11, 2008, 06:42:24 AM
this is working ok for me on wpmu2.6.3 + smf1.1.7 on all browsers except firefox3 and chrome: i cant login at all. when logging in, it will just go back to the login screen. pls help.
update: this is fixewith firefox 3.0.4

Quotebtw, another one small issue: when a user register in wpmu, this user registration stats is not inserted in the smf database, so the smf month stats will show zero registration. any idea where to fix this in the file? is this ins smf-wordpress file? thanks
still havent got this fixed .. any idea how?

Chris369

Quote from: Chris369 on November 14, 2008, 02:08:37 PM
Has anyone got a working integration? I have SMF 1.1.5 and WP 2.6.3

I want my SMF users to be able to login n to WP with the same login details.

And it would be cool if blog posts/blog comments translated into SMF threads/SMF posts as well.

Anyone know of a working solution?

I've tried this - http://wordpress.org/extend/plugins/wp-smf-a-simplemachines-bridge/ - but whenever I change the directory of my forum in the plugin settings I can't get any blog pages to load ... get some error about not being able to open stream on line 384 (?) of wp_smf.php (I think it was that file anyway).

Anyone?

teflon

http://www.simplemachines.org/community/index.php?topic=253806.0
you have to edit the page so that it references a lower case folder

Chris369

Quote from: teflon on November 19, 2008, 08:34:39 PM
http://www.simplemachines.org/community/index.php?topic=253806.0
you have to edit the page so that it references a lower case folder

Cheers that worked.

It copied the users from wordpress to the forum but it hasn't copied the forum members to wordpress. Should it do?

lolicute

there any update to work in WP 2.6?

mdjames0001

#348
Quote from: scriptfordali on August 02, 2008, 11:19:18 PM
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!!!!!!

YES!!! This one finally works!!! I've been trying to find a download and couldn't find one. This finally worked.

Now...can anyone tell me how to reset it so that you can do the user integration again? I only have a one way (WP to SMF) integration of old users. I have tried the reset proceedure of deactivating both, dropping the WPSMFUsers table. I even dropped out the Option Records beginning with SMF (2 of them). It resets enough to let me enter the path of the SMF install, but that's it. Still says Users are integrated. or some such nonsense.

HELP!!!

Michael in Hawaii - hxxp:www.aplazak.com [nonactive] - Blog, photo gallery, and Community forum - <adult>

Chris369

Quote from: Chris369 on November 20, 2008, 04:00:28 PM
Quote from: teflon on November 19, 2008, 08:34:39 PM
http://www.simplemachines.org/community/index.php?topic=253806.0
you have to edit the page so that it references a lower case folder

Cheers that worked.

It copied the users from wordpress to the forum but it hasn't copied the forum members to wordpress. Should it do?

Anyone?

mdjames0001

Is this during install that it isn't copying them? Or after installation when you try a new registration?

I can't get the existing Forum Members to copy to the Wordpress Members. I think the new code should do it if I could get the script to reset and let me try it again, but I can't get it to reset.

Michael in Hawaii - hxxp:www.aplazak.com [nonactive] - Blog, photo gallery, and Community forum - <adult>

mdjames0001

#351
Quote from: oldboy88 on August 19, 2008, 05:43:31 PM
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 ? :\

In this above example. I am getting the same thing the error in line 122. What I have noticed is that if you go in through WP and then link to SMF you get logged in fine. If you logout (as shown in his example above) you can't log back in. And for me as well, commenting out those line seems to help. hash_hmac seems to be a fucntion in a different version of PHP. I noticed that in the wp-includes folder, compat.php defines hash_hmac if it is not already defined.

If anyone is interested in cleaning up the code, that may be a place to look. I tried doing and include_once of that file, but it didn't work. I also am nto a good php programmer and don't really know how to do an include properly. :-) I simply looked for and include statement and tried to replicate it.

Onward and forward.

I still would like to know if someone has been able to reset the two systems so that you can try relinking the users. I have never gotten the SMF users to be copied to the WP users.

EDITED:
AHA!!! I Fixed it. I tried this instead. require_once (ABSPATH . 'wp-includes/compat.php');
right before the first hash_hmac. It doen't fail, I can logout and back in as the same suer or another user.

Aloha,
Michael
hxxp:www.aplazak.com [nonactive]

sosuke

Quote from: mdjames0001 on December 07, 2008, 04:16:13 AM
Quote from: oldboy88 on August 19, 2008, 05:43:31 PM
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 ? :\

In this above example. I am getting the same thing the error in line 122. What I have noticed is that if you go in through WP and then link to SMF you get logged in fine. If you logout (as shown in his example above) you can't log back in. And for me as well, commenting out those line seems to help. hash_hmac seems to be a fucntion in a different version of PHP. I noticed that in the wp-includes folder, compat.php defines hash_hmac if it is not already defined.

If anyone is interested in cleaning up the code, that may be a place to look. I tried doing and include_once of that file, but it didn't work. I also am nto a good php programmer and don't really know how to do an include properly. :-) I simply looked for and include statement and tried to replicate it.

Onward and forward.

I still would like to know if someone has been able to reset the two systems so that you can try relinking the users. I have never gotten the SMF users to be copied to the WP users.

EDITED:
AHA!!! I Fixed it. I tried this instead. require_once (ABSPATH . 'wp-includes/compat.php');
right before the first hash_hmac. It doen't fail, I can logout and back in as the same suer or another user.

Aloha,
Michael
www.aplazak.com [nofollow]

it took 18 posts to make it work? ****** i can't get it though. I'm a retard in HTML

mdjames0001

#353
To be fair, it was 18 PAGES of posts. But hey. It's worth it.

I posted the ones that I am using. The 1.25.1 has my mod in it. install the SMF Package first then the wordpress plugin and integrate in Plugins/SMF Config, then integrate users.

Note, I still have not found a way to integrate users a second time. and I'm still not sure that the SMF users get integrated to WP, only WP to SMF.

But other than that it works great!! :P

Michael in Hawaii - hxxp:www.aplazak.com [nonactive] - Blog, photo gallery, and Community forum - <adult>

Phat^Trance

what does these mod actually do?

is it possible to transfer all my current comments to the SMF forum? 

or is it possible to redirect a comment user from my blog post to a post on my forum when the visitors wants to comment?
Daily Mobile Blog:  http://dailymobile.se/
Daily iPhone Blog: http://dailyiphoneblog.com/
Daily Mobile forum: http://forum.dailymobile.se/

Sanhux

Is there any updated howto /plugins to integrate the user base of SMF and WP ?

I tried the old bridge, but get some errors in that ocasion, so isn't work for me.

tks

Sel_888

Would any of these mods allow the link to a user's blog show up in their smf post (either in their sig line or whatever.)
I have an example, but it's a phpbb site... but the idea is what I want.
http://www.gardenstew.com/about13257.html

Am I way off base with this? I tried to search out what these do, but all I am finding is that if one registers for one it registers for the other. I want simply that the registered users of SMF would be able to show their link to their blog automatically (especially 'recent blog entry' link) through them posting in SMF.
confusing... I know.
-Sel
I didn't get it wrong, I just found 10,000 ways it doesn't work...

LagunaChapala.com - A community site for South Shore residents

Joe_lemon

Hi all! I thank you for all your tips those have help me in the installation of this bridge. Now it works! :)
There's only a thing that I'd like to change: is it possible to do that when an user is logged in wordpress he is logged in smf too? Because you have to do two different logins and this isn't so comfortable..many thanks!

SB1

When I installed the bridge, it asked me to import the existing users, I did this and the whole wordpress installation went blank. I can't even log in to disable the package as it's blank on every page.

Anyone have any idea why? It's wordpress 2.7.

robinwickens

An up to date link where all plug-ins are available would be appreciated!
Every link that I click on is returned as unavailable!

Advertisement: