The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Parse bbcode in any php file
What would I need to put at the top of a PHP file (that calls my rules template) to make it so any bbcode in the template will be parsed, like smilie code?
|
#2
|
||||
|
||||
PHP Code:
|
#3
|
||||
|
||||
I did the first part but basically all the php file has in it is the
eval('print_output("' . fetch_template('rules') . '");'); which calls the template. How would I parse that? |
#4
|
||||
|
||||
PHP Code:
|
#5
|
||||
|
||||
Here's what I have for the php file that calles the rules template. That didn't work, KirbyDE, for some reason.
PHP Code:
|
#6
|
||||
|
||||
you may use this:
PHP Code:
|
#7
|
||||
|
||||
That almost worked. I got a IE runtime error, some invalid character. It wouldn't load the editor for some reason.
|
#8
|
||||
|
||||
hmm, maybe it parses some bbcode where you don't want them to be parsed?
but i don't think that's avoidable. normally you shouldn't parse bb code in templates at all |
#9
|
||||
|
||||
Can I just parse smilies? That is all I really need to be parsed in this template.
|
#10
|
||||
|
||||
Erm ... why don't you just put in the appropriate <IMG>-Tags?
Would be easier IMHO. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|