News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

RSS Feed Poster

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

Previous topic - Next topic

thenoss

Quote from: thenoss on September 27, 2010, 08:49:30 PM
Oh woops.

Well going to it through the browser doesn't seem to do anything at all, whereas creating a new feed at least gives that forum Sub error...

Wait no scratch that... it actually did post it when I went to it through the browser.. :O

thenoss

#1821
Quote from: Editor321 on September 27, 2010, 05:51:06 PM
Well things were going well, I was visiting the cronrss.php daily in my browser to initiate the updates but now for whatever reason it sees this as a hacking attempt.

The only thing that has changed is I got moved between servers and had to change where the theme directory was and such. Would this cause any issues with this hack? I've tried uninstalling and reinstalling the package with no changes.

Ideas?

Did you add any new feeds?

I noticed some feeds for some reason count as a "Hacking attempt"


But oh man this is a pain.. going to the cronrss.php manually everyday wouldn't work for me, I need to be constant 30 mins.

:( Dammit :/

thenoss

#1822
Sorry for cluttering up the thread... but this is weird:

It now appears to be posting the feeds every 30 minutes without me having to do it manually... but the feeds are old posts, and they keep getting older as they post.. :S

EDIT:

The links in the posts seemed to work too.. I just tried removing the feeds and putting them back in but now the links in the feed posts don't work.. weird

EDIT:

Okay, now the links work but it's again back to going back in time with the posts..

This is messed up

vbgamer45

It will go back in time till it catches up completely to what is in the feed
Community Suite for SMF - Grow your forum with 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

thenoss


thenoss

Well it's caught up now... but could I remove the threads it has posted so far?

Would that make it post them again or does removing them have no effect on the feed?

Editor321

Quote from: thenoss on September 27, 2010, 09:13:01 PM
Did you add any new feeds?

I noticed some feeds for some reason count as a "Hacking attempt"


But oh man this is a pain.. going to the cronrss.php manually everyday wouldn't work for me, I need to be constant 30 mins.

:( Dammit :/

Nope, no new feeds.

vbgamer45

Quote from: thenoss on September 29, 2010, 05:00:55 AM
Well it's caught up now... but could I remove the threads it has posted so far?

Would that make it post them again or does removing them have no effect on the feed?
Removing the topics have no effect
Community Suite for SMF - Grow your forum with 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

endomorph

This is excellent ! Thanks.

Now I just need to hunt down some good feeds with a reasonable amount of content

shoppy

Hello,

My hoster doesn't allow fopen, curl or any other include in HTML.
But I can use a url that they gave me for using one of they're servers to include.

The url looks like this:

http://include.hoster.nl/include.php?url=http://url.to.the.include

Can anyone tell to me how to use this?


vbgamer45

Wow that is a lot of restrictions by the host not sue how you can call that url without one of those functions
Community Suite for SMF - Grow your forum with 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

endomorph

Anyone know how to get a you tube rss feed to work. Have tried several times but it will not pick up.

I assume I need to have "HTML Enabled" enabled ?

vbgamer45

It won't post or won't post the embeded code?
Community Suite for SMF - Grow your forum with 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

endomorph

Wond do anything ! I can get any feeds posted

RSS Feed I am adding is -

http://gdata.youtube.com/feeds/base/videos?q=xxxxxxxxxx&client=ytapi-youtube-search&v=2

Where xxxxxxxxxx is the query

vbgamer45

Yeah that's an atom based feed does not currently work
Community Suite for SMF - Grow your forum with 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

endomorph

OK thanks. Anyone know how to pull a RSS feed from youtube ?

endomorph

OK I have sorted it - and very proud too as I am very new to PHP (I'm an ASP hardcore !). With a little code change in 1 file and 1 simple MOD install -

1. Install the You Tube MOD found http://custom.simplemachines.org/mods/index.php?mod=936

2. In subs-rss2.php (found in your sources directory), look for the following code -


$msg_body =  $smcFunc['htmlspecialchars'](($feed['html'] ? $context['feeditems'][$i]['description'] . "\n\n" . $context['feeditems'][$i]['link']  : strip_tags($context['feeditems'][$i]['description'] .  "\n\n" . $context['feeditems'][$i]['link'])), ENT_QUOTES);


and replace it with


$pos = strpos($context['feeditems'][$i]['link'],'youtube.com');
if ($pos === false) {
$msg_body =  $smcFunc['htmlspecialchars'](($feed['html'] ? $context['feeditems'][$i]['description'] . "\n\n" . $context['feeditems'][$i]['link']  : strip_tags($context['feeditems'][$i]['description'] .  "\n\n" . $context['feeditems'][$i]['link'])), ENT_QUOTES);
} else {
$msg_body =  $smcFunc['htmlspecialchars'](($feed['html'] ? $context['feeditems'][$i]['description'] . "\n\n" . $context['feeditems'][$i]['link']  : strip_tags($context['feeditems'][$i]['description'] .  "\n\n[youtube]" . $context['feeditems'][$i]['link'] . "[/youtube]")), ENT_QUOTES);
}


3. Using http://www.referd.info build your YouTube RSS feed and add to your feeds as normal

dematrix2571

I have the mod setup and have use this RSS feed URL on an older RSS feed mod.  I am wanting to go with this mod to pull full articles from the feed.

The url I am using is   http://www.tennessean.com/apps/pbcs.dll/section?Category=ashlandcity01&template=rss_gd&mime=xml [nofollow]

Is this consider a Atom feed?  I have read thru some of the post and read that ATOM feeds are not supported.

Thanks!!

vbgamer45

Community Suite for SMF - Grow your forum with 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

MoreBloodWine

Alot of times if you use view soruce on the feed itself it will say ATOM somewhere in it... not sure if this is for all ATOM feeds but it is for the ones I've looked at so far.
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


Advertisement: