Hello,
I'm trying to add some extra data at the top of the "About Me" tab in memberinfo template. Unfortunatelly the only hook available is on Statistics section, which is not what I want.
So I'm trying to use str_replace but seems that something is not working well with my plugin code. eg I added in the template the text
my_extra_info and I'm trying to replace that text with
my_extra_info_updated. The code that I'm using is:
Code:
<plugin active="1" executionorder="60">
<title>More Aboutme</title>
<hookname>member_complete</hookname>
<phpcode><![CDATA[
global $vbulletin;
$vbulletin->templatecache['MEMBERINFO'] = str_replace('my_extra_info', 'my_extra_info_updated', $vbulletin->templatecache['MEMBERINFO']);
]]></phpcode>
</plugin>
I tried many other hooks like global_start, cache_templates etc etc but the text remain unchanged. Can you see any bug in my code?
Thank you
Chris