Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Custom User Field

Asked Modified Viewed 5,696 times
R
Reef
R
Reef 10
  • Member, joined since
  • Contributed 56 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
asked
Member

Could someone tell me how I can put a custom field (one I've created & installed) to show in the poster's info (the bit to the left of this post, showing my username, number of posts join date etc) underneath the Joined: field?

Thanks
0 replies

8 posts

G
googlebot
G
Visit the new home of the merge between Hacking Vs. Security and Security Override!
My copyright removal has been switched over from HvS to SecurityOverride.
  • Senior Member, joined since
  • Contributed 638 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

Edit /forum/viewthread.php
0 replies
R
Reef
R
Reef 10
  • Member, joined since
  • Contributed 56 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
answered
Member

Quote

googlebot wrote:
Edit /forum/viewthread.php


How? lol - I'm not that good with PHP tbh
0 replies
V
V I R U S
V
My signature is to damn big for you to see/Homdax.
  • Member, joined since
  • Contributed 80 posts on the community forums.
  • Started 17 threads in the forums
answered
Member

Then just leave it as-is...
0 replies
R
Reef
R
Reef 10
  • Member, joined since
  • Contributed 56 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
answered
Member

Quote

V I R U S wrote:
Then just leave it as-is...


Then how am I meant to learn and improve my skills ?
0 replies
X
Xessive
X
I am not always right, but I'm never wrong.
http://www.xessive.nl
  • Senior Member, joined since
  • Contributed 327 posts on the community forums.
  • Started 4 threads in the forums
answered
Senior Member

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..!!
0 replies
R
Reef
R
Reef 10
  • Member, joined since
  • Contributed 56 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
answered
Member

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..!!


Thanks, but that wasn't what i needed. I've already installed my user field and it works perfectly. But it only displays in the users profile and not in the forum. I've looked in viewthread.php and just got confused lol
0 replies
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
answered
Veteran Member

viewthread.php

You need to add your extras under line 289...

echo "<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.
0 replies
R
Reef
R
Reef 10
  • Member, joined since
  • Contributed 56 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
answered
Member

Quote

HobbyMan wrote:
viewthread.php

You need to add your extras under line 289...

echo "<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.


Thank you. Below are my files for the code I'm using:

user_ride_include:
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'])) : "")."'";
}
?>


And

user_ride_include_var

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 ''";


Does that help ?
0 replies

Category Forum

User Administration - 8

Labels

None yet

Statistics

  • Views 0 views
  • Posts 8 posts
  • Votes 0 votes
  • Topic users 5 members

5 participants

R
R
Reef 10
  • Member, joined since
  • Contributed 56 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
V
V
My signature is to damn big for you to see/Homdax.
  • Member, joined since
  • Contributed 80 posts on the community forums.
  • Started 17 threads in the forums
H
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
X
X
I am not always right, but I'm never wrong.
http://www.xessive.nl
  • Senior Member, joined since
  • Contributed 327 posts on the community forums.
  • Started 4 threads in the forums
G
G
Visit the new home of the merge between Hacking Vs. Security and Security Override!
My copyright removal has been switched over from HvS to SecurityOverride.
  • Senior Member, joined since
  • Contributed 638 posts on the community forums.
  • Started 28 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet