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.
Options

Plugin Resolved : Glyphicon

Vanilla 2.2
Theme : Bootstrap : https://vanillaforums.org/addon/bootstrap-theme
Plugin : Resolved : https://vanillaforums.org/addon/resolved-plugin

Hi all,

I installed the plugin Resolved, but it lacks the icon Glyphicon

I can not put the icon.

He takes me white

Here is the library of Glyphicon: http://getbootstrap.com/components/

Thanks for your help

Tof

File: class.resolved.plugin.php

Comments

  • Options
    hgtonighthgtonight ∞ · New Moderator
    edited January 2016

    They have the code in there to generate a sprite but they don't use an existing sprite code. Modify line 163 of class.resolved.plugin.php to be:

    echo '<li class="Unresolved">'.Anchor(Sprite('SpUnresolved', 'SpBan Sprite').' '.$Unresolved, '/discussions/unresolved').'</li>';
    

    That should give you an icon.

    Or you could add whatever CSS rule you want for .Sprite.SpUnresolved inserting the glyphicon of your choice.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options
    TofTof
    edited January 2016

    Thanks for your help
    The line has been changed and it works!

    But for the second modification, could you give me an example I can put in csseditor
    because my level of development is low...

  • Options
    hgtonighthgtonight ∞ · New Moderator

    Bootstrap uses FontAwesome 4.2.0. You can use any icon in the font. Here is a link to the CSS classes that were available then: https://github.com/FortAwesome/Font-Awesome/blob/9868306c256ac149d9b7b829805fe408eaa03b99/css/font-awesome.css

    You would add something like:

    .SpUnresolved:before {
      content: "\f009";
    }
    

    To CSSEdit.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options

    A very big thank you!

Sign In or Register to comment.