[DEV] lastRSS autoposting bot MOD (0.1.1)

Recent topics, announcement display, RSS / ATOM Feed Syndication MOD Downloads
- Content delivery outside of viewtopic/viewforum.

[DEV] lastRSS autoposting bot MOD (0.1.1)

Postby Smix_cz » 14 Mar 2008, 09:16

Image
Classification: Add-on
phpBB Part: Other

MOD Name: lastRSS autoposting bot
MOD Version: 0.1.1
Author: Smix_cz
MOD Description: RSS content autoposting bot for phpBB3

Works with:
  • probably works with all phpBB 3.0 ...
  • Tested
    • GOLD

Features:
  • Automatically posting new items from RSS feed
  • NO ACP management at this time

Live demo board

Requirements:
  • Your webhosting must allow fopen or curl

Language: ... none, but English off course

Licence: GNU General Public License v2
NOTICE : This mod is based on lastRSS agregator php library by Vojtech Semecky, http://lastrss.oslab.net/

Installation Level: Easy
Installation Time: 3 Minutes
Format: txt (MODX will be introduced in 0.3.0)

Download File:
http://download.smika.net/?download=6 (always actual link)

NOTICE :
If you are using lastRSS agregator mod , do not insert into database ('lastrss_type', 'curl', 0), - it´s already in table ...
Install SQL for you
Spoiler:
Code: Select all
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);


How to configure? ... You´ll have to configure it manually via database (phpmyadmin) ...
Spoiler:
Code: Select all
lastRSS RSS autoposting bot (lRAB)
SHORT MANUAL

Content
1. New config values - what do they mean?
2. How to manage lastRSS autoposting bot without ACP ?

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
Smix_cz    
Borg Drone
Borg Drone
 
Posts: 226
Joined: 25 Jan 2007, 09:25
Location: Czech Republic, EU
Favorite Team: Chelsea
Gender: Male
phpBB Knowledge: 9


Re: [DEV] lastRSS autoposting bot MOD (0.1.1)

Postby Smix_cz » 27 Mar 2008, 01:07

package v0.1.1 released ...
Smix_cz    
Borg Drone
Borg Drone
 
Posts: 226
Joined: 25 Jan 2007, 09:25
Location: Czech Republic, EU
Favorite Team: Chelsea
Gender: Male
phpBB Knowledge: 9

Re: [DEV] lastRSS autoposting bot MOD (0.1.1)

Postby andrewgalpin » 09 May 2008, 13:43

Awesome :) thanks i have to try this!!!

Andy
andrewgalpin    
Supporter
Supporter
 
Posts: 51
Joined: 04 Oct 2007, 15:50
Gender: Male
phpBB Knowledge: 1

Re: [DEV] lastRSS autoposting bot MOD (0.1.1)

Postby matt691 » 16 May 2008, 08:10

Gave it a quick go and works but maybe not quite how I would have liked, especially with when it outputs html into posts or if the rss has just a sentence or two and link for more on click.

But probably down to the rss not the mod

At least the mod works :)
matt691
Ensign
Ensign
 
Posts: 89
Joined: 08 Aug 2007, 08:07
Gender: Male

Re: [DEV] lastRSS autoposting bot MOD (0.1.1)

Postby Smix_cz » 16 May 2008, 13:17

Well, thanks for your report ...

I´m trying to strip the HTML tags as much as I can, but I can only say, that valid feeds are posted in right way ... RSS shouldn´t use HTML ...

Anyway, thank you for the report and I´ll try to do my best to fix it in future releases ... ;)
Smix_cz    
Borg Drone
Borg Drone
 
Posts: 226
Joined: 25 Jan 2007, 09:25
Location: Czech Republic, EU
Favorite Team: Chelsea
Gender: Male
phpBB Knowledge: 9

Re: [DEV] lastRSS autoposting bot MOD (0.1.1)

Postby andrewgalpin » 16 May 2008, 14:23

When are you releasing the next version :) i might just go ahead and install this one if its a while :)
andrewgalpin    
Supporter
Supporter
 
Posts: 51
Joined: 04 Oct 2007, 15:50
Gender: Male
phpBB Knowledge: 1

Re: [DEV] lastRSS autoposting bot MOD (0.1.1)

Postby Smix_cz » 16 May 2008, 14:32

I releasing now (= soon) RC2 of my agregator mod and than I'll move on APB mod ...
Smix_cz    
Borg Drone
Borg Drone
 
Posts: 226
Joined: 25 Jan 2007, 09:25
Location: Czech Republic, EU
Favorite Team: Chelsea
Gender: Male
phpBB Knowledge: 9

Re: [DEV] lastRSS autoposting bot MOD (0.1.1)

Postby andrewgalpin » 16 May 2008, 14:43

awesome i shall wait then!!
andrewgalpin    
Supporter
Supporter
 
Posts: 51
Joined: 04 Oct 2007, 15:50
Gender: Male
phpBB Knowledge: 1

Re: [DEV] lastRSS autoposting bot MOD (0.1.1)

Postby andrewgalpin » 02 Jun 2008, 10:50

we have a beta release date yet :)
andrewgalpin    
Supporter
Supporter
 
Posts: 51
Joined: 04 Oct 2007, 15:50
Gender: Male
phpBB Knowledge: 1

Re: [DEV] lastRSS autoposting bot MOD (0.1.1)

Postby Smix_cz » 02 Jun 2008, 10:58

Beta? ... This is still in development, because there is nothing new at this time. I´ve got few people with one bug, which I´m unable to fix without their help, but they are almost not online :cray: ... I think I´ve fixed everything and I´ll release RC2 this week ...
Bot is still untouched in DEV 0.1.1 ...
Smix_cz    
Borg Drone
Borg Drone
 
Posts: 226
Joined: 25 Jan 2007, 09:25
Location: Czech Republic, EU
Favorite Team: Chelsea
Gender: Male
phpBB Knowledge: 9

Next

Return to Recent Topics, RSS / ATOM Syndication MODs

Who is online

Users browsing this forum: No registered users and 2 guests