Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter
Support for Vanilla Forums Cloud product

In this Discussion

Follow Us

How could I create a custom sticky graphic?

3stripe3stripe ✭✭
edited September 2007 in Vanilla 1
I dig the bookmark icon that sits just under the top border of a bookmarked post... would it be possible to do something similiar for sticky topics, instead of the [Sticky] prefix? You would have to disable insertion of the [Sticky] text in the code somewhere?


  • I've been thinking about this myself. You could technically link an image to this location. However if mark could give an admin option to change the seperator "," to something else or remove it as necessary that would be needed for total control :D
  • 3stripe3stripe ✭✭
    edited July 2005
    Aye, I think that bookmarks and stickies should be in the same style, if you're talking consistency, which I often do. I can picture some sweet graphics for this, probably midget-sized stickers that are slightly peeling off the top right corner of the post, mmm tasty. (Also a good excuse to get some drop-shadow's on the go :-)
  • a great idea guys, i also thought the large [Sticky] text was slightly garish.
  • Well, I'll probably say that before it's a core function it will likely be an extension :D
  • 3stripe3stripe ✭✭
    edited July 2005
    Where have all the damn programmers gone when you need them :-?
  • Looking for internet babes in WoW.
  • What's WoW?
  • World of Warcraft
  • Ok nuff said.
  • What happens if it's sticky and bookmarked?
  • 3stripe3stripe ✭✭
    edited July 2005
    It becomes 'Superglued' ??!! Good point, not sure how to fix that, they would have to stack up on each other, or side by side, doesn't sound very elegant though. Hang on, what kind of muppet would bookmark a sticky... anyhow...
  • What happens if you make a private discussion sticky?
  • Ok so if there was a Private or Sticky graphic, it would have to sit in the top left corner then maybe.
  • Mark, how about a feature like on our other boards where if you click "bookmarks" it displays only those threads you've bookmarked?
  • Um. Isnt that what 'discussion filters -> bookmarked discussions' does?
  • Lol, or is he kidding
  • I mean instead of just stuffing the last X ammount in the sidebar, clicking on "display all" bookmarked discussions displays much in the same way as "your discussions" would.
  • I still dont get it. Whats the difference between how the 2 functions act?
  • something like these would be excellent:
  • Mini, what I'm talking about is completely different from 3stripes idea for images and should probably have a topic of it's own. But say you have well over 40 bookmarks (for whatever reason), you can't exactly see them all, can you? clicking on the bookmarks header would just display all the threads you've bookmarked since the begining of time for that forum and display them much like discussions. Certainly you understand that, right?
  • Er, this reminds come when I click "Show All" at the bottom of the history section in the sidebar, I see:
    "Some problems were encountered
    The requested discussion could not be found."

    Or should I be asking that somewhere else?
  • I can't see anything stopping you from doing a sticky graphic right this very second. All sticky threads have class="Sticky" so you'd just need to specify a background image or whatever you want in your stylesheet. And you can disable the big text easily in the admin settings panel.
  • hey thanks unipus, totally forgot about the admin panel!
  • domdom
    edited July 2005
    The only thing you can't do (I'm guessing, but haven't investigated the underlying HTML) is have multiple images, for when something is more than one of bookmarked/private/sticky, etc.

    The only way to solve that is to add extra markup, which isn't great.


    Ok, maybe there is a way. I haven't tried it, and don't have access to a working install from work, so can't try it until I get home, but...

    If you were to change the admin options to indicate a sticky discussion with...

    <span class="sticky">[Sticky]</span>
    ...then it hopefully won't strip the HTML or anything crazy, and you'd be able to use image-replacement techniques on that span.

    Repeat the process for all the other discussion flags, and you could do whatever the hell you like!

    Anyone wanting to test this out, go fiddle with the admin options and check out the source code generated, or give us an url to go look at. Failing that, I'll give it a shot when I get home.
  • Is this what you mean, dom? see how i have unipus' icon on the discussion.
  • Well, it may be what I mean, but given that you require registration I couldn't say. Still, I applied for an account, so lemme in to see the goods!
  • oh, i opened it up and approved you now.
  • domdom
    edited July 2005
    Yup, exactly like that. So, we can add HTML into the things, and use CSS to style it. I'll play with some CSS this evening maybe, otherwise tomorrow evening, and show you all how it turns out. edit: If anyone has any particular graphics they think would be nifty to use, then link me up baby, link me up. Otherwise I'll make some shoddy things for testing purposes.
This discussion has been closed.