![]() |
Quote:
|
Well, right, you'd have to do that in php, which means a plugin or modifying a script. But the issue seems to be where those variables are coming from. The code you posted looks like you're trying to capture the entire output of vbtrade.php into each of those variables, which won't work. But I'm not sure what to tell you to do instead of that.
Edit: I'm thinking now that you don't need this "include external files" thing at all. If you're trying to modify vbtrade.php to work with vb4, then you probably want to edit that script and change the way the templates are rendered. |
1 Attachment(s)
Quote:
Code:
$templater = vB_Template::create('forumdisplay_sortarrow'); |
OK, that's already written for vb4, so it doesn't need to be changed. Sorry, I probably just misunderstood what you're trying to do.
You said you're trying to modify a vb3 plugin for vb4, so you were right, if it involved using variables in a template, you might have to register them. Is your vb3 plugin code calling fetch_template() then eval()? Edit: OK, I just noticed that the code you posted above from vbtrade.php is rendering the vbtrade_main template and already registers $stocktable and $preview, so I'm lost. What does the plugin do? |
Quote:
|
is there anyway to get this to work in an Iframe
i try HTML Code:
<iframe src="{vb:raw perm}" width="530" height="600" frameBorder="0" class="leftColumn"></iframe> this is the plugin i use PHP Code:
|
If what you want is the output of $perm in the iframe simply make the iframe src="url/perm/perm.php"
|
Quote:
HTML Code:
<iframe src="{vb:raw perm}" width="530" height="600" frameBorder="0" class="leftColumn"></iframe> |
From the code you posted above, $perm = ob_get_contents();
That means $perm is the contents of the output buffer or the output (presumably) of the perm.php page. NOT a URL. But the iframe SRC is looking for a URL ONLY. You can't put iframe content in the src= attribute. Actually, it appears HTML5 does allow you to specify the code in the iframe but it uses the srcdoc attribute - http://www.w3schools.com/tags/tag_iframe.asp |
Hi there,
For some reason I can include the PHP file, but my header and navbar goes funny. I know it's the plugin in as when I turn the plugin off, the header and navbar works fine. The header and navbar works fine, but it changes to: My navbar/headers are #vbtab_form# $tab_mdu1_245 and #vbflink_pms# #vbmenu_community# and I'm missing some of my footer menu links. Very odd that it works but my css stuffs up. Thank you for your help. Cheers |
All times are GMT. The time now is 10:57 AM. |
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:
|