Why a template is not working

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

    Why a template is not working

    Hi
    I edited the navbar template

    <div align="center">
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
    <tr align="center">
    $XXXXXXXXXX
    $template_hook[navbar_buttons_left]


    The code in template $XXXXXXX doesn't show.

    Would anybody know why the html in $XXXXXX is not showing?

    thx
  • Analogpoint
    Senior Member
    • Feb 2007
    • 519
    • 3.6.x

    #2
    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') . '";');
    My vBulletin Modifications.

    Comment

    • adnan2007
      Member
      • Jun 2007
      • 46

      #3
      Yes it is Angalogpoint.

      Right now i've got the code in $XXXXXXXX hard coded. Is that a good way? Does it save any memory or anything?

      Im new on vB

      Can u kindly plz explain to me Plugin 1 & 2 in just a little more detail and that should get me in the right direction.

      much appreciated
      adnan

      Comment

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