The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I would like to store two text values as settings options, but would like to make them read-only.
I am creating a product (mod), and this is a necessary part of what I am doing, to avoid user error. I need to know what code to write, and what hook to connect it to. Thanks in advance!) |
|
#2
|
|||
|
|||
|
Quote:
Code:
$myoption = $vbulletin->options['your option'];
|
|
#3
|
|||
|
|||
|
I believe these options will still be editable by the admin. When I say read-only, I am referring the forum admin.
But I think I solved this one - it looks as though 'custom' formatted options are not directly editable, and I can use this method to prevent accidental modification of delicate settings. Thanks. |
|
#4
|
|||
|
|||
|
[quote=burtonmiller;2504180]I believe these options will still be editable by the admin. When I say read-only, I am referring the forum admin.
{/quote] Depending on the permissions set, all options can be edited via the admin due to it being a script. Quote:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|