1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Automatical Merge Threads With The Same Title 1.0.2

Automatical merge threads with the same title into existing thread.

  1. Nobita.Kun

    Nobita.Kun Well-Known Member

    Nobita.Kun submitted a new resource:

    Automatical Merge Threads With The Same Title - Automatical merge threads with the same title into existing thread.

    Read more about this resource...
     
  2. RoldanLT

    RoldanLT Well-Known Member

    Does it send notification? After threads are merge?
     
  3. Nobita.Kun

    Nobita.Kun Well-Known Member

    No need. When you posting success you wil get message notice "Your thread had been merged." and redirect to target thread.
     
    RoldanLT likes this.
  4. Nobita.Kun

    Nobita.Kun Well-Known Member

  5. eagle eyes

    eagle eyes Active Member

  6. Nobita.Kun

    Nobita.Kun Well-Known Member

    Its will require edit core file of AddOn ;)
     
  7. eagle eyes

    eagle eyes Active Member

    Have you tested it? If it works i will get this.
     
  8. Nobita.Kun

    Nobita.Kun Well-Known Member

    Of course ^^. With beta 1 I've used search in all forums ;) But when release I decided only search in current forum :)
     
  9. eagle eyes

    eagle eyes Active Member

    Ok buddy, tell me what to edit please. :)
     
  10. eagle eyes

    eagle eyes Active Member

    PS. It will only affect new threads right?
     
  11. Nobita.Kun

    Nobita.Kun Well-Known Member

    Yep! Open this file: Nobita_AutomaticalMerge_Model_Thread
    Find:
    PHP:
    return $this->_getDb()->fetchRow('
                SELECT *
                FROM xf_thread
                WHERE title = ' 
    $this->_getDb()->quote($title) . '
                    AND node_id = ' 
    $this->_getDb()->quote($nodeId) . '
                    AND discussion_state = \'visible\'
                    AND discussion_type <> \'redirect\'
                ORDER BY post_date ASC
            '
    );
    Replace by:
    PHP:
    return $this->_getDb()->fetchRow('
                SELECT *
                FROM xf_thread
                WHERE title = ' 
    $this->_getDb()->quote($title) . '
                    AND discussion_state = \'visible\'
                    AND discussion_type <> \'redirect\'
                ORDER BY post_date ASC
            '
    );
     
    eagle eyes likes this.
  12. RAHSTYLES

    RAHSTYLES Active Member

    So the thread title has to be Exactly the same? so if sombody posts.. How to find xbox online.. and sombody else posts.. How to look for xbox online

    it wont merge?
     
  13. rafass

    rafass Well-Known Member

    Very useful to big forums.
     
    Nobita.Kun likes this.
  14. Nobita.Kun

    Nobita.Kun Well-Known Member

    Sorry but I don't understand your problem.
     
  15. RAHSTYLES

    RAHSTYLES Active Member

    How does it merge? the thread? ONly titles with the same exact name?
     
  16. Nobita.Kun

    Nobita.Kun Well-Known Member

    Same title.
     
  17. RAHSTYLES

    RAHSTYLES Active Member

    Same EXACT title? What are the chances of that happening?
     
  18. Anton_Bodryachkom

    Anton_Bodryachkom Active Member

Share This Page