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.

Customise Vanilla

edited April 2006 in Vanilla 1.0 Help
Dudes; Am like totally loving the Vanilla goodness, but how am I to customise it? Don't get me wrong; I'm no newbie "OMG WTF HELP?!!?" but i've been scouting around and the forums make no mention of it, and the code isn't too illuminating. Is there a template system of some sort? I want to insert some of my own HTML into the forum; sort of a header/footer arrangement. Ta muchly! M.

Comments

  • are you familiar with css?
  • Oh yes; we're on very good terms!
  • then grab the global.css file and jam on it.
  • Ah yes, but editing the CSS isn't my problem. I'm looking for where the raw HTML is generated, and where I can get some hardcore HTML under my fingernails. I'll play with the CSS once I've whacked in my header & footer! M.
  • Yahah! controls/Common.Controls.php line#286! That'll do nicely.
  • lechlech
    edited July 2005
    heh, if you're rewriting the output like that, expect to be doing it each time you upgrade because those files WILL change without notice. You're better off going at it from the CSS side rather than directly from the output end of the spectrum. Vanilla is very flexible via CSS, you're only making it harder on yourself by mucking with the output.
  • MarkMark Vanilla Staff
    edited July 2005
    If you want to completely change the way that the header and footer look, and you don't want to have to redo it every time there is an upgrade, you'll need to extend any classes that you're mucking about with and perform a custom transformation. Then put that code into a php file and stick it in the extensions directory. I'm working on the documentation for how to do this. It will be a lot more clear when you read it.
  • Okay; good point. I'm pretty good with the CSS, HTML, php lark...but I cannae see how I can add in actual other elements via the 'CSS side' - i'm adding in a block of HTML which i'll then transform with CSS. Wotcha reckon? M.
  • Mark; I was just looking around the other classes and saw that that's pretty much how they work. Without spending a while rooting around your code I'm not going to understand it enough to dive straight in, so I shall await your docs with baited breath! Any idea when you'll let them out into the big wide world? M.
  • MarkMark Vanilla Staff
    I'm hoping I'll have a first draft of the extensions documentation out by the end of the weekend. We'll see how it goes :)
  • Keep up the great work Mark.
  • Mark, I REALLY like to see that documentation as I also like to customize the layout. Is it available now?
  • http://www.lussumo.com/docs/doku.php is all thats available. Some parts are updated and others arent. I believe its only the developer stuff thats in the process of being renewed...
  • Anyway, It'll soon be possible to edit the HTML output using the theming system built into version 1.
    No need to go rooting around in system files or making extensions.
This discussion has been closed.