-define('__BEG_UID' , $uid);
-define('__BEG_CLICKS' , $clicks);
-define('__BEG_POINTS' , TRANSLATE_COMMA(getConfig('beg_points')));
-define('__BEG_POINTS_MAX', TRANSLATE_COMMA(getConfig('beg_points_max')));
-
-if (function_exists('CREATE_FANCY_TIME'))
-{
- define('__BEG_TIMEOUT' , CREATE_FANCY_TIME(getConfig('beg_timeout')));
- define('__BEG_UID_TIMEOUT', CREATE_FANCY_TIME(getConfig('beg_uid_timeout')));
-}
- else
-{
- define('__BEG_TIMEOUT ' , round(getConfig('beg_timeout') / 60)." ".MINUTES);
- define('__BEG_UID_TIMEOUT', round(getConfig('beg_uid_timeout') / 60)." ".MINUTES);
+// @TODO Can't this be moved into EL?
+if ((isExtensionActive('nickname')) && (getUserData('nickname') != '')) {
+ // Get nickname
+ $content['userid'] = getUserData('nickname');
+} else {
+ // Get userid
+ $content['userid'] = getMemberId();