First widget now available!
As we wrote on our previous development journal entry we are working on a set of API/widgets for our users to use on their own websites.
The first and probably most important from this series is the voting widget. You can now have on your blog, website or whatever a small widget that will let users vote for your item on fooWHO.com .
There are two ways to use this feature:
First, you can start by creating an item on fooWHO.com. On the item's page you will see a small box with the widget script. Copy that script to your web-page and every user entering your page will be able to vote for you.
The second and probably more productive method is to enter a code to your web page and allow you to quickly add the item to fooWHO by clicking a "submit" button on your page. Neat huh? You can now use this script to add a fooWHO widget to your blogs without having to worry about adding the item manually.
For the automatic method, all you have to do is tell the script what category the page belongs to and that's it.
<script type="text/javascript">
item_top_category = "general";
item_sub_category = "blog";
</script>
<script src="http://www.foowho.com/vote.js" type="text/javascript"></script>
Perhaps you'd like to include some body text to your automatic items. Maybe a short paragraph from your blog entry or a short description to you website. You can do this by adding item_bodytext = ""; to the first part of the script. So now your code may now look like this:
<script type="text/javascript">
item_top_category = "general";
item_sub_category = "blog";
item_bodytext = "A description of my website";
</script>
<script src="http://www.foowho.com/vote.js" type="text/javascript"></script>
Below is a complete list of everything you can change to suite your needs:
Stay tuned for more features!
The first and probably most important from this series is the voting widget. You can now have on your blog, website or whatever a small widget that will let users vote for your item on fooWHO.com .
There are two ways to use this feature:
First, you can start by creating an item on fooWHO.com. On the item's page you will see a small box with the widget script. Copy that script to your web-page and every user entering your page will be able to vote for you.
The second and probably more productive method is to enter a code to your web page and allow you to quickly add the item to fooWHO by clicking a "submit" button on your page. Neat huh? You can now use this script to add a fooWHO widget to your blogs without having to worry about adding the item manually.
For the automatic method, all you have to do is tell the script what category the page belongs to and that's it.
<script type="text/javascript">
item_top_category = "general";
item_sub_category = "blog";
</script>
<script src="http://www.foowho.com/vote.js" type="text/javascript"></script>
Perhaps you'd like to include some body text to your automatic items. Maybe a short paragraph from your blog entry or a short description to you website. You can do this by adding item_bodytext = ""; to the first part of the script. So now your code may now look like this:
<script type="text/javascript">
item_top_category = "general";
item_sub_category = "blog";
item_bodytext = "A description of my website";
</script>
<script src="http://www.foowho.com/vote.js" type="text/javascript"></script>
Below is a complete list of everything you can change to suite your needs:
- item_link_url: A direct link to the website (default: the url of the page you included this)
- item_title: The title of your item (default: the title of the page you included this)
- item_top_category: The top category of your item (default: general)
- item_sub_category: The sub category of your item (default: blog)
- item_country: The item's relevant country (default: international)
- item_bodytext: Text that will be displayed in the item (default: blank)
Stay tuned for more features!
