Monni

YaBB 2.6.0 default template hack

Aug 17th, 2014
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 14.44 KB | None | 0 0
  1. Index: cgi-bin/yabb2/Templates/default/Bdaylist.template
  2. ===================================================================
  3. --- cgi-bin/yabb2/Templates/default/Bdaylist.template   (revision 1534)
  4. +++ cgi-bin/yabb2/Templates/default/Bdaylist.template   (working copy)
  5. @@ -47,8 +47,8 @@
  6.          <col style="width:70%" />
  7.      </colgroup>
  8.      <tr>
  9. -        <td style="padding-left:1%">$var_cal{'caltitle'}</td>
  10. -        <td class="right" style="padding-right:1%">{yabb calgotobox}</td>
  11. +        <td class="head-left">$var_cal{'caltitle'}</td>
  12. +        <td class="head-right">{yabb calgotobox}</td>
  13.      </tr>
  14.  </table>
  15.  <table class="bordercolor pad_4px cs_thin">
  16. Index: cgi-bin/yabb2/Templates/default/BoardIndex.template
  17. ===================================================================
  18. --- cgi-bin/yabb2/Templates/default/BoardIndex.template (revision 1534)
  19. +++ cgi-bin/yabb2/Templates/default/BoardIndex.template (working copy)
  20. @@ -33,6 +33,7 @@
  21.  $sub_extern = 'extern_sub.png';
  22.  $tabfill = q~~;
  23.  $topiccut = 25;
  24. +$brdpicwidth = (defined $max_brd_img_width ? $max_brd_img_width : 50) + 20;
  25.  
  26.  $boardindex_template = qq~<!-- Default Board Graphics courtesy of http://www.shapes4free.com/ -->
  27.  <!-- Board Index Showcase Poll start -->
  28. @@ -68,19 +69,14 @@
  29.  $boardindex_template .= qq~
  30.  <!-- Info Center block start -->
  31.          <table class="tabtitle tabtitle-text" style="margin-top:1em">
  32. -            <colgroup>
  33. -                <col style="width:1%" />
  34. -                <col style="width:99%" />
  35. -            </colgroup>
  36.              <tr>
  37. -                <td>&nbsp;</td>
  38. -                <td>$boardindex_txt{'200'}</td>
  39. +                <td class="head-left" style="width:100%">$boardindex_txt{'200'}</td>
  40.              </tr>
  41.          </table>
  42.          <table class="bordercolor pad_4px cs_thin">
  43.              <colgroup>
  44. -                <col style="width:6%" />
  45. -                <col style="width:94%" />
  46. +                <col style="width:${brdpicwidth}px" />
  47. +                <col style="width:auto" />
  48.              </colgroup>
  49.              <tr>
  50.                  <td class="windowbg center">
  51. @@ -104,28 +100,23 @@
  52.                  </td>
  53.                  <td class="windowbg2 info-center center vtop">
  54.                      <div class="small" style="float: left; width: 90%; text-align: left;">
  55. -                    $boardindex_txt{'800'} <b>{yabb mostusers}</b>$maintxt{'30b'} $maintxt{'30'} {yabb mostusersdate}.<br />
  56. -                    $boardindex_txt{'801'} <b>{yabb mostmembers}</b>$maintxt{'30b'} $maintxt{'30'} {yabb mostmembersdate}.<br />
  57. -                    $boardindex_txt{'802'} <b>{yabb mostguests}</b>$maintxt{'30b'} $maintxt{'30'} {yabb mostguestsdate}.<br />
  58. -                    $boardindex_txt{'803'} <b>{yabb mostbots}</b>$maintxt{'30b'} $maintxt{'30'} {yabb mostbotsdate}.
  59. +                    $boardindex_txt{'800'} <b>{yabb mostusers}</b> $maintxt{'30b'} $maintxt{'30'} {yabb mostusersdate}.<br />
  60. +                    $boardindex_txt{'801'} <b>{yabb mostmembers}</b> $maintxt{'30b'} $maintxt{'30'} {yabb mostmembersdate}.<br />
  61. +                    $boardindex_txt{'802'} <b>{yabb mostguests}</b> $maintxt{'30b'} $maintxt{'30'} {yabb mostguestsdate}.<br />
  62. +                    $boardindex_txt{'803'} <b>{yabb mostbots}</b> $maintxt{'30b'} $maintxt{'30'} {yabb mostbotsdate}.
  63.                      </div>
  64.                  </td>
  65.              </tr>
  66.          </table>
  67.          <table class="tabtitle tabtitle-text" style="margin-top:10px">
  68. -            <colgroup>
  69. -                <col style="width:1%" />
  70. -                <col style="width:99%" />
  71. -            </colgroup>
  72.              <tr>
  73. -                <td>&nbsp;</td>
  74. -                <td>$boardindex_txt{'158'}</td>
  75. +                <td class="head-left" style="width:100%">$boardindex_txt{'158'}</td>
  76.              </tr>
  77.          </table>
  78.          <table class="bordercolor pad_4px cs_thin mar-bot">
  79.              <colgroup>
  80. -                <col style="width:6%" />
  81. -                <col style="width:94%" />
  82. +                <col style="width:${brdpicwidth}px" />
  83. +                <col style="width:auto" />
  84.              </colgroup>
  85.              <tr>
  86.                  <td class="windowbg info-center center">
  87. @@ -163,15 +154,13 @@
  88.  $catheader = qq~
  89.          <table class="tabtitle tabtitle-text">
  90.              <colgroup>
  91. -                <col style="width:1%" />
  92. -                <col style="width:59%" />
  93. +                <col style="width:60%" />
  94.                  <col style="width:8%" />
  95.                  <col style="width:8%" />
  96.                  <col style="width:24%" />
  97.              </colgroup>
  98.              <tr>
  99. -                <td>&nbsp;</td>
  100. -                <td>{yabb catimage} {yabb catrss} {yabb catlink}</td>
  101. +                <td class="head-left">{yabb catimage} {yabb catrss} {yabb catlink}</td>
  102.                  <td class="center">$boardindex_txt{'330'}</td>
  103.                  <td class="center">$boardindex_txt{'21'}</td>
  104.                  <td class="center">$boardindex_txt{'22'}</td>
  105. @@ -183,8 +172,8 @@
  106.          </table>
  107.          <table {yabb boardtable} class="bordercolor pad_4px cs_thin mar-bot;" style="table-layout:fixed">
  108.              <colgroup>
  109. -                <col style="width:6%" />
  110. -                <col style="width:54%" />
  111. +                <col style="width:${brdpicwidth}px" />
  112. +                <col style="width:auto" />
  113.                  <col style="width:8%" />
  114.                  <col style="width:8%" />
  115.                  <col style="width:24%" />
  116. Index: cgi-bin/yabb2/Templates/default/Calendar.template
  117. ===================================================================
  118. --- cgi-bin/yabb2/Templates/default/Calendar.template   (revision 1534)
  119. +++ cgi-bin/yabb2/Templates/default/Calendar.template   (working copy)
  120. @@ -23,8 +23,8 @@
  121.  ## Calendar go to date forms ($mycalout_goto_main for BoardIndex, mini cal display, add and edit events. $mycalout_gottobox for day event display ##
  122.  
  123.  $mycalout_goto_main = qq~<tr>
  124. -        <td style="padding-left:1%">$var_cal{'caltitle'} </td>
  125. -        <td class="right" style="padding-right:1%">{yabb calgotobox} </td>
  126. +        <td class="head-left">$var_cal{'caltitle'} </td>
  127. +        <td class="head-right">{yabb calgotobox} </td>
  128.      </tr>
  129.  </table>
  130.  <table class="pad_3px">
  131. @@ -41,10 +41,10 @@
  132.              <col style="width:70%" />
  133.         </colgroup>
  134.          <tr>
  135. -            <td style="padding-left:1%">
  136. -                <!--<img src="$yyhtml_root/Templates/Forum/default/$cal_eventcal" alt="" /> --> $var_cal{'caltitle'}
  137. +            <td class="head-left">
  138. +                $var_cal{'caltitle'}
  139.              </td>
  140. -            <td class="right" style="padding-right:1%">
  141. +            <td class="head-right">
  142.                  {yabb calgotobox}
  143.              </td>
  144.          </tr>
  145. Index: cgi-bin/yabb2/Templates/default/Loginout.template
  146. ===================================================================
  147. --- cgi-bin/yabb2/Templates/default/Loginout.template   (revision 1534)
  148. +++ cgi-bin/yabb2/Templates/default/Loginout.template   (working copy)
  149. @@ -23,7 +23,7 @@
  150.  $myborder_with_title
  151.  <table class="pad_4px cs_thin" style="margin-top:10px">
  152.      <tr>
  153. -        <td class="tabtitle" style="height:25px; padding-left:1%"><b>{yabb sharedLogin_title}</b></td></tr>~;
  154. +        <td class="tabtitle head-left h_25px"><b>{yabb sharedLogin_title}</b></td></tr>~;
  155.  
  156.  $mysharedlogb = qq~<tr>
  157.          <td class="windowbg" colspan="2">{yabb sharedLogin_text}</td>
  158. @@ -36,13 +36,8 @@
  159.  $mysharedlog_top = qq~
  160.  $myborder
  161.  <table class="tabtitle tabtitle-text" style="margin-top:10px">
  162. -   <colgroup>
  163. -        <col style="width:1%" />
  164. -        <col style="width:99%" />
  165. -   </colgroup>
  166.      <tr>
  167. -        <td>&nbsp;</td>
  168. -        <td>$loginout_txt{'34'}</td>
  169. +        <td class="head-left" style="width:100%">$loginout_txt{'34'}</td>
  170.      </tr>
  171.  </table>
  172.  <table class="bordercolor pad_4px cs_thin">
  173. Index: cgi-bin/yabb2/Templates/default/Other.template
  174. ===================================================================
  175. --- cgi-bin/yabb2/Templates/default/Other.template  (revision 1534)
  176. +++ cgi-bin/yabb2/Templates/default/Other.template  (working copy)
  177. @@ -19,7 +19,7 @@
  178.  $my_ipdiv = qq~
  179.  <table class="tabtitle">
  180.      <tr>
  181. -        <td style="padding-left:1%"><img src="$micon_bg{'ip'}" alt="" /> $lookup_txt{'iplookup'} - {yabb ip}</td>
  182. +        <td class="head-left"><img src="$micon_bg{'ip'}" alt="" /> $lookup_txt{'iplookup'} - {yabb ip}</td>
  183.      </tr>
  184.  </table>
  185.  <table class="pad_4px cs_thin">
  186. Index: cgi-bin/yabb2/Templates/default/Post.template
  187. ===================================================================
  188. --- cgi-bin/yabb2/Templates/default/Post.template   (revision 1534)
  189. +++ cgi-bin/yabb2/Templates/default/Post.template   (working copy)
  190. @@ -29,7 +29,7 @@
  191.  ## Post Top
  192.  $mypost_title = qq~{yabb my_topper}<table class="tabtitle">
  193.      <tr>
  194. -        <td style="padding-left:1%">
  195. +        <td class="head-left">
  196.              <img src="{yabb icon_img}" alt="" /> {yabb yytitle}
  197.          </td>
  198.      </tr>
  199. @@ -278,7 +278,7 @@
  200.  $mypost_showmessages = q~
  201.  <table class="tabtitle">
  202.      <tr>
  203. -        <td style="padding-left:1%">{yabb my_showmess_disnum}</td>
  204. +        <td class="head-left">{yabb my_showmess_disnum}</td>
  205.      </tr>
  206.  </table>{yabb my_showmess_mess}~;
  207.  
  208. Index: cgi-bin/yabb2/Templates/default/Register.template
  209. ===================================================================
  210. --- cgi-bin/yabb2/Templates/default/Register.template   (revision 1534)
  211. +++ cgi-bin/yabb2/Templates/default/Register.template   (working copy)
  212. @@ -25,7 +25,7 @@
  213.  <form action="$scripturl?action=register" method="post">
  214.  <table class="tabtitle">
  215.      <tr>
  216. -      <td style="padding-left:1%"><img src="$imagesdir/xx.gif" alt="" /> $register_txt{'764a'}</td>
  217. +      <td class="head-left"><img src="$imagesdir/xx.gif" alt="" /> $register_txt{'764a'}</td>
  218.      </tr>
  219.  </table>
  220.  <table>
  221. @@ -70,7 +70,7 @@
  222.  $myregister_regfill_a = qq~
  223.  <table class="tabtitle">
  224.      <tr>
  225. -        <td style="padding-left:1%; height:30px">
  226. +        <td class="head-left" style="height:30px">
  227.              <img src="$imagesdir/register.gif" alt="$register_txt{'97'}" title="$register_txt{'97'}" /> $register_txt{'517'}
  228.          </td>
  229.      </tr>
  230. @@ -303,9 +303,9 @@
  231.  
  232.  $myregister_pending = qq~
  233.              <div class="bordercolor" style="width: 650px; margin-bottom: 8px; margin-left: auto; margin-right: auto;">
  234. -                <table class="tabtitle">
  235. +                <table class="tabtitle h_25px">
  236.                      <tr>
  237. -                        <td style="padding-left:1%; height:25px"><img src="$imagesdir/register.gif" alt="$prereg_txt{'1a'}" title="$prereg_txt{'1a'}" /><b>$prereg_txt{'1a'}</b></td>
  238. +                        <td class="head-left"><img src="$imagesdir/register.gif" alt="$prereg_txt{'1a'}" title="$prereg_txt{'1a'}" /><b>$prereg_txt{'1a'}</b></td>
  239.                      </tr>
  240.                  </table>
  241.                  <table class="pad_4px cs_thin">
  242. @@ -317,9 +317,9 @@
  243.  
  244.  $myregister_password = qq~
  245.      <div class="bordercolor" style="width: 650px; margin-bottom: 8px; margin-left: auto; margin-right: auto;">
  246. -        <table class="tabtitle">
  247. +        <table class="tabtitle h_25px">
  248.              <tr>
  249. -                <td style="padding-left:1%; height:25px"><b>$register_txt{'97'}</b></td>
  250. +                <td class="head-left"><b>$register_txt{'97'}</b></td>
  251.              </tr>
  252.          </table>
  253.          <table class="pad_4px cs_thin">
  254. @@ -334,9 +334,9 @@
  255.  $myregister_welcome = qq~
  256.              <form action="$scripturl?action=login2" method="post">
  257.              <div class="bordercolor" style="width: 400px; margin-bottom: 8px; margin-left: auto; margin-right: auto;">
  258. -                <table class="tabtitle">
  259. +                <table class="tabtitle h_25px">
  260.                  <tr>
  261. -                    <td style="padding-left:1%; height:25px">
  262. +                    <td class="head-left">
  263.                          <img src="$imagesdir/register.gif" alt="$register_txt{'97'}" title="$register_txt{'97'}" /> <b>$register_txt{'97'}</b>
  264.                      </td>
  265.                 </tr>
  266. @@ -358,11 +358,13 @@
  267.  
  268.  $myregister_prereg1 = qq~
  269.                  <div class="bordercolor" style="width: 650px; margin-bottom: 8px; margin-left: auto; margin-right: auto;">
  270. -                    <table class="tabtitle">
  271. +                    <table class="tabtitle h_25px">
  272.                          <tr>
  273. -                            <td style="padding-left:1%; height:25px"><img src="$imagesdir/register.gif" alt="$prereg_txt{'1a'}" title="$prereg_txt{'1a'}" /><b>$prereg_txt{'1a'}</b></td>
  274. +                            <td class="head-left"><img src="$imagesdir/register.gif" alt="$prereg_txt{'1a'}" title="$prereg_txt{'1a'}" /><b>$prereg_txt{'1a'}</b></td>
  275. +                        </tr>
  276.                      </table>
  277.                      <table class="pad_4px cs_thin">
  278. +                        <tr>
  279.                              <td class="windowbg">$prereg_txt{'13'}</td>
  280.                          </tr>
  281.                      </table>
  282. @@ -369,13 +371,15 @@
  283.                  </div>~;
  284.  
  285.  $myregister_prereg2 = qq~
  286. -        <table class="tabtitle" style="width:650px">
  287. +        <table class="tabtitle h_25px" style="width:650px">
  288.              <tr>
  289. -                <td style="padding-left:1%; height:25px" colspan="2">
  290. +                <td class="head-left">
  291.                      <img src="$imagesdir/register.gif" alt="$prereg_txt{'1a'}" title="$prereg_txt{'1a'}" /> <b>$prereg_txt{'1a'}</b>
  292.                  </td>
  293. -            </table>
  294. -            <table class="pad_4px cs_thin" style="width:650px">
  295. +            </tr>
  296. +        </table>
  297. +        <table class="pad_4px cs_thin" style="width:650px">
  298. +            <tr>
  299.                  <td class="windowbg center" colspan="2">
  300.                      <br />$prereg_txt{'5'}~;
  301.  
  302. Index: public_html/yabbfiles/Templates/Forum/default.css
  303. ===================================================================
  304. --- public_html/yabbfiles/Templates/Forum/default.css   (revision 1534)
  305. +++ public_html/yabbfiles/Templates/Forum/default.css   (working copy)
  306. @@ -134,6 +134,15 @@
  307.      vertical-align: middle;
  308.  }
  309.  
  310. +td.head-left {
  311. +    padding-left: 14px;
  312. +}
  313. +
  314. +td.head-right {
  315. +   padding-right: 14px;
  316. +   text-align: right;
  317. +}
  318. +
  319.  table.cs_thin {
  320.      border-collapse: separate;
  321.      border-spacing: 1px;
  322. @@ -167,7 +176,7 @@
  323.  
  324.  .bottom { vertical-align: bottom; }
  325.  
  326. -.small { font-size: 10px !important; }
  327. +.small, .small a { font-size: 10px !important; }
  328.  
  329.  .green, .none { display: none; }
Add Comment
Please, Sign In to add comment