Archive internal links

Post here for any improvements, ideas, thoughts you might have.
Gareth
Posts: 980
Joined: Mon Sep 28, 2015 2:44 pm
Location: Berkshire
Contact:

Archive internal links

Postby Gareth » Mon Jul 17, 2017 4:56 pm

Could a script be run to fix up the internal links of the archived forum?
there is only the road, nothing but the road ...

User avatar
akirk
Posts: 1659
Joined: Sun Sep 27, 2015 6:58 pm
Location: Bristol

Re: Archive internal links

Postby akirk » Tue Jul 18, 2017 10:03 pm

I suspect so, can you give me any examples?
Alasdair

User avatar
RiK
Posts: 292
Joined: Sat Mar 18, 2017 10:32 pm
Location: Gloucestershire..
Contact:

Re: Archive internal links

Postby RiK » Tue Jul 18, 2017 11:47 pm

A simple SQL search & replace on the posts field in the database should do the trick.

Just replace the first part of each URL

i.e. search for "www.advanced-driving.co.uk/forum/"
and replace it with: "archive.advanceddrivinghub.com/"
Richard Olpin: Bristol IAM: Training Officer, IAM: Masters (Dist), IMI National Observer, LOA. Gloucestershire Constabulary SC6240.

Gareth
Posts: 980
Joined: Mon Sep 28, 2015 2:44 pm
Location: Berkshire
Contact:

Re: Archive internal links

Postby Gareth » Wed Jul 19, 2017 7:39 am

I logged in to the Archive and searched for viewtopic - the first one was http://archive.advanceddrivinghub.com/v ... 36#p109136 ... although it has the appearance of a relative link, when I viewed the source it included the old sitename in the URL:

< a class="postlink-local" href="https://www.advanced-driving.co.uk/forum/viewtopic.php?f=1&amp;t=5381">viewtopic.php?f=1&amp;t=5381< / a >

I don't know how much of an internal link is held in the database and how much is auto-generated when threads are displayed.
there is only the road, nothing but the road ...

User avatar
akirk
Posts: 1659
Joined: Sun Sep 27, 2015 6:58 pm
Location: Bristol

Re: Archive internal links

Postby akirk » Thu Jul 20, 2017 1:06 pm

good question... will have a play, but might be at the weekend now...
Alasdair

User avatar
Mr Cholmondeley-Warner
Posts: 1118
Joined: Sun Sep 27, 2015 7:01 pm
Location: Swindon

Re: Archive internal links

Postby Mr Cholmondeley-Warner » Fri Jul 21, 2017 6:29 pm

The topic numbers might be OK, but the forum numbers will probably need replacing.
Nick


Return to “This Website”

Who is online

Users browsing this forum: No registered users and 8 guests