Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: profile_fields.php 5748 2012-03-09 11:49:19Z Tomm $
| * $Id$
|
*/
// Disallow direct access to this file for security reasons
| */
// Disallow direct access to this file for security reasons
|
Zeile 191 | Zeile 191 |
---|
if(!$errors) {
|
if(!$errors) {
|
$profile_field = array(
| $updated_profile_field = array(
|
"name" => $db->escape_string($mybb->input['name']), "description" => $db->escape_string($mybb->input['description']), "disporder" => intval($mybb->input['disporder']),
| "name" => $db->escape_string($mybb->input['name']), "description" => $db->escape_string($mybb->input['description']), "disporder" => intval($mybb->input['disporder']),
|
Zeile 204 | Zeile 204 |
---|
"postnum" => intval($mybb->input['postnum']) );
|
"postnum" => intval($mybb->input['postnum']) );
|
$db->update_query("profilefields", $profile_field, "fid = '".intval($mybb->input['fid'])."'");
| $db->update_query("profilefields", $updated_profile_field, "fid = '".intval($mybb->input['fid'])."'");
|
$plugins->run_hooks("admin_config_profile_fields_edit_commit");
| $plugins->run_hooks("admin_config_profile_fields_edit_commit");
|
Zeile 274 | Zeile 274 |
---|
echo '<script type="text/javascript" src="./jscripts/peeker.js"></script> <script type="text/javascript"> Event.observe(window, "load", function() {
|
echo '<script type="text/javascript" src="./jscripts/peeker.js"></script> <script type="text/javascript"> Event.observe(window, "load", function() {
|
var maxlength_peeker = new Peeker("fieldtype", "row_maxlength", /text|textarea/); var fieldlength_peeker = new Peeker("fieldtype", "row_fieldlength", /select|multiselect/); var options_peeker = new Peeker("fieldtype", "row_options", /select|radio|checkbox/);
| var maxlength_peeker = new Peeker($("fieldtype"), $("row_maxlength"), /text|textarea/); var fieldlength_peeker = new Peeker($("fieldtype"), $("row_fieldlength"), /select|multiselect/); var options_peeker = new Peeker($("fieldtype"), $("row_options"), /select|radio|checkbox/);
|
// Add a star to the extra row since the "extra" is required if the box is shown add_star("row_maxlength"); add_star("row_fieldlength");
| // Add a star to the extra row since the "extra" is required if the box is shown add_star("row_maxlength"); add_star("row_fieldlength");
|