673 comments found

zreed Purchased

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?

zreed
zreed Purchased

Nevermind, I got it! I ended up doing some custom variables to make it check.

GeertDD

Good job!

petriz Purchased

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?

GeertDD

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.

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.png

Note: 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

Default-user

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?

Default-user

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 :)

GeertDD

Good job. :-) By the way, the points you mention are already included in the docs: http://www.geertdedeckere.be/shop/thumbsup/help

is it possible to create poll with images as radio buttons

GeertDD

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.

sadiakomal

will you add this feature into next update ?

GeertDD

No, sorry.

AdeB Purchased

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.

GeertDD

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.

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!

Default-user

Hi , are you still here with us ? I really need your help ASAP !!! Please read your comments at least each 2 weeks ! Thank you !

GeertDD

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.

Default-user

Thank you for your reply. If I will have further problems, I will contact you.

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.

GeertDD

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,

How to add +10 instead of +1 ? Thanks

GeertDD

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.

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,

GeertDD

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.

Hi ! A question : does this plugin work with Wordpress Aveda theme ? Thanks

GeertDD

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.

rray74 Purchased

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?

GeertDD

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();
Default-user
rray74 Purchased

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?

GeertDD

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,

I´ve purchased this tool a long time ago. Will there be any updates, new version, improvements?

Best,

Ben

GeertDD

Nothing planned for the near future.

webtolk Purchased

I’m trying to make it on the site http://blogsochi.info but no success

GeertDD

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”.

webtolk
webtolk Purchased

Yes, now is working perfectly, and my users are very happy! Thank You for the quality of the software

by
by
by
by
by
by