#45088
02/07/2001 11:12 AM
|
Joined: Sep 2000
Posts: 22
Member
|
Member
Joined: Sep 2000
Posts: 22 |
Seriously, the thread URL's are way to long.... not good for those who use text based newsletters to promote discussions (which usually truncate after 77 characters or so when the line wraps on most e-mail systems) For example, what used to take only 55 characters: http://www.cheftalkcafe.com/ubb/Forum7/HTML/000109.html Now takes 86 to go to the same location: http://www.cheftalkcafe.com/cgi-local/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=7&t=000109 This just concerns me. I know HTML coding would solve that, but that's not really the point here (as you have text vs. HTML e-mail signup). The point is that a shorter URL would probably be a better user interface (rather than having to set up redirects and add a whole lot of work). I know everything is more dynamic now, but it just seems like some of the calls and queries could be a lot shorter. Does anyone else have this concern or think a mod would solve such a thing? [ February 07, 2001: Message edited by: Tannerman ]
|
|
|
#45089
02/07/2001 6:49 PM
|
Joined: Jan 2000
Posts: 114
Member
|
Member
Joined: Jan 2000
Posts: 114 |
Well, I've got a hack working on a test board (1 user, private site, closed registration) that shortens the URL for the topics by 18 characters. The URL for this thread would be: https://www.ubbdev.com/ubbcgi/ultimatebb.cgi?8.001023 If you wanted the second page: https://www.ubbdev.com/ubbcgi/ultimatebb.cgi?8.001023.2 It seems to be working fine, it just requires a lot of search and replace. I'll probably release it when UBB6 comes out of beta, and I'll write up a script that does all the replacements automatically, so you won't have to sift through all the code.
|
|
|
#45090
02/07/2001 8:02 PM
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
Hm.
Leshrac, why use ?string rather than ?X=string? That way you could catch X and manually change ubb=get_topic internally without needing to check the query string yourself...
UBB.classic: Love it or hate it, it was mine.
|
|
|
#45091
02/07/2001 11:14 PM
|
Joined: Jan 2000
Posts: 114
Member
|
Member
Joined: Jan 2000
Posts: 114 |
Because it's that many extra characters. What I do now is simply translate the query string via a regexp. I put this little bit of code in ultimatebb.cgi right after $ubb is first assigned: The UBB then thinks it got a recognizable query string and proceeds along normally.
|
|
|
#45092
02/08/2001 2:46 AM
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
Bah, shortcuts...
UBB.classic: Love it or hate it, it was mine.
|
|
|
#45094
02/11/2001 7:50 PM
|
Joined: Mar 2000
Posts: 4
Junior Member
|
Junior Member
Joined: Mar 2000
Posts: 4 |
I tried friggin' with mod_rewrite and came up with this, its probably pretty cruddy, so, someone can fix it up if they'd like: 02/12/01 :: a couple minor fixes/additions, take it for what its worth...[note, you can add "[R]" in the fourth tab'ed column so that it'll redirect to the long URL instead of showing the short URL] chuck that into a .htaccess file in your /ubb/ dir and your urls go from: http://www.whatever.com/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=6&t=000086&p=2 to http://www.whatever.com/ubb/6/000086/2 39 chars shorter... (in this case) [ February 12, 2001: Message edited by: MC_Mouse ]
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|