Sharebox Javascript Variables Showing on NON Floating Social Pages

I'm seeing the floating social javascript variable code even on pages that don't use the floating social. This shouldn't be happening.

<script type="text/javascript">
var _wdsb_data = {
"min_width": 1165,
"horizontal_selector": "",
"top_selector": "",
"z_index": 99998,
"allow_fixed": 1,
"offset": {"htype": "text", "hdir": "left", "hoffset": 25, "vtype": "text", "voffset": 0},
"limit": {"top_selector": "", "top_offset": 0, "bottom_selector": "", "bottom_offset": 0}
};
</script>

  • PC
    • WPMU DEV Initiate

    I also see the same behavior on my lab site. The best way to get a proper explanation on this one would be to call our lead developer on this thread so that he can advise us.

    Flagging @Vladislav for his expert comments on this.

    Please note that it might take longer than a usual thread and I thank you for your patience in advance.

    Cheers, PC

  • ivn
    • The Crimson Coder

    May I recommend adding Twitter options like the other social media plugins such as sharethis.

    I have modified the plugin's twitter box_template in /lib/forms/box_template.php to allow for twitter fields from authors, buddypress and a site option field in the theme incase the author doesn't have a twitter account. This will also popup follow notifications on twitters side after sharing and include title. Below is the code:

    Line 32:

    case "twitter":
    	if (!in_array('twitter', $skip_script)) echo '<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>';
    	$post_id = is_singular() ? get_the_ID() : false;
    
    	// Get Author ID
    	global $bp;
    	$post_tmp = get_post($post_id);
    	$author_id = $post_tmp->post_author;
    
    	// Get Author Buddypress Twitter Account
    	$twitter_related = 'data-related="' . bp_get_profile_field_data( 'field=Twitter&user_id=' . $author_id ) . '"';
    	$twitter_related = str_replace("@", "", $twitter_related);
    
    	// Get Current Site Twitter Account
    	$options = get_option('blog_theme_options');
    
    	if( $options['blog_twitter_url'] ) {
    
    		$result = preg_match("/https?:\/\/(www\.)?twitter\.com\/(#!\/)?@?([^\/]*)/", $options['blog_twitter_url'], $matches);
    
    		//var_dump($matches);
    		$account = $matches[3];
    
    	} else {
    		$account = "DEFAULT_TWITTER_ACCOUNT";
    	}
    
    	echo '<a href="http://twitter.com/share" '. $twitter_related .'" class="twitter-share-button" data-count="vertical" data-via="'. $account . '" data-text"'. $post_tmp->title .'">Tweet</a>';
    	break;

    Could we see something like this integrated?

  • PC
    • WPMU DEV Initiate

    Hiya,

    Greetings and thanks for being a great community member.

    We haven't heard from you on this one for long and I am doing a regular followup to see if there is still something we can assist you on this thread.

    Just to manage the support issues more efficiently, I am marking this thread as resolved for now however this is not being done to avoid your questions in any ways.

    Please feel free to mark this is "Not resolved" in case you have further questions and we would be back on it.

    Thanks a lot for being with WPMU DEV.

    Cheers
    PC

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.