The 1 character causing the whole thing not to match is the ? after "moderator.php" - everything before it and everything after it (with kh99's code) matches.. and all the double quotes must be escaped as well, I tried it and it didn't work without escaping them, though I agree with Boofo it's not logical this needs to be done.
But anyway the code I have the replacement working on is on hook
member_start.
This code works fine:
PHP Code:
$find= '<li class=\"thead\"><a href=\"moderator.php';
$find3 = "xxx.php";
$vbulletin->templatecache['MEMBERINFO'] = str_replace($find, $find3, $vbulletin->templatecache['MEMBERINFO']);
As does this:
PHP Code:
$find= $GLOBALS['vbulletin']->session->vars['sessionurl'] . 'do=useroptions&u=$userinfo[userid]\">$vbphrase[edit_user_profile]</a></li>';
$find3 = "xxx.php";
$vbulletin->templatecache['MEMBERINFO'] = str_replace($find, $find3, $vbulletin->templatecache['MEMBERINFO']);
It's only the
? screwing everything up... I tried escaping it just for the hell of it- no help.