Results 1 to 4 of 4

Thread: PHP Includes?

  1. #1
    onlinetv is offline Junior Member
    Join Date
    Jun 2011
    Posts
    16

    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
    hostonnet is offline Super Moderator
    Join Date
    Sep 2007
    Posts
    891

    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
    install@hostonnet.com

  3. #3
    vshare2 is offline Moderator
    Join Date
    Jul 2007
    Posts
    171

    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
    onlinetv is offline Junior Member
    Join Date
    Jun 2011
    Posts
    16

    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
  •