+
+// Outputs a 'failed message'
+function registerOutputFailedMessage ($messageId, $extra='') {
+ if (empty($messageId)) {
+ outputHtml('<div class="register_failed">' . $extra . '</div>');
+ } else {
+ outputHtml('<div class="register_failed">{--' . $messageId . '--}' . $extra . '</div>');
+ }
+}
+
+// Run a filter for must-fillout fields
+function FILTER_REGISTER_MUST_FILLOUT ($content) {
+ // Get all fields for output
+ $result = SQL_QUERY("SELECT `field_name`, `field_required` FROM `{?_MYSQL_PREFIX?}_must_register` ORDER BY `id` ASC",
+ __FUNCTION__, __LINE__);
+
+ // Walk through all entries
+ while ($row = SQL_FETCHARRAY($result)) {
+ // Must the user fill out this element?
+ $value = '';
+ if ($row['field_required'] == 'Y') $value = "<span class=\\\"guest_failed\\\"> (*)</span>";
+
+ // Add it
+ $content['must_fillout_'.strtolower($row['field_name']).''] = $value;
+ } // END - while
+
+ // Free memory
+ SQL_FREERESULT($result);
+
+ // Return it
+ return $content;
+}
+