Results 1 to 3 of 3

Thread: :?: how to have a .php and .tpl for vShare

  1. #1
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default :?: how to have a .php and .tpl for vShare

    I looked at the smarty site and viewed the tutorial about it I just got more confused LOL.

    If I was to make a page called links.php and wanted to use links.tpl as it's template, what do I need to put in the links.php to have it use the links template?
    If it's not fun, stop doing it!

  2. #2

    Default Re: :?: how to have a .php and .tpl for vShare

    Save the following code and name it as links.php and upload to your vShare installed folder


    Code:
    <?php
    
    require("include/config.php");
    require("include/function.php");
    STemplate::assign('err',$err);
    STemplate::assign('msg',$msg);
    STemplate::display('header.tpl');
    STemplate::display('error.tpl');
    STemplate::display('links.tpl');
    STemplate::display('footer.tpl');
    db_close();

    Create links.tpl with your links and upload to templates folder

  3. #3
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default Re: :?: how to have a .php and .tpl for vShare

    Thank you SO MUCH!
    If it's not fun, stop doing it!

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
  •