Mat Barrie Posted February 19, 2010 Share Posted February 19, 2010 File Name: Blank Avatar Per SkinFile Submitter: Mat (FDNZ)File Submitted: 19 Feb 2010File Category: Hooks and PluginsBlank 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 NoticeThe 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 ReleasePrice 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
PSXHosting Ltd. Posted February 19, 2010 Share Posted February 19, 2010 Good mod but why does the hook need to be ontop of everyone else? I have another mod (Bump Up Topics by terabyte) which requires to be ontop so I cant use this one. :P Link to comment
mld11 Posted February 19, 2010 Share Posted February 19, 2010 Just move it down with the two-way arrow. >.> Link to comment
Olivier Turbis Posted February 19, 2010 Share Posted February 19, 2010 Good job Mat. :) Link to comment
Mat Barrie Posted February 19, 2010 Author Share Posted February 19, 2010 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.