=== 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.2 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.2 =
* Fixed broken image for lightbox close button (issue #570042)
* Fixed definition list (DL) display mode: each entry in directory view is now wrapped with a `dl`; single-entry view entries are now wrapped with single `dl`
* HTML generation fix: `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.5.2 = * Fixed broken image for lightbox close button (issue #570042) * Fixed definition list (DL) display mode: each entry in directory view is now wrapped with a `dl`; single-entry view entries are now wrapped with single `dl` * HTML generation fix: `
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)