Nick Lewis
Forum Replies Created
-
Forum: Plugins
In reply to: [Menu Image, Icons made easy] Custom image size not workingGreat. Again, thanks for this solution, working great.
Maybe it might be worth adding that into the description along with the text to prompt users to regenerate the thumbnails?
Forum: Plugins
In reply to: [Menu Image, Icons made easy] Custom image size not workingHey @takanakui
Thanks for the lightening fast reply!
I updated, changed the image sizes and regenerated the thumbnails.
I found that I also had to go back into the menu and re-assign/remove and re-choose the images associated with the menu items before the images updated.But, after doing that, it works great!
Thanks very much!
Forum: Plugins
In reply to: [Menu Image, Icons made easy] Custom image size not workingHi @takanakui
I had a go with dropping the filter at the end of the functions file but it didn’t seem to have any effect again.
I like the idea of a dashboard based image size option. Would make it easier to alter image sizes for a large spectrum of users, especially those who aren’t comfortable with code.
An option to enable custom sizes might be a good idea, as not everyone will need that ability. But it would be a great feature to have!
Please keep me informed so I can try it out
Forum: Plugins
In reply to: [Menu Image, Icons made easy] Custom image size not workingHi @takanakui
Thanks for the reply.
The filter wasn’t at the end of the functions file no. There were other filters, actions etc below it.I’m not at my computer at this time so I can check it and test it tomorrow putting it at the end of the end.
Will update tomorrow!
Hey @dcooney
I can’t find the error log? Is in within the plugin rather than the CMS?
I have check over my repeater template and it all seems fine, it matches the live version of the site which is working well, it is only on my local version of the site that it seems to have stopped working.
Cheers!
Hi again @kubitomakita
I am currently trying to work this out and write my custom notification for this password protected form.
I have declared my custom trigger, and got that showing up – which is meant to be able to send an email straight away isn’t it? (albeit missing the custom merge tags)
I don’t get any email at all..
My code that I am using is:
if ( isset( $_POST['post_Submit'] ) ) { //Add our action ready for our setting up notification add_action( 'admin_post_property_password_form', 'property_password_form_handler' ); add_action( 'admin_post_nopriv_property_password_form', 'property_password_form_handler' ); function property_password_form_handler() { //Set up our action getting the form fields content do_action( 'property_password_sent', $_POST['post_Name'], $_POST['post_Email'], $_POST['post_Course'] ); exit; } } //Decalare our Trigger with the notification plugin class PropertyPasswordForm extends \BracketSpace\Notification\Abstracts\Trigger { public function __construct() { // Add slug and the title. parent::__construct( 'propertypasswordsent', __( 'Property password form sent', 'propertypasswordsent' ) ); // Hook to the action. $this->add_action( 'property_password_sent', 10, 2 ); } public function merge_tags() {} } //and now register our Trigger register_trigger( new PropertyPasswordForm() );The original code we talked about didn’t seem to work correctly – even with commenting out the action this filter just made the password form break and automatically resolve as entered so the content for the page shows up straight away.
add_filter( 'post_password_required', function( $required, $post ) { if ( $required == false && ! empty( $post->post_password ) ) { do_action( 'whatever_handle', $post ); } }, 10, 2 );Secondly.. I’m not sure how to create my merge tags from the input fields.
I am following your (very handy) tutorial on Smashing Magazine, where your merge tags use content from the post, like the title etc. But I’m really not sure how I can get the content of my do_action where I state the form field inputs and use them in the merge tag.Do you have any advice at all?
I know this is custom work, but I’d be super grateful for any pointers!
Thanks!
That’s great!
Thanks for considering it.
As I am currently struggling to create my own version for this, creating a notification that gets sent to the admin/an email from a custom password form as mentioned. Trying to get it to send the contents of the other fields so that a client can see who has entered the password protected page/post.
It’s tricky!
Yes that is correct.
Ok thank you for letting me know. Shame. Would this be a notification that you may add into your plugin in the future?
Thanks
Excellent, thanks for your help on the chat!
Forum: Plugins
In reply to: [Mailchimp for WooCommerce] Reposition checkbox within Checkout formHi @ryanhungate
I am just re-visiting this as I am finding it difficult to grab all the items with jquery and re-position them.
As each of the items is a separate DOM element with the hidden input field, custom text and checkbox, I am finding it difficult to grab of all that in one go and position is somewhere else.
Taking your jquery code you supplied and changing the id in there to the #billing_email_field doesn’t seem to have any effect.
Is there a way I can hook in and wrap all the content produced by the plugin in order to move and style it easier? Wrapping it within a div with a class would be great, just as you have wrapped it within html comments.
Forum: Plugins
In reply to: [Mailchimp for WooCommerce] Reposition checkbox within Checkout formNo problem.
I had actually been thinking of a similar solution using jQuery and DOM manipulation, so this should wor, yes!
It would be great to get this kind of function into the plugin too though.
Thanks!
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] Reposition checkbox within Checkout formHi there,
Any thoughts on this at all? Would really like to be able to implement this on a site I’m building.
Many thanks
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] Reposition checkbox within Checkout formI’ve actually used this plugin to re-order the fields.
Woo Checkout Field Editor Pro – https://en-gb.wordpress.org/plugins/woo-checkout-field-editor-pro/But, I could equally use some code within functions.php.
Something like this:add_filter( 'woocommerce_billing_fields' , 'woocommerce_billing_fields_custom' ); function woocommerce_billing_fields_custom( $fields ) { $fields['billing_email']['priority'] = 1; return $fields; }But the reason I am using the plugin is that it makes things nice and easy to move the fields and amend the labels/placeholder texts without writing out different functions myself.
Ahah! Yes, it was to do with my loading animations.
I’m using Pace.js to control this, and didn’t quite have the correct loading / options for this set to work nicely with Ajax.
Thanks for the help @dcooney
Sorry for adding the ticket everywhere!
Researched and fixed the issue. Now have no errors.
You’re right, I should have researched first before writing on here!