Problems with [CODE] und [HTML] tag

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Axel
    Member
    • May 2002
    • 54

    Problems with [CODE] und [HTML] tag

    Hello,

    having some problems with the code and html vb code. I am using the same code for the vb codes html, quote, php and code. But in html oder code the new lines are missing.

    The template code I am using

    [CODE]
    <div style="margin:5px;padding:5px;">
    <span class="text">$vbphrase
    Code:
    :</span>
      <div class="fq" style="height:250px;">
        <span class="smalltext">
          $code
        </span>
      </div>
    </div>
    I would say there is a bug in parsing the templates/the vbcodes. I didn't change anything in the vb files. Some please don't come with upload the original one. I reverted to the original one and it works. Changing it a little bit didn't work.

    Regards,
    Axel
  • daemon
    Senior Member
    • Jun 2003
    • 2351
    • 3.5.x

    #2
    This is because the post cache still has the older version of the template. To rebuild this cache, go to:

    Admin CP --> Import & Maintenance --> Update Counters --> Rebuild Post Cache

    After doing this, the updated template should be in-place.
    Bugdar: PHP bug tracking software that is beautiful, fast, and robust.

    Comment

    • Axel
      Member
      • May 2002
      • 54

      #3
      I never used the standard one. And the post cache was clean before. Seems like a problem in the parsing algorithm to me.

      Comment

      • Axel
        Member
        • May 2002
        • 54

        #4
        *bump*

        Comment

        • Axel
          Member
          • May 2002
          • 54

          #5
          still having the problem with a changed template, isn't there any vb team member know how to solve this issue?

          Comment

          • Zachery
            Former vBulletin Support
            • Jul 2002
            • 59097

            #6
            If you are using post cacheing, disable it for the time being

            then run this query

            DELETE FROM post_parsed; (adjust for table prefixes)

            then view the thread and see if there has been a change.

            Comment

            • Axel
              Member
              • May 2002
              • 54

              #7
              Why everyone wants me to rebuild the post cache? I already told that I am having this trouble since I am using my own template. The same template is used for html, php, quote and code, but in html and code the new lines are missing.

              Comment

              • Axel
                Member
                • May 2002
                • 54

                #8
                After nobody was able to tell me why this template above didn't work I try to invest this issue myself.

                I found out that all <br /> and <br> are removed withhin this template and that the <pre> tag is filled like a textarea.

                A browser interpretes newlines as newlines and the text is displayed the right way. Adding <pre> tags to my templates helped in this case.

                Comment

                • Zachery
                  Former vBulletin Support
                  • Jul 2002
                  • 59097

                  #9
                  I was trying to tell you to clear the post parsed table, as with vB3 if you have enabled post cacheing it will cache posts and any updates made to your bbcode_* templates can't be noticed untill you clear the cache and disable the option

                  Comment

                  widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                  Working...
                  😀
                  😂
                  🥰
                  😘
                  🤢
                  😎
                  😞
                  😡
                  👍
                  👎