Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SlammedDime on May 19, 2011, 06:54:29 PM

Title: Wordpress 3.0+ User Integration
Post by: SlammedDime on May 19, 2011, 06:54:29 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3008)

This is an integration for Wordpress 3.0+ and SMF 2.0 RC5+.


Some basic features:
Title: Re: Wordpress 3.0+ User Integration
Post by: Eudemon on May 19, 2011, 07:35:58 PM
hey 1st page reply for a soon be popular mod  ;D

so this check and updates both smf and wp db tables right

does it work for separate domains?
does it modifies wp files as well?
i guess it won't work if the sites are in different servers
(unless use remote db, but wutever this has nothing to do with me right now XD)

what about more than one wp and/or smf

i have smf and wp this mod should be useful, thx
will give this a try in the near future
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on May 19, 2011, 07:45:20 PM
Quote from: Eudemon on May 19, 2011, 07:35:58 PM
hey 1st page reply for a soon be popular mod  ;D

so this check and updates both smf and wp db tables right

does it work for separate domains?
i guess it won't work for sites in difference servers

what about more than one wp and/or smf

i have smf and wp this mod should be useful, thx
Yes, it will update either database if the user doesn't exist in it.  No it will not work on different domains because of the rules of cookies.  It also won't work on different servers as this mod needs access to the wp-config.php file.  It also won't work on more than one wp/smf combo, as the database info is contained in the wp-config.php file for one wp install only.
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on May 19, 2011, 07:45:50 PM
Quote from: live627 on May 19, 2011, 07:21:15 PM
QuotePHP 5.2... required
You don't
eh?
Title: Re: Wordpress 3.0+ User Integration
Post by: Eudemon on May 19, 2011, 07:53:52 PM
didn't know u were online, was editing my post
thx for the quick respond tho

QuoteWhen a user updates their profile in SMF, it will update in Wordpress
does this include post counts, avatar etc? (i'm sure password, e-mail stuff are included right)

QuoteIt also won't work on more than one wp/smf combo, as the database info is contained in the wp-config.php file for one wp install only.
i think it should work if those wp or smf share some tables
for example i have 2 smf sites that are in the same database with separate tables
but they share the same member, membergroup etc tables

can u gimme a list of tables this mod will modify just to make sure it won't have conflict
Title: Re: Wordpress 3.0+ User Integration
Post by: Ken. on May 19, 2011, 08:47:30 PM
Quote from: Eudemon on May 19, 2011, 07:35:58 PM
hey 1st page reply for a soon be popular mod  ;D

Plus 1!  8)
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on May 20, 2011, 01:00:52 AM
Quote from: Eudemon on May 19, 2011, 07:53:52 PM
didn't know u were online, was editing my post
thx for the quick respond tho

QuoteWhen a user updates their profile in SMF, it will update in Wordpress
does this include post counts, avatar etc? (i'm sure password, e-mail stuff are included right)

QuoteIt also won't work on more than one wp/smf combo, as the database info is contained in the wp-config.php file for one wp install only.
i think it should work if those wp or smf share some tables
for example i have 2 smf sites that are in the same database with separate tables
but they share the same member, membergroup etc tables

can u gimme a list of tables this mod will modify just to make sure it won't have conflict
I don't see how post counts would sync... wordpress doesn't track that data.  Avatar won't sync either.  The only items that sync are:
            'member_name' => 'user_login',
            'real_name' => 'display_name',
            'email_address' => 'user_email',
            'id_group' => 'role',
            'website_url' => 'user_url',


This mod also does not modify any database tables.  It only inserts members into SMF's members table or Wordpress' user table, either through SMF's registerMember method or direct database injection respectively.


Quote from: live627 on May 19, 2011, 08:02:25 PM
Quote from: SlammedDime on May 19, 2011, 07:45:50 PMeh?
Your own rule got broken. So the PHP4 compatibility rule is null and void now, then.
You should probably take some time to review the updated Customization Guidelines...
Title: Re: Wordpress 3.0+ User Integration
Post by: King N on May 20, 2011, 04:27:12 AM
A feature to be added is that whenever a post is made in wordpress, a thread about that post is made in smf.
Title: Re: Wordpress 3.0+ User Integration
Post by: Masterd on May 20, 2011, 06:41:15 AM
Nice mod, SlammedDime! :D
Title: Re: Wordpress 3.0+ User Integration
Post by: Özgür on May 20, 2011, 07:32:13 AM
As always with SlammedDimme, nice work.
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on May 20, 2011, 11:02:43 AM
Quote from: King N on May 20, 2011, 04:27:12 AM
A feature to be added is that whenever a post is made in wordpress, a thread about that post is made in smf.
Sorry King N, that won't likely happen anytime soon.  This mod can make no integration with Wordpress itself, it can only modify.  The only way to accomplish that would be to use Scheduled Tasks and poll the Wordpress database on a regular basis and create posts off of that, so there would be a delay between when it's posted in Wordpress to when it's posted in SMF.  However, I disagree with needing to even do that in the first place.  Why duplicate content?


Quote from: Masterd on May 20, 2011, 06:41:15 AM
Nice mod, SlammedDime! :D
Quote from: Özgür | Daydreamer on May 20, 2011, 07:32:13 AM
As always with SlammedDimme, nice work.
Thanks guys
Title: Re: Wordpress 3.0+ User Integration
Post by: KensonPlays on May 20, 2011, 12:31:25 PM
Is there a plugin you need to install on the WP end? or not?
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on May 20, 2011, 12:40:52 PM
Nopers... hell nopers... I severely dislike the GPL for PHP code ;)
Title: Re: Wordpress 3.0+ User Integration
Post by: KensonPlays on May 20, 2011, 12:42:22 PM
Ok. I will try this out when I get the time tomorrow :)
Title: Re: Wordpress 3.0+ User Integration
Post by: nram on May 20, 2011, 01:49:19 PM
I login to SMF but not I log in WP. I also can not register one in the SMF!
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on May 20, 2011, 02:54:26 PM
Any errors on screen?  Any errors in your error log?  Link to your site?  Test account?
Title: Re: Wordpress 3.0+ User Integration
Post by: nram on May 20, 2011, 03:13:21 PM
Quote from: SlammedDime on May 20, 2011, 02:54:26 PM
Any errors on screen?  Any errors in your error log?  Link to your site?  Test account?
Try register: http://forum.umportfolio.net/index.php?action=register

Portal: http://umportfolio.net
Title: Re: Wordpress 3.0+ User Integration
Post by: ormuz on May 20, 2011, 04:15:21 PM
Quote from: King N on May 20, 2011, 04:27:12 AM
A feature to be added is that whenever a post is made in wordpress, a thread about that post is made in smf.

There is already a plugin on wp repository that does that very well.

thanks a lot for this mod.
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on May 20, 2011, 04:40:52 PM
Quote from: nram on May 20, 2011, 03:13:21 PM
Quote from: SlammedDime on May 20, 2011, 02:54:26 PM
Any errors on screen?  Any errors in your error log?  Link to your site?  Test account?
Try register: http://forum.umportfolio.net/index.php?action=register

Portal: http://umportfolio.net
Can you please answer the other three questions I asked?  Also I haven't tested this with subdomains, so there is a possibility it may not work with them.
Title: Re: Wordpress 3.0+ User Integration
Post by: nram on May 20, 2011, 04:53:27 PM
Quote from: SlammedDime on May 20, 2011, 02:54:26 PM
Any errors on screen?  Any errors in your error log?  Link to your site?  Test account?

Any errors on screen?
When I try to register: "Database Error: Please try again. If you come back to this error screen, report the error to an administrator."

Any errors in your error log?
Nop

Test account?
User: teste
Pass: teste

I can not give administrator accounts because it has confidential information



Other settings:
- Use subdomain independent cookies [YES]
- Use database driven sessions [YES]

- No portal estou a usar SSI do SMF
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on May 20, 2011, 04:55:07 PM
If you disable the bridge and try to register, does it then work?

Edit: It looks like subdomains is the problem, I never tested it (almost purposefully, as I did not need it).  The cookie is not being set with a proper domain so it's not being passed to Wordpress.  I'll try to look into this soon to see how I can overcome that (should be fairly easy).  Anyone else should also feel free to try and nail it and provide patches... the mod is open source and all...
Title: Re: Wordpress 3.0+ User Integration
Post by: nram on May 20, 2011, 05:01:47 PM
Quote from: SlammedDime on May 20, 2011, 04:55:07 PM
If you disable the bridge and try to register, does it then work?

Edit: It looks like subdomains is the problem, I never tested it (almost purposefully, as I did not need it).  The cookie is not being set with a proper domain so it's not being passed to Wordpress.  I'll try to look into this soon to see how I can overcome that (should be fairly easy).  Anyone else should also feel free to try and nail it and provide patches... the mod is open source and all...
Okay, thanks! : D
Title: Re: Wordpress 3.0+ User Integration
Post by: tfs on May 21, 2011, 11:02:57 AM
Bump for later.
Title: Re: Wordpress 3.0+ User Integration
Post by: daveb47 on May 23, 2011, 09:17:19 AM
I am getting this error message

wp-login.php is not redirecting to SMF

Sorted lol
Title: Re: Wordpress 3.0+ User Integration
Post by: Pricetag on May 23, 2011, 02:19:43 PM
I am getting a data base error from the bridge, whenever a user tries registering he gets
QuotePlease try again. If you come back to this error screen, report the error to an administrator.
I take a look at the error log and it points to the bridge. I attached the log below.

I'm not on a sub-domain but im a directory below my blog is at root and the forum is at site/community
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on May 23, 2011, 02:27:11 PM
Fudge... will upload an updated package... uno momento...
Title: Re: Wordpress 3.0+ User Integration
Post by: Pricetag on May 23, 2011, 02:36:21 PM
Quote from: SlammedDime on May 23, 2011, 02:27:11 PM
Fudge... will upload an updated package... uno momento...
can't wait!
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on May 23, 2011, 02:46:06 PM
Ok, new package uploaded.  It has 'upgrade' instructions so you can simply upload it and install it right over the existing one and it will upgrade the installation.
Title: Re: Wordpress 3.0+ User Integration
Post by: Pricetag on May 23, 2011, 02:52:37 PM
Quote from: SlammedDime on May 23, 2011, 02:46:06 PM
Ok, new package uploaded.  It has 'upgrade' instructions so you can simply upload it and install it right over the existing one and it will upgrade the installation.
thanks, it works perfectly now
Title: Re: Wordpress 3.0+ User Integration
Post by: chadon on May 24, 2011, 04:20:00 PM
Quote from: daveb47 on May 23, 2011, 09:17:19 AM
I am getting this error message

wp-login.php is not redirecting to SMF

Sorted lol

I have the same message but I can't get it sorted.
I gave the writting permissions to the blog's folder, to the wp-config file, clicked on the Fix file button, reinstalled the wordpress software a few times but nothing helps. ???
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on May 24, 2011, 04:38:31 PM
You'd need to give write permissions on wp-login.php, not wp-config.php.  I'll have to add some manual instructions for modifying wp-login.php.
Title: Re: Wordpress 3.0+ User Integration
Post by: chadon on May 24, 2011, 05:00:58 PM
 :-[ I am sorry, of course I have to change wp-login.php. This mistake must be due to my lack of sleep.  ;D
Thank you SlammedDime.  ;)
Title: Re: Wordpress 3.0+ User Integration
Post by: David111567 on May 26, 2011, 12:02:12 AM
I install the mod and then it says it will redirect me. It doesn't.  It doesn't seem to have the admin section to configure it.  What gives?
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on May 26, 2011, 12:18:49 AM
The admin section is under the 'Configuration' menu.  Can you explain in more detail how it doesn't redirect you?  Does the page never change?  Does it take you to the main admin screen?  Can you make sure the files are actually in the Sources folder of your SMF install?  There should be three, WordpressBridge.php, WordpressPassword.php and WordpressUser.php.
Title: Re: Wordpress 3.0+ User Integration
Post by: David111567 on May 26, 2011, 12:39:30 AM
Quote from: SlammedDime on May 26, 2011, 12:18:49 AM
The admin section is under the 'Configuration' menu.  Can you explain in more detail how it doesn't redirect you?  Does the page never change?  Does it take you to the main admin screen?  Can you make sure the files are actually in the Sources folder of your SMF install?  There should be three, WordpressBridge.php, WordpressPassword.php and WordpressUser.php.

