The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
![]()
Hey Kevin,
Just getting a chance to do this now, been so busy. Should I just keep my cron to run rssposter and do it for each minute and keep the limit to 1? What would happen if the previous feed is taking more than 1 minute to retrieve, should it cause an error? Thanks again Kevin! --------------- Added [DATE]1353368318[/DATE] at [TIME]1353368318[/TIME] --------------- Sorry Kevin, I just noticed I have this in the vb4 forum! I am using vb3 - This was the only thing I wanted to upgrade to vb4 but it didn't change. I am not sure, but I think this is the code from vb3 that has been changed for vb4: Code:
// ############################################################################# if ($_POST['do'] == 'updatestatus') { $vbulletin->input->clean_gpc('p', 'enabled', TYPE_ARRAY_UINT); $feeds_result = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "rssfeed ORDER BY title"); while ($feed = $db->fetch_array($feeds_result)) { $old = ($feed['options'] & $vbulletin->bf_misc_feedoptions['enabled'] ? 1 : 0); $new = ($vbulletin->GPC['enabled']["$feed[rssfeedid]"] ? 1 : 0); if ($old != $new) { $feeddata =& datamanager_init('RSSFeed', $vbulletin, ERRTYPE_ARRAY); $feeddata->set_existing($feed); $feeddata->set_bitfield('options', 'enabled', $new); $feeddata->save(); } } exec_header_redirect('rssposter.php'); } print_cp_header($vbphrase['rss_feed_manager']); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|