The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
including php in postbit template?
How do I include the following code in postbit?
PHP Code:
PHP Code:
However, this does not seem to be available in postbit? |
#2
|
|||
|
|||
Include the php code in the functions_showthread, and then the html in the postbit template would be my best advice.
Whenever I need to use php in postbit I always add code to the functions_showthread. But watch that query, because it'll hit for every poster if I remember right. So if your viewing a page and have it set to list 25 posts, you'll have like 25 queries extra. At least thats the way it seemed when I had a query in my rpg code. |
#3
|
|||
|
|||
Quote:
|
#4
|
|||
|
|||
At a guess (realize I'm great at modifying code to work, but at writing it from scratch I suck), so load this up on a test site and give it a whirl -
Find: PHP Code:
PHP Code:
Then in the postbit template put this where you want it - PHP Code:
Like I said, I'm great a modifying but I don't know jack about writing from scratch , Never touched a "how-to" book, or taken any coding classes :squareeyed: |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|