Jump to content


View All ProductsRandom Products

Recent Comments

Videos System



IP.Board: IPB 3.2.x
Price: $ 29.95
News Main Page

News System



IP.Board: IPB 3.2.x
Price: $ 15.95
Add Custom Field

Contact System



IP.Board: IPB 3.2.x
Price: $ 21.95
Manage Donation Settings

Donation Tracker



IP.Board: IPB 3.2.x
Price: $ 35.00
Birthday PM

Auto Birthday Greeter



IP.Board: IPB 3.2.x
Price: $ 10.00

Require help with Custom Field code calling.


  • You cannot reply to this topic
No replies to this topic

#1 theorginaldude

    Newbie

  • Members
  • Pip
  • 1 posts
  • IP.Board Version:IPB 2.3.x
  • First Name:Cake

Posted 07 February 2010 - 06:32 PM

Hello.

I have added a collumn to the 'Manage Validating' table in the Admin CP. And i would like it to show the data a user selects from a custom field drop down box during registration.


I know i have to add the code here (i think):
//===========================================================================
// Member: validating
//===========================================================================
function member_validating_row( $r="" ) {
$IPBHTML = "";
//--starthtml--//

$IPBHTML .= <<<EOF
<tr>
  <td class='tablerow2'><a href='{$this->ipsclass->vars['board_url']}/index.php?showuser={$r['id']}'><strong>{$r['members_display_name']}</strong></a>{$r['_coppa']}<div class='desctext'>IP: <a href='{$this->ipsclass->base_url}&section=content&act=mtools&code=learnip&ip={$r['ip_address']}'>{$r['ip_address']}</a></div></td>
  <td class='tablerow1'>{$r['email']}</td>
  <td class='tablerow1'><span style='color:green'>{$r['_where']}</span><br />{$r['_entry']}<div class='desctext'>{$r['_days']} days and {$r['_rhours']} hours ago</div></td>
  <td class='tablerow1' align='center'>{$r['posts']}</td>
  <td class='tablerow1'>{$r['_joined']}</td>																
  <td class='tablerow1' align='center'><input type='checkbox' id="mid_{$r['member_id']}" name='mid_{$r['member_id']}' value='1' /></td>
</tr>
EOF;

//--endhtml--//
return $IPBHTML;
}

And that it must be:
<td class='tablerow1' align='center'>some code goes here</td>

And that the custom field is:
cm_field_8


I just dont know how to add the code that will call the data for that custom field.

Any help would be great!
Thank you :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users