The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
html to bbcode addon in making..
most of my member they use html is there post (( <a href= , </a> ))
so i decided to make an add-on for this but i real dont know where shod i be looking i need to know what hook name do i use? and what php code do i run in post before its saves the post? PHP Code:
|
#2
|
|||
|
|||
You could maybe use the hook 'bbcode_parse_start', and then the text would be in the variable $parsedtext (see includes/class_bbcode.php around line 360). There's also a variable $dohtml that says whether or not html is enabled in a specific area, so you could do this:
Code:
if (!$dohtml) { $parsedtext = // do your replacement } (BTW, I haven't tried this) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|