B
Forum Replies Created
-
Forum: Plugins
In reply to: [Theme My Login] Theme My Login Account Activation Key errorHi Jeff (and all),
I’m having this issue too– although I get a “Page Not Found” error, its not a typical 404. Some further detail…
- A new user signs up on my site.
- A welcome email is sent/received successfully, asking them to confirm their email address.
- They are provided a link to the activation page, which is unable to load. The page title is “Page Not Found,” but rather than displaying my 404 template, the site simply dies after header.php and there is no more content. This is new behavior– my 404 template typically works fine, and my activation page used to work properly.
- If the user reloads the page, or reclicks the activation link from their email, the activate page DOES render properly, saying their account has already been activated. In other words, it would appear that in the above step the account was successfully activated, the activation page where they set a password was just not properly displayed.
- All other user functions continue to work– they user can reset their password using the reset pass link, and then successfully login.
Guidance would be much appreciated!
Forum: Plugins
In reply to: [Ajax Upload for Gravity Forms] Change upload path / urlActually, nevermind! It looks like Gravity Form’s gform_upload_path filter applies here… so we’re all good!
(For those curious, it turns out I am actually having a hard time finding a hook on which I can grab the file and push it to S3. The only hook so far I can find that provides the file name and path is the rename filter, which provides the /tmp directory before the file is moved into its permanent location– I would have thought this’d have worked, but I’m getting an open stream: file does not exist error when I try to grab the upload from the temp directory. So I’ll be playing more. I’d welcome advice from any generous souls who might be able to help me find a filter that lets me move the file– all I need is the ability to copy it from one directory to another, sometime during the initial upload process. But otherwise, I’ll be playing some more.)
Thanks again for the great plugin, Adrian!
Forum: Plugins
In reply to: [Ajax Upload for Gravity Forms] Rename Uploaded fileHi–
The plugin author addresses this with a filter, in the FAQ…here’s a code snippet:
function my_itsg_gf_ajaxupload_filename( $name, $file_path, $size, $type, $error, $index, $content_range ) { $field_id = isset( $_POST['field_id'] ) ? $_POST['field_id'] : null; // get the field_id out of the post $file_extension = pathinfo( $name, PATHINFO_EXTENSION ); // get the file type out of the URL $name = 'FileOfField' . $field_id . '.' . $file_extension; // put it together return $name; // now return the new name } add_filter( 'itsg_gf_ajaxupload_filename', 'my_itsg_gf_ajaxupload_filename', 10, 7 );Forum: Plugins
In reply to: [SendGrid] send_atHelpful update from SendGrid support:
Currently the WordPress plugin does not support the send_at parameter and adding it in your own X-SMTPAPI header will not work as our system only supports one header to be read.
This would be a super useful feature, if not in the backend, just to be able to add manually to
$headersinwp_mail().Forum: Plugins
In reply to: [SendGrid] send_atBy the way, if the issue is that I’m authenticating with API key instead of SMTP credentials: can you advise any alternative solution? My host blocks outgoing SMTP. Many thanks.
Forum: Plugins
In reply to: [Postman SMTP Mailer/Email Log] Use X-SMTPAPI with SendgridHi- I’d love to know if there was any resolution on this. Thanks!
Hi Jack,
Disabling it in the top right of the notification editor just sent me back to the default WP notification, but I tracked out that the reason I wasn’t able to disable it in code was that there was another plugin re-queuing the default WP notification later on load than my theme. Once I disabled that, my code intervention worked. I imagine the same could be true of your plugin.
Though if you’re taking feature requests, I think an easier way to disable (not just customize) default WP notifications would be super useful. A “one stop shop” for all email notification needs.
Thanks for the kind support and great plugin!
B
Thanks Jack,
That sounds great– I’ll look forward to v1.4 for the other ones. But for notifications that are present (like New User – Admin Notification), I see that I can override the default notification, but can I cancel it. As in– have no notification sent. Not a custom one, not the default one– no email.
(I’m happy to do it with a hook or equivalent in code, if you know of or offer any extendable API options.)
Thanks!
B
I thought it might be worth adding that I’ve tried disabling new user emails with the following code:
if ( !function_exists( 'wp_new_user_notification' ) ) : function wp_new_user_notification( $user_id, $plaintext_pass = '' ) { return; } endif;and that didn’t work. When I used this plugin to add a custom notification for the new user admin notification trigger, the custom notification successfully replaced the WordPress default– I just want neither to happen; no notification at all.
Love the plugin so far, for customizing emails… thanks Jack (et. al.)
Hi there–
I’m using this plugin with https://wordpress.org/plugins/amazon-s3-and-cloudfront/ and it works great. That doesn’t solve all of your issues, and it won’t handle privacy for you (though their paid WooCommerce add on does, I believe, if you’re using WooCommerce). In any case, if you want a simple way to offload all your media files to AWS S3… I can recommend this plugin.
– B
Forum: Plugins
In reply to: [Login for Google Apps] Custom Login URLGreat to hear, thanks Dan! As a developer who would use filter functionality if it existed, makes sense. For a possibly lower hanging fruit option, development wise and support wise, I may recommend simply a text field that is pre filled called “login url”… it could be defaulted to “wp-login.php” but I could just change it to “login/” if that’s what I wanted.
Even easier; instead of a manual override option, if you just simply coded with the
<?php echo wp_login_url( $redirect ); ?>variable, it should work. At least in my case, the plugin I’m using modifies that variable, so if you were to call on it, it would give you my correctly modified URL. Hope this can be helpful! And hope to see at least the variable replacement pushed through to all versions soon.Great work!
Forum: Hacks
In reply to: Change media URLs on uploadUpdate: editing
$data['guid']does seem to update the guid field in the database, but that does not update the File URL field shown on the media uploads page, or the actual URL used when inserting an image into a post._wp_attached_fileworks, but only modifies the file path, not the domain; how do we modify the complete URL for the attachment?Continue reading if you wish, but that’s the main question.
—————-
Thanks so much– very helpful.
function filter_handler( $data , $post_arr ){ $data['post_excerpt'] = 'Test excerpt'; //This successfully sets the excerpt $data['guid'] = wp_slash('http://test.com/a.jpg'); //This modifies the guid in the database but that appears to be the wrong field update_post_meta( $post_arr['ID'], '_wp_attached_file', wp_slash('http://test.com/a.jpg')); //This sets the path within the uploads folder to http://test.com/a.jpg return $data; } add_filter( 'wp_insert_attachment_data', 'filter_handler', 99, 2 );See comments on each line in the above.
_wp_attached_fileonly modifies the file path after /wp-content/uploads/ (i.e. http://site.com/wp-content/uploads/sites/2/http://test.com/a.jpg) … the part of the URL I ultimately need to change is the domain.The whole point of all of this is to route media to my CDN subdomain. I can change the domain in the database like this or on read, but I need it to reflect the accurate domain everywhere (i.e. in the backend); I can’t just do a rewrite on frontend post render.
Any feedback on how to get this working would be VERY much appreciated!
Forum: Hacks
In reply to: Change media URLs on uploadThank you… I’ve been playing with that but to no avail. I have the following:
function filter_handler( $data , $post_arr ){ update_post_meta($post_arr['ID'], 'guid', 'http://newurl.com/test.jpg'); return $data; } add_filter( 'wp_insert_attachment_data', 'filter_handler', '99', 2 );Which ends up doing nothing. Thoughts?
Thanks!
Forum: Plugins
In reply to: [WP REST API (WP API)] URL rewrite from /wp-json.php to /apiTry no slash after wp-json.php.
rewrite ^/api/(.*) /wp-json.php$1 break;Forum: Plugins
In reply to: [W3 Total Cache] W3TC nginx – 301 redirect to www gives a blank pageThis tutorial may be helpful, not sure. Good luck.