News:

The simplest way to help GStwin is to use this Amazon link to shop

Main Menu

broken gstwin links - suggestion/workaround **FIXED**!!!

Started by WREX, May 24, 2006, 08:29:00 AM

Previous topic - Next topic

Cannon Fodder

#20
The easiest way I can think of is to run an update query on the database table that contains the message text.

Something like below would get you the number of records needing to be up dated, I'm assuming it is running on some version of SQL either MySQL or MSSQL.

select * from [sometable] where [somefield] like 'http://www.gstwins.com/forum/viewtopic.php?%';

skoebl

Quote from: Kerry on May 25, 2006, 05:01:10 PM
Good going!  That seems to work ... for 14 of my 22 pages worth of "viewtopic by Kerry" search results.

But ... :icon_rolleyes: wouldn't you know it, I had to get "fancy" at some point in the past and link directly to individual posts?   :mad:

I don't suppose there's any help for old links like
    http://www.gstwins.com/forum/viewtopic.php?p=75355#75355[/list]
    when they resolve to a new-style link like
      http://gstwins.com/gsboard/index.php?topic=9151.msg75355#msg75355[/list]
      ?

      Since the topic number is not included in the old link, it looks like I still have some work to do....  :cry:



      http://gstwins.com/gsboard/index.php?topic=9151.0

      Is that what you were looking for with that link Kerry?
      2006 SV650 K6....Finally back up and running!!! Now let the mods flow!

      Kerry

      Not quite.  It's the right topic, but the old link used to go right to my post within the topic.  (The new-style link that I supplied does the same thing.)

      As far as I can tell, there's no way in the new system to link directly to a specific post without including the  topic number in the URL.

      Can anyone confirm this?
      Yellow 1999 GS500E
      Kerry's Suzuki GS500 Page

      skoebl

      Quote from: Kerry on May 26, 2006, 11:45:16 AM
      Not quite.  It's the right topic, but the old link used to go right to my post within the topic.  (The new-style link that I supplied does the same thing.)

      As far as I can tell, there's no way in the new system to link directly to a specific post without including the  topic number in the URL.

      Can anyone confirm this?

      Ah, I understand now.
      2006 SV650 K6....Finally back up and running!!! Now let the mods flow!

      john

      Yea.  It isn't looking good.  But that one fix certainly helps!

      Pray harder!
      There is more to this site than a message board.  Check out http://www.gstwin.com

      Fear the banana hammer!

      SMF spam blocked by CleanTalk