PDA

View Full Version : [Beta] Import data from v1 to v2


IGonza
06-10-2005, 03:21 PM
BACKUP YOUR DATABASES !!!
It's beta version.

Create a file called import_data.php :
Content visible to registered users only.Then you need to fill this information :
define('DB_HOST_OLD', 'HOST');
define('DB_NAME_OLD', 'your-old-db_name');
define('DB_USER_OLD', 'your-old-user_name');
define('DB_PASSWORD_OLD', 'your-old-password');

You have it in the config.php for v1.
Then upload this file to you server to the folder with your directory and go to HOST/import_data.php. (for example yoursite.com/import_data.php).

That's it!

Anonymous
06-10-2005, 03:47 PM
Hi

This works a treat for me....

....however....

When I import it, the TITLE_URL for each row is "NULL". This means that if I turn the url_rewrite option on, the page just defaults back to the main index page for each category I click on.

Can anyone suggest a quick and easy way to populate the TITLE_URL field from the TITLE field, or do I have to do them manually???!!


Thanks very much

James

dcb
06-13-2005, 02:41 AM
The script is updated to generate proper TITLE_URL values:
Content visible to registered users only.