. */ if ( !is_admin() ) { die( 'denied' ); } if ( isset( $_POST['abdetective_submit'] ) ) { update_option( 'abdetective_mode', $_POST['abdetective_mode'] ); update_option( 'abdetective_redirect', $_POST['abdetective_redirect'] ); update_option( 'abdetective_info', $_POST['abdetective_info'] ); update_option( 'abdetective_sharewarefile', $_POST['abdetective_sharewarefile'] ); update_option( 'abdetective_blockfile', $_POST['abdetective_blockfile'] ); echo( sprintf( '

%s

', __('Saved', 'abdetective' ) )); } $abdetective_current_mode = get_option( 'abdetective_mode' ); if ( $abdetective_current_mode === false ) { $abdetective_current_mode = 'block'; } ?>

ABDetective Settings

Please keep in mind, that the development of this plugin will be a ongoing effort which has and will require a lot of time. If you want to see new features, improved detection or just want to show your appreciation, consider a donation.

Thank you for your support.


This is the name of the page where additional info is transported trough - like the shareware dialog or the text for blocked users.
It shoud be a name that does not sound like something to do with ads or adblockers and it may not exist in your site tree. Something like 'info.html' or 'welcome.html' would be good, but you may also leave the default if it is not conflicting with pages within your site tree.
name="abdetective_mode" value="block" /> Block the user and asks him to disable his ad blocker
name="abdetective_mode" value="redirect" /> Redirect the user to a specific page (specify below)
name="abdetective_mode" value="shareware" /> Show a dialog similar to that one shareware software shows on startup

This is the file displayed if a user gets blocked. No full html file, it is displayed within a div element. See data/default.block.html as example and create your own if necessary.
It is recommended NOT to edit the default file but create a new file and add the filename here for custom messages. Otherwise your changes will be overwritten on next plugin update

Enter the URL to redirect to, if redirection mode is selected above. Full URL Syntax (e.g. http://mysite/info.html)
This URL will be checked by URL Blockers. Do not use ad specific names in this URL, choose a unsuspecting title, like 'info', or 'welcome' to prevent ad blockers from blocking this URL.
If in doubt, try a browser with installed ad block. If the redirect does not work, choose another URL.

This is the file displayed in the shareware dialog. No full html file, it is displayed within a div element. See data/default.shareware.html as example and create your own if necessary.
It is recommended NOT to edit the default file but create a new file and add the filename here for custom messages. Otherwise your changes will be overwritten on next plugin update