=== Gravity Forms Directory & Addons === Tags: gravity forms, forms, gravity, form, crm, gravity form, directory, business, business directory, list, listings, sort, submissions, table, tables, member, contact, contacts, directorypress, business directory, directory plugin, wordpress directory, classifieds, captcha, cforms, contact, contact form, contact form 7, contact forms, CRM, email, enhanced wp contact form, feedback, form, forms, gravity, gravity form, gravity forms, secure form, simplemodal contact form, wp contact form, widget Requires at least: 2.8 Tested up to: 3.1.1 Stable tag: trunk Contributors: katzwebdesign Donate link:https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=zackkatz%40gmail%2ecom&item_name=Gravity%20Forms%20Addons&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8 Add directory capabilities and other functionality to the great Gravity Forms plugin. == Description == > This plugin requires the Gravity Forms plugin. Don't use Gravity Forms? Buy the plugin and start using this revolutionary plugin! __How easy is Gravity Forms? Check out the video below:__ [youtube http://www.youtube.com/watch?v=AqRjKT086Ao] ### Turn Gravity Forms into a Directory plugin Gravity Forms is already the easiest form plugin - its functionality makes WordPress close to having user-submitted directory capabilities. Finally, the Gravity Forms Directory & Addons plugin does just that. * Completely shortcode based, using the `[directory]` shortcode * Includes built-in __searching__ * Sort by column * Easily re-organize the columns inside Gravity Forms * Has an option to show only approved listings * Show or hide any column * Display directory & entries as a table (default), list (`
remove_filter('gform_pre_submission_filter','gf_yst_store_referrer');
= How do I use the filters? =
If you want to modify the output of the plugin, you can do so by adding code to your active __theme's `functions.php` file__. For more information, check out the add_filter() WordPress Codex page
// This replaces "John" in a first name field with "Jack"
add_filter('kws_gf_directory_value_text', 'john_to_jack');
function john_to_jack($content) {
return str_replace('John', 'Jack', $content);
}
// This replaces the "Email" table column header with "asdsad"
add_filter('kws_gf_directory_th', 'email_to_asdsad');
function email_to_asdsad($content) {
return str_replace('Email', 'asdsad', $content);
}
// This replaces "Displaying 1-20" with "asdsad 1 - 20"
add_filter('kws_gf_directory_output', 'displaying_to_asdasd');
function displaying_to_asdasd($content) {
return str_replace('Displaying', 'asdsad', $content);
}
// This replaces images with the Google icon.
// You can modify all sorts of things using the $img array in this filter.
add_filter('kws_gf_directory_lead_image', 'kws_gf_directory_lead_image_edit');
function kws_gf_directory_lead_image_edit($img = array()) {
// $img = array('src' => $src, 'size' => $size, 'title' => $title, 'caption' => $caption, 'description' => $description, 'url' => $url, 'code' => "
");
$img['code'] = '
';
return $img;
}
= I can't see the fields in the Add Fields box! =
The code is meant to expand all the field boxes so you don't need to click them open and closed all the time. This works normally in Safari and Chrome (read: good browsers :-P). For some other browsers, it breaks the whole page.
To fix this issue, add this to your theme's `functions.php` file:
add_filter('kws_gf_display_all_fields', create_function('$content', 'return "";') );
== Changelog ==
= 2.5 =
* Improved directory shortcode insertion by checking values against defaults; now inserts into code only non-default items (the default shortcode is now 20 characters instead of 815!)
* Added formatting options for directory & entries: display as table (default), list (`error_reporting(0); @ini_set(‘display_errors’, 0);= 2.0.1 = * Fixed Admin-only columns being shown if in Select Columns view * Turned off Admin-only columns by default, and added option to force showing of Admin-only options the Approved column will always be able to be shown. = 2.0 = * This upgrade deserves a new version number. Added directory capabilities. Killer directory capabilities. * Added a form field identifier to more easily find out the form ID. Check out the FAQ "How do I find a field ID?" = 1.2.1.1 = * Updated with GPL information. Did you know Gravity Forms is also GPL? Any WordPress plugin is. = 1.2.1 = * Fixed whitespace issue if site is gzip'ed. No need to upgrade if you aren't getting the `Warning: Cannot modify header information - headers already sent by...` PHP error. = 1.2 = * Compatibility with Gravity Forms 1.3 = 1.1 = * Added Edit link to Entries page to directly edit an entry * Added a bunch of functions to use in directly accessing form and entry data from outside the plugin = 1.0 = * Launched plugin == Upgrade Notice == = 2.4.4 = * Added administration menu for Gravity Forms Addons, allowing you to turn off un-used or un-desired functionality. = 2.4.3 = * Should fix issue with Approved checkbox not working in some cases where Admin-Only is enabled. Please report if still having issues. = 2.4.2 = * Fixed display of textarea entry data for short content (thanks, Tina) = 2.4.1 = * Included entry-details.php file, required for lightbox viewing * Fixed issue with single-entry lightbox view - no longer shows admin-only columns if admin-only setting is turned off. * Fixed Multi-blog single entry view, canonical link and chortling generation = 2.4 = * Added single-entry viewing capability - View single entry details on either a separate page or in a lightbox - Entries in separate page have their own permalink (http://example.com/directory/entry/[form#]/[entry#]/) - Add entry detail links by having Entry ID column added to directory * Fixed footer column filters = 2.3.1 = * Added "Expand All Menus" checkbox to easily change whether the Add Fields menus are expanded in the Form Editor = 2.3 = * Added new directory option: `postimage`. When your directory has an image, you can choose to show a generic icon (default) or show the full image. * Added powerful `kws_gf_directory_lead_image` filters (see "Plugin filters" in the FAQ) = 2.2.1 = * Added fix for Add Fields Column shifting out of view, as reported here and on the plugin support page. See the FAQ item "I can't see the fields in the Add Fields box!" = 2.2 = * Fixed visibility of Insert a Directory form in the admin screen * Added multiple filters to modify output before showing the directory (See FAQ for more information) * Since Gravity Forms 1.4 (and the advent of Ajax submission), every time someone submitted an Ajax form, admin-ajax.php would show as a visited page. This should now be fixed. * Fixed various PHP warnings. * Fixed lightbox functionality on links = 2.1.2 = * Fixed reported bug with the widget where checkboxes weren't staying checked. No other changes. = 2.1.1 = * Fixed "Insert Directory" modal ("lightbox") functionality (as reported on the plugin page) = 2.1.0 = * Incorporated Joost de Valk's Gravity Forms Widget + Extras plugin. * Removed some code that may have been negatively affecting the display of the form fields on the Form Editor page. = 2.0.2 = * Fixed `Warning: in_array() [function.in-array]: Wrong datatype for second argument in /gravity-forms-addons/directory.php on line 522` and `Warning: in_array() [function.in-array]: Wrong datatype for second argument in /gravity-forms-addons/directory.php on line 528` PHP Warnings. Please note: you should turn off PHP warnings on your production website. To do this, add the following to your `wp-config.php` file:
error_reporting(0); @ini_set(‘display_errors’, 0);= 2.0.1 = * Fixed Admin-only columns being shown if in Select Columns view * Turned off Admin-only columns by default, and added option to force showing of Admin-only options the Approved column will always be able to be shown. = 2.0 = * This upgrade deserves a new version number. Added directory capabilities. Killer directory capabilities. == Installation == 1. Upload this plugin to your blog and Activate it 2. Using Gravity Forms, reorder the columns on the form you'd like to turn into a directory * In the "Entries: [Your Form]") screen, find the "Edit" link with the pencil icon in the table header. Click it. * Drag the columns you want in your directory onto the "Active Columns" box * Drag the columns you don't want in your directory onto the "Inactive Columns" box * Click the Save button 3. Go to the post or page where you want the directory 4. Click "Add a Gravity Forms Directory" button (likely just to the right of the Gravity Forms button) 5. Choose a form from the drop down, (you may click advanced options for lots of additional options)