1
Arowana
Error in Find Users 2.2.3a
  • 2005/12/6 0:41

  • Arowana

  • Friend of XOOPS

  • Posts: 323

  • Since: 2004/8/6 2


ok i have this great site up on 2.2.3a and it seems to be running pretty smooth.

I did notice today when I did a find users in the admin section is listed all the users like I wanted it to BUT the display name and the user name are being displayed as the same.

Really it looks like the display name is correct the user name is wrong and displays the display name. make sense?

I am sure it a simple variable someone over looked, but how do I fix it?

Thank you
Arowana

2
Dave_L
Re: Error in Find Users 2.2.3a
  • 2005/12/6 13:03

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


It currently displays the username (the users.uname database column) twice, which I agree is probably a mistake.

There are three names: login name, username, and real name. I'm not sure which of the two it's supposed to display, and in which columns on that page.

The code that handles that is in modules/system/admin/findusers/main.php, starting at line 252. The code is a bit hard to read.

getVar("uname") gets the username. getVar("name") would get the real name, and getVar("loginname") would get the login name.

I suspect this code is left over from the split-off of the profiles module in 2.2.x, and was never updated.

3
Arowana
Re: Error in Find Users 2.2.3a
  • 2005/12/6 16:43

  • Arowana

  • Friend of XOOPS

  • Posts: 323

  • Since: 2004/8/6 2


Thanks Dave, but i added this code and I get the same result:
$fuser_name $foundusers[$j]->getVar("loginname") ? $foundusers[$j]->getVar("uname") : " ";


This of course is line 252
Arowana

4
Arowana
Re: Error in Find Users 2.2.3a
  • 2005/12/6 16:56

  • Arowana

  • Friend of XOOPS

  • Posts: 323

  • Since: 2004/8/6 2


ok played with it some more and at first the login name and display name were reversed so I changed a few lines of code.

Instead of posting the code changes I put it into a zip file and anyone can download from our site without registering. PLEASE rename or save your old file before uploading this file. I dont know if this is what you would want but I know this is the way it was meant to be.

Click Here to get your file

Thanks Dave!
Arowana

5
ne0nguy
Re: Error in Find Users 2.2.3a
  • 2006/1/1 19:09

  • ne0nguy

  • Just popping in

  • Posts: 20

  • Since: 2005/9/20


I don't think it's really necessary to replace all those files

Is there a simpler way?

I have a whole bunch of files tweaked on my site and i cant just replace every one of them.
Which ones are the important ones to replace?
or is there a simple code to put somewhere?

Login

Who's Online

424 user(s) are online (316 user(s) are browsing Support Forums)


Members: 0


Guests: 424


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