Uncle Matt
Forum Replies Created
-
Thank you for your response. Concerning support of free plugin I have a clear understanding. From this point I have no claims but just a little bit being sad.
You have created very useful tool and of course users who deep dived into Pods are expected from it more and more options. ??
I’m sure that the best way to learn programming is to investigate someone’s well done code. That’s why I’m even thankful to you. Оwing to you I’ve done a big jump in php programming.
But on the case…
The example with films and actors is just for ease explanations of the issue. I have a huge amount of ‘actors’. So multiple select or checkbox is not my choice. I’d like to put into the list field text value ‘title’ or ‘slug’ and then find related pod by this parameters. I’ve already done this such way:
add_filter( 'pods_gf_field_column_row_2_3', 'my_function', 10, 6 ); function my_function($row, $columns, $form, $gf_field, $options, $related_obj) { $params = array( 'where' => 't.name = "'.$row['name'].'"'); $item = $related_obj->find($params); $item_id = $iem->first_id(); $row['id'] = $item; return $row; }
Unfortunately when I mapped pods field to GF List field there is no [‘id’] key appeared and I had to add it manually.
It is very sad that the developers do not have time to answer on user’s questions, especially taking into account the lack of manuals.
I’m not a programmer but I have found the solution by investigating source code. Developers have declared functionality of GF List Fields for relation fields. In order to use this advanced option:
– you have to use GF <Advanced Fields> -> <List Field>;
– you must switch on ‘Enable multiple columns’ and leave at least one of them (it is very strange demand if you use only one relation field);
– if you would like to put into the field name (or slug) of related pod you have to use ‘pods_gf_field_column_row_’ hook and handle it manually;
– you have to remember that according to Pods GF Add-on’s current algorithm if List Field contains data but related pod item is not found new item will be created anyway (even you I don’t need this). So you have to handle such situation.Hope this information will be useful for some users.
Forum: Plugins
In reply to: [Pods Gravity Forms Add-On] How to use native Pods’ hooks in GF?If you are interested, I’ve found the root of the problem. Now everything works ok.
As I wrote earlier in my application some fields are processed after pods item is created. For this reason I’ve decided do not create fields in Gravity Forms for them and of course do not map them with sister pods fields. Unfortunaly in this case ‘pods_api_pre_create’ and ‘_pre_save’ hooks doesn’t work.
Then I decided to create hidden fields in Gravity Forms and map them with needed pods fields. And now it works.
I think it is a small bug. No matter are all pods fields are filled or not main event is new pods item is created.
Forum: Plugins
In reply to: [Pods Gravity Forms Add-On] How to use native Pods’ hooks in GF?Thank you for the reply!
I’m running two filters in my own plugin module:
– add_filter(‘pods_api_pre_create_pod_item’,’my_function_1′,10,1);
– add_filter(‘pods_api_pre_save_pod_item’,’my_function_2′,10,2)
They work fine while I create new pods item from the back-end (admin dashboard).After your first comment I have already tried to change order of plugins load using ‘Plugin Organizer’. Initially GF was #1, but after changes I made GF loading after Pods and my plugin. There is no difference.
Now I’m trying to test Scott Clark approach. I’m still working on it. But as I mentioned ealier using action in this case not so good from performance point.
I have also investigated source code of Pods GF (to get sure are native pods’ hooks working here or not), but because of my humble php-skills couldn’t find point where new pods item is adding ??
Forum: Plugins
In reply to: [Pods Gravity Forms Add-On] How to use native Pods’ hooks in GF?English is not my native language and some misunderstandings may occurs.
1. I don’t use Gravity Forms hooks. As I mentioned above I use hook ‘pods_api_post_save_pod_item’.
2. This hook I use in my plugin module (not in function.php of a theme).
3. This hook doesn’t work for new pod records just created by GF.I’m looking a way to make it working for Gravity Forms. And question is should native pods hooks (‘pods_api_post_save_pod_item’) be working under GF or I have to use GF hooks to call them.
Forum: Plugins
In reply to: [Code Snippets Extended] Doesn't work the "Insert snippet" buttonAfter I have updated the plugin I found that all of my snippets have no content. Fortunately I have got backup copies of these scripts. It helped me to restore snippets content. The second surprise is short code name was changed too. I don’t complain. But after all of my manipulations “Snippet”-button doesn’t work properly.
I’m using Page Builder by SiteOrigin. Maybe it is a cause of the problem?Plugin has a good functionality and it is the main reason I still use it. Thank you for your efforts making it better. Hope this small issue will be solved.
Forum: Plugins
In reply to: [Ultimate Addons for SiteOrigin] Empty widgets listOf course I’ve got it. Problem appears when I go to Page->Edit (Using Site Origin Page Builder) -> Add widget
If I choose “All widgets” I can find your widgets among all items. But if I choose “Ultimate Addone Bundle” I get empty window.Forum: Plugins
In reply to: [Code Snippets Extended] Doesn't work the "Insert snippet" buttonUpdated. If I put snippet code manually it works. It was my fault (missprint). But the “Snipet” button in the editor doesn’t work anyway.
Здравствуйте.
Спасибо за скорый ответ.1. Ждем реализацию поддержки widget area
2. Приношу извинения за поспешный вывод об ограниченности дизайна кнопок. Разобрался. Как и бывает в большинстве случаев, дело оказалось в самом пользователе ?? Решение устраивает полностью.3. Пример страницы, где “криво” работает кнопка “Поделиться”:
https://f35.alpen-hof.ru/menu/Спасибо за поддержку.