Any cache & fetch templat documentation?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • adnan2007
    Member
    • Jun 2007
    • 46

    Any cache & fetch templat documentation?

    I was wondering if there's any kind of documentation on how to cache & fetch templates.

    I wrote a custom template but when I try to retrieve it lets say

    $XXXXXX

    it doesn't come up.

    somebody told me that you have to have 2 plugins to cache & fetch the templates so that they will register in vb.


    Is $XXXXXXXXXX a custom template you made? If so, you'll need 2 plugins, one to cache it and one to fetch it.

    Plugin 1: cache_templates
    $globaltemplates[] = 'template_name_here';

    Plugin 2: global_start
    eval('$XXXXXXXXXX = "' . fetch_template('template_name_here') . '";');

    Are these file modifications and if so, can somebody tell me which files.

    Also if there is more in depth documentation on this somewhere can u please point me to it.

    thx
  • Andy Huang
    Senior Member
    • Feb 2004
    • 4602

    #2
    To use custom templates on your pages, you will need to edit files or use custom plugins to cache them and to load them. We don't officially provide custom coding support, so you will need to venture to vbulletin.org for further assistance.

    The above mentioned method is to load templates using plugins, and you can create plugins via Admin CP > Plugins & Products > Plugin Manager
    Best Regards,
    Andy Huang

    Comment

    • adnan2007
      Member
      • Jun 2007
      • 46

      #3
      Ok thx Andy

      I found something in your documentation that may help me out

      Including External Files Warning:
      This is considered modifying the code. To get further help and support with including external files you will need to visit http://www.vbulletin.org/.

      If you have a PHP or HTML file that you want to include in your vBulletin forum, create a plugin that references that file. Then add a variable to the template of your choice where that file's contents should appear.
      tak care

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