BeerSmith Home Brewing Forum

News: -- Weekly homebrewing articles on our BeerSmith Blog
          -- Get the latest Brewing News on BrewPoll.com
          -- New BeerSmith build 037 posted on downloads page
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 03, 2010, 03:39:27 AM


Login with username, password and session length


Pages: [1]
  Send this topic  |  Print  
Author Topic: Add a "BrewPoll Voting" button to your web site or blog!  (Read 4721 times)
0 Members and 1 Guest are viewing this topic.
BeerSmith
Brewer, Author, Patriot
BeerSmith Administrator
BeerSmith Grandmaster Brewer
*****

Karma: 33
Offline Offline

Posts: 2338


BeerSmith - take the guesswork out of brewing!


WWW
« on: March 22, 2008, 09:30:52 AM »

Bloggers,

Here's the code to add a BrewPoll "vote now" button to your blog story. The icon shows the BrewPoll vote count, or takes the user to the main page to submit it if the story has not yet been submitted.

  To see a sample of the button in action  - view the bottom of this post!
     http://www.beersmith.com/blog/2008/03/20/new-brewpoll-home-brewing-and-craft-beer-news-site/

 I recommend adding this to the end of your story as scripts can slow your web site loading time.  Both of these create a floating button on the right side of the text.  If you don't want the floating button, you can eliminate the paragraph tags at the beginning and end of each line.

To add it to a single page (like the story page):
 
Code:
<p style="float: right; margin-left: 10px"> <script src="http://www.brewpoll.com/evb/button.php" type="text/javascript"></script></p>

To add it to a page that might have many buttons (like the front page):
   -- NOTE: YOU NEED TO REPLACE 'http://www.targeturl.com' with the actual URL for your story for this to work!!

Code:
<p style="float: right; margin-left: 10px"><script type="text/javascript">submit_url = 'http://www.targeturl.com';</script>
<script type="text/javascript" src="http://www.brewpoll.com/evb/button.php"></script></p>

Finally, you can find a "BrewPoll This!" link you can drag into your browser toolbar so you can quickly add any page to Brewpoll on our guidelines/about page:
    http://brewpoll.com/faq-en.php  -- Look for the "Users - Drag our BrewPoll this link..." which appears right after the list of submission guidelines.

Thanks for supporting BrewPoll!

Brad
« Last Edit: May 07, 2008, 08:06:29 PM by BeerSmith » Report to moderator   Logged

Get articles on our new BeerSmith Blog and news from BrewPoll Brewing News
Ale
BeerSmith New Brewer
*

Karma: 0
Offline Offline

Posts: 1


« Reply #1 on: April 26, 2008, 01:44:23 PM »

I threw together a WordPress plugin to automatically add the button to any of your posts.

Just drop the attached file in your wp-content/plugins directory.

If anyone finds it useful please drop me a line.

* brewpoll.php (2.04 KB - downloaded 281 times.)
Report to moderator   Logged
BeerSmith
Brewer, Author, Patriot
BeerSmith Administrator
BeerSmith Grandmaster Brewer
*****

Karma: 33
Offline Offline

Posts: 2338


BeerSmith - take the guesswork out of brewing!


WWW
« Reply #2 on: April 26, 2008, 05:47:25 PM »

I threw together a WordPress plugin to automatically add the button to any of your posts...

If anyone finds it useful please drop me a line.

Thanks!
  I really appreciate you doing this - it makes the vote count accessible for anyone using Wordpress now.

Cheers,
Brad
Report to moderator   Logged

Get articles on our new BeerSmith Blog and news from BrewPoll Brewing News
Pages: [1]
  Send this topic  |  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC

Copyright 2003-2008, Bradley J Smith, All Rights Reserved | Contact Us
Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM