\n"; } function dady_menu() { define("dady_PERMISSIONS", "add_users"); add_menu_page( __("3dady_settings"), __("3dady stats"), dady_PERMISSIONS, "3dady", "dady_settings" ); } add_action('admin_menu', 'dady_menu'); add_action('admin_head', 'admin_register_head'); add_action( 'admin_menu', 'dady_op_page' ); } else { // non-admin enqueues, actions, and filters } // action function for above hook function dady_op_page() { // dady_settings_page() displays the page content for the 3dady submenu function dady_settings() { //must check that the user has the required capability if (!current_user_can('manage_options')) { wp_die( __('You do not have sufficient permissions to access this page.') ); } // variables for the field and option names $dady_text = 'dady_input_text'; $dady2_text = 'dady2_input_text'; $hidden_field_name = 'dady_submit_hidden'; $data_field_name = 'dady_input_text'; $data_field_name2 = 'dady2_input_text'; $head_field_name = 'mth_submit_hidden'; add_option('checkboxhf', TRUE); update_option('checkboxhf', (bool) $_POST["checkboxhf"]); // Read in existing option value from database $dady_val = get_option( $dady_text ); $dady2_val = get_option( $dady2_text ); // See if the user has posted us some information // If they did, this hidden field will be set to 'Y' if( isset($_POST[ $hidden_field_name ]) && $_POST[ $hidden_field_name ] == 'Y' ) { // Read their posted value $dady_val = $_POST[ $data_field_name ]; $dady2_val = $_POST[ $data_field_name2 ]; // Save the posted value in the database update_option( $dady_text, $dady_val ); update_option( $dady2_text, $dady2_val ); // See if the user has posted us some information // If they did, this hidden field will be set to 'Y' if( isset($_POST[ $head_field_name ]) && $_POST[ $head_field_name ] == 'Y' ) { // Put an settings updated message on the screen ?>
Important: this Plugin only works with Sidebar widget
Get the key and Position in the browser from 3dady Stats http://www.3dady.com/getcounterDescription : know the number of visitors of your own website in real-time? 3dady is a perfect free counter and web stats which indicates the exact number of visitors of your website easily.!
How to Use this?
1. Get the key and Position in the browser from 3dady Stats http://www.3dady.com/getcounter You must choose Sidebar Widget
2. after finishing successfully,Counter code will be ready to use and you have to Click on "Add To WordPress"
3. Copy the key and position in the browser then put them in the fields at the top and Save
5. Check the box to enable Sidebar widget.
7- Enjoy
How to create a private Sidebar widget?
1- Signup 3dady Stats to use extended features, and private widget http://www.3dady.com/signup You must choose Sidebar Widget
2- Sign In and Create a new project
3- Fill out the form and add your website URL in field "URL of your project"
4-choose Statistics: >> access Access only for me
5- choose Position in the browser: >> private bottom and submit form
6- Enjoy