The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Little help needed with new template rendering in existing scripts
I'm working on updating some existing mods (grumble) and have run into some confusion about getting templates to render on existing hooks.
Here's my simple render code. Any ideas why it isn't getting seen in postbit_legacy? Plugin: showthread_postbit_create Code:
$templater = vB_Template::create($helpful_answers_template); $template_hook[postbit_controls] .= $templater->render(); |
#2
|
||||
|
||||
Have you cached it?
Take a look at my UserCP Referral mod, it's probably as basic as can be found. Makes a template, then makes it display in UserCP, at a non-editable hook location. --------------- Added [DATE]1261944217[/DATE] at [TIME]1261944217[/TIME] --------------- Oh, hang on. I would think that the first line in your snippet needs the actual template name, rather than $templatename. |
#3
|
|||
|
|||
Quote:
|
#4
|
||||
|
||||
You're very welcome!
I had a feeling that the one and only thing I have been able to gather about vB 4 coding would result in some awesome stuff of yours being ported. |
#5
|
|||
|
|||
Heh. I've managed to get a few of the simpler ones updated but the fun stuff is going to take some time to convert over.
Couple ideas for new ones too, but first the old mods need to be ported. Lots of work to add nothing new Thanks again! --------------- Added 27 Dec 2009 at 22:43 --------------- --------------- Added [DATE]1261982631[/DATE] at [TIME]1261982631[/TIME] --------------- Ok I'm still stuck on getting this to work... Must be missing something very simple. Hook: showthread_postbit_create Code:
$template_hook['postbit_signature_end'] .= '11111'; $template_hook['postbit_end'] .= '22222'; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|