![]() |
Hi kh99,
thx to Replay and help me.... Your Info not Work! :( I have a failure in the Config or ? I use the php in the Sidebar Adden and this work fine! Why nothing Work in a Template? I have Read all howto and change some Codes, all not Work |
Hi. I am having a problem, i registered two variables which are in the vbtrade_main template, and i want it to see it only in the php page vbtrade.php, but i see it in all pages! The forum also dissapears.
This is the code i put in the Hook Location with global_bootstrap_init_start Code:
ob_start(); Thanks for your help. |
Quote:
|
Quote:
It might only be that you're missing an ob_start() call. If you want to include two files separately, you would need to call ob_start() again after the first call to ob_end_clean(). |
Quote:
Code:
ob_start(); The vbtrade_main template: Code:
{vb:stylevar htmldoctype} |
That looks right, but it may have to do with what's in the scripts you're trying to include. For instance if they call exit() or die(), then that may be why the forum is disappearing. (If vbtrade.php is a vbulletin "powered" page that calls print_output() at the end, that would also do it). If that's the case, then maybe you can use an iframe instead.
Also I just noticed that you're including the same file twice - even if it worked, you'd probably get the same output for both. |
Quote:
This is the end of the vbtrade.php Code:
print_output($templater->render()); Thanks for your answers! EDIT: An iframe is a bbcode. Do you mean i don't have to put the code in a new plugin, but in the new bbcode? The same code i put in the plugin? |
Quote:
Both of your 'require_once' lines have the same file name. Quote:
To be honest I'm not sure what you're trying to do. It looks like you're trying to use the method in this article to include output from an external file (vbtrade.php), but you also have a template. What are you using that template for, and what output do you expect from vbtrade.php? And where are you trying to include it? |
Quote:
I am trying to make work a vb3 plugin in vb4, and i see in the template this lines: Code:
[B]<vb:if condition="$stocktable != null"> |
Quote:
So far that all looks OK. Edit: but I guess the issue is, where are those variables coming from? |
All times are GMT. The time now is 03:30 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:
|