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

Arantor

Quotebut replace "HIDDENTAG" with some obscure tag name of your choosing that won't be easily guessable and at least you add a measure of security through obscurity.

Right up until someone quotes the message.
Holder of controversial views, all of which my own.


acadiaforum.net

No, the only time the hidden tag is used is between the RSS feed poster and the preparsecode() function in Subs_Post.php. Once it gets there and sees the unique string, it replaces it with the HTML bbc code before it get output to a browser. That hidden tag is never exposed or revealed to the website at all. In fact, you'll really never have to type it manually, so you can make it extremely convoluted. Once you place it in the two files above and insure they are identical, you'll never have to type it (or see it) again.

I'm doing it successfully on one of my forums now and regular users see only the HTML tag on quote.
New GM Crossover Forums: AcadiaForum.net [nofollow] | EnclaveForum.net [nofollow] | SaturnOutlookForum.net [nofollow] | TraverseForum.com [nofollow]

colour

not posting

Well I have had it set up for about 2 days now on a few feeds including the new york times however it has yet to create a post and yes the feeds are enabled
I provide limited support as I am just as clueless as you.

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

Swifty550

I've stumbled across this mod and I must say it's a great mod.

Few questions/concerns;

Would I have to run a cron job in order for my feeds to update or will the SMF2.0 scheduler suffice?

Also, how come the feeder doesn't post the most updated feed? For instance, 10 feeds on a page, but it only shows 9 and not the newest? Same when I chose 20, only posted 19 and not the newest.

Thanks.

vbgamer45

Depends on how busy your site is. The SMF scheduler depends on someone visiting your site in order for it to run while cron will run every time and the time needed.

The feed mod will grab the oldest entries in the feed first then process the new ones. This is so older entries do not get posted before newer ones
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

colour

Quote from: vbgamer45 on April 04, 2011, 09:12:20 PM
Are you using a cron job?

yes the real/default one
and when I visit the url it says

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's choppersim deliver?[/html]

Source: [url=http://reviews.teamxbox.com' at line 4
File: /home/vol10/byethost16.com/b16_7438965/myfreshgames.cz.cc/htdocs/Sources/Subs-Post.php
Line: 1546
I provide limited support as I am just as clueless as you.

jessicaye

Hiya, hope someone can help here, I just got this after adding and editing those php files:

Database error:

Table 'chi1109308322638.smf_feedbot' doesn't exist
File: D:\Hosting\7692409\html\Sources\FeedPoster.php
Line: 57

what shall I do??

vbgamer45

You have to copy and run the install php file to root directory of your forum and run via web browser.
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

jessicaye

Quote from: vbgamer45 on April 05, 2011, 12:21:41 AM
You have to copy and run the install php file to root directory of your forum and run via web browser.

I am very happy you are being so helpful  :)
However, it's really my first time dealing with php files... i don't see a install file though, only a unistall file =)



vbgamer45

It should be inside the zip file like feeedinstall.php
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

jessicaye

Quote from: vbgamer45 on April 05, 2011, 12:30:03 AM
It should be inside the zip file like feeedinstall.php

I am sorry, for some reason... there's no such file in the "RSSFeedPoster3.0.1" ....how come?

vbgamer45

There should be not sure on the exact name but there is a file in there for database stuff check the package-info.xml for the exact name.
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

jessicaye

Quote from: vbgamer45 on April 05, 2011, 12:36:56 AM
There should be not sure on the exact name but there is a file in there for database stuff check the package-info.xml for the exact name.
... I cannot even open this package-info.xml file...........  :'( :'( :'( :'( :'( :'(

vbgamer45

Looked it run FeedPostersql.php for SMF 1.1.x FeedPostersql2.php For SMF 2.0.x
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

jessicaye

Quote from: vbgamer45 on April 05, 2011, 12:55:14 AM
Looked it run FeedPostersql.php for SMF 1.1.x FeedPostersql2.php For SMF 2.0.x

I did use FeedPostersql.php for my SMF1.1.x, i don't think I miss anything though

vbgamer45

If you run in the root directory that should create all the database tables for you.
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

jessicaye

Quote from: vbgamer45 on April 05, 2011, 01:08:51 AM
If you run in the root directory that should create all the database tables for you.

That's what I hoped.......look...I am feeling helpless now...what should I do then?

markdw

Quote from: acadiaforum.net on April 04, 2011, 01:55:22 PM
As arantor pointed out, the cron process does not pass the necessary credentials back to SMF to allow it to have the authority to use the HTML bbc code, regardless of what user you tell it to post under. So what I've done here is taken the chunk of code that normally runs if you DO have that permission for the HTML code and run it again if it finds an arbitrary tag (hiddentag in this example). The benefit here is that it finally allows the RSS poster to use html tags. The downside is that you're allowing anyone who happens to know that new tag to circumvent the security that SMF puts in place on the HTML tag. If you want to use it, copy the code from above, but replace "HIDDENTAG" with some obscure tag name of your choosing that won't be easily guessable and at least you add a measure of security through obscurity.

Makes total sense, I'm testing this now. It seems crazy that posting HTML isn't controlled through the permissions system, that way we could create a custom permission set up for the feed poster...

Swifty550

#2059
Quote from: vbgamer45 on April 04, 2011, 10:06:54 PM
Depends on how busy your site is. The SMF scheduler depends on someone visiting your site in order for it to run while cron will run every time and the time needed.

The feed mod will grab the oldest entries in the feed first then process the new ones. This is so older entries do not get posted before newer ones

OK thanks, will set up a cron job then.

*EDIT* It is updating as expected now, but it still will not post the very newest feed - stops at the one below it. I'm testing with the http://feeds.bbci.co.uk/news/uk/rss.xml link, it stops at "Clegg: End 'who you know' culture" and doesn't post the last one?

It's also posting 2 of the same feeds as if they were new ones?

How can I make the feeds become "mark as read" when they're posted, as it just spams the "Recent Unread Topics" page.

Thanks.

Advertisement: