![]() |
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? |
I don't think you could do this through vBulletin Add new BB Code, but you could use the plugin: bbcode_parse_complete
|
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).
|
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? |
I just did a search on the forum, and guess what showed up? This.
|
Looks very helpful. Ill read a bit deeper later. Thanks for your help :)
|
All times are GMT. The time now is 03:54 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:
|