Jump to content

Download: Blank Avatar Per Skin


Mat Barrie

Recommended Posts

File Name: Blank Avatar Per Skin
File Submitter: Mat (FDNZ)
File Submitted: 19 Feb 2010
File Category: Hooks and Plugins

Blank Avatar Per Skin

This modification will override the default IPB behaviour of using a single "blank avatar" image in the style_avatars folder to instead use one out of your currently selected skin's folder. The advantage to this hook is that you don't need to use dodgy PHP code in your templates.

To use, simply enable on your forum and add a file named "noavatar.png" to your skin folders. IPB will then use your new "noavatar.png" image in place of its own.

If you would rather use a .gif or .jpg image, you can override the file name by adding a new setting called "hookBlankAvatarImageName". This will override for all skins so make sure the file exists for all of them.

Distribution Notice

The usual restrictions on distribution do not apply. If you would like to distribute this hook with a skin, feel free to do so. You don't have to, but we'd love for you to let us know if you do distribute this hook with anything just so we know how well it's being received.

Version History

v1.0.0 Initial Release

Price

This modification is available at no charge. As usual, donations are not required, but you're welcome to send us some cash anyway.

Click here to download this file

Link to comment

It doesn't need to be on top. It'll extend whatever is before it. All it will do is modify three values of the poster data ($poster['avatar'], $poster['avatar_location'] and $poster['avatar_type']) and hand it back into the chain for processing.

I just noticed though a gigantic bug in ipsController though, that causes only the first action overloader to ever execute. IPS is already aware of it and has fixed it for 3.1 - in the meantime you can cludge your forum install using this article to fix that: http://community.invisionpower.com/resources/official.html?record=305

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...