Bbcodes

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

    Bbcodes

    Hey i want to add more bbcodes to my site but always when i try it i het an syntax error warning can anyone help me how to fix this or atlest tell me where to do it ?? i tryed in core.php btw its lavalair script
    thanks in advance

    PHP Code:
    foreach ($_SERVER as $server => $value)
    {
    echo "$server is $value<br />";
    } 
    

    #2
    How you do this?

    Comment


      #3
      I added some of my own. lol, like [user] and it shows the name of the person who is reading it

      Comment


        #4
        i copyed a part from core.php and edited it like
        Code:
         [img]$imgurl[/img]

        PHP Code:
        foreach ($_SERVER as $server => $value)
        {
        echo "$server is $value<br />";
        } 
        

        Comment


          #5
          ur mising sumin send us ya file and al fix it for ya
          Want something coded email me at sales@webnwaphost.com for a prices.




          Comment


            #6
            $text=preg_replace("/\[font\=(.*?)\](.*?)\[\/font\]/is","$2",$text);
            $text=preg_replace("/\[img\=(.*?)\]/i","<img src=\"$1\" alt=\"\"/>",$text);

            Comment


              #7
              woops copied the font 1 too lol to do images in that 1 u jus type [img=urltopic]

              Comment


                #8
                woops copied the font 1 too lol to do images in that 1 u jus type [img=urltopic][/b]
                Cool thanx and how can i make it to get blinking text with bbcodes?

                PHP Code:
                foreach ($_SERVER as $server => $value)
                {
                echo "$server is $value<br />";
                } 
                

                Comment


                  #9
                  think blinking text only works on html doctypes not xhtml/wml

                  Comment


                    #10
                    think blinking text only works on html doctypes not xhtml/wml[/b]

                    Code:
                    $text = preg_replace("/\[blink\](.*?)\[\/blink\]/i","<blink>\\1</blink>", $text);
                    works 100% in XHTML
                    It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
                    ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
                    ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
                    キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

                    Comment


                      #11
                      well it dnt work lol as text dnt blink

                      Comment


                        #12
                        well it dnt work lol as text dnt blink[/b]
                        well it does works from normal browsers

                        tested with:

                        Opera PC(many versions tested)
                        Mozilla FireFox
                        I.E.
                        Maxthon browser

                        Opera symbian
                        NetFront v3.1, v3.2 and v3.3
                        jB5 browser
                        default browser N70, N95, Nokia6600, Nokia7390, N73, Nokia6230, Nokia6234 and some more


                        didnt work with browsers like
                        Opera mini
                        UCWEB
                        and some very old phones
                        It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
                        ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
                        ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
                        キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

                        Comment


                          #13
                          Code:
                          $text = preg_replace("/\[blink\](.*?)\[\/blink\]/i","<blink>\\1</blink>", $text);
                          works 100% in XHTML [/b]
                          Tryd it but didnt work lol atleast i got it to work that my login php also incldes owner tools and all other staff tools well atleast one thing i managed to do

                          PHP Code:
                          foreach ($_SERVER as $server => $value)
                          {
                          echo "$server is $value<br />";
                          } 
                          

                          Comment


                            #14
                            thats easy... last thing i did to my script was a network block tool can block entire networks lol

                            Comment

                            Working...
                            X