Quote
Error: Check the files of the user field user_av_6!
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) PHP Fusion Inc
| https://phpfusion.com/
+--------------------------------------------------------+
| Filename: user_av_6_include.php
| Author: Digitanium
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or >isError()) {
$user_av_6 = isset($_POST['user_av_6']) ? stripinput($_POST['user_av_6']) : $user_av_6;
}
echo "<tr>n";
echo "<td class='tbl".$this->getErrorClass("user_av_6")."'><label for='user_av_6'>".$locale['uf_icq'].$required."</label></td>n";
echo "<td class='tbl".$this->getErrorClass("user_av_6")."'>";
echo "<input type='text' id='user_av_6' name='user_av_6' value='".$user_av_6."' maxlength='16' class='textbox' style='width:200px;' />";
echo "</td>n</tr>n";
if ($required) {
$this->setRequiredJavaScript("user_av_6", $locale['uf_icq_error']);
}
// Display in profile
} else if ($profile_method == "display") {
if ($user_data['user_av_6']) {
echo "<tr>n";
echo "<td class='tbl1'>".$locale['uf_icq']."</td>n";
echo "<td align='right' class='tbl1'>".$user_data['user_av_6']."</td>n";
echo "</tr>n";
}
// Insert and update
} else if ($profile_method == "validate_insert" || $profile_method == "validate_update") {
// Get input data
if (isset($_POST['user_av_6']) && ($_POST['user_av_6'] != "" || $this->_isNotRequired("user_av_6"))) {
if (isnum($_POST['user_av_6']) || $_POST['user_av_6'] == "") {
// Set update or insert user data
$this->_setDBValue("user_av_6", $_POST['user_av_6']);
} else {
$this->_setError("user_av_6", $locale['uf_icq_error2']);
}
} else {
$this->_setError("user_av_6", $locale['uf_icq_error'], TRUE);
}
}
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) PHP Fusion Inc
| https://phpfusion.com/
+--------------------------------------------------------+
| Filename: user_icq_include_var.php
| Author: Digitanium
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or >
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) {
die("Access Denied");
}
// Version of the user fields api
$user_field_api_version = "1.01.00";
$user_field_name = '+6 Avail.';
$user_field_desc = 'Are you availible at +6?';
$user_field_dbname = "user_av_6";
$user_field_group = 1;
$user_field_dbinfo = "VARCHAR(3) NOT NULL DEFAULT ''";
<div class="">
<div class="">
<h1 access="false" id="control-7207556">Stats for Eden</h1></div>
<div class="">
<label for="select-footmen" class="">Footmen<span class="">*</span><span class="tooltip-element" tooltip="highest footmen level you have">?</span></label>
<select class="form-control" name="select-footmen" id="select-footmen" required="required" aria-required="true">
<option disabled="null" selected="null">-</option>
<option value="T7" id="select-footmen-0">T7</option>
<option value="T8" id="select-footmen-1">T8</option>
<option value="T9" id="select-footmen-2">T9</option>
<option value="T10" id="select-footmen-3">T10</option>
</select>
</div>
<div class="">
<label for="select-archers" class="">Archers<span class="formbuilder-required">*</span><span class="tooltip-element" tooltip="highest archers level you have">?</span></label>
<select class="form-control" name="select-archers" id="select-archers" required="required" aria-required="true">
<option disabled="null" selected="null">-</option>
<option value="T7" id="select-archers-0">T7</option>
<option value="T8" id="select-archers-1">T8</option>
<option value="T9" id="select-archers-2">T9</option>
<option value="T10" id="select-archers-3">T10</option>
</select>
</div>
<div class="">
<label for="select-cavs" class="">Calvery<span class="">*</span><span class="tooltip-element" tooltip="highest calvery level you have">?</span></label>
<select class="form-control" name="select-cavs" id="select-cavs" required="required" aria-required="true">
<option disabled="null" selected="null">-</option>
<option value="T7" id="select-cavs-0">T7</option>
<option value="T8" id="select-cavs-1">T8</option>
<option value="T9" id="select-cavs-2">T9</option>
<option value="T10" id="select-cavs-3">T10</option>
</select>
</div>
<div class="">
<label for="number-loyalty" class="">Loyalty Level<span class="">*</span><span class="tooltip-element" tooltip="eden loyalty level">?</span></label>
<input type="number" placeholder="0" class="form-control" name="number-loyalty" access="false" value="2000" id="number-loyalty" title="eden loyalty level" required="required" aria-required="true">
</div>
<div class="">
<label for="radio-time" class="">Available Times<span class="tooltip-element" tooltip="times best for you to participate in eden">?</span></label>
<div id='MultiSelect_container' class='sfm_multiselect element_label'>
<ul id='MultiSelect_ul'>
<li ><label ><input type='checkbox' name='MultiSelect[]' value='Reset'>Reset</label></li>
<li ><label ><input type='checkbox' name='MultiSelect[]' value='+6'>+6</label></li>
<li ><label ><input type='checkbox' name='MultiSelect[]' value='+8'>+8</label></li>
<li ><label ><input type='checkbox' name='MultiSelect[]' value='+12'>+12</label></li>
<li ><label ><input type='checkbox' name='MultiSelect[]' value='+16'>+16</label></li>
<li ><label ><input type='checkbox' name='MultiSelect[]' value='+18'>+18</label></li>
<li ><label ><input type='checkbox' name='MultiSelect[]' value='+23'>+23</label></li>
</ul>
</div>
</div>
</div>
<div id='Submit_container' class='loading_div sfm_element_container'>
<input type='image' name='Submit' id='Submit' alt='submit'>
</div>
</div>
Quote
Error: Check the files of the user field user_av_reset!
if (!defined("IN_FUSION")) {
die("Access Denied");
}
// Display user field input
if ($profile_method == "input") {
$user_av_reset = isset($user_data['user_av_reset']) ? stripinput($user_data['user_av_reset']) : "";
if ($this->isError()) {
$user_av_reset = isset($_POST['user_av_reset']) ? stripinput($_POST['user_av_reset']) : $user_av_reset;
}
echo "<tr>n";
echo "<td class='tbl".$this->getErrorClass("user_av_reset")."'><label for='user_av_reset'>".$locale['uf_location'].$required."</label></td>n";
echo "<td class='tbl".$this->getErrorClass("user_av_reset")."'>";
echo "<input type='text' id='user_av_reset' name='user_av_reset' value='".$user_av_reset."' maxlength='50' class='textbox' style='width:200px;' />";
echo "</td>n</tr>n";
if ($required) {
$this->setRequiredJavaScript("user_av_reset", $locale['uf_location_error']);
}
// Display in profile
} else if ($profile_method == "display") {
if ($user_data['user_av_reset']) {
echo "<tr>n";
echo "<td class='tbl1'>".$locale['uf_location']."</td>n";
echo "<td align='right' class='tbl1'>".$user_data['user_av_reset']."</td>n";
echo "</tr>n";
}
// Insert and update
} else if ($profile_method == "validate_insert" || $profile_method == "validate_update") {
// Get input data
if (isset($_POST['user_av_reset']) && ($_POST['user_av_reset'] != "" || $this->_isNotRequired("user_av_reset"))) {
// Set update or insert user data
$this->_setDBValue("user_av_reset", stripinput(trim($_POST['user_av_reset'])));
} else {
$this->_setError("user_av_reset", $locale['uf_location_error'], TRUE);
}
}
<?php
if (!defined("IN_FUSION")) {
die("Access Denied");
}
// Version of the user fields api
$user_field_api_version = "1.01.00";
$user_field_name = '+6 Avail.';
$user_field_desc = 'Are you availible at +6?';
$user_field_dbname = "user_62";
$user_field_group = 1;
$user_field_dbinfo = "VARCHAR(3) NOT NULL DEFAULT ''";
<?php
if (!defined("IN_FUSION")) {
die("Access Denied");
}
// Display user field input
if ($profile_method == "input") {
$user_62 = isset($user_data['user_62']) ? $user_data['user_62'] : "";
if ($this->isError()) {
$user_62 = isset($_POST['user_62']) ? stripinput($_POST['user_62']) : $user_62;
}
echo "<tr>n";
echo "<td class='tbl".$this->getErrorClass("user_62")."'><label for='user_62'>".$locale['uf_6'].$required."</label></td>n";
echo "<td class='tbl".$this->getErrorClass("user_62")."'>";
echo "<input type='text' id='user_62' name='user_62' value='".$user_62."' maxlength='3' class='textbox' style='width:200px;' />";
echo "</td>n</tr>n";
if ($required) {
$this->setRequiredJavaScript("user_62", $locale['uf_6_error']);
}
// Display in profile
} else if ($profile_method == "display") {
if ($user_data['user_62']) {
echo "<tr>n";
echo "<td class='tbl1'>".$locale['uf_6']."</td>n";
echo "<td align='right' class='tbl1'>".$user_data['user_62']."</td>n";
echo "</tr>n";
}
// Insert and update
} else if ($profile_method == "validate_insert" || $profile_method == "validate_update") {
// Get input data
if (isset($_POST['user_62']) && ($_POST['user_62'] != "" || $this->_isNotRequired("user_62"))) {
if (isnum($_POST['user_62']) || $_POST['user_62'] == "") {
// Set update or insert user data
$this->_setDBValue("user_62", $_POST['user_62']);
} else {
$this->_setError("user_62", $locale['uf_6_error2']);
}
} else {
$this->_setError("user_62", $locale['uf_6_error'], TRUE);
}
}
<?php
$locale['uf_6] = "+6";
$locale['uf_6_desc'] = "+6 Avail";
$locale['uf_6_error'] = "Can not be left empty.";
$locale['uf_6_error2'] = "test.";
?>
@diesltek710 -
or is there a way to have a userfields category display on a different page? like update_stats.php ?