MyBB Community Forums

Full Version: stop URLs from shortening?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
If a long link is posted, it automatically gets shortened and displayed such as "http://www.blah.com/...end" and only when you hover over the link you can see the full URL in the statusbar of the browser.  I want it to display the full link. How do I do that?

Example:
http://sports.yahoo.com/news/the-lakers-...31127.html

Do you see how the above URL is shortened? I don't want that
anyone?
guess i'll assume its just not possible
https://github.com/mybb/mybb/blob/featur....php#L1056 is the condition that handles that.

inc/class_parser.php L1056
if(my_strlen($name) > 55)
{
     $name = my_substr($name , 0, 40).'...'.my_substr($name , -10);
     // says "If the URL is longer than 55 characters, take the first 40, add ..., and then take the last 10 characters.
}
(comment added, not in source)
If you remove that if block, you'll remove the functionality.
great thanks

at line 1053:

there is a check for "this->options['shorten_urls']

https://github.com/mybb/mybb/blob/featur....php#L1053

is there an option for that somewhere without editing the code?
I'll take a look, but I *think* it will require a code modification either way. I would just comment out the block so that you can restore it if you want to.
ok thanks, i'll just comment it out