Page 1 of 1
FrontEnd Users
Posted: Wed Jun 13, 2007 10:14 am
by Slewey
Hi,
I'm looking for something to show a list of the registerred users from FrontEnd Users in public.
If it's possible with some ordering system, order by Name, etc
Is there an extra mod for this or do I need to make this myself?
Thanks

Re: FrontEnd Users
Posted: Wed Jun 13, 2007 10:31 am
by cyberman
Re: FrontEnd Users
Posted: Wed Jun 13, 2007 1:38 pm
by Slewey
Already tried it, looks great! Thanks
One problem tho, I'm getting the following error;
Warning: uasort() [function.uasort]: Invalid comparison function. in ..\wwwroot\site\modules\FrontEndUserListing\FrontEndUserListing.module.php on line 206
Any idea's? What am I doing wrong?
Re: FrontEnd Users
Posted: Wed Jun 13, 2007 1:42 pm
by cyberman
Which CMSms version do you are using?
Re: FrontEnd Users
Posted: Wed Jun 13, 2007 7:30 pm
by Slewey
According to the footer at the admin section: 1.05
Just noticed i'm getting a fatal error aswell, at the details page;
Fatal error: Call to undefined function: array_merge_by_name_required() in ..\wwwroot\site\modules\FrontEndUserListing\FrontEndUserListing.module.php on line 327
Re: FrontEnd Users
Posted: Tue Jun 19, 2007 12:13 am
by jimmyb
Has anyone found a resolution for this?
Getting the same problem using 1.07
Re: FrontEnd Users
Posted: Wed Jun 20, 2007 4:52 pm
by junito
Hi
I've just had the same problem...
and I found the array_merge_by_name_required() function in the functions.php in FrontEndUsers module script.
I finally just copy/pasted the following script into FrontEndUserListing.module.php and now everything is OK!
function array_merge_by_name_required( $arr1, $arr2 )
{
$xxresult = array();
// add items common to arr1 and arr2
// but favor required items
if( !is_array( $arr1 ) || !is_array( $arr2 ) )
{
return;
}
foreach( $arr1 as $a1 )
{
foreach( $arr2 as $a2 )
{
if( $a1['name'] == $a2['name'] )
{
if( $a1['required'] == 2 )
{
array_push( $xxresult, $a1 );
break;
}
else
{
array_push( $xxresult, $a2 );
break;
}
}
}
}
// add items in arr1 not in result
foreach( $arr1 as $a1 )
{
$found = false;
foreach( $xxresult as $res )
{
if( $a1['name'] == $res['name'] )
{
$found = true;
break;
}
}
if( !$found )
{
array_push( $xxresult, $a1 );
}
}
// add items in arr2 not in result
foreach( $arr2 as $a2 )
{
$found = false;
foreach( $xxresult as $res )
{
if( $a2['name'] == $res['name'] )
{
$found = true;
break;
}
}
if( !$found )
{
array_push( $xxresult, $a2 );
}
}
return $xxresult;
}
Re: FrontEnd Users
Posted: Sun Jul 01, 2007 7:16 pm
by Slewey
Hi,
I'm still getting errors on the FEU Listing
On the list
Warning: uasort() [function.uasort]: Invalid comparison function. in ..\wwwroot\site\modules\FrontEndUserListing\FrontEndUserListing.module.php on line 206
and on the detail page;
Fatal error: Call to undefined function: array_merge_by_name_required() in ..\wwwroot\site\modules\FrontEndUserListing\FrontEndUserListing.module.php on line 327
I've already tried to copy/paste that function from junito into the modules.php but no result.
Also tried some different versions and other hosts.
All without any result.
Hope someone can help me out here..