happysolicitor
Forum Replies Created
-
For posterity’s sake, here’s what I discovered:
1. The options array does NOT seem to matter. In fact, it appears to be almost exclusively used internally by PODS. As long as I know what the proper key is, I can set field options simply by adding the key and the proper value to the
$paramsarray passed when saving a field.2. If you can’t figure out what the right key is, try looking in
PodsAdmin.phpstarting around line 2344. Ignore the array hierarchy. For programatically setting fields with Pods, just look for the key you need.So, for everything I needed, here’s my final code:
// Create Pods Type $users_pod_id = $pods_api->add_pod(array( 'create_extend' => 'extend', 'extend_pod_type' => 'user', 'extend_storage' => 'meta' )); // Populate fields for this pod $pods_api->save_field( array( 'pod_id' => $users_pod_id, 'name' => 'congressional_district', 'label' => 'Congressional District', 'default_value' => 'US00', 'description' => 'The alphanumeric ID of the congressional district for this user (State/Number. Ex. AZ02 = 2nd CD of AZ)', 'required' => TRUE, 'type' => 'text', 'admin_only' => TRUE, 'hidden' => TRUE, 'text_max_length' => 4 ), true, true, true); $pods_api->save_field( array( 'pod_id' => $users_pod_id, 'name' => 'contributor', 'label' => 'Contributor?', 'default_value' => FALSE, 'description' => 'Does the user have permissions to contribute articles?', 'required' => TRUE, 'type' => 'boolean', 'admin_only' => TRUE, 'hidden' => TRUE ), true, true, true);Hopefully someone else out there find this useful and saves hours of scouring through Pods’ code. 👍
@ironikus I cannot believe you actually reported my post for moderation by admins. Why?
I’m a user. I have a right to use your product, consider its value and then share my subjective opinion on how valuable I feel your product is and whether or not I think others should use it too.
That’s my right.
That’s the whole purpose behind these reviews.
I gave my subjective opinion and you reported my review apparently for no other reason than that you don’t like the fact that I gave one star.
So, to clarify for other users who might encounter this:
I don’t like your product. I didn’t find it useful. I found your marketing strategy to be deceptive. Your product fails to meet even the lowest bar for webhook functionality for wordpress.
The restrictions you have made on the non-paid version is so restrictive, that it fails to really qualify as a webhook plugin anymore.
That’s sad, because this was the only plugin for it.
So, if you want to have a constructive dialogue, then you’re gonna have to show some good faith here and explain why you felt reporting a rightfully posted review was an acceptable answer to a negative review of your product.
So, how about it? Why did you think it was ok to report my review for moderation? Why did you feel that was warranted? What rules for ww.wp.xz.cn did I break?
If there was any doubt before about your business practices, I’d say you’ve made them crystal clear in your behavior of reporting a review simply because it was negative in nature.
I didn’t like your product and I have a right to state so in my review.
One star stands. I’d have made it three stars if it just didn’t work. I reserve one star for plugins that I feel use predatory practices like baiting and switching on the user.
If you can successfully convince me that this is all a big misunderstanding and that there really are not shady practices at play, then I’ll change it to a 3 star review. (No higher, because again, it doesn’t qualify as even a basic webhook application by my standards.)
Given your response to my initial post however, I’m disinclined to believe you’ll respond in a satisfactory manner.
I could be proven wrong however…
Forum: Plugins
In reply to: [AccessPress Social Counter] Facebook Social Counter not working@access Keys:
After a few hours scouring the code, I’ve found the issue that was plaguing my installation of the plugin:
In accesspress-social-counter.php starting at line 427:
/** * Get New Facebook Count * */ function new_fb_count(){ $apsc_settings = $this->apsc_settings; $access_token = $this->get_fb_access_token( ); $api_url = 'https://graph.facebook.com/'; $url = sprintf( '%s%s?fields=likes&%s', $api_url, $apsc_settings['social_profile']['facebook']['page_id'] , $access_token );I changed the
sprintfstring to read'%s%sfeed?fields=likes&%s'.Without the
feedit appears to have been pulling what the page itself liked rather than the users that liked the page…I made the change and it fixed everything for me. Hopefully the next update isn’t going to break this? *Fingers Crossed*
Forum: Plugins
In reply to: [Participants Database] Weird error in edit participant record pageHey, got it figured out.
For prosperity’s sake, I seemed to have somehow changed the “Value” column for participants_database_field DB to the DECIMAL input used in your instructions.
I switched it back and repopulated the values for those fields in the settings.
It’s working again.🙂
Forum: Plugins
In reply to: [Participants Database] Conditionally Filter Results Based on State ChosenI’m stupid. Lol. I was missing the underscore in the string for the shortcode.
Thanks so much for your help. I know this all extends beyond what you typically support.
You have a great plug-in though.
Thanks again for all your help. It’s working as expected.Happy Solicitor
Forum: Plugins
In reply to: [Participants Database] Conditionally Filter Results Based on State ChosenOK, so it was an issue with the domain of the cookie. I got that solved.
Unfourtunately, we’re back to where we first started. It still doesn’t sort. It shows up with a blank list. No states listed until I sort or search, then it clears the values.Here’s the current code used for the shortcode.
$current_state = $_COOKIE["state"]; echo do_shortcode('[pdb_list search="true" sort="true" filter="first_name=' . $currentstate . '&approved=yes"]'); echo "Current State = " . $current_state;I know the $current_state string is being populated because it shows “Current State = Pennsylvania” at the bottom. How come it’s not working for the shortcode?
Forum: Plugins
In reply to: [Participants Database] Conditionally Filter Results Based on State ChosenHere’s the code I use from the previous page:
echo ' <script type="text/javascript"> function formSubmitter(form) { var selix = form.state.selectedIndex; if ( selix == 0 ) { alert ("Please select a state from the drop down list"); return false; } document.cookie = "state=" + form.state[selix].text; form.submit(); } </script> ';Then in the form I use:
<input onclick="formSubmitter(this.form)" type="button" value="Find Permits" />I’ve confirmed that the cookie get written, and that it contains the correct value.
I then use the code from my post above to call the value but it turns up blank. Any ideas?Forum: Plugins
In reply to: [Participants Database] Conditionally Filter Results Based on State ChosenOk, so coming back later…
I’ve successfully grabbed the value from the form and saved it into a cookie. (Confirmed, the cookie is there and has the correct value.)
Unfortunately, it’s not returning the value in the shortcode.
Here’s the PHP snippet I’m using to try and generate the shortcode:$current_state = $_COOKIE["state"]; echo do_shortcode('[pdb_list search="true" sort="true" filter="first_name=' . $currentstate . '&approved=yes"]'); echo "Current State = " . $current_state;You’ll notice I’m returning the value a second time and printing it to check and see if it retrieved the value but the string returns empty. ideas?
Forum: Plugins
In reply to: [Participants Database] Conditionally Filter Results Based on State ChosenThanks for the response. I’m working on trying to save that GET value.
Quick question, the list shouldn’t ever display unapproved records.
I found this tidbit of code in the plug-in.// allow the query to be altered before the records are retrieved $list_query = $this->list_query . ' ' . $this->pagination->getLimitSql(); if (has_filter(Participants_Db::$css_prefix . 'list_query')) { $list_query = apply_filters(Participants_Db::$css_prefix . 'list_query',$list_query); } /* * get the records for this page, adding the pagination limit clause * * this gives us an array of objects, each one a set of field->value pairs */ $records = $wpdb->get_results($list_query, OBJECT);How would I alter the code to always filter approved records?
Forum: Plugins
In reply to: [Participants Database] Conditionally Filter Results Based on State ChosenStill don’t have a solution to this. Turning off the AJAX did NOT fix the problem. How would I force filtering based on the previously chosen state and approval status?
Forum: Plugins
In reply to: Good Social Review Plug-In?I’m thinking that Table Press Might work for me but Im not sure how I would get the full functionality of allowing users to add to the table or calculate the average rating or even allow a page view for an individual records (Rating, Owner Name, site, etc…)
Any Ideas on how to make this work would be greatly appreciated.
Thanks in advance for your time.Forum: Plugins
In reply to: [Participants Database] Conditionally Filter Results Based on State ChosenUnfourtunately, turning off the AJAX sorting causes more problems. Without the AJAX sorting, it wipes the search results clean. Trying to sort without AJAX returns zero results.
I think It’s better to use the AJAX sorting but somehow grab the GET data from the URL every time it sorts. Or if the form submission for the sorting automatically only returns “approved” results for the previously selected State…
Thanks again for your help!
Forum: Plugins
In reply to: [Participants Database] Conditionally Filter Results Based on State ChosenTo try it out for yourself, you can see the form and results by going to this page:
http://happysolicitor.com/door-to-door-permit-database-goes-live/Just keep in mind, there is only database info for New Jersey right now. Any other state option will return “no records”.
If I search for “Montana” it will give zero results. If I then sort this “no records” list, it will remove the filter and show all records for all states whether they are approved by the admin or not.
It’s a lot closer now but still not quite what I needed.
Forum: Plugins
In reply to: [Participants Database] Conditionally Filter Results Based on State ChosenThanks. You’ve been a huge help so far. I still have a quirky problem.
So I’ve found a pretty good solution. I just edited the page to take a custom PHP snippet using this plugin here:
http://www.hitreach.co.uk/wordpress-plugins/allow-php-in-posts-and-pages/The actual code I used was:
echo do_shortcode('[pdb_list search="true" sort="true" filter="state=' . $_GET["state"] . '&approved=yes"]');Now this works great until you try to sort or do any search within the resulting data. The moment you try to sort or search it, it ignores both filters.
How do I fix that?
Forum: Plugins
In reply to: [Participants Database] Conditionally Filter Results Based on State ChosenAlso, it seems to be sorting on the unicode value. If they sort by cost it doesn’t sort right. 100 shows up before 20 etc.