jsa922
Forum Replies Created
-
Forum: Plugins
In reply to: [PHP Compatibility Checker] Plugin Too Large To ScanI’m trying to use the plugin before upgrading my site’s PHP, and get the same problem: most of my plugins are “too large” to scan. The FAQ’s list WP-CLI commands as a way to get around the time-out issue, but I’m not versed in all of this. When I click to try to find out how I might implement it, I just get directed back to the plugin’s main page. There is a reference to the “Other Notes” tab, but it must be well-hidden: I can’t find it! I’d really like to be sure my site won’t break when I upgrade, and I don’t have the expertise to run a local server version. Any help would be appreciated!
Forum: Plugins
In reply to: [Contact Form DB] Changing form data before save not workingMichael,
That works. There may be another solution that I stumbled on.
After posting the log file data for you I started looking at my PHP references and doing some online searching. For reasons unclear to me, the “value” of a checkbox somehow is being ultimately treated, relative to the variable it’s supposed to be in, as a single entry in a multidimensional array. I tried the following code, therefore:
$chgMod = $formData->posted_data['Mod'][0] ? '–25' : ''; //And... $flagNew = $formData->posted_data['NewCl'][0] ? 'NEW—' : '';This also corrected the problem. From a “proper” programming viewpoint, I’m not sure which is best, but the problem now appears to be fixed, one way or the other. Thanks for helping me get there!!
Forum: Plugins
In reply to: [Contact Form DB] Changing form data before save not workingMichael,
Here’s what the suggested log file shows as values from the checkboxes. From the New Client checkbox the entry is:
[NewCl] => Array ( [0] => New Patient )From the Modifier checkbox the entry is:
[Mod] => Array ( [0] => –25 )When either box is not checked the entry is
(either[NewCl]or[Mod]):=> Array ( [0] => )All of the other fields, including dropdown boxes, give “straight” data without the “Array” reference. I hope this helps. My PHP knowledge is too limited to figure any more than that it appears the reference to the variable needs to be other than I have done.
Forum: Plugins
In reply to: [Contact Form DB] Changing form data before save not workingThe code is certainly a lot tighter. However, regardless of whether I click the “New Client” or “Modifier” boxes or leave them unchecked, the revised routine appends “–25” to every charge code and prefixes “NEW–” before every Client ID. Is it possible that there is something being passed with the posted data that makes it look like these boxes have been checked. When I go to the “formal” full view of the whole DB on the CFDB admin page, those columns are blank when they should be. Very odd.
Forum: Plugins
In reply to: [Contact Form DB] Editing via shortcode variable?The fix works! This is great; now my partners can turn off editing when browser behavior gets in the way of copy/paste for client issues. THANKS! Marking this matter “Resolved.”
Forum: Plugins
In reply to: [Contact Form DB] Editing via shortcode variable?I tried
edit="$_POST(edstatus)" but it still behaves as if it wereedit=”false”`. Any other thoughts?Forum: Plugins
In reply to: [Contact Form DB] Styling table columnsI understand. Your suggestion has a syntax distinct from any I’ve tried so far, so it may get me in the right direction. I can usually figure the specifics once I have a general idea of syntax and placement (ie: inline or external).
Forum: Plugins
In reply to: [Contact Form DB] Prefilter in cfdb-table & cfdb-datatableOK, that’s encouraging. I’ll try Shortcode Exec PHP, as my coding skills in PHP may not be up to registering the short code via Add Actions And FIlters.
Forum: Plugins
In reply to: [Contact Form DB] Prefilter in cfdb-table & cfdb-datatableOK, I can try that. However, your descriptions in “Create Your Own Short Code” rely on the “Shortcode Exec PHP” plugin, which is now a couple of WP versions behind. I’m not sure it’s going to be updated to work with WP 4.1. I’ve been using your “Add Actions and Filters” plugin for specific hook routines. Can I put the code for the custom shortcode there and have it execute properly?
Forum: Plugins
In reply to: [Contact Form DB] CFDB Edit behavior varies by browserI had an idea that would be the case for each, but wanted to be sure. The Admin access limitation addition as it stands is VERY helpful! Thanks for such a useful plugin!
Forum: Plugins
In reply to: [Contact Form DB] Can't edit cells with ExtensionThanks! My intent in using the select construct was to be able to ensure that the selection always exactly matched the VacationYear value, so this should work well. I’ll try it (it will be much clearer than the textbox-based workaround I was going to have to try). Hopefully, I’ll get better at figuring out how to set up the filters, but I GREATLY appreciate the help!
Forum: Plugins
In reply to: [Contact Form DB] Can't edit cells with ExtensionThanks! I’ll eagerly await any updates that add even more control to this already great plugin.
I tried the
dt_optionssuggestion: it worked perfectly. Thank you.One more matter, if I may. You’ve posted about a shortcode to search the DB using a simple form. You had helped me on one use of it earlier. I am trying to implement it on a page that tracks vacations for the partners. I carefully copied the shortcode that works perfectly on the client ID lookup page (where I needed the
dt_optionscode), making the necessary changes to fit the tracking form/CFDB entries, and a new lookup form. This one uses a selection list that contains the preformatted year specifications (we run our vacations on an “academic year” from July to June) that I used to create the DB. It doesn’t work. I can make it work fine if I use atype="text"for the criterion input, but not using<select>coding. Does the latter not pass the value to filter on POST? I didn’t want to try<datalist>owing to its less universal browser implementaion. Here is my code:<form action="" method="POST"> <span style="font-size:18px;">Select Vacation Year to View</span> <select name="vysel"> <option value="7-2014 thru 6-2015">7-2014 thru 6-2015</option> <option value="7-2015 thru 6-2016">7-2015 thru 6-2016</option> <option value="7-2016 thru 6-2017">7-2016 thru 6-2017</option> <option value="7-2017 thru 6-2018">7-2017 thru 6-2018</option> <option value="7-2018 thru 6-2019">7-2018 thru 6-2019</option> </select> <input type="submit" value="Go" /> </form> [cfdb-table form="Vacation Tracking" filter="VacationYear~~/.*$_POST(vysel).*/i" show="VacationYear,Partner,VacClaim"]When the page loads, all the DB entries appear, but when I select the desired year, nothing changes. If I change to
[cfbd_datatable...]the “Search” box works fine, so the DB appears to be OK. Thanks!Forum: Plugins
In reply to: [Contact Form DB] Can't edit cells with ExtensionMichael, THANKS! I think I may have solved part of the dilemma on my own, so you may or may not still need to look directly. Here’s where things stand:
I have been working with the various permissions settings to tweak things as much as I could, as I have four “classes” of folks who have need to log into the site, but disparate needs once there. I had accidentally set the CFDB “Edit” permission to “Author”, but opened the page with the client projects list display to “Contributor” as that was the best level for my partners who will be entering charge data. As a result, they could see the lists, but not edit them. Once I dropped the CFDB level for editing to “Contributor” the ability to edit in the search table worked just fine. Unfortunately, that opens the main admin page of CFDB to them, which I’d prefer not to allow. Unfortunately, from what you have posted elsewhere regarding permissions, it appears that I can’t have the one without the other. I guess if I could somehow prevent them from seeing the “Dashboard” link, the problem would be solved, but that’s beyond the scope of CFDB. However, if there IS a way to restrict the viewing/editing to what is delivered on a page via a shortcode only, and not allow viewing or editing on the CFDB admin page, that would be fantastic. I’m still interested to know if I can suppress the “Show” and “Search” elements above the datatable. Therefore, if all this could only be done if you could see the pages and my coding (NOT slick, I’m sure!) themselves, I’d be happy to give you the necessary access. I GREATLY appreciate your help! Let me know.
Forum: Plugins
In reply to: [Contact Form DB] Display results of user queryThanks, again! Adding the ‘value=”1″‘ did the trick!
BTW, I installed your Actions and Filters plugin and used the advice from your post on “Preventing Duplicate Entries” to ensure this…it works GREAT! Now I can add other custom actions to secure my pages better.
Thanks for making this all work so easily. Next up is to move up to the editor extension, as it’s clear I will need to provide a way for my partners to change project lists over time, especially not that I’ve achieved success with limiting clients to one DB entry each.
I think this specific thread is now “resolved,” as any further questions will pertain to using the editor extension. Thanks so much for your help!
Forum: Plugins
In reply to: [Contact Form DB] Display results of user queryOh, well…I hope my quandry is clear!