-
Notifications
You must be signed in to change notification settings - Fork 15
Jfusion 2.x Wordpress 3 Before you begin
James G edited this page Feb 14, 2017
·
1 revision
-
The best option is to install either Joomla or Wordpress in your websites root, depending on the page you want your visitors to see when they access your website. For now we assume you put Joomla in the root of your website.
-
Now install Joomla following their instructions
-
Install Wordpress in a subdirectory of your website, lets say <root>/Wordpress. Of course you follow their installation instructions.
-
Go to http://www.jfusion.org/index.php/docs/doku.php?id=visual_integration;guide . Note that the Wordpress plugin will not support frameless integration for versions 1.x of JFusion. For now we are going to use the direct link methode. Joomla can run Wordpress in a wrapper and you can experiment with it, but we are going to get it to work first using the easiest methode to setup.
-
To handle cookies properly we should add some lines to the Wordpress configuration file wp-config.php. Note that in a simple Joomla-Wordpress setup this is not absolutely needed, but the following configuration changes prepaires multisite operation and is mandatory for setups with more than one JFusion integration. Add the following lines:
/* changes to be made for operating JFusion properly on MU systems */ define('COOKIE_DOMAIN', '.yourdomain.com'); define('ADMIN_COOKIE_PATH', '/'); define('COOKIEPATH', '/'); define('SITECOOKIEPATH', '/'); define( 'COOKIEHASH', 'asdf_arbitrary_string' ); /*------------------------------------------------------------------*/
-
Go to Joomla admin and install JFusion from www.jfusion.org , following the documentation step 1, 2 and 3 from the documentation at http://www.jfusion.org/index.php/docs
-
Now configure the plugin. Read the next section in these docs for more information on this. Please use the wizard the first time you setup the Wordpress plugin.
-
Note: Setting up the cookie domain and path is the tricky stuff, for our simple setup you should leave them empty, if you have added the above lines to the configuration file then use the cookie domain and path you used there. The plugin wizard is smart enough to present you with the proper defaults. Do not chnage then yet.
-
Remember you have to save the plugins setup first and start editing it again to be able to set the usergroup parameters. This is because JFusion knows how to access eFronts database only after the first save.
-
set Joomla as Master and Wordpress as Slave.
-
By now jFusion starts complaining about Wordpress needing to have userregistration disabled because it's a slave. This will stop once we made it a master. If you want to leave Wordpress the slave, just disable user registration in Wordpress and JFusion will stop complaining. Ignore the warning at this stage.
-
USE SIMPLE USERGROUP SYNC! We can go into the advanced mode later. Keeps things simple to get it working.
-
DO NOT PERFORM THE USERSYNC!
-
At the end you may choose to have Wordpress as Master and Joomla as slave, BUT FIRST SET JOOMLA AS MASTER AND EFRONT AS SLAVE! We need this to keep the tests simple and prevent us from Joomla's admin being locked out.
-
OK, so far so good. Now do the final checks.
-
First the loginchecker. Create a new user in Joomla using Joomla's admin panel. Now use this new users credentials with the loginchecker..If the Loginchecker shows all is OK, create another tab in your browser and open the Wordpress homepage. You should be logged into Wordpress. If you use an already existing tab, refresh the page to see that you are logged in.
-
Test the logout routine in the same way.
-
If all is correct, Enable JFusion (follow the doc)
-
Now, again, create a new Joomla user using Joomla's admin panel. You should get a message that the user is created in Wordpress as well. Great isn't it?. To be absolutely sure go to Wordpresss admin to see if the new user is really there.
-
Go to Joomla's admin panel and delete the user you just tested. If you have user deletion enabled in the Wordpress plugin settings, the user should now being deleted in Wordpress as well.
-
Now go to Joomla's frontend and login using a valid Joomla user. Test if you are logged in. OK? Test logout.
-
Correct? Make Joomla slave and Wordpresss Master and repeat the previous step
-
All OK? Congratulations you have successfully setup Jfusion with a Wordpress integration.
-
You may want to enable JFusions login module. The Wordpress plugin supports this.
-
For more documentation see our Wiki.