how to auto modify URL link ?
example here
http://www.simplemachines.org (http://www.simplemachines.org)
[url=http://www.simplemachines.org]http://www.simplemachines.org[/url]
to
this is an url , click here (http://www.simplemachines.org)
[url=http://www.simplemachines.org]this is an url , click here[/url]
array(
'tag' => 'url',
'type' => 'unparsed_equals',
'before' => '<a href="$1" class="bbc_link" target="_blank">',
'after' => '</a>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$data = \'http://\' . $data;
'),
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => ' ($1)',
),
'before' => '<a href="$1" class="bbc_link" target="_blank">',
this is an url , click here
'after' => '</a>',
http://custom.simplemachines.org/mods/index.php?mod=3832
it don't work in wap or print , it use javascript, :( I'll keep looking
It won't work in print mode, because that would be insane to never let people see the URLs they're going to when you print it out.
As for WAP mode, that's also kind of the specification - and the mod only uses JavaScript when posting, not in the forum display.
is possible filter content bbcode? [tag=url] Filter http:// or img with replace function[/tag] for example
[tag=http://url]aks blablalbalblab http://other url[/tag]
to
[tag=http://url]http://otherurl[/tag]
what??
and why??
???