View Full Version : Miscellaneous Hacks - [AJAX] Thumbs Up?
Scandal
07-16-2012, 09:00 PM
Thumbs up/down system for all content of vBulletin!
This mod gives a simple thumbs system for:
Forum posts
Pictures
Picture comments
Profile visitor messages
Social group messages
Features
Thumbs up/down rating system
Ability to turn off "thumbs down" votes
Uses AJAX technology (= no page refresh when voting)
Ability to turn off system on each section
Show who vote feature (with ability to turn it off for up or/and down thumbs)
Notification system for new thumbs (with ability to turn it off via usercp)
Only first post feature
Ban user/usergroup feature
Turn off system on individual forums
Importers from Post Thanks (https://vborg.vbsupport.ru/showthread.php?t=165673)/Groans (https://vborg.vbsupport.ru/showthread.php?t=193489)included!
Thumbs Up? Center:
- latest thumbs on "my" content
- latest thumbs "I gave"
- statistics
Credits to my friend Lea Verou (https://vborg.vbsupport.ru/member.php?u=106158) for designing the appearance of this hack!
Changelog:
v1.0 - first release
v1.0.2 - 1 bug fixed (only first post function issue), phrases added
-Scandal :D
Scandal
07-17-2012, 09:14 AM
Comming soon: vB4 version! Stay tuned. :cool:
vijayninel
07-17-2012, 09:14 AM
Ah .. interesting. I have also converted the vBSEO like into a "thums up" on my forum.
3raq4all
07-17-2012, 12:38 PM
Does not appear in the posts!
Scandal
07-17-2012, 12:43 PM
Does not appear in the posts!
hmm, try to open plugin Box for Forum Posts and add at first line (above from all):
global $vbulletin;
I re-upload the product with this fix.
3raq4all
07-17-2012, 12:55 PM
I re-upload the product with this fix. https://vborg.vbsupport.ru/images/smilies/up.gif
v123shine
07-17-2012, 04:39 PM
Nice mod :)
RobbieZ
07-17-2012, 05:19 PM
Excellent.. can't wait for Vb4.. will it resemble post ratings mod from xenforo?
maki_69
07-17-2012, 06:38 PM
Great mod but I have problem with permissions of usergroups. Where Can I enable / disable voting for usergroups? I check all options in plugin setting but I get error about permissions.
Another thing is problem with voting after changing forum language. I use polish language and when I want check error message in english, I change forum language and vote but buttons disappear and my vote didn't count.
I have proposition about new function of mod ;). If this isn't problem You can add to "forumdisplay" box with number of votes.
valdet
07-17-2012, 07:05 PM
Anyone tried this in vB 3.6.x versions ?
Would this work, although the templates in which this hack works are a bit different in vB 3.6.x ?
Skyrider
07-17-2012, 09:35 PM
I shall wait for the vB4 version!
Scandal
07-18-2012, 05:47 AM
Great mod but I have problem with permissions of usergroups. Where Can I enable / disable voting for usergroups? I check all options in plugin setting but I get error about permissions.
On admincp settings about Thumbs Up? there is the option to Ban Usergroups of using the system:
139898
This option is on settings, not on usergroup manager. ;)
Another thing is problem with voting after changing forum language. I use polish language and when I want check error message in english, I change forum language and vote but buttons disappear and my vote didn't count.
hmm I don't understand the problem. :o
If the language of your site is set to English, the system works fine, but if you turn to Polish, and try to thumb, the box disappear? What with error message?
(sorry for my bad English :erm: )
maki_69
07-18-2012, 06:23 AM
On admincp settings about Thumbs Up? there is the option to Ban Usergroups of using the system:
139898
This option is on settings, not on usergroup manager. ;)
I saw this option but when I want vote I get error about permissions my usergroup but banned usergroups field is empty.
hmm I don't understand the problem. :o
If the language of your site is set to English, the system works fine, but if you turn to Polish, and try to thumb, the box disappear? What with error message?
This problem You can see when You install mod on language number 1 (in my example polish) and next you change language to number 2 (english). Now try vote. Box with thumbnails disappear and error doesn't appear.
BTW. And what you thing about my proposition about box on forumdisplay?
Example (but in this example looks ugly):
https://vborg.vbsupport.ru/
This box can be like optional function :)
Scandal
07-18-2012, 06:41 AM
I saw this option but when I want vote I get error about permissions my usergroup but banned usergroups field is empty.
Can you let me know what is your usergroup ID its users has this problem? (no permission). Also check if the problem is only for your test account. Other users on this usergroup has the same problem?
This problem You can see when You install mod on language number 1 (in my example polish) and next you change language to number 2 (english). Now try vote. Box with thumbnails disappear and error doesn't appear.
Try this change temporary to see the error: Go to admincp > vBulletin Options > General Settings, and disable All AJAX features. Then try to vote and let me know the error message.
BTW. And what you thing about my proposition about box on forumdisplay?
Example (but in this example looks ugly):
http://iv.pl/images/88229702496831398859.png
This box can be like optional function :)
The box you describe is for "thumb up/down" threads, or a sum of post thumbs for each thread?
maki_69
07-18-2012, 08:52 AM
Can you let me know what is your usergroup ID its users has this problem? (no permission). Also check if the problem is only for your test account. Other users on this usergroup has the same problem?
I test mod on localhost like admin and registered user. Both usergorups have this error.
Try this change temporary to see the error: Go to admincp > vBulletin Options > General Settings, and disable All AJAX features. Then try to vote and let me know the error message.
I disabled ajax features and got the same error:
"admin, you do not have permission to access this page. This could be due to one of several reasons:
Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation."
The box you describe is for "thumb up/down" threads, or a sum of post thumbs for each thread?
Described box is for sum of thumbs up for first post. Of course You can do this box for others options like counting every thumbs in topic or displaying sum of thumbs up and sum of thumbs down.
Scandal
07-18-2012, 01:32 PM
Very strange :(
What your vBulletin version?
If you couldn't thumb a post, the buttons would be "grey" ("not allowed"). Has anyone the same problem?
hmm, do a right click on a button (up or down), copy the url and paste it here.
maki_69
07-18-2012, 01:53 PM
Very strange :(
What your vBulletin version?
I use 3.8.6 on localhost but in few minutes I install and check mod on my forum.
EDIT: On my forum I have the same problem (I use vBulletin 3.8.7 Patch Level 3).
hmm, do a right click on a button (up or down), copy the url and paste it here.
URL:
http://localhost/vbulletin/thumbs.php?do=add&contenttype=post&thumb=-1&contentid=2&securitytoken=1342626612-cf8705a736092af96d2083ce350a15fff2c20d0f
3raq4all
07-18-2012, 05:28 PM
https://vborg.vbsupport.ru/external/2012/07/31.png
Hello
How do I get on the variable for the number?
I want to add the number to the Post template
I hope to help
Fluke667
07-18-2012, 09:08 PM
i want import from reputation system to thumbs up... howto do this?
Scandal
07-19-2012, 10:04 AM
I use 3.8.6 on localhost but in few minutes I install and check mod on my forum.
EDIT: On my forum I have the same problem (I use vBulletin 3.8.7 Patch Level 3).
URL:
http://localhost/vbulletin/thumbs.php?do=add&contenttype=post&thumb=-1&contentid=2&securitytoken=1342626612-cf8705a736092af96d2083ce350a15fff2c20d0f
Let's do some edits, just for testing.
1. Open file thumbs.php and delete the lines:
// check security
if (!verify_security_token($securitytoken, $vbulletin->userinfo['securitytoken_raw'])) {
print_no_permission();
}
then try to use the system.
2. Open file includes/functions_sc_thumbs.php and find the function:
function thumbed_already_check
change the line:
return false;
to
return true;
then try to use the system
3. On the same file, find the function:
function is_in_banned_usergroup()
change the line:
return false;
to
return true;
then try to use the system
4. On the same file, find the function:
function is_in_banned_list()
change the line:
return false;
to
return true;
then try to use the system
5. On the same file, find the function:
function is_a_banned_forum($forumid)
change the line:
return false;
to
return true;
then try to use the system
https://vborg.vbsupport.ru/external/2012/07/31.png
Hello
How do I get on the variable for the number?
I want to add the number to the Post template
I hope to help
What exactly you want to do? These numbers refers the thumbs has been given on the whole site.
i want import from reputation system to thumbs up... howto do this?
I haven't check reputation system. will see.
maki_69
07-19-2012, 10:22 AM
I installed mod on my other forum and works fine and I don't know how is problem on the first forum ;/. When I end configuring mod I will be testing mod on first forum (maybe other plugin conflict with this mod?).
You add phrase "sc_thumbs_title_thumbsdown" and "sc_thumbs_title_thumbsup" but You didn't use it in mod but You use twice "sc_thumbs_thumbs_down" and "sc_thumbs_thumbs_up" (templates "sc_thumbs_box").
EDIT: I know where is bug :). Turn on voting only in first post and you will see the same bug what mine. If You turn on voting in every post Your mod works fine.
Scandal
07-19-2012, 01:41 PM
EDIT: I know where is bug :). Turn on voting only in first post and you will see the same bug what mine. If You turn on voting in every post Your mod works fine.
wow, you're right! I'll fix it as soon as posible. :up:
Thanks, ;)
maki_69
07-19-2012, 02:06 PM
Hmm, now i'm testing mod on other forum and I saw in my postbox e-mail with vbulletin database errors like this:
"Database error in vBulletin 3.8.7:
Invalid SQL:
SELECT * FROM sc_thumbs_post WHERE postid IN () ORDER BY username ASC;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY username ASC' at line 1"
If You have a time and desire, I have another proposals for modifications Your mod like:
- public statistic (eg: with the best post from latest x days)
- disabling for view post with more than x "thumbs down" or mark the best posts in topic
A little imagination and this mod will be the best mod of the month :P
3raq4all
07-19-2012, 04:17 PM
Hello
How do I get on the variable for the number?
I want to add the number to the Post template
I hope to help
What exactly you want to do? These numbers refers the thumbs has been given on the whole site.
I want to add the number of figures for each member of thumb template to the Post Legacy I just want the numbers for this variable
Scandal
07-19-2012, 04:53 PM
Hmm, now i'm testing mod on other forum and I saw in my postbox e-mail with vbulletin database errors like this:
"Database error in vBulletin 3.8.7:
Invalid SQL:
SELECT * FROM sc_thumbs_post WHERE postid IN () ORDER BY username ASC;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY username ASC' at line 1"
If You have a time and desire, I have another proposals for modifications Your mod like:
- public statistic (eg: with the best post from latest x days)
- disabling for view post with more than x "thumbs down" or mark the best posts in topic
A little imagination and this mod will be the best mod of the month :P
Can you give me more info about the database error? I need the url of the error and the info of user (he is a guest or a member?). I think this info is on the e-mail.
Thanks for your ideas, will see on the next versions!!
The bug with only first post function, fixed!
I want to add the number of figures for each member of thumb template to the Post Legacy I just want the numbers for this variable
The variables you need for postbit legacy are:
$post[sc_thumbs_up_received]
$post[sc_thumbs_down_received]
$post[sc_thumbs_up_gave]
$post[sc_thumbs_down_gave]
:up:
maki_69
07-19-2012, 06:26 PM
Can you give me more info about the database error? I need the url of the error and the info of user (he is a guest or a member?). I think this info is on the e-mail.
Url: http://my_forum.pl/thumbs.php
User: Drytomm (but this rather can't help with fix problem)
Shortly I check fixed version :)
3raq4all
07-19-2012, 06:56 PM
Can you give me more info about the database error? I need the url of the error and the info of user (he is a guest or a member?). I think this info is on the e-mail.
Thanks for your ideas, will see on the next versions!!
The bug with only first post function, fixed!
The variables you need for postbit legacy are:
$post[sc_thumbs_up_received]
$post[sc_thumbs_down_received]
$post[sc_thumbs_up_gave]
$post[sc_thumbs_down_gave]
:up:
Thank you, King :up:
Chris8
08-07-2012, 06:34 PM
Looks very promising.
How about adding ability to thumb up blog (vbblog) entries and comments?
Useful could be also to see a page with of most thumbed up or thumbed down posts or a search feature for most thumbed up or thumbed down posts.
Kolektor
08-11-2012, 06:16 AM
works perfectly! :)
Hope to see more features ;)
love you man!
Nominated to MOTM!
Kolektor
08-11-2012, 06:26 AM
There is one uncached template:
sc_thumbs_memberinfo_block
:)
d1alaccom
08-11-2012, 01:21 PM
Super!! Thank you very much!
i have a question, is it also possible to make... if there are more than 20 Thumbs Down, ,that the thread will be automatically deleted?
Kolektor
08-13-2012, 04:41 PM
Dear, hope you can add the update to 3.8.x line for the updates you have made to 4.x :)
especially the postbit thingie...
klaush
08-14-2012, 05:08 AM
Is this already fixed?
There is one uncached template:
sc_thumbs_memberinfo_block
:)
Kolektor
08-14-2012, 08:46 AM
Is this already fixed?
use ZH Cache Template for the meantime.
Kolektor
08-14-2012, 08:57 AM
Dear, hope you can add the update to 3.8.x line for the updates you have made to 4.x :)
especially the postbit thingie...
Kindly update 3.8.x
v1.8.0
- new feature: support for vBCMS articles & comments
- whos online locations added
- new feature: top rated (in latest 7 days) contents page
- new feature: postbit statistics
- change: only one button when "thumbs down" are disabled
- new feature: ability to change the color of the thumbs box and the color of amount font via admincp
v1.9.0
- new feature: support for vBBlog entries & comments
- small fix to box template (thanks to Valter)
klaush
08-15-2012, 06:13 AM
One issue. If someone clicks the thumbs down/thumbs up button for some reason by mistake he is not able to revise this click.
That needs to be corrected in some way because of the position of the buttons near other buttons and/or the small size of them.
Thanks!
Kolektor
08-19-2012, 09:53 PM
Thumbs are not properly aligned in conversation page.
Kolektor
09-08-2012, 01:53 AM
Kindly update 3.8.x
v1.8.0
- new feature: support for vBCMS articles & comments
- whos online locations added
- new feature: top rated (in latest 7 days) contents page
- new feature: postbit statistics
- change: only one button when "thumbs down" are disabled
- new feature: ability to change the color of the thumbs box and the color of amount font via admincp
v1.9.0
- new feature: support for vBBlog entries & comments
- small fix to box template (thanks to Valter)
Hi Scandal, wish you'll update also here... :up:
home9000
09-14-2012, 09:10 AM
good one
If you hide or unproved any thread have numbers of too much down thumbs
Also you can send notification to moderators about this thread
wangyu1314
09-14-2012, 01:41 PM
I had test, it is can not work in vb 3.6.x
maki_69
09-26-2012, 01:24 PM
I see that mod for vb 3 is dead now because "Scandal" don't viewing this topic ;]
Scandal
09-26-2012, 01:40 PM
I see that mod for vb 3 is dead now because "Scandal" don't viewing this topic ;]
vB3 version of this hack published 'cause my site is on vB3 and I was need it. ;)
vB4 version of this hack was the "main" version 'cause there are more installers and it was the newest version of vB.
In the next months, when vB5 passes the beta stage, I'll make a try to update this hack for vB5. :up:
maki_69
09-28-2012, 12:28 PM
vB3 version of this hack published 'cause my site is on vB3 and I was need it. ;)
vB4 version of this hack was the "main" version 'cause there are more installers and it was the newest version of vB.
In the next months, when vB5 passes the beta stage, I'll make a try to update this hack for vB5. :up:
Thanks but many all people writing here would be see updates to vb3 version. I like this mod and is very helpful but have to less options for me. If You want I can pay You for updates for me. I can describe everything what i want.
Btw, Is it possible to connect this mod with vbExperience (Custom Data Provider)?
yeppuda
10-03-2012, 08:24 AM
that, prior to the signing, we could show? I want to change the location.
or mauseover, mauseout?
Kolektor
10-03-2012, 08:49 AM
Thanks but many all people writing here would be see updates to vb3 version. I like this mod and is very helpful but have to less options for me. If You want I can pay You for updates for me. I can describe everything what i want.
Btw, Is it possible to connect this mod with vbExperience (Custom Data Provider)?
I'll chip in as well. :)
zilibobo
10-07-2012, 08:59 PM
Great idea! But after uploading files and installing the product it is not work's correctly. For example after voting (thumbs up) i am receive following errors:
Deprecated: Assigning the return value of new by reference is deprecated in /home/......../forum/includes/init.php on line 55
Deprecated: Assigning the return value of new by reference is deprecated in /home/......../forum/includes/init.php on line 107
Deprecated: Assigning the return value of new by reference is deprecated in /home/......../forum/includes/init.php on line 111
Deprecated: Assigning the return value of new by reference is deprecated in /home/......../forum/includes/init.php on line 119
Deprecated: Assigning the return value of new by reference is deprecated in /home/.........../forum/includes/init.php on line 130
Deprecated: Assigning the return value of new by reference is deprecated in /home/......../forum/includes/init.php on line 134
Deprecated: Assigning the return value of new by reference is deprecated in /home/......../forum/includes/init.php on line 142
Deprecated: Assigning the return value of new by reference is deprecated in /home/......../forum/includes/init.php on line 211
Deprecated: Assigning the return value of new by reference is deprecated in /home/......../forum/includes/init.php on line 389
Deprecated: Assigning the return value of new by reference is deprecated in /home/......../forum/includes/class_core.php on line 2552
And i am not have idea how to fix it. Can you help me?
Kolektor
10-17-2012, 04:19 PM
set your php environment like this.
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE & ~8192);
Spadow
10-17-2012, 11:17 PM
Great mod, thanks!
But I have two questions.
1. Is there anyway to change the placement of the thumbs up/down icons?
2. Is there a log to see which member gave the other member a thumbs up/down?
wurkanimal
10-23-2012, 01:33 PM
Using it now. Thank you!
SoftWareRevue
03-07-2013, 10:47 AM
...
2. Is there a log to see which member gave the other member a thumbs up/down?I haven't installed this yet, but the FEATURE set above says, "Show who vote feature (with ability to turn it off for up or/and down thumbs)".
Did you find it? Or isn't it exactly what you're looking for?
Xexiu
04-15-2013, 10:26 PM
Hello,
Good work for the mod. It's working like a charm on my vb 3.8.6.
I only have one question/doubt.
Is there a way to cut off the line showing wich members vote positive or negative on Postib and postbit_legacy?
For example: 1036 thumbs up and 2 thumbs down.
When you hover your mouse on the numbers the table with the users appears. Is there a way to cut off that list and show something like "more" after a certain number and redirect them or open a page will all the users that had thumbed?
Hope you guys get me ;).
Thank you.
egexperiment626
05-14-2013, 08:50 PM
Love the mod. Question, is there a way to remove the thumbs down button? I just want the number and thumbs up to show. So it looks just like this:
https://vborg.vbsupport.ru/attachment.php?attachmentid=140009&stc=1&d=1342995841
egexperiment626
05-15-2013, 03:22 PM
I started chopping away at the templete, so I was sort of able to do what I wanted. Bit too much extra space, but it doesn't look bad so I'm going to leave it.
SoftWareRevue
05-21-2013, 03:04 PM
I started chopping away at the templete, so I was sort of able to do what I wanted. Bit too much extra space, but it doesn't look bad so I'm going to leave it.
If it isn't too much to ask, can you post what you did?
SwalyAaron
05-26-2013, 11:27 AM
Can you change thumbs up to like?
valdet
06-12-2013, 09:00 PM
Kindly update 3.8.x
v1.8.0
- new feature: support for vBCMS articles & comments
- whos online locations added
- new feature: top rated (in latest 7 days) contents page
- new feature: postbit statistics
- change: only one button when "thumbs down" are disabled
- new feature: ability to change the color of the thumbs box and the color of amount font via admincp
v1.9.0
- new feature: support for vBBlog entries & comments
- small fix to box template (thanks to Valter)
Not sure what are the updates that you're referring, but the features that you're mentioning here would be well accepted if there's an update for vB 3.8 version too.
In addition to those, here are few more option.
An ability to list most Liked post under Users Profile page
Ability to switch the order of Thumbs Down / Up button (so it's either Down - Up or Up - Down)
Ability to have an option to search only "Liked" posts
Thanks.
Hakan39
06-15-2013, 05:24 PM
Thank you. Very nice. Running smoothly.
Vibhor
09-09-2013, 05:41 PM
Hi Peter.
Thanks for sharing such a fantastic mod. It?ll be awesome if you could help on the following queries:
How to position this button next to quote buttons as seen in the image below?
We?re only using ?thumbs up?. So how do I totally remove the ?thumbs down? button?
Your support will be highly appreciated.
146357
mangmel
07-03-2014, 10:52 AM
hack can't show on postbit why ?
shibby2
03-25-2015, 04:18 AM
What template do we edit if we want to move the box somewhere else, like down next to the edit, quote, multi-quote buttons, etc?
Thanks!
OzgurcaN
02-11-2017, 04:14 PM
We can show members who like it under the message like vBSEO
CreativeIT
10-07-2019, 08:24 PM
Used it successfully for years. Unfortunately it conflicts with the update to VB 3.8.11. Had to uninstall it.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.