Wikidot Design & Development

Getting user avatars is now easier than ever

Say goodbye to those annoying work-arounds.

Recent changes by Wikidot to the way user avatars are stored means that we can now get a user's avatar without having to resort to exotic server-side or javascript based solutions. Avatars are available at the following url:

// Full size version
http://www.wikidot.com/avatar.php?userid=YOUR-ID

// 16 x 16px version
http://www.wikidot.com/avatar.php?userid=YOUR-ID&size=small

So to use that in an image tag on a live template, all you need to do is:
[[image http://www.wikidot.com/avatar.php?userid=%%created_by_id%% width="40px" height="40px"]]

Thank you Wikidot.

Site design © BMC WebDesign, 2011. All rights reserved. All tutorials on this site are free for commerical use, subject to conditions outlined in the disclaimer.