<?php
$locale['uf_msn'] = "MSN";
$locale['uf_msn_desc'] = "MSN Messenger";
$locale['uf_msn_error'] = "MSN can not be left empty.";
?>
<?php
$locale['uf_business name'] = "Business Name";
$locale['uf_business name_desc'] = "Business Name";
$locale['uf_business name_error'] = "Business Name can not be left empty.";
?>
Quote
Vyper69 wrote:
So with this I would either edit all three .php's or create 3 new ones based on the same format
$locale['402'] = "Name:";
<?php
$locale['uf_msn'] = "MSN";
$locale['uf_msn_desc'] = "MSN Messenger";
$locale['uf_msn_error'] = "MSN can not be left empty.";
?>
<?php
$locale['uf_msn'] = "Business Name";
$locale['uf_msn_desc'] = "Business Name";
$locale['uf_msn_error'] = "Business Name can not be left empty.";
?>
if (!defined("IN_FUSION")) { die("Access Denied"); }
// Version of the user fields api
$user_field_api_version = "1.01.00";
$user_field_name = $locale['uf_msn'];
$user_field_desc = $locale['uf_msn_desc'];
$user_field_dbname = "user_msn";
$user_field_group = 1;
$user_field_dbinfo = "VARCHAR(100) NOT NULL DEFAULT ''";
?>
if (!defined("IN_FUSION")) { die("Access Denied"); }
// Version of the user fields api
$user_field_api_version = "1.01.00";
$user_field_name = $locale['uf_businessname'];
$user_field_desc = $locale['uf_businessname_desc'];
$user_field_dbname = "user_businessname";
$user_field_group = 1;
$user_field_dbinfo = "VARCHAR(100) NOT NULL DEFAULT ''";
?>
echo "<tr>\n";
echo "<td class='tbl".$this->getErrorClass("user_msn")."'><label for='user_msn'>".$locale['uf_msn'].$required."</label></td>\n";
echo "<td class='tbl".$this->getErrorClass("user_msn")."'>";
echo "<input type='text' id='user_msn' name='user_msn' value='".$user_msn."' maxlength='50' class='textbox' style='width:200px;' />";
echo "</td>\n</tr>\n";
echo "<tr>\n";
echo "<td class='tbl".$this->getErrorClass("user_businessname")."'><label for='user_businessname'>".$locale['uf_businessname'].$required."</label></td>\n";
echo "<td class='tbl".$this->getErrorClass("user_businessname")."'>";
echo "<input type='text' id='user_businessname' name='user_businessname' value='".$user_businessname."' maxlength='50' class='textbox' style='width:200px;' />";
echo "</td>\n</tr>\n";
echo "<input type='text' id='user_fax' name='user_fax' value='".$user_fax."' maxlength='50' class='textbox' style='width:200px;' />";
echo "<input type='text' id='user_fax' name='user_fax' value='".$user_fax."' maxlength='1000' class='textbox' style='width:200px;' />";
if (!defined("IN_FUSION")) { die("Access Denied"); }
// Display user field input
if ($profile_method == "input") {
$user_businessdescription = isset($user_data['user_businessdescription']) ? $user_data['user_businessdescription'] : "";
if ($this->isError()) { $user_businessdescription = isset($_POST['user_businessdescription']) ? stripinput($_POST['user_businessdescription']) : $user_businessdescription; }
echo "<tr>\n";
echo "<td class='tbl".$this->getErrorClass("user_businessdescription")."'><label for='user_businessdescription'>".$locale['uf_businessdescription'].$required."</label></td>\n";
echo "<td class='tbl".$this->getErrorClass("user_businessdescription")."'>";
echo "<textarea id='user_businesslocation' name='user_businesslocation' cols='60' rows='5' class='textbox' style='width:295px'>".$user_businesslocation."</textarea><br />\n";
echo "</td>\n</tr>\n";
if ($required) { $this->setRequiredJavaScript("user_businessdescription", $locale['uf_businessdescription_error']); }
// Display in profile
} elseif ($profile_method == "display") {
if ($user_data['user_businessdescription']) {
echo "<tr>\n";
echo "<td class='tbl1'>".$locale['uf_businessdescription']."</td>\n";
echo "<td align='right' class='tbl1'>".hide_email($user_data['user_businessdescription'])."</td>\n";
echo "</tr>\n";
}
// Insert and update
} elseif ($profile_method == "validate_insert" || $profile_method == "validate_update") {
// Get input data
if (isset($_POST['user_businessdescription']) && ($_POST['user_businessdescription'] != "" || $this->_isNotRequired("user_businessdescription"))) {
// Set update or insert user data
$this->_setDBValue("user_businessdescription", stripinput(trim($_POST['user_businessdescription'])));
} else {
$this->_setError("user_businessdescription", $locale['uf_businessdescription_error'], true);
}
}
?>
echo "<input type='text' id='user_businessdescription' name='user_businessdescription' value='".$businessdescription."' maxlength='50' class='textbox' style='width:200px;' />";
echo "<textarea id='user_businesslocation' name='user_businesslocation' cols='60' rows='5' class='textbox' style='width:295px'>".$user_businesslocation."</textarea><br />\n";
Quote
Vyper69 wrote:
i did see a bigger box at registration, and was able to type in many characters, but it will not show up in the profile.
Help Please
} elseif ($profile_method == "display") {
if ($user_data['user_businessdescription']) {
echo "<tr>\n";
echo "<td class='tbl1'>".$locale['uf_businessdescription']."</td>\n";
echo "<td align='right' class='tbl1'>".hide_email($user_data['user_businessdescription'])."</td>\n";
echo "</tr>\n";
}
echo "<td align='right' class='tbl1'>".hide_email($user_data['user_businessdescription'])."</td>\n";
echo "</tr>\n";
echo "<td align='right' class='tbl1'>".$user_data['user_businessdescription']."</td>\n";
echo "</tr>\n";
<?php
$locale['uf_test'] = "Test";
$locale['uf_msn_desc'] = "Test";
$locale['uf_msn_error'] = "Test can not be left empty.";
$locale['uf_test1'] = "Test1";
$locale['uf_test1_desc'] = "Test1";
$locale['uf_test1_error'] = "Test1 can not be left empty.";
$locale['uf_test2'] = "Test2";
$locale['uf_test2_desc'] = "Test2";
$locale['uf_test2_error'] = "Test2 can not be left empty.";
?>
if (!defined("IN_FUSION")) { die("Access Denied"); }
// Display user field input
if ($profile_method == "input") {
$user_test = isset($user_data['user_test']) ? $user_data['user_test'] : "";
if ($this->isError()) { $user_test = isset($_POST['user_test']) ? stripinput($_POST['user_test']) : $user_test; }
echo "<tr>\n";
echo "<td class='tbl".$this->getErrorClass("user_test")."'><label for='user_test'>".$locale['uf_test'].$required."</label></td>\n";
echo "<td class='tbl".$this->getErrorClass("user_test")."'>";
echo "<input type='text' id='user_test' name='user_test' value='".$user_test."' maxlength='50' class='textbox' style='width:200px;' />";
echo "</td>\n</tr>\n";
if ($required) { $this->setRequiredJavaScript("user_test", $locale['uf_test_error']); }
if ($profile_method == "input") {
$user_test = isset($user_data['user_test']) ? $user_data['user_test'] : "";
if ($this->isError()) { $user_test = isset($_POST['user_test']) ? stripinput($_POST['user_test']) : $user_test; }
echo "<tr>\n";
echo "<td class='tbl".$this->getErrorClass("user_test")."'><label for='user_test'>".$locale['uf_test1'].$required."</label></td>\n";
echo "<td class='tbl".$this->getErrorClass("user_test")."'>";
echo "<input type='text' id='user_test' name='user_test' value='".$user_test."' maxlength='50' class='textbox' style='width:200px;' />";
echo "</td>\n</tr>\n";
if ($required) { $this->setRequiredJavaScript("user_test", $locale['uf_test1_error']); }
if ($profile_method == "input") {
$user_test = isset($user_data['user_test']) ? $user_data['user_test'] : "";
if ($this->isError()) { $user_test = isset($_POST['user_test']) ? stripinput($_POST['user_test']) : $user_test; }
echo "<tr>\n";
echo "<td class='tbl".$this->getErrorClass("user_test")."'><label for='user_test'>".$locale['uf_test2'].$required."</label></td>\n";
echo "<td class='tbl".$this->getErrorClass("user_test")."'>";
echo "<input type='text' id='user_test' name='user_test' value='".$user_test."' maxlength='50' class='textbox' style='width:200px;' />";
echo "</td>\n</tr>\n";
if ($required) { $this->setRequiredJavaScript("user_test", $locale['uf_test2_error']); }
// Display in profile
} elseif ($profile_method == "display") {
if ($user_data['user_test']) {
echo "<tr>\n";
echo "<td class='tbl1'>".$locale['uf_test']."</td>\n";
echo "<td align='right' class='tbl1'>".$user_data['user_test']."</td>\n";
echo "</tr>\n";
}
// Display in profile
} elseif ($profile_method == "display") {
if ($user_data['user_test']) {
echo "<tr>\n";
echo "<td class='tbl1'>".$locale['uf_test1']."</td>\n";
echo "<td align='right' class='tbl1'>".$user_data['user_test']."</td>\n";
echo "</tr>\n";
}
// Display in profile
} elseif ($profile_method == "display") {
if ($user_data['user_test']) {
echo "<tr>\n";
echo "<td class='tbl1'>".$locale['uf_test2']."</td>\n";
echo "<td align='right' class='tbl1'>".$user_data['user_test']."</td>\n";
echo "</tr>\n";
}
// Insert and update
} elseif ($profile_method == "validate_insert" || $profile_method == "validate_update") {
// Get input data
if (isset($_POST['user_test']) && ($_POST['user_test'] != "" || $this->_isNotRequired("user_test"))) {
// Set update or insert user data
$this->_setDBValue("user_test", stripinput(trim($_POST['user_test'])));
} else {
$this->_setError("user_test", $locale['uf_test_error'], true);
}
}
// Insert and update
} elseif ($profile_method == "validate_insert" || $profile_method == "validate_update") {
// Get input data
if (isset($_POST['user_test']) && ($_POST['user_test'] != "" || $this->_isNotRequired("user_test"))) {
// Set update or insert user data
$this->_setDBValue("user_test", stripinput(trim($_POST['user_test'])));
} else {
$this->_setError("user_test", $locale['uf_test1_error'], true);
}
}
// Insert and update
} elseif ($profile_method == "validate_insert" || $profile_method == "validate_update") {
// Get input data
if (isset($_POST['user_test']) && ($_POST['user_test'] != "" || $this->_isNotRequired("user_test"))) {
// Set update or insert user data
$this->_setDBValue("user_test", stripinput(trim($_POST['user_test'])));
} else {
$this->_setError("user_test", $locale['uf_test2_error'], true);
}
}
?>
if (!defined("IN_FUSION")) { die("Access Denied"); }
// Version of the user fields api
$user_field_api_version = "1.01.00";
$user_field_name = $locale['uf_test'];
$user_field_desc = $locale['uf_test_desc'];
$user_field_name = $locale['uf_test1'];
$user_field_desc = $locale['uf_test1_desc'];
$user_field_name = $locale['uf_test2'];
$user_field_desc = $locale['uf_test2_desc'];
$user_field_dbname = "user_test";
$user_field_group = 1;
$user_field_dbinfo = "VARCHAR(100) NOT NULL DEFAULT ''";
?>
if (!defined("IN_FUSION")) { die("Access Denied"); }
// Display user field input
if ($profile_method == "input") {
$user_test = isset($user_data['user_test']) ? $user_data['user_test'] : "";
if ($this->isError()) { $user_test = isset($_POST['user_test']) ? stripinput($_POST['user_test']) : $user_test; }
echo "<tr>\n";
echo "<td class='tbl".$this->getErrorClass("user_test")."'><label for='user_test'>".$locale['uf_test'].$required."</label></td>\n";
echo "<td class='tbl".$this->getErrorClass("user_test")."'>";
echo "<input type='text' id='user_test' name='user_test' value='".$user_test."' maxlength='50' class='textbox' style='width:200px;' />";
echo "</td>\n</tr>\n";
if ($required) { $this->setRequiredJavaScript("user_test", $locale['uf_test_error']); }
if ($profile_method == "input") {
$user_test = isset($user_data['user_test']) ? $user_data['user_test'] : "";
if ($this->isError()) { $user_test = isset($_POST['user_test']) ? stripinput($_POST['user_test']) : $user_test; }
echo "<tr>\n";
echo "<td class='tbl".$this->getErrorClass("user_test")."'><label for='user_test'>".$locale['uf_test1'].$required."</label></td>\n";
echo "<td class='tbl".$this->getErrorClass("user_test")."'>";
echo "<input type='text' id='user_test' name='user_test' value='".$user_test."' maxlength='50' class='textbox' style='width:200px;' />";
echo "</td>\n</tr>\n";
if ($required) { $this->setRequiredJavaScript("user_test", $locale['uf_test1_error']); }
if ($profile_method == "input") {
$user_test = isset($user_data['user_test']) ? $user_data['user_test'] : "";
if ($this->isError()) { $user_test = isset($_POST['user_test']) ? stripinput($_POST['user_test']) : $user_test; }
echo "<tr>\n";
echo "<td class='tbl".$this->getErrorClass("user_test")."'><label for='user_test'>".$locale['uf_test2'].$required."</label></td>\n";
echo "<td class='tbl".$this->getErrorClass("user_test")."'>";
echo "<input type='text' id='user_test' name='user_test' value='".$user_test."' maxlength='50' class='textbox' style='width:200px;' />";
echo "</td>\n</tr>\n";
if ($required) { $this->setRequiredJavaScript("user_test", $locale['uf_test2_error']); }
// Display in profile
} elseif ($profile_method == "display") {
if ($user_data['user_test']) {
echo "<tr>\n";
echo "<td class='tbl1'>".$locale['uf_test']."</td>\n";
echo "<td align='right' class='tbl1'>".$user_data['user_test']."</td>\n";
echo "</tr>\n";
}
// Display in profile
} elseif ($profile_method == "display") {
if ($user_data['user_test']) {
echo "<tr>\n";
echo "<td class='tbl1'>".$locale['uf_test1']."</td>\n";
echo "<td align='right' class='tbl1'>".$user_data['user_test']."</td>\n";
echo "</tr>\n";
}
// Display in profile
} elseif ($profile_method == "display") {
if ($user_data['user_test']) {
echo "<tr>\n";
echo "<td class='tbl1'>".$locale['uf_test2']."</td>\n";
echo "<td align='right' class='tbl1'>".$user_data['user_test']."</td>\n";
echo "</tr>\n";
}
// Insert and update
} elseif ($profile_method == "validate_insert" || $profile_method == "validate_update") {
// Get input data
if (isset($_POST['user_test']) && ($_POST['user_test'] != "" || $this->_isNotRequired("user_test"))) {
// Set update or insert user data
$this->_setDBValue("user_test", stripinput(trim($_POST['user_test'])));
} else {
$this->_setError("user_test", $locale['uf_test_error'], true);
}
}
// Insert and update
} elseif ($profile_method == "validate_insert" || $profile_method == "validate_update") {
// Get input data
if (isset($_POST['user_test']) && ($_POST['user_test'] != "" || $this->_isNotRequired("user_test"))) {
// Set update or insert user data
$this->_setDBValue("user_test", stripinput(trim($_POST['user_test'])));
} else {
$this->_setError("user_test", $locale['uf_test1_error'], true);
}
}
// Insert and update
} elseif ($profile_method == "validate_insert" || $profile_method == "validate_update") {
// Get input data
if (isset($_POST['user_test']) && ($_POST['user_test'] != "" || $this->_isNotRequired("user_test"))) {
// Set update or insert user data
$this->_setDBValue("user_test", stripinput(trim($_POST['user_test'])));
} else {
$this->_setError("user_test", $locale['uf_test2_error'], true);
}
}
?>
$user_field_dbname = "user_test1";
$user_field_dbname = "user_test2";
Category Forum
Content Administration - 8Labels
None yet
Statistics
4 participants
Notifications
You are not receiving notifications from this thread.
Related Questions