Advertisement
Kinu-chan

Better Capcodes for Kusaba X

Dec 23rd, 2012
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. [----Better Capcodes for Kusaba X----]
  2. Just do as it tells you and it will work.
  3. They look like: Anonymous ## Admin, with css colour, letter border and shade effects applied to both the name and capcode.
  4. Check 34pchan.org to see it in action.
  5.  
  6. 1. CSS:
  7. Make a new file called global.css in your css folder.
  8. Paste into it:
  9.  
  10. /*new capcodes*/
  11. #y {
  12. color: #c3f;
  13. font-weight:bold;
  14. text-shadow: 0 -1px #000, 1px 0 #000, 0 1px #000, -1px 0 #000, 0 3px 5px #c3f;
  15. font-family:tahoma,arial,helvetica,sans-serif;
  16. }
  17. #ymd {
  18. color: #d03;
  19. font-weight:bold;
  20. text-shadow: 0 -1px #000, 1px 0 #000, 0 1px #000, -1px 0 #000, 0 3px 5px #d03;
  21. font-family:tahoma,arial,helvetica,sans-serif;
  22. }
  23. /*new capcodes*/
  24.  
  25. Then, paste into /dwoo/templates/global_board_header.tpl:
  26.  
  27. <link rel="stylesheet" type="text/css" href="{$cwebpath}/css/global.css">
  28.  
  29. 2. img_board_page.tpl and img_thread.tpl:
  30. These files both have the two bits you need to change twice each.
  31.  
  32. So open /dwoo/templates/image_board_page.tpl and /dwoo/templates/image_thread.tpl and find:
  33.  
  34. <span class="postername">
  35.  
  36. and replace it with:
  37.  
  38. <!--capcode stylings on names-->
  39. {strip}
  40. {if $post.posterauthority eq 1}
  41. <span id="y" class="postername">
  42. {elseif $post.posterauthority eq 2}
  43. <span id="ymd" class="postername">
  44. {elseif $post.posterauthority eq 4}
  45. <span id="ymd" class="postername">
  46. {else}
  47. <span class="postername">
  48. {/if}
  49. {/strip}
  50. <!--capcode stylings on names-->
  51.  
  52. twice in each file.
  53. Then, find:
  54.  
  55. {if $post.posterauthority eq 1}
  56. <span class="admin">
  57. &#35;&#35;&nbsp;{t}Admin{/t}&nbsp;&#35;&#35;
  58. </span>
  59. {elseif $post.posterauthority eq 4}
  60. <span class="mod">
  61. &#35;&#35;&nbsp;{t}Super Mod{/t}&nbsp;&#35;&#35;
  62. </span>
  63. {elseif $post.posterauthority eq 2}
  64. <span class="mod">
  65. &#35;&#35;&nbsp;{t}Mod{/t}&nbsp;&#35;&#35;
  66. </span>
  67. {/if}
  68.  
  69. and replace it with:
  70.  
  71. <!--capcode stylings on capcodes-->
  72. {if $post.posterauthority eq 1}
  73. <span class="admin" id="y">
  74. &#35;&#35;&nbsp;{t}Admin{/t}
  75. </span>
  76. {elseif $post.posterauthority eq 4}
  77. <span class="mod" id="ymd">
  78. &#35;&#35;&nbsp;{t}Super Mod{/t}
  79. </span>
  80. {elseif $post.posterauthority eq 2}
  81. <span class="mod" id="ymd">
  82. &#35;&#35;&nbsp;{t}Mod{/t}
  83. </span>
  84. {/if}
  85. <!--capcode stylings on capcodes-->
  86.  
  87. twice in each file.
  88.  
  89. And that's it! If you use other board types repeat step 2 with the relative template files.
  90. Let me know if you have any problems at mail@34pchan.org, or find me lurking kusabax.culnet.net/sup/ or 34pchan.org/s/ as either (=^・ェ・^=)!p3l2W3bRxk!!HmZQR2Lwyu or (=^・ェ・^=)!KinuB0nt8M
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement