_JamesW
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] How to use action hooks in the latest versionHi, does anyone have a way of changing the email recipient based on input, as we could with wpcf7_before_send_mail?
Still using 3.8.1 to preserve that functionality! But obviously don’t want to stay on an outdated version.
Forum: Plugins
In reply to: [Contact Form 7] How can I change the email recipientIs it impossible in the new version to do this sort of thing?
Hi, when I went back and set up a test case from scratch I figured out what was going on.
All of my custom content types are grouped under a submenu (using Parent Menu ID). I had set up that submenu with edit_posts as the required capability. It seems that this permission governs access to the pods listing page of any pods under it. By creating a new capability for everyone who might be able to view that menu, I can get the result I wanted.
I do think the way it’s working is a bit odd:
{site}/wp-admin/edit.php?post_type=testpod
will work if I have access to testpod and it’s not in a submenu.
If I move it under a submenu that I don’t have capability for, that same url no longer works.
However I still see the menu and the link (as long as I have edit_testpods).
So the menu permission is affecting my ability to use the pod listing, but not my ability to see the menu.Anyway, that’s just minor oddness. The main problem was my submenu permissions.
Thanks!
Granting the edit_{capability}s additional capability allows it to display the menu item, but if you click through to it, the listing page is still blocked.
Hi,
It’s using Advanced Content types without any custom code, and I was able to reproduce it with a clean install as follows:
– Created a new pod ‘atest’, content type: advanced content type.
– Named it, did not add any fields (so I just have out of the box fields name, date created, date modified, author, permalink)
– Went to admin ui tab and checked ‘date created’ under the search filters tab.
– Created a record to test with.
– In the manage atest screen, clicked on advanced filters, date created from and to are there and functional.
– Edit the date created field, advanced tab, checked ‘make field read only in ui’ and saved.
– Back to manage atest screen, advanced filters, date created from and to are still there but are now read only. So while my intention was just to stop it from being edited, I have now prevented admins from filtering on it.Thanks!
Forum: Plugins
In reply to: [Front End Users] How Robust is it at this stage?Great to hear! I’ll get started then.
Forum: Reviews
In reply to: [Pods - Custom Content Types and Fields] Perhaps the best WordPress pluginI think for me the system for retrieving records would be the main thing.
The notation for field names for example, is tied to the underlying data structures and storage methods. So it’s quite easy to have problems in a lookup that aren’t immediately apparent. I know it’s a very difficult thing to have arbitrary data structures stored in multiple different ways, yet present a universal structure for querying them – but it would be nice πRight now it seems like I get back way more information that I need (with sql I would literally get one field value, with pods I get every piece of metadata about every field) – but not quite enough information to simplify the query (if it’s going to look up all that metadata anyway, why does it need me to be explicit about how each field is stored?).
Hope that makes sense! None of the issues I have with pods ever stop me from accomplishing what I set out to do – it always does the job. And I’ve certainly had similar issues with other similar systems like CCK. But there’s always something!
Forum: Plugins
In reply to: [EWWW Image Optimizer] Glitch when running with imsanityPerfect, that did it. Thanks!
Forum: Plugins
In reply to: [EWWW Image Optimizer] Glitch when running with imsanityJust an extra note, the above was when uploading through the media tab.
If uploading directly in a post it actually shows an error message and does not allow you to insert it (but it has been uploaded if you check the media gallery).
Forum: Plugins
In reply to: [YOP Poll] Cookies and Showing ResultsSo the problem was that cookies did not work at all, and that even with IP blocking it only recognised that the user had voted after they tried to vote again. After some digging I found the problems.
A few issues with the code result in php notices. If the environment has error reporting on, these cause headers to be sent, and that means setcookie fails.
There were also a couple of admin glitches which had similar causes.
Here are some of the log entries that show the problems:
[16-May-2014 10:01:52 UTC] PHP Notice: Undefined variable: feeditems in /wp-content/plugins/yop-poll/inc/admin.php on line 8714
[16-May-2014 10:01:54 UTC] PHP Strict Standards: Non-static method Yop_Poll_Model::return_template_preview_html() should not be called statically, assuming $this from incompatible context in /wp-content/plugins/yop-poll/inc/admin.php on line 6974
[16-May-2014 10:01:54 UTC] PHP Strict Standards: Non-static method Yop_Poll_Model::return_poll_css() should not be called statically, assuming $this from incompatible context in /wp-content/plugins/yop-poll/inc/yop_poll_model.php on line 2944
[16-May-2014 10:02:46 UTC] PHP Notice: Trying to get property of non-object in /wp-content/plugins/yop-poll/inc/yop_poll_model.php on line 3713
[16-May-2014 10:02:46 UTC] PHP Notice: Trying to get property of non-object in /wp-content/plugins/yop-poll/inc/yop_poll_model.php on line 3714
[16-May-2014 10:02:46 UTC] PHP Notice: Undefined variable: log in /wp-content/plugins/yop-poll/inc/yop_poll_model.php on line 2238
[16-May-2014 10:02:46 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/yop-poll/inc/yop_poll_model.php:3713) in /wp-content/plugins/yop-poll/inc/yop_poll_model.php on line 3806
[16-May-2014 10:02:46 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/yop-poll/inc/yop_poll_model.php:3713) in /wp-content/plugins/yop-poll/inc/yop_poll_model.php on line 3807I made the following changes:
admin.php
6974 and 7016: Replaced Yop_Poll_Model::return_template_preview_html with $yop_poll_model->return_template_preview_htmlyop_poll_model.php
2944: Replaced self::return_poll_css with $this->return_poll_css2238: Replaced undefined variable $log with a blank string – obviously this is not ideal.
3713+ (is_ban): Added a check so we only attempt to read the user login and email if this is a logged in user.
With these changes, cookie based blocking appears to work properly, and if the user comes back to the site after having voted, they see the results as intended.