Announcement

Collapse
No announcement yet.

CSS class for navbits

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

  • CSS class for navbits

    Id like to specify a class for the navbits but cant seem to find the template for $navbits. Anyone know??...
    Thanks,
    Peter

  • #2
    The template search function is a wonderful thing!

    navbar
    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


    • #3
      It is a wonderful thing.....does it have anything to do with my problem?

      I know the variable $navbits exists in navbar template, but where
      could I edit the fonts, css class for the output data. Thats what Im not finding....

      Thanks for your help,
      Peter

      Comment


      • #4
        $navbits doesn't exist in any template but navbar, as the search had indicated. It is in functions.php though.
        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


        • #5
          Originally posted by smachol
          $navbits... is in functions.php...
          Am I correct in saying, then, that to modify the navbar requires PhP coding---therefore this would be a "hack" and not a template modification?

          What I want to do is remove the forum category from the navbar.

          I did look in functions.php, and found "$navbits=makenav" So I went farther down to "function makenav"----but well, I don't know PhP......

          Well, maybe this is beyond the scope of this forum.... but anyway here is the makenav. Can someone tell me what to remove to take out the forum category from the navbar? Just copy and paste in your reply what to remove.... That is, IF this is the right function and IF it's easy for an experienced programmer to spot...


          function makenav($id,$idtype="forum",$highlightlast=1) {
          global $DB_site,$nav_url,$nav_title,$session,$threadcache;
          $code = "";
          if ($id!=-1) {
          if ($idtype=="thread") {
          if ( !isset($threadcache["$id"]) ) {
          $getforumid=$DB_site->query_first("SELECT forumid FROM thread WHERE threadid=$id");
          } else {
          $getforumid['forumid'] = $threadcache["$id"]['forumid'];
          }
          $code=makenav($getforumid['forumid'],"forum",1);

          if ($highlightlast) {
          $templatename="nav_linkon";
          } else {
          $templatename="nav_linkoff";
          }

          if (strlen($code)>0) {
          $code.=gettemplate("nav_joiner",0);
          }

          $threadinfo=getthreadinfo($id);
          $nav_url="showthread.php?s=$session[sessionhash]&threadid=$id";
          $nav_title=$threadinfo[title];

          eval("\$code .= \"".gettemplate("$templatename")."\";");
          } else {
          $foruminfo=getforuminfo($id);
          if ($foruminfo[parentid]!=-1) {
          $code=makenav($foruminfo[parentid],$idtype,1);
          }

          if (strlen($code)>0) {
          $code.=gettemplate("nav_joiner",0);
          }

          $nav_url="forumdisplay.php?s=$session[sessionhash]&forumid=$id";
          $nav_title=$foruminfo[title];

          if ($highlightlast) {
          eval("\$code .= \"".gettemplate('nav_linkon')."\";");
          } else {
          eval("\$code .= \"".gettemplate('nav_linkoff')."\";");
          }

          }
          }
          return $code;

          }
          sigpic Krystof
          Starnectar Free Forums

          Comment


          • #6
            *cough*

            http://www.vbulletin.org/forum/showt...threadid=42398

            Comment


            • #7
              Alright, thanks.
              sigpic Krystof
              Starnectar Free Forums

              Comment

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