The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Problem with usercp hook
I'm trying to display an additional table within the USERCP -> Edit Your Details area from a template
and just cant seem to figure out if my php is wrong or having the wrong hook. What is attempted below is to hook an area of the template where there is no hook by str_replace. Hook: cache_templates Code:
$vbulletin->templatecache['modifyprofile'] = str_replace('<if condition="$customfields[\'regular\']">', ''.$vbulletin->templatecache['new_modifyprofile_table'].'<if condition="$customfields[\'regular\']">', $vbulletin->templatecache['modifyprofile']); $globaltemplates[] = 'new_modifyprofile_table'; Can anyone help? Thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|