![]() |
Hooks, plugins?
I want to insert a PHP script right below these two in the "postbit_legacy" template.
Quote:
But, I don't know how. Anyone has any idea how? Edit: I tried this: http://img851.imageshack.us/img851/9170/test321.jpg Probably wrong, I got a lot of errors. Thanks! |
What do you mean you want to enter a php script there? Templates are for html - you don't put php in a template. You may run a script in the plugin and then put the output into a variable and then put the variable into the template. Can you tell us a bit more about what you are trying to do?
|
Quote:
Php script: The PHP script basically reads a random line from a .txt file and print it out. Thanks for replying, any idea how to get this done? |
You will need to write a plugin to read the php script and then put the random line into a variable. Then preregister the variable for use in that specific template. And then put the variable into the template.
This exact thing has actually been covered quite a few times if you try a search. |
Quote:
|
Here's an article on it, but there have also been threads about it - https://vborg.vbsupport.ru/showthread.php?t=242454
|
All times are GMT. The time now is 12:50 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:
|