Oh man, I just re-read my original post.  I'm slap-happy tired.  Apologies,  and thanks for replying. It takes me to the main admin screen...and when I try to redirect it manually....in other words...following the link...the link appears to NOT exist.

The link is:

http://www.MY_SITE_DOMAIN_HERE/index.php?action=admin;area=wordpress;sa=bridge

BUT...it just keeps on taking me to the main screen and I cannot find the wordpress config section at all. Mod installs fine....no errors.  It's on the default theme....etc...

and yes, the 3 files are there, as well as the mod template located in the default theme folder.

Any insights would be helpful, and again, apologies for not being more clear on my original posts. I hate when people do that, too!! <lol>

Thanks in advance.


Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on May 26, 2011, 01:04:17 AM
It sounds like the integration hook wasn't properly added on install...

Drop this code into a php file in your main SMF folder and run it and let me know the output...

<?php
require_once('SSI.php');

if (empty(
$modSettings['integrate_pre_include']) || strpos($modSettings['integrate_pre_include'], 'Wordpress') === FALSE) {
    echo 
'Integration hook doesn\'t exist...<br />Adding...<br />';
    
add_integration_function('integrate_pre_include''$sourcedir/WordpressBridge.php');
    echo 
'Done!';
} else {
    echo 
'Integration hook already exists for Wordpress Bridge...';
}
Title: Re: Wordpress 3.0+ User Integration
Post by: vmehra777 on May 26, 2011, 07:42:54 AM
Quote from: SlammedDime on May 26, 2011, 01:04:17 AM
It sounds like the integration hook wasn't properly added on install...

Drop this code into a php file in your main SMF folder and run it and let me know the output...

<?php
require_once('SSI.php');

if (empty(
$modSettings['integrate_pre_include']) || strpos($modSettings['integrate_pre_include'], 'Wordpress') === FALSE) {
    echo 
'Integration hook doesn\'t exist...<br />Adding...<br />';
    
add_integration_function('integrate_pre_include''$sourcedir/WordpressBridge.php');
    echo 
'Done!';
} else {
    echo 
'Integration hook already exists for Wordpress Bridge...';
}


I have the same problem and for me it shows

QuoteIntegration hook already exists for Wordpress Bridge...

any solution?
Title: Re: Wordpress 3.0+ User Integration
Post by: noaccess on May 26, 2011, 11:10:51 AM
I don't get how this bridge works. I've installed the blog, I've install the smf bridge and it is enabled. I've done the "Adjust WordPress wp-login.php file"... I've also used the "Map Wordpress roles to SMF Membergroups" to set the smf forum users to all become authors... 2500 users...

And now that I wrote the above I think I get what this is actually for. I thought this was a way to provide blogs to my forum users, but it isn't right? This is just a way to let everyone be user on the blog so they can comment (on the one single blog) and maybe make some of them authors? Isn't there a way to provide a blog for every user on the forum?

Also, the bridge doesn't seem to work flawlessly. Seems more like a cookies issue I think though.... loggin into the forum should automatically log me into the blog too right? However, when I go to the blog, the login and admin page redirect me to the forum.
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on May 26, 2011, 11:44:06 AM
vmehra77 - What version of PHP are you using? (I don't think it should make a difference, but I don't know where else to go)

noaccess - As the mod title clearly states, it is a user integration and nothing more.  This is indeed only a way to allow users access to Wordpress as they normally would have if they weren't part of SMF and had a separate WP account.  Without a link to your site, I can't say for sure, but it likely is a cookie problem.  All this mod does when you log in is set the appropriate Wordpress cookies so that Wordpress sees you as logged in.  If you're not logged in and try to access Login or Admin screen, you will be redirected to SMF to login due to the redirect put into wp-login.php.  I'm hoping I can fix the cookie issue with the problem nram was having above with subdomains.
Title: Re: Wordpress 3.0+ User Integration
Post by: David111567 on May 27, 2011, 05:31:15 PM
Quote from: vmehra777 on May 26, 2011, 07:42:54 AM
Quote from: SlammedDime on May 26, 2011, 01:04:17 AM
It sounds like the integration hook wasn't properly added on install...

Drop this code into a php file in your main SMF folder and run it and let me know the output...

<?php
require_once('SSI.php');

if (empty(
$modSettings['integrate_pre_include']) || strpos($modSettings['integrate_pre_include'], 'Wordpress') === FALSE) {
    echo 
'Integration hook doesn\'t exist...<br />Adding...<br />';
    
add_integration_function('integrate_pre_include''$sourcedir/WordpressBridge.php');
    echo 
'Done!';
} else {
    echo 
'Integration hook already exists for Wordpress Bridge...';
}


I have the same problem and for me it shows

QuoteIntegration hook already exists for Wordpress Bridge...

any solution?

Yep...mine is doing the same exact thing.  "Integration hook already exists for Wordpress Bridge..."

Man, that's a shame, because this mod has SOOOO much potential.  If you enable the "Blog Community" options in Wordpress...this really could expand the capabilities between SMF and Wordpress for our members. 

I'm wondering if the install issue stems from how my server is set up.  I've been over it about a dozen times and it seems to be 100 percent compatable, though.

I refuse to give up on this.  There's gotta be an answer or something I am simply missing.
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on May 27, 2011, 05:35:27 PM
If you're willing to (privately of course) give me FTP access to your site, I can do some testing to see where the fault is at.  What version of PHP are you on?
Title: Re: Wordpress 3.0+ User Integration
Post by: Bobomaster on May 30, 2011, 02:50:24 PM
I can't get this to work. Installation had no errors, I got the set up working, but it will not work. wp-login redirects to the forum's log in page, but when I log in, I am not logged in to WordPress, leaving me with no way to log in...
Title: Re: Wordpress 3.0+ User Integration
Post by: Apllicmz on May 30, 2011, 06:41:55 PM
Thank good mod
when update dont forget to Update Portuguese

Attach

Title: Re: Wordpress 3.0+ User Integration
Post by: More-to-life on May 31, 2011, 04:53:44 AM
Will this let you add mods to WP
ie will it run like a standalone WP also
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on May 31, 2011, 12:39:27 PM
Quote from: Bobomaster on May 30, 2011, 02:50:24 PM
I can't get this to work. Installation had no errors, I got the set up working, but it will not work. wp-login redirects to the forum's log in page, but when I log in, I am not logged in to WordPress, leaving me with no way to log in...
Need a link to your site and a test account please...


Quote from: More-to-life on May 31, 2011, 04:53:44 AM
Will this let you add mods to WP
ie will it run like a standalone WP also
All this does is bridge the users and logins between SMF and Wordpress... nothing more, nothing less.
Title: Re: Wordpress 3.0+ User Integration
Post by: KensonPlays on May 31, 2011, 12:47:14 PM
Will it, in the future, be possible when a user in SMF is deleted, to delete the user in Wordpress too?

I installed WP and the mod, and works when i created a test account, but when I deleted the test account, the test account still existed in WP.
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on May 31, 2011, 12:49:05 PM
Yes, it should be possible. I'll have to check SMF's integration hooks and see if there is one for deleted users (i'm sure there is).
Title: Re: Wordpress 3.0+ User Integration
Post by: KensonPlays on May 31, 2011, 12:53:23 PM
Ok. I did delete the test user in the SMF interface and the user, when the user page refreshed in WP admin, still was there. I deleted the test user manually.

At least the registration part works :)
Title: Re: Wordpress 3.0+ User Integration
Post by: pols1337 on May 31, 2011, 05:00:45 PM
Hello SlammedDime,

First off, I'd like to give you a big thanks for doing all this work and making this mod (and of course, to all the other SMF developers for building such a great forum software  ;)).  The WP User Integration is a much-needed mod for SMF  :).  I'm not a big techie, so I'd appreciate your technical expertise.

1.  My WP blog is located in public_html/blog/ whereas my SMF forum is located in public_html/forum/.  I am telling you this because I'm not sure if this is the sub-domain issue that's already listed on your known issues/bugs/features.  (I read through everything first to see if I could solve it on my own like a good newbie  :-\)
2.  I installed the mod fine.  The mod couldn't find my wp-plugin at first, but I redirected it to the wp-config file, and everything seemed to install fine.
3.  I am logged out of everything and at my Wordpress blog.  I go to log-in (or register) and it takes me to the SMF login (or registration, respectively).  After I log-in with known usernames that work, I stay at SMF.  Should I be re-directed back to WP?  And when I *do* go back to the blog by typing in the URL, my username is no longer logged in. 

Can you advise? 
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on May 31, 2011, 05:02:32 PM
You shouldn't be affected by the subdomain issue.  It should also be redirecting you back to Wordpress after logging in.  I'd need a link to your site and a test account to analyze the cookies and see what is happening when a user tries to log in.
Title: Re: Wordpress 3.0+ User Integration
Post by: Bobomaster on May 31, 2011, 05:18:54 PM
I've sent you a pm with test account login details. Please try to fix the problem, this mod would be incredibly useful to me if it worked on my forum
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on May 31, 2011, 05:24:48 PM
Bobomaster - I didn't have any problems with your site.  I logged into SMF, then went to your blog and was logged in there already.  I cleared all of my cookies, went to your blog, clicked login, was redirected to SMF, logged in and was redirected back to the blog.  I clicked log out, was logged out and redirected back to the blog.  It's working exactly as it should.
Title: Re: Wordpress 3.0+ User Integration
Post by: pols1337 on May 31, 2011, 05:28:33 PM
I'm kinda freaked out.  I went to go get some water, and when I came back, it worked ... !!  (Gosh pols1337, you sound so surprised that it worked!  :P)

I think it works; there's a slight problem but one which I can probably fix myself.  I have two different admins (one for the blog, and another for the forums), but they're using the same email address.  I'll just have to delete one of the admin accounts ... 

Thanks Slammed.  Maybe it was just your good-luck aura that made it work  ;D
Title: Re: Wordpress 3.0+ User Integration
Post by: Bobomaster on May 31, 2011, 06:33:35 PM
Quote from: SlammedDime on May 31, 2011, 05:24:48 PM
Bobomaster - I didn't have any problems with your site.  I logged into SMF, then went to your blog and was logged in there already.  I cleared all of my cookies, went to your blog, clicked login, was redirected to SMF, logged in and was redirected back to the blog.  I clicked log out, was logged out and redirected back to the blog.  It's working exactly as it should.
Hmmm... I'll try again. Could it be because I already have a wordpress account on my blog with the same username?

Edit: I deleted myself from the database and tried again, it worked, but I didn't redirect to the blog I had to manually go there.

Second Edit: Apparently I can't log out from the blog...

3rd Edit: All of the above problems were fixed :D It was a problem from WordPress after I changed Domains
Title: Re: Wordpress 3.0+ User Integration
Post by: Özgür on June 01, 2011, 08:20:22 PM
Turkish Translate
Title: Re: Wordpress 3.0+ User Integration
Post by: Bendo on June 02, 2011, 12:31:36 PM
Hey ,
I'm using WP 3.13 with SMF 2.0 RC5. I installed the blog and then the board. After this I installed the modification but when I wanne return to the mod-site or startpage, I got this error-message:
Quote
Warning: Invalid argument supplied for foreach() in /usr/export/www/hosting/name/smf/Sources/WordpressBridge.php on line 118

Fatal error: Invalid call to handleHook in /usr/export/www/hosting/name/smf/Sources/WordpressBridge.php on line 126

Can anyone tell me whats wrong?
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on June 02, 2011, 12:38:57 PM
What version of PHP are you running?
Title: Re: Wordpress 3.0+ User Integration
Post by: Bendo on June 02, 2011, 12:51:21 PM
PHP Version 5.3.4  I think that must be the newest.
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on June 02, 2011, 12:54:18 PM
Can you drop the following code into a PHP file and run it and post back the output?

<?php
$db 
debug_backtrace();
var_dump($db);
Title: Re: Wordpress 3.0+ User Integration
Post by: Bendo on June 02, 2011, 01:30:39 PM
Yes, sure: 
QuoteNULL
is the output
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on June 02, 2011, 01:33:47 PM
Odd... that is definitely not correct.

