Announcement

Collapse
No announcement yet.

Help with some code.

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

  • Help with some code.

    Hi all,

    Posted this on the dot org site but realized its better to be put here.
    After validating my site as XHTML I am stuck on locating a snippet of code:

    Code:
    # <!-- CSS Stylesheet -->
    # <link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/style-55098c4f-00002.css" id="vbulletin_css" /><style>
    # <!--
    # .sizedsig {
    # max-height:85px;
    # height:expression(this.scrollHeight > 85? "85px" : "auto" );
    # overflow:auto;
    # overflow-x:hidden;
    # }
    # // -->
    # </style>
    #
    # <!-- / CSS Stylesheet -->
    The part I am trying to find in the above code is:

    Code:
    <link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/style-55098c4f-00002.css" id="vbulletin_css" /><style>
    As you can see this would break the xhtml validation, but for the life of me I cant locate that snippet of code.

    Looking in the headerinclude template all I can find that may be of some use is:

    $style[css]

    I dont know where to go from there.
    Can anyone tell me where to look to alter the above code that is giving me the xhtml error.??

    Kindest regards.

  • #2
    The line of code is created dynamically within the PHP depending on what style you are using at the time. How is it breaking XHTML validation?
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment


    • #3
      Hi wayne,

      if you look at the end of the piece of code I am interested in you will see an extra style tag that should not be there.
      Any ideas?

      Kindest regards.

      Comment


      • #4
        This code:
        Code:
         <style>
         <!--
        .sizedsig {
         max-height:85px;
         height:expression(this.scrollHeight > 85? "85px" : "auto" );
         overflow:auto;
         overflow-x:hidden;
         }
         // -->
         </style>
        I don't know. I would check the headinclude template. This is not code that comes standard with vBulletin so would be the result of some modification or addon. Check with the authors at vBulletin.org for your different plugins and addons.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment


        • #5
          No wayne, this code:

          Code:
          <link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/style-55098c4f-00002.css" id="vbulletin_css" /><style>
          Look at the style tag on the end.

          Comment


          • #6
            That is perfectly valid code. The link tag is closed and a new <style> tag is opened for the definitions below it. What XHTML validator are you using that is causing an error to be thrown? What is the exact error?

            I have spaced it out and removed the hash signs. I still don't see how this would cause an error in XHTML 1.0 Transitional, which is what vBulletin is designed for.

            Code:
            <!-- CSS Stylesheet -->
            <link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/style-55098c4f-00002.css" id="vbulletin_css" />
            <style>
            <!--
             .sizedsig {
                      max-height:85px;
               height:expression(this.scrollHeight > 85? "85px" : "auto" );
               overflow:auto;
               overflow-x:hidden;
             }
            // -->
            </style>
            <!-- / CSS Stylesheet -->
            Maybe if you listed the specific validation error it would help.
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud demonstration site.
            vBulletin 5 API

            Comment


            • #7
              Most likely its in the FORUMDISPLAY and/or Header Templates of a Style you imported.

              Go to AdminCP -> Style & Templates -> Search in Templates -> Search for Text -> vbulletin_css

              should find the Templates which have style sheets for you.

              Regards,
              Slappy

              Comment


              • #8
                Sorry, it SHOULD be there but it needs a TYPE

                Code:
                Error         [I]Line 24 column 125[/I]:         required attribute "type" not specified.
                Just cant find it.

                Comment


                • #9
                  Thats not part of our code though.

                  <!-- CSS Stylesheet -->
                  <link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/style-104c779f-00001.css" id="vbulletin_css" />

                  <!-- / CSS Stylesheet -->

                  Is all that shows up for someone storing styles as stylesheets. Theres no additional <style> tag try checking your headinclude template.

                  Comment


                  • #10
                    Hi again.

                    This is my headerinclude template:

                    Code:
                    <!-- CSS Stylesheet -->
                    $style[css]
                    <if condition="is_browser('opera') AND !is_browser('opera', '8.0.1')">
                    <style type="text/css">
                    ul, ol { padding-left:20px; }
                    </style>
                    </if>
                    <!-- / CSS Stylesheet -->

                    Comment


                    • #11
                      It has to be PHP generated code from a core file. I tried adminfunction_template.php as suggested on .org but it isnt in there.

                      Comment


                      • #12
                        Again, try a search in Templates:

                        Go to AdminCP -> Style & Templates -> Search in Templates -> Search for Text -> id="vbulletin_css" /><style>
                        and see if it will identify the specific Template.

                        Otherwise, using: vbulletin_css/style-55098c4f-00002.css

                        should find all the Templates which have that part of the line.

                        Regards,
                        Slappy

                        Comment


                        • #13
                          Its not php generated from a core default file I promise.

                          Comment


                          • #14
                            Hi slappy,

                            Yes, did that m8. Returned no results for the search.

                            Comment


                            • #15
                              Is it showing up in all styles or just one? How many modified Templates do you have in that style, if its only happening in one? You can see modified templates in the Style Manager, because they show up in RED, however, some templates are part of groups and you have to open the group to see all the templates. FORUMDISPLAY and FORUM HOME are two such groups.

                              Regards,
                              Slappy

                              Comment

                              Related Topics

                              Collapse

                              Working...
                              X