Plugin Directory

Changeset 147633


Ignore:
Timestamp:
08/20/2009 06:39:06 PM (17 years ago)
Author:
php4ever
Message:
 
Location:
wp-zillow
Files:
13 added
4 edited

Legend:

Unmodified
Added
Removed
  • wp-zillow/trunk/readme.txt

    r120939 r147633  
    44Tags: zillow, real estate, charts, demographics, IDX RETS, Zillow API
    55Requires at least: 2.6+
    6 Tested up to: 2.7.1
    7 Stable tag: 0.9.9
     6Tested up to: 2.8.4
     7Stable tag: 1.0.1
    88
    99WordPress 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.
    1010
    1111== Description ==
     12`EASY TEMPLATE CUSTOMIZATION FOR BETTER DISPLAY OF CHARTS NOW ADDED THIS RELEASE`
    1213The 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.
    1314
    14 Tested with version 2.7.1 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.
     15Tested 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.
    1516
    1617> 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.
     
    4243
    4344== 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`
     451. `/tags/1.0.1/screenshot-1.jpg`
     462. `/tags/1.0.1/screenshot-2.jpg`
     473. `/tags/1.0.1/screenshot-3.jpg`
     484. `/tags/1.0.1/screenshot-4.jpg`
    4849
    4950== Important Recent Updates This Release ==
    50 1. BUG FIX for City Names that are more than two words like Del Mar California for instance.
     511. ADDED ZILLOW API COMPLIANCE FEATURE.
     521. EASY TO FOLLOW TEMPLATING FOR MUCH CLEANER MORE INVOLVED CONTROL OVER OUTPUT
    51531. Fully CSS XHTML validated output of the chart results.
    52541. Introduction of the new template system for easy styling and structuring.
     
    5961
    6062== 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
     63THE SUPPORT FORUM AT ULTIMATEIDX.COM IS THE BEST SOURCE FOR HELP AT THIS POINT
    6264
    6365== Quick Start Guide ==
  • wp-zillow/trunk/template/zillow.html

    r120939 r147633  
    11<!--[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 />
    138</div>
  • wp-zillow/trunk/wp-zillow.php

    r120939 r147633  
    33Plugin Name: WP Zillow API
    44Plugin 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.
     5Description: <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.
    66Author: Mack McMillan UltimateIDX
    7 Version: 0.9.9
     7Version: 1.0.1
    88Author URI: http://www.ultimateidx.com/wp-zillow/
    99*/
    1010
    11 $wpzillow_version = '0.9.9';
     11$wpzillow_version = '1.0.1';
    1212//////////////////////////////////////////////////
    1313/* Set the action to show the main options page */
    1414//////////////////////////////////////////////////
    1515
     16
    1617//////////////////////////////
    1718/* admin_menu hook function */
    1819//////////////////////////////
    19 
    2020add_action('admin_menu', 'show_zillow_option');
    2121add_action('activate_wp-zillow/wp-zillow.php', 'zillow_install');
    2222add_filter('the_content', 'zillow_check_content');
    23 
    2423function zillow_install()
    2524{
     
    3837                    ) ENGINE = MYISAM ";
    3938    $wpdb->query($structure);
    40 
    4139}
    4240
     
    5755        global $wpdb;
    5856        $table = $wpdb->prefix."zillow";
    59        
    6057    $template_number=null;
    6158    if(isset($_POST['template_number']) && $_POST['template_number'] > 0)
     
    6764        $state = mysql_escape_string($_POST['state']);
    6865        $postcode = mysql_escape_string($_POST['postcode']);
    69    
    7066        if($template_number){
    71 
    7267            $sql = "UPDATE $table SET template_name = '$template_name', template_file = '$template_file', street='$street', city='$city', state='$state', postcode='$postcode' WHERE id = $template_number";
    7368            $wpdb->query($sql);
    74 
    7569            echo '<div id="message" class="updated fade">';
    7670            echo '<p>Data Updated</p>';
     
    279273    require_once("zill.php");
    280274    $zillow = new Zillow($address);
    281    
    282     ////EDIT HERE CLASSES////
    283     $zillow->ulClass = "ulClass";
    284     $zillow->liClass = "liClass";
    285     $zillow->spanClass = "spanClass";
    286     /////////////////////////
    287    
    288275    $chart_image = $zillow->zillowGetChart();
    289276    $region_chart_image = $zillow->zillowGetRegionChart();
    290277    $demographic_data = $zillow->zillowGetDemographicData();
     278    $regionId = $zillow->zillowGetRegionId();
     279    $zillow_privacy_text = "&copy; 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   
    291282/* ////////////////////////////////////////////////////////////////////////////
    292283if we have a template defined for that tag, meaning a file with name
     
    311302    $template=str_replace("{zillow_region_chart_image}", "<img src='$region_chart_image' border='0'>", $template);
    312303    $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   
    313306    return $template;
    314307    }
  • wp-zillow/trunk/zill.php

    r120939 r147633  
    33// Publisher: The UltimateIDX - Real Estate WordPress Solutions
    44// Plugin URL: http://www.ultimateidx.com/wp-zillow/
    5 // Version: 0.9.9 for WordPress 2.7+
     5// Version: 0.9.6 for WordPress 2.7+
    66// Support: http://www.ultimateidx.com/
    77// Design Features: Jared Ritchey
     
    2626//
    2727
     28//regionID
     29public 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
    2839// Demographic Data Layout Here
    2940public function zillowGetDemographicData()
    3041{
    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'];
    3243    $result = $this->makeCURLrequest($url);
    3344    $xml = new SimpleXMLElement($result);
    34     $data ='<ul class="'.$this->ulClass.'">';
     45    $data ='';
    3546    foreach($xml->response->charts->chart as $chart)
    3647    {
    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>";
    4152    }
    42     $data .= "</ul>";
    4353    return $data;
    4454}
     
    4656public function zillowGetRegionChart()
    4757{
    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'];
    4959    $result = $this->makeCURLrequest($url);
    5060    $xml = new SimpleXMLElement($result);
Note: See TracChangeset for help on using the changeset viewer.