Using vB templates outside the forum

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DoST
    Senior Member
    • Oct 2000
    • 139

    Using vB templates outside the forum

    Can I create a new template in vB and use it on a page outside the forum? Please tell me how if the answer is yes.

    Thanks
  • Menno
    Senior Member
    • Apr 2000
    • 1224

    #2
    you can, but you'll have to program to do it. Most importantly, you need a function to fetch and display the template. Perhaps browsing trough the vB source code will give you a good idea.
    - Insert viable disclaimer here -

    ArtBeast!

    Comment

    • Ratorasniki
      Member
      • Oct 2000
      • 83

      #3
      either require the global.php file in your new script, or you can try using the gettemplate function (look for this:

      Code:
      function gettemplate($templatename,$escape=1) {
        // gets a template from the db or from the local cache
      
      
      ...
      in global.php) and make sure you set up all the variables it uses (most of them are in your config file).

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...