$added = (!SQL_HASZEROAFFECTED());
} else {
// Add points to account
- initReferalSystem();
- $added = addPointsThroughReferalSystem('beg', $userid, $points);
+ initReferralSystem();
+ $added = addPointsThroughReferralSystem('beg', $userid, $points);
}
// Subtract begged points from member account if the admin has selected one
return $added;
}
+//-----------------------------------------------------------------------------
+// Template functions
+//-----------------------------------------------------------------------------
+
+// Outputs points which a member can get
+function doTemplateOutputBegPoints ($templateName, $clear = false) {
+ // Default is not the same
+ $return = '{--BEG_POINTS_MIN_MAX--}';
+
+ // Is min/max points the same?
+ if (getBegPoints() == getBegPointsMax()) {
+ // Is the same, output different message
+ $return = '{--BEG_POINTS_FIXED--}';
+ } // END - if
+
+ // Return message
+ return $return;
+}
+
//-----------------------------------------------------------------------------
// Wrapper functions for ext-beg
//-----------------------------------------------------------------------------