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

Import/Export Trophy Data

Discussion in 'General XenForo Discussion and Feedback' started by John L., Dec 11, 2012.

  1. John L.

    John L. Well-Known Member

    Hi All,

    Is there a way to transfer trophy data from one forum to the next? I have two forums and I setup a lot of interesting trophies on one forum and it was a pain to go through and make them. I would like to simply copy that data and put it on my second forum then modify it slightly to fit my forum. Is there a simple way to do this or even a hackish way? Thanks!
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    You could just export the xf_trophy table using PHP My Admin and then import it to your other database after clearing the existing xf_trophy table there.

    However, that will only export the trophy ID, the number of points and the criteria.

    The title and description of each trophy is automatically phrased, in the format of "trophy_{id}_description" and "trophy_{id}_title".

    I can't think an easy way of exporting the phrases out of one database to another as they are all mapped and compiled. It might just be a case of exporting the xf_phrase table, importing the xf_phrase table and then rebuilding the phrases cache but whether that will work or not, I don't know.

    It might just be as straight forward to re-do the phrases manually.
     
    0ptima and Jake Bunce like this.
  3. John L.

    John L. Well-Known Member

    I suppose I'll be working on re-creating my trophies haha. It would be nice if this was either an addon or a feature recommendation, but who I am kidding with new features...-_-
     
  4. Chris D

    Chris D XenForo Developer Staff Member

    Well you're half way there with my recommendation above. At least you will have the trophies created with the criteria etc.

    Creating phrases isn't ever such a long task so I'm certain you'd get it done pretty quick.
     
    Jake Bunce likes this.
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page