FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » Human-friendly/readable URLs (It's 2011)
Show: Today's Messages :: Unread Messages :: Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Message by dandv is ignored  [reveal message]  [reveal all messages by dandv]  [stop ignoring this user] Go to next message
Message by Dayo is ignored  [reveal message]  [reveal all messages by Dayo]  [stop ignoring this user] Go to previous messageGo to next message
Re: Human-friendly/readable URLs [message #165460 is a reply to message #165428] Sun, 19 June 2011 23:18 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
remove from buddy list
ignore all messages by this user
I have solved this issue by using the PATH_INFO style URLs and then just appending the thread title to the URL, just like Slashdot has sovled it (To decrease database lookups, contrary to how reddit has solved it)

So a URL to a thread on my forum looks like this:
http://www.ginnunga.org/forums/t/25347/installed-windows-7-on-an-ssd-/

You can of course go directly to the page like this:
http://www.ginnunga.org/forums/t/25347/

since the final part of the URL doesn't matter, but google etc does not know that, so it works just fine.


How to solve it coding wise is to adjust a few of the rewrites in users.inc.t to understand that the final part of the URL are useless and then just have a function grab the thread/msg title, replace harmful stuff, and then append it to the link with the returned result.


Re: Human-friendly/readable URLs [message #165461 is a reply to message #165460] Mon, 20 June 2011 07:09 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3775
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
Wow! Can you please post a patch or some instructions?
Re: Human-friendly/readable URLs [message #165625 is a reply to message #165461] Thu, 28 July 2011 07:49 Go to previous messageGo to next message
Atomicrun is currently offline  Atomicrun   Sweden
Messages: 54
Registered: November 2010
Location: Lund
Karma: 0
Member
add to buddy list
ignore all messages by this user
Cound the php scan the input URL, and
(A) pass it on if it is in the old format
(B) translate the URL if it is in a human-format.

You then add a button "paste URL of thread" or even "URL of post".
The additional advantage would be that the session-ID is stripped as well on these "external" links.

Re: Human-friendly/readable URLs [message #165636 is a reply to message #165625] Fri, 29 July 2011 04:33 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3775
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
Looks like Ernesto solved the problem. I would love to see his code, if he doesn't mind, obviously!
Re: Human-friendly/readable URLs [message #165665 is a reply to message #165636] Tue, 02 August 2011 00:38 Go to previous messageGo to next message
James Lewis is currently offline  James Lewis
Messages: 1
Registered: July 2011
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Thanks for the post, such a great help for me. Keep them coming mate!
Re: Human-friendly/readable URLs [message #165950 is a reply to message #165460] Thu, 01 September 2011 15:09 Go to previous message
Anik is currently offline  Anik
Messages: 36
Registered: August 2011
Location: India
Karma: 0
Member
add to buddy list
ignore all messages by this user
Ernesto wrote on Mon, 20 June 2011 08:48
I have solved this issue by using the PATH_INFO style URLs and then just appending the thread title to the URL, just like Slashdot has sovled it (To decrease database lookups, contrary to how reddit has solved it)

So a URL to a thread on my forum looks like this:
http://www.ginnunga.org/forums/t/25347/installed-windows-7-on-an-ssd-/

You can of course go directly to the page like this:
http://www.ginnunga.org/forums/t/25347/

since the final part of the URL doesn't matter, but google etc does not know that, so it works just fine.


How to solve it coding wise is to adjust a few of the rewrites in users.inc.t to understand that the final part of the URL are useless and then just have a function grab the thread/msg title, replace harmful stuff, and then append it to the link with the returned result.


Hi there,..will you tell us the procedure,,
Regards,..
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Enhanced smilies management
Next Topic: Auto Keywords
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat May 24 19:47:40 EDT 2025

Total time taken to generate the page: 0.05193 seconds