Pete isn't the only one who gets to remove features from SMF :P
I'm currently reworking the board jump box code.
Here are two things that I've been starting to rewrite, and then figured I'd ask for opinions before committing them.
1/ I'm rewriting URLs (through Pretty URLs) before showing the board list. This allows users to jump directly to said board using its official URL, rather than see a "?board=1.0" in the URL.
Pros: well, concealing board= URLs is always nice.
Cons: the XML file you request through Ajax is a bit bigger, obviously. (Only if Pretty URLs are enabled. Otherwise it's the same.)
An alternative way of doing it, would be to have Wedge redirect to the proper board as soon as it gets an URL with '?board=' in it. Actually I thought it already did that, but apparently not... Probably due to my internal rewrite where it no longer relies on htaccess. Of course it requires an extra roundtrip to the server...
Opinions plz?
2/ I want to get rid of that stupid 'OK' button. The only (only!) point of this button is to allow you to jump directly to the current board's homepage. Thing is -- topic pages already have a link to said board, in the linktree. There's a copy at the bottom, right above the jump box... Once you click the select box, simply selecting another board will load it directly. The Go button can... go. A simple rewrite would be to have the jump box say: "Jump to: [Select board]". Then you click the "Select board" and it opens up a list of boards. The default selected board will be changed to the current one. Problem fixed, and better usability without that button IMHO.
Again: opinions plzkthx?
Thanks :)
I'm currently reworking the board jump box code.
Here are two things that I've been starting to rewrite, and then figured I'd ask for opinions before committing them.
1/ I'm rewriting URLs (through Pretty URLs) before showing the board list. This allows users to jump directly to said board using its official URL, rather than see a "?board=1.0" in the URL.
Pros: well, concealing board= URLs is always nice.
Cons: the XML file you request through Ajax is a bit bigger, obviously. (Only if Pretty URLs are enabled. Otherwise it's the same.)
An alternative way of doing it, would be to have Wedge redirect to the proper board as soon as it gets an URL with '?board=' in it. Actually I thought it already did that, but apparently not... Probably due to my internal rewrite where it no longer relies on htaccess. Of course it requires an extra roundtrip to the server...
Opinions plz?
2/ I want to get rid of that stupid 'OK' button. The only (only!) point of this button is to allow you to jump directly to the current board's homepage. Thing is -- topic pages already have a link to said board, in the linktree. There's a copy at the bottom, right above the jump box... Once you click the select box, simply selecting another board will load it directly. The Go button can... go. A simple rewrite would be to have the jump box say: "Jump to: [Select board]". Then you click the "Select board" and it opens up a list of boards. The default selected board will be changed to the current one. Problem fixed, and better usability without that button IMHO.
Again: opinions plzkthx?
Thanks :)