<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
if ($profile_method == "input") {
// Create the input field for registration and edit profile
echo "<tr>\n";
echo "<td class='tbl'>".$locale['uf_ma1'].":</td>\n";
echo "<td class='tbl'><input type='text' name='user_ma1' value='".(isset($user_data['user_ma1']) ? $user_data['user_ma1'] : "")."' maxlength='30' class='textbox' style='width:200px;' /></td>\n";
echo "</tr>\n";
} elseif ($profile_method == "display") {
// Create the display for the user profile
if ($user_data['user_ma1']) {
echo "<tr>\n";
echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['uf_ma1']."</td>\n";
echo "<td align='right' class='tbl1'>".$user_data['user_ma1']."</td>\n";
echo "</tr>\n";
}
} elseif ($profile_method == "validate_insert") {
// Validate the insert data field & value for our field
$db_fields .= ", user_ma1";
$db_values .= ", '".(isset($_POST['user_ma1']) ? stripinput(trim($_POST['user_ma1'])) : "")."'";
} elseif ($profile_method == "validate_update") {
// Validate the update data value for our field
$db_values .= ", user_skype='".(isset($_POST['user_ma1']) ? stripinput(trim($_POST['user_ma1'])) : "")."'";
}
?>
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
// Field display name
$user_field_name = "When Started?";
// Field Description
$user_field_desc = "";
// The name of the database field used to ADD or DROP
$user_field_dbname = "user_ma1";
// The group the field appears under; 1 = Contact, 2 = Information, 3 = Options and 4 = Statistics
$user_field_group = 2;
// The database properties used when <span style='background-color:yellow;font-weight:bold;padding-left:2px;padding-right:2px'>ADDing</span> the above field
$user_field_dbinfo = "VARCHAR(50) NOT NULL DEFAULT ''";
?>
$db_values .= ", [color=#ff0000]user_skype[/color]='".(isset($_POST['user_ma1']) ? stripinput(trim($_POST['user_ma1'])) : "")."'";
Quote
Digitanium wrote:
CulpritCode Download source$db_values .= ", [color=#ff0000]user_skype[/color]='".(isset($_POST['user_ma1']) ? stripinput(trim($_POST['user_ma1'])) : "")."'";
} elseif ($profile_method == "validate_update") {
// Validate the update data value for our field
$db_values .= ", user_skype='".(isset($_POST['user_ma1']) ? stripinput(trim($_POST['user_ma1'])) : "")."'";
}
?>
Category Forum
User Administration - 8Labels
None yet
Statistics
5 participants
Notifications
You are not receiving notifications from this thread.
Related Questions