Results 1 to 4 of 4

Thread: Embed php file to vbulletin template

  1. #1
    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..

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    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

  3. #3
    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

  4. #4
    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.

Similar Threads

  1. Replies: 4
    Last Post: 19-06-2011, 06:22 AM
  2. How to embed mpeg file in html
    By ADJATAY in forum Software Development
    Replies: 5
    Last Post: 29-11-2009, 01:40 AM
  3. How to embed .wmv file in WordPress
    By lifewire in forum Technology & Internet
    Replies: 3
    Last Post: 08-07-2009, 11:02 AM
  4. embed movies in powerpoint file
    By Sacchidananda in forum Windows Software
    Replies: 3
    Last Post: 30-06-2009, 11:11 AM
  5. embed an excel file on a Outlook form
    By IMproper in forum Windows Software
    Replies: 3
    Last Post: 16-06-2009, 01:55 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,791,217.47902 seconds with 16 queries