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

Clan Cms User Bridge

Discussion in 'XenForo Development Discussions' started by thebush, May 20, 2011.

  1. thebush

    thebush Member

    Hello need help with some bridge im making, following code is for vbulletin bridge for this clan cms

    PHP:
    <?php
    @mysql_query
                    
    (" INSERT INTO `vb_user` (`username`, `password`, `email`, `usergroupid`)
                    SELECT `user_name`, `user_password` ,`user_email`, `group_id`
                    FROM `ClanCMS_users`
                    WHERE NOT EXISTS (SELECT `username` FROM `vb_user` WHERE `username` = `user_name`)"
    ) or die(mysql_error());
    ?>
    Now i can replace some tables with xen foro one and my question is what to do with password table?

    PHP:
    <?php
    @mysql_query
                    
    (" INSERT INTO `xf_user` (`username`, `password`, `email`, `user_group_id`)
                    SELECT `user_name`, `user_password` ,`user_email`, `group_id`
                    FROM `ClanCMS_users`
                    WHERE NOT EXISTS (SELECT `username` FROM `xf_user` WHERE `username` = `user_name`)"
    ) or die(mysql_error());
    ?>
     
  2. thebush

    thebush Member

    Any help with this one? :(
     

Share This Page