It's Friday - what a day to visit jfoobar!

Jfoobar Labs

At jfoobar labs you will find "stuff" that is either cool, useful or for learning purposes. We hope to create a pretty nice selection over time. Remember, we need it to be fun.

Phorum module

  • Name: phorum
  • Type: Phorum module
  • Compatible: Phorum 5.2+
  • Last update: 2009-02-13
  • Copyright: moovum
  • License: GPL 2.0

This is a Phorum module extension (so not a Joomla! module!) that enables bi-directional user management and also bi-directional single sign on between your Joomla! and your Phorum installation.

Along with the Joomla! plugin it provides the following logic:

  • Bi-directional user login and logout. This means that when a user logs into Joomla, it also logs you into Phorum. This also works the other way around, logging into Phorum will log you into Joomla. Logout logic works the same.
  • Bi-directional user management. When you create/update/delete a user in Joomla! it will be also created in Phorum. Only those fields that are used in both systems will be used (obviously). The same logic works also from within Phorum, a password change will also be implemented in Joomla (as with change of username and mail address).
  • New user registration logic of Phorum also works towards Joomla! The user account will only be accessible from within Joomla! after the user has confirmed the registration mail (if configured).

To install the phorum module, just unpack the zipfile, configure and enable. The only fields you need are the absolute path to the Joomla! installation, and a default group assignment for new users within Joomla!

To have it all working, you also need to upgrade the Joomla plugin to version 1.1. If you use the 1.0 version, you will suffer a login/user update recursion problem.

Please read the detailed instructions before you start using this Phorum module.

To use this Phorum module you first need to install it. Just unzip the package, install it in the Phorum module directory, configure it and as last step enable the module. During configuration you only need to configure two settings:

  • Absolute path to your Joomla! installation. Make sure this path is set properly, else you could end up with a non working Phorum installation.
  • Default user access level. These are the Joomla! user groups that are defined by default. Make sure you don't set this to a high access level...all your new user will then be able to manage the Joomla! site!

There are 1 comments posted.

Re: Recursion problem with rglob and circular symlinks

# 1 - Posted by: Sean Phelan on 2009-04-07 03:32:48

I rewrote the rglob function in settings.php to handle circular symlinks.

In short, I keep a list of processed realpath directories, and don't process the same one twice.

This cuts off circular symlinks.

----------

function rglob($pattern='*', $flags = 0, $path='', $asaPathsProcessed = array())

{

echo "PATH=$path"; #dbg

$paths=glob($path.'*', GLOB_MARK|GLOB_ONLYDIR|GLOB_NOSORT);

$files=glob($path.$pattern, $flags);

foreach ($paths as $path)

{

$realpath = realpath($path);

echo "REALPATH=$realpath";

if (!$asaPathsProcessed[$realpath] )

{

$asaPathsProcessed[$realpath] = 1;

$files=array_merge($files,rglob($pattern, $flags, $path, $asaPathsProcessed));

}

}

return $files;

}

Help for creating beautiful comments.

Enter Your Details:
Enter Your Comments:
I'm finished with the form Your form will be checked and you'll get a preview.
moovur promo

JFoobar friends on Twitter

Follow JFoobar on twitter

Sponsored Links

Latest Comments

Aaron wrote:
2009-12-23 13:19:22 - Genius! Thanks, Wilco. I've been dying to take .
Posted in How to downlo .
Amy Stephen wrote:
2009-12-22 18:39:37 - Happy Birthday to one of Joomla!'s most noble - .
Posted in Mister Joomla .
Antonie de Wilde wrote:
2009-12-22 09:30:26 - Congrats Robin. Have a good day and watch out w .
Posted in Mister Joomla .
Robert wrote:
2009-12-22 08:51:02 - Happy Birthday Robin .
Posted in Mister Joomla .
Arno wrote:
2009-12-22 08:43:28 - Happy Birthday Robin, love your suit, you wife .
Posted in Mister Joomla .
Brian Teeman wrote:
2009-12-22 00:17:41 - Happy Birthday Robin, Welcome to the big four oh .
Posted in Mister Joomla .