hey there
i found the solution to your problem.... to overcome these problems you had, here's what i came up with. and so, for custom link tags:
[link=http://www.anything.com]any thing here[/link]
write this:
$message = $_POST["message"]; //usually textarea sent thru post method
$message = preg_replace("/\[link=(.*?)\](.*?)\[\/link\]/s","<a href=\"\\1\" target=\"_blank\">\\2</a>",$message);
where $message is a textarea where the user inputs his custom tags or whatever.
for custom image tags:
http://www.anything.com
write this:
$message = preg_replace("/\[img\](.*?)\[\/img\]/s","<img src=\"\\1\" border=\"0\">",$message)
hope that helped you :D
www.campusgrind.com the college portal