View Full Version : PHP and BBCode
Shamil.
02-17-2009, 03:39 PM
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
http://www.url.tld
So how would I do this?
bananalive
02-17-2009, 04:27 PM
I don't think you could do this through vBulletin Add new BB Code, but you could use the plugin: bbcode_parse_complete
Dismounted
02-18-2009, 06:03 AM
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).
Shamil.
02-19-2009, 06:12 AM
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?
Dismounted
02-19-2009, 08:03 AM
I just did a search on the forum, and guess what showed up? This. (https://vborg.vbsupport.ru/showthread.php?t=200769)
Shamil.
02-19-2009, 05:29 PM
Looks very helpful. Ill read a bit deeper later. Thanks for your help :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.