Recent content by Lu Jia

  1. Lu Jia

    XF 1.1 Blank index

    Sorry I haven't see the reply ^^' Thanks for the tip, it works now!
  2. Lu Jia

    XF 1.1 Blank index

    How can I do it? Thanks in advance :)
  3. Lu Jia

    XF 1.1 Blank index

    I have a blank page as index. I don't know why. I tryed to link the board to a fresh database and it works, so I guess is a database problem. The admin.php page works, I tryedto disable all addons. Nothing, any suggestions to resolve it?
  4. Lu Jia

    Create a thread prefix with php

    My blog addon is a multi blog addon. When you create a new blog the system will create a new thread pref'ix for the "news" forum. (that's what I need) Whenever a user create a news the system will create a thread in the "news" forum with the created thread_prefix. I tried...
  5. Lu Jia

    Create a thread prefix with php

    This code works fine to assign a title to a thread prefix: $dw->setExtraData(XenForo_DataWriter_ThreadPrefix::DATA_TITLE, $input['title']);
  6. Lu Jia

    Create a thread prefix with php

    Yeah, my code works fine. I just want to know hot to assign the thread_prefix to a node. You will also need to associate it to a forum node_id if you expect to use it within a give forum Code: $this->_getPrefixModel()->updatePrefixForumAssociationByPrefix($dw->get('prefix_id')...
  7. Lu Jia

    Create a thread prefix with php

    If I remove $writer->set('title', $minTitle); $writer->set('node_ids', $node_ids); It works but the prefix name is: thread_prefix_4. Where 4 is the prefix_id. Any idea how to set title and node where the prefix is usable? I found the way to insert the...
  8. Lu Jia

    Create a thread prefix with php

    $writer = XenForo_DataWriter::create('XenForo_DataWriter_ThreadPrefix'); $writer->set('title', $minTitle); $writer->set('prefix_group_id', 1); $writer->set('css_class', 'prefix prefixPrimary')...
  9. Lu Jia

    Datawriter how to find missing items to remove?

    There are a lot of ways to do it. You can do a input text for each ingredient with a delete button for each one. When the user press it the form will delete the Pizza-Ingredient row where id = x. Another way is (more resource) $db->fetchAll from Pizza-Ingredient where pizza-id = x, compare it...
  10. Lu Jia

    Redirect:SUCCESS

    Oh, my is a specific addon, I guess no one will need it :D It still doesn't work. All works fine (query and other stuff) just redirect doesn't work. Any suggestion?
  11. Lu Jia

    Redirect:SUCCESS

    New issue :) I know the second argument will pass the redirectlink public $redirectTarget = ''; but it seems doesn't work. This is my code: $redirectUrl = 'scanteam/'.$scanteam_alias.'.'.$scanteam_id.'/admin'; return $this->responseRedirect(...
  12. Lu Jia

    Redirect:SUCCESS

    I found the error in my form tag I got 2 class like: <form class="xenForm" class="AutoValidator"> That's why it doesn't work just merge them: <form class="xenForm AutoValidator"> It works now! Thanks for your help man :)
  13. Lu Jia

    Redirect:SUCCESS

    It still doesn't work :(
Back
Top Bottom