Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 2000
Posts: 22
Member
Member
Offline
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 ]

Sponsored Links
Joined: Jan 2000
Posts: 114
Member
Member
Offline
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.

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.
Joined: Jan 2000
Posts: 114
Member
Member
Offline
Joined: Jan 2000
Posts: 114
Because it's that many extra characters. wink 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:
Code
code:
The UBB then thinks it got a recognizable query string and proceeds along normally. cool

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Bah, shortcuts... wink


UBB.classic: Love it or hate it, it was mine.
Sponsored Links
Joined: Nov 2000
Posts: 915
Developer
Developer
Offline
Joined: Nov 2000
Posts: 915
Make a script that u can link to, such as: http://www.cheftalkcafe.com/cgi-local/bblink.cgi?f=7&t=000109
f = forum
t = topic

You can plug in the stuff and have the cgi do all the rest and forward the user given the info supplied.

Further more... see below:
http://www.nfscheats.com/users/DPK/scripts/cgi_perl/bblink.txt

Rename it to .cgi and also note that you need cgi-lib.pl to run this. I provide no support for this script and am not to be responsible for any damage. Modify the general info to get it to run.

Joined: Mar 2000
Posts: 4
Junior Member
Junior Member
Offline
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:

Code
code:
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 ]


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)