DevFuse Forums: Require help with Custom Field code calling. - DevFuse Forums

Jump to content

View All ProductsRandom Products

Logo View

Random Logos



IP.Board: IPB 3.0.x
Price: $ 14.95
Main Page

Contact System



IP.Board: IPB 3.0.x
Price: $ 21.95
Personal Message

Auto Birthday Greeter



IP.Board: IPB 3.0.x
Price: $ 10.95
Main Page

Garage System



IP.Board: IPB 3.0.x
Price: $ 32.95
Manage Calendars

Calendar Topics



IP.Board: IPB 3.0.x
Price: $ 9.95
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic
  • Bookmark

Require help with Custom Field code calling.

#1 User is offline   theorginaldude 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 07-February 10
  • 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 :)
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic
  • Bookmark

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users