jmyeom

fix for disabling reply preview

Aug 8th, 2011
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. in config.php find this:
  2. $cf['KU_APPEAL']
  3. under it, paste this:
  4. $cf['KU_POSTPREVIEW'] = false; // Whether or not to enable the post preview feature
  5.  
  6. then, replace your lib/javascript/kusaba.js file with this:
  7.  
  8. http://pastebin.com/QFy6jWrV
  9.  
  10. (if anyone wants to do it without replaceing the file, do the following):
  11.  
  12. find: function addreflinkpreview(e) {
  13.  
  14. under it, put:
  15.  
  16. if(postpreviewbool){
  17.  
  18.  
  19. then find:
  20.  
  21. onFailure: function(){ alert('wut'); }
  22.  
  23.  
  24. under it, you should see this:
  25.  
  26. });
  27.  
  28. replace with:
  29.  
  30. });}
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38. im sorry, i missed a a edit you have to make, this was updated on 5/12/2011, please add this aswell if you do use it
  39.  
  40. in : dwoo/templates/img_header.tpl
  41.  
  42. find: var hiddenthreads = getCookie('hiddenthreads').split('!');
  43.  
  44. under it, put this:
  45.  
  46. {if %KU_POSTPREVIEW eq true}
  47. var postpreviewbool = true;
  48. {else}
  49. var postpreviewbool = false;
  50. {/if}
  51.  
  52. should now work
Advertisement
Add Comment
Please, Sign In to add comment