Rapunzl wrote:
I believe the formatting is in comprofiler.html.php. Remember to back up first.
Hey Rapunzel -
You are very nice.
Thanks. I looked up the code, but I'm not sure what to do with it. I would like to align the data to the right to provide spacing between the label fields and the data. Currently, the userlist isn't very readable as the formatting is like below:
Name: Glen
Place of business: Orlando
I'm trying to get to look like this:
Name: Glen
Place of Business: Orlando
I'd have no problem doing that in HTML (of course), but I'm at a loss how to do this in the php. Here is the code I think is involved in the generation of the Userlist fields:
function getUserListCell( &$user, &$column, &$fields ) {
global $_PLUGINS;
$html = array();
foreach ( $column->fields as $fieldId ) {
$field = $fields[$fieldId];
$value = $_PLUGINS->callField( $field->type, 'getFieldRow', array( &$field, &$user, 'html', 'none', 'list' ), $field );
if ( $value !== null ) {
$title = '';
if ( $column->captions ) {
$title = '<span class="cbUserListFieldTitle cbUserListFT_' . $field->name . '">'
. $_PLUGINS->callField( $field->type, 'getFieldTitle', array( &$field, &$user, 'html', 'list' ), $field )
. ':'
. '</span> ';
}
// done at db query stage: $oField->params = new cbParamsBase( $oField->params );
$html[] = '<div class="cbUserListFieldLine">'
. $title
. '<span class="cbListFieldCont cbUserListFC_' . $field->name . '">'
. $value
. '</span>'
. '</div>';
}
}
return "\n\t\t\t\t" . implode( "\n\t\t\t\t", $html ) . "\n";
}
Does anyone have a recommended solution for how to improve the alignment?
Thanks,
Glen