Well id like to thank everyone for there help on this however im yet to come up with anything that im happy with.
Ive tried the getimage size method but as I expected kills the whole signature.
I chose to mess around with Seany Bobs method.
I thought about using the following -
$text = str_replace(array(".php" , ".html", ".htm"), array("", "", ""), $text);
Im unsure if this is a good way to go.
It seems to resolve the linking issue. I will no doubt change the file that usally gets exploited for giving staff powers to people who exploit such a bug for extra security.
I did this awhile ago but due to past issues ive removed the and tags. The tag is a pain in the arse in general. Not only the issue with setting as admin on clicking on there profile but with members setting out links for normal actions to be made by any member.
The email tag I removed due to a wierd bypass I had sometime ago where they used a redirect using them tags to do site actions also.
I think the fix above may have stopped this anyway however I dont think the codes are required.
Does this above example break any of the BBCODE that anyone can see.
Thoughts and improvements welcome.