'140', 'follow_js' => '1') ); } } /* * @brief Removes the 140follow options from WP database */ function wp_140follow_uninstall() { // Delete 140follow options delete_option('dbfollow_options'); } /* * @brief Ads options page in the admin section */ function wp_140follow_admin_menu() { add_submenu_page('options-general.php', '140follow', '140follow', 8, '140follow', 'wp_140follow_options'); } /* * @brief Manages 140follow options */ function wp_140follow_options() { global $wpdb, $dbfollow_options; if (!empty($_POST['followsave'])) { check_admin_referer('140follow'); $dbfollow_options['follow_count'] = trim($_POST['followcount']); $dbfollow_options['follow_js'] = trim($_POST['followjs']); update_option('dbfollow_options', $dbfollow_options); echo '
' . __('Settings saved successfully.', '140follow') . '
<form action="<?php echo get_option('siteurl');name="commentform"<p><textarea name="comment" id="comment"<p><script>displaylimit("document.commentform.comment",<?php $followopt = get_option('dbfollow_options'); echo $followopt['follow_count']; ?>)</script></p><p><script>displaylimit("document.commentform.comment",<?php $followopt = get_option('dbfollow_options'); echo $followopt['follow_count']; ?>)</script></p>|
Does this plugin make you happy? Do you find it useful?
If you think this plugin helps you, please consider donating. Thank you for your support! |
| 140follow Plugin by NetReview.de |