2009-05-13, 04:20 AM
2009-05-13, 04:32 AM
There is actually a post by Yumi in my mycode tutorial that says how. I would link it, but I'm on my iPod touch now.
2009-05-13, 09:39 AM
What do you mean by it allows it...?? Can you give an example of what you mean...??
2009-05-13, 11:28 AM
In other words, if I just type www.google.com and nothing else, the post becomes nested and the URL becomes a link.
BTW...I only typed the www and NOT the http://
BTW...I only typed the www and NOT the http://
2009-05-13, 12:25 PM
Oh, well that's just how links work, it isn't HTML as such... in ./inc/class_parser.php, from line 821, see what removing this does:
function mycode_parse_url($url, $name="")
{
if(!preg_match("#^[a-z0-9]+://#i", $url))
{
$url = "http://".$url;
}
$fullurl = $url;
$url = str_replace('&', '&', $url);
$name = str_replace('&', '&', $name);
if(!preg_match("#[a-z0-9]+://#i", $fullurl))
{
$fullurl = "http://".$fullurl;
}
if(!$name)
{
$name = $url;
}
2009-05-13, 12:27 PM
Lex has a nolink on Mybbcentral.com
2009-05-13, 01:05 PM
When I removed the code, I got a parse error
I can't find the "nolink" on the other forum
I can't find the "nolink" on the other forum
2009-05-13, 05:42 PM
(2009-05-13, 12:27 PM)T0m Wrote: [ -> ]Lex has a nolink on Mybbcentral.com
No i don't;
Mine prevents users to post links when they don't have enough posts or not registered long enough.
2009-05-14, 09:08 AM
If you want to disable automatic linking, edit inc/class_parser.php by removing the following line:
$message = $this->mycode_auto_url($message);