Thread Links

Spotted any errors or found anything that doesn't work?
Post Reply
coco
Posts: 3061
Joined: Mon 05.30.2005 12:43 am
Native language: 日本語(Japanese)
Location: 東京都

Thread Links

Post by coco » Sat 03.08.2008 9:16 pm

I've found URL of each thread has changed from "viewthead" to "viewtopic", "forum_ id" to "f", "thread_id" is "t".
e.g.
old site:
/forum/viewthread.php?forum_id=13&thread_id=138
current site:
/forum/viewtopic.php?f=13&t=138

In (on?) the forums, there are many posts which show other threads or posts.
Is there any way to make URL change automatically?

User avatar
clay
Site Admin
Posts: 2811
Joined: Fri 01.21.2005 9:39 am
Location: Florida
Contact:

Re: Thread Links

Post by clay » Sat 03.08.2008 9:38 pm

You are very smart Coco!

Sure, I'll have Joe in Australia do that. He may not get to it this week, though.

Good idea.
TheJapanShop.com- Japanese language learning materials
Checkout our iPhone apps: TheJapanesePage.com/iPhone

User avatar
phreadom
Site Admin
Posts: 1762
Joined: Sun 01.29.2006 8:43 pm
Native language: U.S. English (米語)
Gender: Male
Location: Michigan, USA
Contact:

Re: Thread Links

Post by phreadom » Tue 06.17.2008 10:36 am

This this ever get fixed? (it doesn't look like it did)

It appears to just take people to the front page now. I wonder if we could write aliases for this stuff... hrm.

Probably the better route would be to write a script to go through the old forum database and correct the URL's automatically.
猿も木から落ちる

User avatar
ss
Posts: 1656
Joined: Fri 11.18.2005 10:07 am
Native language: English speaking family

Re: Thread Links

Post by ss » Wed 06.18.2008 12:12 am

Thanks Coco, Phreadom and Txkun, I’ve overlooked this important thread. Thanks Coco for the pointer. Now that I understand I can actually easily fix it myself, sorry for the trouble. I’ve tried fixing this link and it worked.

5 今中さん:私は 子供にスペイン語を 教えてあげます。
Imanaka : I teach the children Spanish.

In case of "the children" are not 今中さん's children,
今中: 私は子供にスペイン語を教えています。
is natural. Although してあげる is polite of してやる, it has not always good sounds.
You will see the reason onthis thread. Very nice explanations.
And also Harisenbon-san's post <<<<

coco
Posts: 3061
Joined: Mon 05.30.2005 12:43 am
Native language: 日本語(Japanese)
Location: 東京都

Re: Thread Links

Post by coco » Thu 06.19.2008 7:35 pm

In case of something, quoted from there.
Txkun wrote:
coco wrote:Txkun, I'm sorry for not understanding what you said, but do you know how to fix old links automatically without readers' operation?
It seems that we still need to know how to fix it, as you see in this thread.
If you could help us, that would be great. :) Thank you.


Hi cocosan!
I think so. This is why.
When a php page is called, on the server a small program executes the program containted in the page.
Since the old php page, "viewtopic.php" is not present anymore we have a problem. But if we create a simple php page called as the old one that just sends the parameters to the "viewtopic.php" page we can leave all the old links as they are. The php code will redirect for us. It's not pretty maybe but it should work! :lol:

User avatar
phreadom
Site Admin
Posts: 1762
Joined: Sun 01.29.2006 8:43 pm
Native language: U.S. English (米語)
Gender: Male
Location: Michigan, USA
Contact:

Re: Thread Links

Post by phreadom » Wed 10.08.2008 3:45 pm

This should be totally taken care of now. If you find any other links that aren't working, please let me know. :)
猿も木から落ちる

coco
Posts: 3061
Joined: Mon 05.30.2005 12:43 am
Native language: 日本語(Japanese)
Location: 東京都

Re: Thread Links

Post by coco » Thu 10.09.2008 12:42 am

phreadom wrote:This should be totally taken care of now. If you find any other links that aren't working, please let me know. :)
Phreadom さん、 どうもありがとうございました。 :)

User avatar
ss
Posts: 1656
Joined: Fri 11.18.2005 10:07 am
Native language: English speaking family

Re: Thread Links

Post by ss » Thu 10.09.2008 5:25 am

Thank you very much, Phreadom.

One thing, I'm not sure if it is my pc's problem. Can we make a link open in a new browser window?

User avatar
sushi4ever
Posts: 166
Joined: Thu 12.29.2005 4:24 pm
Native language: German
Location: Germany
Contact:

Re: Thread Links

Post by sushi4ever » Thu 10.09.2008 6:26 am

SS wrote: One thing, I'm not sure if it is my pc's problem. Can we make a link open in a new browser window?
I'm constantly doing that, you just have to right-click and choose "Open link in new tab/window". Which browser do you use?
my japanese learning blog: http://pimpmysushi.livejournal.com

User avatar
ss
Posts: 1656
Joined: Fri 11.18.2005 10:07 am
Native language: English speaking family

Re: Thread Links

Post by ss » Thu 10.09.2008 7:54 am

Both IE and Firefox.
Too rely on the auto setting of the board. :oops:
Thank you.

User avatar
phreadom
Site Admin
Posts: 1762
Joined: Sun 01.29.2006 8:43 pm
Native language: U.S. English (米語)
Gender: Male
Location: Michigan, USA
Contact:

Re: Thread Links

Post by phreadom » Thu 10.09.2008 11:05 am

In FireFox you can just middle click (click the wheel) to open a link in a new Window. :)
猿も木から落ちる

User avatar
sushi4ever
Posts: 166
Joined: Thu 12.29.2005 4:24 pm
Native language: German
Location: Germany
Contact:

Re: Thread Links

Post by sushi4ever » Thu 10.09.2008 1:22 pm

SS wrote:Thank you.
どういたしまして。 :wink:
phreadom wrote:In FireFox you can just middle click (click the wheel) to open a link in a new Window. :)
Uwah, I didn't know that, how convenient, ありがとうございます! :mrgreen:
my japanese learning blog: http://pimpmysushi.livejournal.com

User avatar
ss
Posts: 1656
Joined: Fri 11.18.2005 10:07 am
Native language: English speaking family

Re: Thread Links

Post by ss » Thu 10.09.2008 6:04 pm

Indeed convenient!! ^^;
Thank you.

User avatar
clay
Site Admin
Posts: 2811
Joined: Fri 01.21.2005 9:39 am
Location: Florida
Contact:

Re: Thread Links

Post by clay » Sun 10.12.2008 8:30 am

Thanks Phreadom. Neat trick (wheel button).
TheJapanShop.com- Japanese language learning materials
Checkout our iPhone apps: TheJapanesePage.com/iPhone

Post Reply