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

How to keep View of the thread not destination?

Discussion in 'XenForo Questions and Support' started by Gultog, Aug 9, 2011.

  1. Gultog

    Gultog Member

    I have join 2 thread and choose one is destination, but then all View of other topic gone! Now how to edit the view of that thread again, and then how to make them dont gone after join?
     
  2. Digital Doctor

    Digital Doctor Well-Known Member

    Do you mean that all the Watchers are dropped when the threads are merged ?
    I suspect you are correct.
    I don't think there is a solution for this.
     
  3. Gultog

    Gultog Member

    I mean Views, you can see any thread, there will be Views & Reply count. After merge, the reply dont gone (sure that MUST not gone), but the View of the thread that I do not choose as destination will gone! But if I choose it to keep Views, the poll of other will not join into that BIG thread. That a very big problem for me now :(
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The view counter will be that of the destination thread when you merge two threads. It doesn't sum the views of the two threads.

    You can manually edit the thread record in the xf_thread table to change the views. Here is the query:

    Code:
    UPDATE xf_thread
    SET view_count = 50
    WHERE thread_id = 2;
    
    Change the numbers appropriately.
     
    Gultog likes this.
  5. Gultog

    Gultog Member

    Where is that xf_thread?
     
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It's a table in the database.

    Do you have phpmyadmin on your server? Many hosts will preinstall this program for you. It allows you to manage your database and run queries like the one I posted.
     
    Gultog likes this.
  7. Gultog

    Gultog Member

    Ok thanks, I can set it now, thanks. But I have more question, how to change the ID of forums node or thread? I have triedto change but after click, it move to the old thread with that ID (although I have deleted it in forum & database). Please help me :)
     
  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    You shouldn't change the IDs. Those are unique indexes that are referenced in multiple tables throughout the database.
     
  9. Gultog

    Gultog Member

    I know, I have change in many tables, but it still have some error. I have tried to find all tables have user_id (or thread_id) and change them, but seem there is something missing :(
     
  10. Brogan

    Brogan XenForo Moderator Staff Member

    You shouldn't be manually changing tables in this manner, you're more than likely going to render your database useless.
     

Share This Page