Bbcodes In Unrealx Forum Script

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

    Bbcodes In Unrealx Forum Script

    how do i add bbcodes in the unrealx forum script?

    like:
    [ u ] text [ / u]
    [ small ] text [ / small]
    [ i ] text [ / i]
    [ s ] text [ / s]

    #2
    try and get errorrs
    bro think a little bit,i could do it,dont have time to think anything hehe :lol: lol

    Comment


      #3
      who can help me?...

      Comment


        #4
        if fix my error in chat soon,i will help very soon

        p.s try something like this
        Code:
        $ttext = str_replace ("<b","*bbbb*",$ttext);
        $ttext = str_replace ("<i","*iiii*",$ttext;
        $ttext = str_replace ("<u","*uuuu*",$ttext);
        $ttext = str_replace ("*iiii*","<i",$ttext);
        $ttext = str_replace ("*bbbb*","<b",$ttext);
        $ttext = str_replace ("*uuuu*","<u",$ttextt);

        Comment


          #5
          ok will test that...

          Comment


            #6
            i will try editing the script and tell you if that works.

            Comment


              #7
              I took quick look so doesn&#39;t mean it works
              Ok what needs to be done,you need to delete some of these but in the core.php find the part

              //////////////////////////////New thread or post/////////////////////////////[/b]
              now in that part find the
              $data=date("y m d - ".$valandos.":i:s");
              $tnameas=htmlspecialchars($tname);
              $ttextas=htmlspecialchars($ttext);
              $ttext=str_replace("$","$$",$ttext);[/b]
              now you will see that line
              $ttextas=htmlspecialchars($ttext);[/b]
              is is starting of $ttext replacing so from line
              $ttextas=htmlspecialchars($ttext); do not include that line, until line
              if (is_string($tname)) { also do not include that line
              copy this part

              $ttext=str_replace("$","$$",$ttext);
              $ttext=str_replace("&lt;","",$ttext);
              $ttext=str_replace("&gt;","",$ttext);
              $ttext=str_replace("\"","",$ttext);
              $ttext=str_replace("&#39;","",$ttext);
              $ttext=str_replace("\\","",$ttext);
              $ttext=str_replace("&","&amp;",$ttext);
              $tname=str_replace("$","$$",$tname);
              $tname=str_replace("&lt;","",$tname);
              $tname=str_replace("&gt;","",$tname);
              $tname=str_replace("\"","",$tname);
              $tname=str_replace("&#39;","",$tname);
              $tname=str_replace("\\","",$tname);
              $tname=str_replace("&","&amp;",$tname);
              $ttext = str_replace ("<go","*gggg*",$ttext);
              $ttext = str_replace ("<tr","*trtt*",$ttext);
              $ttext = str_replace ("<td","*tdtt*",$ttext);
              $ttext = str_replace (" try and tell me is it working

              Comment


                #8
                try this
                $text=htmlspecialchars($text);
                $text=preg_replace("/\[b\](.*?)\[\/b\]/i","\\1", $text);
                $text=preg_replace("/\[u\](.*?)\[\/u\]/i","\\1", $text);
                $text=preg_replace("/\[i\](.*?)\[\/i\]/i","\\1", $text);
                $text=preg_replace("/\[big\](.*?)\[\/big\]/i","<big>\\1</big>", $text);
                $text=preg_replace("/\[small\](.*?)\[\/small\]/i","\\1", $text);
                for demo http://wap.w5c.org

                Comment


                  #9
                  for demo http://wap.w5c.org[/b]
                  url not found
                  8th wonder of the world

                  Comment


                    #10
                    mine works perfectly i tried and it works

                    Comment


                      #11
                      min0taur i added the same code you telling but before that.and works fine on my site.

                      Comment


                        #12
                        its ok i did it my self thanks anyway...

                        Comment


                          #13
                          me too got that work.Its great.

                          Comment


                            #14
                            yeah its pretty good...will now insert in my public

                            Comment


                              #15
                              wot public!

                              Comment

                              Working...
                              X