The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
How can I prevent (gray out) members from disabling the "Receive Email from Administrators" field?
|
|
#2
|
||||
|
||||
|
Bump...
Anyone know how to do this? It should be pretty easy but I'm not exactly sure. |
|
#3
|
|||
|
|||
|
Not tested but try this.
FIND in register template: Code:
<tr> <td> $vbphrase[administrators_may_send_email] </td> </tr> <tr> <td><label for="cb_adminemail"><input type="checkbox" name="options[adminemail]" value="1" id="cb_adminemail" $checkedoff[adminemail] />$vbphrase[receive_email_from_bulletin_board_staff]</label></td> </tr> Code:
<label for="cb_adminemail"><input type="hidden" name="options[adminemail]" value="1" id="cb_adminemail" $checkedoff[adminemail] /></label> |
|
#4
|
|||
|
|||
|
that wouldn't be enought
![]() you code cheat it, so you'll have to create a plugin and to check it on the php side also! |
|
#5
|
|||
|
|||
|
If you want the checkbox to stay there but not be checkable you can just use
Code:
<tr> <td> $vbphrase[administrators_may_send_email] </td> </tr> <tr> <td><label for="cb_adminemail"><input type="checkbox" name="options[adminemail]" value="1" id="cb_adminemail" $checkedoff[adminemail] CHECKED disabled onFocus="this.blur() />$vbphrase[receive_email_from_bulletin_board_staff]</label></td> </tr> Again this is untested. I also may be completely wrong about what your trying to do If thats the case then I apologise
|
|
#6
|
||||
|
||||
|
Quote:
![]() It looks like this might work but the words "Receive Email from Administrators" are not next to the grayed-out field any more. Any other ideas? Seems like we are almost there but not quite. I just thought of something...can't this be overrideen somehow anyway? For example, if the registering member were to uncheck "Receive Email from Administrators" can't this be overridden by me somehow anyway? |
|
#7
|
|||
|
|||
|
Told you it was untested :P
Let me test it on my board. |
|
#8
|
||||
|
||||
|
LOL...wow...that was a quick response. A one minute difference.
|
|
#9
|
|||
|
|||
|
Fix for the above:
Code:
<tr> <td> $vbphrase[administrators_may_send_email] </td> </tr> <tr> <td><label for="cb_adminemail"><input type="checkbox" name="options[adminemail]" value="1" id="cb_adminemail" $checkedoff[adminemail] CHECKED disabled onFocus="this.blur()" />$vbphrase[receive_email_from_bulletin_board_staff]</label></td> </tr> |
|
#10
|
||||
|
||||
|
WOW!! This is exactly what I wanted EnIgMa1234
Thanks so much for working on this. I have tested this myself anyway to see if it works and it does. So, if anyone else is interested in using this I can tell you right now that it works ![]() Thanks SO MUCH again EnIgMa1234. |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|