Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 15th, 2012  |  syntax: HTML  |  size: 2.95 KB  |  hits: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!-- add this to img.header.tpl. I removed some unused features like RSS and watched threads. You can add them easily -->
  2. <link rel="stylesheet" type="text/css" href="{$cwebpath}css/yobaheader.css" />
  3.  
  4. <header>
  5.     <div id="naw">
  6.                 <nav>
  7.                 {if $replythread neq 0}
  8.                         <a href="{%KU_WEBFOLDER}{$board.name}/" class="retarrrow"><span>&larr;</span></a>
  9.                         <span class="divider-naw"></span>
  10.                 {/if}
  11.                 {if $replythread neq 0}
  12.                         <span class="nawbox">&#62;&#62;</span>
  13.                 {/if}
  14.                         <span id= "boardsel" class="nawbox" {if $replythread neq 0}style="padding: 0 4px;"{/if}>
  15.                         <select onchange="javascript:if(selectedIndex != 0)location.href='{%KU_BOARDSPATH}/' + this.options[this.selectedIndex].value;">
  16.                                 <option>/{$board.name}/</option>
  17.                                 {foreach name=sections item=sect from=$boardlist}
  18.                                         {foreach name=brds item=brd from=$sect}
  19.                                                 {if $brd.name neq $board.name}
  20.                                                 <option value="{$brd.name}">/{$brd.name}/</option>
  21.                                                 {/if}
  22.                                         {/foreach}
  23.                                 {/foreach}
  24.                         </select>
  25.                         </span>
  26. <!-- the rest code is only if it's not a reply. I did this because of the same problem: img_header couldn't access {$posts.0.id}. Notice that [header] does not close if it is a reply. It is continued in img_reply_header -->
  27.                 {if $replythread eq 0}
  28.                         <span class="divider-naw"></span>
  29.                         <a href="#bottom">&darr;</a>
  30.                         <a href="#top">&uarr;</a>
  31.                         <span class="divider-naw"></span>
  32.             {if $thispage neq 0}
  33.                                 <a href="{%KU_BOARDSFOLDER}{$board.name}/{if ($thispage-1) neq 0}{$thispage-1}.html{/if}">{t}Previous{/t}</a>
  34.                         {/if}
  35.                         <span class="nawbox" id="pnum">{$thispage}</span>
  36.                         {if $thispage neq $numpages}
  37.                                 <a href="{%KU_BOARDSPATH}/{$board.name}/{$thispage+1}.html">{t}Next{/t}</a>
  38.                         {/if}
  39.         </nav>
  40.                 <a class="nawright" href="{%KU_WEBPATH}" target="_top">{t}Home{/t}</a>
  41.                 <a class="nawright" href="#" onclick="javascript:options();return false">{t}Options{/t}</a>
  42.                 <span class="nawright">
  43.                         <select style= "width: 5em;" onchange="javascript:if(selectedIndex != 0)set_stylesheet(options[selectedIndex].value);return false;">
  44.                                 <option>{t}Styles{/t}</option>
  45.                         {loop $ku_styles}
  46.                                 <option value="{$|capitalize}">{$|capitalize}</option>;
  47.                         {/loop}
  48.                         </select>
  49.                 </span>
  50.         </div>
  51. </header>
  52.                 {/if}
  53.  
  54. <!-- and this is reply_header -->
  55. <span class="nawbox">{$posts.0.id}</span>
  56. <span class="divider-naw"></span>
  57.                         <a href="#bottom">&darr;</a>
  58.                         <a href="#top">&uarr;</a>
  59.                         <span class="divider-naw"></span>
  60.         </nav>
  61.                 <a class="nawright" href="{%KU_WEBPATH}" target="_top">{t}Home{/t}</a>
  62.                 <a class="nawright" href="#" onclick="javascript:options();return false">{t}Options{/t}</a>
  63.                 <span class="nawright">
  64.                         <select style= "width: 5em;" onchange="javascript:if(selectedIndex != 0)set_stylesheet(options[selectedIndex].value);return false;">
  65.                                 <option>{t}Styles{/t}</option>
  66.                         {loop $ku_styles}
  67.                                 <option value="{$|capitalize}">{$|capitalize}</option>;
  68.                         {/loop}
  69.                         </select>
  70.                 </span>
  71.         </div>
  72. </header>