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

Lack of Interest Associate a resource has an old thread

Discussion in 'Resource Manager Closed Suggestions' started by Allan, Mar 12, 2013.

  1. Allan

    Allan Well-Known Member

    Associate a resource has an old thread, it's possible ?
    Digital Doctor likes this.
  2. Chris D

    Chris D XenForo Developer Staff Member

    I would guess that it isn't a core feature, but possibly could be done either via an add-on or MySQL queries.

    I can only envisage at this stage, but I guess there's a database table, such as xf_resource which has a column called thread_id. Or a separate table that is purely for the link between resources and threads.

    Maybe it's just as simple as changing the thread IDs and rebuilding some caches.

    Only time will tell on that one unless the devs are kind enough to let us know :)
    Allan likes this.
  3. 3rd AnGle

    3rd AnGle Well-Known Member

    i suppose the title should read "Associate a resource with an old thread".

    Well most of what's being suggested for RM has been already implemented by Bobster in his add-on Showcase. So let's catch hold of Bobster :p
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Almost right :)

    Chris D likes this.
  5. Brogan

    Brogan XenForo Moderator Staff Member

    I haven't tested this (I will on my local), but it should also be possible to create a resource and then merge the two threads.

    I'll try that and report back.
    Chris D likes this.
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Testing complete.

    Simply adding the thread ID to xf_resource.discussion_thread_id is enough to associate the thread with the resource.
    No cache rebuilding is required.

    Merging a new resource thread with an existing thread also works - all you need to do is update the first post with the information that is normally automatically posted in a resource thread (optional).
    Chris D likes this.
  7. Allan

    Allan Well-Known Member

    Great news !

    Thank you Paul ;)
  8. Brogan

    Brogan XenForo Moderator Staff Member

    As per bobster65's request, you can also associate more than one resource with the same thread by editing the database, should you ever wish to do that.
    Chris D likes this.
  9. Chris D

    Chris D XenForo Developer Staff Member

    I think I know what my first Resource Manager add-on will be ;)
  10. Veer

    Veer Well-Known Member

    We have so many threads with file attachments, so if we associate them with the resources, do we need to reupload files to make the "Download" button work? some threads have multiple attachments (in first post).
  11. Brogan

    Brogan XenForo Moderator Staff Member

    Well the attachments will need to be added to the RM, not the thread.

    So effectively you will need to create the resource, uploading the files to it, then associate it with the existing thread.
    You may want to then edit the thread to remove the existing attachments.
  12. Veer

    Veer Well-Known Member

    Thanks for the information.
    But that's too much work then o_O We have about 1500+ threads with attachments.

Share This Page