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

vBulletin smilies to XML conversion script 1.0.0

Creates xml file from vb smilie database table to use with Smilie Importer by Waindigo.

  1. Code Monkey

    Code Monkey Well-Known Member

    Code Monkey submitted a new resource:

    vBulletin smilies to XML conversion script - Creates xml file from vb smilie database table to use with Smilie Importer by Waindigo.

    Read more about this resource...
     
  2. 0ptima

    0ptima Well-Known Member

    Thanks, this will be very useful!
     
  3. Adam Howard

    Adam Howard Well-Known Member

    I'm very pleased in seeing this released. Everything and anything that can make switching from vBulletin to XenForo easier, is always a good thing (and well welcomed).

    Thank you for sharing this :)
     
    14DH01 likes this.
  4. Shelley

    Shelley Well-Known Member

    Excellent resource CM. (y)
     
  5. Code Monkey

    Code Monkey Well-Known Member

    Thanks. I hope it helps someone.
     
  6. Brandon Sheley

    Brandon Sheley Well-Known Member

  7. Mutt

    Mutt Well-Known Member

    wish I had this a year ago
     
  8. Code Monkey

    Code Monkey Well-Known Member

    I wish I had XenForo a year ago. :D
     
    Adam Howard, John and ArnyVee like this.
  9. Sola

    Sola Active Member

    Thanks for this script. Been trying to use it to move my smilies from vb4 to xf, but I'm obviously misunderstanding your intstructions. Kindly help.
    That's my vb mysql db details, right?
    Can you clarify 'anywhere'? Do you mean within the VB directory? Within the xf directory? An example perhaps?
    By calling the file in a browser, right? The file is called "CM_vb4_to_xf_smilie_xml.php" - Does it need to be renamed? I get this error:

    Warning: DOMDocument::save(vb4_to_xf_smilie.xml) [domdocument.save]: failed to open stream: Permission denied in /home/xxxxxx/public_html/CM_vb4_to_xf_smilie_xml.php on line 55

    Does the above give you an idea how to help me?

    Thanks a lot.
     
  10. Code Monkey

    Code Monkey Well-Known Member

    Yes that's right


    Put it in your vb directory that has the database you want to dump from. It needs to have permission to write that file. So make sure you put the file in a directory that's writable by the web-server.
     
    Last edited: Jun 24, 2013
  11. Sola

    Sola Active Member

    Much appreciated.
     
  12. Sola

    Sola Active Member

    I created a temp folder, made it writable, placed a recent vb mysql dump in it, along with Code Monkey's file (with the db details in it already filled) and called the file in a browser. It generated the XML file that I imported using "Smilie Importer by Waindigo" under debug mode (after I'd physically moved the smilies into the xf smilie folder.) It works fine. Thanks.
     
  13. Code Monkey

    Code Monkey Well-Known Member

    Glad it worked for you.
     
  14. gfc

    gfc Active Member

    Does it work with vb3.8?
     
  15. Code Monkey

    Code Monkey Well-Known Member

    If the table is the same it should work. I have no way to test it. It simply makes an xml file so it's won't do any harm to give it a try.
     
  16. Delazar

    Delazar Member

    With 3.8.x it does not work. It is the message:
    The provided file was not a valid XML file. Please provide a valid XML file.
    This is the content of the xml:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <smilies>
      <smilie>
        <title>Cray</title>
        <image_url>styles/default/xenforo/smilies/standart_smilies/cray.gif</image_url>
        <smilie_text>:cray:</smilie_text>
      </smilie>
    
    I have registered as a path, is it right?:
    Code:
    // change vb path to xf path
    $config['url_search'] = 'images/smilies/';
    $config['url_replace'] = 'styles/default/xenforo/smilies/';
     
    Last edited: Aug 20, 2013
  17. Code Monkey

    Code Monkey Well-Known Member

    That is the entire xml file?
     
  18. Delazar

    Delazar Member

    no, but that was much too long.
    Should I upload the whole?
     
  19. Code Monkey

    Code Monkey Well-Known Member

    The error you reported has nothing to do with v b 3.8. It seems to have made the xml file just fine. What is reporting the xml error? Are you using @Waindigo's mod to import it?
     
  20. Delazar

    Delazar Member

    Hello,

    yes, I'm imporgting with Waindigo, but I don't get any XML error messsge except the one I already sent you. I'll upload the XML file do that you csn test it by yourself.
     

    Attached Files:

Share This Page