Advertisement
Guest User

ss

a guest
Jul 17th, 2012
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. ### Board class mod for Kusaba X ###
  2. First run these SQL commands in the SQL query.
  3. 1.
  4. DROP TABLE `ads`;
  5.  
  6. 1.5
  7.  
  8.  
  9. CREATE TABLE `ads` (
  10. `id` smallint(1) unsigned NOT NULL,
  11. `position` varchar(11) NOT NULL,
  12. `disp` tinyint(1) NOT NULL,
  13. `boards` varchar(255) NOT NULL,
  14. `code` text NOT NULL
  15. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  16.  
  17. 2.
  18. INSERT INTO `ads` (`id`, `position`, `disp`, `boards`, `code`) VALUES (1, 'sfwtop', 0, '', 'SFW Right Frame Top'), (2, 'sfwbot', 0, '', 'SFW Right Frame Bottom'), (3, 'nsfwtop', 0, '', 'NSFW Right Frame Top'), (4, 'nsfwbot', 0, '', 'NSFW Right Frame Bottom');
  19.  
  20. 3.
  21. ALTER TABLE `boards` ADD `enableads` tinyint(1) NOT NULL default '1';
  22.  
  23. 4.
  24. ALTER TABLE `boards` ADD `boardclass` tinyint(1) NOT NULL default '1';
  25.  
  26. /******************************************** NOTE ********************************************/
  27. If you have KU_DBPREFIX set to something then put that prefix before ads so it would look like this
  28. INSERT INTO `PREFIX_ads`
  29. /**********************************************************************************************/
  30.  
  31. Second open up 'inc/classes/board-post.class.php
  32. Follow these instructions
  33. http://pastebin.com/scniffp9
  34.  
  35. Third open up 'inc/classes/manage.class.php'
  36. Follow these instructions
  37. http://pastebin.com/kQ97H6NM
  38.  
  39. Fourth open up all your *_post_box.tpl (Edit Templates via manage.php)
  40. Follow these instructions
  41. http://pastebin.com/6w7vEiss
  42.  
  43. Fifth open up all your *_footer.tpl
  44. Follow these instructions
  45. http://pastebin.com/U9jkpTNy
  46.  
  47. If all went well you should now have 'Board Classes' and the option to disable ads on certain boards..
  48.  
  49. #####################################
  50. Credits : grumpy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement