![]() |
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?
|
PHP Code:
|
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? |
PHP Code:
|
Here's what I have for the php file that calles the rules template. That didn't work, KirbyDE, for some reason. ;)
PHP Code:
|
you may use this:
PHP Code:
|
That almost worked. I got a IE runtime error, some invalid character. It wouldn't load the editor for some reason.
|
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 ;) |
Can I just parse smilies? That is all I really need to be parsed in this template.
|
Erm ... why don't you just put in the appropriate <IMG>-Tags?
Would be easier IMHO. |
All times are GMT. The time now is 10:03 AM. |
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:
|