The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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: ![]() Probably wrong, I got a lot of errors. Thanks! |
#2
|
||||
|
||||
![]()
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?
|
#3
|
|||
|
|||
![]() 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? |
#4
|
||||
|
||||
![]()
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. |
#5
|
|||
|
|||
![]() Quote:
|
#6
|
||||
|
||||
![]()
Here's an article on it, but there have also been threads about it - https://vborg.vbsupport.ru/showthread.php?t=242454
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|