Quote:
Originally Posted by justasiam
Primarilly, I need this to work when displaying the username on posts as well as when displaying the username in CMS articles. Is this going to do that?
|
I don't know...I don't use CMS. Give it a try...let us know.
edit: Try this instead...and if this doesn't work for CMS, I have another option for you to try.
PHP Code:
if (in_array(THIS_SCRIPT, array('showthread', 'vbcms')))
{
global $post;
$new_name = $post['field4'];
if ($new_name)
{
$memberinfo['musername'] = str_replace($memberinfo['username'], $new_name, $memberinfo['musername']);
$memberinfo['username'] = $new_name;
}
}