SLPOnline
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Login Page Customizer - Login Designer] Site down after updateRenamed the plugin folder and did the 1.6.1 update. Site seems fine. Thanks for the quick fix.
Your fix did the trick! I’m pretty surprised at how much help you gave our client for this issue. Amazing support! That’s pretty much the finest support we’ve gotten on a plugin (and we’ve been doing this for 20+ years). Kudos to the UM Team.
I contacted you through your blog’s contact form with the video link due to the site’s restricted content.
The only custom functions we have on the site are for disallowing the author in the sitemap and hiding the author name from hackers. (Our dev server has been getting a lot of login attempts.) We have no custom code for approving users on registration, except for the UM options and it’s currently set to “auto-approve.” (I can provide a private link to the site.)
Added as a code snippet:
`add_action(“um_submit_form_register”,”um_062821_21_years_old”);
function um_062821_21_years_old( $post_form ){if( isset( $post_form[‘birth_date’] ) && ! empty( $post_form[‘birth_date’] ) ){
// register the error notice
// $then will first be a string-date
$then = strtotime( $post_form[‘birth_date’] );
//The age to be over, over +21
$min = strtotime(‘+20 years’, $then);
if(time() < $min) {
UM()->form()->add_error(‘birth_date’, __( ‘You must be at least 21 years old.’, ‘ultimate-member’ ) );
}}
}
We probably have a few UM customizations. We are disallowing: member directory, search engine option in UM, cover photos, social links in header, user description in header, HTML in description, emoticons.
The default member role is member, auto-approval. Site is accessible to everyone, all content is blocked except for logged in members, admin + editor.
The registration form is customized to assign “member” role, max width 960, no icons.
I can provide you with a login; please note the content is age restricted.
Yes, it has a birth_date meta key. I used the one available and didn’t create a new field. See this image
I changed it to 21 years of age, but it doesn’t work on a full registration form. It shows an error in red, but allows the person to register, even with a 2022 birthdate. I think the only solution is to add a Gravity Form that doesn’t allow them to the registration form unless they answer the single GF question (birth date) and then have GF redirect to the registration form. Unless you can think of anything else that keeps this completely inside UM (which I’d prefer).
We’ll give that a try. I really appreciate your help with this. Above and beyond.
No, we were using a yes/no radio button. What we are trying is a Gravity Form for the age and then a “continue” button for yes and a different one for no. “Continue” takes the user to the UM registration page. Is there an easier solution in UM?
Thanks for the link. We couldn’t find your support page so we entered it here, hoping you’d help us find it. Thanks, we’ll go there.
Forum: Plugins
In reply to: [Modern Events Calendar Lite] New version caused critical errorWe had a similar issue and our temporary “fix” was to unpublish any event created after the plugin update. Sidebars on single event pages are still broken, but the site works again. I don’t know if you’re having the same issue we are, but I thought I’d offer our experience. Hope it helps.
Forum: Plugins
In reply to: [Web Directory Free] Webdirectory homepage mapWe’ve done that. If a user says “no” to “use my location,” it shows a zoomed in map of Uganda. Every location (there are 50+) is in the US. We want the map to default to the US. Can we do that?
Forum: Plugins
In reply to: [Web Directory Free] Webdirectory homepage mapIs there any way to default to a map of a particular country? (In this case, the US).
Forum: Plugins
In reply to: [Web Directory Free] Webdirectory homepage mapI added screenshots of the map settings and what we’re seeing.
map settings
map link