The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
[How do I?:] Make my hack modular?
I want to make my hack have the ability to instantly add plug-in code, in order to add extra feature via the admin cp. Much like vbadvanced and teh new vB 3.5. Unfortuantly(sp?), I have no idea how to do this. I'm not looking for the exact answer or anything...just some ideas on how to get this effect.
Here's what kind of effect I'm trying to get at: vB Space consist of two main columns, each column having different modules. I would like 1.) For admins to be able to pick the order in which the modules should appear. 2.) For admins to add more modules to either the left column or in the right, and pick the order in which is should appear. I'm totally lost on how to get this modular approach, so any help whatsoever is extremly appreciated! |
#2
|
||||
|
||||
use left and rightside and displayorders
|
#3
|
|||
|
|||
Thanks An-net, you've been great help to me
Now that we have position and order set, what do I do with the php code they insert? EDIT: I think I found a neat way to do this, but if anyone could verify if it's good coding or if theres a better way. Then please do! When the admin enters in the php code and clicks submit, it automatically write the code to the space class. There is also another field called function_name...I can then call a query to retrieve all active modules and run them through space.php... Is that a good method? |
#4
|
||||
|
||||
you could use a hooks type system with saving the php code to a .xml file and then just parse it when vb space is run
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|