Hi,
You could use a global =)
New global named: make_links_active
Call in template with;
<%make_links_active($Field)%>
..and put the following code in the global;
my $desc = $_[0];
$desc =~ s|\Qhttp://\E(.*?)\s+|<a href="http://$1">http://$1</a> |sig;
return $desc;
}
Untested, but should hopefully work :)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
You could use a global =)
New global named: make_links_active
Call in template with;
<%make_links_active($Field)%>
..and put the following code in the global;
Code:
sub { my $desc = $_[0];
$desc =~ s|\Qhttp://\E(.*?)\s+|<a href="http://$1">http://$1</a> |sig;
return $desc;
}
Untested, but should hopefully work :)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!