Can you provide a link to a phpinfo file?  What is a phpinfo() file? (http://docs.simplemachines.org/index.php?topic=479.0)
Title: Re: Wordpress 3.0+ User Integration
Post by: Bendo on June 02, 2011, 01:45:32 PM
Yes, here it is: http://tinyurl.com/6b59hxu (http://tinyurl.com/6b59hxu)
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on June 02, 2011, 01:47:21 PM
As I suspected... your host has the function disabled... along with a crap ton of other ones.  I'd recommend finding a new host... these guys are wayyyyy to restrictive...  I'm surprised SMF is evening functioning well for you, there are disabled functions here that SMF uses.  This mod won't work for you on your current environment.

Quotesymlink,debug_backtrace,pfsockopen,proc_open,proc_nice,proc_terminate,proc_close,proc_get_status,shell_exec,exec,passthru,system,popen,highlight_file,diskfreespace,disk_free_space,disk_total_space,show_source,php_uname,ini_alter,ini_restore,ini_set,getrusage,get_current_user,set_time_limit,getmyuid,getmypid,dl,leak,stream_socket_accept,stream_socket_client,stream_socket_get_name,stream_socket_recvfrom,stream_socket_sendto,stream_socket_server,proc_nice,pcntl_getpriority,pcntl_wait,get_headers,headers_list,memory_get_peak_usage,stream_socket_shutdown,posix_access,posix_ctermid,posix_get_last_error,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_initgroups,posix_isatty,posix_kill,posix_mkfifo,posix_mknod,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_strerror,posix_times,posix_ttyname,posix_uname,fsockopen
Title: Re: Wordpress 3.0+ User Integration
Post by: Bendo on June 02, 2011, 01:56:11 PM
This is my test-webspace. I'll search another webspace for tests and if this will not work I'll test it separat von my real webspace.

Thank you very very much SlammedDime!  :)
Title: Re: Wordpress 3.0+ User Integration
Post by: Bendo on June 02, 2011, 04:56:08 PM
Hey again, now I use a new hoster. I can install and configurate this mod but it does'nt import and export the users from wp to smf and from smf to wp.  :(

In the "bridge settings" he show me
Quotewp-login.php is not redirecting to SMF
and I click on "fix it".

That is the new phpinfo file: link (http://tinyurl.com/6k2okrb%5Burl=http://link)
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on June 02, 2011, 05:02:46 PM
If you still get the message after clicking 'Fix File', then the mod is unable to modify the file due to file permissions.  You can try settings wp-login.php to chmod 777 and try again.

As for users... it will only 'import' or 'export' when a user actually tries to log in.  There is no way to 'mass import/export'
Title: Re: Wordpress 3.0+ User Integration
Post by: Bendo on June 02, 2011, 05:36:28 PM
Thank you again.  :)

Now I can login in the board but I will always linked to the forum and I'm not logged in the wordpress blog. I changed the Chmod for the wp-login.php and wp-config.php to 777.
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on June 02, 2011, 05:47:20 PM
Would need a link to your site and test account to test it with.
Title: Re: Wordpress 3.0+ User Integration
Post by: Bendo on June 02, 2011, 06:03:37 PM
Wordpress Blog: http://tinyurl.com/5rh229g (http://tinyurl.com/5rh229g)
SMF Board: http://tinyurl.com/65u22t4 (http://tinyurl.com/65u22t4)

Account Name: test
Account Password: test

(created on smf)
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on June 02, 2011, 06:19:39 PM
Does the member exist in Wordpress?  Can you remove the wp-login.php fix?
Title: Re: Wordpress 3.0+ User Integration
Post by: Bendo on June 02, 2011, 06:33:25 PM
Fix is now removed.
Yes, the accounts works on wordpress and smf.

Now I'm going to sleep. Good night :)
Title: Re: Wordpress 3.0+ User Integration
Post by: Bendo on June 04, 2011, 02:41:19 AM
Hello again  :),
yesterday I spend a lot of time in testing the bridge. I installed a new blog and board local over XAMPP but it's not very better.  :(

Even over XAMPP, I had to fix the wp-login.php. But the admin account from wp and the admin account from smf can login on both CMS. But normal users can only login over the board or will be only logged in on the board.

Is this normal or does'nt like this bridge me?
Title: Re: Wordpress 3.0+ User Integration
Post by: Vitti on June 04, 2011, 02:50:03 PM
I had an error upgrading my SMF install and needed to reinstall it.  Because of that I lost this package.  Now WordPress is looking for a login that doesn't exist.

We do I need to change in WordPress to revert it back to default?

I will be reinstalling this, but I need to get back to square one first.

Thanks.
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on June 04, 2011, 05:28:47 PM
Just open up wp-login.php and remove the two lines at the top that redirect to SMF.
Title: Re: Wordpress 3.0+ User Integration
Post by: Vitti on June 05, 2011, 01:33:58 AM
Awesome.  Thank you. 

I did get it reinstalled and I am using it again.  Works great so far.
Title: Re: Wordpress 3.0+ User Integration
Post by: Heeks on June 06, 2011, 10:19:12 AM
i can't assign roles anymore.

Is this a known issue ?
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on June 06, 2011, 10:24:22 AM
No, can you elaborate a bit more?
Title: Re: Wordpress 3.0+ User Integration
Post by: Heeks on June 06, 2011, 10:41:05 AM
ok :

When i assign a wordpress role to a group on smf, users in this group don't receive this role when signing in WP.

Am i clear enough ?

Sorry for my crappy english :/
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on June 06, 2011, 10:53:37 AM
Roles won't update automatically at this point, they only update if the person's group in SMF changes, or when they are actually created in one software or another.  I'll need to look into adjusting roles on the fly if they're changed in the admin panel.
Title: Re: Wordpress 3.0+ User Integration
Post by: Heeks on June 06, 2011, 11:08:20 AM
Oh i see.

So : if i'm creating a new group, assign roles in smf, then change users to this group it should work, right ?
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on June 06, 2011, 09:37:33 PM
Correct.
Title: Re: Wordpress 3.0+ User Integration
Post by: Heeks on June 06, 2011, 10:03:54 PM
...but this group MUST be his Primary Membergroup, otherwise it doesn't work, right ?
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on June 07, 2011, 12:49:27 AM
Correct.
Title: Re: Wordpress 3.0+ User Integration
Post by: Eudemon on June 07, 2011, 01:19:04 AM
so you're saying primary group changes from one to another currently won't automatic update in wp right?
Title: Re: Wordpress 3.0+ User Integration
Post by: R-one on June 07, 2011, 04:04:20 AM
Currently no need to use this mod.
But wanted to chime in and congratulate you on your good work and effort.

A couple of years ago when I was searching high and low for ANY sort of quality SMF-CMS bridge/integration.. there was really nothing much around.

I'll be keeping an eye on this project. Might inspire me to create a reason to use it.
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on June 07, 2011, 09:24:24 AM
Quote from: Eudemon on June 07, 2011, 01:19:04 AM
so you're saying primary group changes from one to another currently won't automatic update in wp right?
No... if you change their primary group, it will update in Wordpress if necessary.  What won't happen is if you change the mapping, nothing automatically happens to the users.
Title: Re: Wordpress 3.0+ User Integration
Post by: Heeks on June 07, 2011, 09:49:05 AM
Hmmm...

When i affect the group i made ( called "newsers" on SMF, mapped as Author on WP) as his primary group : it works fine.

If i affect the same user the group called "moderators" (for example) AND tick the box for "Newsers" group as secondary group, it doesn't work.

Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on June 07, 2011, 10:06:01 AM
It won't work for secondary groups.  It will only work for primary groups.
Title: Re: Wordpress 3.0+ User Integration
Post by: Heeks on June 07, 2011, 10:48:06 AM
Thx for your answers.

And MANY thx for your work.
Title: Re: Wordpress 3.0+ User Integration
Post by: Eudemon on June 07, 2011, 12:44:19 PM
Quote from: SlammedDime on June 07, 2011, 09:24:24 AM
No... if you change their primary group, it will update in Wordpress if necessary.  What won't happen is if you change the mapping, nothing automatically happens to the users.

can you explain about the wp mapping?
i have wordpress site but i'm not familiar with it
Title: Re: Wordpress 3.0+ User Integration
Post by: Heeks on June 07, 2011, 05:49:39 PM
It's in SMF :

You can choose which SMF group = WP group , for example you can assign all your SMF "moderators" to the "Authors" group in WP.

Title: Re: Wordpress 3.0+ User Integration
Post by: Eudemon on June 07, 2011, 06:02:13 PM
oh it's one of this mod's setting... no wonder why

thx
Title: Re: Wordpress 3.0+ User Integration
Post by: Vitti on June 09, 2011, 02:47:19 PM
So I had this installed on a sub domain and it worked great.  Then I moved the files to the root directory.  I fixed all the SMF/Wordpress paths and both SMF and Wordpress are running fine, but when I login to SMF, it no longer logs me into Wordpress.  The bridge says it is installed and it appears that the users are still getting added to my Wordpress users table.

Is there a session or cookie that is not working here?  What tells Wordpress that they are logged in from SMF?

Thanks.
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on June 09, 2011, 05:29:01 PM
This mod sets a wordpress cookie that tells wordpress they person has logged in.  Make sure both your Wordpress URL and Site URL are correct in wordpress.
Title: Re: Wordpress 3.0+ User Integration
Post by: Eudemon on June 09, 2011, 05:36:02 PM
just a question, can't test it until i move my host
if i have both smf wp at subdomains like
forum.sample.com
blog.sample.com
will this mod work?
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on June 09, 2011, 05:47:56 PM
I don't believe it will work right now.  I think a bug I haven't taken care of is that the wordpress cookie needs to be set on the whole domain, not just a sub, to work properly, and that isn't happening right now.
Title: Re: Wordpress 3.0+ User Integration
Post by: Eudemon on June 09, 2011, 06:05:50 PM
so the only solution right now is putting them all into folders?

hope you can get this fixed soon
Title: Re: Wordpress 3.0+ User Integration
Post by: NP90 on June 15, 2011, 05:19:32 PM
This looks like it is the answer to all of my prayers, I really needed something like this for my site! Only just adopted SMF on my dev site and would love to be able to integrate with WP. This means I'm on the new SMF 2.0 though, will it be compatible soon?

Thanks again developer, expect a heap of donations if it all works out right! :)
Title: Re: Wordpress 3.0+ User Integration
Post by: Heeks on June 15, 2011, 05:29:04 PM
It works fine, just try it ;)
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on June 15, 2011, 05:30:15 PM
Since it only uses SMF's hooks and makes no code changes to SMF, and I know of no hooks that have been altered or removed that are used by this mod, it should still work as expected on 2.0 Final.
Title: Re: Wordpress 3.0+ User Integration
Post by: NP90 on June 16, 2011, 01:32:38 PM
I did try before I posted here but I can't seem to install it. I'm new to SMF so there's a chance I might be doing it wrong, but for every other mod I've uploaded to my SMF installation I get an 'Install Mod' link. I don't for this, I just get List Files and Delete.

And when I try to upload the zip file through a http connection (where there is an Install link) I get 'The package you are trying to download or install is either corrupt or not compatible with this version of SMF.'

Any install instructions that might help?
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on June 16, 2011, 01:46:07 PM
You're probably using 2.0 Final, of which this package installer hasn't been updated to install for.  You can click the 'Advanced' link at the bottom of the package manager and change the version to 2.0 RC5 and then it will be able to install for you.
Title: Re: Wordpress 3.0+ User Integration
Post by: NP90 on June 16, 2011, 02:09:57 PM
Ah, that must have been it. Changed it to RC5 and it works perfectly, well, as far as I can tell. This is amazing! It was so simple too, I thought this was going to be a mammoth task.

The only thing I want to do now is put a login form on the homepage of my WordPress site - is this going to be ridiculously difficult like I imagine?

Also do you have a PayPal address if I want to make a small donation?
Title: Re: Wordpress 3.0+ User Integration
Post by: MarcusJ on June 18, 2011, 07:10:59 PM
This is a great mod.  Are there plans to make it work with 2.0 Final?  I mean officially.
Title: Re: Wordpress 3.0+ User Integration
Post by: NP90 on June 22, 2011, 07:20:11 AM
Could anyone help me figure out how to integrate a login form for SMF in the WordPress part of my site? Is this even possible? Any help would be amazing - I'm at a standstill on development of my site until I figure this out!

