Recent content by ngocphuong

  1. N

    Fixed I'm not sure this is a bug :)

    Dear XenForo Developers! I had a problem creating a version for the APIs. When I add a version to an api, the controller cannot receive my actions. Below is the code I have edited, so happy if I helped you guys ^^ Thanks for looking over my problem: D
  2. N

    Render a template in Deferred

    Its working! But do not know it's performance :( $dependencies = new XenForo_Dependencies_Public(); $dependencies->preRenderView(); $template = $dependencies->createTemplateObject('my_template'); var_dump($template->render());
  3. N

    Render a template in Deferred

    Im try $template = new XenForo_Template_Public('test.css', array()); It work with template .css but not work vs template not .css :(
  4. N

    Render a template in Deferred

    I think deferred jobs is protected, it run follow each queue saved in database, so every body can do it is safe way. I used deferred to when creating new thread not delayed by API I think so. Do you have ideas? :( I'm congested :((
  5. N

    Render a template in Deferred

    But i can't use XenForo_Template_Public in Model :( Are you there other ways? :(
  6. N

    Render a template in Deferred

    I have class MyAddon_Model_Alert and function alertUser I create a deferred in that function XenForo_Application::defer('MyAddon_Deferred', $alertData, $hash_key, 0, XenForo_Application::$time); Model Alert can call in Deferred, think so can render a template in Model -> call it in Deferred ^^
  7. N

    Render a template in Deferred

    I have a Addon, when create new thread, comment or like a post it will create new deferred, this deferred send content HTML alert of that action to API. My English is not good, sorry because you can not understand what me say...
  8. N

    Render a template in Deferred

    Thank @tenants, but i not understand how use it in a Deferred :(
  9. N

    Render a template in Deferred

    @Mike @Chris D Please help me :( Thank you very much...
  10. N

    Render a template in Deferred

    I have a Deferred, i want render template alert_post_like (html) and send to a API I try: $template = new XenForo_Template_Public('alert_post_like'); $template->setParam('user', $user); $template->setParam('content', $content); $html = $template->render(); var_dump($html); But $html is empty...
  11. N

    I have a problem with $template->getParams()

    I have a code in Listener.php (template_post_render) MyClass_MyFile::_writerExtraData($template->getParams(), $containerData); Content of function _writerExtraData protected static $_extraContainerData = array(); protected static $_extraParams = array(); public static function...
  12. N

    XF 1.4 Problem table "xf_bb_code_parse_cache"

    Hello Now I want to empty table space "xf_bb_code_parse_cache" because it is too large Can I do this? I used xenforo 1.4.9, centos 6 Please help me.
  13. N

    [Cil] Custom Alerts - Send a custom alerts [Paid] [Deleted]

    This resource has been removed and is no longer available for download.
  14. N

    [Cil] Custom Alerts - Send a custom alerts [Paid] [Deleted]

    ngocphuong submitted a new resource: [Cil] Custom Alerts - Send a custom alerts - mass alert, custom alert, send custom alert Read more about this resource...
Top Bottom