Hoe voer ik deze SQL nou uit (2/2)
  Dutch Topics, DO NOT reply in other languages than Dutch !  

Roov    posted on 30-07-2008 15:15
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!




What do you think about Hoe voer ik deze SQL nou uit ??

Vote :   

jannickv    posted on 31-07-2008 14:24
standaard toont hij enkel dee eerste 30 rijen Winking my eye

zo pas je dit aan:
boven de tabel met de inhoud zie je staan "Toon ... rijen beginend bij ..." deze staat nu hoogst wss op "Toon 30 rijen beginend bij 30" wijzig dit in "Toon 9999 rijen beginend bij 0"

edit: of draai deze query: SELECT * FROM `phpbb_config` WHERE `config_name` = 'lastrss_type'
plak of print screen het resultaat hier ff heen

User edit by jannickv on 31-07-2008 @ 14:36:41 (59%)
Roov    posted on 31-07-2008 14:47
jannickv    posted on 31-07-2008 14:51
dus de probleem maker zit er al in je kan een rij maar 1 keer invoegen Winking my eye
ik heb de rij uit je sql gehaald Winking my eye
dit is de nieuwe


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_ap_version', '0.1.0', 0),
('lastrss_ap_enabled', '1', 0),
('lastrss_ap_items_limit', '5', 0),
('lastrss_ap_bot_id', '2', 0);
 

laat me iets weten Winking my eye
Roov    posted on 31-07-2008 15:43
jannickv    posted on 31-07-2008 15:48
nu ben ik het zeker :p
je hebt die sql al een keer helemaal toegevoegd Winking my eye
wat je kan doen om zeker te zijn is
alles in stukjes erin steken Winking my eye
de onderstaande quotes steek je 1 voor 1 erin Winking my eye krijg je en duplicate error dan wil dat zeggen dat het al bestaad en moet je je geen zorgen maaken
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_ap_version', '0.1.0', 0);
 
INSERT INTO `phpbb_config` (`config_name`, `config_value`, `is_dynamic`) VALUES
('lastrss_ap_enabled', '1', 0);
 
INSERT INTO `phpbb_config` (`config_name`, `config_value`, `is_dynamic`) VALUES
('lastrss_ap_items_limit', '5', 0);
 
INSERT INTO `phpbb_config` (`config_name`, `config_value`, `is_dynamic`) VALUES
('lastrss_ap_bot_id', '2', 0);
 
als je een andere error krijgt als duplicate post hem even

succes
Roov    posted on 31-07-2008 16:01
Omg, bedankt voor je hulp maar het lukt echt niet Unhappy
http://img369.imageshack.us/img369/4453/fireshotcapture9srv0101bt1.png
jannickv    posted on 31-07-2008 16:02
die error geeft niet wat die error zegt is (in jouw geval): "die doe ik niet hoor! die zit er al in" :p
dus dan kan je gewoon door met de volgende
Roov    posted on 01-08-2008 02:48
Oké, ik heb hem goed geconfigureerd maar hij doet het nog steeds niet :S, wat moet ik invullen bij 'check after' enzo? :P
jannickv    posted on 02-08-2008 01:24
check after? waar staat dat?


  This is an old Topic

No new postings for 6.127 days.
 Post CommentThat would be 204.2 months
or a whopping 16.8 years
You might consider opening a new topic or reply anyway by pressing the green button...


98 Users online: 19 Guests (79 Unknown)
Pages generated today : 55.498
Most visitors online this month : 380
Lifetime Pageviews since 2003 : 238.728.450