![]() |
How do I make something in vBulletin Options?
Can someone help me here please? I am trying to make a vBulletin option where I can easily turn on/off a mod to my board like hide/show it then have a box below it for the phrase like $vbphrase[member_of_the_month]
Any help is appriciated. :) |
First you must turn on vBulletin's Debug Mode.
You can do this by adding the following line to your config.php file: Code:
$config['Misc']['debug'] = true; Select add new option group, name it whatever you want, and then add a new option to that group. After you have your option group created, create a new option. For example name the option "customhackon" To have this option simply turn your custom hack on/off leave all fields blank, and select "yes/no" for the "type" of setting. Now select either yes or no and click save. You now have a custom option setup and now all that is left to do is to ensure that your hack "obeys" the option. If you want to do this from within the PHP file of your custom hack then add the following code to the top of the file: Code:
if(vbulletin->options["customhackon"]==1){ Code:
<if condition=="vbulletin->options["customhackon"]==1"> For vbulletin phrases, you need not be in debug mode. Simply go to Language and Phrases, and add another phrase under the GLOBAL category. |
All times are GMT. The time now is 10:54 PM. |
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:
|