The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Quick question on Users Awaiting Moderation customization
I am currently in the process of customizing the "Users Awaiting Moderation" in the admincp where it lists the users User Name, Email, and IP.
I am in the process of adding a couple of fields on it and stuck on the Age portion. I looked in the postbit to grab and show you what I'm looking for. In this portion of code HTML Code:
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if> I can't get the age to show up. So far, I have this in my admincp/user.php file PHP Code:
Thanks It's probably something obvious I'm looking over. It's late and I can't think clearly |
#2
|
|||
|
|||
its probably not $post['age'] its most likely something like $post['field2']
|
#3
|
||||
|
||||
No, because field2 is location
|
#4
|
||||
|
||||
$post['age'] is referring to the 'age' field of the user table.
|
#5
|
||||
|
||||
Yeah, I kinda figured that. But how do I get the age to show up? What do I need to add and where?
|
#6
|
||||
|
||||
You need to query the database to retrieve the field.
|
#7
|
||||
|
||||
Ok, what do I need to add and where? I'm not very experienced with PHP or MySQL queries. Thanks for your responses
|
#8
|
||||
|
||||
What do you currently have as your query with $users as the variable?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|