The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Integrating own code into vBulletin
I'm sure there have been previous posts about this, but just took a look and couldn't find any. (Maybe folks can give me some search terms to use?)
I want to place a business directory ("yellow pages") as part of my forum, with a link in the top menu. How and where do I integrate my PHP code? I would like it to be able to work as a standalone PHP page i.e. not having to cut and paste my PHP code into the vB admin interface every time I need to test it. Is there some sort of PHP file available with all the other necessary vB stuff (header, footer etc.) with a place inside the file saying: < insert your code here > or another method, where I insert the name of my PHP code file somewhere, that then gets included in a vB file? One way I thought of doing it, might be this way. Looking at memberlist.php, as an example, could I basically use that as a guide, and just insert my own code after the part where it says: // ###################### // ### START MAIN SCRIPT #### //###################### and then save it as say bizdir.php, and call that file? Any comments, and things I should watch out for? Thanks in advance for any replies. Miner2049er. |
#2
|
|||
|
|||
Would Logican's Web Templates be any good for you...
Not sure exactly where but use that as a search term |
#3
|
||||
|
||||
Theres a variety of tutorials in the 3.5 section that you should read. One specifically provides you with the basic php page that takes advantage of vb's backend and uses its templates.
If you want something thats completely stand alone - as in it will run without even needing vb, then you will need to code it from scratch. Either way, you may want to take advantages of the hooks in the files for executing code in certain places. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|