custom url mycode
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: custom url mycode
To remove URL shortening (affects everything), find and remove the following from inc/class_parser.php

PHP Code:
1
2
3
4
5
6
7
		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);
			}
		}


For links in code tags, try this (untested), find in inc/class_parser.php:

PHP Code:
$code = str_replace('\\', '\', $code);

add after:

PHP Code:
$code = preg_replace('#([>\s()]|^)((http|ftp|news)\://([^/"\s<\[.]+\.)+\w+(\:[0-9]+)?(/[^"\s<\[]*)?)#i', '$1<a href="$2">$2</a>', $code);


My Blog
12-08-2010 03:52 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
custom url mycode - 1master1 - 12-07-2010, 12:12 PM
RE: custom url mycode - Imran - 12-08-2010, 03:19 AM
RE: custom url mycode - 1master1 - 12-08-2010, 03:47 AM
RE: custom url mycode - ZiNgA BuRgA - 12-08-2010 03:52 PM
RE: custom url mycode - 1master1 - 12-09-2010, 10:27 AM
RE: custom url mycode - ZiNgA BuRgA - 12-09-2010, 12:26 PM
RE: custom url mycode - 1master1 - 12-10-2010, 05:31 AM
RE: custom url mycode - 1master1 - 12-15-2010, 10:55 PM
RE: custom url mycode - 1master1 - 12-18-2010, 12:59 PM
RE: custom url mycode - 1master1 - 01-05-2011, 12:27 PM

 Standard Tools
Forum Jump: