24 May '13 - 06:16 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: 1 [2]  All
  Reply  |  Print  
Author Topic: Focus / scroll issue on the formum / url rewriting  (Read 14097 times)
jeroenp
Posts: 93


« Reply #20 on: 31 Jul '07 - 10:03 »
Reply with quoteQuote

Actually it *is* URL rewriting.
Or more precise: the mismatch of the URL in the address bar and the content you see.

Since framesets *can* work without URL rewriting quite easiliy (that's why the original URL http://www.un4seen.com/forum/?topic=6534.0 works in the first place!), the site should turn off URL rewriting.

As the original URL work, the infrastructure is there, so it should not be that hard to keep that one in the address bar.

In fact, it is this little piece of .js code that breaks the address http://www.un4seen.com/un4seen.js
From the .js file, this is the line that does it:
if (window==top) top.location.replace("/");

It rewrites the url, and forcibly replaces it with http://www.un4seen.com/
thereby breaking all favourite manager tools around (not only the google bookmark manager).
Logged
Dreamy
Posts: 55


« Reply #21 on: 31 Jul '07 - 20:26 »
Reply with quoteQuote

Emm http://www.un4seen.com/forum works fine anyway...
...in my opera fast access...
I guess Ian or Haaf had some reasons to create it like this.
(Actually, the reason is something that I haven't really catched.)
Logged
Tsorovan
Posts: 1244


« Reply #22 on: 31 Jul '07 - 21:11 »
Reply with quoteQuote

dreamwalker: You don't understand... you can't bookmark particular threads without creating bookmarks manually (copy/paste URLs around).
Logged
Dreamy
Posts: 55


« Reply #23 on: 31 Jul '07 - 21:24 »
Reply with quoteQuote

Ah, this way, yeah, I understand. I use Ctrl+Alt+C (Copy link adress).
Sure it's quite less comfortable... Drag and drop works anyway. Cheesy
Logged
jeroenp
Posts: 93


« Reply #24 on: 1 Aug '07 - 23:00 »
Reply with quoteQuote

Ian got back to me by email.

It appears that removing this rewrite will effectively get rid of the main web-site menu around the forum.
That is the downside, that is: if you don't have other means of accessing the main site yourself.
The upsides from the forum point of view are:
- full url in the address bar
- topic title in the title bar
- way more reading space

I have created a small .js file that has the rewriting removed.
When you ise IE, it is very simple to replace when you use the rules editor of Fiddler2 (http://www.fiddler2.com).
You get into the rules editor by pressing Ctrl+R inside Fiddler2.

Then add this rule extension to the OnBeforeRequest method :

if (oSession.url=="www.un4seen.com/un4seen.js")
{ oSession.url = "www.xs4all.nl/~jp/www.un4seen.com/un4seen-new.js "; }

Didn't want to keep that one for myself, so if you need it, here you have it  Wink

So now I can finally enjoy all the bookmarks inside my external bookmark repository Cool

--jeroen
Logged
Dreamy
Posts: 55


« Reply #25 on: 3 Aug '07 - 10:15 »
Reply with quoteQuote

jeroen, pretty good solution, my respect. Wink
Logged
Ian @ un4seen
Administrator
Posts: 15270


« Reply #26 on: 26 Aug '07 - 19:01 »
Reply with quoteQuote

It is now possible to open the forum in a new window/tab (eg. right-click the link) without the frames opening up around it.
Logged
jeroenp
Posts: 93


« Reply #27 on: 28 Aug '07 - 11:22 »
Reply with quoteQuote

I just noticed  Grin

Muchos gracias!
Cheesy
Logged
Pages: 1 [2]  All
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines