News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

RSS Feed Poster

Started by SMFHacks.com Team, January 11, 2007, 07:46:04 PM

Previous topic - Next topic

MostTimeOnline

#720
Hello.

My RSS feed poster is working via CURL mode (the only fetch mode my host supports).

But the poster isn't making new posts everyday, even I set it to update every 120 minutes.

I've noticed I have to delete the feed RSS link, and then when I create a  new one with the same RSS link it posts immediately. Again, that's the only time to see the posts appearing.

http://www.mysite.com/forum/cronrss.php  shows a blank page.

Most Time Online

vbgamer45

It should always show something make sure it the permissions on the cronrss.php are set to 755
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

MostTimeOnline

I did.

CHMOD 755 cronrss.php


Still a blank page.

But that's not important to me cuz' the bot is posting... and working... he's just being lazy! :D
Most Time Online

MostTimeOnline

Hey I think it's working! He's posting items.. :) But I'm not sure for how long.

When I go to cronrss.php page it seems to be a trigger for bot to post? Does that mean all I have to do is to point a cronjob to that URL and problems solved?

P.S. I use fake Cron jobs.  But I'm not sure what's that for? Can I have my bot NOT to open new topic every time, and instead to post every news item in one topic?

Most Time Online

vbgamer45

Quote
When I go to cronrss.php page it seems to be a trigger for bot to post? Does that mean all I have to do is to point a cronjob to that URL and problems solved?
Yup that is it! Schedule the cron job to run as often as needed when ever you do a feed update
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

MostTimeOnline

Thanks a lot ! ;)

But, I'm confused now what's the deal with the settings for each RSS item - "update every 360 minutes" - when the main cronrss.php page triggers every RSS item at the same time?
Most Time Online

perro88

how can I make it work feeds with for example img html tags? I tried to uncomment that comment you have on subs-RSS, something like:
if(feed_html)
{  $body='html'.$body.';
     preparsecode($body);
} before the calling of the createpost fucntion but it gives me a hacking attemp(when execute cronrss.php) error if I let the preparsecode($body) line.
what I need to do so it work with a non-user poster or a user with html tag permission enable(there's a mod for that or then the admin)

No.Body

Quote from: vbgamer45 on February 17, 2008, 10:39:05 PM
Quote
When I go to cronrss.php page it seems to be a trigger for bot to post? Does that mean all I have to do is to point a cronjob to that URL and problems solved?
Yup that is it! Schedule the cron job to run as often as needed when ever you do a feed update

How can i do that? Coz as of, i still do it manually.

vbgamer45

usually there is an option inside your control panel or ask your host for more information
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

MostTimeOnline

On my host, there is Cronjob option but advanced usage only - you have to write your own script... so I'll have to figure out how to write a simple shell to open URL once a day.
Most Time Online

perro88

WHat I need to do in order to be able to post html feeds?

perro88

#731
well this is the fourth time I ask the same question hope to get a reply(even if it's negative). If the mod have the option to get html tags from the feed then it should be able to post the html feeds(not <img src="....."> in text, but the pic). how I do this? i tried a lot of things but no luck. In the file subs-RSS.php before the createPost function you have this lines commented:
   if ($feed['html'])
                        {
                           $msg_body = '' . $msg_body . '';
                           preparsecode($msg_body);
                        }
. they are commented because you are still working on it? or there's another solution to post html feeds?
I tried to uncomment the lines but it gives a hacking attemp error when I run the cronrss.php file. Any idea how to make it work? even if it would only works for the admin(have html tags perms) as the feeds poster user

vbgamer45

Haven't been able to get it to work that's why it was commented out.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

perro88

Quote from: vbgamer45 on February 24, 2008, 05:59:47 PM
Haven't been able to get it to work that's why it was commented out.
nice. thanks for the reply. And again thanks for the mod, it's one of the best

Angelotus

Is it possible to edit the no of characters of the feedpost?

vbgamer45

Could be done you would need to modify Subs-Rss.php in the Sources folder and add a character limit.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Angelotus

Is that simple? I'm a bit of a noob with php...

spiros

#737
I get this sort of entries, although html is checked (images not appear, just code):

USDA sued over beef recall

<img src="http://msnbcom.112.2O7.net/b/ss/msnbcom/1/G.4--NS/633399184269193991?pageName=Health&amp;c4=Health&amp;c5=Diet and nutrition&amp;c7=RSS-read&amp;c15=13594277&amp;g=http://www.msnbc.msn.com/id/13594277/device/rss/" width="1" height="1" border="0" alt="" />The Humane Society of the United States has filed a lawsuit against the government alleging that a legal loophole allows so-called "downer" cows to get into the food supply.

http://www.msnbc.msn.com/id/23373680/


And when I click on the cronrss.php file I just get this:

Feed Poster Configuration

and some messages are posted (duplicates). Is this the way it is meant to work?

Testing it here: http://www.nonsmokersclub.com/forum/index.php
(see last board)

Also, Curl, Fopen and Fsockopen are enabled in my server, which one should I use?

Force73

#738
QuoteNo duplicate posts. Posts are hashed and stored as a hash.

Problem: I always get duplicate posts, all hashed fine with an own hash. How can I fix this?

Look here: http://www.arcticmonkeys.de/forum/index.php/board,9.0.html
You will see (pendend on the time of your click) four messages - two duplicated).

On the other hand, every call of the cronrss.php will import duplicates, how can I only get one entry from the rss by one?

Thank you for reply or help

mstorm

Geez, I LOVE this Mod!!!
One quick question though.  Is there any way at all to get the poster mod to trigger the "notify" function when it posts new topics?
I figure there has to be a way, but I just have no idea where to start.

Thanks!

Advertisement: