753 comments found.
I got the following error Fatal error: Uncaught exception ‘PDOException’ with message ‘SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘topweb_reviews.reviews_items’ doesn’t exist’
I see only two tables created by sql but this third one reviews_items doesnt exist and not sure how to create one.
No idea where that third table comes from. Are you sure this is directly related to ThumbsUp? ThumbsUp needs an items and a votes table.
Hello – can I use it to allow visitor to rate the images on the page.? the images is all uploaded from profile and are there for not generate in admin panel. how can I be sure it will fit my php site (made pure in php )
The key is to give each ThumbsUp item a unique name, thus for each image. You can use variables in the ThumbsUp item name to autogenerate one, for example, using the image ID.
Hallo . I just bought Thumbsup . I made the database , i made the items (database and admin area is connected) , i make a thumbsup.php to include thumbsup with an iframe in my website , but i get white screen ! Please help .
<?php include ‘http://www.mywebsite.gr/thumbsup/init.php'?>
<!DOCTYPE html PUBLIC ”-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8” /> <?php echo ThumbsUp::css() ?> <script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js”> </script> <?php echo ThumbsUp::javascript() ?>
<title>Untitled Document</title> </head>
<?php echo ThumbsUp::item(‘life’)?>
<?php echo ThumbsUp::item(‘life’)>template(‘thumbs_up_down’)>format(‘{+UP} || {-DOWN}’) ?>
I can’t verify you actually bought ThumbsUp, sorry.
i just send you with a message the purchased code ! now please help me .
Okay, thanks. You shouldn’t be running ThumbsUp in an iframe, I’m afraid. Besides that, I don’t even find an iframe nor any ThumbsUp assets linked to on the website you provided…
Yesterday i send you a message with the real website link . I will sent it again . I use iframe , because my site is joomla , and i use an html module , but it is not reading php . I used the iframe for php in a contact form and it worked . If you like , reply me in my e-mail .
Hello, Is there a way to include this without PHP in Prestashop ? Like with only Javascript or so on ?
Because in Prestasop i need do make it in TPL or make a new module because implement it as PHP it makes prestashop very slow.
Sorry, PHP is an absolute requirement.
hello,
I wanted to know how to display only the percentage (%)?
For example:
60%
Only the number with the%!
Thank you so much!
You can use the {PCT_UP} and/or {PCT_DOWN} codes in your format string syntax. If you want to adjust a template in order for it to hide all other info, tweaking the CSS should be the easiest option.
I’m trying to make it on the site http://blogsochi.info but no success
Looks like it’s working fine. Just make sure you’re using a single (sub)domain, either with or without “www”. Cross-domain ajax requests will fail and display “error”.
Yes, now is working perfectly, and my users are very happy! Thank You for the quality of the software
Hi,
I´ve purchased this tool a long time ago. Will there be any updates, new version, improvements?
Best,
Ben
Nothing planned for the near future.
Hi There
I trying to use a custom variable in the config.php array (database_table_prefix) so that I can store the voting results in various tables. For example: ‘database_table_prefix’ => $SESSION[‘id’].’_thumbsup’,
This seems to be okay initially until a vote is cast, which causes either an ‘error’ or ‘parseerror’.
Can you offer any advice?
When a vote is cast, the script is called directly at the init.php file without your whole site being loaded. The problem might be that a session has not been started. A quick solution for that would be to put this code at the top of the thumbsup/config.php file:
<?php @session_start();
Thanks for the reply.
I’ve already tried this one… Putting session_start() at the top of the config.php just gets ignored. This is because I’ve already used session_start() (in file I want to include ‘Thumbsup’) – Before the line where I include ./thumbsup/init.php’.
Any more thoughts?
Just to be clear, a session_start() before you include the thumbsup/init.php file will be ignored for ajax requests. The ThumbsUp ajax requests are directly calling the thumbsup/init.php file and thus bypassing any other files from your app.
Hi ! A question : does this plugin work with Wordpress Aveda theme ? Thanks
This is not a WP plugin but you can install it on a WP site. Some technical skills are recommended, you have to know your way around with theme files. I have no specific experience with the Aveda theme.
Hello,
Can you please advise if this script can be used on a WordPress installation?
Also, can it be used for a HTML5 website?
Regards,
The answer to both questions is yes. It is not a WordPress plugin, though, so just apply the regular installation instructions. Some familiarity with PHP and a WP theme are recommended.
Hello,
How to add +10 instead of +1 ? Thanks
You could just add a zero in the template. That way +15 becomes +150, etc. If you really want to save a +10 in the database, things get more complicated. In short, I don’t recommend taking that route.
Hey, i got a question before i buy it. Is it working with infinite scroll? usually when infinite scroll loads the next set of posts, when you vote its reloading the whole page. You need to set a callback.
It won’t work out of the box, I’m afraid. You’ll need to find a way to attach the eventhandler to the newly loaded items.
Hello. I would appreciate a reply until monday because we’re little bit in hurry I had bought the ThumbsUp script from CodeCanyon, and I have a problem. I had respect all your instructions and the script works good, but the problems appears when I tried to implement the script in an iFrame.
As you can see in the following link, the script works good: http://www.zappernews.ro/thumbsup/thumbs.php I tried to embed that link in an iFrame at this link: http://www.zappernews.ro/thumbsup/index.php The script appears, but if I vote I get the error message after the vote click.
The source file for thumbs.php is: <?php include ‘init.php’ ?>
<head>
<?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('55')->template('thumbs_up_down') ?>
The source file for index.php is: <iframe src=”http://zappernews.ro/thumbsup/thumbs.php” width=”305” height=”45” frameborder=”0” scrolling=”no” allowtransparency=”true”></iframe>
I’m very pleased with ThumbsUp, and I’m forced to use it only in an iFrame due a framework PHP class issue. Thank you for your support, and I hope you will have a solution!
Hi , are you still here with us ? I really need your help ASAP !!! Please read your comments at least each 2 weeks ! Thank you !
Hi, sorry for the delay. I’ve never implemented the script into an iframe but it seems that for some reason the ajax request is failing inside that iframe.
I think the problem is related to the fact you’re mixing up the use of “www” in the URL. You should only use a single (sub)domain, the one configured in thumbsup/config.php, for the “url” setting. The iframe src attribute requests the URL without “www”, try to change that. Hope it works then.
Thank you for your reply. If I will have further problems, I will contact you.
Hi… How difficult would it be to add the ability for voters to leave a comment about what they are voting on?
This would be a great additional feature of the script.. please advise how I might go about this and if you would consider adding the feature to your script.
Adding comments is not a feature I plan on adding, to be honest. However, it should be perfectly possible to use another (standalone) commenting system in sync with ThumbsUp.
is it possible to create poll with images as radio buttons
Yes, you can, but you will need to create a new template which is not too hard to do if you start from an existing template. Basic HTML/CSS skills needed.
will you add this feature into next update ?
No, sorry.
Can’t get your script to work. After trying to complete the first steps (after database integration) I get the following error:
“Fatal error: Class ‘ThumbsUp’ not found in /home/funpoll5/public_html/index.php on line 7”
Here is a screenshot of the page where I’m trying to include the script. http://i.imgur.com/ImSW5lc.pngNote: I’m running an linux server…so if a capital is out of place in your script it will not work. Not sure if that helps.
Please advise
Two things: 1) you need to move the inclusion of the thumbsup/init.php file to the very top of the file, even before the doctype or any space; 2) I’m guessing the path to your thumbsup/init.php file is not correct. I don’t know your directory structure but try each of the following:
include './thumbsup/init.php'; include '../thumbsup/init.php'; include '../../thumbsup/init.php'; include '../../../thumbsup/init.php';
Ah I see. I have fixed the first problem, but have run into another. I am getting the error: “Fatal error: Class ‘PDO’ not found in /home/funpoll5/public_html/thumbsup/classes/thumbsup.php on line 65” when trying to include a rating section on my site. The file path is correct. Perhaps a db connection error?
Please disregard that previous message, I fixed the problem my enabling pdo on my server (wasn’t enabled previously). May be a good idea in your documentation to make clear that: 1. thumbsup/init.php should be literally at the VERY begining of the document. and 2. Ensure .pdo is enabled on server.
Thanks for you help, appreciate it 
Good job.
By the way, the points you mention are already included in the docs: http://www.geertdedeckere.be/shop/thumbsup/help
Dear GeertDD
I would like to use the “user_login_required” option. I have a separate user_login PHP script with its own MySQL database. I followed your instructions and “user_id” variable is passed to the thumbsup/config.php file true session.
At the top of the thumbsup/config.php file is: function chk_login() { @session_start(); return @$_SESSION[‘user_id’]; }
And further down is: ‘user_id_callback’ => ‘chk_login’,
When I try to vote I get a message »You need to login in order to vote«, but when I replace »return $_SESSION['user_id'];« with »echo $_SESSION[‘user_id’];« the correct user login ID is showed.
What am I doing wrong?
The code you show here looks fine. Can’t tell where it is going wrong based on this information. Feel free to send me a mail with more details. Also, if you’d like to start debugging yourself already, the catch_vote() method is a good place to inspect some variables.
Is it possible to make the script `user_id_check` true, but still allow users to vote once per day? It looks like currently, if `user_id_check` is set to true, they can only vote once per item?
Nevermind, I got it! I ended up doing some custom variables to make it check.
Good job!
Is there a way to filter results based on the id of the Thumbs up item? Something like the example below:
$items = ThumbsUp::items()>id(‘37’)>get();
Or multiple id values:
$items = ThumbsUp::items()>id(‘37,52,63’)>get();
Thanks!
$item = ThumbsUp_Item::load($item_name_or_id);The difference with the ThumbsUp::item() method this that the latter one will automatically create the item if the name doesn’t exist yet. Also, using the ThumbsUp_Item::load() method allows you to load based on an ID (integer must be passed as argument).
For retrieving multiple items there’s a ThumbsUp_Items class but this will only filter on ID. However, if you are a bit familiar with PHP it should not be hard to extend the class to allow filtering on ID. My code is well commented.
Is it possible to add this script on WordPress…
I mean that… all i use in externally but can i add the code on wordpress ?
is it worked ???
please let me know.
It can definitely be integrated in a WP site. Installs just like a regular install but you need to know your way around your theme’s template files. Basic PHP skills recommended.
Send you a mail please check… i am waiting for you… Thanks
You need to include jQuery before you load the ThumbsUp javascript file. I replied to your mail.