753 comments found.
hi there! how can i display top rated items? and worst rated items?. the post that have the most negative and the post who have more positive. is it possible, I am using wordpress
It is possible, a bit of PHP experience will come in handy, though. Check out this page: http://www.geertdedeckere.be/shop/thumbsup/help#sorting-and-filtering-items
im having an issue where the script works fine on the top of the page but breaks on the bottom of the page
http://perfecttiming.somanypics.com/ where the working vote code is
echo ThumbsUp::item($col_name)->template('thumbs_up_down')->options('align=center')
and the unworking code is
echo ThumbsUp::item($colname)->template('thumbs_up_down_small')
the problem im having is with ajax. the one on the top of the page works as expected but the lower ones reload the page on click =/
any ideas?
the dif var name is there to avoid randomizing in my list, the echo’d outputs are the same.
I just tried it myself and the ajax voting on the bottom ones seem to work fine. Did you fix it already? 
idk what happened but you are correct it works =)
A great product! I have a quick question: I need to restart voting due to a mistake. But I noticed on my computer that the items I voted for still show up with “Thanks for your vote” even though the mysql tables have been reset. I assume it is due to cookies. Is there a way to easily delete cookies for the user that were set prior to yesterday?
Answered my own question. Problem solved.
Alright, well done. 
Hmm, I’ve never spotted that before, weird. I don’t know what is going on there, something with opacity, really strange…
Hi, I’m adding this to a photo slideshow on my site and the voting buttons work fine when clicked with a mouse, but when I try voting from my android smartphone (chrome browser) it’s not logging my votes. It seems like it’s trying, but doesn’t log it. Is there anything I need to change on my site to allow this?
http://MyFiveSeconds.com/newindex.phpNothing special should be needed to make it work on Chrome mobile. Your setup looks fine. One thing I do notice, though, is that you are loading two different versions of jQuery. That should be avoided, just use one.
Thanks for the tip. I made the change to only load jquery once. I’m still not sure why the voting button isn’t working with Chrome.
If you happen to think of anything that would help let me know. Thanks again for your help.
Hi, I just finished the install process (great documentation by the way!), and after adding it to a relatively empty page on my site (for testing), I can’t get anything to display. Here’s some code details. Let me know if you need more. Any help would be appreciated. Thanks. -Arend
Site: http://www.myfiveseconds.com Page I’m setting this up on: http://www.myfiveseconds.com/thankyou.html
Config.php ‘url’ => ‘http://myfiveseconds.com/thumbsup/'
Thankyou.html
<?php include ’./thumbsup/init.php’ ?>
<!DOCTYPE html>
<html lang=”en”>
<head>
<title>Thank You</title>
<!-thumbsup css->
<?php echo ThumbsUp::css() ?>
<script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js”></script>
<?php echo ThumbsUp::javascript() ?>
</head>
<?php echo ThumbsUp::item(‘mfsthankyou’) ?>
Make sure you only use a single (sub)domain, either with or without “www”. Otherwise it causes problems with ajax due to cross-domain requests.
http://davidwalsh.name/no-wwwOk, I made the change to a single domain without www, but thumbsup voting button is still not displaying. What else can I check?
You need to put it in a PHP page. PHP is required to run the script. So change the file extension from .html to .php and try again. 
OK. I changed the extension and now I’m getting the following error (I had turned debug on).
Uncaught exception ‘PDOException’ with message ‘SQLSTATEHY000 Can’t connect to local MySQL server through socket
You should double-check your database_dsn string in the thumbsup/config.php file. Also, make sure you set up your database correctly.
I reviewed the config.php file and I believe it’s configured correctly (see below). Aside from running the sql you included in the documentation to set up the database, I don’t think anything needs to be done. According to what I’ve read, my provider has PDO enabled for my hosting plan.
Config.php: ‘url’ => ‘http://myfiveseconds.com/thumbsup/',
‘database_dsn’ => ‘mysql:dbname=mfsthumbsup;host=localhost’,
‘database_user’ => ‘username’, ‘database_pass’ => ‘password’, (note: I replaced username & password with generic names. These are correct in the actual file)
I did some research and found a posting from someone who was getting the same error. Turns out ‘localhost’ won’t work with godaddy, you have to use the IP Address for your database. If you login to the db manager you’re ip will be displayed. I plugged this into my config.php file and it’s working now and looks great.
Any chance you could do a future release with more voting button options?
Okay, well done. As for new button designs, feel free to tweak the images or CSS for your own site design.
One more question and I’m out of your hair. I’m using the ‘thumbs_up’ template and for some reason, the count is left aligned inside the template. I’m sure it’s being overriden by my css, but not sure how to fix it. css isn’t my strong suite. I know this is more of a css question, but any help would be much appreciated.
As you said, probably a CSS conflict with the styles from your site. Easiest way to debug is to use a web inspector tool, like Firebug. Hard to tell what to change exactly without looking at the actual site.
hi.. I found: Thumbs Up….......
1) Can I change the images of the “thumbs- -up” and “thumbs-down” images?
2) I am working, with the help of a more skilled PHP programmer on a dynamic photo gallery.. I would like to add the voting function to this dynamic gallery.. how can this be done?
Thank you very much.
Rotem Bor
The answer to both questions is “yes”, but I replied to your email already with a bit more explanation. Thanks.
Hello i have a problem please ca you help me. Fatal error: Class ‘ThumbsUp’ not found in /homepages/8/d375131636/htdocs/html/thumbsup.php on line 55
Probably the include path that is wrong. Try different relative paths (depends on your directory setup):
include '../thumbsup/init.php'; include '../../thumbsup/init.php'; include '../../../thumbsup/init.php';
Thanks it works
It’s not working for me and I followed all instructions.
http://mymagspread.com/thumbsup/test.htmlI started all over. Please take a look at http://mymagspread.com/thumbsup.html
This is the code for my html page
<?php include ’/home/content/37/8378937/html/thumbsup/init.php’ ?> <!DOCTYPE HTML>
<head> <meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8”> <title>Untitled Document</title>
<?php echo ThumbsUp::css() ?> <script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js”></script> <?php echo ThumbsUp::javascript() ?>
</head>
<?php echo ThumbsUp::item(‘item_name’)>template(‘thumbs_up’)>options(‘align=left’) ?>
First of all, you must use the ThumbsUp script in a PHP file, it will not work otherwise. So, use .php as the file extension instead of .html. The rest of your setup looks fine, from what I can see from the code you posted.
I got it to work. I have an issue with the admin page though. http://mymagspread.com/thumbsup/admin
username:demo password:demo
Unable to delete or edit and save. Brings up window “error”
You need to add “www” to the URL because that’s how you configured it.
Awesome voting buttons! I’m very interested in purchasing, but I’ve got a question about performance. I’m looking to add voting buttons to my website (www.myfiveseconds.com), one for each photo displayed (usually 150 total), but I’m wondering if it’l slow down the time it takes to initally load the landing page when people view the site? I initially added a facebook like button to each photo but it significantly slowed down my site (due to each button having to talk to fb). I’m thinking if I have something like this set up within my site, the response time won’t be affected much. Any feedback would be much appreciated. Thanks in advance.
One more question. I know my way around html code (but I’m not a programmer) and from the look of the install instructions, I’m sure I could get this set up no problem. Just curious about adding thumbs up items. I add pictures to my site daily so I would be adding thumbs up items daily. My question is, when I add a line of code for a new thumbs up item and give it a unique name, do I need to go into the database and add that name, or is it added automatically?
ThumbsUp items are added automatically if they don’t exist yet, just make sure you use a unique item name for each photo.
As for performance, vote count will need to be looked up in the database for each item, using a quick query. The script and styles only need to be loaded once regardless of the number of ThumbsUp items on the page. I remember a buyer who created thousands of ThumbsUp items without problem (can’t find his comment anymore, though). Anyway, ThumbsUp should be able to scale okay.
here its in action on a friends site : amazing thumbs up script http://www.heiss-oder-nicht.de
Hey, thanks for showing. Well implemented in the layout. Thumbs up! 
Hello
I’ve got one question before buying. I want to add thumbsup on all my pages (stores locator). It means that for all stores, i will have one distinct ID for each store.
How can y generate dynamicly all correponding ID in Thumbsup table ?
Ex : on the store locator 498, i want to have the thumbsup 498, but this one doesn’t exist. Is the first time someone will click, it will insert in thumbsup table? And the second and the next, it will update the table?
Thanks for your answer. Regards Johann
All you need to do is provide a unique ThumbsUp item name per store. You can use simple PHP string concatenation to do so:
echo ThumbsUp::item('store_'.$storeID);
Then the item will be generated if it doesn’t exist yet, and from the second vote on it will just update the vote count.
Hello thanks for the answer. I’ve just bought it then. I’ve modified the config. I’ve created the table. And now how to implement button on my stores ? What do i have to put in my php store file ?
Because when i go on the directory thumbups in local, it is dowloading me the index.html. Stange no ?
Thanks again for answer Regards johann
OK sorry about that, i have found your tutorial. It is OK.
Just one question please. Could you please all the line code with echo store ID ,thumbs_up_down and the numbersof each and global please ? something with echo ThumbsUp::item(‘store_’.$storeID); and echo ThumbsUp::item(‘item_name’)->template(‘thumbs_up_down’);
Thanks a lot Regards johann
You can access the properties of a ThumbsUp item object directly, if that is what you’re asking:
echo ThumbsUp::item('name')->votes_up;
echo ThumbsUp::item('name')->votes_down;
echo ThumbsUp::item('name')->votes_total;
Hello Thanks i’ll try then.
Th
Hello
Works great ! thanks
Hi there,
I’ve got ThumbsUp working (ish) on my Wordpress Website but I have a problem with cookies (I think). I appreciate you don’t really support WP but I thought I’d ask if you would be prepared to take a look at the following test page and let me know what you think is going on.
When I click up or down, it comes up with an error however the database is updated and upon a page refresh the correct numbers are displayed. Obviously the ThumbsUp object should be disabled at that point and that got me thinking about cookies. I double checked in Firebug and I confirm that is no cookie being created. I have some skills but not enough to understand why or how to correct. Site is linked below.
Any help would be really appreciated.
Best regards Andrew
You need to use a single (sub)domain, Andrew, either with or without “www”: http://davidwalsh.name/no-www
Thanks for the prompt reply. Ok got that sorted but have lost the CSS. I’ll keep plodding away but if there is a quick fix I’d much appreciate a pointer in the right direction.
Many thanks Andrew
Not to worry – all sorted. Someone had set the General Settings in Wordpress to be www. Once I get rid of that, it all worked perfectly. It’s been a few days work, but I got there in the end. I wonder if I even need the rewrite in .htaccess now? Enough for now anyways… Happy days!!!
Some questions before I buy:
1) Does this work in Chrome 2) Does this work in Safari 3) Does this work in Firefox 4) Does this work in IE
The reason I ask is because it cannot get it to work in any of those browsers properly and so would appreciate some feedback. If I purchased this and it didnt work as expected would you be able to fix it for me?
Thanks
It should work in all those browsers. IE7 and older are not supported. Feel free to try it out for yourself in any browser you like: http://www.geertdedeckere.be/shop/thumbsup/
When installing do make sure your site runs on a single (sub)domain, either with or without “www”: http://davidwalsh.name/no-www Cross-domain ajax requests tend to be buggy in many browsers.
I have purchased the plugin but am having some difficulties. I emailed you with the ftp info and the problem
Sorry, doesn’t look like I received your email. Please, mail again.
Just sent it again via your profile page. Thank you.
Hmm, really sorry, but I didn’t receive your mail. I checked my spam folder too. I tried the contact form myself as well, and that mail did arrive. Weird. Just try geert [at] idoe [dot] be directly.
Is there a (easy) way to integrate the script to Laravel Framework?
I have no experience with Laravel but I guess it shouldn’t be too hard. You just need to include the ThumbsUp classes via its init.php file.
Maybe this helps: http://forums.laravel.io/viewtopic.php?id=3130
Pre-sales question:
Can you tell me if it will work within the wordpress loop? – I want to display on homepage and category pages just below the excerpt.
Also, I’m using WP Super Cache, will it work ok with this?
Double Also, if I have 15-20 posts on my homepage, will the inclusion of your script have a noticeable impact on page load times?
Thanks, Paul
You can use it with WordPress and in the WP loop. The key is to use unique ThumbsUp item names. You can easily use the post ID, for example, to generate these names.
I’m not sure about WP super cache. The vote buttons should keep on working but the vote count may need to be refreshed from time to time if the HTML is cached.
The script is loaded once (javascript file, css file and a few images) regardless of how many items you use it for on a single page. A database query is needed to look up the current votes for each item.
Thanks, i assume then that as I’ll be posting multiple posts per day that the homepage/category pages will have their cache’s cleared and as a result will refresh the plugins rating counts?
Are examples/instructions on how to implement the Post ID for the ThumbsUP item names included within the plugin somewhere? If not, could you fire across a quick example for me to work with?
Thanks again, Paul
Concerning the caching, that’s how I guess it will work. Got me thinking though, after a user votes the vote count will be refreshed but when a user then refreshes the cached page it won’t be updated and the “user_voted” css class may not be added. Not that the user can vote again, but it may initially look like it since the button doesn’t have a disabled look. Contact me via email if you like to do some proper testing prior to buying.
Here’s a quick example of a dynamic ThumbsUp item name, which could go in the WP post loop:
echo ThumbsUp::item('post:'.$post->ID);
Hello,
I am looking to add this voting system to my member website, so that members can vote on each other ranks.
Would you be able to customize this voting system into my current wordpress members profiles pages?
If you use unique ThumbsUp item names, say for each member, you can just this script as is. If you want to assign a certain rank to a user after he got a certain number of votes, you’ll need to add a small customization. I guess the code would go into the catch_vote() method of the script. Note that I provided ample comments throughout the ThumbsUp code. I don’t do customized installations on your server, though.
Hi I installed the script, and when I got to admin area, I cannot see what the default password is for the admin user, where in the documentation is that specified, to get to the Admin pages?
HI nevermind, found it.
Good job! In case others are wondering: it’s in thumbsup/config.php.
First of all thank you for this library. It’s a charm. When I press thumbs up and if there is no network connection, it displays “Error”. I want to change the “Error” message to some other text. For example just a dash ”-”.
How can I change the “Error” text to ”-” ??
Thank you in advance.
Hmm, you need to edit the thumbsup javascript file. Search for “error” and replace the string. Be sure to change the minified js file too.
Fatal error: Uncaught exception ‘PDOException’ with message ‘invalid data source name’ in /homez.734/xronn/www/thumbsup/classes/thumbsup.php:70 Stack trace: #0 /homez.734/xronn/www/thumbsup/classes/thumbsup.php(70):
Do I have to change my htaccess file, I didn’t quite understand what to do 
Hmm, I fixed that but now have this no sure why
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATEHY000 Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' in /homez.734/xronn/www/thumbsup/classes/thumbsup.php:70 Stack trace: #0 /homez.734/xronn/www/thumbsup/classes/thumbsup.php(70): PDO->__construct('mysql:mysql51-8...', 'xronnblog', 'timmy12345', Array) #1 /homez.734/xronn/www/thumbsup/classes/thumbsup_item.php(121): ThumbsUp::db() #2 /homez.734/xronn/www/thumbsup/classes/thumbsup.php(214): ThumbsUp_Item::load('battlearena') #3 /homez.734/xronn/www/portfolio.php(92): ThumbsUp::item('battlearena') #4 {main} thrown in /homez.734/xronn/www/thumbsup/classes/thumbsup.php on line 70
Does the server have PDO installed with a MySQL driver? If in doubt, please ask your host. Thanks.