Jump to the post that solved this thread.
Not Solved [How To?] stop URLs from shortening?
#1
Not Solved
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
Reply
#2
Not Solved
anyone?
Reply
#3
Not Solved
guess i'll assume its just not possible
Reply
#4
Not Solved
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.
PGP Key (Fingerprint: 23B6 F4C0 FE2D 45AA 61A0 1E86 DB87 09DC DD87 6E40)
Reply
#5
Not Solved
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?
Reply
#6
Not Solved
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.
PGP Key (Fingerprint: 23B6 F4C0 FE2D 45AA 61A0 1E86 DB87 09DC DD87 6E40)
Reply
#7
Not Solved
ok thanks, i'll just comment it out
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)