Results 1 to 4 of 4

Thread: PHP Includes?

  1. #1
    Join Date
    Jun 2011
    Posts
    21

    Unhappy PHP Includes?

    I am upgrading from an older version where I had a php include in the right.tpl. I see that place is now in index.tpl and I am wondering how to get an include to fit on top of the advertising on the home page right column?
    What I had was:
    <center>{php}
    include "filename.php";
    {/php}<br></center>

    I can't make it work and when I put it over the advertising block in index.tpl it then blocks out eveything and nothing appears in the right block.

  2. #2
    Join Date
    Sep 2007
    Posts
    906

    Default

    Open index.tpl, search for

    <div id="sidebar">
    This is the sidebar, add your code inside sidebar div.
    vShare Hosting, vShare Installation, Server Setup, Lighttpd streaming, vShare Templates
    [email protected]

  3. #3

    Default

    Hi,

    If you are using latest version of vShare,

    you must set allow_php_tag = true to enable php tags in template files.

    Open include/vshare.php file and add
    Code:
    $smarty->allow_php_tag = true;
    After
    Code:
    $smarty = new Smarty();
    Thanks,

    Buyscripts Team.

  4. #4
    Join Date
    Jun 2011
    Posts
    21

    Default perfect

    thanks! Worked great!

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
  •