Viewing 1 replies (of 1 total)
  • Dana Ross

    (@csixty4)

    To make this work with WP-Subdomains, open up heatmap.php and replace the heatmap_set_wpurl() function with the following (tested by Peter):

    /**
     * Function set domain name
     */
    function heatmap_set_wpurl() {
    	if(defined('WPS_VERSION')) {
    		// WP-Subdomains installed
    		$wpURL = 'http://'.$_SERVER['HTTP_HOST'];
    	}
    	else {
    		$wpURL = get_bloginfo('wpurl');
    	}
    	echo "<script type=\"text/javascript\">\n//<![CDATA[ \n\tvar WPURL = '$wpURL';\n //]]>\n</script>";
    }
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Heatmap Plugin] WP-Subdomains and Heat Map Plugin’ is closed to new replies.