Checking before going live

speedway

Well-known member
Ok, I have my test/dev site all ready to go live next week and just wanted to check that what I want to do will work.

I have all my usergroups setup, permissions work as expected on all forums, moderators all setup, style has been customised, addons installed and configured etc etc. The only thing that is not up to date is users, posts and threads.

I will be using a version of Shawn's VB4 importer to bring the latest info into the DB. Now, Shawns importer empties the various tables and imports fresh data meaning that all forum, thread, post,user etc id's are the same as what I already have in 2 week old data plus new stuf done in the past 2 weeks.

Seeing as everything will be the same I am assuming that all the permissions etc will automagically be link up what I have already done with the newly imported data. Yes? No?

If yes then I am all set to get rid of my current forum and replace it with the bees knees of forum software :)
 
automagically

Don't assume that.

The import process you described is not supported by the default importers. Normally you should run a fresh import from scratch when it comes time to go live. If Shawn's importer can go incremental then that is an option, but I have never tried his importer. I like clean imports myself.
 
Thanks Jake

I know Shawns importer isn't standard but I use it because it does alot more than a standard importer. I'll think I'll just run a test to see how it all goes before pulling the plug so to speak.
 
Ok, I think I have worked out how to get all my data into an already populated test site. Now, before I start the real thing I am looking for info on how to do redirects form VB to XF. Please note that I am NOT using the VB4 Importer from here, I am using Digitalpoint's A.R.F.I. VB4 to XF4 Importer and as such I will NOT have the standard import log.

So if someone would be kind enough to point at where I should get redirect rules for nginx, redirecting from urls like "showthread.php?t=48256&p=847421#post847421" to the like XF Full Friendly urls I would be very apreciative.

Cheers
 
If your using ARFI your content ID's will remain the same, so the rewrite rules are relatively simple, i've got them saved somewhere, will try to find them.

Alternatively, you can create your own import log since theres no remapping and just use the normal redirect scripts.
 
Would this work? I am currently importing the VB DB into a local install via the standard importer, mainly because I cannot get the DP importer to import xf_user_authentication to work properly. If I also do all the threads and posts would I be able to export the import table, then import into into my live DB thereby allowing me to use the redirection stuff from here? Would I still need nginx specific rewrite rules? Or are specific nginx rewrite rules better in this case?
 
Thanks for that Slavik. I would really appreciate the rewrite rules, I have zero experience with making them

Courtesy of mr hogan :)

Code:
location ~ ^/(printthread|showpost|showthread).php {
        if ($args ~ "^p=(\d+)") {
                rewrite ^      https://forums.digitalpoint.com/posts/$arg_p/?                          permanent;
        }
        if ($args ~ "^t=(\d+)") {
                rewrite ^      https://forums.digitalpoint.com/threads/$arg_t/?                        permanent;
        }
}
 
Just checking.... do I need to leave the files from the VB4 redirection add-on I uploaded - forumdisplay, printthread, showpost, showthread etc?

Those are only needed to map old ids to new ids. If the ids are the same then you don't need those scripts and the nginx rewrites are enough.

edit - actually, please post an example of a before and after thread URL so I can be sure. Some vB4 URL formats require extra consideration.
 
Those are only needed to map old ids to new ids. If the ids are the same then you don't need those scripts and the nginx rewrites are enough.

edit - actually, please post an example of a before and after thread URL so I can be sure. Some vB4 URL formats require extra consideration.
Thanks Jake

Yes, all my ids are the same as they were on VB. I haven't added the nginx rewrites yet, will be doing so when I am 100% sure.

Here are some adresses from VB -> XF:

australianspeedway.com/showthread.php?t=48256&p=847421#post847421 is now australianspeedway.com/threads/you-may-have-noticed.48256/

australianspeedway.com/showthread.php?t=46055 = is now: http://australianspeedway.com/threads/speedcar-calendar-2012-2013.46055/

australianspeedway.com/forumdisplay.php?f=11 is now http://australianspeedway.com/forums/midgets.11/

Cheers
 
Excellent thanks Jake.

Just checking one more thing (I promise I'll stop doing that soon!)

In here:

Code:
location ~ ^/(printthread|showpost|showthread).php {
        if ($args ~ "^p=(\d+)") {
                rewrite ^      http://australianspeedway.com/posts/$arg_p/?                          permanent;
        }
        if ($args ~ "^t=(\d+)") {
                rewrite ^      http://australianspeedway.com/threads/$arg_t/? permanent;
        }
}]
Would I just add, for forums, this
Code:
location ~ ^/(printthread|showpost|showthread|forumdisplay).php {
        if ($args ~ "^p=(\d+)") {
                rewrite ^      http://australianspeedway.com/posts/$arg_p/?                          permanent;
        }
        if ($args ~ "^t=(\d+)") {
                rewrite ^      http://australianspeedway.com/threads/$arg_t/? permanent;
        }
if ($args ~ "^f=(\d+)") {
             rewrite ^      http://australianspeedway.com/forums/$arg_t/? permanent;
    }
 
}

Cheers
 
OK, I am being dumb, but where in my mginx conf file do I put these? I just ried adding them and nginx complains: nginx: [emerg] "location" directive is not allowed here

I also need to add another one as I was informed by a member that it gave him a 404 making him think the site was till offline. Luckily he checked Google but I suspect alot of others arent. The link clicked was to australianspeedway.com/forum.php.

Here is what I did in my conf file.

Code:
# New rewrites for old VB urls
              location ~ ^/(printthread|showpost|showthread|forumdisplay).php {
              if ($args ~ "^p=(\d+)") {
                       rewrite ^ http://australianspeedway.com/posts/$arg_p/? permanent;
               }
               if ($args ~ "^t=(\d+)") {
                       rewrite ^ http://australianspeedway.com/threads/$arg_t/? permanent;
               }
               if ($args ~ "^f=(\d+)") {
                       rewrite ^ http://australianspeedway.com/forums/$arg_f/? permanent;
 
               }
}
        # End VB rules
                                                                         
        location / {
            #This sends everything through index.php and keeps the appended query string intact.
            try_files $uri $uri/ /index.php?$uri&$args;
        }
 
Ok, I think I fixed the /forum.php link by putting this above my location / directive: rewrite ^/forum.php / permanent;

Don't know if that is the right way to do it or the right place to put it but it works.

Still have the problem of incorporating all those others into the conf somewhere. I have been on google all day trying to find this out to no avail. Tons of links telling me *how* to change from apache to nginx but sweet fa on *where* to put them into the conf file and still cover the basic Xenforo requirements.
 
Bruce, just one small niggle - the registration and cookie overlays appear in the bottom left of the screen when you visit for the first time - obscuring the list of forums / forum names.

Might be worth moving them to the bottom right of the screen so the forum names remain clearly visible. (y)

Cheers,
Shaun :D
 
Back
Top Bottom