The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Admin CP
I am looking to learn how to code pages and options for the admin control panel.
So far, I have: Hack Enabled - Yes | No Which Layout - Layout 1 | Layout 2 Submit. I can't seem to work out how to submit it (as there is no location to submit to) and how to actually get the hack to enable if enable is selected etc. I have read the article here But now I am still really stuck. Can anyone offer any guidance? |
#2
|
||||
|
||||
Are you just talking about adding settings for your product? If so, you just go into debug mode and add them.
|
#3
|
|||
|
|||
I'm in Debug mode.
Added the product Uploaded cpnav_xxxx.xml Uploaded profiles_admin.php into admincp/ Just stuck on how to get the features working. For instance - Hack enabled (yes) turns it on Hack enabled (no) turns it off Profile Layout 1 - Uses layout 1 Profile Layout 2 - Uses layout 2 Profile Layout Unchanged - Uses vBulletin Layout |
#4
|
||||
|
||||
Well, now you need to use those variables to do what you want. They are settings like any other setting in vbulletin. So, you have $vbulletin->options['youroptions'] in your php and $vboptions['youroptions'] in your templates.
|
#5
|
|||
|
|||
All my php file has is:
PHP Code:
|
#6
|
||||
|
||||
You also don't seem to be doing anything with the inputs from your form. You have a form with a submit button that does nothing.
|
#7
|
|||
|
|||
This is what I am asking.
How do I get it to do things? Is there anymore articles out there that help with this kind of thing? Same with plugins / hooks etc. |
#8
|
||||
|
||||
Best way to learn is to find a modification that does something similar (in this case, does something in the admin cp) and then see what they did.
|
#9
|
||||
|
||||
Coding in the Admin CP is very different to "normal" coding in vBulletin. It is very much like "beginner PHP", where you echo one thing, process the next, then echo it again.
|
#10
|
|||
|
|||
Which do you think would be the easiest mod to look at to see how to get the hack to enable etc.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|