1
kaotik
Xoops News to Mywords - Migration script
  • 2010/4/19 16:06

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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?

2
bjuti
Re: Xoops News to Mywords - Migration script
  • 2010/4/19 17:31

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


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) :)

3
option
Re: Xoops News to Mywords - Migration script
  • 2010/4/29 6:52

  • option

  • Just popping in

  • Posts: 50

  • Since: 2006/5/24


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)

4
kaotik
Re: Xoops News to Mywords - Migration script
  • 2010/4/29 8:45

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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

5
kaotik
Re: Xoops News to Mywords - Migration script
  • 2010/4/29 9:16

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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.

6
option
Re: Xoops News to Mywords - Migration script
  • 2010/4/30 5:00

  • option

  • Just popping in

  • Posts: 50

  • Since: 2006/5/24


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/

7
kaotik
Re: Xoops News to Mywords - Migration script
  • 2010/4/30 12:18

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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

8
kaotik
Re: Xoops News to Mywords - Migration script
  • 2010/4/30 20:32

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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

9
option
Re: Xoops News to Mywords - Migration script
  • 2010/5/1 1:57

  • option

  • Just popping in

  • Posts: 50

  • Since: 2006/5/24


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

10
cerbero
Re: Xoops News to Mywords - Migration script
  • 2010/5/11 16:48

  • cerbero

  • Not too shy to talk

  • Posts: 191

  • Since: 2003/9/11


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

Login

Username:
Password:

Lost Password? Register now!

Who's Online

59 user(s) are online (37 user(s) are browsing Support Forums)


Members: 0


Guests: 59


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits