The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
BB Code using PHP?
How do i go about using PHP when creating new BB Codes? Basically i want to create a new BB Code and i need to use the text between it in a PHP script...
So the process is like this: [bbcode]test[bbcode] Then a PHP script is run which has say $x = the user input.. in this case "test". Then i after using that input to gather the relevant data i have it all in $a and want to print the contents of $a on the screen. So it goes from [bbcode]test[/bbcode] to showing the contents of $a. How do i go about doing this? Thanks |
#2
|
||||
|
||||
It is easy if you know regular expressions. Here is the code you need: (Assuming that the code between the tags will be a string that doesn't contain whitespace.
PHP Code:
|
#3
|
|||
|
|||
But can that be input into the HTML box when you create a new bbcode using admin cp?
Once i get the bit in the middle i need to do something with it through PHP then the output needs to go onto the page. Thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|