News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

SMF2WPBridge

Started by vbgamer45, April 25, 2020, 01:08:06 PM

Previous topic - Next topic

vbgamer45

Link to the mod

SMF2WPBridge
For SMF 2.0.x

Description


Login bridge for use WP with SMF

Features


  • If a user log in SMF, then that user will be logged in WP
  • If a user logout in SMF, then that user will be logout in WP
  • If a user created/register/change password in SMF, those actions happen on WP!
  • Users that are created in WP can be used once disabled SMF plugin
  • For integrate old users send password in login page!
  • For upgrade SMF2WPBridge version unistall first
  • For a full way integration use with WP2SMFBridge plugin:
        https://github.com/xchwarze/WP2SMFBridge

Limitations


  • SMF login with OpenID does not work

Installation


Simply install it via package manager.

Administration


After install you can access it through Admin Panel
  • For SMF 2.0 Go to:
    Admin -> Configuration -> Modification Settings -> SMF2WPBridge

License


GNU/GPL: http://www.gnu.org/copyleft/gpl.html
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Mick.


vbgamer45

DSR !original made but never got approved on mod site. I have  updated and posted with permission from him and pushed the changes back to github.
There are two parts SMF  to worpdress and then another addon for Worpdress to SMF.

We needed to have a goto worpress integration here.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Mick.

About 10-12 years ago someone made a bridge. I dont remember who or if it was even on here on the modsite.  It worked logging in on both places but it was flawed. Very cool of you doing this. I've seen the recent posts about dual logins lately.

vbgamer45

Have more time working at home than the office. So doing some fun projects here and there. Recoded some parts of an RPG game I used to help run/contribute to, so staying busy
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

-Rock Lee-

Good job is something lately they ask a lot I have seen although wp I do not like much for the format uses... I guess I'm becoming a hermit over the years ::).


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

Dzonny


jsx

#7
@vbgamer45

Thank you for this login bridge. Please add a Polish translation to this modification. :)


vbgamer45

Done added the translation.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Douglas

vbgamer, dude... thank you!

I had actually been considering resurrecting the old SMF <-> WP bridge, especially since I now do WordPress as a (current) career... this takes that task off my plate!

Really appreciate this, my guy!
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* HBCUAC.org Web Developer, the NAIA's only HBCU Athletic Conference
* Former Sports Photographer and Media Personality and Former CFB Historian
* Tech Admin for one 2.9M+ post and one 11.6M+ post sites. Used to own a 1M+ post site.
* WordPress Developer (Junkie / Guru / Maven / whatever)

vbgamer45

Glad to help.  Be sure to grab both parts SMF TO WP and WP TO SMF. I used to remember a lot of bridges for SMF trying to bring some back as I find them.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Douglas

Actually, we want it to be just one direction (SMF -> WP) for Fractured. ;)

I just have to wait for 2.1 to reach RC3 status, first.
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* HBCUAC.org Web Developer, the NAIA's only HBCU Athletic Conference
* Former Sports Photographer and Media Personality and Former CFB Historian
* Tech Admin for one 2.9M+ post and one 11.6M+ post sites. Used to own a 1M+ post site.
* WordPress Developer (Junkie / Guru / Maven / whatever)

rcane

Hello,

Would this mod work if I want to prevent anyone who isn't in my SMF from seeing my WP content?

vbgamer45

Could be if you setup the permissions on the wordpress side based on membergroup
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

rcane

Quote from: vbgamer45 on December 16, 2021, 06:01:51 PMCould be if you setup the permissions on the wordpress side based on membergroup

Looking into that.  Thanks.  Also, i cant get the path to recognize.

I have it installed in www.mydomain.com/public_html/mySMFdomain.com/content/wp-config.php but it's not taking any permutation of the url

I already had SMF at the root of the "smfDomain" so I put wp in a folder called content.

vbgamer45

It should be a local file path not a web url for the path
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

rcane

