Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Where do I edit raw html on a custom theme?

I took the BrandFriendly theme and I wanted to redo a lot of the html on it. Where can I find just straight html, like how the master shell file is?


  • lucluc ✭✭
    I don't know about BrandFriendly.
    But themes are able to use either smarty templates (maybe what's used by this theme) or themes made by php.
    The ones included in vanilla2 (applications/dashboard/views, mainly default.master.php) are in php, none are pure html.
  • I found all the files in that directory, but they're almost entirely in php.

    I've seen documentation showing straight html with variables and IF statements, so if anyone could point me to that, that would be perfect.
  • lucluc ✭✭
    AFAIK, none are straight html. The closest thing is the smart templates (.tpl) but the logic is just deported, to a plugin dir in smarty.
    As most views are spread accross the applications, there is no central place for all the views.
  • Well that sucks. I was considering converting my forums to Vanilla, but I was looking for something more open source, not "You can edit the css... AND THAT'S ALL"...
  • lucluc ✭✭
    You can edit the views too.
    Smarty is there so that people not knowing php could change more of the theme too.
  • Sorry, I'm a little noobish with Vanilla and Smarty in general.

    If I wanted to edit the way the main "all discussions" page looked with xhtml, not css, where would I look to edit?
  • lucluc ✭✭
    It depends which parts, as the panel are different modules, the listing of the discussion is a view in vanilla, after that each discussion too. But those are html with php for the logic. So no pure (x)html.
    => applications/vanilla/views/discussions/
  • I tried looking there, but could only find a few lines of 100% php in each file.

    Any clue on where I can find somehting like shown in this image?

    It looks like something that would be accessible straight from the Admin Panel.
  • lucluc ✭✭
    There's nothing like that on the opensource vanilla.

    The file you show on the screenshot is a smarty templates, it does the basic layout, but not the particulars shown as smarty functions such as {inbox_link} etc...

    Some themes are using the smarty templates such as the one you see, but with that you won't be able to change the way discussions are displayed.

    As for the views, they are some "echo html" in the php, and the functions called return mostly html part.
Sign In or Register to comment.