What Would Seth Godin Do by Richard K Miller.
Version: 1.0.0
Author: Becky Sanders
Author URI: http://www.preblogging.com
*/
$defaultdata = array(
'new_digg_visitor_message' => "
Hello fellow Digger, if you like this page, don't forget to digg it !
",
'new_stumble_visitor_message' => "Welcome, StumbleUpon visitor! Don't forget to give me thumbs up if you like this page !
",
'message_location' => 'before_post',
'nice_link' => 'no'
);
add_option('incSoc_settings', $defaultdata, 'Options for Increasing StumbleUpon/Digg Traffic');
$incSoc_settings = get_option('incSoc_settings');
$incSoc_settings['new_digg_visitor_message'] = stripslashes($incSoc_settings['new_digg_visitor_message']);
$incSoc_settings['new_stumble_visitor_message'] = stripslashes($incSoc_settings['new_stumble_visitor_message']);
add_action('admin_menu', 'add_incSoc_options_page');
add_filter('the_content', 'incSoc_message_filter');
function add_incSoc_options_page()
{
if (function_exists('add_options_page'))
{
add_options_page('Increase Social Media Traffic', 'Increase Sociability', 8, basename(__FILE__), 'incSoc_options_subpanel');
}
}
function incSoc_options_subpanel()
{
global $incSoc_settings, $_POST;
if (isset($_POST['submit']))
{
$incSoc_settings['new_digg_visitor_message'] = stripslashes($_POST['new_digg_visitor_message']);
$incSoc_settings['new_stumble_visitor_message'] = stripslashes($_POST['new_stumble_visitor_message']);
$incSoc_settings['message_location'] = $_POST['message_location'];
$incSoc_settings['nice_link'] = $_POST['nice_link'];
update_option('incSoc_settings', $incSoc_settings);
}
?>
Increase StumbleUpon and Digg votes
When the browser detects that a visitor is coming from StumbleUpon.com or from Digg.com, it will give them a little reminder that then should give you a vote. This plugin should help increase the precentage of visitors to voters a little (or a lot).
testdata : " . $URL['host'] . "
" ;
return $returnValue;
}
function preblogging_notice() {
global $incSoc_settings;
$comment = "\n\n " ;
if ($incSoc_settings['nice_link'] == 'yes'){
echo 'I\'m happy to use Increase Sociability.
';
echo $comment;
}else {
echo $comment;
}
}
add_action( 'wp_footer', 'preblogging_notice' );
?>