XinSpace

SharePoint, Drupal and Other Random Notes

Browsing the topic Drupal

echo 1 > /proc/sys/xen/independent_wallclock
ntpdate -b pool.ntp.org
Should detaching from the wallclock resolve this issue, you can make this change permanent by adding the following line to your “/etc/sysctl.conf” file:
xen.independent_wallclock=1
Thanks to Danny@linode

Tagged with , ,

if you need access other fields in your field template, you can access them by
<?
echo $row->{$view->field['FIELD_ID']->field_alias};
?>
You will be able to add some logic to your template like
<?
if($row->{$view->field[field_B_value]->field_alias})
{
echo $output  ;
}
else
{
echo “B is not available”;
}
?>
Note the ‘FIELD_ID’ can be something different depending on the field type. it can be “field_B_nid” (if it is node reference), or “field_B_value” [...]

Tagged with , ,

use the following before you start your query
mysql_query(“SET CHARACTER SET utf8″, $connection);

Tagged with ,