Quote from: vbgamer45 on December 16, 2021, 10:41:50 PMIt should be a local file path not a web url for the path

yeah, tried that too.

Kindred

/home/www/public_html/mySMFdomain/content/wp-config.php

more likely, it should be something like that....


try this
create a file mydir.php
put this in it
Code (mydir.php) Select
<?php
echo dirname(__FILE__);
?>
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

rcane

Quote from: Kindred on December 17, 2021, 08:46:47 AM/home/www/public_html/mySMFdomain/content/wp-config.php

more likely, it should be something like that....


try this
create a file mydir.php
put this in it
Code (mydir.php) Select
<?php
echo dirname(__FILE__);
?>

Haaa.  elegant.  I had been using the changepermissions right-click in cPanel because it gave a path to the file you were about to modify.

Much thanks.

rcane

Quote from: vbgamer45 on December 16, 2021, 06:01:51 PMCould be if you setup the permissions on the wordpress side based on membergroup

Do you have any guidance on setting up permissions?  This is the first time I've tried anything like this.

vbgamer45

Myself no. Haven't used it in an actual normal environment. I mainly updated the mod so it could work on newer versions of SMF.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

rcane

Quote from: vbgamer45 on December 29, 2021, 01:46:03 PMMyself no. Haven't used it in an actual normal environment. I mainly updated the mod so it could work on newer versions of SMF.

Well, how does it work in a normal environment?  I can start there.  I've got a few WP pages of content I'd like accessible from the smf.

I don't know any of the steps to use this.

[chrisB]

Does the Wordpress install need to be inside SMF?

I constantly hit this message when trying to locate the wp-config.php file
Your WP path is invalid! could not locate wp-config.php
Ideally, I am trying to use Wordpress as my site and then have SMF as a community extension. I have input the location but nothing seems to work.
I'm stuck in a time warp from the early 00's.

jsx

Take a look at this post:

https://www.smfhacks.com/index.php/topic,9879.msg43334.html#msg43334

Read my entire conversation with vbgamer45 and you'll get to the solution.

[chrisB]

@jsx May I ask if you tried with the latest version of WordPress?

I'm a little torn between using this or the Tiny Portal app, yet as a content creator, WordPress fulfils a lot more of my needs if a bridge works.
I'm stuck in a time warp from the early 00's.

[chrisB]

@vbgamer45 It works with WordPress 6.1.1, but it looks like something isn't quite playing nicely.

I installed an older version of WordPress to test; it worked flawlessly (5.6.10) but now with 6.1.1 if I log out using WordPress it doesn't log me out of SMF.

If I log out of SMF, it logs me out of WordPress.

My error log shows this message every time I sign out.
26
It also shows this:
Quotewp-includes/class-wp-hook.php (Line 310)

Would you please be able to look into this issue?
I'm stuck in a time warp from the early 00's.

jsx

@joey_matthews

I am not currently using WordPress.

[chrisB]

I am experiencing the same issue on another fresh install, this one runs WordPress 5.6.10 and the same error comes up when logging out of WordPress.

Quote2: call_user_func_array() expects parameter 1 to be a valid callback, function 'rest_cookie_collect_status' not found or invalid function name
I'm stuck in a time warp from the early 00's.

[chrisB]

I asked a friend to check the plugin, he's managed to fix the WordPress side sign-out sync with SMF. However, he's tried various things to fix the the sign-in sync.The SMF plugin by VBgamer works perfectly.

It will sign in and out of WordPress.It's the WordPress side which is broken.I would love to be able to bring my sites and projects to WordPress/SMF. I am hoping the sign-in sync can be fixed, I could pay but it depends on the amount. Unfortunately, I can't afford over $150, even this might be a push for me due to the cost of living.

It's a shame others who want to see a well maintained bridge supported by a reliable dev, like @vbgamer45 or @Douglas. SMF is a great option for a forum and community, whereas WordPress for content like articles, features etc gives a reason to bring in people.
I'm stuck in a time warp from the early 00's.

Advertisement: