Embed php file to vbulletin template
Hello Good Morning,
I would like to embed my php file to vbulletin page using the following HTML code but it does not seems to be working, I inserted it in template
HTML Code I put was:
<?php include("folder/filename.php"); ?>
Please somebody can help me in this regards ...
Any help should be highly appreciated..
Re: Embed php file to vbulletin template
I know something about this I'm not much sure about this but Save that has a file, we'll use include() to reference it in vB.
Get into the template editor, find where you need the banner to display, type:
PHP code
<?php
include("placewherefileis.php");
?>
I guess it will work out
Re: Embed php file to vbulletin template
When you have a PHP or HTML file that you would like to include in your vBulletin, make a plugin that references that file and put a variable to the template of where that file's contents should come.Most PHP files that you need to include contain echo or other output statements in your PHP file, it will drop vBulletin since it is still in the process of initializing when it loads your PHP file. All echo and other output commands must be output buffered using ob_start, ob_clean, etc. commands. The output of your PHP script will be buffered for future use and inserted into a variable. All other statements in the PHP script will execute usually
Re: Embed php file to vbulletin template
I think you almost done it. This appears to be a issue with your code. Since this involves custom coding.you can use the php_include_start template or a plug-in (depending on the version of vBulletin) to produce a variable you could spit out on a template. try asking for help with this over at vbulletin.org.