Community Forum

If you have questions about my software, chances are this forum has the answers.

You'll need to register before you can post on the forum to ask your question or to answer another one. A reply will be posted to each and every question that is asked so there is no need to double post or bump your post. I do my best to answer promptly but in some cases it may take a day or two. If you bump your post, it may be removed. Bear with me and I`ll get your question answered quickly.

Here are a few tips to help you to get your questions answered more rapidly.

IMPORTANT: Posts in English only. I don't have a translator and I'll be unable to understand your message properly and will probably delete it.
SEARCH: Use the search option to see if your question has been answered on the forum before now or if there is an answer in the documentation of your software.
PERSONAL SUPPORT: If you have purchased a commercial version of any software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
LINKS: Any links posted are not clickable and must be copied / pasted into your browser address bar.

You are not logged in.

#1 RigPa 22-09-2018 17:40:18

For convenience of the user I dont want them to fill BOTH first and last name. Only first name. I cant just omit NM2 field in the POST signup form so what can I do instead?

#2 msworld 23-09-2018 05:43:54

Well, you can remove the last name check in the signup.php file, that might work. It`s around line 272.

if (isset($_POST['nm2']) && $_POST['nm2'] == '') {
      $errs[] = $signup1_4[3];


if (isset($_POST['nm2']) && $_POST['nm2'] == '') {
      //$errs[] = $signup1_4[3];
#3 RigPa 30-09-2018 17:54:03


Still get this when signing up though:

Signup Errors
Please include a first and last name

#4 RigPa 13-01-2019 20:24:21

I changed line 135 also ($_POST['nm2'] = ' ';):

    $_POST['em'] = (isset($_GET['em']) ? $_GET['em'] : (isset($_POST['em']) ? $_POST['em'] : ''));
    $_POST['nm'] = (isset($_GET['nm']) ? $_GET['nm'] : (isset($_POST['nm']) ? $_POST['nm'] : ''));
    // $_POST['nm2'] = (isset($_GET['nm2']) ? $_GET['nm2'] : (isset($_POST['nm2']) ? $_POST['nm2'] : ''));
    $_POST['nm2'] = ' ';
    // For CleanTalk..
    if ($SETTINGS->ctenable == 'yes' && $SETTINGS->ctapi) {
    $_POST['ct_ts'] = date('Y');

#5 msworld 16-01-2019 08:58:57

Works ok now?

#6 RigPa 18-01-2019 10:29:33

It does but I can't change the info of the sign up inside Maian (name & email) without getting an error that lastname can't be empty. But I do not plan to change user info anyway so it does not matter to me. (IF I might need to change info I can do it directly in the DB table - or find the relevant code and change it accordingly.)

#7 msworld 20-01-2019 06:46:15

Ok, no problem. smile

Board footer

Maian Script World - Free PHP Software for Personal or Business Use.
© 2003-2020 Maian Script World & David Ian Bennett. is an authorized reseller of goods and services provided by Maian Script World

Free PHP Software / Responsive PHP Scripts / Lightweight PHP Software / White Label PHP Software