The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Postbit - PHP
How would I go about adding dynamic PHP code into the postbit? I don't think I can do it through the style manager.
Thanks in advanced. Edit: Also, vBulletin 3.6.5. |
#2
|
||||
|
||||
You need to use the plugin system, http://vbulletin.com/docs has more information for you about how to do it.
|
#3
|
|||
|
|||
Hate to be a pain, but where in the manual might I find it? A search for "postbit" reveals nothing interesting.
Edit: I found it, but can you point me into the right direction as to what to add in the beginning of the file so that it knows that it's a plugin for the postbit template? |
#4
|
||||
|
||||
Quote:
|
#5
|
|||
|
|||
Quote:
Honestly, I've never worked with plugins or anything with vBulletin, all I know is what I want to add, and where I want it (I can do the php, it's just the plugin part that messes me up) Edit: I can't seem to get it to work, I've tried postbit_factory, postbit_start, and postbit_complete hooks, with the code: echo "Test"; - it doesn't work with any of them. Edit2: My bad . The plugin system was disabled. Anyway, I can only seem to get the text to appear at the top of the page, how do I fix this? |
#6
|
||||
|
||||
You 'fix' it by putting the text in a variable in the plugin ($myVar = 'Test'; ) and then putting the variable in your template where you want it.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|