Announcement

Collapse
No announcement yet.

Minor code error in VB 2.2.9

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

  • Minor code error in VB 2.2.9

    FILE: online.php (line 266)
    The code segment:
    Code:
    $userinfo[where] = "$bbtitle <a href='index.php?s=$session[sessionhash]'>Main Index</a>";;
    should be:
    Code:
    $userinfo[where] = "$bbtitle <a href='index.php?s=$session[sessionhash]'>Main Index</a>";
    It's just a minor typo.
    Floren Munteanu
    Axivo Inc.
    Axivo Searchlight - Turbocharge your web site

  • #2
    fixed thanks floren
    Scott MacVicar

    My Blog | Twitter

    Comment


    • #3
      I found another one Scott, this one is more related to html:
      FILE: adminfunctions.php (line 421)
      Code:
      function makelinkcode($text,$url,$newwin=0,$popup="") {
        return " <a href=\"$url\" class=\"lc\"".iif($newwin," target=\"_blank\"","").iif($popup!="","title=\"$popup\"","").">[$text]</a>";
      }
      should be:
      Code:
      function makelinkcode($text,$url,$newwin=0,$popup="") {
        return " <a href=\"$url\"".iif($newwin," target=\"_blank\"","").iif($popup!="","title=\"$popup\"","")."><span class=\"lc\">[$text]</span></a>";
      }
      Unfortunatelly you cannot use a class in a <a> tag.
      Floren Munteanu
      Axivo Inc.
      Axivo Searchlight - Turbocharge your web site

      Comment


      • #4
        Originally posted by TECK
        Unfortunatelly you cannot use a class in a <a> tag.
        Since when?

        http://www.w3.org/TR/html4/struct/links.html#h-12.2

        Attributes defined elsewhere

        id, class (document-wide identifiers)
        class would be pretty useless if you couldn't apply it to links directly.

        Comment


        • #5
          Kevin, from what I know, I was never able to use the class attribute in a <a> tag. So:
          Code:
          <a class="lc" href="http://...">
          will display the same way like:
          Code:
          <a href="http://...">
          However, you could use the classic <span> tag (as you know it also) to exploit class the way you want.
          That's what I do me all the time...
          Floren Munteanu
          Axivo Inc.
          Axivo Searchlight - Turbocharge your web site

          Comment


          • #6
            classes absolutely can be used in <a> tags. What browser are you using?

            Comment


            • #7
              I use IE6 Kevin. WindowsXP. However, I used html code for a while and the class in a <a> tag never worked for me. I have no idea why since you are telling me it should work.
              Floren Munteanu
              Axivo Inc.
              Axivo Searchlight - Turbocharge your web site

              Comment


              • #8
                I'm using IE6.1, and today I was working on a test vBulletin, using style sheets from another package, and yes, that one uses classes within <a> tags, and only with those classes did the links look like they should. So, they work

                Comment


                • #9
                  Code:
                  <style type="text/css">
                  <!--
                  .myLink {
                   color: red;
                  }
                  -->
                  </style>
                  <a href="http://www.vbulletin.com/" class="myLink">Red</a>
                  Chen Avinadav
                  Better to remain silent and be thought a fool than to speak out and remove all doubt.

                  גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

                  Comment

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