Best way to hide options on the registration page ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sharg
    Senior Member
    • Jun 2000
    • 1607

    Best way to hide options on the registration page ?

    Hi,
    I will Hide most of some options on the registration page, and put default value I want to all that will be hidden.

    What is the methodology to do this ?

    What should I replace by "hidden" to hide lets say "Enable private messaging ?"

    And what should I add to make an option an obligation to be filled. Like If I want to force users to fill in the birthdate, what should I add ?

    Thanks,
  • RobAC
    Senior Member
    • Jan 2001
    • 1414
    • 3.8.x

    #2
    Here is an example of how I did it on my own registration template:

    Standard:

    PHP Code:
    <tr>
        <
    td bgcolor="#DFDFDF"><normalfont><b>Allow Bulletin Board Administrators and Moderators To Send You Email Notices?</b></normalfont></td>
        <
    td bgcolor="#DFDFDF"><normalfont>
            <
    input type="radio" name="allowmail" value="yes" checkedyes
            
    <input type="radio" name="allowmail" value="no"no
        
    </normalfont></td>
    </
    tr
    Hidden:

    PHP Code:
    <!--
    <
    tr>
        <
    td bgcolor="#DFDFDF"><normalfont><b>Allow Bulletin Board Administrators and Moderators To Send You Email Notices?</b></normalfont></td>
        <
    td bgcolor="#DFDFDF"><normalfont>&nbsp;
        </
    normalfont></td>
    </
    tr>-->
    <
    input type="hidden" name="allowmail" value="yes"
    What I've done here is defaulted the setting to "Yes" to receive email from Admins and by using the <!-- and -->, I've hidden the fields out of the registration template.

    My thanks to Wluke for this one.
    Rob

    Comment

    • julius
      Senior Member
      • Aug 2000
      • 297
      • 3.5.x

      #3
      See this thread

      Comment

      • Sharg
        Senior Member
        • Jun 2000
        • 1607

        #4
        Great answers guys thanks.
        Now all I need to know is how to force if possible a field, a select or a radio.... to be filled.

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...