Index: readme.txt =================================================================== --- readme.txt (revision 102146) +++ readme.txt (working copy) @@ -4,7 +4,7 @@ Tags: directory,links,directory links,business directory Requires at least: 2.7 Tested up to: 2.7 -Stable tag: 1.5.0 +Stable tag: 1.5.1 Add a Business Directory or Directory of Links in different categories and pages. Show website thumbnails of Links with Url's. Index: wp-directory-link-html.php =================================================================== --- wp-directory-link-html.php (revision 101998) +++ wp-directory-link-html.php (working copy) @@ -9,7 +9,7 @@ * File Information: * * - Configure Directory Options * * - wp-content/plugins/wp-directory-list/wp-directory-link-html.php * -* - Version 2.1.0 * +* - Version 2.1.1 * * * ***********************************************************************/ @@ -87,8 +87,10 @@ } if(get_option('create_link_thumbs') && $links->url){ - $stwimg = 'id; @@ -111,9 +113,14 @@ } $stwimg .= '" rel="bookmark" title="'. $links->title; $stwimg .='">'; + }else{ + + $stwimg = ''; + + } }else{ $stwimg = ''; Index: wp-directory-list.php =================================================================== --- wp-directory-list.php (revision 102146) +++ wp-directory-list.php (working copy) @@ -4,7 +4,7 @@ Plugin Name: Wp-Directory-List Plugin URI: http://themoneymakingwebsite.com/wp-directory-list/ Description: Add a directory listing to your blog. -Version: 1.5.0 +Version: 1.5.1 Author: Billie Kennedy Jr Author URI: http://themoneymakingwebsite.com */ @@ -30,7 +30,7 @@ require_once(ABSPATH .'wp-includes/pluggable.php'); // declare the current version -$wp_directory_list_db_version = "1.5.0"; +$wp_directory_list_db_version = "1.5.1"; $wp_directory_table = $wpdb->prefix .'directory_links'; $wp_directory_table2 = $wpdb->prefix .'directory_link_cats'; @@ -95,7 +95,7 @@ if(isset($atts['order']) && isset($atts['orderby'])){ - $sql .= $atts['order']; + $sql .= ' '.$atts['order']; } @@ -109,6 +109,7 @@ //$directory = $parent.$directory; //echo get_option('blogurl'); //echo here; + $content .= $sql; $content .= $directory ; return $content; @@ -265,6 +266,11 @@ example: Nifty blogging PluginWeb Address: %URL%example: http://www.themoneymakingwebsite.comDescription:%DESCRIPTION%Category: %CATEGORY%Address: %ADDRESS1%Address2: %ADDRESS2%City: %CITY%State: %STATE%Zipcode: %ZIPCODE%Country: %COUNTRY%Phone: %PHONE%Fax: %FAX%Email: %EMAIL%%RECAPTCHA% '); break; + + case "1.5.0": + + break; + default: break; Index: wp-directory-process-form.php =================================================================== --- wp-directory-process-form.php (revision 102146) +++ wp-directory-process-form.php (working copy) @@ -10,7 +10,7 @@ * File Information: * * - Configure Directory Options * * - wp-content/plugins/wp-directory-list/wp-directory-process-form.php * -* - Version 1.0.3 * +* - Version 1.1.0 * * * ***********************************************************************/ require_once('recaptchalib.php'); @@ -18,15 +18,18 @@ require_once(ABSPATH .'wp-includes/wp-db.php'); require_once(ABSPATH .'wp-includes/pluggable.php'); -$privatekey = get_option('recap_priv'); -$resp = recaptcha_check_answer ($privatekey, - $_SERVER["REMOTE_ADDR"], - $_POST["recaptcha_challenge_field"], - $_POST["recaptcha_response_field"]); - -if (!$resp->is_valid && get_option('directory_captcha')) { - die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . - "(reCAPTCHA said: " . $resp->error . ")"); +$captcha = get_option('directory_captcha'); +if($captcha){ + $privatekey = get_option('recap_priv'); + $resp = recaptcha_check_answer ($privatekey, + $_SERVER["REMOTE_ADDR"], + $_POST["recaptcha_challenge_field"], + $_POST["recaptcha_response_field"]); + + if (!$resp->is_valid) { + die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . + "(reCAPTCHA said: " . $resp->error . ")"); + } } $wp_directory_table = $wpdb->prefix .'directory_links'; @@ -35,6 +38,14 @@ $linkdesc = strip_tags(trim($_POST['link_description'])); $link_url = strip_tags(trim($_POST['dir_link_url'])); $linkcats = intval($_POST['category']); + + // got to have something in it. + if($linkcats<1){ + + $linkcats = -1; + + } + $linkid = intval($_POST['linkid']); $linkaddress1 = strip_tags(trim($_POST['directory_address1'])); $linkaddress2 = strip_tags(trim($_POST['directory_address2']));