nvm figured it out
|
I have read all posts and dont know how to call 3 templates in one page.
I have this code: PHP Code:
|
I would fetch it before...
PHP Code:
F. |
Thanks for this, hopefully i'll be able to know what to do.
|
does anyone know how i can insert this into a template using plugin manager
to be placed in header Code:
|
n/m I figured I was missing $templater->render();
|
I am not much of a coder at all, and hence need your help big time.
I want to call a simple php file to be placed just under the navbar. So, I created a plugin: Product: vBulletin Title: Insert Simple PHP Execution order: 5 (it was default) Hook Location: global_start PHP code: Code:
ob_start(); Now, I went to the NAVBAR template and inserted Code:
{vb:raw insert_simple_php} Code:
{vb:raw ad_location.global_below_navbar} * Where does the 'register/pre-register' come? * What is the exact change I need to make here? Thanks for your help! |
Great article!
but i have a problem. I have a template which i want to show inside another template, and it seems to work with every template except for the header. This is the plugin i used: PHP Code:
of course i have a template called TopPanel which i created, and it works great in vbcms_page for example but not in header. Do you have an idea why is that? Thanks in advance. |
As the name suggests, the hook you use is called when vB-internal template processing is already completed. No use in preregistering templates then anymore. Since that hook did not exist in 4.0.1 as far as I can see, you're using 4.0.2. Another hook that got added in 4.02 is template_register_var, and that would be the right one to use.
|
Quote:
PHP Code:
|
All times are GMT. The time now is 06:13 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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|