Quote
googlebot wrote:
Edit /forum/viewthread.php
Quote
V I R U S wrote:
Then just leave it as-is...
Quote
Xessive wrote:
Here ya go: http://www.php-fusion.co.uk/forum/vie...d_id=21466.
This is a thread explaining how to add custom user fields.
Have fun..!!
echo "<span class='small'><strong>".$locale['504']."</strong> ".showdate("%d.%m.%y", $data['user_joined'])."</span><br />\n";
Quote
HobbyMan wrote:
viewthread.php
You need to add your extras under line 289...Code Download sourceecho "<span class='small'><strong>".$locale['504']."</strong> ".showdate("%d.%m.%y", $data['user_joined'])."</span><br />\n";
That's the "Joined: xx.xx.xx" code
However, there's not much we can do without more info.
f (!defined("IN_FUSION")) { die("Access Denied"); }
if ($profile_method == "input") {
echo "<tr>\n";
echo "<td class='tbl'>".$locale['uf_ride'].":</td>\n";
echo "<td class='tbl'><input type='text' name='user_ride' value='".(isset($user_data['user_ride']) ? $user_data['user_ride'] : "")."' maxlength='64' class='textbox' style='width:250px;' /></td>\n";
echo "</tr>\n";
} elseif ($profile_method == "display") {
if ($user_data['user_ride']) {
echo "<tr>\n";
echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['uf_ride']."</td>\n";
echo "<td align='right' class='tbl1'>".$user_data['user_ride']."</td>\n";
echo "</tr>\n";
}
} elseif ($profile_method == "validate_insert") {
$db_fields .= ", user_ride";
$db_values .= ", '".(isset($_POST['user_ride']) ? stripinput(trim($_POST['user_ride'])) : "")."'";
} elseif ($profile_method == "validate_update") {
$db_values .= ", user_ride='".(isset($_POST['user_ride']) ? stripinput(trim($_POST['user_ride'])) : "")."'";
}
?>
if (!defined("IN_FUSION")) { die("Access Denied"); }
$user_field_name = $locale['uf_ride'];
$user_field_desc = $locale['uf_ride_desc'];
$user_field_dbname = "user_ride";
$user_field_group = 2;
$user_field_dbinfo = "VARCHAR(64) NOT NULL DEFAULT ''";
Category Forum
User Administration - 8Labels
None yet
Statistics
5 participants
Notifications
You are not receiving notifications from this thread.
Related Questions