kostas45
Forum Replies Created
-
Forum: Plugins
In reply to: [Kansleri Cookie Consent] Banner style settingsExcellent work, thanks a lot.
Cheers,
KostasForum: Plugins
In reply to: [Kansleri Cookie Consent] Banner style settingsHi Tapio,
Thanks a lot for the update, it rocks!
The “Open banner preview” is really helpful.Please clarify two points:
1. The last colour picker (Border / divider) where is it referring to?
2. It seems there is no control on the hover of “Adjustment” and “Close” menu items.Thanks again for the nice work,
Kostas+1
Forum: Reviews
In reply to: [MASS Users Password Reset] Very niceReview provided on code canyon as well.
Thanks again,
KostasForum: Plugins
In reply to: [Plainview Protect Passwords] Hooks?Excellent, it works!
To recap:add_action('plainview_protect_passwords_pre_save_settings', 'my_plainview_protect_passwords_pre_save_settings', 10); function my_plainview_protect_passwords_pre_save_settings( $plugin ) { $user_ids = $plugin->get_site_option( 'protected_users' ); foreach( $user_ids as $user_id ) : update_user_meta($user_id, 'wpcf-user-active', '1'); endforeach; } add_action('plainview_protect_passwords_post_save_settings', 'my_plainview_protect_passwords_post_save_settings', 10); function my_plainview_protect_passwords_post_save_settings( $plugin ) { $user_ids = $plugin->get_site_option( 'protected_users' ); foreach( $user_ids as $user_id ) : update_user_meta($user_id, 'wpcf-user-active', '0'); endforeach; }So, can you please include those two lines of code (in src/traits/admin_menu.php) in a plugin update?
Thank you very much indeed,
Kostas- This reply was modified 7 years, 8 months ago by kostas45.
Forum: Plugins
In reply to: [Plainview Protect Passwords] Hooks?Yes, it works now, thanks!
One last bit please. In the foreach, if user was not protected, I need:
update_user_meta($protected_user, 'wpcf-user-active', '0');
If user was protected and now is not, I need:
update_user_meta($protected_user, 'wpcf-user-active', '1');
How should I implement this?Thanks again,
KostasForum: Plugins
In reply to: [Plainview Protect Passwords] Hooks?OK, I added:
do_action('plainview_protect_passwords_settings_saved', $form);
in line 101, just before
$this->message( 'Options saved!' );Then in my theme’s functions.php, I added:
add_action('plainview_protect_passwords_settings_saved', 'func_plainview_protect_passwords_settings_saved', 10);function func_plainview_protect_passwords_settings_saved ($form) {
$input = $form->input('protected_users');
$protected_users = $input->get_post_value();foreach($protected_users as $protected_user ) :
update_user_meta($protected_user->user_id, 'wpcf-user-active', '0');
endforeach;
}
which has no effect. Moreover, wpcf-user-active custom field value, should alternate between 0 and 1, depending on the user being checked to be protected or not.Any more ideas?
Thanks again,
KostasForum: Plugins
In reply to: [Plainview Protect Passwords] Hooks?Well, this is too advanced for me!
I just need a way to loop through Protected users (and then update a user field for each user), in my theme’s functions.php.
Any guidance is welcome.Thanks,
KostasForum: Plugins
In reply to: [Plainview Protect Passwords] Hooks?OK, I will test it later today and respond here.
Thanks,
KostasForum: Plugins
In reply to: [Plainview Protect Passwords] Hooks?Sounds good!
If you implement it (and provide some how-to guidelines) I can test it.
Thanks,
KostasForum: Plugins
In reply to: [Plainview Protect Passwords] Hooks?Thank you for responding.
Yes, I mean when the protect passwords plugin settings are saved.
Unfortunately, I am not yet familiar with plugin development, so I cannot provide code, thanks anyway!I was hoping to include in my functions.php something like:
add_action('plainview_save_data', 'save_data_action', 10); function save_data_action(...) { ... Set user-active field to 0 ... }Best regards,
Kostas- This reply was modified 7 years, 8 months ago by kostas45.
Forum: Plugins
In reply to: [Plainview Protect Passwords] php compatibilityPlugin works fine for me, using PHP 7.2.8.
Best Regards
Forum: Plugins
In reply to: [wp-greet] SSL issueI have been playing with the stamps in the admin (Add stamp image) and now it seems SSL is working…!
Cheers,
KostasForum: Plugins
In reply to: [wp-greet] Some issues and a feature requestHello again Hans,
Regarding the template files, I have checked, they are overwritten during a plugin update. So all changes people have made (to add own advertising or remove fields or embedding their own stuff, as you say) are lost!
Anyway, I believe CC to sender should be an option in admin (eg with a checkbox), let alone that if the sender sees the card, the confirmation email is fired (as you have no chance to recognize who fetches the card online).
Cheers,
Kostas- This reply was modified 9 years ago by kostas45.
Forum: Plugins
In reply to: [wp-greet] Some issues and a feature requestHi Hans,
Thank you for the patch, my comments follow:
1. Fixed, confirmed.
4. I do not think it is a missing feature in WPML, as it is working at other circumstances. Anyway, the separated message depending on the “send future card setting” is working fine.Regarding the template files, are you saying that they remain untouched during a plugin update? Or do we have to apply all changes to the template files again?
Cheers,
Kostas