Amit Biswas
Forum Replies Created
-
Hi @paulamit,
I am not sure about this solution since I have successfully created link as drop-down. But the extension type “form” do not support any links on the notification. I want to activate it for form type extensions. Sorry, for misunderstanding. Looking forward to your help.
P.S. – Yes, I have created a new extension successfully, but I need more technical help to make it full potential addon.
Thanks.
Hello @arrasel403,
Thanks for the code. I have used the second one instead of removing the filter. It is working correctly and selectively. I am now trying to add custom options for the second dropdown. I do not need the public
function restResponse($args) { }anymore. Previously I was adding custom options via the restResponse function. How do I add new options for the second dropdown now? While I am still studying the code, your help would be appreciated.Apart from this, I have included custom links for the notification template by using the following code –
add_filter('nx_link_types', [$this, 'link_types']);public function link_types( $options ) {
$options = GlobalFields::get_instance()->normalize_fields(
array(
'cqfs_link' => __( 'CQFS Link', 'notificationx' ),
), 'source', $this->id, $options
);
return $options;
}The above code is working correctly, but how do I activate this for my extension?
Thanks,
Amit- This reply was modified 1 year, 10 months ago by Amit Biswas.
Hi @arrasel403,
I appreciate your help. Yes, I have tried the
nx_notification_templatefilter exactly the same way. But it is unsetting the Ajax call for all other “form” extensions available by default. Please advise me on how I can achieve this only for specific extensions. I can disclose more issues once I receive your response on this.Thanks,
-AmitHello @paulamit,
Can you tell me more about this method –
public function restResponse($args){}This method is loading form tags via ajax call as soon as the first parameter (select a form) is switched. How can I disable the first parameter dependency and remove ajax loading as I want to use pre defined fields? Apart from this, how can I customize notification templates (front end) or use my own template/theme?
What are the usage of
public $templates = [];andpublic $themes = [];in the abstract class Extension?Please let me know if you can help. Thank you.
-Amit
Hello @paulamit,
Thanks for your response. I have checked those files and I have successfully created an extension. However, there are few areas that are still dark for me. Such as front end template fields, link option for type “form” in admin contents, hook custom fields for the extension, remove ajax loading for the second field in content, etc. I can send you a detailed report tomorrow.
Thanks.
Hi @ashikurwp,
Thank you for getting back to me on this issue. I have checked the CSS file and it is loading correctly. You can check here – https://templateartist.com/secure/wp-content/plugins/notificationx/assets/public/css/frontend.css
However, I don’t think it’s an CSS issue. I have created a test page (with all default settings applied for NX) for you here – https://templateartist.com/notificationx-test/
password is – notificationxThis is a basic contact form 7 form which will be submitted via ajax. So, please check and let me know if you have any questions.
Thank you,
AmitHi @paulamit,
I have successfully created an extension for the plugin on my own. However, I still need more information about the extension and hooks, especially regarding the front-end view and content fields.
Thank you,
AmitHello Amit,
Thanks for your quick response. I am trying to create an add-on to integrate my plugin CQFS with the NotificationX plugin. So, whenever a quiz/feedback form is submitted, I can show the notification. Please throw some light on this.
Thank you for this brilliant plugin.
-Amit
Forum: Developing with WordPress
In reply to: Ajax login and nonce verificationI just found the solution here – at stackoverflow
The main issue was – after the ajax login success, the nonce were being created with old session cookie while the session updates on the next request. So I have to use the
set_logged_in_cookieaction hook to update the session cookie immediately after the ajax login is done. Here is the code –add_action( 'set_logged_in_cookie', 'my_update_cookie' ); function my_update_cookie( $logged_in_cookie ){ $_COOKIE[LOGGED_IN_COOKIE] = $logged_in_cookie; }Similar issue was also discussed few years ago in this forum – Ajax login nonce creation
Thanks!
Forum: Developing with WordPress
In reply to: Ajax login and nonce verification@joyously it seems you are missing the point that I am talking about. I am already using both hooks for form “X”. I just wanted to create and return the logged in nonce after ajax login. Which in this case is returning but that is different. If you see my code below this line
$user = wp_signon( $creds, false );, you shall get it.Forum: Developing with WordPress
In reply to: Ajax login and nonce verification@joyously no point talking the other way. For instance, yes the form nonce will be used as there is both option to submit. Not logged in user and logged in user both can submit the form. Not logged in user will have to fill up email id for that. My issue is when a registered user decides to submit the form with logged in, I must enable them to submit without refreshing the entire page which will cost them to re enter every data in the form. Hope this make sense?
Forum: Developing with WordPress
In reply to: Ajax login and nonce verification@joyously Thanks for the reply. However that’s not a coding solution. I don’t think WordPress cannot offer solutions for this type of situation. I am expecting a coding solution for this as there is no issues with my workflow. I must allow users to fill up the form whether they are logged in or not.
Forum: Themes and Templates
In reply to: [Neve] WooCommerce product thumbnail image is blurHi,
I manage to revert back the manual WooCommerce image size mode by which user can define the product image sizes. However it seems working on archive pages but sometimes the shop page thumbnails are still blurry. Why I am saying “sometimes” is because when I am typing the shop url manually and entered to it, the thumbnails seems Ok. Though the archives are looking good.
Here is the code you may try once –
function neve_child_remove_woocommerce_support() { remove_theme_support('woocommerce'); } add_action('init', 'neve_child_remove_woocommerce_support');Don’t worry about the function name as WooCommerce will only revert the manual settings back with this.
– Thanks
Forum: Themes and Templates
In reply to: [Neve] Product page breadcrumb error at Google search consoleHello Rodica,
Feeling so glad for you. Thanks! It does all I need for the WooCommerce breadcrumbs.
Thanks much for the quick support.-Amit
Forum: Plugins
In reply to: [Crelly Slider] Slide Copy IssueI basically have –
1. Background Image
2. Multi line Text
3. A logo image on topAfter creating the first slide and saved it, then when I duplicate the slide and again trying to save it, the slider plugin is unable to save it and showing the same message at top.
Let me know if that helps. You can try this test case anywhere.
Thanks,
Amit