Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: vbgamer45 on April 25, 2020, 01:08:06 PM

Title: SMF2WPBridge
Post by: vbgamer45 on April 25, 2020, 01:08:06 PM
Link to the mod (https://custom.simplemachines.org/index.php?mod=4256)

SMF2WPBridge
DSR! (https://github.com/xchwarze)
For SMF 2.0.x

Description

Login bridge for use WP with SMF

Features


Limitations


Installation

Simply install it via package manager.

Administration

After install you can access it through Admin Panel

License

GNU/GPL: http://www.gnu.org/copyleft/gpl.html
Title: Re: SMF2WPBridge
Post by: Mick. on April 25, 2020, 01:16:15 PM
Nice one bruh!
Title: Re: SMF2WPBridge
Post by: vbgamer45 on April 25, 2020, 01:37:44 PM
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.
Title: Re: SMF2WPBridge
Post by: Mick. on April 25, 2020, 01:42:06 PM
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.
Title: Re: SMF2WPBridge
Post by: vbgamer45 on April 25, 2020, 01:46:37 PM
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
Title: Re: SMF2WPBridge
Post by: -Rock Lee- on April 25, 2020, 02:14:09 PM
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!
Title: Re: SMF2WPBridge
Post by: Dzonny on April 25, 2020, 03:48:48 PM
Great work man! :)
Title: Re: SMF2WPBridge
Post by: jsx on April 27, 2020, 02:35:44 PM
@vbgamer45

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

Title: Re: SMF2WPBridge
Post by: vbgamer45 on April 27, 2020, 04:14:37 PM
Done added the translation.
Title: Re: SMF2WPBridge
Post by: Douglas on May 11, 2020, 06:22:17 PM
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!
Title: Re: SMF2WPBridge
Post by: vbgamer45 on May 11, 2020, 06:32:34 PM
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.
Title: Re: SMF2WPBridge
Post by: Douglas on May 11, 2020, 06:34:43 PM
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.
Title: Re: SMF2WPBridge
Post by: rcane on December 16, 2021, 05:38:06 PM
Hello,

Would this mod work if I want to prevent anyone who isn't in my SMF from seeing my WP content?
Title: Re: SMF2WPBridge
Post by: vbgamer45 on December 16, 2021, 06:01:51 PM
Could be if you setup the permissions on the wordpress side based on membergroup
Title: Re: SMF2WPBridge
Post by: rcane on December 16, 2021, 07:07:15 PM
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.
Title: Re: SMF2WPBridge
Post by: vbgamer45 on December 16, 2021, 10:41:50 PM
It should be a local file path not a web url for the path
Title: Re: SMF2WPBridge
Post by: rcane on December 16, 2021, 10:47:21 PM
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.
Title: Re: SMF2WPBridge
Post by: 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__);
?>

Title: Re: SMF2WPBridge
Post by: rcane on December 17, 2021, 09:05:03 AM
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.
Title: Re: SMF2WPBridge
Post by: rcane on December 29, 2021, 01:34:45 PM
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.
Title: Re: SMF2WPBridge
Post by: vbgamer45 on December 29, 2021, 01:46:03 PM
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.
Title: Re: SMF2WPBridge
Post by: rcane on December 29, 2021, 01:48:02 PM
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.
Title: Re: SMF2WPBridge
Post by: [chrisB] on November 18, 2022, 12:03:09 PM
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.
Title: Re: SMF2WPBridge
Post by: jsx on November 18, 2022, 02:58:08 PM
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.
Title: Re: SMF2WPBridge
Post by: [chrisB] on November 24, 2022, 07:17:44 PM
@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.
Title: Re: SMF2WPBridge
Post by: [chrisB] on November 25, 2022, 08:34:53 AM
@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?
Title: Re: SMF2WPBridge
Post by: jsx on November 25, 2022, 09:17:55 AM
@joey_matthews

I am not currently using WordPress.
Title: Re: SMF2WPBridge
Post by: [chrisB] on November 25, 2022, 08:29:59 PM
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