
If you run your own website or blog and would like your visitors to be able to show their appreciation for your content by buying you a drink, you can add one of our cool buttons to your site. We think of it as Flattr for beer! Its easy to install and will link directly to our buy a drink page with all your information already filled in.
Feel free to mix and match the options below as they should all degrade gracefully. Let us know if you have any other suggestions: tech at buddybeers dot com
Showing a name in the button:
name=true parameter to the script tag’s src attribute.name=The%20Buddy%20Beers%20Staff will result in a button that says “Buy The Buddy Beers Staff a Beer”Showing a drink name in the button:
price_id) to the script tag’s src attribute the price name will be displayed in the button. Also, upon click, the user will be redirected to the buy a beer form with the correct drink and bar chosen. For example, passing price_id=385 will result in a button that reads “Buy me a Carlsberg” and that links to the buy a beer page with The Buddy Beers Office Bar and 1 Carlsberg chosen. Price IDs can be fetched via our API.drink=A%20Cold%20One will result in a button text of “Buy me A Cold One.” This method can also be used to override the drink name when passing a price_id (as mentioned above). For example passing price_id=385&drink=a%20frosty%20Carlsberg will result in a button with the text “Buy me a frosty Carlsberg” but that still links to the form with the appropriate bar and drink chosen.Linking to a specific bar:
If you pass in an id for any bar in our database as a parameter (location_id) to the script tag’s src attribute the bar will be automatically selected when the user clicks through from the button. For example passing location_id=272 will link the user to the buy a beer form with the Buddy Beers Office Bar automatically chosen. Bar IDs can be fetched from our API.
Cette page a été mise à jour le: 1 May 2013