The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
[SOLVED] Creating a template hook within a template
SOLVED - this does work just had the wrong hook location
in parse templates i used Code:
$template_hook['drc_foot'] .= 'TESTING'; So im setting up a product where I have a template that looks like this: Code:
<template name="drc_foot" templatetype="template" date="0" username="DrCustUmz" version="1.0"><![CDATA[ Some Stuff... $template_hook[drc_foot] ]]></template> Code:
$template_hook[drc_foot] .= $someVar; what are my options as far as creating template hooks within a product, so that later I could create another product that uses that hook? --------------- Added [DATE]1461966491[/DATE] at [TIME]1461966491[/TIME] --------------- this would be an example of how i would want to use it in separate product: Code:
$find = $template_hook['drc_foot']; $vbulletin->templatecache['drc_foot'] = str_replace($find,$find.$someOtherVar,$vbulletin->templatecache['drc_foot']); Code:
$template_hook[drc_foot] .= $someOtherVar; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|