xoops forums

kaotik

Just can't stay away
Posted on: 2010/4/19 16:06
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#1

Xoops News to Mywords - Migration script

Hi
I created a migration script that will pass all your news articles and categories into myWords.

Download

Usage:
- Make sure you don't have any posts or categories created in mywords.
- Upload file updater.php to xoopssite/modules/news
- type in webbrowser:
http://xoopssite/modules/news/updater.php

and that should do it!
This is a very simple script so it doesn't have any configuration options.

Should I do some more scripts for other modules?

bjuti

Just can't stay away
Posted on: 2010/4/19 17:31
bjuti
bjuti (Show more)
Just can't stay away
Posts: 871
Since: 2009/1/7 2
#2

Re: Xoops News to Mywords - Migration script

Great! Try to make script for smartsection/publisher and articles, and why not AMS.

For future sake: What about reversed converting, from eg. MyWords to News :)

One script to convert 'em all!

(with possible gui) :)

option

Just popping in
Posted on: 2010/4/29 6:52
option
option (Show more)
Just popping in
Posts: 50
Since: 2006/5/24
#3

Re: Xoops News to Mywords - Migration script

the script if it works, but does not convert the links in "ñ" -> "n" or "á" -> "a", "ó" -> "o", etc. .... (and links becomes uppercase not lowercase) (if not given those parameters generated links date and name, generate link errors)

kaotik

Just can't stay away
Posted on: 2010/4/29 8:45
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#4

Re: Xoops News to Mywords - Migration script

thanks for the report. I'll look into this.

kaotik

Just can't stay away
Posted on: 2010/4/29 9:16
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#5

Re: Xoops News to Mywords - Migration script

I've double checked my test server. My script keeps all formating intact. It does not change any of the original content.

This might have something to do with the mysql encoding.
What collation are you using for mysql tables?

It could also have to do with the page encoding of your xoops site.

option

Just popping in
Posted on: 2010/4/30 5:00
option
option (Show more)
Just popping in
Posts: 50
Since: 2006/5/24
#6

Re: Xoops News to Mywords - Migration script

mysql: utf8_general_ci
site: UTF-8
xoops: 2.44

example:
title news: Soñar al Día --> title mywords: Soñar al Día
generated to create url mywords:/01/01/2010/sonar-al-dia/
url generated by migration script -> /01/01/2010/Soñar-al-Día/

kaotik

Just can't stay away
Posted on: 2010/4/30 12:18
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#7

Re: Xoops News to Mywords - Migration script

ahhh. I see now what you mean. I'll correct the script

kaotik

Just can't stay away
Posted on: 2010/4/30 20:32
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#8

Re: Xoops News to Mywords - Migration script

MyWords already comes with a migration script for news. it's in the admin folder.

option

Just popping in
Posted on: 2010/5/1 1:57
option
option (Show more)
Just popping in
Posts: 50
Since: 2006/5/24
#9

Re: Xoops News to Mywords - Migration script

yes, but not works (blank page with errors)...

cerbero

Not too shy to talk
Posted on: 2010/5/11 16:48
cerbero
cerbero (Show more)
Not too shy to talk
Posts: 191
Since: 2003/9/11
#10

Re: Xoops News to Mywords - Migration script

Quote:

kaotik wrote:

Should I do some more scripts for other modules?



Yes please, could you made a migration script from D3Forum to CBB??

Thanks in advance