AndyB
Well-known member
I'm not understanding how to make the following code into a DataWriter.
I would love to get specific instruction like:
1) Where to create a new folder and file
2) The contents of the new file
3) Show the DataWriter code that calls this new file
Thank you.
PHP:
// get new_post_date from overlay
$newSmilieCount = $this->_input->filterSingle('new_smilie_count', XenForo_Input::STRING);
// save $newSmilieCount
$db = XenForo_Application::getDb();
$db->query("
UPDATE andy_smilie_count
SET max_smilie = '$newSmilieCount'
WHERE max_smilie <> ''
");
I would love to get specific instruction like:
1) Where to create a new folder and file
2) The contents of the new file
3) Show the DataWriter code that calls this new file
Thank you.