Mhm. A simple change: (Line 596) FIND: $after_replace = preg_replace("#([\w]+?[:]//[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "<a href=\"\\1\">\\1</a>", $after_replace); PHP: (Line 596) REPLACE WITH: $after_replace = preg_replace("#([\w]+?[:]//[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "<a href=\"\\1\" target="_blank">\\1</a>", $after_replace); PHP:
Didn't work Parse error: syntax error, unexpected T_STRING in /home/only/public_html/includes/bbcode.php on line 596 Code (markup):
HAHAHAHAAHA, I'm just a little tired. Forgot to escape the quotes. (Line 596) REPLACE WITH: $after_replace = preg_replace("#([\w]+?[:]//[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "<a href=\"\\1\" target=\"_blank\">\\1</a>", $after_replace); PHP:
Done! Changed with: $after_replace = preg_replace("#([\w]+?[:]//[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "<a href=\"\\1\" target=\"_blank\">\\1</a>", $after_replace); Code (markup): The code is correct right? Its working
hi i'm working for create a private message module like facebook's, wich can read into my portal (harryweb.net) the old private message (wich is phpBB) shorted by conversation with user, and can reply to the message and add the message in the same conversation. i've created 2 function. - one insert into text (because user can reply at the message) the BBcode - and another read the BBcode and convert it into HTML. the first is: function BBCode_insert the second is: function BBCode i think u can help me, because, i've a BIG problem with the code TAG. because into the tag, the posted text is altready converted in HTML. how can i correct the problem???