![]() |
Disabling options in settings
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!) |
Quote:
Code:
$myoption = $vbulletin->options['your option']; :) |
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. |
[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:
|
All times are GMT. The time now is 10:43 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|