Changeset 147633
- Timestamp:
- 08/20/2009 06:39:06 PM (17 years ago)
- Location:
- wp-zillow
- Files:
-
- 13 added
- 4 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/license.txt (added)
-
tags/1.0.1/readme.txt (added)
-
tags/1.0.1/screenshot-1.jpg (added)
-
tags/1.0.1/screenshot-2.jpg (added)
-
tags/1.0.1/screenshot-3.jpg (added)
-
tags/1.0.1/screenshot-4.jpg (added)
-
tags/1.0.1/template (added)
-
tags/1.0.1/template/index.php (added)
-
tags/1.0.1/template/zillow.html (added)
-
tags/1.0.1/template/zillow_x.html (added)
-
tags/1.0.1/wp-zillow.php (added)
-
tags/1.0.1/zill.php (added)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/template/zillow.html (modified) (1 diff)
-
trunk/wp-zillow.php (modified) (6 diffs)
-
trunk/zill.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-zillow/trunk/readme.txt
r120939 r147633 4 4 Tags: zillow, real estate, charts, demographics, IDX RETS, Zillow API 5 5 Requires at least: 2.6+ 6 Tested up to: 2. 7.17 Stable tag: 0.9.96 Tested up to: 2.8.4 7 Stable tag: 1.0.1 8 8 9 9 WordPress Zillow Demographic Charts Plugin was developed to provide a website owners with an easy way to add dynamic demographic details to real estate realted posts and pages. 10 10 11 11 == Description == 12 `EASY TEMPLATE CUSTOMIZATION FOR BETTER DISPLAY OF CHARTS NOW ADDED THIS RELEASE` 12 13 The UltimateIDX Presents, WP Zillow API for WordPress Real Estate Blogging at its best. Developed originally for our client use only, we have released this tool as a contribution to the WordPress community in support of the Worlds best Real Estate website platform, WordPress. This plugin provides blog website owners with a truly easy to manage easy to integrate charting solution for Zillow Demographics that can be put into your blogs posts and pages. 13 14 14 Tested with version 2. 7.1and WordPress MU, the plugin can support hundreds of chart examples and can be displayed or presented based entirely on area demographics or right down to the very address you are blogging about. Even though this plugin was most beneficial in the hands of developers and web designers we have added the first version of a templated system to allow a relatively novice user the ability to customize the look and feel of the charted layouts.15 Tested with version 2.8.4 and WordPress MU, the plugin can support hundreds of chart examples and can be displayed or presented based entirely on area demographics or right down to the very address you are blogging about. Even though this plugin was most beneficial in the hands of developers and web designers we have added the first version of a templated system to allow a relatively novice user the ability to customize the look and feel of the charted layouts. 15 16 16 17 > For Theme Developers, please visit UltimateIDX.com for details on how to distribute this plugin with your WordPress themes FREELY and Without Additional License Requirements. We can provide you easy to include PHP code to make your distribution of the plugin exceptionally easy. … … 42 43 43 44 == Screenshots == 44 1. `/tags/ 0.9.8/screenshot-1.jpg`45 2. `/tags/ 0.9.8/screenshot-2.jpg`46 3. `/tags/ 0.9.8/screenshot-3.jpg`47 4. `/tags/ 0.9.8/screenshot-4.jpg`45 1. `/tags/1.0.1/screenshot-1.jpg` 46 2. `/tags/1.0.1/screenshot-2.jpg` 47 3. `/tags/1.0.1/screenshot-3.jpg` 48 4. `/tags/1.0.1/screenshot-4.jpg` 48 49 49 50 == Important Recent Updates This Release == 50 1. BUG FIX for City Names that are more than two words like Del Mar California for instance. 51 1. ADDED ZILLOW API COMPLIANCE FEATURE. 52 1. EASY TO FOLLOW TEMPLATING FOR MUCH CLEANER MORE INVOLVED CONTROL OVER OUTPUT 51 53 1. Fully CSS XHTML validated output of the chart results. 52 54 1. Introduction of the new template system for easy styling and structuring. … … 59 61 60 62 == Additional Configuration Notes == 61 Support forum is brand spaking new and is scheduled to be open for configuration helps and notes on Saturday May 16th 63 THE SUPPORT FORUM AT ULTIMATEIDX.COM IS THE BEST SOURCE FOR HELP AT THIS POINT 62 64 63 65 == Quick Start Guide == -
wp-zillow/trunk/template/zillow.html
r120939 r147633 1 1 <!--[basic template please see instructions for details]--> 2 <style type="text/css"> 3 div.wpzillow-chart-wrapper{background:transparent; margin:6px 0px; width:200px; float:left;} 4 img.wpzillow-chart-image{border:5px solid #333;} 5 h4.wpzillow-chart-title{padding:0px; margin:0px;} 6 #mywpzillow{width:704px; margin-top:18px;} 7 </style> 8 <!--[<h2>{zillow_search_address}</h2>]--> 9 <div id="mywpzillow" class="clearfix"> 10 <p>{zillow_chart_image}</p> 11 <p>{zillow_region_chart_image}</p> 12 {zillow_demographic_data} 2 <div > 3 <p align='center'><b>{zillow_search_address}</b></p> 4 {zillow_chart_image}<br /> 5 {zillow_region_chart_image}<br /> 6 {zillow_privacy_text}<br /><br /> 7 {zillow_demographic_data}<br /> 13 8 </div> -
wp-zillow/trunk/wp-zillow.php
r120939 r147633 3 3 Plugin Name: WP Zillow API 4 4 Plugin URI: http://www.ultimateidx.com 5 Description: <strong>WP Zillow 0.9.6</strong> -- This plugin was created to assist real estate professionals with the marketing of their services via their blog. By providing Zillow Demographic and Zillow Chart features in Posts you write for neighborhoods and cities, you increasing the usability of your content and provide a more informative blog post for your visitors. This plugin is fully template driven for maximum usage across many different types of theme designs. The WP Zillow plugin requires you to modify the main plugin file for this release. You can get your <a href="http://www.zillow.com/howto/api/APIOverview.htm" title="Zillow API" target="_blank">ZILLOW API Key</a> which you add below.5 Description: <strong>WP Zillow 1.0.1 </strong> -- This plugin was created to assist real estate professionals with the marketing of their services via their blog. By providing Zillow Demographic and Zillow Chart features in Posts you write for neighborhoods and cities, you increasing the usability of your content and provide a more informative blog post for your visitors. This plugin is fully template driven for maximum usage across many different types of theme designs. The WP Zillow plugin requires you to modify the main plugin file for this release. You can get your <a href="http://www.zillow.com/howto/api/APIOverview.htm" title="Zillow API" target="_blank">ZILLOW API Key</a> which you add below. 6 6 Author: Mack McMillan UltimateIDX 7 Version: 0.9.97 Version: 1.0.1 8 8 Author URI: http://www.ultimateidx.com/wp-zillow/ 9 9 */ 10 10 11 $wpzillow_version = ' 0.9.9';11 $wpzillow_version = '1.0.1'; 12 12 ////////////////////////////////////////////////// 13 13 /* Set the action to show the main options page */ 14 14 ////////////////////////////////////////////////// 15 15 16 16 17 ////////////////////////////// 17 18 /* admin_menu hook function */ 18 19 ////////////////////////////// 19 20 20 add_action('admin_menu', 'show_zillow_option'); 21 21 add_action('activate_wp-zillow/wp-zillow.php', 'zillow_install'); 22 22 add_filter('the_content', 'zillow_check_content'); 23 24 23 function zillow_install() 25 24 { … … 38 37 ) ENGINE = MYISAM "; 39 38 $wpdb->query($structure); 40 41 39 } 42 40 … … 57 55 global $wpdb; 58 56 $table = $wpdb->prefix."zillow"; 59 60 57 $template_number=null; 61 58 if(isset($_POST['template_number']) && $_POST['template_number'] > 0) … … 67 64 $state = mysql_escape_string($_POST['state']); 68 65 $postcode = mysql_escape_string($_POST['postcode']); 69 70 66 if($template_number){ 71 72 67 $sql = "UPDATE $table SET template_name = '$template_name', template_file = '$template_file', street='$street', city='$city', state='$state', postcode='$postcode' WHERE id = $template_number"; 73 68 $wpdb->query($sql); 74 75 69 echo '<div id="message" class="updated fade">'; 76 70 echo '<p>Data Updated</p>'; … … 279 273 require_once("zill.php"); 280 274 $zillow = new Zillow($address); 281 282 ////EDIT HERE CLASSES////283 $zillow->ulClass = "ulClass";284 $zillow->liClass = "liClass";285 $zillow->spanClass = "spanClass";286 /////////////////////////287 288 275 $chart_image = $zillow->zillowGetChart(); 289 276 $region_chart_image = $zillow->zillowGetRegionChart(); 290 277 $demographic_data = $zillow->zillowGetDemographicData(); 278 $regionId = $zillow->zillowGetRegionId(); 279 $zillow_privacy_text = "© Zillow, Inc., 2009. Use is subject to <a href='http://www.zillow.com/corp/Terms.htm'>Terms of Use</a>."; 280 $zillow_privacy_link = "<a href='http://www.zillow.com/local-info/".strtoupper(substr($state,0,2))."-".str_replace(' ','-',$city)."-home-value/r_".$regionId."/' target='_blank'>See ".$city." Home Values at Zillow.com</a>"; 281 291 282 /* //////////////////////////////////////////////////////////////////////////// 292 283 if we have a template defined for that tag, meaning a file with name … … 311 302 $template=str_replace("{zillow_region_chart_image}", "<img src='$region_chart_image' border='0'>", $template); 312 303 $template=str_replace("{zillow_demographic_data}", "$demographic_data", $template); 304 $template=str_replace("{zillow_privacy_text}", "$zillow_privacy_text<br/>$zillow_privacy_link", $template); 305 313 306 return $template; 314 307 } -
wp-zillow/trunk/zill.php
r120939 r147633 3 3 // Publisher: The UltimateIDX - Real Estate WordPress Solutions 4 4 // Plugin URL: http://www.ultimateidx.com/wp-zillow/ 5 // Version: 0.9. 9for WordPress 2.7+5 // Version: 0.9.6 for WordPress 2.7+ 6 6 // Support: http://www.ultimateidx.com/ 7 7 // Design Features: Jared Ritchey … … 26 26 // 27 27 28 //regionID 29 public function zillowGetRegionId() 30 { 31 $url = $this->zillow_demographic_data_url."&state=".$this->address['state']."&city=".$this->address['city']; 32 $result = $this->makeCURLrequest($url); 33 $xml = new SimpleXMLElement($result); 34 35 return $xml->response->region->id; 36 } 37 38 28 39 // Demographic Data Layout Here 29 40 public function zillowGetDemographicData() 30 41 { 31 $url = $this->zillow_demographic_data_url."&state=". urlencode($this->address['state'])."&city=".urlencode($this->address['city']);42 $url = $this->zillow_demographic_data_url."&state=".$this->address['state']."&city=".$this->address['city']; 32 43 $result = $this->makeCURLrequest($url); 33 44 $xml = new SimpleXMLElement($result); 34 $data =' <ul class="'.$this->ulClass.'">';45 $data =''; 35 46 foreach($xml->response->charts->chart as $chart) 36 47 { 37 38 $data .= "< li class='".$this->liClass."'><span class='".$this->spanClass."'>".$chart->name."<br>";39 $data .= "<img alt='".$chart->name." - ".$this->address['street'].", ".$this->address['city']."' src='".$chart->url."'></span></li>";40 48 $data .= "<div class='wpzillow-chart-wrapper'>"; 49 $data .= "<h4 class='wpzillow-chart-title'>".$chart->name."</h4>"; 50 $data .= "<img class='wpzillow-chart-image' src='".$chart->url."'>"; 51 $data .= "</div>"; 41 52 } 42 $data .= "</ul>";43 53 return $data; 44 54 } … … 46 56 public function zillowGetRegionChart() 47 57 { 48 $url = $this->zillow_region_chart_url.'&zip='. urlencode($this->address['postcode']).'&unit-type='.$this->zillow_charts_settings['unit-type'].'&chartDuration='.$this->zillow_charts_settings['chartDuration'].'&width='.$this->zillow_charts_settings['width'].'&height='.$this->zillow_charts_settings['height'];58 $url = $this->zillow_region_chart_url.'&zip='.$this->address['postcode'].'&unit-type='.$this->zillow_charts_settings['unit-type'].'&chartDuration='.$this->zillow_charts_settings['chartDuration'].'&width='.$this->zillow_charts_settings['width'].'&height='.$this->zillow_charts_settings['height']; 49 59 $result = $this->makeCURLrequest($url); 50 60 $xml = new SimpleXMLElement($result);
Note: See TracChangeset
for help on using the changeset viewer.