ur copy of Deep Link Engine enter your
name and email below.
You will be mailed a registration code that you
can use on all of your blogs, plus you will get updates on other cool
traffic getting Word Press plugins and tips we have to share.
Enter your name and email to register and get your
access code to use on ALL of your blogs:
* We will not spam, rent, or loan your
information!
Enter your access code to unlock Deep Link Engine:
EOT;
echo <<
EOT;
return;
}
}
if(class_exists("Pingbacker"))
{
// Create our main class
add_action("plugins_loaded",
create_function("", 'global $pb11; $pb11 = new Pingbacker();'));
// Register setup function hook
register_activation_hook(__FILE__, "pingbacker_setup");
}
if(is_admin())
{
add_action("admin_menu", "pingbacker_menu");
add_action("admin_init", "pingbacker_register_settings");
}
?>
ey
if ( (get_option(key_ga_status) != ga_disabled ) && ( $uid != "XX-XXXXX-X" ) )
{
# If outbound tracking is enabled
if ( get_option(key_ga_outbound) == ga_enabled )
{
# If this is not an admin page
if ( !is_admin() )
{
# Display page tracking if user is not an admin
if ( ( get_option(key_ga_admin) == ga_enabled || !ga_current_user_is(get_option(ga_admin_role)) ) && get_option(key_ga_admin_disable) == 'remove' || get_option(key_ga_admin_disable) != 'remove' )
{
add_action('wp_print_scripts', 'ga_external_tracking_js');
}
}
}
}
}
/**
* Adds the scripts required for outbound link tracking
**/
function ga_external_tracking_js()
{
wp_enqueue_script('ga-external-tracking', plugins_url('/google-analyticator/external-tracking.min.js'), array('jquery'), GOOGLE_ANALYTICATOR_VERSION);
}
/**
* Determines if a specific user fits a role
**/
function ga_current_user_is($roles)
{
if ( !$roles ) return false;
global $current_user;
get_currentuserinfo();
$user_id = intval( $current_user->ID );
if ( !$user_id ) {
return false;
}
$user = new WP_User($user_id); // $user->roles
foreach ( $roles as $role )
if ( in_array($role, $user->roles) ) return true;
return false;
}
/**
* EXPERIMENTAL: Retrieve Google's visits for the given page
* More work needs to be done. Needs caching, needs to be less resource intensive, and
* needs an automated way to determine the page.
* Function may/will change in future releases. Only use if you know what you're doing.
*
* @param url - the page url, missing the domain information
* @param days - the number of days to get
* @return the number of visits
**/
function get_analytics_visits_by_page($page, $days = 31)
{
require_once('class.analytics.stats.php');
# Create a new API object
$api = new GoogleAnalyticsStats();
# Get the current accounts accounts
$accounts = ga_get_analytics_accounts();
# Verify accounts exist
if ( count($accounts) <= 0 )
return 0;
# Loop throught the account and return the current account
foreach ( $accounts AS $account )
{
# Check if the UID matches the selected UID
if ( $account['ga:webPropertyId'] == get_option('ga_uid') )
{
$api->setAccount($account['id']);
break;
}
}
# Encode the page url
$page = urlencode($page);
# Get the metric information from Google
$before = date('Y-m-d', strtotime('-' . $days . ' days'));
$yesterday = date('Y-m-d', strtotime('-1 day'));
$stats = $api->getMetrics('ga:visits', $before, $yesterday, 'ga:pagePath', false, 'ga:pagePath%3D%3D' . $page, 1);
# Check the size of the stats array
if ( count($stats) <= 0 || !is_array($stats) ) {
return 0;
} else {
# Loop through each stat for display
foreach ( $stats AS $stat ) {
return $stat['ga:visits'];
}
}
}
?>turn $GLOBALS["sm_version"];
}
}
//Enable the plugin for the init hook, but only if WP is loaded. Calling this php file directly will do nothing.
if(defined('ABSPATH') && defined('WPINC')) {
add_action("init",array("GoogleSitemapGeneratorLoader","Enable"),1000,0);
}
?>on('admin_head', 'noindex_page');
}
if ($options['disabledate'] || $options['disableauthor']) {
add_action('wp', 'archive_redirect');
}
if ($options['redirectsearch']) {
add_action('init', 'search_redirect');
}
if ($options['nofollowcatsingle'] || $options['nofollowcatpage']) {
add_filter('wp_list_categories','nofollow_category_listing');
}
if ($options['nofollowmeta']) {
add_filter('loginout','nofollow_link');
add_filter('register','nofollow_link');
}
if ($options['nofollowcommentlinks']) {
add_filter('comments_popup_link_attributes','echo_nofollow');
}
if ($options['nofollowtaglinks']) {
add_filter('the_tags','nofollow_taglinks');
}
if ($options['googleverify']) {
add_action('wp_head', 'google_verify');
}
if ($options['yahooverify']) {
add_action('wp_head', 'yahoo_verify');
}
if ($options['msverify']) {
add_action('wp_head', 'ms_verify');
}
if ($options['nofollowindexlinks']) {
add_filter('the_content','nofollow_index');
}
if ($options['replacemetawidget']) {
add_action('plugins_loaded', 'widget_jdvmeta_init');
}
function robotsmeta_activate() {
global $wpdb;
$wpdb->query("ALTER TABLE $wpdb->posts ADD COLUMN robotsmeta varchar(64)");
}
register_activation_hook( __FILE__, 'robotsmeta_activate' );
?>" >$customkey
Limits
You can limit the maximum number of links SEO Smart Links will generate per post. Set to 0 for no limit.
Max Links:
You can also limit maximum number of links created with the same keyword. Set to 0 for no limit.
Max Single:
External Links
SEO Smart links can open external links in new window and add nofollow attribute.