MyBB Community Forums

Full Version: Hide options
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2013-10-08, 08:40 AM)Seabody Wrote: [ -> ]Change the type attribute of the HTML to hidden, and set the value attribute to whatever you want.

Eg:

<input type="hidden" class="checkbox" name="hideemail" id="hideemail" value="1" {$hideemailcheck} /> This will HIDE the member's email.
<input type="hidden" class="checkbox" name="hideemail" id="hideemail" value="0" {$hideemailcheck} /> This will SHOW the member's email.

It still doesn't work...
(2013-10-09, 12:46 AM)MYBB GHOST Wrote: [ -> ]
(2013-10-08, 08:40 AM)Seabody Wrote: [ -> ]Change the type attribute of the HTML to hidden, and set the value attribute to whatever you want.

Eg:

<input type="hidden" class="checkbox" name="hideemail" id="hideemail" value="1" {$hideemailcheck} /> This will HIDE the member's email.
<input type="hidden" class="checkbox" name="hideemail" id="hideemail" value="0" {$hideemailcheck} /> This will SHOW the member's email.

It still doesn't work...

Doesn't work how? The code I provided will work in the register template, it was only an example. You have to do the rest yourself.
FWIW if the above doesn't work, try removing {$hideemailcheck}. Not entirely sure what it does.
(2013-10-09, 10:38 AM)Seabody Wrote: [ -> ]
(2013-10-09, 12:46 AM)MYBB GHOST Wrote: [ -> ]
(2013-10-08, 08:40 AM)Seabody Wrote: [ -> ]Change the type attribute of the HTML to hidden, and set the value attribute to whatever you want.

Eg:

<input type="hidden" class="checkbox" name="hideemail" id="hideemail" value="1" {$hideemailcheck} /> This will HIDE the member's email.
<input type="hidden" class="checkbox" name="hideemail" id="hideemail" value="0" {$hideemailcheck} /> This will SHOW the member's email.

It still doesn't work...

Doesn't work how? The code I provided will work in the register template, it was only an example. You have to do the rest yourself.
FWIW if the above doesn't work, try removing {$hideemailcheck}. Not entirely sure what it does.

Um... I signed up and then I went to my main account and went to admin cp and all of that was uncheck...
Pages: 1 2