Code

Discussion on ThumbsUp

Discussion on ThumbsUp

By
Cart 1,995 sales

GeertDD supports this item

Supported

This author's response time can be up to 10 business days.

753 comments found.

PRE-BUY Question: Hello, I use this LARAVEL script, http://codecanyon.net/item/hellovideo-video-cms/11149598,

I would like to implement a rating system for the videos. Is this possible with your script? The framework is laravel.

It probably will work, however, I’m not sure since I don’t have experience with Laravel. To give you an idea, I’ve used ThumbsUp in combination with the Kohana PHP framework and with WordPress as well.

Thumbsup_votes table not updating: I could not figure out how to get into the admin panel, so I created some entries in the items table in php myadmin. The voting works, but the thumbsup_votes table does not update when a vote occurs.

A sample entry in the thumbsup_items table looks like this:

id—> 1 name—> 16 (16 is the comment id in my blog) closed—> 0 votes_up—> 3 votes_down—> 2

The default login/pass for the ThumbsUp admin area is demo/demo. However, you can and should change it in the thumbsup/config.php file (near the bottom).

Thank you. I attempted a fresh install, and there is no users table, therefor I can’t log in.

I’m confused now. ThumbsUp never creates a “users” table. The admin login is hardcoded in the thumbsup/config.php file. Feel free to send me an email for easier communication if you like.

I just had to remove the script…. I cannot get it to work to save my life—breaks my entire layout, or makes the screen blank.

Probably some config error. Temporarily turning debug on may help. Please, contact me via mail for further support if needed. Providing your website URL may help too. Thanks.

Hello,

I’m having an issue… I’m using index.phtml and the php messes up the layout of my site…

Is there a quick fix to this issue?

Hello, nice script, working with ID for item , or without ID

Hello, nice script, working with ID for item , or without ID

Hi, two quick questions… 1. Can I switch off cookies altogether, so that someone can vote as often as they like? 2. How much customization is possible to the templates with HTML/CSS? Can I use my own voting graphics? Thanks!

1. Yes, just update the thumbsup/config.php file as wanted.

2. A lot can be customized. Each ThumbsUp template consists of some HTML and CSS. You are free to completely change it however you like, including the images.

Awesome, thanks!

Hi, I need to show percent of voting, but I dont know how to do it… can u help me with it?

http://www.limityanone.cz/

Thx, Jan

Solved :)

to clarify, i need add on each page the rating ?

You need to add a ThumbsUp item for each thing you want people to be able to vote on. Using PHP you can dynamically add items on every page, just make sure you use a unique item name each time, for example, by adding a variable with your page ID in the name.

Hi!

I have a strange problem. When voting up or down it sometimes give message “error”. After reloading page I can see that vote is however registered. This is not happening every time,. Can you help me with this? Thanks!

Probably an ajax related problem. Make sure you are using the exact (sub)domain as set in your thumbsup/config.php file, either with or without “www”. Cross-domain ajax requests can cause trouble.

Hi

I have a pre sales question.

I would like to upload a list of companies approx 280 via excel or csv, and let individuals vote up / vote down against each company.

Is that possible ?

Also i would like to reset the votes back to 0 on a particular time of the day can this be done via cron job ?

If you need more clarity on what i want to do, i can explain in detail.

Thanks

Both things can be done. To display a list, loop over your companies in PHP and then use an ID or unique name in the ThumbsUp item name to dynamically create all the vote buttons.

The reset part should be possible via a cron job: clear the vote count fields in the database. However, if you are using the cookie setting to prevent double votes, you should be aware that the existing cookies of people who voted will still exist in their browser. That’s something to keep in mind or work around.

If I get someone who could convert this into a WP Plugin would you allow such a partnership?

Hm, sorry, not really interested.

Is it possible to have multiple counters for each item?

What I would like to do is for each item to have a general counter and a weekly counter (that is reset every week with a cron job or a similar way). So every time a user clicks the thumbs up button, both counters (general and weekly) are increased by one.

Thank you.

Of course, that would require customizations to the script. If you know PHP you should be able to build it in yourself. It should be possible, as far as I see.

Hello. Nice script!

I have the following question: I would like to use ThumbsUp in a radio station’s page, where the song currently being played is loaded automatically with javascript. Is it possible to pass this dynamically created content (through javascript variable) as item name? There is no page reload involved. How could I achieve that?

Thank you, Ilias

Hm, that’s tricky. You can easily create dynamic ThumbsUp item names on the server side via PHP variables. However, via JavaScript this won’t work and to be honest I don’t see an easy solution to make that work, sorry.

I found a way to do it.

Place all thumbsup code in a different .php file (let’s say thumbsup-process.php) and call it with ajax:

$.ajax({ type: “POST”, url: “thumbsup-process.php”, data: ‘artist=’ + encodeURIComponent(artist) + ‘&track=’ + encodeURIComponent(title), success: function(msg){ $(’.thumbsup’).html(msg); }

});

Then, all the output of thumbsup-process.php is written in

Are you still developing your script? It was not updated for long time, it might be too long and many technologies has changed, html5, css3 and others. What do you think?

1. That is not a built-in feature and I guess it would take quite a bit of work to build it since you’ll have to store and compare the date for every vote in the database.

2. You can sort ThumbsUp items based on the votes or another field. It basically works like an “order by” SQL query.

3. No.

1. ) Can I do it with cookies? How cookies works with voting? I thought I can setup expiration time there…

2) Ok it’s cool.

1. Sure, you can easily change the cookie expiration time but that doesn’t solve your problem. The cookie can contain multiple ThumbsUp IDs the user has voted for.

I use a post slider for different pictures each page break, With other plug ins it will count the same like for each page break/picture, I want it to have a different count for each slide, can this plug in do that?

Sure, as long as the slides aren’t loaded in via ajax. Just make sure you give each ThumbsUp item a unique name and it will count separately.

Hi, where is the read me file? I cant find any examples and details of how to implement the script.

PRE BUY QUESTION

I apologize if you already answered this elsewhere but is this plugin able to be used as a short code in multiple places on one page?

Thanks

Nevermind, I realized this was not a WordPress plugin. I have purchased it now and trying to work through implementing it on WordPress.

Right. I answered your e-mail.

is too much make a guide to install php / html sites?. (.no wordpress)

Hello,

Can you do an installation?

Bini

I don’t normally do installations but if you have a specific question, feel free to ask.

I have so many other jquery running and it seems to crash it when i follow the installation procedure…. and what do i put inside ‘item_name’ where are the item names? how do i get to access them?

You only need to include jQuery once. As for the item names, that’s up to you. Name them anything you want, just make sure you use a unique name for each different item.

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey