Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[AJAX] Thumbs Up? Details »»
[AJAX] Thumbs Up?
Version: 1.9, by Scandal Scandal is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.2.x Rating:
Released: 07-18-2012 Last Update: 12-21-2012 Installs: 347
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

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
  • vBCMS articles
  • vBCMS article comments
  • vBBlog entries
  • vBBlog comments
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)
  • Postbit statistics
  • Top X rated contents in latest 7 days
  • 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/Groans/vBSEO Likes, included!
  • Thumbs Up? Center:
  • - latest thumbs on "my" content
  • - latest thumbs "I sent"
  • - top rated contents
  • - statistics
Credits to my friend Lea Verou for designing the appearance of this hack!

Language packs
German

How to install?
Read the documents inside the *zip file.

How to upgrade?
1. Upload and replace the new files.
2. Import XML product with "Allow overwrite" to YES.

Changelog:
v1.0 - first release
v1.5.2 - 1 bug fixed (only first post function issue), 2 phrase edits
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)
update 22/12/2012
- bug fixed: guests could not show the thumbs number (shows a zero for all posts)
- to install this fix just upload and replace the updated file includes/functions_sc_thumbs.php. It is not necessary to re-upload all files or upgrade the product xml


If you like this hack, nominate it for MOTM!

-Scandal

Download Now

File Type: zip importers.zip (25.8 KB, 1288 views)
File Type: zip sc_thumbs_1.9_vB4.zip (57.1 KB, 1737 views)

Screenshots

File Type: png box.png (7.5 KB, 0 views)
File Type: png notifications.png (5.5 KB, 0 views)
File Type: png usercp.png (1.9 KB, 0 views)
File Type: png profileblock.png (6.7 KB, 0 views)
File Type: jpg center.jpg (136.7 KB, 0 views)
File Type: png postbit2.png (40.9 KB, 0 views)
File Type: jpg stats.jpg (70.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #102  
Old 08-04-2012, 05:20 PM
zascok zascok is offline
 
Join Date: Jul 2010
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice one, Tiny thing when thumbs up! given the icon turns into thumbs down for a user. it's a little confusing. lots of my users PMed me and asked to fix it cos they though the pressed Up! but antecedently pressed Down Can we have something else instead?

Or at list a function to allow or dissalow to take off given Thumbs.
Attached Images
File Type: jpg Untitled-1.jpg (10.2 KB, 0 views)
Reply With Quote
  #103  
Old 08-05-2012, 12:18 AM
fishmaster fishmaster is offline
 
Join Date: Nov 2006
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any ideas..

Had to uninstall to make the forum readable again.

Warning: require_once([path]/includes/functions_sc_thumbs.php) [function.require-once]: failed to open stream: No such file or directory in [path]/includes/class_postbit.php(345) : eval()'d code on line 122

Fatal error: require_once() [function.require]: Failed opening required '/public_html/******/forums/includes/functions_sc_thumbs.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/***********/public_html/forums/includes/class_postbit.php(345) : eval()'d code on line 122
Reply With Quote
  #104  
Old 08-05-2012, 07:11 AM
Scandal's Avatar
Scandal Scandal is offline
 
Join Date: Dec 2005
Location: Athens / Greece
Posts: 409
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zascok View Post
nice one, Tiny thing when thumbs up! given the icon turns into thumbs down for a user. it's a little confusing. lots of my users PMed me and asked to fix it cos they though the pressed Up! but antecedently pressed Down Can we have something else instead?

Or at list a function to allow or dissalow to take off given Thumbs.
You're free to change the file of the red button with something you like. For example you can use this:
Attachment 140332
(it is an inverted green button)
... just rename it to down.png and replace it with the already file.
You can use every button you like, by replace the down.png.

A notice: you should reupload the normal red button if you decide to enable the Thumbs down votes.

However, if you have use facebook, you'll see that normally it has not "dislike" choice for contents BUT if you push "like", to undo it you must push a phrase named "dislike". That may means that we dislike ALL content of facebook since we push a "like".

Quote:
Originally Posted by fishmaster View Post
Any ideas..

Had to uninstall to make the forum readable again.


Warning: require_once([path]/includes/functions_sc_thumbs.php) [function.require-once]: failed to open stream: No such file or directory in [path]/includes/class_postbit.php(345) : eval()'d code on line 122

Fatal error: require_once() [function.require]: Failed opening required '/public_html/******/forums/includes/functions_sc_thumbs.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/***********/public_html/forums/includes/class_postbit.php(345) : eval()'d code on line 122
Are you sure you had upload correctly the necessary files to your forum directory?
On your forum root there are these directrories:
/admincp/
/clientscript/
/images/
/includes/
.. you should upload the files as there are in the folder packet of *zip attached to the first post. Files thumbs.php and thumbs_center.php must be to the same "root" directory with the above folders.

PS: Thank you all for your suggestion and ideas! I'm already working for the next release!
Reply With Quote
  #105  
Old 08-05-2012, 08:19 AM
zascok zascok is offline
 
Join Date: Jul 2010
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see what do you mean. But yesterday ev things gone so weird I had to change the button in template to up_dis.png. Most of my users don't have any idea of facebook (who cares of fb, right? ).

But any way imo it would be really useful to have a function to disable ability to take off "Thums!" given. Ones given it stays grey and disabled, end of story.


pretty please
Attached Images
File Type: jpg Untitled-1.jpg (10.7 KB, 0 views)
Reply With Quote
  #106  
Old 08-05-2012, 04:55 PM
fishmaster fishmaster is offline
 
Join Date: Nov 2006
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working like a champ..
Reply With Quote
  #107  
Old 08-05-2012, 06:11 PM
Impromptu Impromptu is offline
 
Join Date: Jun 2012
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice work and love it.

I use post-legacy style and just some minor issues.

With the people who are listed as thumbs up is there a way I can put in a right-margin it as the last letter is cut off on the right hand side.

Also, when the hover over the number of thumbs up, it's fine for posts with 4-5 lines but where there is a post with 1 lines it goes really weird. Just when I hover it, but otherwise it's fine.
Reply With Quote
  #108  
Old 08-05-2012, 10:35 PM
fishmaster fishmaster is offline
 
Join Date: Nov 2006
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Some issues with the display cutting off on the numbers...
Reply With Quote
  #109  
Old 08-06-2012, 01:05 PM
ywwz ywwz is offline
 
Join Date: Jul 2009
Posts: 255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very cool, works on 4.2.0
Reply With Quote
  #110  
Old 08-06-2012, 01:39 PM
mgbhard mgbhard is offline
 
Join Date: Sep 2010
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First let me thank you for sharing this!

I've set it up so everyone can see the "+1 hand" when they don't have access, or to use it on them self.
The problem i'm having is that sometimes on some posts (not from themself) users complain that there is no hand, or there is but when they click it they get a "you don't have access to this page".

It's happing randomly, and it doesn't happend to all the users on the same post, i mean some users will get a you don't have access, but other will be able to thank for that post without any problem.

Do u have any clue what could be wrong? Thanks for your help, and sorry about my sucky english.
Reply With Quote
  #111  
Old 08-06-2012, 02:09 PM
Gecuba Gecuba is offline
 
Join Date: Sep 2010
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I made some 'сosmetic' changes for thumbs box.
Decrease the width from 150px to130px and aligned icon in box - now it's in the middle of the upper block.
Code:
<img src="images/buttons/up.png" border="0" alt="" style="vertical-align: middle" class="inlineimg" />
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:03 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05098 seconds
  • Memory Usage 2,379KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (21)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete