John
04-27-2002, 07:41 PM
Hi everyone,
I'm working on a variation of a "default post color" hack for Lesane's Store - as you may have guessed, I'm stuck :(
Here's the problem:
I have a table in the database, "storeextra" containing two important fields: userid and color.
Now, I've managed to get it working so that a user can specify a color, and it'll be entered into the database.
E.g.
userid=1
color=#FFFFFF
Now, what do I need to add in newthread.php and newreply.php to color all new posts by the user's specified hex code?
In an autoformat hack by Jayson Stevens, the following code went in both files:
// attempt at auto-surround post with tags
if ($bbuserinfo[field5]!="") {
$message = "."]".$message."";
}
I presume that something similar needs to go in both files with me, but I don't know which variables to specify!
Help? :confused:
I'm working on a variation of a "default post color" hack for Lesane's Store - as you may have guessed, I'm stuck :(
Here's the problem:
I have a table in the database, "storeextra" containing two important fields: userid and color.
Now, I've managed to get it working so that a user can specify a color, and it'll be entered into the database.
E.g.
userid=1
color=#FFFFFF
Now, what do I need to add in newthread.php and newreply.php to color all new posts by the user's specified hex code?
In an autoformat hack by Jayson Stevens, the following code went in both files:
// attempt at auto-surround post with tags
if ($bbuserinfo[field5]!="") {
$message = "."]".$message."";
}
I presume that something similar needs to go in both files with me, but I don't know which variables to specify!
Help? :confused: