smf: import data from one site to another

by prettyscripts on 2008-01-25 11:27:27 • Leave a comment »

smf

this is not a tutorial on how to do it, but rather a note on how to fix a the correct location of themes after data is imported. this is provided the sites are on the same server. for cases such as, using live or production data at another site for testing / development purposes.

note: for moving your forum, read this post from the official smf forum, which provides a better guide..

one thing i don’t like about smf is domain name and file path are hard-coded and stored in database. because live and test sites are at different locations or directories yet on the same server, the test site will continue to work but it is using the theme used by the live site. if you’re trying to make changes to the theme, you’ll be wondering why you don’t see the change no matter how many time the browser is refreshed.

to globally change the theme location

  • export data from production db and import into testing or development db
  • login as admin
  • go to admin > themes and layout settings > Reset Theme URLs and Directories
  • scroll down the page, click ‘attempts to reset all themes’

Tags: data, export, import, smf

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
note: all comments are moderated. do not spam and do not advertise. only comments relevant to the post will be published.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)