*%*DELIM*%*data/test.txt*%*DELIM*%**%*DELIM*%*http://example.com/test.txt'); function ddrd_arr($i) { } function ddrd_add_option_pages() { if (function_exists('add_options_page')) { add_options_page('Retrieve Data', 'DDRetrieveData', 8, __FILE__, 'ddrd_options_page'); } } function ddrd_options_page() { $extra_fields = 3; global $ddrd_version; if (isset($_POST['set_defaults'])) { echo '

'; update_option('ddrd_data', '*%*DELIM*%*data/test.txt*%*DELIM*%**%*DELIM*%*http://example.com/test.txt'); echo 'Default Options Loaded!'; echo '

'; } else if (isset($_POST['info_update'])) { echo '

'; $tmp_data = array(); foreach ($_POST as $k => $v) { if (strpos($k, 'ddrd_data') === 0) { $tmp_data[] = $v; } } $new_data = array(); for ($i = 0; $i < count($tmp_data); $i += 2) { $d1 = ''; if (isset($tmp_data[$i])) $d1 = trim($tmp_data[$i]); $d2 = ''; if (isset($tmp_data[$i+1])) $d2 = trim($tmp_data[$i+1]); if (($d1 != '') || ($d2 != '')) { $new_data[] = $d1; $new_data[] = $d2; } } $ddrd_data = implode('*%*DELIM*%*', $new_data); update_option('ddrd_data', (string)$ddrd_data); echo 'Configuration Updated!'; echo '

'; } ?>

Retrieve Data v

For information and updates, please visit:
/articles/retrieve-data-plugin-for-wordpress/

Note: If you need more fields, click 'Update Options' after making your changes, and more will be shown.

">

'; for ($i = 0; $i < count($ddrd_data) + ($extra_fields * 2); $i+=2) { $d1 = ''; if (isset($ddrd_data[$i])) $d1 = trim($ddrd_data[$i]); $d2 = ''; if (isset($ddrd_data[$i+1])) $d2 = trim($ddrd_data[$i+1]); ?>
Trigger Text Data File (file relative to base WP path, or remote URL)