I've been searching for a few days, and I can't find anything to suggest why str_replace isn't working in
MEMBERINFO for me. I've tried using both a custom template and simply putting the replacement code in a variable. I can' tell if I'm using the wrong hook, using outdated code or what.
For example, using a custome template
Code:
$find= '<li class=\"thead\"><a href=\"moderator.php?$session[sessionurl]do=useroptions&u=$userinfo[userid]\">$vbphrase[edit_user_profile]</a></li>';
$vbulletin->templatecache['MEMBERINFO'] = str_replace($find, fetch_template(djs_delete_link) . $find, $vbulletin->templatecache['MEMBERINFO']);
I'm looking at some other plugins, but none of them look right around the Edit Profile link, which is where I'm looking. Does it have to do with the if condition the block of code sits in? I recall reading that str_replace doesn't play nice with if conditionals, but I thought that was if you were searching for them, not searching for a string inside of one. This seems like it should be working.