I have a nice "Flag this post" icon ready to use with the Abuse module but am unsure of how to implement it.

I have seen php code for the text link about 3-4 times throughout the abuse.module file but don't know how to replace it with an image.

Comments

gondwanan’s picture

Can you just put in html?

Only local images are allowed.

Baker’s picture

No you can't and I have the same request/desire. ...looking elsewhere...

mrgoltra’s picture

how about CSS?

Baker’s picture

Nope. I couldn't find a way to do it in CSS either. I did find a way to do it here...

http://drupal.org/node/49393

That's all the information you'll need to replace text with icons and modify the text as well.

mfer’s picture

If you want to replace text with an image the appropriate place to do that is in the CSS.

This keeps it screen reader friendly. Images should only be in the page if they are content. That isn't the case here so CSS replacement is the way to go. And, it's fairly easy.

jaydub’s picture

Status: Active » Closed (won't fix)

This is outside the scope of the abuse module. As previous posters have stated icons can be done in CSS.

An example:

HTML
<a href="link" class="abuse-link" id="abuse-link-report">Click me</a>

CSS
#abuse-link-report {
  background-image: url(images/abuse.png);
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: 0px 50%;
  padding-left: 20px ! important;
  width:16px;
  height:16px;
}