BigJohnson
10-26-2002, 10:32 AM
I am in my MEMBER.PHP file.
When you go to user cp and the modify profile there is an area on the bottom of the page called additional information.
No the template for additional info is register_customfields
and the colors for each TD is $bgcolor
Now I am trying to make my whole site in bevel which means 3d.
$bgcolor makes the colors go back and forth
{firstaltcolor }
{secondaltcolor }
Like that goes back and forth. I have two bevel codes. One for the firstaltcolor and secondaltcolor
{bevel1 }
is for the firstaltcolor and i am guessing you probably know what the other one is for. Well the only thing i am having trouble with is making this part of the site bevel.
I know it needs some php coding in the member.php file
// get extra profile fields
$customfields = '';
$profilefields=$DB_site->query("SELECT *
FROM profilefield
WHERE editable = 1
ORDER BY displayorder");
while ($profilefield=$DB_site->fetch_array($profilefields)) {
$profilefieldname="field$profilefield[profilefieldid]";
if ($bgcolor=="{firstaltcolor}") {
$bgcolor="{secondaltcolor}";
} else {
$bgcolor="{firstaltcolor}";
}
eval("\$customfields .= \"".gettemplate("register_customfields")."\";");
}
This is what the area in the member.php file looks like for this template. This is what i changed it too.
// get extra profile fields
$customfields = '';
$profilefields=$DB_site->query("SELECT *
FROM profilefield
WHERE editable = 1
ORDER BY displayorder");
while ($profilefield=$DB_site->fetch_array($profilefields)) {
$profilefieldname="field$profilefield[profilefieldid]";
if ($bgcolor=="{firstaltcolor}") {
$bgcolor="{secondaltcolor}";
} else {
$bgcolor="{firstaltcolor}";
}
if ($bevelcolor=="bevel1") {
$bevelcolor="{bevel2}";
} else {
$bevelcolor="{bevel1}";
}
eval("\$customfields .= \"".gettemplate("register_customfields")."\";");
}
then i added $backbevel to the correct template and it didn't work. Maybe the PHP is wrong but can someone help me finish this. Thanks so much.
When you go to user cp and the modify profile there is an area on the bottom of the page called additional information.
No the template for additional info is register_customfields
and the colors for each TD is $bgcolor
Now I am trying to make my whole site in bevel which means 3d.
$bgcolor makes the colors go back and forth
{firstaltcolor }
{secondaltcolor }
Like that goes back and forth. I have two bevel codes. One for the firstaltcolor and secondaltcolor
{bevel1 }
is for the firstaltcolor and i am guessing you probably know what the other one is for. Well the only thing i am having trouble with is making this part of the site bevel.
I know it needs some php coding in the member.php file
// get extra profile fields
$customfields = '';
$profilefields=$DB_site->query("SELECT *
FROM profilefield
WHERE editable = 1
ORDER BY displayorder");
while ($profilefield=$DB_site->fetch_array($profilefields)) {
$profilefieldname="field$profilefield[profilefieldid]";
if ($bgcolor=="{firstaltcolor}") {
$bgcolor="{secondaltcolor}";
} else {
$bgcolor="{firstaltcolor}";
}
eval("\$customfields .= \"".gettemplate("register_customfields")."\";");
}
This is what the area in the member.php file looks like for this template. This is what i changed it too.
// get extra profile fields
$customfields = '';
$profilefields=$DB_site->query("SELECT *
FROM profilefield
WHERE editable = 1
ORDER BY displayorder");
while ($profilefield=$DB_site->fetch_array($profilefields)) {
$profilefieldname="field$profilefield[profilefieldid]";
if ($bgcolor=="{firstaltcolor}") {
$bgcolor="{secondaltcolor}";
} else {
$bgcolor="{firstaltcolor}";
}
if ($bevelcolor=="bevel1") {
$bevelcolor="{bevel2}";
} else {
$bevelcolor="{bevel1}";
}
eval("\$customfields .= \"".gettemplate("register_customfields")."\";");
}
then i added $backbevel to the correct template and it didn't work. Maybe the PHP is wrong but can someone help me finish this. Thanks so much.