RSS Injector available

Started by confusion, December 24, 2005, 04:04:48 PM

Previous topic - Next topic

L.G.S

Would somebody mind telling me what I would need to enter for a cronjob? I tried tutorials from google but it makes no sense to me :(

I need a file located at /board/news/file.php

to run every 1 hour
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


TechnoDragon

doesn't your server provide documentation?  I'll see what I can find for you.  I user an off-site cronjob provider that was easy and free.
Don't tell me to get into shape...I have a shape...It is round!


L.G.S

FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


TechnoDragon

Quote from: L.G.S on March 27, 2006, 10:57:31 AM
nope they dont :(

Well, if it is similar to what i have seen you pick how often it runs and the command would just be the path to your file. usually without the http:// part
Don't tell me to get into shape...I have a shape...It is round!


L.G.S

ok thanks,

because I tried it with http:// and I got emails saying the directory could not be found
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


TechnoDragon

Quote from: L.G.S on March 27, 2006, 12:51:19 PM
ok thanks,

because I tried it with http:// and I got emails saying the directory could not be found

coolness...just let me know if it works.  Oh, btw, have you rmembered to go to recount forum statistics, and find and fix errors?
Don't tell me to get into shape...I have a shape...It is round!


L.G.S

yeah, everything is fine except NEW posts as I said
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


TechnoDragon

Quote from: L.G.S on March 27, 2006, 01:48:26 PM
yeah, everything is fine except NEW posts as I said

Ya, hopefully someone will help us out there
Don't tell me to get into shape...I have a shape...It is round!


starrbuck

This is a neat script.  However, it is not without its issues...

Primarily, it does not appear to insert the messages properly.  If you run it, then go to forum maintenance, then find and repair any errors, it reports issues with the messages that were added.  Also, probably related, the last post column on the main forum screen
does not contain anything about the new posts.

Is there any way to run forum maintenance (repairboards) from the command line/cron job?  I would be OK with using this script if I could automatically run the maintenance afterwards.  Ideally, however, it should be fixed to insert its messages properly.

TechnoDragon

I noticed that too, but i am not good enough in coding to fix that problem either.
Don't tell me to get into shape...I have a shape...It is round!


spun2u

Nice mod. I had to edit it to get it to work but it's running now.


starrbuck

In your edits did you fix it so that it doesn't need forum maintenance after it does its inserts?

spun2u

Um. Now I'm getting this cron error

/public_html/injector/news.php: line 1: ?php
: No such file or directory
/public_html/injector/news.php: line 2: //
: No such file or directory
/public_html/injector/news.php: line 3: //: is a directory
/public_html/injector/news.php: line 4: //: is a directory
/public_html/injector/news.php: line 5: //: is a directory
/public_html/injector/news.php: line 6: //: is a directory
/public_html/injector/news.php: line 7: //: is a directory
/public_html/injector/news.php: line 8: //
: No such file or directory
/public_html/injector/news.php: line 133: unexpected EOF while looking for matching `''
/public_html/injector/news.php: line 142: syntax error: unexpected end of file


What am I doing wrong?

TechnoDragon

looks like you have your path setting wrong with using the cron job
Don't tell me to get into shape...I have a shape...It is round!


JSalvador

Is there a way to add more than one rss feed to the news.php file?
hxxp:www.naturalencyclopedia.com [nonactive]
hxxp:www.likeadove.com [nonactive]

L.G.S

The only way I found was to make another file and paste the code from the original in, just changing the feed link.
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


JSalvador

Thanks,

That's the only way that i figured out as well.  However, I was hoping there was a better way, that way i could put in a set of newsfeeds and set the cron job for just one file.  If anyone has any insight on how to do this it would be much appreciated.
hxxp:www.naturalencyclopedia.com [nonactive]
hxxp:www.likeadove.com [nonactive]

TechnoDragon

potentially if you are any good at coding you could create a php file that would run all of your news feed php files.  Then set a cron job to run that file.  I just haven't figured out a way to do it yet.
Don't tell me to get into shape...I have a shape...It is round!


JSalvador

You know this is a great script i was just wondering if it was available for any other forums as well. I know I probably shouldn't be asking here  ::), but I have another forum that's running on phpBB2 and was hoping this would work for it.
hxxp:www.naturalencyclopedia.com [nonactive]
hxxp:www.likeadove.com [nonactive]

starrbuck

There is a similar product for phpBB2 called NewsSync but I don't think it's being actively supported any longer.

Here is a thread about it:  http://www.phpbb.com/phpBB/viewtopic.php?t=121946

Advertisement: