Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
2 registered members (Zarzal, isaac), 84 guests, and 223 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 370
Joined: October 2006
Show All Member Profiles 
Top Posters(30 Days)
isaac 22
Gizmo 17
TheBrit 14
Zarzal 12
SteveS 8
Ruben 4
jorb 4
Latest Photos
Test
Testing to drag photos
Comfortable Cats
Test
BSA photos
Previous Thread
Next Thread
Print Thread
Conversion of 5.x static links to 6.x cgi links? #86602
08/07/01 09:22 AM
08/07/01 09:22 AM
A
Anonymous OP
Unregistered

Is there a default way people are handling the conversion of old flat .html links to the new .cgi links? I am referring to links within messages to other threads.

Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: Conversion of 5.x static links to 6.x cgi links? #86603
08/07/01 12:55 PM
08/07/01 12:55 PM
A
Anonymous OP
Unregistered

The upgrade procedure to go from UBB5 to UBB6 is supposed to take care of conversion. The HTML files are no longer used but the cgi thread files remain about the same. As far as I know, links within the text are not converted, but if you leave the old HTML directories in place the direct links to them should still be valid.

Re: Conversion of 5.x static links to 6.x cgi links? #86604
08/07/01 02:57 PM
08/07/01 02:57 PM
A
Anonymous OP
Unregistered


Re: Conversion of 5.x static links to 6.x cgi links? #86605
08/07/01 04:38 PM
08/07/01 04:38 PM
A
Anonymous OP
Unregistered

Hmmm. I guess I could do that, but I was hoping to actually fix the problem directly, rather than applying a long-term bandaid.

However, if that's the proper substitution, I suppose I can just slap something together with awks...I'll just have to be very careful.

I was just wondering if someone hadn't done this already.

Re: Conversion of 5.x static links to 6.x cgi links? #86606
08/07/01 11:49 PM
08/07/01 11:49 PM
A
Anonymous OP
Unregistered

That's the only solution I came up with.

You could easily modify it to point to a page saying "we've moved - update your bookmarks" and provide the correct address, instead of doing a straight redirect..

Graeme

Re: Conversion of 5.x static links to 6.x cgi links? #86607
08/08/01 02:57 AM
08/08/01 02:57 AM
A
Anonymous OP
Unregistered

Graeme: That's the only solution I came up with.

Well, clearly, you can just edit the cgis and redo the links...I just figured this would be such a common problem that someone would have a little script pre-written.

By the way, I'm not talking about bookmarks and stuff, I'm talking about all the messages on the forum itself that have links to other threads in them.

Re: Conversion of 5.x static links to 6.x cgi links? #86608
08/08/01 05:25 AM
08/08/01 05:25 AM
A
Anonymous OP
Unregistered

I agree that translating the links in the .cgi thread files is a better permanent solution.

I don't know awk, but it probably wouldn't be hard to write a Perl script to do that.

The redirection might be worthwhile doing as well, to deal with bookmarks to old threads.

Re: Conversion of 5.x static links to 6.x cgi links? #86609
08/08/01 08:28 PM
08/08/01 08:28 PM
A
Anonymous OP
Unregistered

Oh, I was thinking bookmarks.. <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />

I doubt it be rocket science to write a 20-30 line script to go through all the thread .cgi files and do a mass search and replace.

You might want to see if there's anyone at ubbdev.com who has such a tool. <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />

Graeme


Shout Box
Today's Birthdays
No Birthdays
Recent Topics
Calendar Function
by TheBrit. 12/17/18 10:05 PM
Speaking of Http to https, complaints from user
by PianoWorld. 12/16/18 03:40 PM
update multilanguage site problem
by Zarzal. 12/15/18 04:20 PM
Char coding utf-8 and older forums
by Zarzal. 12/15/18 03:59 PM
table issue
by TheBrit. 12/13/18 06:05 PM
Forum Statistics
Forums36
Topics35,182
Posts191,701
Members12,122
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2