![]() |
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? |
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. |
Quote:
|
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: |
All times are GMT. The time now is 04:00 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:
|