In the function makenav in the functions.php, I put this code:
PHP Code:
if ($bbuserinfo['userid']>0) {
$nav_title = trim(preg_replace("/(\[)(you)(])/siU", $bbuserinfo[username], $nav_title));
} else {
$nav_title = trim(preg_replace("/(\[)(you)(])/siU", "you", $nav_title));
}
Below:
PHP Code:
$nav_url="forumdisplay.php?s=$session[sessionhash]&forumid=$id";
$nav_title=$foruminfo[title];
But all it seems to do is replace the [you] with you instead of the user's name. Can anyone please tell me why it is parsing it to the 2nd preg_replace and not the first? If I switch it around, it parses it to nothing. I must be missing something here, but for the life of me, I don't know what.