Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Make RSS Feed Checking More Frequent Details »»
Make RSS Feed Checking More Frequent
Version: 1.00, by Dan Druff Dan Druff is offline
Developer Last Online: May 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.1.12 Rating:
Released: 06-27-2012 Last Update: Never Installs: 6
Re-useable Code Code Changes  
No support by the author.

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
... and add IMMEDIATELY AFTER...
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),
... and add IMMEDIATELY BEFORE:
Code:
                120  => construct_phrase($vbphrase['x_minutes'], 2),
                300  => construct_phrase($vbphrase['x_minutes'], 5),
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.

Screenshots

File Type: png rssposter.png (27.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-17-2012, 07:54 AM
Lee Roberts's Avatar
Lee Roberts Lee Roberts is offline
 
Join Date: Jun 2008
Location: UK
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 07-17-2012, 08:17 AM
CoZmicShReddeR's Avatar
CoZmicShReddeR CoZmicShReddeR is offline
 
Join Date: Sep 2006
Location: MI, USA
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Am waiting to see issues with it double posting same news...
Reply With Quote
  #4  
Old 07-17-2012, 08:50 AM
Lee Roberts's Avatar
Lee Roberts Lee Roberts is offline
 
Join Date: Jun 2008
Location: UK
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 07-17-2012, 11:45 AM
Lee Roberts's Avatar
Lee Roberts Lee Roberts is offline
 
Join Date: Jun 2008
Location: UK
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 07-17-2012, 01:50 PM
Lee Roberts's Avatar
Lee Roberts Lee Roberts is offline
 
Join Date: Jun 2008
Location: UK
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 07-21-2012, 08:24 AM
Dan Druff Dan Druff is offline
 
Join Date: Mar 2012
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 07-21-2012, 05:51 PM
Lee Roberts's Avatar
Lee Roberts Lee Roberts is offline
 
Join Date: Jun 2008
Location: UK
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 10-06-2012, 07:11 PM
fintan74 fintan74 is offline
 
Join Date: Dec 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 10-08-2012, 05:45 PM
Lee Roberts's Avatar
Lee Roberts Lee Roberts is offline
 
Join Date: Jun 2008
Location: UK
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply


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

Forum Jump


All times are GMT. The time now is 03:01 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05521 seconds
  • Memory Usage 2,315KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete