Aaow and White (and anyone else who is interested in a template-based version of this hack):
Here is how to convert this hack so that it uses templates.
First, find this block of code:
PHP Code:
if ($date==$todaydate) {
$date="Today";
}
if ($date==$yestdate) {
$date="Yesterday";
}
... and replace it with this:
PHP Code:
if ($date==$todaydate) {
eval("\$date= \" ".gettemplate('today')."\";");
}
if ($date==$yestdate) {
eval("\$date= \" ".gettemplate('yesterday')."\";");
}
Then create 2 custom templates, called "today" and "yesterday". Within these templates, just type the word you want to appear for today and yesterday. You can do this for as many template sets as you want -- vB will pick the right one from the current style setting.
Hope this helps,
Matt