Tim Wheatley
10-23-2002, 01:06 PM
Hi,
I have three user fields which are numbers.
I have it so that if a user has entered them, they show in the postbit, if they don't enter them, nothing shows - same thing with all three. I've controlled this in functions.php.
The three fields appear inside a new html table in the postbit.
What I want help with is:
I want a user option that they can specify whether they do or don't want to see other people's numbers.
If they select yes, they see the numbers and the table around them. If they select no, they don't see the table or anything inside it.
Here is what I currently have in functions.php below $post[homepage]="";
}
...
// GPL Rank
if ($post[field18]!="" and $post[field18]!="0") {
$post[field18]="GPL Rank: $post[field18]<br>";
} else {
$post[field18]="";
}
// N2002 Rank
if ($post[field19]!="" and $post[field19]!="0") {
$post[field19]="N2002 Rank: $post[field19]<br>";
} else {
$post[field19]="" ;
}
// show edit rank info to member only
if ($bbuserinfo['userid']<"1") {
$editrankinfo = "";
} else {
$editrankinfo = "| <a style=\"COLOR: #000000; FONT-FAMILY: Verdana,Arial;\" href=\"member.php?s=$session[sessionhash]&action=editprofile\">edit</a>";
}
// RL Rank
if ($post[field21]!="" and $post[field21]!="0") {
$post[field21]="RL Rank: $post[field21]<br>";
} else {
$post[field21]="";
}
Here is what I have in my test postbit:
<table width="100%"><tr><td style="BORDER: #000000 1px solid; FONT-SIZE: 11px; COLOR: #000000; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: #C0C0C0;"><smallfont>(<a href="http://gplrank.schuerkamp.de/" target="_blank" style="COLOR: #000000; FONT-FAMILY: Verdana,Arial;">driver ranks</a> $editrankinfo)<br>$post[field18] $post[field19] $post[field21]</smallfont></td></tr></table>
Uploaded is how it looks in the postbit.
I have three user fields which are numbers.
I have it so that if a user has entered them, they show in the postbit, if they don't enter them, nothing shows - same thing with all three. I've controlled this in functions.php.
The three fields appear inside a new html table in the postbit.
What I want help with is:
I want a user option that they can specify whether they do or don't want to see other people's numbers.
If they select yes, they see the numbers and the table around them. If they select no, they don't see the table or anything inside it.
Here is what I currently have in functions.php below $post[homepage]="";
}
...
// GPL Rank
if ($post[field18]!="" and $post[field18]!="0") {
$post[field18]="GPL Rank: $post[field18]<br>";
} else {
$post[field18]="";
}
// N2002 Rank
if ($post[field19]!="" and $post[field19]!="0") {
$post[field19]="N2002 Rank: $post[field19]<br>";
} else {
$post[field19]="" ;
}
// show edit rank info to member only
if ($bbuserinfo['userid']<"1") {
$editrankinfo = "";
} else {
$editrankinfo = "| <a style=\"COLOR: #000000; FONT-FAMILY: Verdana,Arial;\" href=\"member.php?s=$session[sessionhash]&action=editprofile\">edit</a>";
}
// RL Rank
if ($post[field21]!="" and $post[field21]!="0") {
$post[field21]="RL Rank: $post[field21]<br>";
} else {
$post[field21]="";
}
Here is what I have in my test postbit:
<table width="100%"><tr><td style="BORDER: #000000 1px solid; FONT-SIZE: 11px; COLOR: #000000; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: #C0C0C0;"><smallfont>(<a href="http://gplrank.schuerkamp.de/" target="_blank" style="COLOR: #000000; FONT-FAMILY: Verdana,Arial;">driver ranks</a> $editrankinfo)<br>$post[field18] $post[field19] $post[field21]</smallfont></td></tr></table>
Uploaded is how it looks in the postbit.