1
brunobee
no result for some fields in admin findusers form
  • 2004/2/6 16:03

  • brunobee

  • Just popping in

  • Posts: 4

  • Since: 2004/2/6 1


I am using the 2.0.5.2 XOOPS version and I realized that I can't obtain any result when searching for user_url, user_from, user_intrst or user_occ criterias (others fields are working properly) in the system\admin\findusers\main.php page. Is it a bug

2
brunobee
Re: no result for some fields in admin findusers form
  • 2004/2/11 8:44

  • brunobee

  • Just popping in

  • Posts: 4

  • Since: 2004/2/6 1


I confirm that I'm not the only one to have got the same problem...
I have upgraded to the 2.0.6 version and it doesn't change anything. I confirm that I'm talking about the findusers function in the admin system module. Is there anybody that found the solution? (I suppose in the findusers\main.php page)

3
winsion
Re: no result for some fields in admin findusers form
  • 2004/2/12 5:31

  • winsion

  • Just popping in

  • Posts: 55

  • Since: 2003/11/23


I corrected the file, you can find it to
http://membres.lycos.fr/winsion/modules/mydownloads/

4
brunobee
Re: no result for some fields in admin findusers form
  • 2004/2/12 15:15

  • brunobee

  • Just popping in

  • Posts: 4

  • Since: 2004/2/6 1


Apparently your modif is only concerning the user_url field (line 206 of findusers/main.php) but doesn't solve the pb

5
brunobee
Re: no result for some fields in admin findusers form
  • 2004/2/12 16:24

  • brunobee

  • Just popping in

  • Posts: 4

  • Since: 2004/2/6 1


In fact the solution is to modify the lines concerned in the findusers/main.php page according to the following presentation:
case XOOPS_MATCH_START:
$criteria->add(new Criteria('user_fieldx', $myts->addSlashes(trim($HTTP_POST_VARS['user_fieldx'])).'%', 'LIKE'));
break;
case XOOPS_MATCH_END:
$criteria->add(new Criteria('user_fieldx', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['user_fieldx'])), 'LIKE'));
break;
case XOOPS_MATCH_EQUAL:
$criteria->add(new Criteria('user_fieldx', $myts->addSlashes(trim($HTTP_POST_VARS['user_fieldx']))));
break;
case XOOPS_MATCH_CONTAIN:
$criteria->add(new Criteria('user_fieldx', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['user_fieldx'])).'%', 'LIKE'));
break;
(which was not previously the case)

Login

Who's Online

287 user(s) are online (100 user(s) are browsing Support Forums)


Members: 0


Guests: 287


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits