Announcement

Collapse
No announcement yet.

<html> or [BBcode] ?

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

  • <html> or [BBcode] ?

    Hi there.

    I noticed both BBcode and html are enabled on these boards. Are there any plans to disable html? Just asking cause I couldn't figure out how to center with BBcode and had to switch it to html tags.

    Does anyone know how to center with BBcode tags?

    ~ Niellya Lovestead ~
    (Retired)





  • #2
    Np plans to disable HTML

    No, there are no plans to disable HTML.

    Poor Ngreth and Niami went to a great deal of trouble to make sure both worked.
    Lothay retired from EQ in 2003
    EQ Traders - Moderator - MySpace or LiveJournal

    Comment


    • #3
      BBcode

      Currently no way to center with BBCode - just the basics with it:

      bold
      italic
      underline
      quote
      lists
      images
      links
      Slimb Hcarvul
      Cazic-Thule

      Comment


      • #4
        Thanks for the answer. I would understand if they did, just wanted to plan ahead.

        ~ Niellya Lovestead ~
        (Retired)




        Comment


        • #5
          Aye, we don't plan, at this time, to disable either. Unfortunately, we have to tell the boards specifically what HTML codes (code, by code, by code) we wish to allow, and not all of the ones on the allow list are currently behaving. So, please bear with us if some codes are still flaking out. We're fixing what we can as we can.

          Comment


          • #6
            Hehe I had the problem too with html not working with all the tags I told it to so I just wrote my own BB code for all the HTML I was gona allow and disabled HTML

            It is real easy to add new BB code once ya figure it out. Also there is a nice mod out that makes it easy to add the quick BB code buttons up top

            If you or the house ogre dont have time I can e-mail you the code for just about any html -> BB code conversion you could want
            There is a Search feature so use it!

            Comment


            • #7
              Sure!

              I would love to see a
              [code:1]&lt;table>
              &lt;tr>
              &lt;th>&lt;/th>
              &lt;td>&lt;/td>
              &lt;/tr>
              &lt;/table>[/code:1]

              and

              [code:1]&lt;option>
              &lt;select>&lt;/select>
              &lt;select>&lt;/select>
              &lt;/option>[/code:1]
              Ngreth Thergn

              Ngreth nice Ogre. Ngreth not eat you. Well.... Ngreth not eat you if you still wiggle!
              Grandmaster Smith 250
              Master Tailor 200
              Ogres not dumb - we not lose entire city to froggies

              Comment


              • #8
                Ask and ye shall recive

                [code:1]
                ################################################## ############
                ## MOD Title&#58; Table and Select BB Code
                ## MOD Author&#58; Digitalxero &lt; digitalxero@hotmail.com > http&#58;//64.45.3.172/twc_new
                ## MOD Description&#58; Lets you use table and select bb Code
                ## MOD Version&#58; 1.0.1
                ## MOD Status&#58; Beta&#40;I havnt had anyone but me test it&#41;
                ## Installation Level&#58; &#40;moderate&#41;
                ## Installation Time&#58; 5 Minutes
                ## Files To Edit&#58; bbcode.php4, bbcode.tpl
                ## Included Files&#58; &#40;n/a&#41;
                ################################################## ############
                ## For Security Purposes, Please Check&#58; http&#58;//www.phpbb.com/mods/downloads/ for the
                ## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
                ## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
                ## in our MOD-Database, located at&#58; http&#58;//www.phpbb.com/mods/downloads/
                ################################################## ############
                ## Author Notes&#58; If someone does not close thier table tag it could mess us the look of the topic
                ##
                ################################################## ############
                ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
                ################################################## ############

                #
                #-----&#91; OPEN&#93;------------------------------------------
                #
                templates/subSilver/bbcode.tpl
                #
                #-----&#91; FIND &#93;------------------------------------------
                #
                ?>
                #
                #-----&#91; BEFORE, ADD &#93;------------------------------------------
                #
                &lt;!-- BEGIN table_open -->
                &lt;table &#123;TABLE&#125;>
                &lt;!-- END table_open -->
                &lt;!-- BEGIN table_close -->
                &lt;/table>
                &lt;!-- END table_close -->
                &lt;!-- BEGIN td_open -->
                &lt;td &#123;TD&#125;>
                &lt;!-- END td_open -->
                &lt;!-- BEGIN td_close -->
                &lt;/td>
                &lt;!-- END td_close -->
                &lt;!-- BEGIN th_open -->
                &lt;th &#123;TH&#125;>
                &lt;!-- END th_open -->
                &lt;!-- BEGIN th_close -->
                &lt;/th>
                &lt;!-- END th_close -->
                &lt;!-- BEGIN tr_open -->
                &lt;tr &#123;TR&#125;>
                &lt;!-- END tr_open -->
                &lt;!-- BEGIN tr_close -->
                &lt;/tr>
                &lt;!-- END tr_close -->

                &lt;!-- BEGIN select_open -->
                &lt;select &#123;SELECT&#125;>
                &lt;!-- END select_open -->
                &lt;!-- BEGIN select_close -->
                &lt;/select>
                &lt;!-- END select_close -->
                &lt;!-- BEGIN option_open -->
                &lt;option &#123;OPTION&#125;>&#123;OPTION_TEXT&#125;
                &lt;!-- END option_open -->
                &lt;!-- BEGIN option_close -->
                &lt;/option>
                &lt;!-- END option_close -->

                #
                #-----&#91; OPEN&#93;------------------------------------------
                #
                includes/bbcode.php

                #
                #-----&#91; FIND &#93;------------------------------------------
                #
                function prepare_bbcode_template&#40;$bbcode_tpl&#41;
                &#123;
                global $lang;

                #
                #-----&#91; AFTER, ADD &#93;------------------------------------------
                #
                //Table
                $bbcode_tpl&#91;'table_open'&#93; = str_replace&#40;'&#123;TABLE&#125;', '\\1', $bbcode_tpl&#91;'table_open'&#93;&#41;;
                $bbcode_tpl&#91;'td_open'&#93; = str_replace&#40;'&#123;TD&#125;', '\\1', $bbcode_tpl&#91;'td_open'&#93;&#41;;
                $bbcode_tpl&#91;'th_open'&#93; = str_replace&#40;'&#123;TH&#125;', '\\1', $bbcode_tpl&#91;'th_open'&#93;&#41;;
                $bbcode_tpl&#91;'tr_open'&#93; = str_replace&#40;'&#123;TR&#125;', '\\1', $bbcode_tpl&#91;'tr_open'&#93;&#41;;

                //Select
                $bbcode_tpl&#91;'select_open'&#93; = str_replace&#40;'&#123;SELECT&#125;', '\\1', $bbcode_tpl&#91;'select_open'&#93;&#41;;
                //option
                $bbcode_tpl&#91;'option_open'&#93; = str_replace&#40;'&#123;OPTION&#125;', '\\1', $bbcode_tpl&#91;'option_open'&#93;&#41;;
                $bbcode_tpl&#91;'option_open'&#93; = str_replace&#40;'&#123;OPTION_TEXT&#125;', '\\2', $bbcode_tpl&#91;'option_open'&#93;&#41;;

                #
                #-----&#91; FIND &#93;------------------------------------------
                #
                function prepare_bbcode_template&#40;$bbcode_tpl&#41;
                &#123;
                global $lang;
                #
                #-----&#91; AFTER, ADD &#93;------------------------------------------
                #
                //Table
                $bbcode_tpl&#91;'table_open'&#93; = str_replace&#40;'&#123;TABLE&#125;', '\\1', $bbcode_tpl&#91;'table_open'&#93;&#41;;
                $bbcode_tpl&#91;'td_open'&#93; = str_replace&#40;'&#123;TD&#125;', '\\1', $bbcode_tpl&#91;'td_open'&#93;&#41;;
                $bbcode_tpl&#91;'th_open'&#93; = str_replace&#40;'&#123;TH&#125;', '\\1', $bbcode_tpl&#91;'th_open'&#93;&#41;;
                $bbcode_tpl&#91;'tr_open'&#93; = str_replace&#40;'&#123;TR&#125;', '\\1', $bbcode_tpl&#91;'tr_open'&#93;&#41;;

                //Select
                $bbcode_tpl&#91;'select_open'&#93; = str_replace&#40;'&#123;SELECT&#125;', '\\1', $bbcode_tpl&#91;'select_open'&#93;&#41;;
                //option
                $bbcode_tpl&#91;'option_open'&#93; = str_replace&#40;'&#123;OPTION&#125;', '\\1', $bbcode_tpl&#91;'option_open'&#93;&#41;;
                $bbcode_tpl&#91;'option_open'&#93; = str_replace&#40;'&#123;OPTION_TEXT&#125;', '\\2', $bbcode_tpl&#91;'option_open'&#93;&#41;;

                #
                #-----&#91; FIND &#93;------------------------------------------
                #
                function bbencode_first_pass&#40;$text, $uid&#41;
                &#123;
                // pad it with a space so we can distinguish between FALSE and matching the 1st char &#40;index 0&#41;.
                // This is important; bbencode_quote&#40;&#41;, bbencode_list&#40;&#41;, and bbencode_code&#40;&#41; all depend on it.
                $text = &quot; &quot; . $text;
                #
                #-----&#91; AFTER, ADD &#93;------------------------------------------
                #
                //Start Butification code
                //What this does is allows you to format your table and select code in a readable manner vs only on one line
                if &#40; preg_match&#40;&quot;#\&#91;table&#40;.*?&#41;\&#9 3;&#40;\n*?&#41;&#40;.*?&#41;\&#91;/table\&#93;#si&quot;, $text, $test&#41;&#41; &#123;
                for&#40;$i=0;$i&lt;count&#40;$test&#91;0&#93;&#41; ;$i++&#41;
                &#123;
                $test&#91;0&#93;&#91;$i&#93; = str_replace&#40;&quot;\r\n&quot;, &quot;\t&quot;, $test&#91;0&#93;&#41;;
                $text = preg_replace&#40;&quot;#\&#91;table&quot;.$test&#9 1;1&#93;&#91;$i&#93;.&quot;\&#93;&quot;.$test&#91; 2&#93;&#91;$i&#93;.&quot;\&#91;/table\&#93;#si&quot;, $test&#91;0&#93;&#91;$i&#93;, $text, 1&#41;;
                &#125;

                $textbr = str_replace&#40;&quot;\r\n&quot;, &quot;\t&quot;, $test&#91;0&#93;&#41;;
                $text = preg_replace&#40;&quot;#\&#91;table&#40;.*?&#41;\& #93;&#40;\n*?&#41;&#40;.*?&#41;\&#91;/table\&#93;#si&quot;, $textbr, $text&#41;;
                &#125;

                if &#40; preg_match_all&#40;&quot;#\&#91;th&#40;.*?&#41;\&# 93;&#40;.*?&#41;\&#91;/th\&#93;#si&quot;, $text, $test&#41;&#41; &#123;
                for&#40;$i=0;$i&lt;count&#40;$test&#91;0&#93;&#41; ;$i++&#41;
                &#123;
                $test&#91;0&#93;&#91;$i&#93; = str_replace&#40;&quot;\t&quot;, &quot;\n&quot;, $test&#91;0&#93;&#91;$i&#93;&#41;;
                $text = preg_replace&#40;&quot;#\&#91;th&quot;.$test&#91;1 &#93;&#91;$i&#93;.&quot;\&#93;&quot;.$test&#91;2&# 93;&#91;$i&#93;.&quot;\&#91;/th\&#93;#si&quot;, $test&#91;0&#93;&#91;$i&#93;, $text, 1&#41;;
                &#125;
                &#125;

                if &#40; preg_match_all&#40;&quot;#\&#91;td&#40;.*?&#41;\&# 93;&#40;.*?&#41;\&#91;/td\&#93;#si&quot;, $text, $test&#41;&#41; &#123;
                for&#40;$i=0;$i&lt;count&#40;$test&#91;0&#93;&#41; ;$i++&#41;
                &#123;
                $test&#91;0&#93;&#91;$i&#93; = str_replace&#40;&quot;\t&quot;, &quot;\n&quot;, $test&#91;0&#93;&#91;$i&#93;&#41;;
                $text = preg_replace&#40;&quot;#\&#91;td&quot;.$test&#91;1 &#93;&#91;$i&#93;.&quot;\&#93;&quot;.$test&#91;2&# 93;&#91;$i&#93;.&quot;\&#91;/td\&#93;#si&quot;, $test&#91;0&#93;&#91;$i&#93;, $text, 1&#41;;
                &#125;
                &#125;

                if &#40; preg_match&#40;&quot;#\&#91;select&#40;.*?&#41;\&# 93;&#40;.*?&#41;\&#91;/select\&#93;#si&quot;, $text, $test&#41;&#41; &#123;
                for&#40;$i=0;$i&lt;count&#40;$test&#91;0&#93;&#41; ;$i++&#41;
                &#123;
                $test&#91;0&#93;&#91;$i&#93; = str_replace&#40;&quot;\n&quot;, '', $test&#91;0&#93;&#41;;
                $text = preg_replace&#40;&quot;#\&#91;select&quot;.$test&# 91;1&#93;&#91;$i&#93;.&quot;\&#93;&quot;.$test&#91 ;2&#93;&#91;$i&#93;.&quot;\&#91;/select\&#93;#si&quot;, $test&#91;0&#93;&#91;$i&#93;, $text, 1&#41;;
                &#125;

                &#125;

                if &#40; preg_match&#40;&quot;#\&#91;option&#40;.*?&#41;\&# 93;&#40;.*?&#41;\&#91;/option\&#93;#si&quot;, $text, $test&#41;&#41; &#123;
                for&#40;$i=0;$i&lt;count&#40;$test&#91;0&#93;&#41; ;$i++&#41;
                &#123;
                $test&#91;0&#93;&#91;$i&#93; = str_replace&#40;&quot;\n&quot;, &quot;&quot;, $test&#91;0&#93;&#41;;
                $text = preg_replace&#40;&quot;#\&#91;option&quot;.$test&# 91;1&#93;&#91;$i&#93;.&quot;\&#93;&quot;.$test&#91 ;2&#93;&#91;$i&#93;.&quot;\&#91;/option\&#93;#si&quot;, $test&#91;0&#93;&#91;$i&#93;, $text, 1&#41;;
                &#125;
                &#125;
                //Table
                $text = preg_replace&#40;&quot;#\&#91;table&#40;.*?&#41;\& #93;&#40;.*?&#41;\&#91;/table\&#93;#si&quot;, &quot;&#91;table&#58;$uid \\1&#93;\\2&#91;/table&#58;$uid&#93;&quot;, $text&#41;;
                $text = preg_replace&#40;&quot;#\&#91;td&#40;.*?&#41;\&#93 ;&#40;.*?&#41;\&#91;/td\&#93;#si&quot;, &quot;&#91;td&#58;$uid \\1&#93;\\2&#91;/td&#58;$uid&#93;&quot;, $text&#41;;
                $text = preg_replace&#40;&quot;#\&#91;th&#40;.*?&#41;\&#93 ;&#40;.*?&#41;\&#91;/th\&#93;#si&quot;, &quot;&#91;th&#58;$uid \\1&#93;\\2&#91;/th&#58;$uid&#93;&quot;, $text&#41;;
                $text = preg_replace&#40;&quot;#\&#91;tr&#40;.*?&#41;\&#93 ;&#40;.*?&#41;\&#91;/tr\&#93;#si&quot;, &quot;&#91;tr&#58;$uid \\1&#93;\\2&#91;/tr&#58;$uid&#93;&quot;, $text&#41;;
                //Select
                $text = preg_replace&#40;&quot;#\&#91;select&#40;.*?&#41;\ &#93;&#40;.*?&#41;\&#91;/select\&#93;#si&quot;, &quot;&#91;select&#58;$uid \\1&#93;\\2&#91;/select&#58;$uid&#93;&quot;, $text&#41;;
                //Option
                $text = preg_replace&#40;&quot;#\&#91;option&#40;.*?&#41;\ &#93;&#40;.*?&#41;\&#91;/option\&#93;#si&quot;, &quot;&#91;option&#58;$uid \\1&#93;\\2&#91;/option&#58;$uid&#93;&quot;, $text&#41;;
                #
                #-----&#91; SAVE/CLOSE ALL FILES &#93;------------------------------------------
                #
                # EoM
                [/code:1]
                There is a Search feature so use it!

                Comment


                • #9
                  You can write you table and select tages in a readable manner without having the anoying BR's added to them

                  ie

                  [table height=15 width=35 border=1 align=center]

                  [td rowspan=2]This is
                  my
                  row spaning
                  td
                  [/td]
                  This is a normal td


                  This is a second normal td

                  [/table]


                  should output something like

                  |----------------------------------------------|
                  |this is++++| this is a normal td |
                  |my++++++|-------------------------------|
                  |row spaning |This is a second normal td |
                  |td++++++|+++++++++++++++++|

                  if I didnt include the butification code it would have 8 BR's ontop of the table

                  you can use select also as follows

                  [select]
                  [option value=something]Something[/option]
                  [/select]
                  There is a Search feature so use it!

                  Comment


                  • #10
                    oh you can go >>Here&lt;&lt; to see it and test it out


                    Another note...if someone doe not close thier [table] tag it might make the board look funny and not much I can do about that
                    There is a Search feature so use it!

                    Comment


                    • #11
                      Aye, I've seen a number of msg boards "broken" by someone forgetting to close a table. Hopefully folks who use tables in their sigs will preview them 1st to make sure they work!

                      Comment


                      • #12
                        Originally posted by Haawk Wolfheart
                        Aye, I've seen a number of msg boards "broken" by someone forgetting to close a table. Hopefully folks who use tables in their sigs will preview them 1st to make sure they work!
                        No dobut, all that it does is make more work for the Mods and the Admins to go through and clean code.

                        .............. Wait a sec......... Thats all I do all day is go through and code in perl/html for my company. :?

                        And trust me when you screw up on somthing like that and 100+ Managers are looking at it you tend to do it only once.

                        <center><font size="+4" color="red"><Font face="Morpheus">PREVIEW IS YOUR FRIEND</font></font></center>

                        Though for some reason I cant get the font face tag to work

                        I am trying to use the Morpheus font.

                        If you want you can download that here at my site.

                        http://matrix.terrabox.com/~psychosi...s/morpheus.zipPC Morpheus Font</a>

                        http://matrix.terrabox.com/~psychosi...rpheus.sit.hqxMAC Morpheus Font</a>

                        http://matrix.terrabox.com/~psychosi...s/nosferat.zipPC Nosferatu Font</a>

                        http://matrix.terrabox.com/~psychosi...feratu.sit.hqxMAC Nosferatu Font</a>

                        Comment


                        • #13
                          Talnic.

                          Something looks odd in that code.

                          I see the code for making it OPEN table and selections... I do NOT see code to close tables and selections... AND the open part is doen TWICE... is this where the close stuff was suposd to be?
                          Ngreth Thergn

                          Ngreth nice Ogre. Ngreth not eat you. Well.... Ngreth not eat you if you still wiggle!
                          Grandmaster Smith 250
                          Master Tailor 200
                          Ogres not dumb - we not lose entire city to froggies

                          Comment


                          • #14
                            no it has to be done twcie. it does BBcode in two passes for the more complext BB code.

                            It doent auto close the tag, though I could probably figure out how to do that. but it will have to wait a week or so since I am outa town right now
                            There is a Search feature so use it!

                            Comment


                            • #15
                              Thanks a TON for enabling HTML on the boards, without it I wouldn't be able to do the signature that I worked so hard on.
                              Dragoron - 70 Arch Magus
                              Baking 300 - Brewing 300 - Jewelcraft 300
                              Pottery 300 - Fletching 282 - Smithing 280
                              Tailoring 253 - Research 201 - Fishing 200

                              Comment

                              Working...
                              X