bb codes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    bb codes

    I need bb code url. this is bit of my core.php file

    $text = preg_replace("/\[url\=(.*?)\](.*?)\[\/url\]/is","<a href=\"$1\" target=\"_blank\">$2</a>",$text);

    when i post Google in the forum, shout etc
    i see //www.google.pl">Google" target="_blank">www.google.pl">Google

    #2
    You Have 2 BB codes for url`s
    On your other automatic url bb code try putting something like:

    if(substr_count($text,"[url=")<1){
    // your other automatic url bb code here
    }
    Last edited by something else; 11.09.10, 14:41.

    Comment


      #3
      btw, you might want to modify the url bbcode so users get logged out when they click links to prevent session id theft...

      try something like this:
      $text = preg_replace("/\[url\=(.*?)\](.*?)\[\/url\]/is","<a href=\"urlredir.php?redir=$1&who=$user\">$2</a>",$text);

      and urlredir.php attached below:


      also, check if one of your smilies not acting up with the http...

      or did you try block spam by adding http to the blocked / spam words on your site?

      hope this helps...
      Attached Files
      C3 Themes: http://c3themes.wen.ru/index.html
      Find Files: http://mystarter.tk/?goto=X-search

      Comment

      Working...
      X