Skip Navigation

[Resolved] Split: Multiple account’s registration with one e-mail address?

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to setup global settings and use it with different entities

Solution:

You can find proposed solution, in this case, with the following reply:
=> https://toolset.com/forums/topic/split-multiple-accounts-registration-with-one-e-mail-address/page/2/#post-1079709

Relevant Documentation:

This support ticket is created 6 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 17 replies, has 3 voices.

Last updated by Minesh 6 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#1079709

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok jiriK-2 🙂

I've applied the solution 1st that Team registration form should not be shown or should be hide after setting certain date.

well - I've created the Post Type Competition Settings and created custom post field group that holds the End date field.
=> hidden link

I've added this Master Settings post which will hold the End date field value:
=> hidden link

As you can see with above link - I set the End Date for Today for now - that means as End Date is set to Today, when you try to visit the page from where Teacher add the team should not display the form.

So - please visit the page: hidden link
-- it will show message "Team registration is OVER" as End Date is set to Today's date from the following post:
=> hidden link

Now, if you want to display the Team form, again change the End Date from here - set it to 30th August 2018 and save the post:
=> hidden link

Again visit the Team page: hidden link - you will see the form now.

Here is how the Layout is changed:
=> hidden link

You will see I've added visual editor cell and when you edit it - following code is added:

<p>&nbsp;</p>
[wpv-conditional if="( '[types field='competition-end-date' output='raw' id='614'][/types]' gt 'TODAY()' )"]
[cred_form form="tymy"]
[/wpv-conditional]

[wpv-conditional if="( '[types field='competition-end-date' output='raw' id='614'][/types]' lte 'TODAY()' )"]
<p>Team registration is OVER.</p>
[/wpv-conditional]

I hope this makes sense and works as per your need not. 🙂 Please close this ticket and open a new ticket with your each new question.

#1079751

Dear Minesh,

perfect! It is working fine - now I can easily change the date of the deadline, thanks 🙂

The RULES:

I was talking to my colleagues and here is the actual and final list of the website's rules:

1. A Teacher can submit as many Teams he/she wants – the deadline for the submission is probably 30th October (so it is already done - I can manage it. Cool ? . After this deadline, a teacher can't submit any new Team anymore but he/she can continue to work with already submitted Teams.

2. A Teacher can't see some other teacher's Teams and Projects. He/she can work with his/her Teams only.

3. The main goal of the competition is the submission of a Project and declaring/submitting the authors of this Project = some Team.

4. Each Project can be assigned to ONLY ONE Team – it is impossible to have more than one group of students (Team) as the authors of each Project.

5. Each Team can work only on ONE Project. It means that Teacher can't submit more than ONE Project to each Team.

So I guess we are already passing these rules - so only about the Rule 5: this restriction have to be applied. OK? Thanks! ?
_____________________________________________

What I need to solve still:

1. Dynamic/automatic Post Title as a combination of some fields. I will try to do as we talking by using and editing this code:

add_action('cred_save_data', 'my_custom_save_data_action', 10, 2);
function my_custom_save_data_action( $post_id, $form_data ){
// if a specific form
if ($form_data['id']==188) {
if(!empty($_POST['wpcf-first-name'])){
$first_name = $_POST['wpcf-first-name'];
}
if(!empty($_POST['wpcf-last-name'])){
$last_name = $_POST['wpcf-last-name'];
}
$title = $first_name .' '. $last_name;
$slug = sanitize_title($title);
wp_update_post(array('ID' => $post_id, 'post_title' => $title, 'post_name' => $slug));
}
}

If I will not able to apply it, I will let you know.

2. After some Project Form's submission, I need to see the content of this Form and also bellow the content of selected/assigned Team. Today we were talking about it already so I guess you know how to make it ?

Many thanks again for today's video call!! ?

Best,

Jiri

#1081057

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Glad to know that Competition Settings I setup for you helps you to hide your form as per your requirement.

Well - as per our discussion in our call, could you please kindly open a new ticket with your each new question. We will take your each issue step by step and resole it.

Please close this ticket as well 🙂