-define('__CHARGE_VALUE', TRANSLATE_COMMA(getConfig('doubler_charge') * 100));
-define('__REF_VALUE' , TRANSLATE_COMMA(getConfig('doubler_ref') * 100));
-define('__TOTAL_VALUE' , TRANSLATE_COMMA(getConfig('doubler_points')));
-define('__MIN_VALUE' , TRANSLATE_COMMA(getConfig('doubler_min')));
-define('__MAX_VALUE' , TRANSLATE_COMMA(getConfig('doubler_max')));
+$content['charge'] = translateComma(getConfig('doubler_charge') * 100);
+$content['ref'] = translateComma(getConfig('doubler_ref') * 100);
+$content['total'] = translateComma(getConfig('doubler_points'));
+$content['min'] = translateComma(getConfig('doubler_min'));
+$content['max'] = translateComma(getConfig('doubler_max'));
+
+// Default refid is the userid
+$content['userid'] = getUserId();