Disable vB code in posts?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kau
    Senior Member
    • Jul 2002
    • 772

    Disable vB code in posts?

    How can I disable this and in page PHP document does it turn it off and on.

    Thanks!
    Group Builder
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #2
    Admin CP -> vBulletin Options -> BB Code Settings -> Enabled Built-in BB Codes

    Then choose which codes you want to enable or disable.
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment

    • kau
      Senior Member
      • Jul 2002
      • 772

      #3
      I don't see IMG there?
      Group Builder

      Comment

      • Steve Machol
        Former Customer Support Manager
        • Jul 2000
        • 154488

        #4
        The IMG code is treated separately. This is a per forum setting:

        Admin CP -> Forums & Moderators -> Forum Manager -> Edit Forum -> Allow [IMG] Code -> No

        You can also disable BB Code by forum here as well.
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment

        • kau
          Senior Member
          • Jul 2002
          • 772

          #5
          What file is this check in? To query to see if the forum is allowing IMG tags. I am thinking I could hack it to do usergroups in the same code but not sure what PHP file.

          Maybe a vB programmer would know? How do I contact one?
          Group Builder

          Comment

          • Steve Machol
            Former Customer Support Manager
            • Jul 2000
            • 154488

            #6
            This is not a file. It's an Admin CP setting as I posted above. Not sure what the rest of your question means.
            Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
            Change CKEditor Colors to Match Style (for 4.1.4 and above)

            Steve Machol Photography


            Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


            Comment

            • kau
              Senior Member
              • Jul 2002
              • 772

              #7
              Ok so in AdminCP you set a field and this field updates the database.

              Somewhere in the code is a query that references this field in the table to see if it should allow IMG tags in that specific forum.

              I want to know where that code is exactly because I am thinking I can tell it to allow IMG tags if the USERID = whatever.

              Make some sense?

              Who would be able to tell me this?
              Group Builder

              Comment

              • Steve Machol
                Former Customer Support Manager
                • Jul 2000
                • 154488

                #8
                Since this is a bitfield in the 'options' column of the forum table, I do not not the exact code you need. You might try asking at vbulletin.org.
                Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                Change CKEditor Colors to Match Style (for 4.1.4 and above)

                Steve Machol Photography


                Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                Comment

                • kau
                  Senior Member
                  • Jul 2002
                  • 772

                  #9
                  I have found that forum to not be of any help with this problem.

                  Is there a support I can contact at Jelsoft that would be able to tell me the PHP document in which this code resides?
                  Group Builder

                  Comment

                  • Steve Machol
                    Former Customer Support Manager
                    • Jul 2000
                    • 154488

                    #10
                    We can't really provide support for custom coding. Besides, I don't know exactly what code you are looking for. I do see this sectrion in init.php which may or may not help:

                    PHP Code:
                    // Defined contants used for forum field.
                    $_FORUMOPTIONS = array(
                            
                    'active'                        => 1,
                            
                    'allowposting'      => 2,
                            
                    'cancontainthreads' => 4,
                            
                    'moderatenewpost'   => 8,
                            
                    'moderatenewthread' => 16,
                            
                    'moderateattach'    => 32,
                            
                    'allowbbcode'       => 64,
                            
                    'allowimages'       => 128,
                            
                    'allowhtml'         => 256,
                            
                    'allowsmilies'      => 512,
                            
                    'allowicons'        => 1024,
                            
                    'allowratings'      => 2048,
                            
                    'countposts'        => 4096,
                            
                    'canhavepassword'   => 8192,
                            
                    'indexposts'        => 16384,
                            
                    'styleoverride'     => 32768,
                            
                    'showonforumjump'   => 65536,
                            
                    'warnall'           => 131072
                    ); 
                    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                    Change CKEditor Colors to Match Style (for 4.1.4 and above)

                    Steve Machol Photography


                    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                    Comment

                    • kau
                      Senior Member
                      • Jul 2002
                      • 772

                      #11
                      The code I am looking for is the code that validates if a specific forum can use the IMG tags or not.
                      Group Builder

                      Comment

                      • Steve Machol
                        Former Customer Support Manager
                        • Jul 2000
                        • 154488

                        #12
                        Sorry, I don't know. As I said the best place to ask these types of questions is at vbulletin.org.
                        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                        Change CKEditor Colors to Match Style (for 4.1.4 and above)

                        Steve Machol Photography


                        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                        Comment

                        • kau
                          Senior Member
                          • Jul 2002
                          • 772

                          #13
                          One more question. Like I mentioned vb.org hasen't been much help on this.

                          How about what function parses the IMG tag.

                          Is this it: function handle_bbcode_img($bbcode, $dobbimagecode)

                          Is that what makes the IMG tag work?

                          If so maybe I could just do an IF statement like IF this user group does not equal this then do this? Though I am not sure if user_group is a global variable?
                          Group Builder

                          Comment

                          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                          Working...