Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Make RSS Feed Checking More Frequent Details »
Make RSS Feed Checking More Frequent
Mod Version: 1.00, by Dan Druff (Coder/Designer) Dan Druff is offline
Developer Last Online: May 2019 I like it Show Printable Version Email this Page

vB Version: 4.1.12 Rating: (0 vote - 0 average) Installs: 6
Released: 28 Jun 2012 Last Update: Never Downloads: 0
Not Supported Code Changes Re-usable Code  

This modification adds options for checking RSS feeds more frequently than every 10 minutes.

You will now have the option to set RSS feeds to be checked every 2 minutes or 5 minutes, in addition to the existing options of 10 minutes and up.

This is mostly done through minor source code edits.

First, edit includes/class_dm_rssfeed.php

Search for:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

... and add IMMEDIATELY AFTER...

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Next, edit admin/rssposter.php

Search for:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

... and add IMMEDIATELY BEFORE:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

That's it! Now you will have the option in the RSS Feed Manager to add feeds to be checked every 2 or 5 minutes. You can also go back to your existing feeds and change them to be checked every 2 or 5 minutes.

One more thing... you will have to modify the RSS Poster Robot settings in the Scheduled Tasks, or the feeds still won't be checked more frequently than once every 10 minutes.

To do this, go to the Admin Control Panel, select Scheduled Task Manager, and then click Go under RSS Poster Robot.

Make sure Days of the Month, Days of the Week, and Hour are all set to *. Then go change the first column of Minute also to *. The result should look like the below attachment.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	rssposter.png
Views:	170
Size:	27.4 KB
ID:	139401  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 17 Jul 2012, 09:54
Lee Roberts's Avatar
Lee Roberts Lee Roberts is offline
 
Join Date: Jun 2008
Real name: Lee
Cheers Dan,

This should give me what i need to set for above 12 hours, any problems doing that that you know of ?

Regards,
.Me
Reply With Quote
  #3  
Old 17 Jul 2012, 10:17
CoZmicShReddeR's Avatar
CoZmicShReddeR CoZmicShReddeR is offline
 
Join Date: Oct 2006
Real name: Martin Weltchek
Am waiting to see issues with it double posting same news...
__________________
Reply With Quote
  #4  
Old 17 Jul 2012, 10:50
Lee Roberts's Avatar
Lee Roberts Lee Roberts is offline
 
Join Date: Jun 2008
Real name: Lee
No problem i've just made the changes to mine for 24 and 48 hours will let you know what happens, i cant see there being a problem with double posting.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Unless you know somthing we dont Shredder ?

.Me

Last edited by Lee Roberts; 17 Jul 2012 at 11:08.
Reply With Quote
  #5  
Old 17 Jul 2012, 13:45
Lee Roberts's Avatar
Lee Roberts Lee Roberts is offline
 
Join Date: Jun 2008
Real name: Lee
Dan I’ve got a problem, when I save the feed after making a selection for the TTL its not saving. Going back to the feed to edit it the TTL setting is set to 10 minutes, selecting any of the vB stock times works and they get saved.

So it’s got me thinking something must be missing in the database, going to have a look now but can you look at yours and see if you get the same thing or dose yours remember your choice?

Thanks,

.Me
Reply With Quote
  #6  
Old 17 Jul 2012, 15:50
Lee Roberts's Avatar
Lee Roberts Lee Roberts is offline
 
Join Date: Jun 2008
Real name: Lee
Ok i think i have worked it out, it looks as though vB seems to only support 65535 so call it 18 hours, anything above that it just inserts "65535" into the ttl.
Reply With Quote
  #7  
Old 21 Jul 2012, 10:24
Dan Druff Dan Druff is offline
 
Join Date: Mar 2012
Interesting. I didn't know about the 65535 limitation.

Other than that, I don't see any problems with setting additional options for higher than the max time allowed by default, provided you edit the PHP files described above accordingly.
Reply With Quote
  #8  
Old 21 Jul 2012, 19:51
Lee Roberts's Avatar
Lee Roberts Lee Roberts is offline
 
Join Date: Jun 2008
Real name: Lee
Hi Dan,

There is no problem going higher in that sense, the 65535 is a 16bit limit i.e. (2^16=65536).

The problem is/was with the database, the TTL column type is set to "smallint(5)" by default, changing this to int(11) fix's the problem. I'm now running a feed and checking ever 48 hours with no problems so far.

Obviously anyone reading this should understand what they are doing and note it is not recommended that you edit core files in this way, you also shouldn’t really be messing with the database. Next time you update vB it’s possible that the files will have changed and any edits you made could be lost, it’s also not the intended use for the product.

I'm going to turn this into a proper modification/plug-in, I will need it myself Dan and no doubt you and others would find it beneficial.

.Me

Last edited by Lee Roberts; 21 Jul 2012 at 19:52. Reason: typo
Reply With Quote
  #9  
Old 06 Oct 2012, 21:11
fintan74 fintan74 is offline
 
Join Date: Dec 2007
Thanks for this! I had made the changes to rssposter.php already, but couldn't figure out which other file kept resetting my choices back to 30 minutes This saved me a lot of searching.
Reply With Quote
  #10  
Old 08 Oct 2012, 19:45
Lee Roberts's Avatar
Lee Roberts Lee Roberts is offline
 
Join Date: Jun 2008
Real name: Lee
No problem Fin glad it was of help to you, not had the time to make it a MOD yet but i will at some point.

Lee
Reply With Quote
  #11  
Old 11 Jun 2013, 12:12
voter's Avatar
voter voter is offline
 
Join Date: Dec 2006
Originally Posted by Lee Roberts View Post
Ok i think i have worked it out, it looks as though vB seems to only support 65535 so call it 18 hours, anything above that it just inserts "65535" into the ttl.
The table that need to be changed is rssfeed
__________________
viparmenia.com
viparmenia.com
viparmenia.com
Reply With Quote
  #12  
Old 11 Jun 2013, 12:15
voter's Avatar
voter voter is offline
 
Join Date: Dec 2006
By the way, if you want generally increase the frequency of reading feeds, it could be done much more simple without editing the php scripts or database.

Just change the frequency of RSS Poster Robot in Scheduled Task Manager.
__________________
viparmenia.com
viparmenia.com
viparmenia.com
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 14:58.

Layout Options | Width: Wide Color: