MyBB Community Forums

Full Version: How to make url nicer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I would like to change my URL in posts.

I need make long links (for example:


http://www.example.com/abc/xjxjxjasjasjdajsdjasdjajsdjasdjjasd/asdnaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaassssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssdhahsdhashdahsdhajsdasdhjakshdjashdh/ididiidisdi/index.php

convert to something like that

http://www.example.com/abc/....../index.php]] 

Long links look really ugly, thanks in advance
Have used the code box from this site HERE  in the footer template on the previous software version and sure it will also work with 1.8,  which shows a  code box like the one on their site.

But you can use the code box on the site to give you the shorter code if you preferred (code provided at bottom of page), of which i added to the footer template so members could use. 

You just need to decide where and how you want to use the TinyURL code to make the links shorter, you can try the code box as a experiment on their site to see how it works.

For example your top link when reduced will look like this...

http://tinyurl.com/nt958lr
I dont need link shortener (goo.gl for example). I just need to show only a part of a hyperlink in my forum posts... long links are ugly and it should make them visualy nicer - just show "......" in links which are long
Sorry only a suggestion you may need a plugin though.
@ Miss Cat - I think you do not need to worry about it. As for as google is concerned, it automatically adjusts the urls when required. And if you want to sharing your links over media, even in this case, you do not need to worry as people are going to click the link. They are not going to type it.
I wonder what makes your urls extra long?
I hate links over 2 lines Sad wordpress has a plugin for this, so it must be possible but I dont know where to start... I think the mod will be required but I need more info
Google SEO plugin makes what you are looking for
http://mods.mybb.com/view/google-seo

Change compatibility from 16* to 18*
I use Google SEO, but it is only for internal links... not for external links Sad
I'd try using a regex. You could hook to the parser.