This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Can Password Protected Form have a different header?


  1. markhuss
    Member

    Hi there

    I have a password protected form. It has a graphic header specific to my client. When the client goes to log in to the page, the proprietary banner is also on the top of the page where he is forced to enter his password. He doesn't want anyone to see the header. Can I simply make the password page plain (white background with no header)?

    Thanks much
    Mark

    Posted 15 years ago #
  2. redityo

    Hi Mark,

    Try to edit "includes/view-functions.php" file and go around line 1791, you will see this code :

    $all_element_markup = '';

    put this code exactly bellow that line

    $no_header = 'style="display:none !important"';

    then go to line 1840 and you will see this :

    <h1><a>{$form->name}</a></h1>

    change to

    <h1 {$no_header}><a>{$form->name}</a></h1>

    MachForm Support

    Posted 15 years ago #
  3. markhuss
    Member

    Thank you so much. I did what you said and it works for the form that is generated when the program gets to generate the address, but I have my form's address changed so it couldn't be accidentally found.

    I take the form number and put it in a php folder per Yuniar's instructions. So the page that is automatically generated

    "my address/form/view.php?id=12" Is now

    'my address/form/clientname.php"

    does that change what I do with the code in the view-functions?

    Thanks again

    Mark

    Posted 15 years ago #
  4. redityo

    I see... that code will work on view form/standard embed code only. I think you're using advance embed code, then try to follow these steps :

    1. Go to line 2128 and you will see this code :

    $all_element_markup = '';

    put the code bellow that line

    $no_header = 'style="display:none !important"';

    2. Go to line 2176 and you will see this code

    <h1><a>{$form->name}</a></h1>

    change it to

    <h1 {$no_header}><a>{$form->name}</a></h1>

    MachForm Support

    Posted 15 years ago #
  5. markhuss
    Member

    You're brilliant - worked like a charm.

    Thank you. Thank you.

    Posted 15 years ago #
  6. markhuss
    Member

    New Password Problem,

    I just did all the suggestions below and now the password page has no banner (YES!)

    We sign in and when we fill out the form and it "submit" it says Invalid, this form is password protected!"

    Can you suggest?

    Posted 15 years ago #
  7. redityo

    Hmmm .. It should have no problem with the changes, could you try to reset the form password and clear your browser cache. After that make sure your browser javascript and cookie is enabled.


    MachForm Support

    Posted 15 years ago #

RSS feed for this topic

Reply