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 |
#2
|
||||
|
||||
The actual templates aren't stored with "<if>". Echo the template and you'll see what i mean.
PHP Code:
|
#3
|
||||
|
||||
<a href="https://vborg.vbsupport.ru/showthread.php?t=151332" target="_blank">[How-To] Plugins for Template Edits (Adv. Version)</a>
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|