This item was featured on CodeCanyon
This item is by an Elite Author
GeertDD
- Author was Featured
- Belgium
- Bought between 10 and 49 items
- Elite Author
- Exclusive Author
- Has been a member for 4-5 years
- Item was Featured
- Referred between 200 and 499 users
- Sold between 50 000 and 100 000 dollars
1,545
Purchases
Buyer Rating:
4.50 stars
4.50 average based on 308 ratings.
(more information)
-
5 Star
21870%
-
4 Star
4815%
-
3 Star
299%
-
2 Star
51%
-
1 Star
82%
| Created | 19 July 09 |
| Last Update | 7 November 11 |
| Compatible Browsers | IE8, IE9, Firefox, Safari, Opera, Chrome |
| Software Version | PHP 5.x, MySQL 4.x, MySQL 5.x, jQuery |
| Files Included | JavaScript JS, HTML, CSS, PHP, SQL |
© All Rights Reserved GeertDD -
Contact Envato Support


Hi
I have classified ads MYSQL PHP 5+ websites, and all public pages of all our websites scripts are HTML. Can we use your scripts on our website?
ThumbsUp requires PHP. Including it in static HTML files won’t work, sorry.
Hello, I have some pre-purchased questions. 1) can we vote only up ? and hide the results from the users ? 2) can we set a limit of votes per user(per IP) ? So a user can vote only 3 times instead of just once.(most important part) Thanks
1) There’s a template for just voting up. If you want to hide the results at all times you could add some custom CSS for it.
2) You can set a timeout limit per IP, so a single IP can only vote once every x seconds. Limiting to a predefined number of votes per IP is not a built-in feature but you could add it yourself if you know a bit of PHP.
about question 2) is any chance to help me with that ? I know PHP but I don’t know how you have code it so I am not sure if I could manage to do that.
Something else I would like to ask is if the vote button can easily added to any design.
thanks
Sorry, can’t help much at the moment. You should look into the
catch_vote()method (all code is very well commented).You are free to change the design of the buttons. With a bit of CSS skills you can tweak them a lot. Just replacing the images is possible too: http://graphicriver.net/item/thumbsup-graphics/51644
please please when not can you make it because the thumbs up are very good
Thank you
ThumbsUp requires PHP in order to work, no way around it, sorry. Most webhosts do support PHP, though. Did you try changing your file extension from .html to .php?
Has anyone tried to use it in wordpress? Is it possible?
Thanks.
It is definitely possible. Many buyers have integrated it in WP. It is not a plugin, though. Basic PHP/HTML skills are needed.
How hard is it to integrate into Wordpress. I know a lil html and not much php
Should not be too hard. Just follow the regular installation instructions. You do need to know which of your theme files to edit, though.
Great script! I am having a problem with the voting confirmation using thumbs_up. When you click the button it registers your vote but it doesn’t say “thanks for your vote” you have to click it one more time for it to show up.
Hi, this is probably related to a failing ajax request. Please double-check the “url” setting in thumbsup/config.php. It should end with a slash. Also, make sure you only use a single (sub)domain, either with or without “www”.
Hello. Does this work in weebly?
I had to google for “weebly”.
It seems to be a hosted blog service. I’m quite sure you don’t have the freedom to install PHP scripts like ThumbsUp, sorry.
Great work! Congrats!
public static function load($name) { $cache=new cache; $row=cache->load('thumpup'.$name); $if(!$row){ // Are we loading by id or by name? $key = (is_int($name)) ? 'id' : 'name'; // Load the item $sth = ThumbsUp::db()->prepare('SELECT id, name, date, closed, votes_up, votes_down FROM '.ThumbsUp::config('database_table_prefix').'items WHERE '.$key.' = ?'); $sth->execute(array($name)); // Fetch the item record if it was found if ( ! $row = $sth->fetch(PDO::FETCH_OBJ)){ return FALSE; }else{ $cache->save('thumpup'.$name,$row,5000); } }There’s a method called “catch_vote” in the ThumbsUp code. You could trigger cache removal in there, I guess.
Hello,
is it possible to create poll like that on demo page fitst right, just with 5 questions instaed of two?
Thanks
No, sorry, the whole system is built around up/down votes. A two-option poll is as flexible as it’s gets unless you are willing to do rather large customizations in the code yourself.
I have a site that shows items… those are shown in dynamic pages, can each item get a vote system?
Sure. Just use dynamic ThumbsUp item names. You can use PHP variables in it. For example:
ThumbsUp::item('post_'.$var_with_id);perfect thanks
I can add multiples ThumbsUp in one single post in wordpress?
Ex.: Did you like the movie (ThumbsUp id:1); Want to watch the movie (ThumbsUp id:2); ... in single post.
Sure, as long as you give each ThumbsUp item a unique name. Note that you need to able to add PHP code into the post, or just add it to one of the theme files.
Hello, I have a pre-sale question. I have wordpress and Jarida theme and i wanted to place thumbsup in my posts but im not very experienced with php files besides plugins, I do use filezilla and know where files are located just im having a hard time following the installing instructions just a bit confusing,
Would it work on my web if i purchase it and how hard would it be to install it? Not really sure how to set up the database and all that =/
You might be better off using a real WP plugin. ThumbsUp will work with WordPress but you need some technical skills to set it up.
For Wordpress?
You can make it work on a WP site, yet not as a real WP plugin.
There a guide?
No, not really. Following the regular installation instructions should work for WP if you know your way around with the theme files. There may have been an unofficial tutorial, though, somewhere on the web.
Hi, Just to be sure before I buy, is it php 5.4 compatible?
Sure, I don’t see why not. Let me know in case you encounter a problem.
Pode ser usado em páginas dinâmicas? Ou seja em páginas criadas de forma automática?
You can use ThumbsUp on dynamic pages too. Just be sure to give each item a unique name. You can use PHP variables in the names. The ThumbsUp forms will be created automatically.
Example:
<?php echo ThumbsUp::item('page:'.$var_with_pageid); ?>I hope that was what you were asking. If not, please try English, French or Dutch. Thanks!
HI, I use mini-poll on my sidebar , but it showing the results before voting , I read the documentations and this is not the normal behaviour. how to hide the results till after voting ?
http://www.mepanorama.comThe easiest way to do that is by adding some CSS styles. The form element gets a class “user_voted” after a vote was cast. Hide the results by default (display:none) and show them whenever that class is added to the form.
thanks for the replay this is what I did :
.result1, .result2{display:none;} .user_voted .result1, .user_voted .result2{display:block;}
it works , but then I have different problem , as I use Thumbs Up Down template on the site , the results here are hidden too till after voting , which I don’t want.
any more thoughts ?
Just make your CSS class specific for mini polls which have the “mini_poll” class on the form:
.mini_poll.user_voted .result1 { display:block; } // etc.“IE8, IE9, Firefox, Safari, Opera, Chrome” I.E. 10 . In Opera it allows you to vote but posts no change in results, and you can refresh the page and vote again. In Chrome it will accept the vote but ERROR shows in the results section, Refresh the page and the result show an increase in the vote. How can I make this X -browser compatible? Anybody know?
Make sure you are using a single (sub)domain at all times, either with or without “www”. Also, note that each browser’s cookie settings may differ.