MyBB Community Forums
Auto Hyperlink - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: Auto Hyperlink (/thread-102343.html)



Auto Hyperlink - lolsee2 - 2011-08-23

When i posted URL.
Without code tags(this one - [code] )
The URLS get hyperlinked automatically
www.facebook.com/pages/freejokeseveryda-Jokes/142159482521944
I dont want the URLS to be Hyperlinked like this.
What can i do?


RE: Auto Hyperlink - faviouz - 2011-08-23

So you don't want links to be parsed, at all?


RE: Auto Hyperlink - lolsee2 - 2011-08-23

yes it shortens the url and hides it better to be posted in normal view.



RE: Auto Hyperlink - Omar G. - 2011-08-23

Oh, you do not want urls to be shorter right?


RE: Auto Hyperlink - lolsee2 - 2011-08-23

yes i want them as they are.



RE: Auto Hyperlink - Jordan L. - 2011-08-23

So you don't want them at all, then you want them shorter, now you want them as they are? o__O


RE: Auto Hyperlink - Omar G. - 2011-08-23

No, he wants urls not to be shorter. you see, when you post a long url, mybb short it, like this:
http://community.mybb.c...ad-102343-page-2.html

But he wants url to be like this:
http://community.mybb.com/thread-102343-page-2.html

If not possible then he wants to remove url parsing at all.


RE: Auto Hyperlink - faviouz - 2011-08-23

1. Open ./inc/class_parser.php in a text editor.

2. In line 864 remove or comment this out:

if($name == $url && (!isset($this->options['shorten_urls']) || $this->options['shorten_urls'] != 0))
{
	if(my_strlen($url) > 55)
	{
		$name = my_substr($url, 0, 40)."...".my_substr($url, -10);
	}
}



RE: Auto Hyperlink - nadlerz - 2011-08-23

Nice favious!
Thanks!
Testing it Smile


RE: Auto Hyperlink - lolsee2 - 2011-08-23

100% Worked thanks faviouz