![]() |
[Solved] Add Custom Profile Fields to New User Moderation
How would I go about getting the info from custom profile fields. I dont believe they are global variables and I know they are in a different table than the 'users' table thats being displayed on this page. They are in userfields. How would I go about making a query for these 2 Custom Profile Fields I need on this /admincp/user.php?do=moderate page.
Code:
print_form_header('user', 'domoderate'); print_table_header($vbphrase['users_awaiting_moderation'], 4); |
I think what you'd do is change the query at the top of that section to be like this (parts in red added):
Code:
$users = $db->query_read(" then you should be able to use $user[fieldX] where X is the id of your custom field. |
Thank you for your response, although that code is still showing blanks in the box.
My current code with your editted query. Code:
if ($_REQUEST['do'] == 'moderate') |
Sorry, my mistake - you also have to add the userfield fields to the list of fields, like:
Code:
$users = $db->query_read(" |
You, Sir, are a god.
Thank you very much this will help me exponentially. |
All times are GMT. The time now is 03:58 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|