How to fix the Before & After Button with your "Directory" plugin

The issue is pretty simple to fix.
Open your "DirectoryPlugin.php".

Your code should look like this:


function onRouterInitialized($m)

{

$m->connect(

'directory/users',

array('action' => 'userdirectory'),

);

$m->connect(

'directory/users/:filter',

array('action' => 'userdirectory'),

array('filter' => '([0-9a-zA-Z_]{1,64}|0-9)')

);

return true;

You just have to add "/all" on this line of code:

'directory/users/all',


If you use a group it's the same.

$m->connect(

'groups/:filter',

array('action' => 'groupdirectory'),

array('filter' => '[0-9a-zA-Z]|(0-9)')

);

$m->connect(

'groups',

array('action' => 'groupdirectory')

);

Just rewrite it to:

'groups/all',


The buttons "Before" & "After" should now work properly.


Regard,

Tinram
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID