Advertisement:

Author Topic: How to convert internal YABB links to internal SMF links.  (Read 12500 times)

Offline zeniitti

  • Semi-Newbie
  • *
  • Posts: 11
How to convert internal YABB links to internal SMF links.
« on: November 13, 2012, 01:44:10 AM »
We have successfully converted YABB 2.3 to SMF 2.0.2 via SMF 1.1.14. We have successfully converted messages, PMs etc but we have quite a few internal links in forums posts that were not converted. Manually it means 10-12 hours of work.

Is there any way to convert http://old-domain/cgi-bin/yabb/YaBB.cgi?num=1170834148 [nofollow] --> http://new-domain/index.php?topic=181.0 [nofollow] ?

Thanks in advance!

Offline zeniitti

  • Semi-Newbie
  • *
  • Posts: 11
Re: How to convert internal YABB links to internal SMF links.
« Reply #1 on: November 13, 2012, 03:40:41 AM »
This is the old site although it's under maintenance mode:
http://www.kyronlahdenporakaivo.fi/cgi-bin/yabb/YaBB.cgi?num=1098259724 [nofollow]

Same thread from new site:
http://www.maalampofoorumi.fi/index.php?topic=87.0 [nofollow]

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: How to convert internal YABB links to internal SMF links.
« Reply #2 on: November 13, 2012, 06:04:17 AM »
You can place a redirect on the old site.
Have a look at this topic: http://www.simplemachines.org/community/index.php?topic=82402.0


Take a peek at what I'm doing! ;D



Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Offline zeniitti

  • Semi-Newbie
  • *
  • Posts: 11
Re: How to convert internal YABB links to internal SMF links.
« Reply #3 on: November 13, 2012, 06:23:15 AM »
We will pull the plug from the old site (different host) near future and maintain only the new SMF site / host. Redirecting users from old site isn't very long term solution.

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: How to convert internal YABB links to internal SMF links.
« Reply #4 on: November 13, 2012, 12:50:46 PM »
Are you dropping the domain name too?

If so I think your only hope is to write a script to fix it for you...you can base it on the suggestions present in the topic I linked before: the summary is you have to repeat the conversion keeping the temporary directory created by the converter itself and then use it to convert all the links posted...


Take a peek at what I'm doing! ;D



Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Offline zeniitti

  • Semi-Newbie
  • *
  • Posts: 11
Re: How to convert internal YABB links to internal SMF links.
« Reply #5 on: November 14, 2012, 08:35:01 AM »
Yes, we are changing domain as well. We just might to do the conversion on test server again so we can have corresponding topic numbers for yabb and smf. Do you think that topics will be converted on same order? I mean that will topics get same numbers as previously? Do you understand what i mean?

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: How to convert internal YABB links to internal SMF links.
« Reply #6 on: November 14, 2012, 10:46:10 AM »
I'd say yes. It should keep the same numbering for the converted topics and messages.

Anyway you can try it on a backup and see what happens. ;)


Take a peek at what I'm doing! ;D



Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.