The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Registering variables and calling templates...where am I 8still* going wrong?
I still can't this new system of calling templates and variables to work.
I have followed the article on it to the letter. Currently I have a plugin at search_start. I have the following at the bottom: Code:
$templater = vB_Template::create('threadoftheday_day2'); $templater->register('devebds', $devebds); $template_hook['totd'] = $templater->render(); I have even tried stripping it down to: $template_hook['totd'] = 1; To see if I can make it just output the number "1", as a test. But *still* nothing. I don't understand where I'm going wrong in what would appear to be a perfectly simple process. |
#2
|
||||
|
||||
Whenever I debug, I start real basic.
PHP Code:
|
#3
|
|||
|
|||
Thanks Lynne, that's sort of what my "1" was aiming at, it works if all the other code is removed.
Only obvious thing that springs at me, is this: while ($devebd = $db->fetch_array($devebds)) Is $db->fetch_array still valid in vB4? That would certainly stop it working if it wasn't. |
#4
|
||||
|
||||
Try $vbulletin->fetch_array instead? Although usually $db should work.
Did your error_logs say anything? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|