The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
PHP and BBCode
I want to incorperate some PHP into my BB Code. How would I do this?
For examples sake. I want to fetch a web page using file_get_contents and allow users to do this with bbcode. BBCode [fetchpage]http://www.url.tld[/fetchpage] So how would I do this? |
#2
|
|||
|
|||
I don't think you could do this through vBulletin Add new BB Code, but you could use the plugin: bbcode_parse_complete
|
#3
|
||||
|
||||
You can add custom BB codes using the hook bbcode_fetch_tags. It is located at the end of class_bbcode.php (look at how it works).
|
#4
|
|||
|
|||
Ive no idea how to go about using hooks.
Lets say I want to create a plugin for bb code which will just do some PHP to whatever is within the bb code tags I defined. How would I do this? |
#6
|
|||
|
|||
Looks very helpful. Ill read a bit deeper later. Thanks for your help
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|