• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

[GUIDE] Extend the Importers

xfrocks

Well-known member
#1
As I read through this thread of Paul, I tried to extend the Importer without copying over the old importer code. It's pretty simple and straight forward. Below is the basic steps, I'm going to release a addon using this soon so you can see that later.

  1. Add your listener to load_class_model and extend XenForo_Model_Import
  2. Override the method named getImporter and wait for somebody calls XenForo_Importer_vBulletin, use the idea of XenForo_Application::resolveDynamicClass and you can extend that class
  3. In your class (MyAddon_Importer_vBulletin), override the method getSteps, catch the parent generated array and add your owns
  4. Add extra methods to your MyAddon_Importer_vBulletin to handle those extra steps (stepX, stepY, etc)
Hope this helps and gives somebody ideas :D Or you can wait my addon ;)
 
R

ragtek

Guest
#4
thx very much for this tutorial and the add-on with the example code:)

this was very useful:)