[ABD] lastRSS autoposting bot MOD (0.1.4)

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
z2z
Registered User
Posts: 63
Joined: Sat Nov 25, 2006 9:35 am

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

Post by z2z »

Smix wrote: Please try the latest class_lastrss.php too, thank you ;) .
Hi,
the above link is broken!

Is it possible to post in the specific topic?
User avatar
Smix
Registered User
Posts: 482
Joined: Mon Sep 11, 2006 1:07 am

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

Post by Smix »

:oops: sorry ... correct link
z2z
Registered User
Posts: 63
Joined: Sat Nov 25, 2006 9:35 am

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

Post by z2z »

Hi,
New File is working properly. (No errors ..so far!)

I selected users(post bot) in forum permission as 'Roles: in Moderation Queue'.
After trying to post manually ..i get expected message..
"This message has been submitted successfully, but it will need to be approved by a moderator before it is publicly viewable. You will be notified when your post has been approved."

but this doesn't happen when LRAPB(new shortcut :lol: ) Mod posts! :?

Is it possible to post in the specific topic :?:
User avatar
Smix
Registered User
Posts: 482
Joined: Mon Sep 11, 2006 1:07 am

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

Post by Smix »

I´ve forgot that I´m automaticaly approving the post :? ... So in next version, I´ll add a new config value for enabling/disabling this ... Thank you for report ;)
El-Cherubin
Registered User
Posts: 30
Joined: Thu Dec 27, 2007 11:48 pm
Contact:

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

Post by El-Cherubin »

Hi Smix,


I wait the acp panel, because i'm not really able to play with mysql ;)
But i have a question.

Is it possible to make answers to topics created, with the feed of our choice?

Exemple :

Feed A, 1° article -> 1° topic
Feedt B, 1° article -> 1° topic, reply
Feed C, 1° article -> 1° topic, reply

Feed A, 2° article -> 2° topic
Feed B, 2° article -> 2° topic, reply
Feed C, 2° article -> 2° topic, reply

Feed, 3° article -> 3° topic
Feed B, 3° article -> 3° topic, reply
Feed C, 3° article -> 3° topic, reply

Thanks a lot for your job :)
Neuron Partners Neurosciences serve Digital Marketing
User avatar
Smix
Registered User
Posts: 482
Joined: Mon Sep 11, 2006 1:07 am

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

Post by Smix »

Hello,

well, this is the strangest idea which I´ve already seen :D ...

Please try to describe more closely how do you want to use it ... It´s strange to another feed will make an answer at the other feed´s topic ...

I was already thinking about rss´s topic, when all feed´s items will be posted into the same topic as replies, but your idea is beyond my strangest thoughts :lol:
El-Cherubin
Registered User
Posts: 30
Joined: Thu Dec 27, 2007 11:48 pm
Contact:

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

Post by El-Cherubin »

lol! i have often stranges ideas ;)


I explain you, i have some blogs, own by friends or me, and we are very linked, for example when one of them talk about a news in our university, all talk about, so it's the same subject.
And the advantages of the feed rss is to choise by category, for exemple domain.tld/blog/category/school-administration/feed and only the article about school administration are dispersed.

I don't know if you understand exactly what i said, because my engliss is very bad...

So, if you understand me, do you thnik it's possible to do this?

Thanks Smix.
Neuron Partners Neurosciences serve Digital Marketing
hoangpm
Registered User
Posts: 1
Joined: Sat Jul 08, 2006 9:09 am

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

Post by hoangpm »

This mod greate, but in version 0.1.1, it have a bug on woking with rss-item's subject that have quote-character. To overcome that issue, I have changed: $subject to str_ireplace("\"","\\\"",$subject) as following code-line:

/**
* Autopost functions
* approve topic/post tables after posting
* @param string $subject - subject which we want to approve
*/
function autopost_approve($subject)
{
global $db;
$sql = 'UPDATE ' . POSTS_TABLE . '
SET post_approved = 1
WHERE post_subject = "' . str_ireplace("\"","\\\"",$subject) . '"';
$db->sql_query($sql);
$sql = 'UPDATE ' . TOPICS_TABLE . '
SET topic_approved = 1
WHERE topic_title = "' . str_ireplace("\"","\\\"",$subject) . '"';
$db->sql_query($sql);
}

and

/**
* Autopost functions
* posts new topic in forum
* @param mixed $post_data - includes all data of feed
*/
function autopost($post_data)
{

...
// check if this topic is not already posted
$sql = 'SELECT topic_title
FROM ' . TOPICS_TABLE . '
WHERE topic_title = "' . str_ireplace("\"","\\\"",$subject) . '"';

Brgds!
User avatar
Smix
Registered User
Posts: 482
Joined: Mon Sep 11, 2006 1:07 am

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

Post by Smix »

Hello,

thank you, but I think it can be used with phpBB´s already inbuilt functions for this ;)

Code: Select all

$db->sql_escape($subject) 
(only idea - not checked yet)

It may looks like that ...

Code: Select all

/**
* Autopost functions
* posts new topic in forum
* @param mixed $post_data - includes all data of feed
*/
function autopost($post_data)
{

...
// after the place, where we have data in $subject ...
$subject = $db->sql_escape($subject);
...
// check if this topic is not already posted
$sql = 'SELECT topic_title
FROM ' . TOPICS_TABLE . '
WHERE topic_title = "'.$subject .'"';
And autopost_approve will be called with already escaped string ... ;)


4 el-cherubin :
I don´t know yet, how I´ll deal with that, but I think you can try to do it very in similar way - make a separated forum for your bloging activities and than all blogs (all feeds) set to this forum ... Than structure will looks like :
  • Adam | What I´m doing ?
  • Bart | What I´m doing ?
  • Cindy | What I´m doing ?
... but at this time, there is not yet updating developed ...
El-Cherubin
Registered User
Posts: 30
Joined: Thu Dec 27, 2007 11:48 pm
Contact:

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

Post by El-Cherubin »

Ok ;) no problem i think i have found a solution :)

But, with your mod there is a little worry, the feed rss is capture, and topics created, but several time, for one of my feed rss, one article created 10 same topics! Fortunately, there are pending moderation. :)

Have you got a solution?


Thanks :)
Neuron Partners Neurosciences serve Digital Marketing
User avatar
Tripp
Former Team Member
Posts: 1358
Joined: Sun May 20, 2007 5:14 am
Location: G'boro, North Carolina
Name: Tripp
Contact:

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

Post by Tripp »

El-Cherubin wrote:Ok ;) no problem i think i have found a solution :)

But, with your mod there is a little worry, the feed rss is capture, and topics created, but several time, for one of my feed rss, one article created 10 same topics! Fortunately, there are pending moderation. :)

Have you got a solution?


Thanks :)
Known bug for the 104o9324590329053 time Jesus Christ :roll:
The box said 'You need Windows XP or better' .... so I installed linux.

Formerly Drugs
El-Cherubin
Registered User
Posts: 30
Joined: Thu Dec 27, 2007 11:48 pm
Contact:

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

Post by El-Cherubin »

oh... sorry..i don't know that.

great if Smix knows that and correct it :)

thanks.
Neuron Partners Neurosciences serve Digital Marketing
Auden
Registered User
Posts: 34
Joined: Tue Mar 04, 2008 8:13 pm

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

Post by Auden »

Hello Smix

Do you know when the next version will come ? Next week ? month ? year ?

Thanks :-)
User avatar
Smix
Registered User
Posts: 482
Joined: Mon Sep 11, 2006 1:07 am

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

Post by Smix »

... possible release date - first weekend in July (lastRSS agregator 2.0.0RC2 will be the first) ...
El-Cherubin
Registered User
Posts: 30
Joined: Thu Dec 27, 2007 11:48 pm
Contact:

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

Post by El-Cherubin »

Good news :)

Thanks a new!
Neuron Partners Neurosciences serve Digital Marketing
Locked

Return to “[3.0.x] Abandoned MODs”