Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Changing what memberlist plugin displays.

One day I plan to add options such as these to an admin interface, but for the time being, you just gotta do it by hand.

Of course, the trick to that is pulling out the information. get_profile_info_keys seems like it should pass you back an array of those values and you can just get them out of there, except I haven’t attempted to use that function and since it doesn’t ask for any information about the user you’re interested in, I don’t know how to tell you to get the information from that seemingly useful function.

Which takes us to my personal favorite method: SQL commands. You’d be searching through the table bbprefix_usermeta (mine is bbpress_usermeta). Setup a SQL call like this:

$result = $bbdb->get_results("SELECT * FROM $bbdb->usermeta WHERE user_id = $id");

where $id is the id of the person you’re interested in and $result is the object that the person’s data will be loaded into.

Then to access the information, you’d simply call it like this (like, for the example of where the user is from):

$result->from

You can echo that to have it printed or whatever you want done with that information. A quick glance at the database tells me that you can call this information (and what it means):

“from” = location

“occ” = occupation

“interest” = interests

“bbpress_title” = the title, custom or default

You’d have to make a subroutine in bb-memberlist.php in the my-plugins directory to get $result, then use the information in memberlist.php.

Sorry I can’t do more for you than this, but I used information from the table I had already gotten results from for ease in my current release. I could have added more stuff, but then some people might not have wanted them plus it’s easy to add or subtract from information users put in when they sign up and blah blah blah…. one day I’ll make it nice via the admin panel, but for now, good luck :)

Skip to toolbar