Lee
Well-known member
For now, I have manually saved some content into a new table I have created in my xenforo database.
This table is xenforo_articles, the field name is content. This is the php I am using to preform the query;
What I want to do, is get the field called content in that table and tell it to format the html in my template. Basically, I want to allow a text editor to submit html into the table and then display it correctly, bypassing the xenforo bbcode editor. I will be the only person with access to this form, so security of the html isn't really an issue as such.
What is the best way to achieve this?
Thanks!
This table is xenforo_articles, the field name is content. This is the php I am using to preform the query;
PHP:
<?php
class Callback_PageNode
{
public static function myfunction(XenForo_ControllerPublic_Abstract $controller, XenForo_ControllerResponse_Abstract &$response)
{
$db = XenForo_Application::get('db');
$results = $db->fetchAll('
SELECT *
FROM `xf_articles`
');
$response->params['results'] = $results;
}
}
What I want to do, is get the field called content in that table and tell it to format the html in my template. Basically, I want to allow a text editor to submit html into the table and then display it correctly, bypassing the xenforo bbcode editor. I will be the only person with access to this form, so security of the html isn't really an issue as such.
What is the best way to achieve this?
Thanks!