=== 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.2.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=cRtE_riFwaw] ### Turn Gravity Forms into a Directory plugin Gravity Forms is already the easiest form plugin...now, the Gravity Forms Directory & Addons plugin turns Gravity Forms into a great directory. [youtube http://www.youtube.com/watch?v=PMI7Jb-RP2I] * 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 with an easy approval process * 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 ==
= 3.0 =
* Completely revamped the admin approval process! Now approving an entry is as easy as checking a box in the Entries view.
- Supports bulk approve and un-approve
* Added "Directory Fields" in the Form Editor
- "Approved" field: Add this to your form to have a pre-configured admin-only checkbox.
- "Entry Link" field: Use this text as a link to the single entry view
* Added "Directory" tab to fields in the Form Editor
- Use Field As Link to Single Entry
- Text for Link to Single Entry
* Use field values from entry
* Use the Field Label as link text
* Use custom link text.
- Hide Field in Directory View
- Hide Field in Single Entry View
* Added a how-to video and improved instructions on settings page
* Improved how settings work & some new settings
* Added "Smart Approval" - Automatically convert directory into Approved-only mode when an Approved field is detected
* Added configuration for default directory settings on the Directory & Addons settings page
* Added `jstable` setting to enable javascript sorting using the Tablesorter script. Includes `kws_gf_directory_tablesorter_options` filter to modify Tablesorter settings.
* Updated `page_size` setting: setting a page size of 0 now shows all entries.
* Added credit link setting for directories
* Fixed bugs & issues
* Fixed search and entry counts for Approved-only directories
* Improved internationalization support
* Structural & display improvements
* Added proper enqueuing of scripts and styles with `enqueue_files` function.
* Hides search and page count when there are no results
* Restructured plugin to use the `GFDirectory` class.
* Added a host of new actions and filters to allow for inserting custom content throughout the directory
* Added support for custom endpoints (instead of `entries`...see FAQ for more information)
* And much, much more!
Note: This update has only been tested with WordPress 3.2 and Gravity Forms 1.5.2.8 and Gravity Forms 1.6 beta.
= 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 == = 3.0 = * Completely revamped the admin approval process! Now approving an entry is as easy as checking a box in the Entries view. - Supports bulk approve and un-approve * Added "Directory Fields" in the Form Editor - "Approved" field: Add this to your form to have a pre-configured admin-only checkbox. - "Entry Link" field: Use this text as a link to the single entry view * Added "Directory" tab to fields in the Form Editor - Use Field As Link to Single Entry - Text for Link to Single Entry * Use field values from entry * Use the Field Label as link text * Use custom link text. - Hide Field in Directory View - Hide Field in Single Entry View * Added a how-to video and improved instructions on settings page * Improved how settings work & some new settings * Added "Smart Approval" - Automatically convert directory into Approved-only mode when an Approved field is detected * Added configuration for default directory settings on the Directory & Addons settings page * Added `jstable` setting to enable javascript sorting using the Tablesorter script. Includes `kws_gf_directory_tablesorter_options` filter to modify Tablesorter settings. * Updated `page_size` setting: setting a page size of 0 now shows all entries. * Added credit link setting for directories * Fixed bugs & issues * Fixed search and entry counts for Approved-only directories * Improved internationalization support * Structural & display improvements * Added proper enqueuing of scripts and styles with `enqueue_files` function. * Hides search and page count when there are no results * Restructured plugin to use the `GFDirectory` class. * Added a host of new actions and filters to allow for inserting custom content throughout the directory * Added support for custom endpoints (instead of `entries`...see FAQ for more information) * And much, much more! Note: This update has only been tested with WordPress 3.2 and Gravity Forms 1.5.2.8 and Gravity Forms 1.6 beta. = 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) 6. Click "Insert Directory". A "shortcode" should appear in the content editor that looks similar to `[directory form="#"]` 7. Save the post ### Configuring Fields & Columns When editing a form, click on a field to expand the field. Next, click the "Directory" tab. There, you will find options to: * Choose whether you would like the field to be a link to the Single Entry View; * Hide the field in Directory View; and * Hide the field in Single Entry View