ElkArte Community

Elk Development => Feature Discussion => Topic started by: inter on February 02, 2014, 07:48:11 am

Title: nice url
Post by: inter on February 02, 2014, 07:48:11 am
example:
http://www.elkarte.net/community/index.php?action=post;board=1.0
to:
http://www.elkarte.net/community/post/board/1.0

it's already done? or plans for the future?
I apologize if it was already discussed
Title: Re: nice url
Post by: TE on February 02, 2014, 08:31:35 am
IIRC not and I personally don't like it that much to be part of the core. We'd have to ship Elk with a bunch of rewrite rules for the various webservers (Apache, IIS, NGINX, Lighttpd...)
Title: Re: nice url
Post by: emanuele on February 02, 2014, 10:20:26 am
Not a fan either, though many people like them.
A while ago I ported SimpleSEF:
https://github.com/emanuele45/SimpleSEF
it may be interesting port PrettyURL too, not sure how difficult/easy would be, I never checked the code...
Title: Re: nice url
Post by: Spuds on February 02, 2014, 10:34:30 am
And I'm going to port titled links as well, well at least thats on my list  :-[
Title: Re: nice url
Post by: Antechinus on March 17, 2014, 01:32:25 am
This one? http://custom.simplemachines.org/mods/index.php?mod=835

I think it'd be a handy (default) feature, since that sort of url is a lot more user-friendly than raw gobbledegook.

How will it work with Elk's custom vid embedding? If that's done the same way as the old jQuery snippet from the CEMB forum, which relies on posting the raw vid url with no BBC url tags, it'll conflict with the title links mod. You'd need some way of distinguishing between normal url's that you wanted to grab a title for, and vids that you just wanted to embed.
Title: Re: nice url
Post by: Spuds on March 17, 2014, 09:52:48 am
Its here: https://bitbucket.org/spuds_/elk_descriptive_links

I added a basic bypass for the video links, kind of cheesy for now since ATM there is not a way to query the video embeder to have it return a list of what sites it works on (in the event that someone decides to add more etc) ... 
Title: Re: nice url
Post by: Antechinus on March 17, 2014, 04:01:02 pm
Ok cool. Someone will bork it later by adding more sites, but you can always call that their problem.
Title: Re: nice url
Post by: emanuele on March 17, 2014, 04:37:54 pm
/me smells new feature for 1.1. :P
Title: Re: nice url
Post by: Antechinus on March 29, 2014, 08:21:58 pm
Is good idea. I justed pasted the guest view link to my "Be nice to Sunday school teachers" post into Pidgin. It looks like this:

Code: [Select]
http://www.elkarte.net/community/index.php?PHPSESSID=op8ndfn6n0j87lfd64vu8tabe2&topic=1295.msg8703#new

Umm, yeah. That's really helpful. :P