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

vbgamer45

That means it is working correctly as long as you see no errors
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

falken

I can solve it (it was a host problem with the fsock)

But now I have another problem, when the mod post a feed it appears in html code and i want to know if exist a way to pass the html code to PHP or a mod to convert it before the feed post (because it's the only way to see the images)

vbgamer45

No way to get the html converted at this time.
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

chucklebutte

Quote from: vbgamer45 on September 08, 2009, 01:43:05 PM
What happens when you run cronrss.php from your website manually?

I get these errors

Notice: createPost(): Invalid member id 22 in /home/chuckles/public_html/forums/Sources/Subs-Post.php on line 1506

Notice: createPost(): Invalid member id 22 in /home/chuckles/public_html/forums/Sources/Subs-Post.php on line 1506

Notice: createPost(): Invalid member id 22 in /home/chuckles/public_html/forums/Sources/Subs-Post.php on line 1506

Notice: createPost(): Invalid member id 22 in /home/chuckles/public_html/forums/Sources/Subs-Post.php on line 1506

Notice: createPost(): Invalid member id 22 in /home/chuckles/public_html/forums/Sources/Subs-Post.php on line 1506

Notice: createPost(): Invalid member id 22 in /home/chuckles/public_html/forums/Sources/Subs-Post.php on line 1506

Notice: createPost(): Invalid member id 22 in /home/chuckles/public_html/forums/Sources/Subs-Post.php on line 1506

Notice: createPost(): Invalid member id 22 in /home/chuckles/public_html/forums/Sources/Subs-Post.php on line 1506

Notice: createPost(): Invalid member id 22 in /home/chuckles/public_html/forums/Sources/Subs-Post.php on line 1506

Notice: createPost(): Invalid member id 22 in /home/chuckles/public_html/forums/Sources/Subs-Post.php on line 1506

Notice: createPost(): Invalid member id 22 in /home/chuckles/public_html/forums/Sources/Subs-Post.php on line 1506

Notice: createPost(): Invalid member id 22 in /home/chuckles/public_html/forums/Sources/Subs-Post.php on line 1506

Notice: createPost(): Invalid member id 22 in /home/chuckles/public_html/forums/Sources/Subs-Post.php on line 1506

Notice: createPost(): Invalid member id 22 in /home/chuckles/public_html/forums/Sources/Subs-Post.php on line 1506

Notice: createPost(): Invalid member id 22 in /home/chuckles/public_html/forums/Sources/Subs-Post.php on line 1506
Feed Poster Configuration

What does this mean? and how can I fix it?

chucklebutte

update I did nothing but poke around at the permissions for something else then bam! rss feeds started and under my account name... now its posting as guest lol guess its working so thats a start but why did it change to guests?

vbgamer45

Looks like an account was deleted? That is the only thing I can think of when it says invalid member id. Update that feed to post under another member name.
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

nexxuscorp

hello,
i have a seconde question ....
I have some errors about accents like :  l’on

I know it's a difference between utf and iso, but i can change because some sites use utf8, and others iso ..

I don't know how to fix it .

Can you help me?

vbgamer45

Probably need to update the database tables to utf8 i do not think all the functions the mod uses supports utf8 though
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


massdog.com

Can someone tell me How to use another rss with safely?
is it work with 1.19?
Do we need to update database or just upload and activate?
is it work with hostgator baby package?

vbgamer45

Works for SMF 1.1.x and SMF 2.0.
Best if you are able to setup cron rss.
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

imrich

vbgamer,

Obviously you are nicely supporting this mod (Thanks!!).

Why does the smf mods page for it say that this is not being actively supported? this page: http://custom.simplemachines.org/mods/index.php?mod=624

QuoteThis is an outdated mod that is no longer supported by its author. Use at your own risk

I had used this on another forum and was looking to use it on smf 2.0 RC1.2. I see it's listed as supported, but wonder why the warning?

Thanks again for this great mod.

vbgamer45

Should work but I do not openly support this mod.
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

imrich

Ok thanks.. I installed it on 2.0 RC1.2 and it appears to be working, at least manually. Now waiting for a CRON update.  How is it suggested to setup the cron to call the cronrss.php? Do I set up cron for once per hour, per day? I'm still learning the newer version.

Thanks for a great mod.

imrich

I spoke too soon.

I know no support, but FYI... got this error on adding a feed:

Quote
http://www.domain.com/forum/index.php?action=feedsadmin;sa=addfeed2 
8: Undefined offset: 27
File: /home/user/domains/domain.com/public_html/forum/Sources/Subs-RSS2.php
Line: 141 

I'll start to look into it.

imrich

Quote from: imrich on September 21, 2009, 01:37:32 PM
I spoke too soon.

I know no support, but FYI... got this error on adding a feed:

Quote
http://www.domain.com/forum/index.php?action=feedsadmin;sa=addfeed2 
8: Undefined offset: 27
File: /home/user/domains/domain.com/public_html/forum/Sources/Subs-RSS2.php
Line: 141 

I'll start to look into it.


Hmmm not sure yet... still digging... but on line 141 of Subs_RSS2.php... looks like it's expecting $depth to be a global.

Yet in the function verify_rss_url() $depth is initialized as a new emtpy array (line 114), but is not global in that function. I'm still digging, this may not be the issue.

vbgamer45

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

imrich

#1377
This does seem to be the root of this error:

8: Undefined offset: 27
File: /public_html/forum/Sources/Subs-RSS2.php
Line: 141 

By the looks of the root cause of this error, there could be also an 'undefined offset' at line 147 as $depth is used in more than one function.

An easy fix:

in file Subs-RSS2.php find:

// Globals
$feedcount = 0;
$maxitemcount = 0;
$tag = '';
$insideitem = false;

function verify_rss_url($url)
{
global $txt, $modSettings;


replace with:


// Globals
$feedcount = 0;
$maxitemcount = 0;
$tag = '';
$insideitem = false;
$depth = array();

function verify_rss_url($url)
{
global $txt, $modSettings, $depth;


Basically, $depth was being used as a global, but was never initialized nor reset here properly because it was not declared a global in function verify_rss_url()


// XML Parser functions to verify the XML Feed
if($failed == false)
{
$depth = array();


Note that this same fix is needed in Subs-RSS.php also, but since I'm testing with SMF 2.0 RC1.2 I didn't test it myself.

imrich

vbgamer45, when are the hash tables in the database cleared or purged? It is only when a feed is deleted?

For example, if older news postings are deleted, do the hash table entries still exist in the database? I don't see them being deleted. Of course if the data still exists in the feed, that message will come back because the hash table was deleted.

Quote from: imrich dreaming out loud....A nice admin function might be to purge the hash table entries of posts that no longer exist to handle the case of a forum admin using the function to delete posts older than 30 days (or any time period). Otherwise the hash tables in the database could grow forever? Yes of course if the feed data still exists, the post will occur again (this might help with testing also).

Understanding how this works will help me manage my database size, thanks!

Thanks again for sharing this mod and updating it for SMF 2.0.

vbgamer45

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

Advertisement: