News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

[WIP] WordPress 3.0+ / SMF 2.0 RC4+ User Integration

Started by SlammedDime, March 14, 2011, 03:07:17 PM

Previous topic - Next topic

SlammedDime

Before I go any further, let me state that this will not work for SMF 1.1.x or any version of 2.0 lower than RC4 nor do I plan to support either of those in the future.  This mod works soley off of SMF's integration hooks that are only available in RC4+.


Now, onto the good stuff.  First and foremost, this is not a GPL licensed product.  I despise software companies that provide a way for folks to plug into their systems, yet license it in a way that requires you to use their license for your work.  But I digress... this mod is released, as my others are, under the MPL 1.1.  I will soon have it up on BitBucket.org, but still have some final touches to place on for it's first release.


Some basic features and caveats:
  • All user registrations and logins/logouts must go through SMF
  • Wordpress and SMF can reside in different databases with different database users if you wish
  • If a user doesn't exist in one of the systems when logging in, they will be created automatically
  • When a user registers in SMF, they will be registered into WP as well
  • When a user updates their profile in SMF, it will update in Wordpress (future feature: create a separate profile screen in SMF admin panel that maps to profile in Wordpress)
  • Map Wordpress Roles to SMF Membergroups and vice versa.  If their membergroup changes in SMF, it will change in Wordpress.  If a user doesn't exist in SMF, but does in Wordpress, they will get a SMF membergroup that you have associated with their Wordpress Role (and vice versa for users in SMF but not WP).
  • The only thing you need to enter in the admin panel after installing is the path to your wp-config.php file.  The mod even tries to auto-locate this file for you on your file system.
  • Has not been tested on Windows servers yet
  • Has not been tested in IE
  • Has not been tested when Wordpress and SMF are not on the same subdomain
  • Manual hacks must be made to Wordpress files if you wish to disable logging in and registering through Wordpress (simple one line edit in wp-login.php).


    Once I have the code up on BitBucket, I'd invite anyone who wishes to test it out and play with it and see what features you'd like (so long as it doesn't involve editing any SMF code, nor adds anything to Wordpress) and what things don't quite work right.  As I only use Wordpress very little for my own blog/site, I'd like to gauge some feedback based on the above features to see what people might like to see early on and maybe catch anything ahead of time that I didn't think of before releasing the code.


    Thoughts?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Antes

Haha you did some great job (like playing Snake game on your phone at level 20)

Mick.

Dang, this is cool SD.

Can this be applied to already established forums?  I mean, not only to new installs?

I thought I read SMF had to be a fresh install when using those old bridges.  Hmm, I don't remember.

SlammedDime

With this particular bridge, it can be installed on already established wordpress and SMF sites.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

KensonPlays

If I ever start using WP again I'll be sure to test this out!!

Owner of Mesozoic Haven

ormuz


Masterd

It's nice to hear that someone is finally working on this. :)

SlammedDime

I'm really hoping to get the code uploaded to BitBucket this weekend (although I am moving into a new house)... I need to finish adding some error checking to the mod and also go through the hooks a bit more to make sure I'm not missing any.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

tfs

A good tree cannot bring forth evil fruit, neither can an evil tree bring forth good fruit.

eyo


busymouse

Quote from: SlammedDime on March 14, 2011, 03:07:17 PMOnce I have the code up on BitBucket, I'd invite anyone who wishes to test it out and play with it and see what features you'd like (so long as it doesn't involve editing any SMF code, nor adds anything to Wordpress) and what things don't quite work right.  As I only use Wordpress very little for my own blog/site, I'd like to gauge some feedback based on the above features to see what people might like to see early on and maybe catch anything ahead of time that I didn't think of before releasing the code.


Thoughts?

I'm too stupid. I can't find the code up on BitBucket. Have a link for me?  ???
"Tu erst das Notwendige, dann das Mögliche, und plötzlich schaffst du das Unmögliche..." (Franz von Assisi, 1182-1226)

Illori

he said once i have the code up on bitbucket, that does not mean it is up there now.

busymouse

Too bad! Would be nice if I could get the code. Is it possible? Would be really great...  :)
"Tu erst das Notwendige, dann das Mögliche, und plötzlich schaffst du das Unmögliche..." (Franz von Assisi, 1182-1226)

KensonPlays

Quote from: busymouse on March 23, 2011, 08:54:39 AM
Too bad! Would be nice if I could get the code. Is it possible? Would be really great...  :)
Be patient! It will be up eventually!
* Kcmartz patience wins...

Owner of Mesozoic Haven

SlammedDime

Yea, moving into my house has made me quite busy so I haven't had time to work on it... I'm hoping to get my office setup this weekend and get my computer(s) and server back up and running.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Özgür

So Long

TomW

Very cool; I've been needing a workable version of this for a while.  Great job !

SlammedDime

Ok, I've upped the code and provided a download package as well... I cannot stress enough to test this on a test site before going live with it (just in case, ya know?).

Please report any issues or errors from the error log that occur during use.

https://bitbucket.org/mattzuba/blogbridger/downloads
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

SlammedDime

Looks like there has been a couple of downloads... anyone have any feedback?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Ken.

Quote from: SlammedDime on April 06, 2011, 12:28:44 PM
Looks like there has been a couple of downloads... anyone have any feedback?

Trying it on my testsite. http://www.ourfamilyforum.org/SMF2.0/index.php
After activating the bridge everything appears to be OK until going to the 'Role Settings' screen where it tells me:
QuoteYou do not have the required keys or salts in your Wordpress installation.  Please visit https://api.wordpress.org/secret-key/1.1/salt/ and copy the output to your wp-config.php file.

Inserting that code as directed seems to have no effect on displaying WP in the forum, but it gives this error page when accessing WP directly:
http://www.ourfamilyforum.org/wordpress/
Quote*fod61AfVlw#Q}7;-BFi@jM/`QP#c8-cD~=x>T~Pon4.+');// You can have multiple installations in one database if you give each a unique prefix$table_prefix  = 'wp_';   // Only numbers, letters, and underscores please!// Change this to localize WordPress.  A corresponding MO file for the// chosen language must be installed to wp-content/languages.// For example, install de.mo to wp-content/languages and set WPLANG to 'de'// to enable German language support.define ('WPLANG', '');/* That's all, stop editing! Happy blogging. */define('ABSPATH', dirname(__FILE__).'/');require_once(ABSPATH.'wp-settings.php');?>
Fatal error:  Call to undefined function wp() in /home/kenkayjm/public_html/wordpress/wp-blog-header.php on line 14

Advertisement: