AdPlugg Settings


Manage my ads at adplugg.com.

Place the AdPlugg Widget on the WordPress Widgets Configuration Page

To use AdPlugg you will need an AdPlugg Access Code. To get your AdPlugg Access Code, log in or register (it's free) at www.adplugg.com

You must enter a valid AdPlugg Access Code here. If you need an Access Code, you can create one here.

AdPlugg Plugin Help

Need help using the adplugg plugin? Use the tabs to the left to find instructions for installation, use and troubleshooting.

'; $installation_content = '

Installation/Configuration

The AdPlugg WordPress Ad Plugin makes it super easy to put ads on your WordPress Site.

  1. Install the plugin.
  2. Activate the plugin.
  3. Create an account at adplugg.com.
  4. Get your AdPlugg Access Code and add it to the Access Code field on this page.
  5. Go to your widgets page and drag the AdPlugg Ad Widget to wherever you want your ads to display.
'; $troubleshooting_content = '

Troubleshooting

'; $use_content = '

Using AdPlugg

'; //overview tab $screen->add_help_tab(array( 'id' => 'adplugg_overview', 'title' => 'Overview', 'content' => $overview_content )); //installation tab $screen->add_help_tab(array( 'id' => 'adplugg_installation', 'title' => 'Installation', 'content' => $installation_content )); //use tab $screen->add_help_tab(array( 'id' => 'adplugg_use', 'title' => 'Using AdPlugg', 'content' => $use_content )); //installation tab $screen->add_help_tab(array( 'id' => 'adplugg_troubleshooting', 'title' => 'Troubleshooting', 'content' => $troubleshooting_content )); } return $contextual_help; } /** * Function to initialize the AdPlugg options page. */ function adplugg_options_init() { register_setting('adplugg_options', ADPLUGG_OPTIONS_NAME, array( &$this, 'adplugg_options_validate' ) ); add_settings_section( 'adplugg_options_access_section', 'Access Settings', array( &$this,'adplugg_options_render_access_section_text'), 'adplugg' ); add_settings_field( 'access_code', 'Access Code', array(&$this, 'adplugg_options_render_access_code'), 'adplugg', 'adplugg_options_access_section' ); } /** * Function to validate the submitted AdPlugg options field values * @param array $input The submitted values * @return string Returns the submitted values minus any that failed validation. */ function adplugg_options_validate($input) { $newinput['access_code'] = trim($input['access_code']); if(!preg_match('/^[a-z0-9]+$/i', $newinput['access_code'])) { $newinput['access_code'] = ''; } return $newinput; } }