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.

"Staff" badges

edited June 2007 in Vanilla 1.0 Help
Has anyone developed, or is it currently an option that I am missing that would allow me to assign a "badge" to the profile section of the posts?

image

How would one DO something like that? (Above is photoshopped)

Comments

  • I believe your looking for the role tagline option under roles & permissions By default, I believe its just plain text, (IIRC, HTML won't work) but I believe you could style it like your badge image.
  • edited June 2007
    Just found a bug: Double quotes in the role tagline aren't escaped and may break the form HTML when you later edit it:<input type="text" name="Description" value="quote test: "Coffee!"" maxlength="180" ...
  • I entered "moderator" into the tagline feild and now it shows up as < div class="CommentNotice">Moderator< /div>

    My question now would be... what file would you edit to relocate the code in the discussion?
  • It looks like you would need to edit themes/comments.php about 129 (look for AuthRoleDesc) and in themes/account_profile.php about line 22 (look for RoleDescription). Come to think of it, you could upload image files with the description text as their name and just throw that reference to the src of an img tag to get role images.
  • You're talking about wrapping that call in CSS? or something different?
  • Thats what I was thinking on my first comment, but when you asked which theme files you could edit to relocate the badges I realized it would be easier to get the tagline to output simply: <img src="images/Moderator.png" /> instead of bothering with divs and classes. You still could go with css, if you made it output something like <div class="CommentNotice Moderator">Moderator</div>
This discussion has been closed.