ernest_d
Forum Replies Created
-
Forum: Plugins
In reply to: [Add Meta Tags] Remove fields from user profileNice !
I would wait for next version then.Thanks krumch,
Your suggestion with “all” option was very close !I have tested adding “0” level in option “Applicable Membership Levels:” ( as example 0,2,3,4 )
Now S2 Member is keeping saved field value after changing to ” Free subscriber”.Sadly , developers of S2Members did not pointed such an important thing.
For example they could write in docs that ” changing to Free Subscriber will destroy submitted data, unless you set “0” in the option.And I am guessing that CSS+jQuery can’t to anything for the fields with Required option. ex. If we set some field as * Required, then form submission will report an error because user have not made a required input if it was hidden.
Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] localhost with gotosolr.comI have not tried yet to use S2member together with WPSOLR.
Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] localhost with gotosolr.comI reinstalled new WordPress, and now it seems to work.
Probably some plugins messed up with custom content types.
We can mark it as resolved.
Thanks !Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] localhost with gotosolr.comNothing…
only if I interupt syncronisation and click Stop,
then for very short moment a message is displayed
“An error of timeout occured: (error code: error)Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] localhost with gotosolr.comThere I have
A total of 12 documents are currently in your index
9 document(s) remain to be indexedand it keeps saying ” 0 documents indexed so far”
Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] localhost with gotosolr.comIt is indicating green check.
Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] localhost with gotosolr.comI dont run local Solr,
I subscribed for trial gotosolr.com account.Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] localhost with gotosolr.comIt works on normal (remote) server, but not on localhost WordPress install ( Bitnami installer)
When I click “Synchronize WordPress with my Solr index” it never completes. 0 documents indexed so farNo errors, even with define(‘WP_DEBUG’, true);
Thanks krumch,
It will solve partly the problem, but how do I do to hide/display different registration fields on different levels ?Do you suggest to use CSS ? Then what I should to with *required fields as they will apply to all levels.
More clean EOT time calculation , which will add exactly 1 year.
$expire_on = strtotime('+1 year', time()); // 1 Year increment
I tested this code to set EOT time. I think it changes date for any new registrations, but I am Ok with that.
<?php /* Description: S2member EOT force */ /* by Cristián Lávaque https://www.primothemes.com/forums/viewtopic.php?t=14384&p=30321#p30321 */ add_action ('ws_plugin__s2member_during_configure_user_registration', 's2_set_default_eot_time'); function s2_set_default_eot_time($vars = array()) { if (!is_admin() && $vars['processed'] === 'yes') { $expire_on = strtotime((date('Y') + 1) . '-12-31'); // 1 Year increment update_user_option ($vars["user_id"], "s2member_auto_eot_time", $expire_on); wp_mail( '[email protected]', 'Important notice', 'EOT was changed' ); // send informative email on this event } }
So far , so good, today I had registration with level 2 , which remained same level.
If EOT is not being registered for Free Subscribers , perhaps it is possible to create it by adding let say + 1 year with function update_user_option($user_id, ‘s2member_auto_eot_time’, $expire); ?
To kozzmen & KTS915 .
Have you found this solution satisfactory in most cases, or perhaps you can elaborate something more of sporadic ” Free Subscribers” failures ?I was contacting a long time ago S2member Pro support, but they could not track down problem with my logs neither.
Currently it uses CSS classes for S2 member Pro #s2member-pro-paypal-checkout-first-name, but with inspection of forms can be adapted to any other form.