FrontEnd Users

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Slewey
Forum Members
Forum Members
Posts: 21
Joined: Fri Feb 16, 2007 1:05 pm

FrontEnd Users

Post 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
:)
cyberman

Re: FrontEnd Users

Post by cyberman »

Slewey
Forum Members
Forum Members
Posts: 21
Joined: Fri Feb 16, 2007 1:05 pm

Re: FrontEnd Users

Post 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?
cyberman

Re: FrontEnd Users

Post by cyberman »

Which CMSms version do you are using?
Slewey
Forum Members
Forum Members
Posts: 21
Joined: Fri Feb 16, 2007 1:05 pm

Re: FrontEnd Users

Post 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
Last edited by Slewey on Wed Jun 13, 2007 7:45 pm, edited 1 time in total.
jimmyb
Forum Members
Forum Members
Posts: 35
Joined: Wed Sep 20, 2006 12:40 pm

Re: FrontEnd Users

Post by jimmyb »

Has anyone found a resolution for this?

Getting the same problem using 1.07
junito
Forum Members
Forum Members
Posts: 28
Joined: Fri Oct 27, 2006 5:07 pm

Re: FrontEnd Users

Post 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;
  }
Slewey
Forum Members
Forum Members
Posts: 21
Joined: Fri Feb 16, 2007 1:05 pm

Re: FrontEnd Users

Post 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..
Post Reply

Return to “Modules/Add-Ons”