The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Age in User Moderation
Hey Guys,
This forum I'm working on requires all users to be manually approved, so to make this process easier for the Admin, how would I display the Age in the Moderation Area? So I've found this in the admincp/user.php file: Code:
print_cells_row(array( $vbphrase['username'], $vbphrase['email'], $vbphrase['age'], $vbphrase['ip_address'], "<input type=\"button\" class=\"button\" value=\"" . $vbphrase['accept_all'] . "\" onclick=\"js_check_radio(1)\" /> <input type=\"button\" class=\"button\" value=\"" . $vbphrase['delete_all'] . "\" onclick=\"js_check_radio(-1)\" /> <input type=\"button\" class=\"button\" value=\"" . $vbphrase['ignore_all'] . "\" onclick=\"js_check_radio(0)\" />" ), 0, 'thead', -3); while ($user = $db->fetch_array($users)) { $cell = array(); $cell[] = "<a href=\"user.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&u=$user[userid]\" target=\"_user\"><b>$user[username]</b></a>"; $cell[] = "<a href=\"mailto:$user[email]\">$user[email]</a>"; $cell[] = "$user[age]"; $cell[] = "<a href=\"usertools.php?" . $vbulletin->session->vars['sessionurl'] . "do=doips&depth=2&ipaddress=$user[ipaddress]&hash=" . CP_SESSIONHASH . "\" target=\"_user\">$user[ipaddress]</a>"; $cell[] = " <label for=\"v_$user[userid]\"><input type=\"radio\" name=\"validate[$user[userid]]\" value=\"1\" id=\"v_$user[userid]\" tabindex=\"1\" />$vbphrase[accept]</label> <label for=\"d_$user[userid]\"><input type=\"radio\" name=\"validate[$user[userid]]\" value=\"-1\" id=\"d_$user[userid]\" tabindex=\"1\" />$vbphrase[delete]</label> <label for=\"i_$user[userid]\"><input type=\"radio\" name=\"validate[$user[userid]]\" value=\"0\" id=\"i_$user[userid]\" tabindex=\"1\" checked=\"checked\" />$vbphrase[ignore]</label> "; print_cells_row($cell, 0, '', -4); } Any help would be appreciated Cheers, LTC [Refer to pic for clarification] |
#2
|
||||
|
||||
Don't know if this will work or not, but try
$prepared[age] |
#3
|
|||
|
|||
Thank you for the suggestion, however that didn't work
|
#4
|
|||
|
|||
Any help is appreciated.
Cheers, LTC |
#5
|
||||
|
||||
Had to kind of hunt this one down, try
HTML Code:
$birthday[age] |
#6
|
|||
|
|||
Thank you for all your help Redline.
How would I execute a separate query to call it? I tried just putting the above in, but still no luck. Cheers, LTC |
#7
|
|||
|
|||
Any help is appreciated.
Cheers, LTC |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|