Here is an example I found from something I did for vb 3 a while back:
Code:
$find_fh = 'accesskey=\"c\" />$vbphrase[remember_me]</label>';
$replace_fh = 'accesskey=\"c\" checked=\"checked\" /> $vbphrase[remember_me]</label>';
$vbulletin->templatecache['navbar'] = str_replace($find_fh, $replace_fh, $vbulletin->templatecache['navbar']);
And another one:
Code:
$find = '<strong>" . construct_phrase("$vbphrase[welcome_x_link_y]", "" . $GLOBALS[\'vbulletin\']->userinfo[\'username\'] . "", "member.php?" . $GLOBALS[\'vbulletin\']->session->vars[\'sessionurl\'] . "u=" . $GLOBALS[\'vbulletin\']->userinfo[\'userid\'] . "") . "</strong><br />';
$replace = '<strong>" . construct_phrase("$vbphrase[ung_greeting]", "$vbphrase[ung_line]", "member.php?" . $GLOBALS[\'vbulletin\']->session->vars[\'sessionurl\'] . "u=" . $GLOBALS[\'vbulletin\']->userinfo[\'userid\'] . "", "$vbphrase[realname]", "$vbphrase[ung_punctuation]") . "</strong><br />';
$vbulletin->templatecache['navbar'] = str_replace($find, $replace, $vbulletin->templatecache['navbar']);
Since I don't have vb 3 anymore, I can't look in the db and help you guys figure it out, sorry.