Need help finding user info


(Ryan Harris) #1

Can someone point me to the file or helper file that pulls user info? I don’t mind hacking my way through my first Ruby project but just finding the right file is proving to take ages for me.

I have a plugin that takes a custom user field and then displays that value on the user card/profile…well I want it to but I can’t figure out how to query that field. I have the dummy text displaying just fine but I’m going crazy trying to figure out how to get the value of that custom user field from the DB. Sorry for the noob question, this probably should not be someones first Ruby project but as a whole, I’m grateful for the thoroughness of this project and support.


(Sam Saffron) #2

Do you really need a plugin for this?


(Ryan Harris) #3

I should have been more specific. I need to be able to have the user put in a number into that custom field. Then a GET request is made and the users profile is populated with some meta info that that number represents. So if I setup custom user fields that are blank, I just needed to figure out how to show only the specific custom fields I chose. In other words, don’t show the number the user populated, show the result of the GET request.


(Sam Saffron) #4

This is complicated, you don’t want to be doing GET reqs to a third party when random people browse your site unless this is heavily gated.

The simplest solution here is to do the lookups up front and store the resolved value in the custom field and not a custom identifier to the 3rd party. If you must store the identifier in another field and do lookups on a regular basis.