Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

yet another header question...

edited May 2007 in Vanilla 1.0 Help
I've read through all the header discussions here and still can't figure this out. I'm pretty familiar with HTML and css but do not know any php, which I'm assuming is my major problem here. This is the my site: Vanilla forum located at: I would like that header and use vanilla as my discussion board. The "forum" tab that is there is from phpbb but I think vanilla looks and works better so I'd like to switch it out. Please don't tell me to look at: I've already seen it and still have no idea. Any help would be GREATLY appreciated.


  • Options
    edited May 2007
    Thats funny, I was about to suggest that page.

    You probably would rather do this as a theme then. The instructions below that would work, but they probably just need some clarification.

    Easiest way to do this would be to go into the themes folder, and copy the head.php file into the Vanilla folder that you see in the themes folder. (we do this so that we can change it without touching the default head.php template file)

    Now go into that Vanilla folder, and open the head.php file in your text editor. You will feel much more at home here, as it is mostly HTML. At the bottom you will see somthing like this:echo $HeadString . '</head> <body'.$BodyId.' '.$this->Context->BodyAttributes.'>'; ?>
    All the dollar signs, single quotes and periods are PHP's way to tack text into and around the HTML tags you see. We want to tack on our own two strings for your stylesheet and one for HTML, so we change it as so:echo $HeadString . '<link href="style.css" rel="stylesheet" type="text/css" /></head> <body'.$BodyId.' '.$this->Context->BodyAttributes.'>'; echo ' <div id="head"><a href="#"><img src="/images/logo.jpg" alt="Colts Alumni" id="logo"/></a> <ul id="lang"> </ul> <div id="menu"> <ul> <li><a href="#"><img src="/images/nav-home_on.png" alt="HOME" /></a></li> <li><a href="/forum"><img src="/images/nav-forum.png" alt="FORUM" /></a></li> <li><a href="/contact"><img src="/images/nav-contact.png" alt="CONTACT" /></a></li> </ul> </div> </div>'; ?>

    Note that I added both your existing stylesheet and just copied and pasted your existing header. I haven't looked inside the stylesheet, so keep in mind some things in there might interfere with Vanilla's styles.
  • Options
    Thank you WallPhone - that worked perfectly!
This discussion has been closed.