Profile View -- fields with values not showing -- work around
In File base/scripts/BxBaseProfileView.php
In this Function collectProfileFieldsByCateg( $categ )
code change :
PHP Code:
if ( $categ > 0)
{
if( is_numeric( $aField['name'] ) and (int)$aField['name'] == $categ )
{
$doCollect = true; //begin collect fields
continue;
}
if( !$doCollect )
continue; //do not collect
if( is_numeric( $aField['name'] ) )
break; //stop collect fields
}
It should look like this :
PHP Code:
function collectProfileFieldsByCateg( $categ )
{
$rFields = db_res( "SELECT * FROM `ProfilesDesc` WHERE `visible` AND ( FIND_IN_SET('0',show_on_page) OR FIND_IN_SET('7',show_on_page) ) ORDER BY `order`" );
$aFields = array();
$doCollect = false;
while( $aField = mysql_fetch_assoc( $rFields ) )
{
if ( $categ > 0)
{
if( is_numeric( $aField['name'] ) and (int)$aField['name'] == $categ )
{
$doCollect = true; //begin collect fields
continue;
}
if( !$doCollect )
continue; //do not collect
if( is_numeric( $aField['name'] ) )
break; //stop collect fields
}
$aFields[] = $aField; //do collect
}
return $aFields;
}
Bookmarks