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.

Possible to have images in the discussion list?

edited July 2006 in Vanilla 1.0 Help
Just trying to find out if it it's possible to include "<img>" tags in the discussion list ? Thanks.

Comments

  • lechlech
    edited July 2006
    //edit I'm a misreading idiot as usual

    what you want to do is plant a background image for each type of discussion/category in the stylesheet according to their class or ID.

    IE:
    #ContentBody ol.Categories.Category_1 { background: url("/path/to/image01.gif"); }
    and so on for each different category. This would all be CSS specific markup.
  • Although that extension doesn't allow you to insert images into the discussion title so that it shows up in the discussion list, does it? realblanka, could you be a bit more specific in what you want? Do you want users to be able to pick a little icon that shows up next to the discussion title (I know there are forums where you can do that), or do you want an image next to each discussion based on the cateogory it's in, or based on something else? What do you want!? :)
  • Should have been a little more specific. Yeah bjrn, say if I had a category of auto parts and I wanted to have a tiny icon or pic of each part next to it's discussion title. Would that be possible? I suppose I could just 'try' to post a discussion with an "<img>" tag myself ;)
  • Well, you can do something with that, I know 0bvious has done it on his forum, which is called The Huge Entity. I have to admit that I haven't looked to see if I could figure out how, or ask for that matter. I'm sure 0bvious wouldn't mind telling you! :)

    Or perhaps you could have a look at the Category Colour Changer extension which changes colours of discussions in the discussion list based on the category they belong to.
  • As mentioned before, since every category has it's own class name, you can style a certain category's discussions by applying styles to that class.

    In the case of adding an icon, you need to set the background image to the icon, and bump the text out of the way (either with padding or text-indent).
This discussion has been closed.