The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Make RSS Feed Checking More Frequent Details »» | |||||||||||||||||||||||||||
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: Code:
case 600: // every 10 minutes Code:
case 300: // every 5 minutes case 120: // every 2 minutes Next, edit admin/rssposter.php Search for: Code:
600 => construct_phrase($vbphrase['x_minutes'], 10), Code:
120 => construct_phrase($vbphrase['x_minutes'], 2), 300 => construct_phrase($vbphrase['x_minutes'], 5), 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. Screenshots
Show Your Support
|
Comments |
#2
|
||||
|
||||
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 |
#3
|
||||
|
||||
Am waiting to see issues with it double posting same news...
|
#4
|
||||
|
||||
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.
Code:
case 259200: // every 72 hours case 172800: // every 48 hours case 86400: // every 24 hours Code:
86400 => construct_phrase($vbphrase['x_hours'], 24), 172800 => construct_phrase($vbphrase['x_hours'], 48), 259200 => construct_phrase($vbphrase['x_hours'], 72), Unless you know somthing we dont Shredder ? .Me |
#5
|
||||
|
||||
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 |
#6
|
||||
|
||||
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.
|
#7
|
|||
|
|||
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. |
#8
|
||||
|
||||
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 |
#9
|
|||
|
|||
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.
|
#10
|
||||
|
||||
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 |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|