![]() |
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. |
You need to use the plugin system, http://vbulletin.com/docs has more information for you about how to do it.
|
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? |
Quote:
|
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? |
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.
|
All times are GMT. The time now is 10:33 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:
|