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

Home » FUDforum » How To » Clicking 'Back' after viewing a message
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Clicking 'Back' after viewing a message [message #23000] Thu, 24 February 2005 05:28 Go to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
After viewing a message in a forum (or search results), is there a way to keep from having to click 'Back' twice to get back to the message list?

Best regards.

Frank

Re: Clicking 'Back' after viewing a message [message #23003 is a reply to message #23000] Thu, 24 February 2005 13:50 Go to previous messageGo to next message
JamesS is currently offline  JamesS   United States
Messages: 275
Registered: July 2002
Location: Atlanta, GA
Karma: 0
Senior Member
That is a browser thing. What is happening is your browser is seeing the anchor reference as a second click so to speak. So, when you go directly to a message from a thread listing you are going to have to press back twice to get back to the thread listing. It isn't a fault of FUDforum.
Re: Clicking 'Back' after viewing a message [message #23005 is a reply to message #23003] Thu, 24 February 2005 16:21 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Hi,

This looks like a FUDforum thing to me. For example:

The user click on a URL like this
http://www.mysite.com/forum/index.php/m/109416/42504/
FUDforum accepts the link and redirects it to...
http://www.mysite.com/forum/index.php/m/109416/42504/#msg_109416

So, my question: why doesn't it just use fully expanded links within the templates? If it does, this problem will disappear completely!

Best regards.

Frank
Re: Clicking 'Back' after viewing a message [message #23007 is a reply to message #23005] Thu, 24 February 2005 16:55 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The adding of #msg_id is done by JavaScript, it does not cause an additional request to be made if that's what are thinking. Because no additional request is made the browser should not be adding another "back" level, although some browser do it non-the-less.

As to why not use the full links, there are several reasons:
1) Caused issues for some search engines.
2) Makes URLs longer, which adds up given how many of those links appear on every page.


FUDforum Core Developer
Re: Clicking 'Back' after viewing a message [message #23022 is a reply to message #23007] Fri, 25 February 2005 16:08 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
What JavaScript function in lib.js is used for this?

Best regards.

Frank
Re: Clicking 'Back' after viewing a message [message #23024 is a reply to message #23022] Fri, 25 February 2005 16:31 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
fud_msg_focus() function inside lib.js is the one responsible for message focus.

FUDforum Core Developer
Re: Clicking 'Back' after viewing a message [message #23028 is a reply to message #23024] Sat, 26 February 2005 19:17 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Hi,

It seems that there is no JavaScript solution for this irritating problem (see http://fudforum.org/forum/index.php?rid=0&t=msg&th=3631).

Quote:

1) Caused issues for some search engines.

Are there still search engines that cannot handle this? I know that google doesn't have a problem indexing them.

Quote:

2) Makes URLs longer, which adds up given how many of those links appear on every page.


There are on average 40 of these links per forum index. So the overhead is:

40 links x 11 bytes - 93 bytes (overhead of the JavaScript fragment) = 347 bytes.

If we could remove the "msg_" part, it would be less. I'll take this above a crappy interface any day!

Best regards.

Frank
Re: Clicking 'Back' after viewing a message [message #23030 is a reply to message #23028] Sun, 27 February 2005 00:16 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Frank, in some instances the id of the message you are being redirected to is not known. Once such a case is when there is a link to 1st unread message. In other cases I'll review the situation and whenever possible add #tag.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Changing of quotation style
Next Topic: Suggestions on access structure
Goto Forum:
  

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

Current Time: Mon Nov 25 21:10:49 GMT 2024

Total time taken to generate the page: 0.02885 seconds