The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Memberinfo template extra data
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> Thank you Chris |
#2
|
||||
|
||||
I think you want to use the hook location parse_templates or process_templates_complete?
|
#3
|
|||
|
|||
Quote:
Chris --------------- Added [DATE]1364062549[/DATE] at [TIME]1364062549[/TIME] --------------- Well, my code is ok but seems that is not (?) possible to replace text in tabs. I added the same text in many places on left sidebar and in all tabs (Activity, About me etc). The text in sidebar replaced fine which means that the php code, the template name, and the hook position (member_complete) are correct. Now is the magic question why does not works on tabs. I've activated the show template name in comments and I can't see any other major template name. I also tried to place the block template name instead of MEMBERINFO but again ...no luck. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|