?> ); "><?php echo $temp_avatar_title; ?> </div> <a class="back">◄</a> <a class="next">►</a> </div> <textarea class="textarea" name="post_body" rows="10"><?php echo $temp_post_body; ?> </textarea> </div> <div class="field field_post_info" style="clear: left; overflow: hidden; font-size: 11px;"> <?php echo rpg_website::formatting_help(); ?> </div> <?php // Define the current maxlength based on board points $temp_maxlength = MMRPG_SETTINGS_DISCUSSION_MAXLENGTH; if (!empty($this_boardinfo['board_points']) && ceil($this_boardinfo['board_points'] / 1000) > MMRPG_SETTINGS_DISCUSSION_MAXLENGTH) { $temp_maxlength = ceil($this_boardinfo['board_points'] / 1000); } ?> <div class="buttons buttons_active" data-submit="<?php echo !empty($_REQUEST['post_id']) ? 'Edit' : 'Post'; ?> Comment"> <label class="counter"><span class="current">0</span> / <span class="maximum"><?php echo $temp_maxlength;
if (empty($this_fields_index[$omega_info['field']])) { continue; } $robot_info = $mmrpg_database_robots[$omega_info['robot']]; $field_info = $this_fields_index[$omega_info['field']]; $html_background_options[] = '<option value="fields/' . $field_info['field_token'] . '">' . $field_info['field_name'] . (!empty($field_info['field_type']) ? ' (' . ucfirst($field_info['field_type']) . ' Type)' : '') . '</option>'; } } $html_background_options[] = '</optgroup>'; $temp_select_options = str_replace('value="' . $_SESSION['GAME']['USER']['backgroundpath'] . '"', 'value="' . $_SESSION['GAME']['USER']['backgroundpath'] . '" selected="selected"', implode('', $html_background_options)); $html_form_fields .= '<select class="select select_backgroundpath" style="width: 100%; " name="backgroundpath">' . $temp_select_options . '</select>'; $html_form_fields .= '</div>'; $html_form_fields .= '<div class="field">'; $html_form_fields .= '<label class="label label_profiletext" style="width: 230px; ">Leaderboard Profile :</label>'; $html_form_fields .= '<textarea class="textarea textarea_profiletext" style="width: 98%; height: 250px; " name="profiletext">' . htmlentities(trim(!empty($_SESSION['GAME']['USER']['profiletext']) ? $_SESSION['GAME']['USER']['profiletext'] : ''), ENT_QUOTES, 'UTF-8', true) . '</textarea>'; $html_form_fields .= rpg_website::formatting_help(); $html_form_fields .= '</div>'; // Update the form markup buttons $html_form_buttons .= '<input class="button button_submit" type="submit" value="Save Changes" />'; //$html_form_buttons .= '<input class="button button_reset" type="button" value="Reset Game" onclick="javascript:parent.window.mmrpg_trigger_reset();" />'; //$html_form_buttons .= '<input class="button button_cancel" type="button" value="Cancel" onclick="javascript:parent.window.location.href=\'prototype.php\';" />'; // If the file has been updated, update the data if ($file_has_updated) { // Update the form messages markup text $html_form_messages .= '<span class="success">(!) Thank you. Your profile changes have been saved.<br />Save Date : ' . date('Y/m/d @ H:i:s') . '.</span>'; // Clear the form fields markup //$html_form_fields = '<script type="text/javascript"> setTimeout(function(){ window.location.href=\''.MMRPG_CONFIG_ROOTURL.'\'; }, 1000); </script>'; // Update the form markup buttons //$html_form_buttons = '<input class="button button_continue" type="button" value="Continue" onclick="javascript:window.location.href=\''.MMRPG_CONFIG_ROOTURL.'\';" />'; // Save the messages to the session and refresh $_SESSION['mmrpg_form_messages'] = $html_form_messages;