Plugin Directory

Changeset 565156


Ignore:
Timestamp:
06/29/2012 02:55:54 AM (14 years ago)
Author:
blazingtorch
Message:
 
Location:
paid-business-listings
Files:
10 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • paid-business-listings/tags/0.8/inc/inc_pbl_packages_page.php

    r482525 r565156  
    3434    $duration=$pkg->duration;
    3535   
    36     echo "<tr class='datarow'><td>$id</td><td>$name</td><td>$cost</td><td>$duration</td><td>$description</td><td>[gd-listings package=\"$id\"]</td><td><form method='post'><input type='hidden' name='action' value='delete_package' /><input type='hidden' name='pbl_package_id' value='$id' /><input type='submit' class='button-secondary' value='Delete Package' /></form></td></tr>";
     36    echo "<tr class='datarow'><td>$id</td><td>$name</td><td>$cost</td><td>$duration</td><td>$description</td><td>[pbl-listings package=\"$id\"]</td><td><form method='post'><input type='hidden' name='action' value='delete_package' /><input type='hidden' name='pbl_package_id' value='$id' /><input type='submit' class='button-secondary' value='Delete Package' /></form></td></tr>";
    3737}
    3838
  • paid-business-listings/trunk/inc/inc_display_listings.php

    r482508 r565156  
    1111
    1212if($atts[category]!=""){$category="cat_id='".$atts[category]."' AND ";}
    13 if($atts[package]!=""){$package="pkg_id='".$atts[package]."' AND ";}   
    14     $listings=$wpdb->get_results("SELECT id,name,logo_url,description,phone,url,email,address,city,state,zip FROM ".$wpdb->prefix."pbl_listings WHERE $package $category time_expired>NOW() AND active=1");
     13if($atts[package]!=""){$package="pkg_id='".$atts[package]."' AND ";}
     14$timenow=time();   
     15    $listings=$wpdb->get_results("SELECT id,name,logo_url,description,phone,url,email,address,city,state,zip FROM ".$wpdb->prefix."pbl_listings WHERE $package $category time_expired>$timenow AND active=1");
    1516   
    1617    foreach($listings as $listing){
  • paid-business-listings/trunk/inc/inc_pbl_listings_page.php

    r482504 r565156  
    4040<h2>Active Paid Business Listings</h2>
    4141
     42<h2>Create A New Listing</h2>
     43<p>NOTE: For listings that are added manually, payment is expected to have been obtained externally. In other words, this plugin doesn't send a bill or anything. You gotta get the money yourself.</p>
     44<form method="post"><input type="hidden" name="action" value="add_listing" />
     45    <table class="form-table">
     46        <tr valign="top">
     47        <th scope="row">Company Name</th>
     48        <td><input type="text" name="pbl_listing_name" value="" size="56" /></td>
     49        </tr>
     50         
     51        <tr valign="top">
     52        <th scope="row">Logo URL</th>
     53        <td><input type="text" name="pbl_listing_logo_url" value="" size="56" /></td>
     54        </tr>
     55         
     56        <tr valign="top">
     57        <th scope="row">Business Description</th>
     58        <td><textarea name="pbl_listing_description" cols="50" rows="2"></textarea></td>
     59        </tr>
     60
     61        <tr valign="top">
     62        <th scope="row">Business Phone</th>
     63        <td><input type="text" name="pbl_listing_phone" value="" size="56" /></td>
     64        </tr>
     65         
     66        <tr valign="top">
     67        <th scope="row">Website URL</th>
     68        <td><input type="text" name="pbl_listing_url" value="" size="56" /></td>
     69        </tr>
     70
     71        <tr valign="top">
     72        <th scope="row">Business Email Address</th>
     73        <td><input type="text" name="pbl_listing_email" value="" size="56" /></td>
     74        </tr>
     75
     76        <tr valign="top">
     77        <th scope="row">Street Address</th>
     78        <td><input type="text" name="pbl_listing_address" value="" size="56" /></td>
     79        </tr>
     80
     81        <tr valign="top">
     82        <th scope="row">City/State/Zip</th>
     83        <td>
     84        <input type="text" name="pbl_listing_city" value="" size="20" />
     85
     86
     87
     88        <?php
     89        $state_province_field=get_option('pbl_state_province_field');
     90       
     91        if(($state_province_field=="TEXT")||($state_province_field=="")){
     92            echo "<input type='text' name='pbl_listing_state' value='$state' />";
     93        }else{
     94            echo "<select name='pbl_listing_state'>";
     95            echo "<option value=''>Select Your State/Province</option>";
     96            echo stateSelect($state_province_field,$state);
     97            echo "</select>";
     98        }
     99        ?>
     100
     101        <input type="text" name="pbl_listing_zip" value="" size="10" />
     102        </td>
     103        </tr>
     104
     105        <tr valign="top">
     106        <th scope="row">Category</th>
     107        <td>
     108        <?php echo getCategoryList(); ?>
     109        </td>
     110        </tr>
     111
     112        <tr valign="top">
     113        <th scope="row">Package</th>
     114        <td>
     115        <?php echo getPackageList(); ?>
     116        </td>
     117        </tr>
     118
     119    </table>
     120   
     121    <p class="submit">
     122    <input type="submit" class="button-primary" value="Create Listing" />
     123    </p>
     124
     125</form>
     126
     127
    42128<table class="pbladmin">
    43129<tr class="headrow"><td>Company Name</td><td>Logo</td><td width="300">Listing Content</td><td>Category</td><td>Package</td><td>Listed</td><td>Expired</td><td>&nbsp;</td></tr>
     
    45131<?php
    46132global $wpdb;
    47 $listings=$wpdb->get_results("SELECT id,name,logo_url,description,phone,url,email,address,city,state,zip,cat_id,pkg_id,time_listed,time_expired FROM ".$wpdb->prefix."pbl_listings WHERE active='1'");
     133$timenow=time();   
     134$listings=$wpdb->get_results("SELECT id,name,logo_url,description,phone,url,email,address,city,state,zip,cat_id,pkg_id,time_listed,time_expired FROM ".$wpdb->prefix."pbl_listings WHERE time_expired>$timenow AND active='1'");
    48135
    49136foreach($listings as $listing){
     
    110197
    111198</table>
    112 
    113 
    114 <h3>Create A New Listing</h3>
    115 <p>NOTE: For listings that are added manually, payment is expected to have been obtained externally. In other words, this plugin doesn't send a bill or anything. You gotta get the money yourself.</p>
    116 <form method="post"><input type="hidden" name="action" value="add_listing" />
    117     <table class="form-table">
    118         <tr valign="top">
    119         <th scope="row">Company Name</th>
    120         <td><input type="text" name="pbl_listing_name" value="" size="56" /></td>
    121         </tr>
    122          
    123         <tr valign="top">
    124         <th scope="row">Logo URL</th>
    125         <td><input type="text" name="pbl_listing_logo_url" value="" size="56" /></td>
    126         </tr>
    127          
    128         <tr valign="top">
    129         <th scope="row">Business Description</th>
    130         <td><textarea name="pbl_listing_description" cols="50" rows="2"></textarea></td>
    131         </tr>
    132 
    133         <tr valign="top">
    134         <th scope="row">Business Phone</th>
    135         <td><input type="text" name="pbl_listing_phone" value="" size="56" /></td>
    136         </tr>
    137          
    138         <tr valign="top">
    139         <th scope="row">Website URL</th>
    140         <td><input type="text" name="pbl_listing_url" value="" size="56" /></td>
    141         </tr>
    142 
    143         <tr valign="top">
    144         <th scope="row">Business Email Address</th>
    145         <td><input type="text" name="pbl_listing_email" value="" size="56" /></td>
    146         </tr>
    147 
    148         <tr valign="top">
    149         <th scope="row">Street Address</th>
    150         <td><input type="text" name="pbl_listing_address" value="" size="56" /></td>
    151         </tr>
    152 
    153         <tr valign="top">
    154         <th scope="row">City/State/Zip</th>
    155         <td>
    156         <input type="text" name="pbl_listing_city" value="" size="20" />
    157         <select name="pbl_listing_state">
    158             <?php echo stateSelect(); ?>
    159         </select>
    160         <input type="text" name="pbl_listing_zip" value="" size="10" />
    161         </td>
    162         </tr>
    163 
    164         <tr valign="top">
    165         <th scope="row">Category</th>
    166         <td>
    167         <?php echo getCategoryList(); ?>
    168         </td>
    169         </tr>
    170 
    171         <tr valign="top">
    172         <th scope="row">Package</th>
    173         <td>
    174         <?php echo getPackageList(); ?>
    175         </td>
    176         </tr>
    177 
    178     </table>
    179    
    180     <p class="submit">
    181     <input type="submit" class="button-primary" value="Create Listing" />
    182     </p>
    183 
    184 </form>
    185199</div>
    186200<?php }
  • paid-business-listings/trunk/paid-business-listings.php

    r501321 r565156  
    44Plugin URI: http://www.paidbusinesslistings.com
    55Description: This is a plugin that allows businesses to add themselves to a category-based business listing directory on your Wordpress site using package parameters that you have set up.  Install the plugin, fill in your settings, and paste shortcode into WordPress pages or posts.
    6 Version: 1.0.1
     6Version: 1.0.2
    77Author: Bryan Haddock
    88Author URI: http://www.paidbusinesslistings.com/
  • paid-business-listings/trunk/readme.txt

    r501322 r565156  
    33Tags: paypal, business listings, business directory, advertising, advertisers, paid
    44Requires at least: 2.7
    5 Tested up to: 3.3
    6 Stable tag: 1.0.1
     5Tested up to: 3.4
     6Stable tag: 1.0.2
    77
    88Allow business to pay to add themselves to directory on your WordPress website
     
    7272* Added Choices for State/Province field
    7373* Fixed Bug with State dropdown while editing listings in the dashboard
     74
     75= June 28, 2012 - 1.0.2 =
     76* Fixed bug with MySQL syntax
     77
Note: See TracChangeset for help on using the changeset viewer.