Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Board class mod for Kusaba X ###
- First run these SQL commands in the SQL query.
- 1.
- DROP TABLE `ads`;
- 1.5
- CREATE TABLE `ads` (
- `id` smallint(1) unsigned NOT NULL,
- `position` varchar(11) NOT NULL,
- `disp` tinyint(1) NOT NULL,
- `boards` varchar(255) NOT NULL,
- `code` text NOT NULL
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- 2.
- 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');
- 3.
- ALTER TABLE `boards` ADD `enableads` tinyint(1) NOT NULL default '1';
- 4.
- ALTER TABLE `boards` ADD `boardclass` tinyint(1) NOT NULL default '1';
- /******************************************** NOTE ********************************************/
- If you have KU_DBPREFIX set to something then put that prefix before ads so it would look like this
- INSERT INTO `PREFIX_ads`
- /**********************************************************************************************/
- Second open up 'inc/classes/board-post.class.php
- Follow these instructions
- http://pastebin.com/scniffp9
- Third open up 'inc/classes/manage.class.php'
- Follow these instructions
- http://pastebin.com/kQ97H6NM
- Fourth open up all your *_post_box.tpl (Edit Templates via manage.php)
- Follow these instructions
- http://pastebin.com/6w7vEiss
- Fifth open up all your *_footer.tpl
- Follow these instructions
- http://pastebin.com/U9jkpTNy
- If all went well you should now have 'Board Classes' and the option to disable ads on certain boards..
- #####################################
- Credits : grumpy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement