My site uses ActiveFOrum 3.6 and I have been wanting to make urls automatically get converted into links. Well I am close.... I have a regex replacement that detects www.* and http://* . The problem I have is that PB will only convert the first match. so in other words if I had the following: www.google.com www.yahoo.com only the google link would be created. It seems the regex only matches the first one. I suspect this is because I have told it only to do those it finds withing the afpostbody DIV. If I don't limit it to the afpostbody, I get artifacts on the top of my page because AF will attempt to put the post body of the first post into the head section. Is there anyway to write the regex so it finds all instance within the div? Here is the WWW code - hopefully the code won't reformat badly here...: Find: (afpostbody.*?)(^|[>\n ])(www\.[^ <]*) Replace with: $1$2< a target="_blank" href="http://$3" >$3
|