Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 14-09-2009
Member
 
Join Date: Sep 2009
Posts: 2
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..
Reply With Quote
  #2  
Old 14-09-2009
Member
 
Join Date: May 2008
Posts: 2,293
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
Reply With Quote
  #3  
Old 14-09-2009
Member
 
Join Date: Nov 2005
Posts: 1,323
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
Reply With Quote
  #4  
Old 14-09-2009
Member
 
Join Date: Apr 2008
Posts: 1,948
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Embed php file to vbulletin template"
Thread Thread Starter Forum Replies Last Post
cant able to install my sql getting a error template file cannot be found Bageshri27 Software Development 4 19-06-2011 06:22 AM
How to embed mpeg file in html ADJATAY Software Development 5 29-11-2009 01:40 AM
How to embed .wmv file in WordPress lifewire Technology & Internet 3 08-07-2009 11:02 AM
embed movies in powerpoint file Sacchidananda Windows Software 3 30-06-2009 11:11 AM
embed an excel file on a Outlook form IMproper Windows Software 3 16-06-2009 01:55 PM


All times are GMT +5.5. The time now is 07:04 PM.