Hoe voer ik deze SQL nou uit, en waar moet ik wat editen. Het is in PhpBB maar het lukt niet, ik krijg elke keer een error
CREATE TABLE `phpbb_lastrss_autopost` (
`name` varchar(255) collate utf8_bin NOT NULL,
`url` varchar(255) collate utf8_bin NOT NULL,
`next_check` int(10) NOT NULL,
`next_check_after` int(2) NOT NULL,
`destination_id` int(3) NOT NULL,
`enabled` int(1) NOT NULL,
PRIMARY KEY (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
INSERT INTO `phpbb_lastrss_autopost` (`name`, `url`, `next_check`, `next_check_after`, `destination_id`, `enabled`) VALUES
('lastRSS', 'http://phpbb3.smika.net/lastrss.php', 0, 1, 1, 1);
INSERT INTO `phpbb_config` (`config_name`, `config_value`, `is_dynamic`) VALUES
('lastrss_type', 'curl', 0),
('lastrss_ap_version', '0.1.0', 0),
('lastrss_ap_enabled', '1', 0),
('lastrss_ap_items_limit', '5', 0),
('lastrss_ap_bot_id', '2', 0);
Dit is extra informatie!
1. New config values - what do they mean?
$config['lastrss_ap_enabled'] = 1; (boolean - if true, ap is enabled and feeds are checked)
$config['lastrss_ap_items_limit'] = 5; (number of items which is bot trying to post)
$config['lastrss_ap_bot_id'] = 143; (user_id of user, which will post it to forum)
- all those config values are in database table config of your phpbb install ...
2. How to manage lastRSS autoposting bot without ACP ?
(ACP will be introduced with release of version 0.2.0)
- all configuration for feeds of lastRSS autoposting bot is in database table
phpbb_lastrss_autopost ...
Columns explanation :
`name` - name of the feed - is also used in posting
`url` - URL of the feed ...
`next_check` - next check time (from PHP function time())
`next_check_after` - number of hours between checks
`destination_id` - forum_id where BOT will try to post
`enabled` INT( 1 ) - boolean - if true, this feed will be checked
Alvast bedankt!