I'll buy you a beer via PayPal :)

EDIT: Scratch that, I think I've done it. More beer for me!
Title: Re: Wordpress 3.0+ User Integration
Post by: Eudemon on June 24, 2011, 11:37:52 PM
never mind....
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on June 24, 2011, 11:58:22 PM
It's not an error, it's just information.  You can try to fix it by clicking the 'fix file' button next to the wp-login.php file.
Title: Re: Wordpress 3.0+ User Integration
Post by: Eudemon on June 25, 2011, 12:01:24 AM
i did, wasn't working because my wp-login.php was not 777
for some reason i thought that file was wp-config, so yeah
Title: Re: Wordpress 3.0+ User Integration
Post by: Eudemon on June 25, 2011, 12:08:43 AM
update:
bug? if i click logout in wordpress, my smf will logout, but my wp is still logged in

and then i switch to another browser
when i click login, i will be automatically redirected back to smf, which is logged in already
then i go back to wp, i'm still not logged in

ps.i'm using subdomain for wp, and root for smf
Title: Re: Wordpress 3.0+ User Integration
Post by: wushdishmeen on June 25, 2011, 06:41:49 PM
Is there anyway you can make this work for SMF 2.0 RC3?  I tried emulating RC5 with the advanced option but when I go to install the "Execute Code: $auto_0.php" step causes the installation to fail.

This is the error message:

Fatal error: Call to undefined function add_integration_function() in /home/xxxxx/public_html/forum/Packages/temp/$auto_0.php on line 4

I've been trying to get something like this for the newer SMF and WP versions for the longest time!!  Please make it work for RC3 because there's too many packages that I use that don't go past RC3 and I can't run my site without them.   So I'm stuck at RC3 until they upgrade them for newer versions.

Also do you have ANY clue how to integrate the SMF login check into wordpress?  I used to be able to do it and somewhere along the line with WP updates it stopped working and I just get a login loop that never ends.   I'm calling the SSI.php and trying to use the is_not_guest function at the top of my header.php to block off my wordpress blog to people who aren't logged into my SMF forum.   It works on all of my other subdomains but not the wordpress!   I will pay good money for someone who can figure it out.

Here is the thread regarding the issue: http://www.simplemachines.org/community/index.php?topic=387713.0
Title: Re: Wordpress 3.0+ User Integration
Post by: rishab555555 on July 19, 2011, 05:05:15 PM
Hello friends ! I am running SMF 2.0 and my website url iswww.heyrtu.com

1.I have installed smf in ROOT
2.I have 249 members,40,000 page views and more then 3,000 unique visitors in 3 months.
3.This site is very important for me and i want to install wordpress bridge in it so that i could add more functionality !
4.Can you please tell me the detailed working of WordPress bridge ?

I mean , as i have installed my SMF in root of domain , where shall i install WordPress ?

What database details shall i use while WP install ? Same as in SMF or something else ??


If i want to uninstall wordpress bridge and wordpress at some point will i be able to revert my forum back to the condition before wordpress and wordpress bridge installation ?

Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on July 19, 2011, 05:07:27 PM
4) The bridge makes sure users are integrated between SMF and Wordpress and tries to log them into both when they log into the forum, nothing more, nothing less.

Install Wordpress however you want, it doesn't matter.  You can disable or remove the bridge whenever you want, it won't affect anything in SMF or Wordpress.
Title: Re: Wordpress 3.0+ User Integration
Post by: rishab555555 on July 19, 2011, 05:11:53 PM
Thanks ! but please tell me just two things please :

1.Database of wordpress shall be same as that of my current forum or not ?
2.I have installed forum in root and now want to install wordpress in a directory in root , hope it won't create a problem ?
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on July 19, 2011, 05:56:34 PM
1) As I said, it doesn't make a difference, install it how you want to.
2) No problems, again, you can install it wherever you want.
Title: Re: Wordpress 3.0+ User Integration
Post by: rishab555555 on July 19, 2011, 06:01:59 PM
When i try to install wordpress and went to the installation url : www.mysite.com/plus

where plus is the name of directory i have put WordPress in , i am being automatically redirected to my forum....


I am redirected to my forum , whatever URL i type in front of my domain name :(


Sir please help me to get into the installation :(
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on July 19, 2011, 06:10:23 PM
That's outside the scope of this topic/board... If you need help installing Wordpress, you'll need to visit their support forum for assistance.
Title: Re: Wordpress 3.0+ User Integration
Post by: rishab555555 on July 19, 2011, 06:13:39 PM
Ohhhh i just got the solution :

Sharing with all :

Just go to :  www.yourdomain.com/wordpress_installationdirectory/wp-admin/install.php


Title: Re: Wordpress 3.0+ User Integration
Post by: rishab555555 on July 20, 2011, 04:32:47 PM
I have my forum in the root directory.Now i want wordpress to be installed in root and SMF to be moved to /forum directory.


After doing all this if i apply this wordpress bridge in SMF , will that work ?
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on July 20, 2011, 04:33:47 PM
yes, as I have said, the configuration of files and databases makes zero difference.
Title: Re: Wordpress 3.0+ User Integration
Post by: rishab555555 on July 20, 2011, 04:36:36 PM
Thanks for reply :)
Title: Re: Wordpress 3.0+ User Integration
Post by: Jesna on July 22, 2011, 07:20:35 AM
Hey

I have installed the mod fine and it seems like most of it is working.

But one big thing isnt working. The users arent logged in to my wordpress. The users are created in wordpress after logged in to smf so thats working

I cant find any erros so any idea what wrong?

/Jakob
Title: Re: Wordpress 3.0+ User Integration
Post by: rishab555555 on July 25, 2011, 05:16:40 PM
I installed wordpress bridge in smf 2.0 with ease...

But now i am facing a problem :(

When i go to www.heyrtu.com where my wordpress is installed and press login , i am re-directed to forum and then get this error displayed on the top of my forum's homepage.


Warning: parse_url(/wp-login.php?redirect_to=http://www.heyrtu.com) [function.parse-url]: Unable to parse URL in /home/wwwheyrt/public_html/forum/Sources/WordpressBridge.php on line 159



Also i want that : The user shall be re-directed to my wordpress after login ,and login to be done from wordpress only without re-direction to forum...How shall i do that ?
Title: Re: Wordpress 3.0+ User Integration
Post by: rishab555555 on July 26, 2011, 12:00:14 PM
Bump
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on July 26, 2011, 12:05:10 PM
Check the couple of lines added to wp-login.php and make sure your full forum URL is in the redirect call.

The user should be redirected back to wordpress after logging in, and logging in *cannot* be done through Wordpress.  This is a SMF mod only.
Title: Re: Wordpress 3.0+ User Integration
Post by: rishab555555 on July 26, 2011, 12:46:25 PM
Can you please elaborate ? I did'nt understand which lines are you talking about ?
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on July 26, 2011, 01:28:02 PM
At the very top of wp-login.php, a couple of lines were added that redirect someone to SMF.  They should be obvious by looking at the file.
Title: Re: Wordpress 3.0+ User Integration
Post by: rishab555555 on July 26, 2011, 01:29:00 PM
Okay , i got those lines and got that error removed !
But what is this ???????

The bridge has almost become of no use.

When i login to wordpress through smf , it logs in but when i signout of smf , i am not being signed out of wordpresss !!!!!


Please help :(
Title: Re: Wordpress 3.0+ User Integration
Post by: rishab555555 on July 27, 2011, 10:33:15 AM
BUMP :-\
Title: Re: Wordpress 3.0+ User Integration
Post by: SlammedDime on July 27, 2011, 11:41:47 AM
Would need a link to your site and an account to test with to see what's going on.
Title: Re: Wordpress 3.0+ User Integration
Post by: rishab555555 on July 27, 2011, 12:39:51 PM
Link to my wordpress installation : www.heyrtu.com (http://www.heyrtu.com)

Link to my SMF Forum:www.heyrtu.com/forum (http://www.heyrtu.com/forum)

I have made a test account for you to test it and sending you the details via PM.

My forums login link is : http://www.heyrtu.com/forum/index.php?action=login


The top lines you were mentioning to me for checking are as :

require( dirname(__FILE__) . '/wp-load.php' );

wp_redirect('http://www.heyrtu.com/forum/index.php?fromWp=' . time() . '&url=' . $_SERVER['REQUEST_URI'], 302);
exit();



Now please tell me what shall i do ?

When i use this , i am logged in to both SMF and Wordpress at a time and logged out at same time but get the error
QuoteWarning: parse_url(/wp-login.php?redirect_to=http://www.heyrtu.com) [function.parse-url]: Unable to parse URL in /home/wwwheyrt/public_html/forum/Sources/WordpressBridge.php on line 159


See this line :
Quotewp_redirect('http://www.heyrtu.com/forum/index.php?fromWp=' . time() . '&url=' . $_SERVER['REQUEST_URI'], 302);

Whenever i do a single change in this url  , i get the error removed but the bridge doesn't works any more.

So please tell me what to do>
Title: Re: Wordpress 3.0+ User Integration
Post by: rishab555555 on July 28, 2011, 08:54:21 AM
Alasss ! I should have chose some premium software :(


BUMP :-\
Title: Re: Wordpress 3.0+ User Integration
Post by: Raice on July 28, 2011, 10:26:16 AM
Hello, first, thanks for great mod! Second - I can't get it work.

Software: Fresh install WordPress 3.2.1 + SMF 2.0
SMF in subfolder of WP install (site.com/forum)

Problem: cannot log in to wordpress. When I click "login" on WP site, it redirects me to SMF login form, but after successful login to SMF - there is no redirect back to WP site and WP shows that there is no user logged in.
When I try to use site.com/wp-admin - it redirects me to back to SMF.

What am I doing wrong?
Title: Re: Wordpress 3.0+ User Integration
Post by: Suki on July 28, 2011, 10:34:59 AM
rishab555555  give the mod author some break.....  he cannot possible be here all the time,  when he has enough free time he will answer your question.
Title: Re: Wordpress 3.0+ User Integration
Post by: rishab555555 on July 28, 2011, 10:37:30 AM
ya miss sunday !

in the mean time i am trying to convert SMF into some more good platform..
Title: Re: Wordpress 3.0+ User Integration
Post by: Suki on July 28, 2011, 10:38:35 AM
Quote from: rishab555555 on July 28, 2011, 10:37:30 AM
ya miss sunday !

in the mean time i am trying to convert SMF into some more good platform..

Good for you.
Title: Re: Wordpress 3.0+ User Integration
Post by: Eudemon on July 28, 2011, 11:25:44 AM
Quote from: rishab555555 on July 28, 2011, 10:37:30 AM
ya miss sunday !

in the mean time i am trying to convert SMF into some more good platform..

i think smf is the best platform  :'(
Title: Re: Wordpress 3.0+ User Integration
Post by: Bendo on July 28, 2011, 03:01:46 PM
Hello, did anyone know what's the reason for this error message?
QuoteWordpress path is not writable by the webserver. We will not be able to make backups of modified Wordpress files

The wp-login.php have chmod 777. The bridgw works on Wordpress but the Wordpress member are not on smf and new members will not be taken.  :(
Title: Re: Wordpress 3.0+ User Integration
Post by: Eudemon on July 28, 2011, 03:26:25 PM
try chmod the wordpress folder to 777
Title: Re: Wordpress 3.0+ User Integration
Post by: Bendo on July 28, 2011, 06:05:31 PM
With all subfolders like wp-content? And all subfiles?
My blog lay in the root directory.
Title: Re: Wordpress 3.0+ User Integration
Post by: Eudemon on July 28, 2011, 06:52:56 PM
hmmm... then idk
Title: Re: Wordpress 3.0+ User Integration
Post by: Bendo on July 29, 2011, 04:17:08 AM
At moment all files in the root directory have 755 permissions. The subfolders and subfiles have 644, 755 and other permissions.
Title: Re: Wordpress 3.0+ User Integration
Post by: rishab555555 on August 01, 2011, 03:01:48 AM
I have installed Wordpress in /directory and SMF 2.0 in root directory.

Applied a 301 redirect for www.heyrtu.com to redirect on www.heyrtu.com/plus

Bridge has worked almost correctly , but i am not being redirected to worpress after login .

Please tell me what to do I AM VERY MUCH TIRED :(


Title: Re: Wordpress 3.0+ User Integration
Post by: Bendo on August 01, 2011, 08:06:58 AM
You must open the wp-login.php and delete the redirecting. if you fixed the wp-login, the redirecting part is in the 2 or 3 line, I think.
Title: Re: Wordpress 3.0+ User Integration
Post by: rishab555555 on August 01, 2011, 08:24:55 AM
I think you havent read the question !
I have to stop the re-direction after login !

Quote/** Make sure that the WordPress bootstrap has run before continuing. */
require( dirname(__FILE__) . '/wp-load.php' );

wp_redirect('http://www.heyrtu.com/index.php?fromWp=' . time() . '&url=' . $_SERVER['REQUEST_URI'], 302);
exit();

As far as i know these lines of code only re-direct login from wordpress to SMF !


How can i re-direct from smf after login back to wordpress :( Please anyone helo me :(
Title: Re: Wordpress 3.0+ User Integration
Post by: Svyadov on August 03, 2011, 08:33:01 AM
Well, in first place sorry for my english. And now my situation: I have tried this mod in a fresh installation of WP and SMF (last versions of both, downloaded today). All went OK. But when I set up WP for a Multisite/Network configuration (it's a configuration in which you can have and handle so much blogs as you want but using only one installation of WP) then the bridge allows to login in the forum but not in the blog. If I try to login through the blog, the bridge leads me to the SMF login page, and when I introduce de user and password, all went OK, and I am logged in the forum, but then, the bridge redirects me to the blog, and I'm not logged in the blog, and, of course, I can't access to de admin page of WP.

For a multisite configuration, the WP installation requires the following modifications:

htaccess in WP root with this code:


RewriteEngine On
RewriteBase /main/
RewriteRule ^index\.php$ - [L]

# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-

files.php?file=$2 [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1

[L]
RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]


Modification of the wp-config.php file adding this lines above where it says /* That's all, stop editing! Happy blogging. */: :

define('WP_ALLOW_MULTISITE', true);
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', false );
$base = '/main/';
define( 'DOMAIN_CURRENT_SITE', 'localhost' );
define( 'PATH_CURRENT_SITE', '/main/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );


And, of course, the activation in the admins area of WP of the network set up.

Is it possible to use the bridge with a multisite configuration of WP? Thanks in advance.
Title: Re: Wordpress 3.0+ User Integration
Post by: fmofmpls on August 07, 2011, 12:39:35 PM
Keep getting this message upon trying to install mod - The package you are trying to download or install is either corrupt or not compatible with this version of SMF..

I'm running SMF 2.0 rc3.  Is this not compatible with this version of 2.0?

And is this mod compatible with 2.0 gold?

Thanks!
Title: Re: Wordpress 3.0+ User Integration
Post by: Jim R on August 28, 2011, 08:34:05 AM
Same question as fmofmpls.  It's not showing to be compatible with SMF 2.0. 
Title: Re: Wordpress 3.0+ User Integration
Post by: Suki on August 28, 2011, 08:39:48 AM
have you tried to emulate version RC5 on install?  that should do the trick.
Title: Re: Wordpress 3.0+ User Integration
Post by: Jim R on August 28, 2011, 12:19:04 PM
Thought about that but not sure how. Do I just unzip, change the compatible file then upload?
Title: Re: Wordpress 3.0+ User Integration
Post by: Suki on August 28, 2011, 08:37:24 PM
No.

go to admin / packages


below the list of all your mods installed, theres an "advanced" link, click on it.

it will appear a box,  in that box type:  2.0 RC5    click on apply button.


upload the mod,  now you can install the mod,  oncs the mod is installed, click the advanced link again and then click on "Revert", thats all you need to do.
Title: Re: Wordpress 3.0+ User Integration
Post by: DomDom Skye on August 29, 2011, 02:43:41 AM
I've install the mod successfully in SMF final 2.0 (remove the RC5 and rezip it). Work find, but now my Wordpress 3.2.1 got white page everywhere! No more content, and no possibility to log in.

Any hint?

Best regards, Dom
Title: Re: Wordpress 3.0+ User Integration
Post by: digitalmikey on August 30, 2011, 09:36:08 PM
Everything seems to be working except I can't assign roles under "Role Settings". It just has a drop down box with nothing to select. Any help?
Title: Re: Wordpress 3.0+ User Integration
Post by: DomDom Skye on August 31, 2011, 02:43:14 AM
I've the drop box in SMF for the role, but impossible to read anything in Wordpress. Blank page. Strange. Any hints? Or at least anybody who install this bridge with final SMF 2.0 and Wordpress 3.2.1 ?

Dom
Title: Re: Wordpress 3.0+ User Integration
Post by: digitalmikey on August 31, 2011, 08:27:00 PM
Scratch my last question. It ended up being I installed Wordpress with another prefix instead of the default wp_. I reinstalled WP with the default prefix and everything works great!

However, I was wondering if there was some code I can add to have it so all users have their name linked to their forum profile? I can call a user profile by either ID or Username, I just don't know how to implement this properly. Any help?
Title: Re: Wordpress 3.0+ User Integration
Post by: DomDom Skye on September 01, 2011, 02:25:45 AM
Which version of Wordpress do you use?
Title: Re: Wordpress 3.0+ User Integration
Post by: petersweb on September 01, 2011, 03:09:35 AM
Quote from: fmofmpls on August 07, 2011, 12:39:35 PM
Keep getting this message upon trying to install mod - The package you are trying to download or install is either corrupt or not compatible with this version of SMF..

I'm running SMF 2.0 rc3.  Is this not compatible with this version of 2.0?

And is this mod compatible with 2.0 gold?

Thanks!

I have the same issue.  I'm running Wordpress 3.2.1 and SMF 2.0

Edit: Just read the last few posts....sorry!
Title: Re: Wordpress 3.0+ User Integration
Post by: digitalmikey on September 01, 2011, 03:25:04 AM
Quote from: djavet on September 01, 2011, 02:25:45 AM
Which version of Wordpress do you use?

3.2.1 or whatever the latest is.
Title: Re: Wordpress 3.0+ User Integration
Post by: DomDom Skye on September 01, 2011, 03:37:16 AM
@digitalmikey, same as me. Strange that I've a blank page and cannot access. I've installed Wordpress via SimpleScript, maybe this is why. I will try a fresh install again.
Title: Re: Wordpress 3.0+ User Integration
Post by: digitalmikey on September 14, 2011, 04:45:20 PM
Anyone know how I can link a users profile link and avatar in the comments? Right now it's just fetching their website URL.
Title: Re: Wordpress 3.0+ User Integration
Post by: AgainstBelief on September 16, 2011, 03:25:51 AM
Hey, SlammedDime!

First off, THANK YOU FOR THIS WONDERFUL MOD! It saved me so much hassle, and it lets my users navigate my website with ease.

However, I was wondering if there's anyway to set up a login form to put onto the WordPress page that's linked to the SMF board, so that a redirect isn't necessary?
Basically, to have the 'Username' and 'Password' fields be on the WP page, that connect to SMF database.

This isn't a terrible urgent, life-threatening request; but I thought I might as well ask.

P.S.
Also, I actually never knew that it was supposed to redirect you BACK to the WP page after logging in. I guess it never worked for me!
Title: Re: Wordpress 3.0+ User Integration
Post by: TheListener on September 20, 2011, 12:03:59 AM
I don't know a darn thing about wordpress yet am looking for a suitable way to give forum members blogging facilities.

I see that tmembers groups and avatars are also on WP as they are on the main forum which I like.

I'm not bothered on whether forum posts are posted on the blog as that is what I use twitter and facebook for.

Is wordpress suitable for multi users? ie various members of the main forum?

This mod may just be the answer I was looking for.
Title: Re: Wordpress 3.0+ User Integration
Post by: Suki on September 20, 2011, 09:02:23 AM
try wordpress mu which is short for multi users, I don't know if this mod will work with it, it should be since wordpress and wmu share a lot of code.
Title: Re: Wordpress 3.0+ User Integration
Post by: TheListener on September 24, 2011, 10:44:27 AM
Wordpress Path
This should be the full file path to your wp-config.php file.

Can anyone help with this?

I try and log out off wordpress and keep being taken back to the forum with an error.
Title: Re: Wordpress 3.0+ User Integration
Post by: Gamogo on September 24, 2011, 10:43:24 PM
I am receiving an odd issue with this plugin. On the 'installation actions' panel I receive the following detailed steps before being asked to install:

1.   Extract File   ./Sources/WordpressBridge.php   Install the core BlogBridger class
2.   Extract File   ./Sources/WordpressUser.php   Install the BlogBridger User class
3.   Extract File   ./Sources/WordpressPassword.php   Install the BlogBridger Password class
4.   Extract File   ./Themes/default/languages/WordpressBridge.english.php   Language file with all language strings
5.   Extract File   ./Themes/default/WordpressBridge.template.php   Template file for admin settings
6.   Execute Code   $auto_0.php

With part 6 being the problem. The mod fails to install or at least correctly parse what is required for step 6. I am running SMF 2.0 RC4, which I emulate for RC5 as per the instructions above. Oddly, I receive the same issue on SMF 2.0.1 which I emulate 2.0 RC5 on also.

I was curious if others had encountered this issue and if you had a solution.
Title: Re: Wordpress 3.0+ User Integration
Post by: TheListener on September 24, 2011, 10:45:19 PM
You cannot emulate RC5 if you are using RC4.

Title: Re: Wordpress 3.0+ User Integration
Post by: Gamogo on September 24, 2011, 11:05:18 PM
Quote from: Brack1 on September 24, 2011, 10:45:19 PM
You cannot emulate RC5 if you are using RC4.

Ok, understood. However, the same issue occurs on my test instance running SMF 2.0.1
Title: Re: Wordpress 3.0+ User Integration
Post by: digitalmikey on September 28, 2011, 01:58:36 AM
Everything works really well except one problem...

If some users are logged in to my forum and visit my Wordpress site, click a post to comment in, it shows them as logged out and asks them to log in. For some reason some users are not being imported in to Wordpress. Is there some way I can fix this?

I'm using 3.2.1
Title: Re: Wordpress 3.0+ User Integration
Post by: AgainstBelief on September 28, 2011, 02:50:43 AM
They have to logout and then log back in to be added to the WP database.
Title: Re: Wordpress 3.0+ User Integration
Post by: Tommiiee on October 03, 2011, 05:22:36 AM
Hi!

Will this bridge sync profiles between Wordpress and SMF? I've noticed the Avatars aren't synced, but that's not so weird, since Wordpress doesn't allow users to have an avatar by default. However, I've installed a plugin (Simple Local Avatars) which enables this option.

So, will this bridge, in the future fully sync both profiles (including avatars with plugin)?
Title: Re: Wordpress 3.0+ User Integration
Post by: Scrimps on October 03, 2011, 07:25:29 AM
I tried to install this using the package manager on a new SMF 2.0.1 forum. It says it is either not compatible or corrupt. Am I correct in thinking the mod is now compatible with this new version of SMF?
Title: Re: Wordpress 3.0+ User Integration
Post by: Ash3lia on October 03, 2011, 10:39:56 AM
Hi guys.

I discovered this mod yesterday and decided to test.

I'm happy that everything works great, great job to the man who did this, but there is just one probleme.

I use wordpress as home and blog, SMF is just the forum for the community, and he is good to manage users. The sync on register work great, when someone register, he is created on both database. I decided to use an ajax widget on wordpress to log-in on homepage, it work. But the problem is that when you log-in on the wordpress home, you are not loged-in  on the Forum. I think it's just a little cookies probleme, but i don't know how to fix this.

So please, if anyone have an idea and can help me about this, i apreciate.

ps : sorry for the bad english :(
Title: Re: Wordpress 3.0+ User Integration
Post by: KensonPlays on October 03, 2011, 11:02:42 AM
SD: Does this work with the latest WP and SMF? If so, I am thinking of switching back to SMF instead of bbPress WP plugin.
Title: Re: Wordpress 3.0+ User Integration
Post by: TheListener on October 03, 2011, 11:31:26 AM
This mod does work with 2.0.1

In fact I wish I had looked at it instead of going through all the hassle I had with the adk blog.

www.miltonkeynesaware.co.cc/wp
Title: Re: Wordpress 3.0+ User Integration
Post by: KensonPlays on October 03, 2011, 11:58:44 AM
OK. Thanks.
Title: Re: Wordpress 3.0+ User Integration
Post by: Scrimps on October 03, 2011, 03:18:02 PM
Quote from: Brack1 on October 03, 2011, 11:31:26 AM
This mod does work with 2.0.1

In fact I wish I had looked at it instead of going through all the hassle I had with the adk blog.

www.miltonkeynesaware.co.cc/wp

Could you explain how to install then? I am running a site on a server with the most up to date PHP and MySQL there is (GreenGeeks company). When I use the file that you download via the simple-machine mod site, it does not work. Says it is not compatible or corrupt. Am I missing something?
Title: Re: Wordpress 3.0+ User Integration
Post by: TheListener on October 03, 2011, 06:15:04 PM
Says it is not compatible or corrupt.

Emulate the version.
Title: Re: Wordpress 3.0+ User Integration
Post by: Mangolo on October 07, 2011, 06:32:19 PM
Quote from: Raice on July 28, 2011, 10:26:16 AM


Problem: cannot log in to wordpress. When I click "login" on WP site, it redirects me to SMF login form, but after successful login to SMF - there is no redirect back to WP site and WP shows that there is no user logged in.
When I try to use site.com/wp-admin - it redirects me to back to SMF.

What am I doing wrong?

same problem, did you find the answer
Title: Re: Wordpress 3.0+ User Integration
Post by: awolexpat on October 10, 2011, 04:55:31 AM
Hi Slammed Dime,
Nice mod and thanks for your efforts. I have installed this on a MAMP environment on my Mac where wordpress is located in a folder (directory) and so is smf, latest version of both. The smf installation is a 'clone' of my real live site using a duplicate database, which i had to alter the Settings.php file to deal with. The register link on my test WP installation does indeed direct me to the SMF register page which is great, but the login directs me to a page on my forum with the menus and proper headers etc but without the most important part, the box to log in that should be in the centre of the screen. The url for this page is

Quotehttp://localhost/forum/index.php?fromWp=1318235977&url=/wordpress/wp-login.php?redirect_to=http%3A%2F%2Flocalhost%2Fwordpress%2Fawol

I would have expected to have "action=login" somewhere in this because the register url that appears is
Quotehttp://localhost/forum/index.php?action=register
or am I mistaken? I am guessing this might have something to do with the alteration made by the mod to the wp-login.php file but I am really only guessing. In case that is the issue, I have included what i think is the relevant code here:
/** Make sure that the WordPress bootstrap has run before continuing. */
require( dirname(__FILE__) . '/wp-load.php' );

wp_redirect('http://localhost/forum/index.php?fromWp=' . time() . '&url=' . $_SERVER['REQUEST_URI'], 302);
exit();

// Redirect to https login if forced to use SSL
if ( force_ssl_admin() && !is_ssl() ) {
if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) {
wp_redirect(preg_replace('|^http://|', 'https://', $_SERVER['REQUEST_URI']));
exit();
} else {
wp_redirect('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
exit();
}
}


Obviously the login process isn't going to work properly as regards wordpress integration with this problem, so can you suggest what i need to alter or fix in any of the code? There is a strong possibility that I have done something wrong with my wordpress installation as i am very new to it but the mod installation I am pretty sure was flawless. Maybe the fact that this is in MAMP has something to do with it? Or maybe there is some other edit I need to make to Settings.php? I have tested it in Firefox and Chrome with the same result so I don't think it is a browser issue. Any suggestions will be gratefully received.
Title: Re: Wordpress 3.0+ User Integration
Post by: louislam123 on October 11, 2011, 10:53:52 PM
I'm having a slight problem with this package. After logging in through the Wordpress login link, I am not redirected back to wordpress, but go to the forum index.

EDIT: I found the solution in the issue tracker, submitted by Anonymous: (http://code.mattzuba.com/blogbridger/issue/22/smf-login-is-not-redirecting-back-to)

To fix this, open the BlogBridger-1.1.4 archive, and edit WordpressBridge.php.

Find (around line 987):

    private function decodeRedirect($string) {

Add After:

$string = str_replace(" ","+",$string);

Repackage, upload, and reinstall mod. Alternatively, you can replace the WordpressBridge.php file in your theme.
Title: Re: Wordpress 3.0+ User Integration
Post by: Mangolo on October 12, 2011, 09:44:48 AM
Thanks ill try
Title: Re: Wordpress 3.0+ User Integration
Post by: saxafrass on November 01, 2011, 04:15:26 PM
My site is redirecting to SMF index page when i go to my wordpress login page.  If I login or register a new user on SMF it does not redirect me back to WP.  I tried the fix above and added  $string = str_replace(" ","+",$string); to my decodeRedirect function in my_forum/Sources/WordpressBridge.php.  My files did not get saved into my themes folder like some people have mentioned above but rather we're installed into the Sources folder.  Is that correct?  I also did not repackage and reinstall after modifying WordpressBridge.php.  I simply uploaded it to the Sources folder again.  Do I need to reinstall to make the fix work?  Thanks in advance,
-sax

update: tried to reinstall after adding str_replace but didn't help.
Also for what it's worth I'm running WP 3.2.1 and am Using SMF2.0.1 (emulating RC5 supposedly.  is there a way to check this?)
Title: Re: Wordpress 3.0+ User Integration
Post by: rootuid on November 09, 2011, 05:38:39 PM
Wondering if this works with smf 1.1.4? Probably not but heres hoping.

If not, is there a bridge that works with 1.1.4?  thanks.
Title: Re: Wordpress 3.0+ User Integration
Post by: TheListener on November 09, 2011, 05:58:24 PM
Quote from: rootuid on November 09, 2011, 05:38:39 PM
Wondering if this works with smf 1.1.4? Probably not .

Compatible With:
    2.0 RC5

maybe you should try and see what the Search function is for.
Title: Re: Wordpress 3.0+ User Integration
Post by: rootuid on November 13, 2011, 04:29:57 PM
Smartass,
I know what the release notes say. I was asking if anyone has got it working with 1.1.5?
Title: Re: Wordpress 3.0+ User Integration
Post by: TheListener on November 13, 2011, 05:10:39 PM
Considering the mod is not compatible with 1.1. do you really expect anyone to do so?
Title: Re: Wordpress 3.0+ User Integration
Post by: rootuid on November 18, 2011, 05:42:25 AM
Wondering if the author could update this to be 2.0.1 compatible. It may work as other users indicate however official confirmation would be great.
Title: Re: Wordpress 3.0+ User Integration
Post by: thecoo1est on December 10, 2011, 01:55:07 PM
I currently have a smf 2.0.1 forum, Im looking to add wordpress, my question is will this work on 2 separate databases? I have one for smf naturally, and wanted to make a separate for wp. I dont want to take a chance on wp messing up my smf forum I worked so hard on
Title: Re: Wordpress 3.0+ User Integration
Post by: Heeks on December 10, 2011, 03:42:08 PM
I have smf and Wordpres on 2 separate db, no pb for me ;)
Title: Re: Wordpress 3.0+ User Integration
Post by: thecoo1est on December 10, 2011, 05:58:29 PM
Okay I installed everything the basics are there, however when I click login Im redirected to smf login like its supposed to, login in it redirects me to my smf homepage, when I go back to blog Im not logged in, any suggestions as to what I need to look at?


EDIT: Okay the redirect issue seems okay now, but Its still not logging in on the wordpress blog and logging in from smf? I have seen this question asked many times in this thread but no one has even acknowledged it, any ideas?
Title: Re: Wordpress 3.0+ User Integration
Post by: Benchtech on January 20, 2012, 02:28:45 PM
Any chance of getting this to work on SMF 2.0.2 or does anyone know how I could get it to work myself?
Title: Re: Wordpress 3.0+ User Integration
Post by: SA™ on January 20, 2012, 02:32:54 PM
have you tryed version emulate? it should work with that?
Title: Re: Wordpress 3.0+ User Integration
Post by: silvercityron on February 02, 2012, 12:47:31 AM
This is a great idea and a much needed mod but I can't get it to work correctly.
The installation went perfect and when a member logs into the forum for the first time login2 pops up and say's your password has been updated. After they login they are also in the wordpress database as a user.

Here are the problems;
1) When they log into the forum and click the link to the wp site they are not logged in.

2) If they are at the wp site and click login the are directed to the forum to login but after they do they are not directed back to the wp site.

3) The other thing is, if after logging into the forum and they become a member and the user name and password is installed in the wp database why can't they or myself log in directly at the wp site?
Title: Re: Wordpress 3.0+ User Integration
Post by: CebuBars on February 02, 2012, 03:21:44 AM
I have had nothing but problems with this mod but on the other hand many aspects of it work great and I thank the author for it.
I needed a secure login if I was going to have a Word Press site since wp is very unsecure and can get spammed with new members all the time. My SMF forum for 2011 rejected/blocked 116364 spammers and we deleted about another 64,756 that made it through.

Here are my tips on using this mod;
  1)   Install the mod on your forum but do not install the patch for the wp-login file
  2)   Set all your settings for the mod in SMF for members
  3)   Go to your wordpress files and rename or delete the wp-registration file

Ok, now if you did these simple things you have fixed some issues;
  1)   By not having added the code to the wp-login file now members can login at the wp site or the smf forum. Now they have a choice!
  2)   What I did on my wp site is put up an explanation that registration will go through the forum for security and gave them a link to "Registration" which goes to the SMF registration page.
  3)   Once they register and are approved all they have to do is login one time and they are members of the wp site
  4)   To make it easy for my members I have a banner for the wp site just below the menu so once they are logged in they have a quick way to get to the wp site and if they want to bookmark the wp site they can and can login directly from there.

This is what I did for a few hours today and if it helps one person this post was worth it...
Title: Re: Wordpress 3.0+ User Integration
Post by: awolexpat on February 08, 2012, 03:34:53 AM
Have any of you guys tried the plugin available on Wordpress? I was planning to use the SMF mod and do it the way you guys are trying, but in my test environment I couldn't get it to work properly and your comments suggest that it is hard going. I am now going to test the plugin from WP to see if it works instead but would appreciate anyone's experiences shared.
Title: Re: Wordpress 3.0+ User Integration
Post by: Kat9119 on February 09, 2012, 03:49:15 PM
Quote from: CebuBars on February 02, 2012, 03:21:44 AM
I have had nothing but problems with this mod but on the other hand many aspects of it work great and I thank the author for it.
I needed a secure login if I was going to have a Word Press site since wp is very unsecure and can get spammed with new members all the time. My SMF forum for 2011 rejected/blocked 116364 spammers and we deleted about another 64,756 that made it through.

Here are my tips on using this mod;
  1)   Install the mod on your forum but do not install the patch for the wp-login file
  2)   Set all your settings for the mod in SMF for members
  3)   Go to your wordpress files and rename or delete the wp-registration file

Ok, now if you did these simple things you have fixed some issues;
  1)   By not having added the code to the wp-login file now members can login at the wp site or the smf forum. Now they have a choice!
  2)   What I did on my wp site is put up an explanation that registration will go through the forum for security and gave them a link to "Registration" which goes to the SMF registration page.
  3)   Once they register and are approved all they have to do is login one time and they are members of the wp site
  4)   To make it easy for my members I have a banner for the wp site just below the menu so once they are logged in they have a quick way to get to the wp site and if they want to bookmark the wp site they can and can login directly from there.

This is what I did for a few hours today and if it helps one person this post was worth it...


Ok, I attempted to do this, and it works so I can finally login to my WP Admin panel, because if I do the "fix" to the wp-login.php file it just redirects me to the index of SMF, meaning I'm never able to edit my website via the WP-admin page. However, because WP makes you "admin" right away, my account is not linked with my SMF account...I tried changing my SMF account name to "admin" but it doesn't connect them...I realised, that I needed to login to SMF with my WP admin account even though there wasn't an account on SMF already...this created the linked account, but now I'll have to go in and make that the admin and delete my first account.

I also noticed that if for any reason you are brought to the WP-login page, you have the WP "register" link at the bottom which then they can now register via WP instead of SMF...if they use this registration link, they aren't registered over at SMF - when I tried this I also never got my password that was supposed to be sent to me. This is because you need to go login at SMF with the info you registered with to "create" that linked account. However, I never got a password sent to me. Therefore, the default WP "register" link needs to be linked to the register link in SMF or deleted...but I'm not sure where to change this (and getting help on the WP page is almost nonexistant). So instead I made links below the comment input boxes stating they should register or login via the links I provided in the same area. I also have an SMF login/logout box on my WP homepage (but that auto directs them back to SMF not the homepage of WP), but still should. I also had to remove the "logout" link at the bottom of the comments input box because it redirected to a 404 page...

Also, when you are logged in, and you see the "admin" or user bar at the top of the site or in the dashboard, the "edit profile" link brings you to your profile in the WP dashboard while the "logout" links bring you to a 404 page. It should in my opinion log you out of SMF. But I'm not sure where to change this..I installed a plugin to hide the bar, but I want users to be able to upload their own Avatars since this doesn't use their forum avatar (bummer!) and by hiding the bar there is no way for them to access their WP profile to add said avatar.

I also noticed that a deleted user in WP doesn't delete them in SMF and vice versa. You'd have to delete each account from each admin panel.

So, as other people said, this does what its supposed to...but in a very messy way. I'm not good with php and all that sort of stuff, so its taken me a few hours to shift all this stuff around.

If anyone can help with the above issues I'm having I would be ever so grateful!

Quote from: awolexpat on February 08, 2012, 03:34:53 AM
Have any of you guys tried the plugin available on Wordpress? I was planning to use the SMF mod and do it the way you guys are trying, but in my test environment I couldn't get it to work properly and your comments suggest that it is hard going. I am now going to test the plugin from WP to see if it works instead but would appreciate anyone's experiences shared.

I tried one, and it didn't work. So I went to this one which seemed easier lol. Honestly, I don't think there is any "easy" way of doing it. Maybe by switching to another brand of board. I'm not sure...
Title: Re: Wordpress 3.0+ User Integration
Post by: Kat9119 on February 09, 2012, 04:06:55 PM
I also just want to say that even though it "links" the accounts, it really doesn't look like it as it doesn't incorporate the avatar from the forum over to the WP blog, and if a user posts on the WP blog, their name doesn't become clickable bringing you to their SMF profile...honestly, they just appear to be a "guest" with a username.
Title: Re: Wordpress 3.0+ User Integration
Post by: Michael Pfaff on March 27, 2012, 09:28:27 AM
There's a bug with this that causes my Wordpress toolbar to keep me logged in, even for other users. When they click on it to go to Dashboard, it asks them to login, but on the toolbar it has my username.

So, I tried installing the hide toolbar plugin for Wordpress, but it's not working. So, I'm wondering what sort of code this mod uses to interact with the Wordpress toolbar, and whether I can remove the toolbar entirely via SMF?
Title: Re: Wordpress 3.0+ User Integration
Post by: luckyMM on June 08, 2012, 09:18:34 AM
Hi , I recently used this mod and having a problem. User name in UTF8 in smf can't change to wp databse as originally.

Example.  ေá€,်ာ္ကာေလá€
Title: Re: Wordpress 3.0+ User Integration
Post by: SolidSnake2003 on June 30, 2012, 07:49:15 AM
Does this plugin work with Wordpress 3.4.1?
Title: Re: Wordpress 3.0+ User Integration
Post by: mageguild on July 12, 2012, 10:24:35 PM
I have enabled this MOD on my SMF website and from what I can tell, it all works well.  However, I can no longer access the WP dashboard to create posts. 
Title: Re: Wordpress 3.0+ User Integration
Post by: Devicon on July 16, 2012, 01:38:50 PM
When i try to logout in the wordpress page, i get this error message in smf:
Unable to verify referring url. Please go back and try again.
Title: Re: Wordpress 3.0+ User Integration
Post by: dardub on July 17, 2012, 09:11:21 PM
I'm wondering if anyone has used the Facebook integration module http://custom.simplemachines.org/mods/index.php?mod=2322 combined with this module.

When signing into the forum with facebook it only signs me into the forum and not wordpress. Has anyone done this before?

Any advice on what hooks or functions i need in order to log into wordpress when facebook user is logged in?

Thanks,

Darren
Title: Re: Wordpress 3.0+ User Integration
Post by: guy123 on July 26, 2012, 09:50:09 PM
Will this be updated for 2.0.2? I'd like to use it.
Title: Re: Wordpress 3.0+ User Integration
Post by: TheListener on July 26, 2012, 09:52:18 PM
Quote from: MrFarbodD on July 26, 2012, 09:50:09 PM
Will this be updated for 2.0.2? I'd like to use it.

The mod works perfect on 2.0.2
Title: Re: Wordpress 3.0+ User Integration
Post by: guy123 on July 27, 2012, 07:22:23 AM
Oh okay awesome i'll try install it!

Hm when I try to install it on my 2.0.2 it says it's not for my version. Do I have to use emulate and will this effect my other mods?
Title: Re: Wordpress 3.0+ User Integration
Post by: jaymax on July 28, 2012, 09:09:15 PM
Hello,

How does SMF 2.0 RC5 differ from SMF 2.0.2? Is the latter compatible with BlogBridger-1.1.4.tar.gz? I just tried it with WP 3.4.1 and SMF 2.0.2 - =>
"The package you are trying to download or install is either corrupt or not compatible with this version of SMF. "
File downloaded was BlogBridger-1.1.4.tar.gz.(23,752B)

Thanks!

BlogBridger w- SMF 2.0.2
Title: Re: Wordpress 3.0+ User Integration
Post by: Madchen on August 12, 2012, 05:17:59 AM
Quotewp-login.php is not redirecting to SMF

And my path is E:\Program Files\wamp\www\mysite\wp-login.php

QuoteAdjust WordPress wp-login.php file
This will try to alter your wp-login.php file by redirecting all requests to it to SMF's login page instead.

If i run this option, it works but than i've got problem mentioned before.
Title: Re: Wordpress 3.0+ User Integration
Post by: ProfessorGoose on August 14, 2012, 03:27:23 AM
So, I am really new to this kind of thing so please do not get to aggravated with me. I do not know anything about php and sql. I FTPd SMF to my the SMF directory but I cannot follow your instructions after that because I have Wordpress on my site. This is where I get confused.

Is there a step by step instruction guide as how to install SMF and then integrate it into wordpress. I searched the forum in the bar but a lot of items came up and upon glancing at some peoples' posts I was getting confused.

Does anyone have any advice or help please?  (Other than me smacking myself in the face until I pass out.)

Title: Re: Wordpress 3.0+ User Integration
Post by: Kindred on August 14, 2012, 09:03:20 AM
Jaymax...    Upgrade ASAP!! !!!
Rc5 is outdated and insecure.

Professor goose,

Install SMF in a subdirectory. Follow the normal SMF installation instructions (see the documentation link in the header of this site). Installing SMF has nothing to do with Wordpress.
After SMF is installed, then, using the SMF package manager install this mod, following the instructions for this mod....
Title: Re: Wordpress 3.0+ User Integration
Post by: Sakurachan on October 06, 2012, 01:51:27 AM
Needs upgraded to current release of SMF, but I hear it works regardless.
Title: Re: Wordpress 3.0+ User Integration
Post by: Arantor on October 06, 2012, 12:23:39 PM
There are absolutely no changes in 2.0.2 that would affect this, meaning that it's pretty much just a case of updating the mod's page (no actual work required)
Title: Re: Wordpress 3.0+ User Integration
Post by: gwbasic on October 08, 2012, 09:41:56 AM
Hi!
First of all, i would like to thanks for this usefull mod.
I am using WP 3.4.2+SMF 2.0.2. I've installed it manually and works like a charm, except one thing.
After logging in through the Wordpress login link, I am not redirected back to wordpress, but go to the forum index.
I've tried to add:
$string = str_replace(" ","+",$string);
after decodeRedirect($string) in WordpressBridge.php, but that still doesn't help.
Any hint?
Title: Re: Wordpress 3.0+ User Integration
Post by: stylusss on November 01, 2012, 05:54:56 PM
Was a 1.x version every made?
Title: Re: Wordpress 3.0+ User Integration
Post by: Sakurachan on November 13, 2012, 12:38:14 PM
Would emulating that version it work for fix this issue?

http://i.imgur.com/ixg3w.png
Title: Re: Wordpress 3.0+ User Integration
Post by: stylusss on November 13, 2012, 05:21:07 PM
Quote from: Sakurachan on November 13, 2012, 12:38:14 PM
Would emulating that version it work for fix this issue?

http://i.imgur.com/ixg3w.png

Go into the mod, change the xlm file configuration from 2 point whatever, to your smf version, then reinstall.
Title: Re: Wordpress 3.0+ User Integration
Post by: Sakurachan on November 13, 2012, 07:01:05 PM
Quote from: stylusss on November 13, 2012, 05:21:07 PM
Quote from: Sakurachan on November 13, 2012, 12:38:14 PM
Would emulating that version it work for fix this issue?

http://i.imgur.com/ixg3w.png

Go into the mod, change the xlm file configuration from 2 point whatever, to your smf version, then reinstall.

That's what I thought
Title: Re: Wordpress 3.0+ User Integration
Post by: Kindred on November 13, 2012, 07:23:22 PM
do note... emulating 2.0 in a 1.1 forum will cause issues.
I do not believe this will work in 1.1.x
Title: Re: Wordpress 3.0+ User Integration
Post by: Sakurachan on November 13, 2012, 07:34:58 PM
Quote from: Kindred on November 13, 2012, 07:23:22 PM
do note... emulating 2.0 in a 1.1 forum will cause issues.
I do not believe this will work in 1.1.x

I used 2.0.2 and emulated it to whatever version he last 'updated' his MOD to.
I get this error now,

Quotewp-login.php is not redirecting to SMF

Hmmm..went to my WP test site and SMF test site. I am currently logged on to WP and logged out of it only to be logged outta the forum. I'm assuming all is well now, then.

ETA: Works fine!
Title: Re: Wordpress 3.0+ User Integration
Post by: Sulfur on March 28, 2013, 03:04:23 PM
Quote from: thecoo1est on December 10, 2011, 05:58:29 PM
Okay I installed everything the basics are there, however when I click login Im redirected to smf login like its supposed to, login in it redirects me to my smf homepage, when I go back to blog Im not logged in, any suggestions as to what I need to look at?


EDIT: Okay the redirect issue seems okay now, but Its still not logging in on the wordpress blog and logging in from smf? I have seen this question asked many times in this thread but no one has even acknowledged it, any ideas?

sorry for the gravedig but did anyone know how to fix this? I Got the same problem
Title: Re: Wordpress 3.0+ User Integration
Post by: Michael Pfaff on March 30, 2013, 10:28:54 PM
I think I got this fixed on my own. The file needed to be fixed. Seems to be A-okay now.

Okay, uninstalled the bridge and reinstalled it and changed the path and it seemed to work alright, but now

I'm getting this:

We found the following problems:
wp-login.php is not redirecting to SMF

Any way to fix that?


Wondering if someone can help me. I recently moved my website to a new hosting provider and everything is great except I think there is an error happening with this mod.

When people are logged into SMF already through cookies, everything is gravy. When someone needs to login, I'm getting errors:

An Error Has Occurred!
No Wordpress configuration file was found

Now, I'm thinking this might be a simple fix to change the paths in the mod file to the new. However, when I uninstalled the mod, that didn't seem to work. So, wondering how I can make sure my SMF login is seeing the right files for user login information?
Title: Re: Wordpress 3.0+ User Integration
Post by: babygirlfl on July 05, 2013, 08:09:28 AM
Special thanks for this mod
However it is giving me this message when i try to connect to wordpress.

We found the following problems:
wp-login.php is not redirecting to SMF
Wordpress path is not writable by the webserver. We will not be able to make backups of modified Wordpress files
Title: Re: Wordpress 3.0+ User Integration
Post by: mousetopher on November 11, 2013, 07:47:56 PM
Quote from: thecoo1est on December 10, 2011, 05:58:29 PM
Okay I installed everything the basics are there, however when I click login Im redirected to smf login like its supposed to, login in it redirects me to my smf homepage, when I go back to blog Im not logged in, any suggestions as to what I need to look at?

EDIT: Okay the redirect issue seems okay now, but Its still not logging in on the wordpress blog and logging in from smf? I have seen this question asked many times in this thread but no one has even acknowledged it, any ideas?
Mod's working great on SMF 2.0.5 and WP 3.7.1 after manually updating the version number as suggested on the previous page. I installed on forum.domain.com and connected it to WP on domain.com/wp/ and had the issue described above - login is successful for the forum but not WP, which the OP addressed here:

Quote from: SlammedDime on June 09, 2011, 05:47:56 PM
I don't believe it will work right now.  I think a bug I haven't taken care of is that the wordpress cookie needs to be set on the whole domain, not just a sub, to work properly, and that isn't happening right now.
With this in mind, I was able to get it working with the described configuration by modifying WordpressBridge.php slightly - no guarantees as to whether or not this will work for anyone else or break anything, but it does seem to be working for me atm. I've attached the modified file for anyone who's interested! (Notepad++ has a great side by side file comparison feature for anyone who's interested in exactly what was changed.)

Great mod, thanks for it SlammedDime!
Title: Re: Wordpress 3.0+ User Integration
Post by: Theopt on March 11, 2014, 05:01:52 PM
Quote from: mousetopher on November 11, 2013, 07:47:56 PM
Quote from: thecoo1est on December 10, 2011, 05:58:29 PM
Okay I installed everything the basics are there, however when I click login Im redirected to smf login like its supposed to, login in it redirects me to my smf homepage, when I go back to blog Im not logged in, any suggestions as to what I need to look at?

EDIT: Okay the redirect issue seems okay now, but Its still not logging in on the wordpress blog and logging in from smf? I have seen this question asked many times in this thread but no one has even acknowledged it, any ideas?
Mod's working great on SMF 2.0.5 and WP 3.7.1 after manually updating the version number as suggested on the previous page. I installed on forum.domain.com and connected it to WP on domain.com/wp/ and had the issue described above - login is successful for the forum but not WP, which the OP addressed here:

Quote from: SlammedDime on June 09, 2011, 05:47:56 PM
I don't believe it will work right now.  I think a bug I haven't taken care of is that the wordpress cookie needs to be set on the whole domain, not just a sub, to work properly, and that isn't happening right now.
With this in mind, I was able to get it working with the described configuration by modifying WordpressBridge.php slightly - no guarantees as to whether or not this will work for anyone else or break anything, but it does seem to be working for me atm. I've attached the modified file for anyone who's interested! (Notepad++ has a great side by side file comparison feature for anyone who's interested in exactly what was changed.)

Great mod, thanks for it SlammedDime!

I'm not being able to set wordpress roles on smf, nothing shows up there
Title: Re: Wordpress 3.0+ User Integration
Post by: mousetopher on March 11, 2014, 05:54:56 PM
Quote from: Theopt on March 11, 2014, 05:01:52 PM
I'm not being able to set wordpress roles on smf, nothing shows up there
Odd, they work for me.
Title: Re: Wordpress 3.0+ User Integration
Post by: Theopt on March 11, 2014, 08:03:27 PM
Quote from: mousetopher on March 11, 2014, 05:54:56 PM
Quote from: Theopt on March 11, 2014, 05:01:52 PM
I'm not being able to set wordpress roles on smf, nothing shows up there
Odd, they work for me.

should I had applied ur fix before or after? Maybe I've missed some step :x

Install, apply wp-login fix and your's right?
Title: Re: Wordpress 3.0+ User Integration
Post by: mousetopher on March 12, 2014, 09:58:31 AM
Quote from: Theopt on March 11, 2014, 08:03:27 PM
Quote from: mousetopher on March 11, 2014, 05:54:56 PM
Quote from: Theopt on March 11, 2014, 05:01:52 PM
I'm not being able to set wordpress roles on smf, nothing shows up there
Odd, they work for me.

should I had applied ur fix before or after? Maybe I've missed some step :x

Install, apply wp-login fix and your's right?
Iunno, I'm not sure which wp-login fix you mean. I believe what I did was: dl the mod, change the version number, update WordpressBridge.php, install, link it to WP via the WP Bridge settings page in Admin, and voila.

It may be easier for you to install them on the same subdomain to start with (e.g. domain.com/forum/ and domina.com/wp/) and see if you can get it working like that, before you experiment with running them on different subdomains.
Title: Re: Wordpress 3.0+ User Integration
Post by: Theopt on March 12, 2014, 10:02:19 AM
Quote from: mousetopher on March 12, 2014, 09:58:31 AM
Quote from: Theopt on March 11, 2014, 08:03:27 PM
Quote from: mousetopher on March 11, 2014, 05:54:56 PM
Quote from: Theopt on March 11, 2014, 05:01:52 PM
I'm not being able to set wordpress roles on smf, nothing shows up there
Odd, they work for me.

should I had applied ur fix before or after? Maybe I've missed some step :x

Install, apply wp-login fix and your's right?
Iunno, I'm not sure which wp-login fix you mean. I believe what I did was: dl the mod, change the version number, update WordpressBridge.php, install, link it to WP via the WP Bridge settings page in Admin, and voila.

It may be easier for you to install them on the same subdomain to start with (e.g. domain.com/forum/ and domina.com/wp/) and see if you can get it working like that, before you experiment with running them on different subdomains.

I did that. but when I login I dont get redirected to WP...
And I can't set up wordpress groups on the installer as well :x
Title: Re: Wordpress 3.0+ User Integration
Post by: Theopt on March 12, 2014, 05:47:01 PM
I've tried a fresh install but I still cant select wordpress roles. Why is that ? :|
Title: Re: Wordpress 3.0+ User Integration
Post by: joeyjojoshabadoo on May 01, 2014, 08:14:39 PM
Is there any hope this would work on 2.0.7 and the new wordpress 3.9?
Title: Re: Wordpress 3.0+ User Integration
Post by: mousetopher on May 03, 2014, 11:58:34 AM
Quote from: joeyjojoshabadoo on May 01, 2014, 08:14:39 PM
Is there any hope this would work on 2.0.7 and the new wordpress 3.9?
Probably, did you try?
Title: Re: Wordpress 3.0+ User Integration
Post by: Adrek on May 03, 2014, 01:14:17 PM
It works, but when you try to login for the first time (after enabling integration) you'll see message "Password security has recently been upgraded. Please enter your password again."
It's one time notice, after login all will be fine. Anyway, you should try it out on some test forum ;)
Title: Re: Wordpress 3.0+ User Integration
Post by: Westwegoman on June 18, 2014, 01:35:44 PM
Just an FYI...

Just installed this with WP 3.9.1 and SMF 2.0.7 and seems to be working as it should.

I did get the following error on the settings page.
wp-login.php is not redirecting to SMF

Once I clicked the button for "Adjust WordPress wp-login.php file" it went away.
Title: Re: Wordpress 3.0+ User Integration
Post by: jacodema on August 27, 2014, 12:35:15 PM
Has anyone had any luck with 2.0.8? Attempting to install now. Does not let me initially due to incompatibility.
Title: Re: Wordpress 3.0+ User Integration
Post by: Kindred on August 27, 2014, 01:37:29 PM
http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version
Title: Re: Wordpress 3.0+ User Integration
Post by: ViewFromTheBoundary on March 16, 2015, 12:19:35 PM
I'm having the same issues as above except I'm on 2.0.9 when a new user signs up to my forum it creates a duplicate WP user but when current users login it isn't always working. Any ideas how to solve this?
Title: Re: Wordpress 3.0+ User Integration
Post by: ViewFromTheBoundary on March 17, 2015, 07:35:56 PM
When I'm logged into SMF I get this on WP

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FYrtgBjL.png&hash=e077cf7f3cbcac0995ab827df9494949369000cc)

Title: Re: Wordpress 3.0+ User Integration
Post by: Jade Elizabeth on March 27, 2016, 02:34:09 AM
Is it possible for this mod to be updated? :)
Title: Re: Wordpress 3.0+ User Integration
Post by: JBlaze on March 27, 2016, 06:43:39 AM
Quote from: Jade Elizabeth on March 27, 2016, 02:34:09 AM
Is it possible for this mod to be updated? :)
Not unless SlammedDime either updates it or gives permission for someone else to do it :(
Title: Re: Wordpress 3.0+ User Integration
Post by: Jade Elizabeth on March 27, 2016, 08:20:35 AM
I sent him a PM so here's to hoping!
Title: Re: Wordpress 3.0+ User Integration
Post by: JBlaze on March 27, 2016, 08:22:06 AM
QuoteLast Active: 23 July 2014, 23:54:20

Good luck! :P
Title: Re: Wordpress 3.0+ User Integration
Post by: Jade Elizabeth on March 27, 2016, 08:31:54 AM
Here's to hoping he gets email notifications?

I'll send him an email...
Title: Re: Wordpress 3.0+ User Integration
Post by: Jade Elizabeth on July 17, 2016, 01:32:12 AM
He read my messages and didn't respond.

Anyway I've been looking at the code and honestly it's all pointing to the right places I think it could be something silly like Wordpress is storing ALL roles in one row instead of each seperate?

It would be so good if someone could look into this and make a fix and post it here for everyone. I've tried but honestly I am no good with sources :(.
Title: Re: Wordpress 3.0+ User Integration
Post by: live627 on July 17, 2016, 04:43:16 AM
Would this help?

https://github.com/tostercx/bridges/tree/master/SMF-Wordpress
Title: Re: Wordpress 3.0+ User Integration
Post by: Jade Elizabeth on July 26, 2016, 12:53:54 AM
I tried those files just now and there's no difference :(.

It all looks right to me but it's not picking up roles for anyone. I don't know which side of the fence it's on. Thanks for looking into a possible solution though!! :D
Title: Re: Wordpress 3.0+ User Integration
Post by: Jade Elizabeth on August 11, 2016, 01:10:23 AM
Does anyone have any ideas who I could ask to look into this?
Title: Re: Wordpress 3.0+ User Integration
Post by: Jade Elizabeth on August 16, 2016, 01:39:45 PM
It's not keeping people logged in on Wordpress and people are having to change their passwords every day. This is getting really hard to work with, I can't fix it myself. :(
Title: Re: Wordpress 3.0+ User Integration
Post by: Dwev on February 01, 2018, 12:33:09 PM
I'm thinking of starting a Shop that's incorporated in SMF, and WordPress has some interesting options for this.

But am I right that this Mod is dead and buried?

Jade Elizabeth clearly tried to get answers about a year and a half back, and it seems there was no-one to answer those questions anymore...  :(

By the way: SMF Shops don't seem an option (we're looking for a real Shop, with real payments).
But if someone van convince me of the contrary, I'm always open to new ideas...
Title: Re: Wordpress 3.0+ User Integration
Post by: Jade Elizabeth on February 03, 2018, 04:08:16 AM
I had a couple of code savvy friends try to fix this, and even an SMF dev, and no one could fix it. The BEST it would do is log you into both while you were on that tab, unless you paused for like 30 mins. It was WAY more trouble than it's worth. I recommend setting up Wordpress and SMF to use Oneall Social Login plugins, then they can just log in with that and they don't know it's a different account ha ha.

You can check out my site, forum, and store here if you want to see how mine is handled: www.colormeforum.com (note I uninstalled this mod a few days ago and my customers are no longer spamming me 16 times a day with complaints about being locked out or forgetting their passwords, etc. If you look at the "how to log in" page under "my account" you'll see why it was so hard for everyone to get the hang of it). Don't try this mod, not until someone fixes it. The cookies are not compatible and it's a mess to work with.
Title: Re: Wordpress 3.0+ User Integration
Post by: Dwev on February 05, 2018, 11:46:51 AM
@ Jade Elizabeth: thanks een lot for this feedback, invaluable (because you just saved me a lot of time!).

I'll check out the Oneall Social Login Mod (in case someone is looking for it, it can be found here (https://custom.simplemachines.org/mods/index.php?mod=3580)).

And I really enjoyed your site, very nice both in looks and functionality (with a nice incorporation of SMF!).