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.

accepted answer checkmark

edited March 2012 in Vanilla 2.0 - 2.8

How do you get the circled checkmark next to an accepted answer like on this form?

Best Answer

  • jspautschjspautsch Themester ✭✭✭
    Answer ✓

    First download the image (or whatever image you want to use) and place it in your theme's design folder (or wherever your css file resides): http://www.vanillaforums.org/themes/vforg/design/check.png

    Then add the following code to your CSS file:

    .QnA-Accepted {
        background: url("check.png") no-repeat scroll 0 0 transparent;
        display: block;
        height: 40px;
        left: -50px;
        overflow: hidden;
        position: absolute;
        text-indent: -1000px;
        top: 10px;
        white-space: nowrap;
        width: 40px;
    }

Answers

  • jspautschjspautsch Themester ✭✭✭
    Answer ✓

    First download the image (or whatever image you want to use) and place it in your theme's design folder (or wherever your css file resides): http://www.vanillaforums.org/themes/vforg/design/check.png

    Then add the following code to your CSS file:

    .QnA-Accepted {
        background: url("check.png") no-repeat scroll 0 0 transparent;
        display: block;
        height: 40px;
        left: -50px;
        overflow: hidden;
        position: absolute;
        text-indent: -1000px;
        top: 10px;
        white-space: nowrap;
        width: 40px;
    }
  • Thank you!!

  • This is working great but one problem. There isn't a way now to reject a previously accepted answer.

  • Sorry, I see now this is a issue with vanilla itself and not the css. How does one allow a user to reject a previously accepted answer? Also, is there a way to only allow one accepted answer?

  • ChanuxChanux Admin of Geek.lk ✭✭
    edited March 2012

    background: url("check.png") no-repeat scroll 0 0 transparent;

    it is working properly. but i have small problem. im using default theme.

    i added a image in to

    themes\default\design

    image path is wrong

    then i added in to

    vanilla\applications\dashboard\design\images

    not working

    but i add image url like this, its working.

    http://www.vanillaforums.org/themes/vforg/design/check.png

  • Thank you.. i like this :)

Sign In or Register to comment.