![]() |
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'); 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. |
Whenever I debug, I start real basic.
PHP Code:
|
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. |
Try $vbulletin->fetch_array instead? Although usually $db should work.
Did your error_logs say anything? |
All times are GMT. The time now is 12:17 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|