Announcement

Collapse
No announcement yet.

SMF 2 to vB 4 ( Different Topic , Board IDs )

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SMF 2 to vB 4 ( Different Topic , Board IDs )

    I successfully converted my board to vB ( http://www.mmobrowser.com/forum/ ) my-ex SMF forum ( http://www.mmobrowser.com/forum.php )

    as you can see all Board & Topics IDs now different, and it makes impossible to redirect my ex topics to new one, what can i do now ?

    Example

    http://www.mmobrowser.com/forum.php?topic=394
    http://www.mmobrowser.com/forum/showthread.php?259

    Same topic different IDs
    Just a little admin MMOBrowser Forum
    also i love translating :) just guide me

  • #2
    yes it is possible

    Comment


    • #3
      may i ask how ?
      Just a little admin MMOBrowser Forum
      also i love translating :) just guide me

      Comment


      • #4
        there might be a easier way but what I did for this
        I created another tool called in impex/tools/link_replacer.php
        it should work like your cleaner.php but it also requires to use preg_replace with `e` modifier in order to call the functions such as
        Code:
        function getCorrectPostId($oldImportId)
        {
        global $idcache;
        return $idcache->get_id('post',$oldImportId);
        }
        in order to use a class ImpExCache and ImpExDatabaseCore
        you will also need to include
        Code:
        require_once ('./../ImpExFunction.php');
        require_once ('./../ImpExDatabaseCore.php');
        require_once ('./../ImpExDatabase.php');
        require_once ('./../ImpExModule.php');
        I'm just saying that there might be easier way to do this but this also might give you some hints to get going.

        Comment


        • #5
          i'm not a php expert :/ i really dont understand it, if possible can you attach me a file ( .php ) ? and how to use it ?
          Just a little admin MMOBrowser Forum
          also i love translating :) just guide me

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          X