The idea of service is very simple: to provide the users of social networks (FaceBook, Facebook, and Twitter) to vote for any of the brands on your account the appropriate link. Interestingly, the voting process has a "viral effect", when every other voice speeds up the process of getting a new voice.
After a week of service had 100,000 visitors per day.
In the discussion of this topic in the viral effect on serche I proposed to apply it on the blogs. Sure to write a separate script for this "social voting" did not want to, so I made all the easier.
For the background I have Vkontakte button Save VKontakte .
Next, I created a picture of brands (Skype against ICQ) and for which the proposed vote. The unit of "The Battle of Brands" I placed after the post. Voting results certainly are not as impressive as I'd like, but still there.
Honestly traffic increased by about 10-15 hosts per day (of course, not a lot).
Today I made a few more votes, which will be periodically replace each other.
What brand do you like more?
Download script Battle of Brands
To install on your site "The Battle of Brands" just download the file (60 kB), Cast it to the root of the site and unzip.
At the very end of the file style.css add the following line:
In the template file single.php your WordPress theme in the place where you want to display a vote, usually immediately after the line <? Php the_content (");?> Add just one line:
Everything. The script works.
Asynchronous script loading
Any java script slows the loading of web pages. To avoid this, the script can be loaded asynchronously.
In the place where you want to display a block "Battle of the Brands" insert the following line:
"golosa_block" class = "golosa_block" ></ div > <Div id = "golosa_block" class = "golosa_block"> </ div>
At the end of the HTML document before the closing BODY tag is inserted: