Michael Angstadt's Homepage
< Back to Projects

Javaranch forum flair

I was inspired by the user profile "flair" found at Stackoverflow and I thought it would be fun to create my own flair for the JavaRanch Forums.

Displays your name, ranking, and number of posts along with your profile picture if you have one.

Javascript

This will add the flair to the page using Javascript's document.write() method. You must replace the ID number in the URL with your JavaRanch member number. You can find your member number on your profile page.

<script
  src="http://mikeangstadt.name/projects/flair/javaranch.php?id=209694&type=js"
  type="text/javascript">
</script>

HTML

If you can't or don't want to use Javascript, you can use an iframe instead. You must replace the ID number in the URL with your JavaRanch member number. You can find your member number on your profile page.

<iframe
  src="http://mikeangstadt.name/projects/flair/javaranch.php?id=209694&type=html"
  marginwidth="0"
  marginheight="0" 
  frameborder="0"
  scrolling="no"
  width="220"
  height="100">
</iframe>

Image

This will dynamically generate an image, creating something which looks similar to the HTML and Javascript versions. PNG and JPEG formats are supported. You must replace the ID number in the URL with your JavaRanch member number. You can find your member number on your profile page.

<a href="http://www.coderanch.com/forums/user/profile/209694">
  <img src="http://mikeangstadt.name/projects/flair/javaranch.php?id=209694&type=png" />
</a>

JSON

You can get the raw data using JSON if you'd like. You must replace the ID number in the URL with your JavaRanch member number. You can find your member number on your profile page.

JSON URL: http://mikeangstadt.name/projects/flair/javaranch.php?id=209694&type=json