MyBB Community Forums

Full Version: Testers needed for MyBB+Jfusion plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I've just finished developing a first version of a plugin to enable double login between joomla and MyBB and I need someone helping me in testing it.
It's still an alpha, so please test it only on local host or testing sites, I don't take any responsability for any kind of damage it could take to your site.

I've tested only on my own setup and it seems to work correctly.
It still does not take care of Joomla session when you logout from MyBB but I will fix it soon.

I decided to import some joomla framework file in the hope that if some method will be updated in the future the plugin would still work correctly.

I'm a newbie both in Joomla and MyBB developing, any suggestion, correction or else is welcome.

If you want to contribute you are welcome too.

Assumption:
  • MyBB is in a subfolder of your site (i.e. /forum/ )
  • You have Joomla 1.7+ and MyBB 1.6+ installed
  • JFusion 1.6 is installed and working properly in one way login
    (i.e. When you login/logout using joomla everything works fine.
    If you login within Joomla and logout from MyBB the user remains logged into joomla.
    If you login into MyBB the user is logged in only in MyBB.)

Installation
For installation uplod jfusion.php file attached to http://www.yoursite.com/MyBBroot/inc/plugins/
Go to control panel and select "activate"
More than happy to start testing this tonight.
I assume Joomla has to be set as master?
Yes, I have tested it only in this way!
Not to dampen your spirits, but isn't there already a MyBB plugin for JFusion?
Yes, there is a plugin written for JFusion that allow one way authentication (see my first post for more info), this is a plugin written for MyBB to complete the job (allowing in this way the other way authentication)
great to see someone finally working on this..... hoping for stable release soon Big Grin
(2012-02-14, 05:02 PM)x-Treme Wrote: [ -> ]More than happy to start testing this tonight.
I assume Joomla has to be set as master?

X-Treme, how your tests go?
Does auth work?
I've no need for this, but congrats for working on that Smile

I've downloaded it to take a look, a few notes:
- _JREQUEST_NO_CLEAN constant tells Joomla to not clean global vars
see http://docs.joomla.org/Framework_Compatibility
- logout_joomla() shouldn't clear all cookies, only joomla ones
- why you have the following lines of code in the source? normal user could have an empty user agent for some reason
			// Ignore empty and crackish user agents
			if ($agent != '' && $agent != 'JLOGIN_REMEMBER') 
Sorry for the late answer.

Sorry for the late answer, but I've found a new job and have so little time to work on this plugin

(2012-02-28, 04:44 PM)dvb Wrote: [ -> ]I've downloaded it to take a look, a few notes:
- _JREQUEST_NO_CLEAN constant tells Joomla to not clean global vars
see http://docs.joomla.org/Framework_Compatibility

Thanks Smile
Quote:- logout_joomla() shouldn't clear all cookies, only joomla ones

You are right: I need to clean Joomla's cookie for the domain but I can't understand how Joomla decide the name of the cookie, so I don't know hot to delete only them.
Quote:- why you have the following lines of code in the source? normal user could have an empty user agent for some reason
			// Ignore empty and crackish user agents
			if ($agent != '' && $agent != 'JLOGIN_REMEMBER') 

It was in Joomla code, in application.php file, it wasn't clear also to me.
See it here: http://joomlacode.org/gf/project/joomla/...iew=markup
BTW it has been removed from version 2.5, so I'll do the same

Warning [2] require_once(/home/htcpl/domains/centrumhtc.pl/public_html/libraries/import.php) [function.require-once]: failed to open stream: No such file or directory - Line: 29 - File: inc/plugins/jfusion.php PHP 5.2.17 (Linux)
Pages: 1 2